diff -Nru clamav-0.97.8+dfsg/aclocal.m4 clamav-0.98.1+dfsg/aclocal.m4 --- clamav-0.97.8+dfsg/aclocal.m4 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/aclocal.m4 2014-01-13 17:02:18.000000000 +0000 @@ -1,7 +1,8 @@ -# generated automatically by aclocal 1.11.1 -*- Autoconf -*- +# generated automatically by aclocal 1.11.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, +# Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -13,18 +14,21 @@ m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, -[m4_warning([this file was generated for autoconf 2.63. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) -# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software +# Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been @@ -34,7 +38,7 @@ [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.11.1], [], +m4_if([$1], [1.11.6], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -50,19 +54,21 @@ # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.11.1])dnl +[AM_AUTOMAKE_VERSION([1.11.6])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. @@ -144,14 +150,14 @@ Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 -# Free Software Foundation, Inc. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, +# 2010, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 10 +# serial 12 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, @@ -191,6 +197,7 @@ # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. + rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. @@ -255,7 +262,7 @@ break fi ;; - msvisualcpp | msvcmsys) + msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. @@ -320,10 +327,13 @@ if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' + am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- @@ -545,12 +555,15 @@ done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, +# Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. @@ -682,12 +695,15 @@ fi ]) -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, +# Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. @@ -710,13 +726,14 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software +# Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 4 +# serial 5 # _AM_MANGLE_OPTION(NAME) # ----------------------- @@ -724,13 +741,13 @@ [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) -# ------------------------------ +# -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- +# ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) @@ -741,12 +758,14 @@ AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. @@ -823,13 +842,13 @@ fi AC_MSG_RESULT(yes)]) -# Copyright (C) 2009 Free Software Foundation, Inc. +# Copyright (C) 2009, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 1 +# serial 2 # AM_SILENT_RULES([DEFAULT]) # -------------------------- @@ -844,18 +863,50 @@ no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac +dnl +dnl A few `make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using `$V' instead of `$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't @@ -878,13 +929,13 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006, 2008 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 2 +# serial 3 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- @@ -893,13 +944,13 @@ AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- +# -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -921,10 +972,11 @@ # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) diff -Nru clamav-0.97.8+dfsg/AUTHORS clamav-0.98.1+dfsg/AUTHORS --- clamav-0.97.8+dfsg/AUTHORS 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/AUTHORS 2014-01-13 17:02:18.000000000 +0000 @@ -1,20 +1,53 @@ The ClamAV Team - http://www.clamav.net/team +============================================ +Joel Esler +Nigel Houghton +Tom Judge +Kevin Lin +Steve Morgan +Matt Olney +Ryan Pentney +Dave Raynor +Shawn Webb +Alain Zidouemba -aCaB +Sourcefire VRT +============== +Nathan Benson +Christoph Cordes +William Freeman +Ethan Gulla +Richard Johnson +Alex Kambis +Alex Kirk +Christopher Marshall +Christopher McBee +Alex McDonnell +Kevin Miklavcic +Patrick Mullen +Nick Randolph +Andy Walker + +Contributors +============ Aeriana Mike Cathey -Christoph Cordes Diego d’Ambra Andreas Faust -Luca Gibelli -Nigel Horne Arnaud Jacques -Tomasz Kojm Tomasz Papszun Sven Strickroth -Török Edvin Trog +ClamAV Emeritus +=============== +aCaB +Luca Gibelli +Tomasz Kojmnet +Török Edvin +Nigel Horne + + Please see the ChangeLog and clamdoc.pdf for the full list of contributors. ------------------------------------------------------------------------------- diff -Nru clamav-0.97.8+dfsg/ChangeLog clamav-0.98.1+dfsg/ChangeLog --- clamav-0.97.8+dfsg/ChangeLog 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/ChangeLog 2014-01-13 17:02:34.000000000 +0000 @@ -1,115 +1,858 @@ +Tue Nov 26 16:00:57 2013 EDT 2013 (klin) +------------------------------------ + * Improvements to OLE2 extraction and scanning + +Fri Nov 8 17:08:09 2013 EDT 2013 (dar) +------------------------------------ + * Add ForceToDisk option for clamd and force-to-disk arg for clamscan + +Thu Oct 23 18:01:46 2013 EDT 2013 (dar) +------------------------------------ + * bb #9222: make fmap_unneed respect nested maps + +Tue Oct 15 16:03:25 2013 EDT 2013 (dar) +------------------------------------ + * libclamav: bb #9154 - ELF handling re-write + +Tue Oct 15 16:00:14 2013 EDT 2013 (dar) +------------------------------------ + * libclamav: bb #8696 - Bug reported by NIW Solutions + +Fri Oct 11 16:50:34 2013 EDT 2013 (dar) +------------------------------------ + * bb #9072: clamscan message separator fix + +Tue Oct 8 17:17:44 2013 EDT 2013 (morgan) +------------------------------------ + * xz file type support + +Thu Oct 3 10:49:11 2013 EDT 2013 (dar) +------------------------------------ + * bb #1570: Support ADC compression in DMG + +Wed Oct 2 11:22:40 2013 EDT 2013 (dar) +------------------------------------ + * bb #9053: ClamAV 0.98 can't be compiled on FreeBSD 7 + +Mon Sep 30 11:04:58 2013 EDT 2013 (dar) +------------------------------------ + * bb #9017: tomsfastmath warning with zLinux on s390x + +Fri Sep 15 18:15:36 2013 EDT 2013 (morgan) +------------------------------------ + * win32: Import libxml2 2.9.1 components into windows builds for xmlReader support. + +Fri Sep 13 12:22:58 2013 EDT 2013 (morgan) +------------------------------------ + * libclamav: Add support for scanning xar/pkg archive files. + +Tue Sep 3 18:37:13 2013 EDT 2013 (dar) +------------------------------------ + * V 0.98.0 RC + +Thu Aug 15 17:44:49 2013 EDT 2013 (dar) +------------------------------------ + * code quality fixes on libclamav, clamd, sigtool, clamav-milter, clamconf and clamdtop + +Fri Aug 9 18:33:06 2013 EDT 2013 (dar) +------------------------------------ + * code quality fixes on libclamav, libclamunrar and freshclam + +Wed Aug 7 18:55:13 EDT 2013 (dar) +------------------------------------ + * valgrind suppression rules for dl_catch_error complaints + +Tue Jul 30 15:07:25 EDT 2013 (dar) +------------------------------------ + * bb #8385: PDF ASCII85Decode zero-length fix + +Thu Jun 20 13:43:46 EDT 2013 (dar) +------------------------------------ + * libclamav: SCAN_ALL mode fixes + +Thu May 9 12:50:46 EDT 2013 (dar) +------------------------------------ + * bb #7436: elf64 header early exit + +Mon Apr 22 11:06:37 EDT 2013 (dar) +------------------------------------ + * iso9660: iso_scan_file rewrite + +Wed Apr 17 11:20:48 EDT 2013 (olney) +------------------------------------ + * V 0.97.8 + +Mon Apr 15 17:58:26 EDT 2013 (dar) +------------------------------------ + * cache: cacheset_remove fix and better logging + +Fri Apr 12 14:20:23 EDT 2013 (swebb) +------------------------------------ + * libclamav: Fix bugs in mpool and readdb + Fri Apr 5 17:36:54 EDT 2013 (dar) ------------------------------------ * libclamav: Bugs reported by Felix Groebert of the Google Security Team +Thu Mar 28 17:11:56 EDT 2013 (morgan) +------------------------------------ + * signature.pdf updates + * Update clam doc for allmatch mode + * doc: add target 12 for CL_TYPE_JAVA + * signature.tex fixup for bb6988 + +Tue Mar 26 16:51:51 EDT 2013 (dar) +------------------------------------ + * libclamav: include cb_meta on copy or apply engine settings + +Fri Mar 22 12:05:59 EDT 2013 (dar) +------------------------------------ + * libclamav: vba strings fix-ups + +Tue Mar 12 15:00:07 EDT 2013 (swebb) +------------------------------------ + * Add valgrind suppression rule for LLVM subcode shutdown + +Fri Mar 8 17:48:34 EDT 2013 (dar) +------------------------------------ + * libclamav: SHA1/SHA256 handling changes and wildcard-size support + +Thu Mar 7 19:38:34 EDT 2013 (dar) +------------------------------------ + * sigtool: Add print-certs command to allow dumping certs without a scan + Thu Feb 28 13:55:04 EDT 2013 (dar) ------------------------------------ * libclamav/pe_icons.c: introduce LOGPARSEICONDETAILS define to reduce parseicon logging in default build -Wed Feb 20 10:05:00 EDT 2012 (multiple) ---------------------------------- +Thu Mar 7 16:10:49 EDT 2012 (olney) +---------------------------------- + * V 0.97.7 + +Wed Feb 20 10:05:00 EDT 2013 (multiple) +------------------------------------ * Bug reported by Felix Groebert, Mateusz Jurczyk and Gynvael Coldwind of the - Google Security Team. + Google Security Team -Mon Sep 6 12:32:00 EDT 2012 (dar) ---------------------------------- - * libclamav: bb#5751 - cl_scansis() may returan a file descriptor instead - of a valid return code +Thu Feb 7 14:04:06 EDT 2013 (dar) +------------------------------------ + * Add CL_TYPE_JAVA for Java class detection, type and target + +Tue Feb 5 19:38:35 EDT 2013 (dar) +------------------------------------ + * Add runtime enable/disable of SWF scanning + +Mon Feb 4 16:32:50 2013 EDT 2013 (dar) +------------------------------------ + * bb #6712: safer SWF tag length handling + +Mon Feb 4 15:54:44 EDT 2013 (swebb) +------------------------------------ + * bb5638 - Add new database file to sigtool + +Fri Feb 1 17:05:53 EDT 2013 (dar) +------------------------------------ + * bb #6671: tweak asm register reference in tomsfastmath code for clang + compatibility + +Tue Jan 29 12:59:07 EDT 2013 (swebb) +------------------------------------ + * Add Shawn Webb and Steve Morgan to the AUTHORS file + +Fri Jan 25 11:52:03 EDT 2013 (rpentney) +------------------------------------ + * Fixed signed division check as in BB#6482 + +Fri Jan 25 11:30:43 EDT 2013 (dar) +------------------------------------ + * libclamav: fix 7z tempdir ref + +Thu Jan 24 14:43:58 EDT 2013 (dar) +------------------------------------ + * bb #6643: pdf dictionary fix + +Tue Jan 15 15:42:31 EDT 2013 (dar) +------------------------------------ + * bb #5324: strip down Flash file handling, decompress compressed Flash files + +Wed Jan 9 12:58:53 EDT 2013 (dar) +------------------------------------ + * bb #6534: SWF signature category + +Tue Jan 8 15:10:03 EDT 2013 (swebb) +------------------------------------ + * Add dumpcerts command-line option for clamscan. Only show certs in the PE + file, not certs loaded by the certs db. + +Tue Jan 8 12:18:35 EDT 2013 (morgan) +------------------------------------ + * Fix for CL_ENULLARG reported in regression run of 0021468992.gz + +Tue Jan 2 16:06:10 EDT 2013 (dar) +---------------------------------- + * bb#5324 - restore decompression of compressed Flash files + +Thu Dec 27 16:52:14 EDT 2012 (dar) +------------------------------------- + * bb #6478: better return code for truncated ARJ + +Thu Dec 27 15:23:45 EDT 2012 (morgan) +------------------------------------- + * fix regression test 0051207685.gz bsd crash + +Wed Dec 26 15:04:28 EDT 2012 (morgan) +------------------------------------- + * fix to bb1891 patch(edge of buffer problem) + +Wed Dec 19 17:15:57 EDT 2012 (swebb) +------------------------------------- + * downgrade cacheset_remove node-not-found to debug level + +Tue Dec 18 13:21:26 EDT 2012 (dar) +------------------------------------- + * bb #6440: truncated ISO should cause format error not write error + +Mon Dec 17 18:47:12 EDT 2012 (morgan) +------------------------------------- + * fix loop in cab file processing: ensure window position within frame + +Mon Dec 17 16:44:16 EDT 2012 (dar) +------------------------------------- + * pdf: empty key safety check + +Mon Dec 17 11:12:11 EDT 2012 (dar) +------------------------------------- + * pdf: continue to next object after single object error + +Mon Dec 17 11:08:50 EDT 2012 (morgan) +------------------------------------- + * revert bb1636: causes too many false positives + +Fri Dec 7 19:54:59 EDT 2012 (dar) +------------------------------------ + * freshclam: add defines for major return codes + +Fri Dec 7 11:09:10 EDT 2012 (morgan) +------------------------------------ + * performance statistics for bytecode hooks + +Thu Dec 6 12:36:21 EDT 2012 (morgan) +------------------------------------ + * windows-friendly bytecode stats + +Wed Dec 5 18:48:52 EDT 2012 (morgan) +------------------------------------ + * Add bytecode performance statistics + +Mon Dec 3 13:54:28 EDT 2012 (swebb) +------------------------------------- + * Change debugging output when outputting authenticode signatures to make + machine parsing easier + +Fri Nov 30 15:44:29 EDT 2012 (dar) +------------------------------------- + * bb #3415: minor config option changes + +Fri Nov 30 15:30:08 EDT 2012 (morgan) +------------------------------------- + * improve return code fidelity of vba_scandata + +Fri Nov 30 14:16:47 EDT 2012 (morgan) +------------------------------------- + * fix scan all segv handling file type MSOLE2 + +Fri Nov 30 14:15:34 EDT 2012 (dar) +------------------------------------- + * bb #6060: Add message for failed munmap() call + +Fri Nov 30 09:57:25 EDT 2012 (swebb) +------------------------------------- + * bb5638 - Add ability to completely disable PE authenticode verification. + +Wed Nov 28 19:15:44 EDT 2012 (morgan) +------------------------------------- + * bb#1891 add Mark Pizzolato patch to fix clamd buffer bookkeeping errors + +Wed Nov 28 17:11:07 2012 (dar) +------------------------------------- + * bb #5405: raise configurable option limit + +Tue Nov 27 17:48:50 2012 (morgan) +------------------------------------- + * for allscan mode, update usage messages and man pages + +Tue Nov 27 17:15:02 2012 (dar) +------------------------------------- + * bb #5405: Convert hard-coded maximum file sizes to configurable values with + defaults + +Tue Nov 27 16:17:31 2012 (dar) +------------------------------------- + * Refactoring cache_remove to engine instead of full context object + +Tue Nov 27 11:24:52 2012 (dar) +------------------------------------- + * cache_remove and cacheset_remove functions to support corrections of false + negatives + +Fri Nov 16 20:03:57 2012 (morgan) +------------------------------------- + * portability improvement for ping domain naming + +Thu Nov 15 10:50:22 2012 (morgan) +------------------------------------- + * change formatting of ip address dns label within freshclam ping-host names to hex ascii + +Wed Nov 14 16:12:21 2012 (morgan) +------------------------------------- + * widen freshclam domain arrays + +Fri Nov 9 17:08:50 2012 (morgan) +------------------------------------- + * bb5224: fix dereference of a null pointer reported by clang analyzer + +Fri Nov 9 15:31:51 2012 (morgan) +------------------------------------- + * fix dereference of a null pointer reported by clang analyzer + +Fri Nov 9 11:49:27 2012 (dar) +------------------------------------- + * libclamav: type tweak for CAB files + +Tue Nov 6 10:35:10 2012 (dar) +------------------------------------- + * bb#6038: fix compile warning in unit test code due to type mismatch + +Tue Nov 6 10:05:35 2012 (dar) +------------------------------------- + * bb #4516 - fix for mszip compression in CAB files + +Mon Nov 5 13:36:22 2012 (swebb) +------------------------------------- + * bb1823 - Enable linking with custom zlib + +Fri Nov 2 14:15:45 2012 (morgan) +------------------------------------- + * fixes cvd load error on some i386 builds caused by -D_FILE_OFFSET_BITS=64 and a long story + +Fri Nov 2 12:15:45 EDT 2012 (morgan) +---------------------------------- + * fixes cvd load error on some i386 builds caused by -D_FILE_OFFSET_BITS=64 + and a long story + +Fri Nov 2 10:18:53 EDT 2012 (swebb) +---------------------------------- + * bb5404 - freshclam.conf(5) should mention default proxy port. Added + requested text. + +Thu Nov 1 11:51:21 EDT 2012 (swebb) +---------------------------------- + * bb5638. Add documentation for new certs database. + +Thu Nov 1 11:35:42 2012 EDT 2012 (swebb) +---------------------------------- + * bb5638. Check if cert already exists in cache. + +Thu Nov 1 11:25:43 2012 EDT 2012 (dar) +---------------------------------- + * bb #5699: add filetype magic for JPEG2000 files + +Thu Nov 1 10:26:08 2012 EDT 2012 (swebb) +---------------------------------- + * bb5638. Parse the new cert db file. + +Wed Oct 31 11:46:13 EDT 2012 (dar) +---------------------------------- + * Fix signatures doc for PDF target + +Sat Oct 27 14:58:03 EDT 2012 (swebb) +---------------------------------- + * Change the cert management code to cache the trusted/revoked root certs in + the engine struct + +Thu Oct 18 14:12:58 EDT 2012 (morgan) +---------------------------------- + * add initial allscan/allmatch mode to libclamav, clamd, clamdscan, and + clamscan with unit tests + +Thu Oct 18 10:41:12 EDT 2012 (swebb) +---------------------------------- + * Rudimentary blacklisting + +Mon Sep 17 12:47:47 EDT 2012 (morgan) +---------------------------------- + * check return code from fstat(). If less than 0, log error message and + return error to caller, bb#5778 + +Mon Sep 17 11:19:33 EDT 2012 (olney) +---------------------------------- + * V 0.97.6 + +Fri Sep 14 18:57:41 EDT 2012 (dar) +---------------------------------- + * bb #5659: Log rotation in Windows wrapper + +Fri Sep 14 08:00:47 EDT 2012 (morgan) +---------------------------------- + * fix socket return code check, add logging on socket error bb#5775 + +Thu Sep 13 15:15:22 EDT 2012 (morgan) +---------------------------------- + * fix close(-1) identified by code analyzer(bb#5782). Also fixed other + problems and inconsistencies in how return codes were set in + scanner.c:command() function + +Wed Sep 12 22:04:00 EDT 2012 (dar) +---------------------------------- + * bb#5763: updates to freshclamwrap to distinguish from freshclam errors + +Fri Aug 31 09:51:25 EDT 2012 (swebb) +---------------------------------- + * bb#5724 - temporary files get detected by AVG heuristics + +Tue Aug 28 13:37:48 EDT 2012 (dar) +---------------------------------- + * bb#5700: implement and use fp_toradix_n() + +Fri Aug 24 16:18:20 EDT 2012 (dar) +---------------------------------- + * Stub mp_to_radixn calls + +Thu Aug 23 16:33:45 EDT 2012 (swebb) +---------------------------------- + * Force log rotation if LogFileMaxSize is non-zero + +Thu Aug 23 15:51:02 EDT 2012 (swebb) +---------------------------------- + * Add LogRotate option to sample freshclam config file + +Thu Aug 23 15:40:10 EDT 2012 (swebb) +---------------------------------- + * Allow freshclam to rotate logs + +Mon Aug 20 10:53:25 EDT 2012 (swebb) +---------------------------------- + * BB#5659 - 4.0.0.8955 Consumer - Created a 1GB+ Clamav.log by running + continious full scans for 10 hours. Add LogRotate config variable. + +Mon Aug 13 09:32:27 EDT 2012 (swebb) +---------------------------------- + * BB#5576 - Inconsistent use of ERROR and WARNING labels. Show WARNING + instead of ERROR. + +Fri Aug 10 14:40:42 EDT 2012 (swebb) +---------------------------------- + * Properly install sample config files + +Fri Aug 10 11:39:48 EDT 2012 (dar) +---------------------------------- + * clamscan: bb#5350 Add command-line option to suppress printing clean files + [so infected and errors get printed] + +Mon Jul 16 15:36:49 EDT 2012 (swebb) +---------------------------------- + * BB#3737 - Value too large for specified data type + +Tue Jul 3 12:06:18 EDT 2012 (swebb) +---------------------------------- + * BB#5409 - Fix condition to follow type change inside command() Mon Jul 2 10:40:50 EDT 2012 (dar) ---------------------------------- - * libclamav: bb#5252 - update #4, CL_EUNPACK and caching + * bb#5252 - update #4, CL_EUNPACK and caching Fri Jun 29 14:43:43 EDT 2012 (dar) ---------------------------------- - * libclamav: bb#5252 - update #3, more return code tweaks + * bb#5252 - update #3, more return code tweaks Tue Jun 26 12:23:44 EDT 2012 (dar) ---------------------------------- - * libclamav: bb#5252 - Limit exits on scanraw return codes + * bb#5252 - Limit exits on scanraw return codes + +Tue Jun 26 11:31:20 EDT 2012 (dar) +---------------------------------- + * bb#5356: Add PDF target Fri Jun 22 16:58:21 EDT 2012 (dar) ---------------------------------- - * libclamav: bb#5325 - Quiet Minix warning + * bb#5325 - Quiet Minix warning + +Thu Jun 21 11:04:13 EDT 2012 (dar) +---------------------------------- + * Fix buffer length truncation in iso_string - bb#5330 Mon Jun 18 17:51:49 EDT 2012 (dar) ---------------------------------- - * libclamav: bb#5252 - Update magic_scandesc filtering of scanraw return codes + * bb#5252 - Update magic_scandesc filtering of scanraw return codes Thu Jun 14 16:05:53 EDT 2012 (judge) ---------------------------------- - * win32: Add MSI projects. + * Add MSI projects. Wed Jun 13 12:00:55 EDT 2012 (olney) ---------------------------------- * V 0.97.5 -Fri Jun 1 13:15:50 EST 2012 (dar) +Fri Jun 1 13:15:50 EST 2012 (dar) +--------------------------------- + * libclamav: Scan output at end of truncated tar (bb#4625) + +Wed May 30 17:27:00 EST 2012 (dar) +---------------------------------- + * libclamav: Fix handling of tar file with malformed header + (bb#4627) + +Wed May 30 13:11:32 EST 2012 (edwin) +---------------------------------- + * enable distcheck on gcc 4.7 + +Fri May 25 13:05:40 EST 2012 (dar) +---------------------------------- + * libclamav: Scan chm with invalid handling (bb#4626) + +Tue May 15 20:22:57 EST 2012 (tk) +---------------------------------- + * error handling for --update-db=custom + +Tue May 15 19:48:49 EST 2012 (tk) +---------------------------------- + * add support for --update-db=custom + +Thu May 10 15:45:56 CEST 2012 (tk) +---------------------------------- + * freshclam: give custom dbs higher priority during update + +Tue May 8 15:31:51 CEST 2012 (acab) +------------------------------------ + * libclamav: detect read races and abort the scan with an error + (bb#4669) + +Tue Apr 10 17:04:20 CEST 2012 (tk) +---------------------------------- + * libclamav/pe.c: drop old header check (bb#4699) + +Wed Mar 31 18:08:01 CET 2012 (acab) +--------------------------------- + * add recovery mode to 7z ansi + +Wed Mar 14 22:52:48 CET 2012 (tk) +--------------------------------- + * V 0.97.4 + +Fri Mar 2 19:36:04 CET 2012 (tk) +--------------------------------- + * properly connect to ClamAuth after database reload + +Thu Mar 1 19:49:21 CET 2012 (tk) +--------------------------------- + * clamd: ScanOnAccess now supports ClamAuth on OS X + +Wed Feb 29 18:35:45 CET 2012 (acab) +----------------------------------- + * libclamav/bytecode.c: reset to BYTECODE_AUTO mode at db reload so that + we don't fail to re-enable or re-disable it again + (bb#3789) + +Wed Feb 29 17:02:18 EET 2012 (edwin) +------------------------------------ + * libclamav/bytecode_api*: Fix Sparc crash (bb #4324) + +Wed Feb 29 14:09:18 CET 2012 (acab) +----------------------------------- + * libclamav/pdf.c: scan the whole trailer for /H (bb#4315) + +Tue Feb 7 23:23:48 CET 2012 (tk) +--------------------------------- + * improved configuration, bugfixes + +Tue Feb 7 23:23:48 CET 2012 (tk) +--------------------------------- + * libclamav: fix bytecode whitelisting + +Wed Jan 25 18:56:44 CET 2012 (tk) +--------------------------------- + * libclamav: fix macro detection in OLE2BlockMacros (bb#4269) + +Mon Jan 23 13:55:11 CET 2012 (tk) +----------------------------------- + * vnode notification support + +Wed Jan 18 18:15:04 CET 2012 (edwin) +----------------------------------- + * restore map->real_len after scanning nested file. + +Wed Jan 18 17:06:36 CET 2012 (edwin) +----------------------------------- + * fmap_need_off_once_len: don't return NULL on EOF + +Wed Jan 18 15:54:57 CET 2012 (edwin) +----------------------------------- + * fix fmap_readn of 0 length: must return 0 + +Tue Jan 17 11:15:57 CET 2012 (acab) +----------------------------------- + * misc: performance improvement for HP-UX PA-RISC - patch from + Michael Pelletier (bb#3926) + +Wed Jan 11 14:33:52 CET 2012 (edwin) +----------------------------------- + * disable {MUL,SQR}{48,64}, takes too long to compile, and doesn't offer many + speedups. + +Wed Jan 11 13:14:38 CET 2012 (edwin) +----------------------------------- + * merged tomsfastmath branch: switch to tomsfastmath instead of tommath + +Tue Jan 10 19:42:28 CET 2012 (edwin) +----------------------------------- + * don't fail loadmscat + +Tue Jan 10 18:23:21 CET 2012 (acab) +----------------------------------- + * add W32S. prefix + +Tue Jan 10 17:43:02 CET 2012 (edwin) +----------------------------------- + * print name of .cat that fails to load + +Tue Jan 10 17:29:08 CET 2012 (edwin) +----------------------------------- + * call cli_checkfp (which calls cli_checkfp_pe()) in pre/post callbacks too. + +Tue Jan 10 15:31:49 CET 2012 (acab) +----------------------------------- + * don't authenticode unless we've got a security dir or cats loaded + +Tue Jan 10 10:35:00 CET 2012 (edwin) +----------------------------------- + * fmapify: fix htmlnorm crash. + +Mon Jan 9 18:53:45 CET 2012 (edwin) +----------------------------------- + * fix stack smashing on Win64. + +Mon Jan 9 17:06:07 CET 2012 (edwin) +----------------------------------- + * use tomsfastmath + +Mon Jan 9 16:06:03 CET 2012 (acab) +----------------------------------- + * add dconf for pe->catalog + +Mon Jan 9 16:44:30 CET 2012 (edwin) +----------------------------------- + * re-enable MP_64BIT as it speeds up mp_exptmod significantly. + +Mon Jan 9 12:05:34 CET 2012 (edwin) +----------------------------------- + * fmapify: fix NULL derefs in arj and 7z + +Sun Jan 8 19:26:06 CET 2012 (acab) +----------------------------------- + * libclamav: add preliminary support for MS Authenticode signatures, + both embedded and from cat files. Ideally, for windows + users, it should be sufficient to add the option + -d %WINDIR%\system32\{F750E6C3-38EE-11D1-85E5-00C04FC295EE} + to clamscan. + +Sun Jan 8 17:13:59 CET 2012 (acab) +----------------------------------- + * enable catalog based and embedded authenticode checking + +Sun Jan 8 03:19:29 CET 2012 (acab) +----------------------------------- + * cli_checkfp_pe + +Fri Jan 6 22:17:59 CET 2012 (acab) +----------------------------------- + * Restrict child cert key usages to those of the parent + +Fri Jan 6 20:06:29 CET 2012 (acab) +----------------------------------- + * check ext key usage + +Fri Jan 6 18:02:36 CET 2012 (acab) +----------------------------------- + * verify keyCertSign + +Thu Jan 5 19:20:34 CET 2012 (acab) +----------------------------------- + * parse usage related extensions + +Thu Jan 5 17:38:42 CET 2012 (edwin) +----------------------------------- + * fmapify: fix uninit var causing crash + +Thu Jan 5 13:14:53 CET 2012 (edwin) +----------------------------------- + * now that EC32 is using cli_readint we can't use EC32 on int16_t, or we'll crash. + +Wed Jan 4 18:51:48 CET 2012 (edwin) +----------------------------------- + * fix fmapify align on sis + +Wed Jan 4 18:36:37 CET 2012 (edwin) +----------------------------------- + * fmapify cab: fix alignment issue on sparc + +Wed Jan 4 16:16:19 CET 2012 (edwin) +----------------------------------- + * funmap is inline func now. + +Wed Jan 4 15:33:33 CET 2012 (edwin) +----------------------------------- + * workaround for unrar not supporting fmap. + +Tue Jan 3 14:12:01 CET 2012 (tk) +----------------------------------- + * add ISO file type sig + +Mon Jan 2 19:54:33 CET 2012 (tk) +----------------------------------- + * sync with daily.ftm + +Mon Jan 2 13:56:30 CET 2012 (acab) +----------------------------------- + * load_mscat parsing complete + +Thu Nov 3 22:42:28 CET 2011 (acab) +----------------------------------- + * libclamav/lzma_iface.c: stfu on (but still refuse) big lzma allocs + +Tue Nov 1 12:26:46 CET 2011 (acab) +----------------------------------- + * libclamav: Add 7z SFX support (b#3063) + +Fri Dec 30 16:07:53 CET 2011 (acab) +--------------------------------- + * embedded authenticode verification + +Thu Dec 29 11:53:07 CET 2011 (acab) +--------------------------------- + * refactor expect_obj + +Wed Dec 28 18:45:40 CET 2011 (acab) +--------------------------------- + * pkcs7 verification - wip + +Wed Dec 28 18:44:45 CET 2011 (acab) +--------------------------------- + * handle verification of plain hashes and asn1 der encoded hashes + +Tue Dec 27 19:26:26 CET 2011 (acab) +--------------------------------- + * verify pkcs#7 + +Sun Dec 25 03:49:38 CET 2011 (acab) +--------------------------------- + * TL;DR: a bunch of stuff + +Fri Dec 23 17:40:22 CET 2011 (acab) +--------------------------------- + * pdf: implement text extraction (bb #2022) + +Thu Dec 22 22:36:47 CET 2011 (acab) +--------------------------------- + * add md5rsa verification + +Thu Dec 22 20:57:43 CET 2011 (acab) +--------------------------------- + * root CAs, draft of rsa verification + +Thu Dec 22 16:47:40 CET 2011 (acab) +--------------------------------- + * read bn's as unsigned as tom and asn1 don't agree on sign convensions + +Wed Dec 21 22:52:46 CET 2011 (acab) +--------------------------------- + * crtmgr_add + +Wed Dec 21 19:52:34 CET 2011 (acab) +--------------------------------- + * add crtmgr + +Wed Dec 21 02:16:54 CET 2011 (acab) +--------------------------------- + * allow md5 signed cats + +Tue Dec 20 22:06:22 CET 2011 (acab) +--------------------------------- + * complete cat parsing + +Mon Dec 19 20:25:01 CET 2011 (acab) +--------------------------------- + * treat sha1encrypt as sha1sign + +Mon Dec 19 17:42:37 CET 2011 (acab) +--------------------------------- + * mscat parse complete + +Mon Dec 19 17:17:32 CET 2011 (acab) --------------------------------- - * libclamav: Scan output at end of truncated tar (bb#4625) + * extract hashes from cats -Wed May 30 17:27:00 EST 2012 (dar) ----------------------------------- - * libclamav: Fix handling of tar file with malformed header - (bb#4627) +Fri Dec 16 17:38:53 CET 2011 (acab) +--------------------------------- + * cats are slightly different -Fri May 25 13:05:40 EST 2012 (dar) ----------------------------------- - * libclamav: Scan chm with invalid handling (bb#4626) +Thu Dec 15 21:40:57 CET 2011 (tk) +--------------------------------- + * libclamav/matcher-ac.c: improve negation of single elements - handle + !(xx) (bb#4052) -Thu May 10 15:45:56 CEST 2012 (tk) ----------------------------------- - * freshclam: give custom dbs higher priority during update +Thu Dec 15 18:46:54 CET 2011 (acab +--------------------------------- + * partial crypto stuff, so it doesn't get lost -Tue May 8 15:31:51 CEST 2012 (acab) +Thu Dec 15 18:34:03 EET 2011 (edwin) ------------------------------------ - * libclamav: detect read races and abort the scan with an error - (bb#4669) + * libclamav/pdf.c: scan inside encrypted PDF streams and strings when user + password is empty (bb #2794). -Tue Apr 10 17:04:20 CEST 2012 (tk) ----------------------------------- - * libclamav/pe.c: drop old header check (bb#4699) +Thu Dec 15 17:56:08 CET 2011 (edwin) +--------------------------------- + * pdf: support PDF 1.5 Crypt filters. -Wed Mar 14 22:52:48 CET 2012 (tk) +Thu Dec 15 13:27:31 CET 2011 (edwin) --------------------------------- - * V 0.97.4 + * pdf: support for AESV3, V 5 security handler, and encrypted linearized PDFs. -Wed Feb 29 18:35:45 CET 2012 (acab) ------------------------------------ - * libclamav/bytecode.c: reset to BYTECODE_AUTO mode at db reload so that - we don't fail to re-enable or re-disable it again - (bb#3789) +Wed Dec 14 15:43:14 CET 2011 (edwin) +--------------------------------- + * scan inside encrypted PDF streams (bb #2794). -Tue Jan 17 11:15:57 CET 2012 (acab) ------------------------------------ - * misc: performance improvement for HP-UX PA-RISC - patch from - Michael Pelletier (bb#3926) +Mon Dec 12 16:27:52 CET 2011 (tk) +--------------------------------- + * register /dev/clamauth -Fri Nov 4 00:52:21 CET 2011 (acab) ------------------------------------ - * libclamav/pe.c: parse vinfo where varfileinfo occours before stringfileinfo - (bb#3062) +Fri Dec 9 16:41:05 CET 2011 (tk) +--------------------------------- + * libclamav/matcher.c: add new offset modifier SEx (bb#4008) -Fri Mar 2 19:48:36 CET 2012 (tk) +Wed Dec 7 23:35:12 CET 2011 (acab) --------------------------------- - * clamd: add support for on-access scanning on OS X with ClamAuth (beta) + * authenticode playground -Wed Feb 29 17:02:18 EET 2012 (edwin) ------------------------------------- - * libclamav/bytecode_api*: Fix Sparc crash (bb #4324) +Wed Dec 7 14:38:33 CET 2011 (tk) +--------------------------------- + * increase MAX_DEL_LOOKAHEAD -Tue Feb 7 23:23:48 CET 2012 (tk) +Wed Dec 7 12:50:20 CET 2011 (edwin) --------------------------------- - * libclamav: fix bytecode whitelisting + * Add sigtool --compare. -Wed Jan 25 18:56:44 CET 2012 (tk) +Thu Dec 1 19:09:58 CET 2011 (tk) --------------------------------- - * libclamav: fix macro detection in OLE2BlockMacros (bb#4269) + * OS X kernel driver Thu Dec 1 15:07:49 CET 2011 (tk) --------------------------------- * libclamav/readdb.c: allow comments in all db files (bb#3930) +Tue Nov 22 19:07:47 CET 2011 (acab) +----------------------------------- + * libclamav/io9660.c: properly dump to temp file + Fri Nov 18 15:23:50 CET 2011 (tk) --------------------------------- * libclamav/scanners.c: use lsigs when scanning vba data (bb#3922) @@ -118,14 +861,63 @@ ----------------------------------- * libclamav/matcher-hash.c: Fix SIGBUS on PA-RISC (big-endian) architectures (bb #3894). +Wed Nov 16 15:57:24 CET 2011 (tk) +--------------------------------- + * clamd: initial support for on-access scanner using fanotify (bb#2236) + +Mon Nov 14 21:22:26 CET 2011 (acab) +----------------------------------- + * libclamav: add preliminary support for iso9660 image files + +Fri Nov 4 18:32:50 CEST 2011 (tk) +---------------------------------- + * remove some dazuko/clamuko code - to be replaced with fanotify + +Fri Nov 4 00:52:21 CET 2011 (acab) +----------------------------------- + * libclamav/pe.c: parse vinfo where varfileinfo occours before stringfileinfo + (bb#3062) + +Thu Nov 3 22:43:49 CEST 2011 (acab) +---------------------------------- + * stfu on large lzma allocs + +Tue Nov 1 15:02:18 CEST 2011 (acab) +---------------------------------- + * handle 7z encryption detection albeit post extraction and blockencrypted + +Tue Nov 1 12:27:46 CEST 2011 (acab) +---------------------------------- + * add 7z SFX support - bb#3063 + +Wed Oct 26 00:05:17 CEST 2011 (edwin) +---------------------------------- + * more LLVM 3.0 API changes + +Mon Oct 17 19:40:34 CEST 2011 (tk) +---------------------------------- + * disable swf decoder in scanners.c + Mon Oct 17 18:04:30 CEST 2011 (tk) ---------------------------------- * V 0.97.3 +Mon Oct 17 15:03:08 CEST 2011 (tk) +---------------------------------- + * sync with daily.ftm + +Tue Oct 11 16:57:40 CEST 2011 (tk) +---------------------------------- + * configure: add --with-version + Mon Oct 10 14:41:48 CEST 2011 (tk) ---------------------------------- * freshclam/manager.c: fix error when compiling without DNS support (bb#3056) +Sat Oct 8 13:36:12 EEST 2011 (edwin) +------------------------------------- + * fix encrypted linearized pdf detection (bb #3364). + Sat Oct 8 12:19:49 EEST 2011 (edwin) ------------------------------------- * libclamav/pdf.c: flag and dump PDF objects with /Launch (bb #3514) @@ -134,22 +926,65 @@ ------------------------------------- * libclamav/bytecode.c,bytecode_api.c: fix recursion level crash (bb #3706). -Tue Aug 2 17:03:33 CEST 2011 (tk) +Fri Sep 30 11:48:49 EEST 2011 (edwin) +------------------------------------- + * Support LLVM 3.0 API + +Mon Sep 19 13:44:36 CEST 2011 (tk) ---------------------------------- - * docs: clarify behavior of --scan-*/Scan* options (bb#3134) + * freshclam: re-enable short-time blacklisting of mirrors on + connection errors -Mon Jul 25 16:09:19 EEST 2011 (edwin) -------------------------------------- - * libclamav/bytecode_vm.c: fix opcode 20 error (bb #3100) +Fri Sep 16 19:29:35 CEST 2011 (acab) +---------------------------------- + * c4w: drop sigload_cb spam + +Fri Sep 16 16:17:52 CEST 2011 (tk) +---------------------------------- + * freshclam: disable load balancing in further download attempts + +Fri Sep 16 12:47:10 CEST 2011 (acab) +------------------------------------ + * libclamav: properly pass custom flag to sigload_cb + * c4w: honor custom sigs in mindefs + (bb#3509 + bb#3510) Thu Sep 15 14:44:11 CEST 2011 (tk) ---------------------------------- * freshclam: fix pidfile removal (bb#3499) +Wed Sep 14 16:29:49 CEST 2011 (acab) +---------------------------------- + * c4w: reoder ftypes + +Mon Sep 12 16:29:22 CEST 2011 (tk) +---------------------------------- + * freshclam: add new option PrivateMirror (bb#3058) + +Thu Sep 8 18:09:48 EEST 2011 (acab) +------------------------------------- + * -m 'yo dawg i heard you like commits so we put a commit into your commit' + +Thu Sep 8 16:38:02 EEST 2011 (acab) +------------------------------------- + * C4W: allow switching mindef flag on reload + +Mon Aug 22 16:58:48 EEST 2011 (edwin) +------------------------------------- + * clamscan: new flag --archive-verbose + +Mon Aug 22 15:22:55 EEST 2011 (tk) +------------------------------------- + * archive metadata callback + Sun Aug 21 17:05:24 EEST 2011 (edwin) ------------------------------------- * libclamav/pdf.c: fix incorrect blocking of some encrypted PDF with empty user passwords. (bb #3364) +Mon Aug 8 11:32:31 CEST 2011 (tk) +---------------------------------- + * freshclam: add new option --update-db + Wed Aug 3 15:41:28 CEST 2011 (tk) ---------------------------------- * sigtool/sigtool.c: fix calculation of max signature length @@ -157,6 +992,15 @@ Tue Aug 2 17:03:33 CEST 2011 (tk) ---------------------------------- * V 0.97.2 + * docs: clarify behavior of --scan-*/Scan* options (bb#3134) + +Mon Jul 25 17:14:39 EEST 2011 (tk) +------------------------------------- + * sync in 0.97.2 changes + +Mon Jul 25 16:09:19 EEST 2011 (edwin) +------------------------------------- + * libclamav/bytecode_vm.c: fix opcode 20 error (bb #3100) Mon Jul 25 14:33:59 CEST 2011 (acab) ------------------------------------ @@ -178,11 +1022,225 @@ ------------------------------------ * libclamav/lzma_iface.c: shut up huge alloc warns for 7z/lzma (bb#2913) +Mon Jul 4 17:00:55 2011 CEST 2011 (edwin) +------------------------------------ + * fix wrong interaction between prescan_cb caching and postscan_cb + Thu Jun 30 14:24:34 EEST 2011 (edwin) ------------------------------------- * libclamav/c++/bytecode2llvm.cpp: fix use of unaddressable data in bytecode_watchdog. Thanks to Michael Scheidell for providing feedback on this bug. +Wed Jun 29 16:39:56 CEST 2011 (acab) +------------------------------------ + * cw4: track number of loaded sigs, provide retieval api + +Wed Jun 29 14:28:03 CEST 2011 (acab) +------------------------------------ + * c4w: fix filetype matching, also add spam + +Mon Jun 20 15:08:38 CEST 2011 (tk) +------------------------------------ + * update SWF entries + +Mon Jun 20 15:02:03 CEST 2011 (tk) +------------------------------------ + * reserve flevel 6X for 0.97 patch releases + +Sat Jun 18 17:44:42 CEST 2011 (acab) +------------------------------------ + * clamav-milter: add config option "SupportMultipleRecipients" (bb#2879) + +Sat Jun 18 01:44:38 CEST 2011 (edwin) +------------------------------------ + * UPgrade lzma SDK to version 9.20 + * Also fmapify + +Fri Jun 17 23:20:01 CEST 2011 (edwin) +------------------------------------ + * export cl_fmap_close + +Fri Jun 17 23:14:36 CEST 2011 (edwin) +------------------------------------ + * cli_map_scandesc convenience API + +Fri Jun 17 CEST 2011 (edwin) +------------------------------------ + * Introduce cli_map_scandesc to scan a portion of the existing file + * And switch CPIO, MACHO, and SWF to use it. + +Fri Jun 17 20:03:44 CEST 2011 (edwin) +------------------------------------ + * cli_utf16_to_utf8 + +Thu Jun 16 16:30:36 CEST 2011 (acab) +------------------------------------ + * fmapify jpeg_exploit + +Wed Jun 15 20:50:42 CEST 2011 (acab) +------------------------------------ + * fmaify cli_scan_riff + +Wed Jun 15 15:55:01 CEST 2011 (acab) +------------------------------------ + * c4w: export filetype + +Wed Jun 15 13:44:44 CEST 2011 (edwin) +------------------------------------ + * specify type of constant + +Wed Jun 15 12:00:23 CEST 2011 (acab) +------------------------------------ + * fmapify mydoom + +Wed Jun 15 12:32:47 CEST 2011 (edwin) +------------------------------------ + * export filetype cb + +Wed Jun 15 12:21:50 CEST 2011 (edwin) +------------------------------------ + * testcase for cl_scan APIs + +Wed Jun 15 04:50:54 CEST 2011 (acab) +------------------------------------ + * c4w: add Scan_GetFileType - untested + +Tue Jun 14 22:54:44 CEST 2011 (edwin) +------------------------------------ + * fix mem API of new fmap + +Tue Jun 14 21:39:31 CEST 2011 (acab) +------------------------------------ + * upgrade sigui api + +Tue Jun 14 22:35:03 CEST 2011 (edwin) +------------------------------------ + * unit tests for new fmap scan API + +Tue Jun 14 21:49:39 CEST 2011 (edwin) +------------------------------------ + * fmap scan API + +Tue Jun 14 21:26:59 CEST 2011 (edwin) +------------------------------------ + * Make both handle and memory based fmap API available always + +Tue Jun 14 21:19:01 CEST 2011 (edwin) +------------------------------------ + * implement fmap Win32 API in terms of cl_fmap_open_memory + +Tue Jun 14 21:15:23 CEST 2011 (edwin) +------------------------------------ + * implement fmap descriptor API in terms of cl_fmap_open_handle API + +Tue Jun 14 21:06:16 CEST 2011 (edwin) +------------------------------------ + * fmap: use pread_cb instead of direct pread + +Tue Jun 14 20:59:30 CEST 2011 (edwin) +------------------------------------ + * fmap: use the vtable for win32 code too + +Tue Jun 14 20:33:15 2011 CEST 2011 (edwin) +------------------------------------ + * prepare for new fmap API + +Tue Jun 14 20:19:25 CEST 2011 (edwin) +------------------------------------ + * draft new fmap scan API + +Tue Jun 14 19:04:02 CEST 2011 (acab) +------------------------------------ + * make the sigload callback be aware of custom sigs + +Tue Jun 14 18:48:50 CEST 2011 (edwin) +------------------------------------ + * provide fmap_fd() accessor to fd. + +Tue Jun 14 17:00:06 CEST 2011 (acab) +------------------------------------ + * rework scan callbacks + +Tue Jun 14 11:11:05 CEST 2011 (acab) +------------------------------------ + * fmapify matcher/magic_scan partially + +Tue Jun 14 03:26:30 CEST 2011 (acab) +------------------------------------ + * add filetype clcb + +Mon Jun 13 16:01:59 CEST 2011 (edwin) +------------------------------------ + * fmapify two trivial cases in magic_scan + +Mon Jun 13 15:54:44 CEST 2011 (edwin) +------------------------------------ + * fmapify scan_structured + +Mon Jun 13 15:50:32 CEST 2011 (edwin) +------------------------------------ + * fmapify sis + +Mon Jun 13 12:12:01 CEST 2011 (edwin) +------------------------------------ + * fmapify cryptff + +Mon Jun 13 12:03:26 CEST 2011 (edwin) +------------------------------------ + * fmapify screnc + +Mon Jun 13 11:57:59 CEST 2011 (edwin) +------------------------------------ + * fmapify tar + +Mon Jun 13 11:55:34 CEST 2011 (edwin) +------------------------------------ + * fmap: return -1 on failed off_once_len + +Mon Jun 13 11:47:41 CEST 2011 (edwin) +------------------------------------ + * fmapify tnef + +Mon Jun 13 11:28:32 CEST 2011 (edwin) +------------------------------------ + * fmapify Mach-O and CPIO + +Sun Jun 12 10:07:16 CEST 2011 (edwin) +------------------------------------ + * logg_size is unsigned + +Fri Jun 10 21:22:46 CEST 2011 (edwin) +------------------------------------ + * fmapify cli_scanbzip + +Fri Jun 10 20:17:19 CEST 2011 (edwin) +------------------------------------ + * mbox already fmapified, just drop descriptor + +Fri Jun 10 19:54:43 CEST 2011 (acab) +------------------------------------ + * fmapify unarj + +Fri Jun 10 19:09:38 CEST 2011 (acab) +------------------------------------ + * fmapify msexpand + +Fri Jun 10 17:02:18 CEST 2011 (edwin) +------------------------------------ + * fmapify RTF + +Fri Jun 10 17:02:10 CEST 2011 (edwin) +------------------------------------ + * add 2 new EOF-safe fmap APIs + +Thu Jun 9 16:33:37 CEST 2011 (acab) +------------------------------------ + * port chm and mspack to fmap + +Wed Jun 8 15:52:37 CEST 2011 (acab) +------------------------------------ + * port cab to fmap #1 + Tue Jun 7 12:03:19 EEST 2011 (edwin) ------------------------------------ * libclamav/phishcheck.c: fix safebrowsing detection on certain URLs @@ -195,14 +1253,28 @@ ------------------------------------ * libclamav/mew.c: harden boundary check on e8/e9 fixup +Wed Jun 8 14:57:40 CEST 2011 (acab) +------------------------------------ + * libclamav/nsis, libclamav/chmunpack.[ch], libclamav/scanners.c: + don't remap in NSIS, CHM (bb#2838) + Thu May 26 14:17:52 CEST 2011 (acab) ------------------------------------ * libclamav/matcher-hash.c: in hm_sort don't swap an item with itself (bb#2818) +Thu May 12 15:53:13 CEST 2011 (edwin) +---------------------------------- + * Encrypted.PDF -> Heuristics.Encrypted.PDF + Thu May 12 13:01:56 CEST 2011 (tk) ---------------------------------- * freshclam/manager.c: fix return code of Rfc2822DateTime() (bb#2809) +Tue May 10 21:25:37 CEST 2011 (tk) +---------------------------------- + * sigtool: add support for building unsigned dbs (--unsigned) + * libclamav: handle unsigned db files (.cud) + Sat May 7 18:05:23 EEST 2011 (edwin) ------------------------------------- * libclamav/pdf.c: better detection for encrypted PDFs (bb #2448) @@ -211,6 +1283,10 @@ ------------------------------------ * libclamav/c++: add support for building with external LLVM 2.9, and drop external 2.8 support +Fri May 6 14:34:31 EEST 2011 (edwin) +------------------------------------ + * add clambc manpage (bb #2551) + Thu May 5 01:07:57 CEST 2011 (acab) ------------------------------------ * clamd: log request ip address for instream scans #bb2592 @@ -224,6 +1300,15 @@ --------------------------------- * sigtool: properly normalize html files (bb#2764) +Tue May 3 16:16:53 PDT 2011 (tk) +--------------------------------- + * sigtool/sigtool.c: fix formatting of hash dbs (bb#2765) + +Tue May 3 20:45:30 PDT 2011 (edwin) +--------------------------------- + * LLVM: cherry-pick upstream debug crashfix + This fixes a crash when running clambc --debug + Tue May 3 16:14:27 PDT 2011 (tk) --------------------------------- * sigtool/sigtool.c: fix formatting of hash dbs (bb#2765) @@ -232,6 +1317,65 @@ ---------------------------------- * freshclam: add mirror statistics mechanism +Mon Apr 18 17:23:10 CEST 2011 (acab) +------------------------------------ + * clamd, win32: Conversion to UTF8 is hopefully completefinal. + See win32/README for important changes! (bb#2343) + +Sun Apr 17 16:09:28 CEST 2011 (acab) +------------------------------------ + * win32/compat: more UTF8 stuff. Things *appear* to be working ok now. + +Sat Apr 16 18:56:40 CEST 2011 (acab) +------------------------------------ + * libclamav, shared: Preliminary win32 conversion to UTF8 + +Sat Apr 16 12:50:49 CEST 2011 (edwin) +------------------------------------ + * c4w: disable perf logging when verbose logging is off + +Fri Apr 15 13:43:45 EEST 2011 (edwin) +------------------------------------- + * bytecode: reuse watchdog thread + +Fri Apr 15 10:58:26 EEST 2011 (edwin) +------------------------------------- + * bb #2719 + CL_NO* is all in shared/ and libclamav/, the rest don't need to define it. + Also include misc.h for misc_libclamav.c + +Thu Apr 14 21:29:36 EEST 2011 (edwin) +------------------------------------- + * libclamav/others.c: make sure TLS key is initializer (bb #2588). + Thanks to Cameron Brown for the detailed analysis of the bug. + +Thu Apr 14 14:54:21 EEST 2011 (edwin) +------------------------------------- + * build system: use automake subdir-objects (bb #2369) + +Thu Apr 14 13:19:38 EEST 2011 (edwin) +------------------------------------- + * configure: check for enable_extended_FILE_stdio (bb #2542) + +Tue Apr 12 00:32:32 EEST 2011 (edwin) +------------------------------------- + * matcher-ac optimization: + eliminate the IS_LEAF branch from the scanner: + - concatenate the leaf's list with the failtarget's list + - copy the trans pointer from the failtarget + - make sure we only free the trans table once in ac_free (because we have more + than 1 ->trans pointers that points to same place now) + + This results in ~5% speed improvement. + +Thu Apr 11 13:19:38 EEST 2011 (edwin) +------------------------------------- + * matcher-ac: optimize the not-taken case + +Mon Apr 11 17:22:46 CEST 2011 (tk) +---------------------------------- + * libclamav: add basic GIF validator + Sat Apr 9 17:20:35 CEST 2011 (acab) ------------------------------------ * libclamav/pe_icons.c: don't sigbus on sparc (bb#2695) @@ -240,6 +1384,27 @@ ------------------------------------ * libclamav/pe.c: reset corrupted status before bytecode hooks (bb#2544) +Fri Apr 8 18:24:07 CEST 2011 (tk) +---------------------------------- + * add dconf for swf + +Thu Apr 7 18:17:56 CEST 2011 (tk) +---------------------------------- + * libclamav: add PNG validator based on pngcheck + +Tue Apr 5 16:33:15 CEST 2011 (tk) +---------------------------------- + * libclamav: add basic JPEG validator + +Wed Mar 30 16:02:00 CEST 2011 (tk) +---------------------------------- + * libclamav/swf.c: scan images and binary blobs + +Mon Mar 28 20:24:40 CEST 2011 (tk) +---------------------------------- + * libclamav: add skeleton code for SWF parser + * libclamav/others.h: bump f-level + Thu Mar 17 17:46:09 CET 2011 (tk) --------------------------------- * sigtool, freshclam: put .info on top of container to speed up loading @@ -252,10 +1417,34 @@ --------------------------------- * sigtool: allow arbitrary names for --build +Mon Mar 14 20:29:27 CET 2011 (edwin) +--------------------------------- + * fmap: reduce amount of mmap() calls in fmap_aging. + +Fri Mar 11 20:30:45 CET 2011 (tk) +--------------------------------- + * cosmetics (bb#2207) + +Thu Mar 10 15:54:05 CET 2011 (tk) +--------------------------------- + * libclamav: optimize handling of {n} wildcards (bb#1796) + Wed Mar 9 15:42:50 CET 2011 (tk) --------------------------------- * clamdscan: fix file exclusion (bb#2579) +Fri Mar 4 18:45:41 CET 2011 (acab) +----------------------------------- + * c4w: limit cloud queries to certain file types + +Fri Mar 4 18:26:44 CET 2011 (acab) +----------------------------------- + * libclamav: Extend prescan_cb with file types + +Thu Mar 3 17:26:34 CET 2011 (tk) +----------------------------------- + * document --debug (bb#2589) + Mon Feb 28 21:46:50 CET 2011 (tk) --------------------------------- * clamd: add new option ClamukoExcludeUID (bb#2260) @@ -283,19 +1472,63 @@ --------------------------------- * sigtool/sigtool.c: improve handling of bytecode.info (bb#2292) -Thu Apr 14 21:29:36 EEST 2011 (edwin) -------------------------------------- - * libclamav/others.c: make sure TLS key is initializer (bb #2588). - Thanks to Cameron Brown for the detailed analysis of the bug. +Mon Feb 14 19:19:20 CET 2011 (edwin) +--------------------------------- + * Add some performance measurement code. -Thu Apr 14 13:19:38 EEST 2011 (edwin) -------------------------------------- - * configure: check for enable_extended_FILE_stdio (bb #2542) +Mon Feb 14 10:13:43 CET 2011 (edwin) +--------------------------------- + * bytecode: successfully skip bytecodes that use unknown APIs + When unknown APIs are used, the bytecode is skipped. + However we were still checking that the number of loaded functions is correct, + and of course we were failing because when skipping the number of loaded functions is + 0. Fix this by not checking the number of loaded functions when skipping a + bytecode. Fri Feb 11 13:16:41 CET 2011 (tk) --------------------------------- * sigtool/sigtool.c: handle all signature formats with --(list|find)-sigs (bb#2534) +Thu Feb 10 15:05:44 CET 2011 (edwin) +--------------------------------- + * c4w: fix negative time + +Thu Feb 10 14:34:29 CET 2011 (edwin) +--------------------------------- + * c4w: another build error + +Thu Feb 10 14:13:18 CET 2011 (edwin) +--------------------------------- + * c4w: fix some build errors + +Thu Feb 10 13:42:39 CET 2011 (edwin) +--------------------------------- + * c4w: add more time measurement + +Wed Feb 9 22:45:52 CET 2011 (edwin) +--------------------------------- + * sigui: add .mo files + +Wed Feb 9 22:31:41 CET 2011 (edwin) +--------------------------------- + * sigui: enable locales + +Wed Feb 9 16:13:56 CET 2011 (edwin) +--------------------------------- + * Add .pot file + +Wed Feb 9 14:49:22 CET 2011 (edwin) +--------------------------------- + * sigui: add HU translation + +Wed Feb 9 14:46:53 CET 2011 (edwin) +--------------------------------- + * Add gettext rules to Makefile + +Wed Feb 9 14:46:32 CET 2011 (edwin) +--------------------------------- + * sigui: fix translatable strings. + Tue Feb 8 02:42:11 CET 2011 (acab) ----------------------------------- * libclamav/mpoo.c: Make solaris linker happy - Thanks to John Kendall diff -Nru clamav-0.97.8+dfsg/clamav-config.h.in clamav-0.98.1+dfsg/clamav-config.h.in --- clamav-0.97.8+dfsg/clamav-config.h.in 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamav-config.h.in 2014-01-13 17:02:34.000000000 +0000 @@ -1,4 +1,4 @@ -/* clamav-config.h.in. Generated from configure.in by autoheader. */ +/* clamav-config.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD @@ -12,7 +12,7 @@ /* "build clamd" */ #undef BUILD_CLAMD -/* enable ClamAuth */ +/* use ClamAuth */ #undef CLAMAUTH /* name of the clamav group */ @@ -21,9 +21,6 @@ /* name of the clamav user */ #undef CLAMAVUSER -/* enable clamuko */ -#undef CLAMUKO - /* enable debugging */ #undef CL_DEBUG @@ -90,6 +87,9 @@ /* "default FD_SETSIZE value" */ #undef DEFAULT_FD_SETSIZE +/* use fanotify */ +#undef FANOTIFY + /* whether _XOPEN_SOURCE needs to be defined for fd passing to work */ #undef FDPASS_NEED_XOPEN @@ -232,6 +232,9 @@ /* Define to '1' if you have the curses.h library */ #undef HAVE_LIBPDCURSES +/* Define to 1 if you have the 'libxml2' library (-lxml2). */ +#undef HAVE_LIBXML2 + /* Define to 1 if you have the `z' library (-lz). */ #undef HAVE_LIBZ @@ -329,6 +332,9 @@ /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF +/* enable stat64 */ +#undef HAVE_STAT64 + /* Define to 1 if you have the header file. */ #undef HAVE_STDBOOL_H @@ -359,9 +365,6 @@ /* Define to 1 if sysconf(_SC_PAGESIZE) is available */ #undef HAVE_SYSCONF_SC_PAGESIZE -/* link against system-wide libtommath */ -#undef HAVE_SYSTEM_TOMMATH - /* Define to 1 if you have the header file. */ #undef HAVE_SYS_DL_H @@ -386,6 +389,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIMES_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H @@ -425,6 +431,9 @@ /* The archive extension */ #undef LT_LIBEXT +/* The archive prefix */ +#undef LT_LIBPREFIX + /* Define to the extension used for runtime loadable modules, say, ".so". */ #undef LT_MODULE_EXT @@ -436,6 +445,9 @@ */ #undef LT_OBJDIR +/* Define to the shared library suffix, say, ".dylib". */ +#undef LT_SHARED_EXT + /* disable assertions */ #undef NDEBUG @@ -463,6 +475,9 @@ /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME +/* Define to the home page for this package. */ +#undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION @@ -551,13 +566,14 @@ nothing if this is not supported. Do not define if restrict is supported directly. */ #undef restrict -/* Work around a bug in Sun C++: it does not support _Restrict, even - though the corresponding Sun C compiler does, which causes - "#define restrict _Restrict" in the previous line. Perhaps some future - version of Sun C++ will work with _Restrict; if so, it'll probably - define __RESTRICT, just as Sun C does. */ +/* Work around a bug in Sun C++: it does not support _Restrict or + __restrict__, even though the corresponding Sun C compiler ends up with + "#define restrict _Restrict" or "#define restrict __restrict__" in the + previous line. Perhaps some future version of Sun C++ will work with + restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ #if defined __SUNPRO_CC && !defined __RESTRICT # define _Restrict +# define __restrict__ #endif /* Define to "int" if does not define. */ diff -Nru clamav-0.97.8+dfsg/clamav-milter/clamav-milter.c clamav-0.98.1+dfsg/clamav-milter/clamav-milter.c --- clamav-0.97.8+dfsg/clamav-milter/clamav-milter.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamav-milter/clamav-milter.c 2014-01-13 17:02:18.000000000 +0000 @@ -161,6 +161,8 @@ logg_time = optget(opts, "LogTime")->enabled; logg_size = optget(opts, "LogFileMaxSize")->numarg; logg_verbose = mprintf_verbose = optget(opts, "LogVerbose")->enabled; + if (logg_size) + logg_rotate = optget(opts, "LogRotate")->enabled; if((opt = optget(opts, "LogFile"))->enabled) { logg_file = opt->strarg; @@ -241,6 +243,8 @@ addxvirus = 2; } } + + multircpt = optget(opts, "SupportMultipleRecipients")->enabled; if(!(my_socket = optget(opts, "MilterSocket")->strarg)) { logg("!Please configure the MilterSocket directive\n"); diff -Nru clamav-0.97.8+dfsg/clamav-milter/clamfi.c clamav-0.98.1+dfsg/clamav-milter/clamfi.c --- clamav-0.97.8+dfsg/clamav-milter/clamfi.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamav-milter/clamfi.c 2014-01-13 17:02:18.000000000 +0000 @@ -58,6 +58,7 @@ int addxvirus = 0; /* 0 - don't add | 1 - replace | 2 - add */ char xvirushdr[255]; char *viraction = NULL; +int multircpt = 1; #define LOGINF_NONE 0 #define LOGINF_BASIC 1 @@ -75,6 +76,7 @@ char *msg_subj; char *msg_date; char *msg_id; + char **recipients; int local; int main; int alt; @@ -84,6 +86,7 @@ unsigned int gotbody; unsigned int scanned_count; unsigned int status_count; + unsigned int nrecipients; uint32_t sendme; char buffer[CLAMFIBUFSZ]; }; @@ -137,8 +140,14 @@ if(cf->msg_subj) free(cf->msg_subj); if(cf->msg_date) free(cf->msg_date); if(cf->msg_id) free(cf->msg_id); + if(multircpt && cf->nrecipients) { + while(cf->nrecipients) { + cf->nrecipients--; + free(cf->recipients[cf->nrecipients]); + } + free(cf->recipients); + } smfi_setpriv(ctx, NULL); - free(cf); } @@ -215,6 +224,7 @@ if(!cf->totsz && cf->all_whitelisted) { logg("*Skipping scan (all destinations whitelisted)\n"); nullify(ctx, cf, CF_NONE); + free(cf); return SMFIS_ACCEPT; } @@ -234,12 +244,18 @@ if(!strcasecmp(headerf, "X-Virus-Status")) cf->status_count++; } - if((ret = sendchunk(cf, (unsigned char *)headerf, strlen(headerf), ctx)) != SMFIS_CONTINUE) - return ret; - if((ret = sendchunk(cf, (unsigned char *)": ", 2, ctx)) != SMFIS_CONTINUE) - return ret; - if(headerv && (ret = sendchunk(cf, (unsigned char *)headerv, strlen(headerv), ctx)) != SMFIS_CONTINUE) - return ret; + if((ret = sendchunk(cf, (unsigned char *)headerf, strlen(headerf), ctx)) != SMFIS_CONTINUE) { + free(cf); + return ret; + } + if((ret = sendchunk(cf, (unsigned char *)": ", 2, ctx)) != SMFIS_CONTINUE) { + free(cf); + return ret; + } + if(headerv && (ret = sendchunk(cf, (unsigned char *)headerv, strlen(headerv), ctx)) != SMFIS_CONTINUE) { + free(cf); + return ret; + } return sendchunk(cf, (unsigned char *)"\r\n", 2, ctx); } @@ -273,6 +289,7 @@ struct CLAMFI *cf; char *reply; int len, ret; + unsigned int crcpt; if(!(cf = (struct CLAMFI *)smfi_getpriv(ctx))) return SMFIS_CONTINUE; /* whatever */ @@ -322,15 +339,25 @@ if(loginfected & LOGCLN_FULL) { const char *id = smfi_getsymval(ctx, "{i}"); const char *from = smfi_getsymval(ctx, "{mail_addr}"); - const char *to = smfi_getsymval(ctx, "{rcpt_addr}"); const char *msg_subj = makesanehdr(cf->msg_subj); const char *msg_date = makesanehdr(cf->msg_date); const char *msg_id = makesanehdr(cf->msg_id); - logg("~Clean message %s from <%s> to <%s> with subject '%s' message-id '%s' date '%s'\n", id, from, to, msg_subj, msg_id, msg_date); + if(multircpt && cf->nrecipients) { + for(crcpt = 0; crcpt < cf->nrecipients; crcpt++) + logg("~Clean message %s from <%s> to <%s> with subject '%s' message-id '%s' date '%s'\n", id, from, cf->recipients[crcpt], msg_subj, msg_id, msg_date); + } else { + const char *to = smfi_getsymval(ctx, "{rcpt_addr}"); + logg("~Clean message %s from <%s> to <%s> with subject '%s' message-id '%s' date '%s'\n", id, from, to ? to : HDR_UNAVAIL, msg_subj, msg_id, msg_date); + } } else if(loginfected & LOGCLN_BASIC) { const char *from = smfi_getsymval(ctx, "{mail_addr}"); - const char *to = smfi_getsymval(ctx, "{rcpt_addr}"); - logg("~Clean message from <%s> to <%s>\n", from, to); + if(multircpt && cf->nrecipients) { + for(crcpt = 0; crcpt < cf->nrecipients; crcpt++) + logg("~Clean message from <%s> to <%s>\n", from, cf->recipients[crcpt]); + } else { + const char *to = smfi_getsymval(ctx, "{rcpt_addr}"); + logg("~Clean message from <%s> to <%s>\n", from, to ? to : HDR_UNAVAIL); + } } ret = CleanAction(ctx); } else if (len>7 && !strcmp(reply + len - 7, " FOUND\n")) { @@ -341,6 +368,8 @@ reply[len-7] = '\0'; vir = strrchr(reply, ' '); if(vir) { + unsigned int have_multi = (multircpt != 0 && cf->nrecipients); + unsigned int lst_rcpt = (have_multi * (cf->nrecipients - 1)) + 1; vir++; if(rejectfmt) @@ -353,76 +382,78 @@ add_x_header(ctx, msg, cf->scanned_count, cf->status_count); } - if(loginfected || viraction) { - const char *from = smfi_getsymval(ctx, "{mail_addr}"); - const char *to = smfi_getsymval(ctx, "{rcpt_addr}"); - - if(!from) from = HDR_UNAVAIL; - if(!to) to = HDR_UNAVAIL; - if((loginfected & LOGINF_FULL) || viraction) { - const char *id = smfi_getsymval(ctx, "{i}"); - const char *msg_subj = makesanehdr(cf->msg_subj); - const char *msg_date = makesanehdr(cf->msg_date); - const char *msg_id = makesanehdr(cf->msg_id); + for(crcpt = 0; crcpt < lst_rcpt; crcpt++) { + if(loginfected || viraction) { + const char *from = smfi_getsymval(ctx, "{mail_addr}"); + const char *to = have_multi ? cf->recipients[crcpt] : smfi_getsymval(ctx, "{rcpt_addr}"); + + if(!from) from = HDR_UNAVAIL; + if(!to) to = HDR_UNAVAIL; + if((loginfected & LOGINF_FULL) || viraction) { + const char *id = smfi_getsymval(ctx, "{i}"); + const char *msg_subj = makesanehdr(cf->msg_subj); + const char *msg_date = makesanehdr(cf->msg_date); + const char *msg_id = makesanehdr(cf->msg_id); - if(!id) id = HDR_UNAVAIL; + if(!id) id = HDR_UNAVAIL; - if(loginfected & LOGINF_FULL) - logg("~Message %s from <%s> to <%s> with subject '%s' message-id '%s' date '%s' infected by %s\n", id, from, to, msg_subj, msg_id, msg_date, vir); + if(loginfected & LOGINF_FULL) + logg("~Message %s from <%s> to <%s> with subject '%s' message-id '%s' date '%s' infected by %s\n", id, from, to, msg_subj, msg_id, msg_date, vir); - if(viraction) { - char er[256]; - char *e_id = strdup(id); - char *e_from = strdup(from); - char *e_to = strdup(to); - char *e_msg_subj = strdup(msg_subj); - char *e_msg_date = strdup(msg_date); - char *e_msg_id = strdup(msg_id); - pid_t pid; - - logg("*VirusEvent: about to execute '%s' '%s' '%s' '%s' '%s' '%s' '%s' '%s'\n", viraction, vir, e_id, e_from, e_to, e_msg_subj, e_msg_id, e_msg_date); - - pthread_mutex_lock(&virusaction_lock); - pid = fork(); - if(!pid) { - char * args[9]; /* avoid element is not computable at load time warns */ - args[0]= viraction; - args[1] = vir; - args[2] = e_id; - args[3] = e_from; - args[4] = e_to; - args[5] = e_msg_subj; - args[6] = e_msg_id; - args[7] = e_msg_date; - args[8] = NULL; - exit(execvp(viraction, args)); - } else if(pid > 0) { - int wret; - pthread_mutex_unlock(&virusaction_lock); - while((wret = waitpid(pid, &ret, 0)) == -1 && errno == EINTR); - if(wret<0) - logg("!VirusEvent: waitpid() failed: %s\n", cli_strerror(errno, er, sizeof(er))); - else { - if(WIFEXITED(ret)) - logg("*VirusEvent: child exited with code %d\n", WEXITSTATUS(ret)); - else if(WIFSIGNALED(ret)) - logg("*VirusEvent: child killed by signal %d\n", WTERMSIG(ret)); - else - logg("*VirusEvent: child lost\n"); + if(viraction) { + char er[256]; + char *e_id = strdup(id); + char *e_from = strdup(from); + char *e_to = strdup(to); + char *e_msg_subj = strdup(msg_subj); + char *e_msg_date = strdup(msg_date); + char *e_msg_id = strdup(msg_id); + pid_t pid; + + logg("*VirusEvent: about to execute '%s' '%s' '%s' '%s' '%s' '%s' '%s' '%s'\n", viraction, vir, e_id, e_from, e_to, e_msg_subj, e_msg_id, e_msg_date); + + pthread_mutex_lock(&virusaction_lock); + pid = fork(); + if(!pid) { + char * args[9]; /* avoid element is not computable at load time warns */ + args[0]= viraction; + args[1] = vir; + args[2] = e_id; + args[3] = e_from; + args[4] = e_to; + args[5] = e_msg_subj; + args[6] = e_msg_id; + args[7] = e_msg_date; + args[8] = NULL; + exit(execvp(viraction, args)); + } else if(pid > 0) { + int wret; + pthread_mutex_unlock(&virusaction_lock); + while((wret = waitpid(pid, &ret, 0)) == -1 && errno == EINTR); + if(wret<0) + logg("!VirusEvent: waitpid() failed: %s\n", cli_strerror(errno, er, sizeof(er))); + else { + if(WIFEXITED(ret)) + logg("*VirusEvent: child exited with code %d\n", WEXITSTATUS(ret)); + else if(WIFSIGNALED(ret)) + logg("*VirusEvent: child killed by signal %d\n", WTERMSIG(ret)); + else + logg("*VirusEvent: child lost\n"); + } + } else { + logg("!VirusEvent: fork failed: %s\n", cli_strerror(errno, er, sizeof(er))); } - } else { - logg("!VirusEvent: fork failed: %s\n", cli_strerror(errno, er, sizeof(er))); + free(e_id); + free(e_from); + free(e_to); + free(e_msg_subj); + free(e_msg_date); + free(e_msg_id); } - free(e_id); - free(e_from); - free(e_to); - free(e_msg_subj); - free(e_msg_date); - free(e_msg_id); } + if(loginfected & LOGINF_BASIC) + logg("~Message from <%s> to <%s> infected by %s\n", from, to, vir); } - if(loginfected & LOGINF_BASIC) - logg("~Message from <%s> to <%s> infected by %s\n", from, to, vir); } } } @@ -665,6 +696,10 @@ cf->all_whitelisted = 1; cf->gotbody = 0; cf->msg_subj = cf->msg_date = cf->msg_id = NULL; + if(multircpt) { + cf->recipients = NULL; + cf->nrecipients = 0; + } if(addxvirus==1) { cf->scanned_count = 0; cf->status_count = 0; @@ -683,6 +718,24 @@ if(cf->all_whitelisted) cf->all_whitelisted &= whitelisted(argv[0], 0); + + if(multircpt) { + void *new_rcpt = realloc(cf->recipients, (cf->nrecipients + 1) * sizeof(*(cf->recipients))); + unsigned int rcpt_cnt; + if(!new_rcpt) { + logg("!Failed to allocate array for new recipient\n"); + nullify(ctx, cf, CF_ANY); + return FailAction; + } + cf->recipients = new_rcpt; + rcpt_cnt = cf->nrecipients++; + if(!(cf->recipients[rcpt_cnt] = strdup(argv[0]))) { + logg("!Failed to allocate space for new recipient\n"); + nullify(ctx, cf, CF_ANY); + return FailAction; + } + } + return SMFIS_CONTINUE; } diff -Nru clamav-0.97.8+dfsg/clamav-milter/clamfi.h clamav-0.98.1+dfsg/clamav-milter/clamfi.h --- clamav-0.97.8+dfsg/clamav-milter/clamfi.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamav-milter/clamfi.h 2014-01-13 17:02:18.000000000 +0000 @@ -27,6 +27,7 @@ extern uint64_t maxfilesize; extern int addxvirus; extern char xvirushdr[255]; +extern int multircpt; sfsistat clamfi_body(SMFICTX *ctx, unsigned char *bodyp, size_t len); diff -Nru clamav-0.97.8+dfsg/clamav-milter/connpool.c clamav-0.98.1+dfsg/clamav-milter/connpool.c --- clamav-0.97.8+dfsg/clamav-milter/connpool.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamav-milter/connpool.c 2014-01-13 17:02:18.000000000 +0000 @@ -88,7 +88,7 @@ static int islocal(struct sockaddr *sa, socklen_t addrlen) { int s = socket(sa->sa_family, SOCK_STREAM, 0); int ret; - if (!s) return 0; + if (s < 0) return 0; ret = (bind(s, sa, addrlen) == 0); close(s); return ret; diff -Nru clamav-0.97.8+dfsg/clamav-milter/Makefile.am clamav-0.98.1+dfsg/clamav-milter/Makefile.am --- clamav-0.97.8+dfsg/clamav-milter/Makefile.am 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamav-milter/Makefile.am 2014-01-13 17:02:18.000000000 +0000 @@ -40,12 +40,12 @@ clamfi.h \ clamav-milter.c man_MANS = $(top_builddir)/docs/man/clamav-milter.8 +AM_CFLAGS=@WERR_CFLAGS_MILTER@ endif endif DEFS = @DEFS@ -DCL_NOLIBCLAMAV -CFLAGS=`echo "@CFLAGS@" | sed -e 's/-Wwrite-strings//' -e 's/-Werror /-Werror -Wno-error=format-nonliteral /'` LIBS = $(top_builddir)/libclamav/libclamav_internal_utils.la @CLAMAV_MILTER_LIBS@ @THREAD_LIBS@ AM_CPPFLAGS = -I$(top_srcdir)/clamd -I$(top_srcdir)/libclamav -I$(top_srcdir)/shared -I$(top_srcdir) CLEANFILES=*.gcda *.gcno diff -Nru clamav-0.97.8+dfsg/clamav-milter/Makefile.in clamav-0.98.1+dfsg/clamav-milter/Makefile.in --- clamav-0.97.8+dfsg/clamav-milter/Makefile.in 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamav-milter/Makefile.in 2014-01-13 17:02:18.000000000 +0000 @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -34,6 +34,23 @@ # MA 02110-1301, USA. VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -68,7 +85,7 @@ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -96,8 +113,8 @@ @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@ clamav-milter.$(OBJEXT) clamav_milter_OBJECTS = $(am_clamav_milter_OBJECTS) clamav_milter_LDADD = $(LDADD) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp @@ -109,24 +126,29 @@ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(clamav_milter_SOURCES) DIST_SOURCES = $(am__clamav_milter_SOURCES_DIST) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -148,6 +170,12 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } man8dir = $(mandir)/man8 NROFF = nroff MANS = $(man_MANS) @@ -167,7 +195,7 @@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFGDIR = @CFGDIR@ -CFLAGS = `echo "@CFLAGS@" | sed -e 's/-Wwrite-strings//' -e 's/-Werror /-Werror -Wno-error=format-nonliteral /'` +CFLAGS = @CFLAGS@ CHECK_CPPFLAGS = @CHECK_CPPFLAGS@ CHECK_LIBS = @CHECK_LIBS@ CLAMAVGROUP = @CLAMAVGROUP@ @@ -183,6 +211,7 @@ DBDIR = @DBDIR@ DEFS = @DEFS@ -DCL_NOLIBCLAMAV DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -231,6 +260,7 @@ LT_DLPREOPEN = @LT_DLPREOPEN@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -243,6 +273,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ @@ -254,10 +285,15 @@ TH_SAFE = @TH_SAFE@ VERSION = @VERSION@ VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@ +WERR_CFLAGS = @WERR_CFLAGS@ +WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -290,7 +326,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ ltdl_LIBOBJS = @ltdl_LIBOBJS@ ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@ mandir = @mandir@ @@ -334,6 +369,7 @@ @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@ clamav-milter.c @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@man_MANS = $(top_builddir)/docs/man/clamav-milter.8 +@BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@AM_CFLAGS = @WERR_CFLAGS_MILTER@ AM_CPPFLAGS = -I$(top_srcdir)/clamd -I$(top_srcdir)/libclamav -I$(top_srcdir)/shared -I$(top_srcdir) CLEANFILES = *.gcda *.gcno all: all-am @@ -372,8 +408,11 @@ $(am__aclocal_m4_deps): install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) - test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)" @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ + fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ @@ -429,7 +468,7 @@ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ done; \ done; rm -f c$${pid}_.???; exit $$bad -clamav-milter$(EXEEXT): $(clamav_milter_OBJECTS) $(clamav_milter_DEPENDENCIES) +clamav-milter$(EXEEXT): $(clamav_milter_OBJECTS) $(clamav_milter_DEPENDENCIES) $(EXTRA_clamav_milter_DEPENDENCIES) @rm -f clamav-milter$(EXEEXT) $(AM_V_CCLD)$(LINK) $(clamav_milter_OBJECTS) $(clamav_milter_LDADD) $(LIBS) @@ -452,90 +491,79 @@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< optparser.o: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.o -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c optparser.obj: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.obj -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` output.o: $(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c output.obj: $(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` getopt.o: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c getopt.obj: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` misc.o: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c misc.obj: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` mostlyclean-libtool: -rm -f *.lo @@ -544,11 +572,18 @@ -rm -rf .libs _libs install-man8: $(man_MANS) @$(NORMAL_INSTALL) - test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)" - @list=''; test -n "$(man8dir)" || exit 0; \ - { for i in $$list; do echo "$$i"; done; \ - l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ - sed -n '/\.8[a-z]*$$/p'; \ + @list1=''; \ + list2='$(man_MANS)'; \ + test -n "$(man8dir)" \ + && test -n "`echo $$list1$$list2`" \ + || exit 0; \ + echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \ + { for i in $$list1; do echo "$$i"; done; \ + if test -n "$$list2"; then \ + for i in $$list2; do echo "$$i"; done \ + | sed -n '/\.8[a-z]*$$/p'; \ + fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ @@ -577,9 +612,7 @@ sed -n '/\.8[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - test -z "$$files" || { \ - echo " ( cd '$(DESTDIR)$(man8dir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(man8dir)" && rm -f $$files; } + dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ @@ -693,10 +726,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff -Nru clamav-0.97.8+dfsg/clamav-milter/netcode.c clamav-0.98.1+dfsg/clamav-milter/netcode.c --- clamav-0.97.8+dfsg/clamav-milter/netcode.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamav-milter/netcode.c 2014-01-13 17:02:18.000000000 +0000 @@ -129,7 +129,7 @@ close(s); return -1; } - if(getsockopt(s, SOL_SOCKET, SO_ERROR, &s_err, &s_len) || s_err) { + if(getsockopt(s, SOL_SOCKET, SO_ERROR, &s_err, (socklen_t *)&s_len) || s_err) { logg("*Failed to establish a connection to clamd\n"); close(s); return -1; diff -Nru clamav-0.97.8+dfsg/clamav-milter/whitelist.c clamav-0.98.1+dfsg/clamav-milter/whitelist.c --- clamav-0.97.8+dfsg/clamav-milter/whitelist.c 2013-04-17 15:23:40.000000000 +0000 +++ clamav-0.98.1+dfsg/clamav-milter/whitelist.c 2014-01-13 17:02:18.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (C)2008 Sourcefire, Inc. + * Copyright (C)2008-2013 Sourcefire, Inc. * * Author: aCaB * @@ -151,6 +151,7 @@ regex = realloc(regex, rxsize + 2048); if(!regex) { logg("!Cannot allocate memory for SkipAuthenticated file\n"); + fclose(f); return 1; } rxavail = 2048; @@ -182,6 +183,7 @@ } if(rxavail < 4 && !(regex = realloc(regex, rxsize + 4))) { logg("!Cannot allocate memory for SkipAuthenticated file\n"); + fclose(f); return 1; } regex[rxused-1] = ')'; diff -Nru clamav-0.97.8+dfsg/clambc/bcrun.c clamav-0.98.1+dfsg/clambc/bcrun.c --- clamav-0.97.8+dfsg/clambc/bcrun.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clambc/bcrun.c 2014-01-13 17:02:18.000000000 +0000 @@ -1,7 +1,7 @@ /* * ClamAV bytecode handler tool. * - * Copyright (C) 2009 Sourcefire, Inc. + * Copyright (C) 2009-2012 Sourcefire, Inc. * * Authors: Török Edvin * @@ -306,7 +306,8 @@ bcs.all_bcs = bc; bcs.count = 1; - rc = cli_bytecode_load(bc, f, NULL, optget(opts, "trust-bytecode")->enabled); + rc = cli_bytecode_load(bc, f, NULL, optget(opts, "trust-bytecode")->enabled, + optget(opts, "bytecode-statistics")->enabled); if (rc != CL_SUCCESS) { fprintf(stderr,"Unable to load bytecode: %s\n", cl_strerror(rc)); optfree(opts); diff -Nru clamav-0.97.8+dfsg/clambc/Makefile.am clamav-0.98.1+dfsg/clambc/Makefile.am --- clamav-0.97.8+dfsg/clambc/Makefile.am 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clambc/Makefile.am 2014-01-13 17:02:18.000000000 +0000 @@ -8,6 +8,7 @@ $(top_srcdir)/shared/misc.h \ bcrun.c +AM_CFLAGS=@WERR_CFLAGS@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav LIBS = $(top_builddir)/libclamav/libclamav.la @THREAD_LIBS@ CLEANFILES=*.gcda *.gcno diff -Nru clamav-0.97.8+dfsg/clambc/Makefile.in clamav-0.98.1+dfsg/clambc/Makefile.in --- clamav-0.97.8+dfsg/clambc/Makefile.in 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clambc/Makefile.in 2014-01-13 17:02:18.000000000 +0000 @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,6 +16,23 @@ @SET_MAKE@ VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -49,7 +66,7 @@ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -62,8 +79,8 @@ misc.$(OBJEXT) bcrun.$(OBJEXT) clambc_OBJECTS = $(am_clambc_OBJECTS) clambc_LDADD = $(LDADD) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp @@ -75,24 +92,29 @@ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(clambc_SOURCES) DIST_SOURCES = $(clambc_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -125,6 +147,7 @@ DBDIR = @DBDIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -173,6 +196,7 @@ LT_DLPREOPEN = @LT_DLPREOPEN@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -185,6 +209,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ @@ -196,10 +221,15 @@ TH_SAFE = @TH_SAFE@ VERSION = @VERSION@ VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@ +WERR_CFLAGS = @WERR_CFLAGS@ +WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -232,7 +262,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ ltdl_LIBOBJS = @ltdl_LIBOBJS@ ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@ mandir = @mandir@ @@ -265,6 +294,7 @@ $(top_srcdir)/shared/misc.h \ bcrun.c +AM_CFLAGS = @WERR_CFLAGS@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav CLEANFILES = *.gcda *.gcno all: all-am @@ -303,8 +333,11 @@ $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ + fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ @@ -360,7 +393,7 @@ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ done; \ done; rm -f c$${pid}_.???; exit $$bad -clambc$(EXEEXT): $(clambc_OBJECTS) $(clambc_DEPENDENCIES) +clambc$(EXEEXT): $(clambc_OBJECTS) $(clambc_DEPENDENCIES) $(EXTRA_clambc_DEPENDENCIES) @rm -f clambc$(EXEEXT) $(AM_V_CCLD)$(LINK) $(clambc_OBJECTS) $(clambc_LDADD) $(LIBS) @@ -378,74 +411,65 @@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< optparser.o: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.o -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c optparser.obj: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.obj -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` getopt.o: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c getopt.obj: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` misc.o: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c misc.obj: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` mostlyclean-libtool: -rm -f *.lo @@ -552,10 +576,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff -Nru clamav-0.97.8+dfsg/clamconf/clamconf.c clamav-0.98.1+dfsg/clamconf/clamconf.c --- clamav-0.97.8+dfsg/clamconf/clamconf.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamconf/clamconf.c 2014-01-13 17:02:34.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Sourcefire, Inc. + * Copyright (C) 2009-2013 Sourcefire, Inc. * Author: Tomasz Kojm * * This program is free software; you can redistribute it and/or modify @@ -139,8 +139,8 @@ for(i = 0; clam_options[i].owner; i++) { cpt = &clam_options[i]; if(cpt->name && (cpt->owner & tool) && !(cpt->owner & OPT_DEPRECATED) && !(cpt->flags & 4)) { - strncpy(buffer, cpt->description, 1024); - buffer[1024] = 0; + strncpy(buffer, cpt->description, sizeof(buffer)-1); + buffer[sizeof(buffer)-1] = 0; tokens_count = cli_strtokenize(buffer, '\n', 128, tokens); printf("\n"); for(j = 0; j < tokens_count; j++) @@ -181,8 +181,8 @@ } if(cpt->suggested && strchr(cpt->suggested, '\n')) { - strncpy(buffer, cpt->suggested, 1024); - buffer[1024] = 0; + strncpy(buffer, cpt->suggested, sizeof(buffer)-1); + buffer[sizeof(buffer)-1] = 0; tokens_count = cli_strtokenize(buffer, '\n', 128, tokens); for(j = 0; j < tokens_count; j++) printf("#%s %s\n", cpt->name, tokens[j]); @@ -230,10 +230,14 @@ #else /* e.g. Solaris */ if (!access("/etc/release", R_OK)) { - char buf[1024]; - FILE *f = fopen("/etc/release", "r"); - fgets(buf, sizeof(buf), f); - printf("Full OS version: %s", buf); + char buf[1024]; + FILE *f = fopen("/etc/release", "r"); + + if (f) { + fgets(buf, sizeof(buf), f); + printf("Full OS version: %s", buf); + fclose(f); + } } #endif @@ -326,6 +330,7 @@ dbfile = (char *) malloc(strlen(dent->d_name) + strlen(dir) + 2); if(!dbfile) { printf("print_dbs: Can't allocate memory for dbfile\n"); + closedir(dd); return; } sprintf(dbfile, "%s"PATHSEP"%s", dir, dent->d_name); @@ -366,7 +371,6 @@ unsigned int i, j; struct cli_environment env; - opts = optparse(NULL, argc, argv, 1, OPT_CLAMCONF, 0, NULL); if(!opts) { printf("ERROR: Can't parse command line options\n"); @@ -392,6 +396,7 @@ } dbdir[0] = 0; + clamd_dbdir[0] = 0; dir = optget(opts, "config-dir")->strarg; printf("Checking configuration files in %s\n", dir); for(i = 0; cfgfile[i].name; i++) { diff -Nru clamav-0.97.8+dfsg/clamconf/Makefile.am clamav-0.98.1+dfsg/clamconf/Makefile.am --- clamav-0.97.8+dfsg/clamconf/Makefile.am 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamconf/Makefile.am 2014-01-13 17:02:18.000000000 +0000 @@ -27,6 +27,8 @@ $(top_srcdir)/shared/misc.h \ clamconf.c +AM_CFLAGS=@WERR_CFLAGS@ + DEFS = @DEFS@ -DCL_NOTHREADS AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav\ -DBUILD_CPPFLAGS="\"$(CPPFLAGS)\"" -DBUILD_CFLAGS="\"$(CFLAGS)\""\ diff -Nru clamav-0.97.8+dfsg/clamconf/Makefile.in clamav-0.98.1+dfsg/clamconf/Makefile.in --- clamav-0.97.8+dfsg/clamconf/Makefile.in 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamconf/Makefile.in 2014-01-13 17:02:18.000000000 +0000 @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -34,6 +34,23 @@ # MA 02110-1301, USA. VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -67,7 +84,7 @@ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -80,8 +97,8 @@ misc.$(OBJEXT) clamconf.$(OBJEXT) clamconf_OBJECTS = $(am_clamconf_OBJECTS) clamconf_LDADD = $(LDADD) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp @@ -93,24 +110,29 @@ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(clamconf_SOURCES) DIST_SOURCES = $(clamconf_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -143,6 +165,7 @@ DBDIR = @DBDIR@ DEFS = @DEFS@ -DCL_NOTHREADS DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -191,6 +214,7 @@ LT_DLPREOPEN = @LT_DLPREOPEN@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -203,6 +227,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ @@ -214,10 +239,15 @@ TH_SAFE = @TH_SAFE@ VERSION = @VERSION@ VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@ +WERR_CFLAGS = @WERR_CFLAGS@ +WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -250,7 +280,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ ltdl_LIBOBJS = @ltdl_LIBOBJS@ ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@ mandir = @mandir@ @@ -283,6 +312,7 @@ $(top_srcdir)/shared/misc.h \ clamconf.c +AM_CFLAGS = @WERR_CFLAGS@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav\ -DBUILD_CPPFLAGS="\"$(CPPFLAGS)\"" -DBUILD_CFLAGS="\"$(CFLAGS)\""\ -DBUILD_CXXFLAGS="\"$(CXXFLAGS)\"" -DBUILD_LDFLAGS="\"$(LDFLAGS)\""\ @@ -325,8 +355,11 @@ $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ + fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ @@ -382,7 +415,7 @@ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ done; \ done; rm -f c$${pid}_.???; exit $$bad -clamconf$(EXEEXT): $(clamconf_OBJECTS) $(clamconf_DEPENDENCIES) +clamconf$(EXEEXT): $(clamconf_OBJECTS) $(clamconf_DEPENDENCIES) $(EXTRA_clamconf_DEPENDENCIES) @rm -f clamconf$(EXEEXT) $(AM_V_CCLD)$(LINK) $(clamconf_OBJECTS) $(clamconf_LDADD) $(LIBS) @@ -400,74 +433,65 @@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< optparser.o: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.o -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c optparser.obj: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.obj -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` getopt.o: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c getopt.obj: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` misc.o: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c misc.obj: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` mostlyclean-libtool: -rm -f *.lo @@ -574,10 +598,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff -Nru clamav-0.97.8+dfsg/clamd/clamd.c clamav-0.98.1+dfsg/clamd/clamd.c --- clamav-0.97.8+dfsg/clamd/clamd.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/clamd.c 2014-01-13 17:02:34.000000000 +0000 @@ -120,7 +120,7 @@ int lsockets[2], nlsockets = 0; unsigned int dboptions = 0; #ifdef C_LINUX - struct stat sb; + STATBUF sb; #endif if(check_flevel()) @@ -221,6 +221,8 @@ logok = optget(opts, "LogClean")->enabled; logg_size = optget(opts, "LogFileMaxSize")->numarg; logg_verbose = mprintf_verbose = optget(opts, "LogVerbose")->enabled; + if (logg_size) + logg_rotate = optget(opts, "LogRotate")->enabled; mprintf_send_timeout = optget(opts, "SendBufTimeout")->numarg; do { /* logger initialized */ @@ -273,7 +275,7 @@ #ifdef C_LINUX procdev = 0; - if(stat("/proc", &sb) != -1 && !sb.st_size) + if(CLAMSTAT("/proc", &sb) != -1 && !sb.st_size) procdev = sb.st_dev; #endif @@ -318,7 +320,7 @@ if(logg_size) - logg("#Log file size limited to %d bytes.\n", logg_size); + logg("#Log file size limited to %u bytes.\n", logg_size); else logg("#Log file size limit disabled.\n"); @@ -429,6 +431,9 @@ if(optget(opts, "LeaveTemporaryFiles")->enabled) cl_engine_set_num(engine, CL_ENGINE_KEEPTMP, 1); + if(optget(opts, "ForceToDisk")->enabled) + cl_engine_set_num(engine, CL_ENGINE_FORCETODISK, 1); + if(optget(opts, "PhishingSignatures")->enabled) dboptions |= CL_DB_PHISHING; else @@ -499,6 +504,9 @@ break; } + if (optget(opts, "DisableCertCheck")->enabled) + engine->dconf->pe |= PE_CONF_DISABLECERT; + logg("#Loaded %u signatures.\n", sigs); if((ret = cl_engine_compile(engine)) != 0) { logg("!Database initialization error: %s\n", cl_strerror(ret)); @@ -565,7 +573,12 @@ #ifdef C_BSD /* workaround for OpenBSD bug, see https://wwws.clamav.net/bugzilla/show_bug.cgi?id=885 */ for(ret=0;ret -#include -#include -#include -#include -#include -#include - -#include "libclamav/clamav.h" -#include "libclamav/scanners.h" - -#include "shared/optparser.h" -#include "shared/output.h" - -#include "server.h" -#include "others.h" -#include "dazukoio.h" -#include "clamukofs.h" -#include "clamuko.h" -#include "scanner.h" - -struct dazuko_access *acc; -short int clamuko_scanning; -static void clamuko_exit(int sig) -{ - - logg("*Clamuko: clamuko_exit(), signal %d\n", sig); - - if(clamuko_scanning) { - logg("*Clamuko: stopped while scanning %s\n", acc->filename); - acc->deny = 0; - dazukoReturnAccess(&acc); /* is it needed ? */ - } - - if(dazukoUnregister()) - logg("!Can't unregister with Dazuko\n"); - - logg("Clamuko stopped.\n"); - - pthread_exit(NULL); -} - -static void *clamukolegacyth(void *arg) -{ - struct thrarg *tharg = (struct thrarg *) arg; - sigset_t sigset; - const char *virname; - struct sigaction act; - unsigned long mask = 0; - const struct optstruct *pt; - short int scan; - int sizelimit = 0, extinfo; - struct stat sb; - struct cb_context context; - - - clamuko_scanning = 0; - - /* ignore all signals except SIGUSR1 */ - sigfillset(&sigset); - sigdelset(&sigset, SIGUSR1); - /* The behavior of a process is undefined after it ignores a - * SIGFPE, SIGILL, SIGSEGV, or SIGBUS signal */ - sigdelset(&sigset, SIGFPE); - sigdelset(&sigset, SIGILL); - sigdelset(&sigset, SIGSEGV); -#ifdef SIGBUS - sigdelset(&sigset, SIGBUS); -#endif - pthread_sigmask(SIG_SETMASK, &sigset, NULL); - memset(&act, 0, sizeof(struct sigaction)); - act.sa_handler = clamuko_exit; - sigfillset(&(act.sa_mask)); - sigaction(SIGUSR1, &act, NULL); - sigaction(SIGSEGV, &act, NULL); - - /* register */ - if(dazukoRegister("ClamAV", "r+")) { - logg("!Clamuko: Can't register with Dazuko\n"); - return NULL; - } else - logg("Clamuko: Correctly registered with Dazuko.\n"); - - /* access mask */ - if(optget(tharg->opts, "ClamukoScanOnOpen")->enabled) { - logg("Clamuko: Scan-on-open mode activated.\n"); - mask |= DAZUKO_ON_OPEN; - } - if(optget(tharg->opts, "ClamukoScanOnClose")->enabled) { - logg("Clamuko: Scan-on-close mode activated.\n"); - mask |= DAZUKO_ON_CLOSE; - } - if(optget(tharg->opts, "ClamukoScanOnExec")->enabled) { - logg("Clamuko: Scan-on-exec mode activated.\n"); - mask |= DAZUKO_ON_EXEC; - } - - if(!mask) { - logg("!Access mask is not configured properly.\n"); - dazukoUnregister(); - return NULL; - } - - if(dazukoSetAccessMask(mask)) { - logg("!Clamuko: Can't set access mask in Dazuko.\n"); - dazukoUnregister(); - return NULL; - } - - if((pt = optget(tharg->opts, "ClamukoIncludePath"))->enabled) { - while(pt) { - if((dazukoAddIncludePath(pt->strarg))) { - logg("!Clamuko: Dazuko -> Can't include path %s\n", pt->strarg); - dazukoUnregister(); - return NULL; - } else - logg("Clamuko: Included path %s\n", pt->strarg); - - pt = (struct optstruct *) pt->nextarg; - } - } else { - logg("!Clamuko: please include at least one path.\n"); - dazukoUnregister(); - return NULL; - } - - if((pt = optget(tharg->opts, "ClamukoExcludePath"))->enabled) { - while(pt) { - if((dazukoAddExcludePath(pt->strarg))) { - logg("!Clamuko: Dazuko -> Can't exclude path %s\n", pt->strarg); - dazukoUnregister(); - return NULL; - } else - logg("Clamuko: Excluded path %s\n", pt->strarg); - - pt = (struct optstruct *) pt->nextarg; - } - } - - sizelimit = optget(tharg->opts, "ClamukoMaxFileSize")->numarg; - if(sizelimit) - logg("Clamuko: Max file size limited to %d bytes.\n", sizelimit); - else - logg("Clamuko: File size limit disabled.\n"); - - extinfo = optget(tharg->opts, "ExtendedDetectionInfo")->enabled; - - while(1) { - - if(dazukoGetAccess(&acc) == 0) { - clamuko_scanning = 1; - scan = 1; - - if(sizelimit) { - stat(acc->filename, &sb); - if(sb.st_size > sizelimit) { - scan = 0; - logg("*Clamuko: %s skipped (too big)\n", acc->filename); - } - } - - if(clamuko_checkowner(acc->pid, tharg->opts)) { - scan = 0; - logg("*Clamuko: %s skipped (excluded UID)\n", acc->filename); - } - - context.filename = acc->filename; - context.virsize = 0; - if(scan && cl_scanfile_callback(acc->filename, &virname, NULL, tharg->engine, tharg->options, &context) == CL_VIRUS) { - if(context.virsize) - detstats_add(virname, acc->filename, context.virsize, context.virhash); - if(extinfo && context.virsize) - logg("Clamuko: %s: %s(%s:%llu) FOUND\n", acc->filename, virname, context.virhash, context.virsize); - else - logg("Clamuko: %s: %s FOUND\n", acc->filename, virname); - virusaction(acc->filename, virname, tharg->opts); - acc->deny = 1; - } else - acc->deny = 0; - - if(dazukoReturnAccess(&acc)) { - logg("!Can't return access to Dazuko.\n"); - logg("Clamuko stopped.\n"); - dazukoUnregister(); - clamuko_scanning = 0; - return NULL; - } - - clamuko_scanning = 0; - } - } - - /* can't be ;) */ - return NULL; -} - -void *clamukoth(void *arg) -{ - struct stat s; - - /* we use DazukoFS if /dev/dazukofs.ctrl exists and it is a - * character device, otherwise we use Dazuko */ - if(stat("/dev/dazukofs.ctrl", &s) != 0) return clamukolegacyth(arg); - if(!S_ISCHR(s.st_mode)) return clamukolegacyth(arg); - return clamukofsth(arg); -} - -#elif defined(CLAMAUTH) - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "libclamav/clamav.h" -#include "libclamav/scanners.h" - -#include "shared/optparser.h" -#include "shared/output.h" - -#include "server.h" -#include "others.h" -#include "scanner.h" - -#define SUPPORTED_PROTOCOL 2 - -static int cauth_fd = -1; - -struct ClamAuthEvent { - unsigned int action; - char path[1024]; - unsigned int pid; -}; - -static void cauth_exit(int sig) -{ - logg("*ClamAuth: cauth_exit(), signal %d\n", sig); - if(cauth_fd > 0) - close(cauth_fd); - pthread_exit(NULL); - logg("ClamAuth: stopped\n"); -} - -static int cauth_scanfile(const char *fname, int extinfo, struct thrarg *tharg) -{ - struct cb_context context; - const char *virname; - int ret = 0, fd; - - context.filename = fname; - context.virsize = 0; - - fd = open(fname, O_RDONLY); - if(fd == -1) - return -1; - - if(cl_scandesc_callback(fd, &virname, NULL, tharg->engine, tharg->options, &context) == CL_VIRUS) { - if(context.virsize) - detstats_add(virname, fname, context.virsize, context.virhash); - if(extinfo && context.virsize) - logg("ClamAuth: %s: %s(%s:%llu) FOUND\n", fname, virname, context.virhash, context.virsize); - else - logg("ClamAuth: %s: %s FOUND\n", fname, virname); - virusaction(fname, virname, tharg->opts); - } - close(fd); - return ret; -} - -void *clamukoth(void *arg) -{ - struct thrarg *tharg = (struct thrarg *) arg; - sigset_t sigset; - struct sigaction act; - int eventcnt = 1, extinfo; - char err[128]; - struct ClamAuthEvent event; - - /* ignore all signals except SIGUSR1 */ - sigfillset(&sigset); - sigdelset(&sigset, SIGUSR1); - /* The behavior of a process is undefined after it ignores a - * SIGFPE, SIGILL, SIGSEGV, or SIGBUS signal */ - sigdelset(&sigset, SIGFPE); - sigdelset(&sigset, SIGILL); - sigdelset(&sigset, SIGSEGV); -#ifdef SIGBUS - sigdelset(&sigset, SIGBUS); -#endif - pthread_sigmask(SIG_SETMASK, &sigset, NULL); - memset(&act, 0, sizeof(struct sigaction)); - act.sa_handler = cauth_exit; - sigfillset(&(act.sa_mask)); - sigaction(SIGUSR1, &act, NULL); - sigaction(SIGSEGV, &act, NULL); - - extinfo = optget(tharg->opts, "ExtendedDetectionInfo")->enabled; - - cauth_fd = open("/dev/clamauth", O_RDONLY); - if(cauth_fd == -1) { - logg("!ClamAuth: Can't open /dev/clamauth\n"); - if(errno == ENOENT) - logg("!ClamAuth: Please make sure ClamAuth.kext is loaded\n"); - else if(errno == EACCES) - logg("!ClamAuth: This application requires root privileges\n"); - else - logg("!ClamAuth: /dev/clamauth: %s\n", cli_strerror(errno, err, sizeof(err))); - - return NULL; - } - - while(1) { - if(read(cauth_fd, &event, sizeof(event)) > 0) { - if(eventcnt == 1) { - if(event.action != SUPPORTED_PROTOCOL) { - logg("!ClamAuth: Protocol version mismatch (tool: %d, driver: %d)\n", SUPPORTED_PROTOCOL, event.action); - close(cauth_fd); - return NULL; - } - if(strncmp(event.path, "ClamAuth", 8)) { - logg("!ClamAuth: Invalid version event\n"); - close(cauth_fd); - return NULL; - } - logg("ClamAuth: Driver version: %s, protocol version: %d\n", &event.path[9], event.action); - } else { - cauth_scanfile(event.path, extinfo, tharg); - } - eventcnt++; - } else { - if(errno == ENODEV) { - printf("^ClamAuth: ClamAuth module deactivated, terminating\n"); - close(cauth_fd); - return NULL; - } - } - usleep(200); - } -} -#endif diff -Nru clamav-0.97.8+dfsg/clamd/clamukofs.c clamav-0.98.1+dfsg/clamd/clamukofs.c --- clamav-0.97.8+dfsg/clamd/clamukofs.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/clamukofs.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,266 +0,0 @@ -/* - * Copyright (C) 2007-2009 Sourcefire, Inc. - * Author: Tomasz Kojm - * Author: John Ogness - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301, USA. - */ - -#if HAVE_CONFIG_H -#include "clamav-config.h" -#endif - -#ifdef CLAMUKO - -#include -#include -#include -#include -#include -#include - -#include "libclamav/clamav.h" -#include "libclamav/scanners.h" - -#include "shared/optparser.h" -#include "shared/output.h" - -#include "server.h" -#include "others.h" -#include "dazukofs.h" -#include "clamuko.h" -#include "scanner.h" - -static pthread_mutex_t running_mutex = PTHREAD_MUTEX_INITIALIZER; -static dazukofs_handle_t shutdown_hndl; -static pthread_cond_t shutdown_cond; - -static void clamuko_exit(int sig) -{ - pthread_cond_signal(&shutdown_cond); -} - -static int setup_shutdown_handle(const char *groupname) -{ - /* is another server thread is already running? */ - if(shutdown_hndl) return -1; - - if(pthread_cond_init(&shutdown_cond, NULL)) return -1; - - /* handle used for shutdown by signal */ - shutdown_hndl = dazukofs_open(groupname, DAZUKOFS_TRACK_GROUP); - if(!shutdown_hndl) { - logg("!Clamuko: Can't register with DazukoFS\n"); - return -1; - } - return 0; -} - -static void shutdown_clamuko(void) -{ - dazukofs_handle_t hndl = shutdown_hndl; - - /* Set shutdown_hndl before closing because the close will - * immediately cause the scan threads to be interrupted. - * But they will only abort if shutdown_hndl is NULL. */ - shutdown_hndl = NULL; - - if(hndl) dazukofs_close(hndl, DAZUKOFS_REMOVE_GROUP); -} - -static void *clamuko_scanth(void *arg) -{ - struct thrarg *tharg = (struct thrarg *) arg; - sigset_t sigset; - unsigned int sizelimit = 0; - struct stat sb; - dazukofs_handle_t scan_hndl; - struct dazukofs_access acc; - const char *groupname = "ClamAV"; - int skip_scan = 0, extinfo; - const char *virname; - char filename[4096]; - struct cb_context context; - - /* ignore all signals */ - sigfillset(&sigset); - /* The behavior of a process is undefined after it ignores a - * SIGFPE, SIGILL, SIGSEGV, or SIGBUS signal */ - sigdelset(&sigset, SIGFPE); - sigdelset(&sigset, SIGILL); - sigdelset(&sigset, SIGSEGV); -#ifdef SIGBUS - sigdelset(&sigset, SIGBUS); -#endif - pthread_sigmask(SIG_SETMASK, &sigset, NULL); - - /* register */ - scan_hndl = dazukofs_open(groupname, DAZUKOFS_TRACK_GROUP); - if(!scan_hndl) { - logg("!Clamuko: Can't register with DazukoFS\n"); - return NULL; - } else { - logg("Clamuko: Correctly registered with DazukoFS.\n"); - } - - /* access mask (not used by DazukoFS) */ - if(optget(tharg->opts, "ClamukoScanOnOpen")->enabled) - logg("!Clamuko: ClamukoScanOnOpen ignored when using DazukoFS.\n"); - if(optget(tharg->opts, "ClamukoScanOnClose")->enabled) - logg("!Clamuko: ClamukoScanOnClose ignored when using DazukoFS.\n"); - if(optget(tharg->opts, "ClamukoScanOnExec")->enabled) - logg("!Clamuko: ClamukoScanOnExec ignored when using DazukoFS.\n"); - if(optget(tharg->opts, "ClamukoIncludePath")->enabled) - logg("!Clamuko: ClamukoIncludePath ignored when using DazukoFS.\n"); - if(optget(tharg->opts, "ClamukoExcludePath")->enabled) - logg("!Clamuko: ClamukoExcludePath ignored when using DazukoFS.\n"); - - sizelimit = optget(tharg->opts, "ClamukoMaxFileSize")->numarg; - if(sizelimit) - logg("Clamuko: Max file size limited to %u bytes.\n", sizelimit); - else - logg("Clamuko: File size limit disabled.\n"); - - extinfo = optget(tharg->opts, "ExtendedDetectionInfo")->enabled; - - while(1) { - if(dazukofs_get_access(scan_hndl, &acc)) { - if(!shutdown_hndl) - break; - continue; - } - - if(!fstat(acc.fd, &sb)) { - if(S_ISDIR(sb.st_mode)) { - /* don't try to scan directories */ - skip_scan = 1; - } else if(sb.st_size > sizelimit) { - dazukofs_get_filename(&acc, filename, sizeof(filename)); - logg("*Clamuko: %s skipped (too big)\n", filename); - skip_scan = 1; - } - } - - if(clamuko_checkowner(acc.pid, tharg->opts)) { - dazukofs_get_filename(&acc, filename, sizeof(filename)); - logg("*Clamuko: %s skipped (excluded UID)\n", filename); - skip_scan = 1; - } - - context.filename = NULL; - context.virsize = 0; - if(skip_scan) { - acc.deny = 0; - /* reset skip flag */ - skip_scan = 0; - } else if(cl_scandesc_callback(acc.fd, &virname, NULL, tharg->engine, - tharg->options, &context) == CL_VIRUS) { - dazukofs_get_filename(&acc, filename, sizeof(filename)); - if(context.virsize) - detstats_add(virname, filename, context.virsize, context.virhash); - if(extinfo && context.virsize) - logg("Clamuko: %s: %s(%s:%llu) FOUND\n", filename, virname, context.virhash, context.virsize); - else - logg("Clamuko: %s: %s FOUND\n", filename, virname); - /* we can not perform any special action because it will - * trigger DazukoFS recursively */ - acc.deny = 1; - } else { - acc.deny = 0; - } - - if(dazukofs_return_access(scan_hndl, &acc)) { - if(shutdown_hndl) - logg("!Clamuko: Can't return access to DazukoFS.\n"); - break; - } - } - - dazukofs_close(scan_hndl, 0); - - if(shutdown_hndl) - logg("!Clamuko: A scanner thread has unexpectedly shutdown.\n"); - - return NULL; -} - -void *clamukofsth(void *arg) -{ - struct thrarg *tharg = (struct thrarg *) arg; - sigset_t sigset; - struct sigaction act; - pthread_t *clamuko_pids = NULL; - const char *groupname = "ClamAV"; - int count; - int started; - - /* is another server thread already working? */ - if(pthread_mutex_trylock(&running_mutex)) - return NULL; - - /* ignore all signals except SIGUSR1 */ - sigfillset(&sigset); - sigdelset(&sigset, SIGUSR1); - /* The behavior of a process is undefined after it ignores a - * SIGFPE, SIGILL, SIGSEGV, or SIGBUS signal */ - sigdelset(&sigset, SIGFPE); - sigdelset(&sigset, SIGILL); - sigdelset(&sigset, SIGSEGV); -#ifdef SIGBUS - sigdelset(&sigset, SIGBUS); -#endif - pthread_sigmask(SIG_SETMASK, &sigset, NULL); - - count = optget(tharg->opts, "ClamukoScannerCount")->numarg; - if(count < 1) goto out; - - clamuko_pids = calloc(count, sizeof(pthread_t)); - if(!clamuko_pids) goto out; - - if(setup_shutdown_handle(groupname)) goto out; - - act.sa_handler = clamuko_exit; - sigfillset(&(act.sa_mask)); - sigaction(SIGUSR1, &act, NULL); - sigaction(SIGSEGV, &act, NULL); - - for(started = 0; started < count; started++) { - pthread_attr_t clamuko_attr; - - if(pthread_attr_init(&clamuko_attr)) break; - pthread_attr_setdetachstate(&clamuko_attr, PTHREAD_CREATE_JOINABLE); - if(pthread_create(&clamuko_pids[started], &clamuko_attr, - clamuko_scanth, tharg)) break; - logg("Clamuko: Started scanner thread %d.\n", started); - } - - pthread_cond_wait(&shutdown_cond, &running_mutex); - logg("Clamuko: Stop signal received.\n"); - - shutdown_clamuko(); - - for(started-- ; started >= 0; started--) { - logg("Clamuko: Waiting for scanner thread %d to finish.\n", started); - pthread_join(clamuko_pids[started], NULL); - } - - logg("Clamuko: Stopped.\n"); -out: - if(clamuko_pids) free(clamuko_pids); - pthread_mutex_unlock(&running_mutex); - return NULL; -} - -#endif diff -Nru clamav-0.97.8+dfsg/clamd/clamukofs.h clamav-0.98.1+dfsg/clamd/clamukofs.h --- clamav-0.97.8+dfsg/clamd/clamukofs.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/clamukofs.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2009 Sourcefire, Inc. - * Author: John Ogness - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301, USA. - */ - -#ifdef CLAMUKO - -#ifndef __CLAMUKOFS_H -#define __CLAMUKOFS_H - -extern void *clamukofsth(void *arg); - -#endif -#endif diff -Nru clamav-0.97.8+dfsg/clamd/clamuko.h clamav-0.98.1+dfsg/clamd/clamuko.h --- clamav-0.97.8+dfsg/clamd/clamuko.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/clamuko.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2007-2009 Sourcefire, Inc. - * - * Authors: Tomasz Kojm - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301, USA. - */ - -#if defined(CLAMUKO) || defined(CLAMAUTH) - -#ifndef __CLAMUKO_H -#define __CLAMUKO_H - -extern short int clamuko_scanning; -void *clamukoth(void *arg); - -#endif -#endif diff -Nru clamav-0.97.8+dfsg/clamd/dazukofs.c clamav-0.98.1+dfsg/clamd/dazukofs.c --- clamav-0.97.8+dfsg/clamd/dazukofs.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/dazukofs.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,238 +0,0 @@ -/* userspace library to interface with dazukofs - - Copyright (C) 2008-2009 John Ogness - Author: John Ogness - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -*/ - -#include -#include -#include -#include -#include - -#include -#include - -#include "dazukofs.h" - -struct dazukofs_handle -{ - int dev_fd; - unsigned long event_id; - char *group_name; -}; - -#define DAZUKOFS_ALLOWED_GROUPCHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-" -static int check_group_name(const char *gname) -{ - size_t len = strlen(gname); - const char *p; - - if (len > 20) - return -1; - - for (p = gname; *p; p++) { - if (strchr(DAZUKOFS_ALLOWED_GROUPCHARS, *p) == NULL) - return -1; - } - - return 0; -} - -dazukofs_handle_t dazukofs_open(const char *gname, int flags) -{ - struct dazukofs_handle *hndl = NULL; - char key[25]; - char buf[256]; - char *p; - int gid; - int fd; - - if (check_group_name(gname) != 0) - goto error_out; - - fd = open("/dev/dazukofs.ctrl", O_RDWR); - if (fd == -1) { - /* try to read at least - * (maybe the group already exists) */ - fd = open("/dev/dazukofs.ctrl", O_RDONLY); - if (fd == -1) - goto error_out; - } else { - memset(buf, 0, sizeof(buf)); - - if (flags & DAZUKOFS_TRACK_GROUP) - snprintf(buf, sizeof(buf) - 1, "addtrack=%s", gname); - else - snprintf(buf, sizeof(buf) - 1, "add=%s", gname); - - if (write(fd, buf, strlen(buf)) == -1) - goto error_out_close; - - lseek(fd, 0, SEEK_SET); - } - - memset(buf, 0, sizeof(buf)); - if (read(fd, buf, sizeof(buf)-1) == -1) - goto error_out_close; - - memset(key, 0, sizeof(key)); - snprintf(key, sizeof(key) - 1, ":%s\n", gname); - - p = strstr(buf, key); - if (!p || p == buf) - goto error_out_close; - - p--; - gid = *p - '0'; - if (gid < 0 || gid > 9) - goto error_out_close; - - hndl = malloc(sizeof(struct dazukofs_handle)); - if (!hndl) - goto error_out_close; - memset(hndl, 0, sizeof(struct dazukofs_handle)); - - hndl->group_name = strdup(gname); - if (!hndl->group_name) - goto error_out_free; - - memset(key, 0, sizeof(key)); - snprintf(key, sizeof(key) - 1, "/dev/dazukofs.%d", gid); - - hndl->dev_fd = open(key, O_RDWR); - if (hndl->dev_fd == -1) - goto error_out_free; - - close(fd); - - return hndl; - -error_out_free: - if (hndl->group_name) - free(hndl->group_name); - free(hndl); - hndl = NULL; -error_out_close: - close(fd); -error_out: - return hndl; -} - -int dazukofs_close(dazukofs_handle_t hndl, int flags) -{ - char buf[48]; - int fd; - int ret = -1; - - if (flags & DAZUKOFS_REMOVE_GROUP) { - fd = open("/dev/dazukofs.ctrl", O_WRONLY); - if (fd == -1) - goto error_out; - - memset(buf, 0, sizeof(buf)); - snprintf(buf, sizeof(buf) - 1, "del=%s", hndl->group_name); - - if (write(fd, buf, strlen(buf)) == -1) { - close(fd); - goto error_out; - } - - close(fd); - } - - ret = close(hndl->dev_fd); - if (ret != 0) - goto error_out; - - free(hndl->group_name); - free(hndl); - - return 0; - -error_out: - return ret; -} - -int dazukofs_get_access(dazukofs_handle_t hndl, struct dazukofs_access *acc) -{ - char buf[48]; - char *p; - int err = -1; - - memset(buf, 0, sizeof(buf)); - if (read(hndl->dev_fd, buf, sizeof(buf)-1) == -1) - goto out; - - p = strstr(buf, "id="); - if (!p) - goto out; - p += 3; - hndl->event_id = strtoul(p, &p, 10); - - p = strstr(p, "fd="); - if (!p) - goto out; - p += 3; - acc->fd = (int)strtol(p, &p, 10); - - p = strstr(p, "pid="); - if (!p) - goto out; - p += 4; - acc->pid = strtoul(p, NULL, 10); - - acc->deny = 0; - - err = 0; -out: - return err; -} - -int dazukofs_return_access(dazukofs_handle_t hndl, struct dazukofs_access *acc) -{ - char buf[48]; - int err = -1; - - if (close(acc->fd) != 0) - goto out; - snprintf(buf, sizeof(buf)-1, "id=%lu r=%d", hndl->event_id, - acc->deny ? 1 : 0); - buf[sizeof(buf)-1] = 0; - - if (write(hndl->dev_fd, buf, strlen(buf)) == -1) - goto out; - lseek(hndl->dev_fd, 0, SEEK_SET); - err = 0; -out: - return err; -} - -int dazukofs_get_filename(struct dazukofs_access *acc, char *buf, size_t bufsiz) -{ - char proc[48]; - int ret; - - memset(proc, 0, sizeof(proc)); - snprintf(proc, sizeof(proc) - 1, "/proc/self/fd/%d", acc->fd); - ret = readlink(proc, buf, bufsiz - 1); - buf[bufsiz - 1] = 0; - if (ret > 0) - buf[ret] = 0; - - return ret; -} diff -Nru clamav-0.97.8+dfsg/clamd/dazukofs.h clamav-0.98.1+dfsg/clamd/dazukofs.h --- clamav-0.97.8+dfsg/clamd/dazukofs.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/dazukofs.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,48 +0,0 @@ -/* userspace library to interface with dazukofs - - Copyright (C) 2008 John Ogness - Author: John Ogness - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -*/ - -#ifndef __DAZUKOFS_H -#define __DAZUKOFS_H - -#include - -/* dazukofs_open() flags */ -#define DAZUKOFS_TRACK_GROUP 1 - -/* dazukofs_close() flags */ -#define DAZUKOFS_REMOVE_GROUP 1 - -struct dazukofs_handle; -typedef struct dazukofs_handle * dazukofs_handle_t; - -struct dazukofs_access -{ - int fd; - int deny; - unsigned long pid; -}; - -dazukofs_handle_t dazukofs_open(const char *gname, int flags); -int dazukofs_get_access(dazukofs_handle_t hndl, struct dazukofs_access *acc); -int dazukofs_return_access(dazukofs_handle_t hndl, struct dazukofs_access *acc); -int dazukofs_close(dazukofs_handle_t hndl, int flags); -int dazukofs_get_filename(struct dazukofs_access *acc, char *buf, size_t bufsiz); - -#endif /* __DAZUKOFS_H */ diff -Nru clamav-0.97.8+dfsg/clamd/dazukoio.c clamav-0.98.1+dfsg/clamd/dazukoio.c --- clamav-0.97.8+dfsg/clamd/dazukoio.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/dazukoio.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,905 +0,0 @@ -#if HAVE_CONFIG_H -#include "clamav-config.h" -#endif - -#ifdef CLAMUKO -/* Dazuko Interface. Interace with Dazuko for file access control. - Written by John Ogness - - Copyright (c) 2002, 2003, 2004 H+BEDV Datentechnik GmbH - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - 3. Neither the name of Dazuko nor the names of its contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -#include -#include -#include -#include -#include -#ifdef HAVE_STRINGS_H -#include -#endif -#include -#include "dazukoio_xp.h" -#include "dazukoio.h" - -#if !defined(NO_COMPAT12) -#include "dazukoio_compat12.h" -#endif - -#define ITOA_SIZE 32 - -dazuko_id_t *_GLOBAL_DAZUKO = NULL; - -#if !defined(NO_COMPAT12) -char _GLOBAL_DAZUKO_COMPAT12 = 0; -#endif - -static inline char char_to_hex(char c) -{ - /* ugly, but fast */ - - switch (c) - { - case '1': return 1; - case '2': return 2; - case '3': return 3; - case '4': return 4; - case '5': return 5; - case '6': return 6; - case '7': return 7; - case '8': return 8; - case '9': return 9; - case 'a': case 'A': return 10; - case 'b': case 'B': return 11; - case 'c': case 'C': return 12; - case 'd': case 'D': return 13; - case 'e': case 'E': return 14; - case 'f': case 'F': return 15; - } - - return 0; -} - -static void unescape_string(char *string) -{ - char *p; - - for (p=string ; *p ; p++) - { - /* check if we have \x */ - if ((*p == '\\') && (*(p+1) == 'x')) - { - /* this is not cheap, but it should not occur often */ - - /* check if we have two more values following \x */ - if (*(p+2) && *(p+3)) - { - *p = char_to_hex(*(p+2)); - *p <<= 4; - *p |= char_to_hex(*(p+3)); - - memmove(p + 1, p + 4, strlen(p+4) + 1); - } - } - } -} - -static int get_value(const char *key, const char *string, char *buffer, size_t buffer_size) -{ - const char *p1; - const char *p2; - size_t size; - - if (buffer == NULL || buffer_size < 1) - return -1; - - buffer[0] = 0; - - if (key == NULL || string == NULL) - return -1; - - p1 = strstr(string, key); - if (p1 == NULL) - return -1; - - p1 += strlen(key); - - for (p2=p1 ; *p2 && *p2!='\n' ; p2++) - continue; - - size = p2 - p1; - if (size >= buffer_size) - size = buffer_size - 1; - - memcpy(buffer, p1, size); - - buffer[size] = 0; - - return 0; -} - -int dazukoRegister(const char *groupName, const char *mode) -{ - return dazukoRegister_TS(&_GLOBAL_DAZUKO, groupName, mode); -} - -int dazukoRegister_TS(dazuko_id_t **dazuko_id, const char *groupName, const char *mode) -{ - struct dazuko_request *request; - char buffer[ITOA_SIZE]; - char regMode[3]; - dazuko_id_t *temp_id; - ssize_t size; - int write_mode = 0; -#if !defined(NO_COMPAT12) - int compat12_ret; -#endif - - if (dazuko_id == NULL) - return -1; - - /* set default group name if one was not given */ - if (groupName == NULL) - groupName = "_GENERIC"; - - /* set default mode if one was not given */ - if (mode == NULL) - mode = "r"; - - if (strcasecmp(mode, "r") == 0) - { - strncpy(regMode, "R", sizeof(regMode)); - regMode[sizeof(regMode)-1]='\0'; - write_mode = 0; - } - else if (strcasecmp(mode, "r+") == 0 || strcasecmp(mode, "rw") == 0) - { - strncpy(regMode, "RW", sizeof(regMode)); - regMode[sizeof(regMode)-1]='\0'; - write_mode = 1; - } - else - { - return -1; - } - regMode[sizeof(regMode) - 1] = 0; - -#if !defined(NO_COMPAT12) - if (_GLOBAL_DAZUKO_COMPAT12) - { - compat12_ret = dazukoRegister_TS_compat12_wrapper(dazuko_id, groupName); - - if (compat12_ret == 0) - (*dazuko_id)->write_mode = write_mode; - - return compat12_ret; - } -#endif - - /* create temporary id */ - temp_id = (dazuko_id_t *)malloc(sizeof(*temp_id)); - if (temp_id == NULL) - return -1; - - memset(temp_id, 0, sizeof(*temp_id)); - - /* open device */ - temp_id->device = open("/dev/dazuko", O_RDWR); - if (temp_id->device < 0) - { - free(temp_id); - return -1; - } - - /* read device major number */ - memset(buffer, 0, sizeof(buffer)); - if (read(temp_id->device, buffer, sizeof(buffer)-1) < 1) - { - close(temp_id->device); - free(temp_id); - return -1; - } - - temp_id->dev_major = atoi(buffer); - if (temp_id->dev_major < 0) - { - close(temp_id->device); - free(temp_id); - return -1; - } - - request = (struct dazuko_request *)malloc(sizeof(*request)); - if (request == NULL) - { - close(temp_id->device); - free(temp_id); - return -1; - } - - memset(request, 0, sizeof(*request)); - - request->type[0] = REGISTER; - - size = 1 + 2 + 1 + strlen(regMode); /* \nRM=mode */ - size += 1 + 2 + 1 + strlen(groupName); /* \nGN=groupName */ - size += 1; /* \0 */ - - request->buffer = (char *)malloc(size); - if (request->buffer == NULL) - { - close(temp_id->device); - free(temp_id); - free(request); - return -1; - } - snprintf(request->buffer, size, "\nRM=%s\nGN=%s", regMode, groupName); - request->buffer[size - 1] = 0; - - request->buffer_size = strlen(request->buffer) + 1; - - size = 4096; - request->reply_buffer = (char *)malloc(size); - if (request->reply_buffer == NULL) - { - close(temp_id->device); - free(temp_id); - free(request->buffer); - free(request); - return -1; - } - memset(request->reply_buffer, 0, size); - request->reply_buffer_size = size; - - snprintf(buffer, sizeof(buffer), "\nRA=%lu", (unsigned long)request); - buffer[sizeof(buffer)-1] = 0; - size = strlen(buffer) + 1; - - if (write(temp_id->device, buffer, size) != size) - { - close(temp_id->device); - free(temp_id); - free(request->buffer); - free(request->reply_buffer); - free(request); - -#if !defined(NO_COMPAT12) - /* we try compat12 mode */ - compat12_ret = dazukoRegister_TS_compat12_wrapper(dazuko_id, groupName); - if (compat12_ret == 0) - { - (*dazuko_id)->write_mode = write_mode; - _GLOBAL_DAZUKO_COMPAT12 = 1; - } - - return compat12_ret; -#else - return -1; -#endif - } - - if (get_value("\nID=", request->reply_buffer, buffer, sizeof(buffer)) != 0) - { - close(temp_id->device); - free(temp_id); - free(request->buffer); - free(request->reply_buffer); - free(request); - -#if !defined(NO_COMPAT12) - /* we try compat12 mode */ - compat12_ret = dazukoRegister_TS_compat12_wrapper(dazuko_id, groupName); - if (compat12_ret == 0) - { - (*dazuko_id)->write_mode = write_mode; - _GLOBAL_DAZUKO_COMPAT12 = 1; - } - - return compat12_ret; -#else - return -1; -#endif - } - - temp_id->id = atoi(buffer); - - if (temp_id->id < 0) - { - close(temp_id->device); - free(temp_id); - free(request->buffer); - free(request->reply_buffer); - free(request); - - return -1; - } - - temp_id->write_mode = write_mode; - - free(request->buffer); - free(request->reply_buffer); - free(request); - - *dazuko_id = temp_id; - - return 0; -} - -int dazukoSetAccessMask(unsigned long accessMask) -{ - return dazukoSetAccessMask_TS(_GLOBAL_DAZUKO, accessMask); -} - -int dazukoSetAccessMask_TS(dazuko_id_t *dazuko_id, unsigned long accessMask) -{ - struct dazuko_request *request; - ssize_t size; - char buffer[ITOA_SIZE]; - - if (dazuko_id == NULL) - return -1; - -#if !defined(NO_COMPAT12) - if (_GLOBAL_DAZUKO_COMPAT12) - return dazukoSetAccessMask_TS_compat12(dazuko_id, accessMask); -#endif - - if (dazuko_id->device < 0 || dazuko_id->dev_major < 0 || dazuko_id->id < 0) - return -1; - - request = (struct dazuko_request *)malloc(sizeof(*request)); - if (request == NULL) - return -1; - - memset(request, 0, sizeof(*request)); - - request->type[0] = SET_ACCESS_MASK; - - size = 1 + 2 + 1 + ITOA_SIZE; /* \nID=id */ - size += 1 + 2 + 1 + ITOA_SIZE; /* \nAM=accessMask */ - size += 1; /* \0 */ - - request->buffer = (char *)malloc(size); - if (request->buffer == NULL) - { - free(request); - return -1; - } - snprintf(request->buffer, size, "\nID=%d\nAM=%lu", dazuko_id->id, accessMask); - request->buffer[size - 1] = 0; - - request->buffer_size = strlen(request->buffer) + 1; - - snprintf(buffer, sizeof(buffer), "\nRA=%lu", (unsigned long)request); - buffer[sizeof(buffer)-1] = 0; - size = strlen(buffer) + 1; - - if (write(dazuko_id->device, buffer, size) != size) - { - free(request->buffer); - free(request); - return -1; - } - - free(request->buffer); - free(request); - - return 0; -} - -static int dazuko_set_path(dazuko_id_t *dazuko_id, const char *path, int type) -{ - struct dazuko_request *request; - ssize_t size; - char buffer[ITOA_SIZE]; - - if (dazuko_id == NULL) - return -1; - - if (dazuko_id->device < 0 || dazuko_id->dev_major < 0 || dazuko_id->id < 0) - return -1; - - if (path == NULL) - return -1; - - request = (struct dazuko_request *)malloc(sizeof(*request)); - if (request == NULL) - return -1; - - memset(request, 0, sizeof(*request)); - - request->type[0] = type; - - size = 1 + 2 + 1 + ITOA_SIZE; /* \nID=id */ - size += 1 + 2 + 1 + strlen(path); /* \nPT=path */ - size += 1; /* \0 */ - - request->buffer = (char *)malloc(size); - if (request->buffer == NULL) - { - free(request); - return -1; - } - snprintf(request->buffer, size, "\nID=%d\nPT=%s", dazuko_id->id, path); - request->buffer[size - 1] = 0; - - request->buffer_size = strlen(request->buffer) + 1; - - snprintf(buffer, sizeof(buffer), "\nRA=%lu", (unsigned long)request); - buffer[sizeof(buffer)-1] = 0; - size = strlen(buffer) + 1; - - if (write(dazuko_id->device, buffer, size) != size) - { - free(request->buffer); - free(request); - return -1; - } - - free(request->buffer); - free(request); - - return 0; -} - -int dazukoAddIncludePath(const char *path) -{ - return dazukoAddIncludePath_TS(_GLOBAL_DAZUKO, path); -} - -int dazukoAddIncludePath_TS(dazuko_id_t *dazuko_id, const char *path) -{ -#if !defined(NO_COMPAT12) - if (_GLOBAL_DAZUKO_COMPAT12) - return dazukoAddIncludePath_TS_compat12(dazuko_id, path); -#endif - - return dazuko_set_path(dazuko_id, path, ADD_INCLUDE_PATH); -} - -int dazukoAddExcludePath(const char *path) -{ - return dazukoAddExcludePath_TS(_GLOBAL_DAZUKO, path); -} - -int dazukoAddExcludePath_TS(dazuko_id_t *dazuko_id, const char *path) -{ -#if !defined(NO_COMPAT12) - if (_GLOBAL_DAZUKO_COMPAT12) - return dazukoAddExcludePath_TS_compat12(dazuko_id, path); -#endif - - return dazuko_set_path(dazuko_id, path, ADD_EXCLUDE_PATH); -} - -int dazukoRemoveAllPaths(void) -{ - return dazukoRemoveAllPaths_TS(_GLOBAL_DAZUKO); -} - -int dazukoRemoveAllPaths_TS(dazuko_id_t *dazuko_id) -{ - struct dazuko_request *request; - ssize_t size; - char buffer[ITOA_SIZE]; - - if (dazuko_id == NULL) - return -1; - -#if !defined(NO_COMPAT12) - if (_GLOBAL_DAZUKO_COMPAT12) - return dazukoRemoveAllPaths_TS_compat12(dazuko_id); -#endif - - if (dazuko_id->device < 0 || dazuko_id->dev_major < 0 || dazuko_id->id < 0) - return -1; - - request = (struct dazuko_request *)malloc(sizeof(*request)); - if (request == NULL) - return -1; - - memset(request, 0, sizeof(*request)); - - request->type[0] = REMOVE_ALL_PATHS; - - size = 1 + 2 + 1 + ITOA_SIZE; /* \nID=id */ - size += 1; /* \0 */ - - request->buffer = (char *)malloc(size); - if (request->buffer == NULL) - { - free(request); - return -1; - } - snprintf(request->buffer, size, "\nID=%d", dazuko_id->id); - request->buffer[size - 1] = 0; - - request->buffer_size = strlen(request->buffer) + 1; - - snprintf(buffer, sizeof(buffer), "\nRA=%lu", (unsigned long)request); - buffer[sizeof(buffer)-1] = 0; - size = strlen(buffer) + 1; - - if (write(dazuko_id->device, buffer, size) != size) - { - free(request->buffer); - free(request); - return -1; - } - - free(request->buffer); - free(request); - - return 0; -} - -int dazukoGetAccess(struct dazuko_access **acc) -{ - return dazukoGetAccess_TS(_GLOBAL_DAZUKO, acc); -} - -int dazukoGetAccess_TS(dazuko_id_t *dazuko_id, struct dazuko_access **acc) -{ - struct dazuko_request *request; - struct dazuko_access *temp_acc; - ssize_t size; - size_t filename_size; - char buffer[ITOA_SIZE]; -#if !defined(NO_COMPAT12) - int compat12_ret; -#endif - - if (dazuko_id == NULL) - return -1; - -#if !defined(NO_COMPAT12) - if (_GLOBAL_DAZUKO_COMPAT12) - { - compat12_ret = dazukoGetAccess_TS_compat12_wrapper(dazuko_id, acc); - - if (compat12_ret == 0 && !(dazuko_id->write_mode)) - { - /* we are in read_only mode so we return the access immediately */ - - dazukoReturnAccess_TS_compat12_wrapper(dazuko_id, acc, 1, 0); - - /* this could be dangerous, we do not check if the return was successfull! */ - } - - return compat12_ret; - } -#endif - - if (dazuko_id->device < 0 || dazuko_id->dev_major < 0 || dazuko_id->id < 0) - return -1; - - if (acc == NULL) - return -1; - - request = (struct dazuko_request *)malloc(sizeof(*request)); - if (request == NULL) - return -1; - - memset(request, 0, sizeof(*request)); - - request->type[0] = GET_AN_ACCESS; - - size = 1 + 2 + 1 + ITOA_SIZE; /* \nID=id */ - size += 1; /* \0 */ - - request->buffer = (char *)malloc(size); - if (request->buffer == NULL) - { - free(request); - return -1; - } - snprintf(request->buffer, size, "\nID=%d", dazuko_id->id); - request->buffer[size - 1] = 0; - - request->buffer_size = strlen(request->buffer) + 1; - - size = 1 + 2 + 1 + DAZUKO_FILENAME_MAX_LENGTH; /* \nFN=filename */ - size += 1024; /* miscellaneous access attributes */ - size += 1; /* \0 */ - request->reply_buffer = (char *)malloc(size); - if (request->reply_buffer == NULL) - { - free(request->buffer); - free(request); - return -1; - } - memset(request->reply_buffer, 0, size); - request->reply_buffer_size = size; - - temp_acc = (struct dazuko_access *)malloc(sizeof(*temp_acc)); - if (temp_acc == NULL) - { - free(request->reply_buffer); - free(request->buffer); - free(request); - return -1; - } - - memset(temp_acc, 0, sizeof(*temp_acc)); - - filename_size = DAZUKO_FILENAME_MAX_LENGTH + 1; - temp_acc->filename = (char *)malloc(filename_size); - if (temp_acc->filename == NULL) - { - free(temp_acc); - free(request->reply_buffer); - free(request->buffer); - free(request); - return -1; - } - - snprintf(buffer, sizeof(buffer), "\nRA=%lu", (unsigned long)request); - buffer[sizeof(buffer)-1] = 0; - size = strlen(buffer) + 1; - - if (write(dazuko_id->device, buffer, size) != size) - { - free(temp_acc->filename); - free(temp_acc); - free(request->reply_buffer); - free(request->buffer); - free(request); - return -1; - } - - if (request->reply_buffer_size_used > 0) - { - if (get_value("\nFN=", request->reply_buffer, temp_acc->filename, filename_size) == 0) - { - temp_acc->set_filename = 1; - unescape_string(temp_acc->filename); - } - - if (get_value("\nEV=", request->reply_buffer, buffer, sizeof(buffer)) == 0) - { - temp_acc->event = atoi(buffer); - temp_acc->set_event = 1; - } - - if (get_value("\nFL=", request->reply_buffer, buffer, sizeof(buffer)) == 0) - { - temp_acc->flags = atoi(buffer); - temp_acc->set_flags = 1; - } - - if (get_value("\nMD=", request->reply_buffer, buffer, sizeof(buffer)) == 0) - { - temp_acc->mode = atoi(buffer); - temp_acc->set_mode = 1; - } - - if (get_value("\nUI=", request->reply_buffer, buffer, sizeof(buffer)) == 0) - { - temp_acc->uid = atoi(buffer); - temp_acc->set_uid = 1; - } - - if (get_value("\nPI=", request->reply_buffer, buffer, sizeof(buffer)) == 0) - { - temp_acc->pid = atoi(buffer); - temp_acc->set_pid = 1; - } - - if (get_value("\nFS=", request->reply_buffer, buffer, sizeof(buffer)) == 0) - { - temp_acc->file_size = atol(buffer); - temp_acc->set_file_size = 1; - } - - if (get_value("\nFU=", request->reply_buffer, buffer, sizeof(buffer)) == 0) - { - temp_acc->file_uid = atoi(buffer); - temp_acc->set_file_uid = 1; - } - - if (get_value("\nFG=", request->reply_buffer, buffer, sizeof(buffer)) == 0) - { - temp_acc->file_gid = atoi(buffer); - temp_acc->set_file_gid = 1; - } - - if (get_value("\nDT=", request->reply_buffer, buffer, sizeof(buffer)) == 0) - { - temp_acc->file_device = atoi(buffer); - temp_acc->set_file_device = 1; - } - } - - free(request->reply_buffer); - free(request->buffer); - free(request); - - *acc = temp_acc; - - return 0; -} - -int dazukoReturnAccess(struct dazuko_access **acc) -{ - return dazukoReturnAccess_TS(_GLOBAL_DAZUKO, acc); -} - -int dazukoReturnAccess_TS(dazuko_id_t *dazuko_id, struct dazuko_access **acc) -{ - struct dazuko_request *request; - ssize_t size; - char buffer[ITOA_SIZE]; - - if (dazuko_id == NULL) - return -1; - -#if !defined(NO_COMPAT12) - if (_GLOBAL_DAZUKO_COMPAT12) - return dazukoReturnAccess_TS_compat12_wrapper(dazuko_id, acc, dazuko_id->write_mode, 1); -#endif - - if (dazuko_id->device < 0 || dazuko_id->dev_major < 0 || dazuko_id->id < 0) - return -1; - - if (acc == NULL) - return -1; - - if (*acc == NULL) - return -1; - - if (dazuko_id->write_mode) - { - request = (struct dazuko_request *)malloc(sizeof(*request)); - if (request == NULL) - return -1; - - memset(request, 0, sizeof(*request)); - - request->type[0] = RETURN_AN_ACCESS; - - size = 1 + 2 + 1 + ITOA_SIZE; /* \nID=id */ - size += 1 + 2 + 1 + ITOA_SIZE; /* \nDN=deny */ - size += 1; /* \0 */ - - request->buffer = (char *)malloc(size); - if (request->buffer == NULL) - { - free(request); - return -1; - } - snprintf(request->buffer, size, "\nID=%d\nDN=%d", dazuko_id->id, (*acc)->deny == 0 ? 0 : 1); - request->buffer[size - 1] = 0; - - request->buffer_size = strlen(request->buffer) + 1; - - snprintf(buffer, sizeof(buffer), "\nRA=%lu", (unsigned long)request); - buffer[sizeof(buffer)-1] = 0; - size = strlen(buffer) + 1; - - if (write(dazuko_id->device, buffer, size) != size) - { - /* there could be big problems if this happens */ - - if ((*acc)->filename != NULL) - free((*acc)->filename); - free(*acc); - *acc = NULL; - free(request->buffer); - free(request); - return -1; - } - - free(request->buffer); - free(request); - } - - if ((*acc)->filename != NULL) - free((*acc)->filename); - free(*acc); - *acc = NULL; - - return 0; -} - -int dazukoUnregister(void) -{ - return dazukoUnregister_TS(&_GLOBAL_DAZUKO); -} - -int dazukoUnregister_TS(dazuko_id_t **dazuko_id) -{ - struct dazuko_request *request; - ssize_t size; - char buffer[ITOA_SIZE]; - - if (dazuko_id == NULL) - return -1; - -#if !defined(NO_COMPAT12) - if (_GLOBAL_DAZUKO_COMPAT12) - return dazukoUnregister_TS_compat12_wrapper(dazuko_id); -#endif - - if (*dazuko_id == NULL) - return -1; - - if ((*dazuko_id)->device < 0) - return -1; - - if ((*dazuko_id)->dev_major >= 0 && (*dazuko_id)->id >= 0) - { - request = (struct dazuko_request *)malloc(sizeof(*request)); - if (request == NULL) - return -1; - - memset(request, 0, sizeof(*request)); - - request->type[0] = UNREGISTER; - - size = 1 + 2 + 1 + ITOA_SIZE; /* \nID=id */ - size += 1; /* \0 */ - - request->buffer = (char *)malloc(size); - if (request->buffer == NULL) - { - free(request); - return -1; - } - snprintf(request->buffer, size, "\nID=%d", (*dazuko_id)->id); - request->buffer[size - 1] = 0; - - request->buffer_size = strlen(request->buffer) + 1; - - snprintf(buffer, sizeof(buffer), "\nRA=%lu", (unsigned long)request); - buffer[sizeof(buffer)-1] = 0; - size = strlen(buffer) + 1; - - if (write((*dazuko_id)->device, buffer, size) != size) - { - /* there could be big problems if this happens */ - - close((*dazuko_id)->device); - free(*dazuko_id); - *dazuko_id = NULL; - free(request->buffer); - free(request); - return -1; - } - - free(request->buffer); - free(request); - } - - close((*dazuko_id)->device); - free(*dazuko_id); - *dazuko_id = NULL; - - return 0; -} -#endif diff -Nru clamav-0.97.8+dfsg/clamd/dazukoio_compat12.c clamav-0.98.1+dfsg/clamd/dazukoio_compat12.c --- clamav-0.97.8+dfsg/clamd/dazukoio_compat12.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/dazukoio_compat12.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,395 +0,0 @@ -#if HAVE_CONFIG_H -#include "clamav-config.h" -#endif - -#ifdef CLAMUKO -/* Dazuko Interface. Interace with Dazuko 1.x for file access control. - Written by John Ogness - - Copyright (c) 2003, 2004 H+BEDV Datentechnik GmbH - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - 3. Neither the name of Dazuko nor the names of its contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -#include -#include -#include -#include -#include -#include -#include -#include -#include "dazukoio_compat12.h" - -int dazukoRegister_TS_compat12_wrapper(struct dazuko_id **dazuko_id, const char *groupName) -{ - int ret; - struct dazuko_id *temp_id; - - if (dazuko_id == NULL) - return -1; - - temp_id = (struct dazuko_id *)malloc(sizeof(*temp_id)); - if (temp_id == NULL) - return -1; - - memset(temp_id, 0, sizeof(*temp_id)); - - temp_id->device = -1; - temp_id->dev_major = -1; - - ret = dazukoRegister_TS_compat12(temp_id, groupName); - - if (ret == 0) - *dazuko_id = temp_id; - else - free(temp_id); - - return ret; -} - -int dazukoRegister_TS_compat12(struct dazuko_id *dazuko, const char *groupName) -{ - struct option_compat12 *opt; - char buffer[10]; - int err = 0; - - if (dazuko == NULL) - return -1; - - if (groupName == NULL) - groupName = "_GENERIC"; - - if (dazuko->device < 0) - { - - dazuko->device = open("/dev/dazuko", 0); - if (dazuko->device < 0) - return -1; - - memset(buffer, 0, sizeof(buffer)); - if (read(dazuko->device, buffer, sizeof(buffer)-1) < 1) - { - close(dazuko->device); - dazuko->device = -1; - return -1; - } - dazuko->dev_major = atoi(buffer); - } - - opt = (struct option_compat12 *)malloc(sizeof(struct option_compat12)); - if (opt == NULL) - { - close(dazuko->device); - dazuko->device = -1; - dazuko->dev_major = -1; - return -1; - } - - memset(opt, 0, sizeof(struct option_compat12)); - - opt->command = REGISTER; - strncpy(opt->buffer, groupName, sizeof(opt->buffer) - 1); - opt->buffer[sizeof(opt->buffer)-1]='\0'; - opt->buffer_length = strlen(opt->buffer) + 1; - - if (ioctl(dazuko->device, _IOW(dazuko->dev_major, IOCTL_SET_OPTION, void *), opt) != 0) - { - /* if this fails, it could be a really old version */ - - /* - close(dazuko->device); - dazuko->device = -1; - dazuko->dev_major = -1; - err = -1; - */ - } - - free(opt); - - return err; -} - -int dazukoSetAccessMask_TS_compat12(struct dazuko_id *dazuko, unsigned long accessMask) -{ - struct option_compat12 *opt; - int err = 0; - - if (dazuko == NULL) - return -1; - - if (dazuko->device < 0 || dazuko->dev_major < 0) - return -1; - - opt = (struct option_compat12 *)malloc(sizeof(struct option_compat12)); - if (opt == NULL) - return -1; - - memset(opt, 0, sizeof(struct option_compat12)); - - opt->command = SET_ACCESS_MASK; - opt->buffer[0] = (char)accessMask; - opt->buffer_length = 1; - - if (ioctl(dazuko->device, _IOW(dazuko->dev_major, IOCTL_SET_OPTION, void *), opt) != 0) - err = -1; - - free(opt); - - return err; -} - -int dazuko_set_path_compat12(struct dazuko_id *dazuko, const char *path, int command) -{ - struct option_compat12 *opt; - int err = 0; - - if (dazuko == NULL) - return -1; - - if (path == NULL) - return -1; - - if (dazuko->device < 0 || dazuko->dev_major < 0) - return -1; - - opt = (struct option_compat12 *)malloc(sizeof(struct option_compat12)); - if (opt == NULL) - return -1; - - memset(opt, 0, sizeof(struct option_compat12)); - - opt->command = command; - strncpy(opt->buffer, path, sizeof(opt->buffer) - 1); - opt->buffer[sizeof(opt->buffer)-1]='\0'; - opt->buffer_length = strlen(opt->buffer) + 1; - - if (ioctl(dazuko->device, _IOW(dazuko->dev_major, IOCTL_SET_OPTION, void *), opt) != 0) - err = -1; - - free(opt); - - return err; -} - -int dazukoAddIncludePath_TS_compat12(struct dazuko_id *dazuko, const char *path) -{ - return dazuko_set_path_compat12(dazuko, path, ADD_INCLUDE_PATH); -} - -int dazukoAddExcludePath_TS_compat12(struct dazuko_id *dazuko, const char *path) -{ - return dazuko_set_path_compat12(dazuko, path, ADD_EXCLUDE_PATH); -} - -int dazukoRemoveAllPaths_TS_compat12(struct dazuko_id *dazuko) -{ - struct option_compat12 *opt; - int err = 0; - - if (dazuko == NULL) - return -1; - - if (dazuko->device < 0 || dazuko->dev_major < 0) - return -1; - - opt = (struct option_compat12 *)malloc(sizeof(struct option_compat12)); - if (opt == NULL) - return -1; - - memset(opt, 0, sizeof(struct option_compat12)); - - opt->command = REMOVE_ALL_PATHS; - opt->buffer_length = 0; - - if (ioctl(dazuko->device, _IOW(dazuko->dev_major, IOCTL_SET_OPTION, void *), opt) != 0) - err = -1; - - free(opt); - - return err; - -} - -int dazukoGetAccess_TS_compat12_wrapper(struct dazuko_id *dazuko, struct dazuko_access **acc) -{ - struct access_compat12 acc_compat12; - struct dazuko_access *temp_acc; - int ret; - - if (acc == NULL) - return -1; - - *acc = NULL; - - temp_acc = (struct dazuko_access *)malloc(sizeof(*temp_acc)); - if (temp_acc == NULL) - return -1; - - memset(temp_acc, 0, sizeof(*temp_acc)); - - ret = dazukoGetAccess_TS_compat12(dazuko, &acc_compat12); - - if (ret == 0) - { - temp_acc->deny = acc_compat12.deny; - temp_acc->event = acc_compat12.event; - temp_acc->set_event = 1; - temp_acc->flags = acc_compat12.o_flags; - temp_acc->set_flags = 1; - temp_acc->mode = acc_compat12.o_mode; - temp_acc->set_mode = 1; - temp_acc->uid = acc_compat12.uid; - temp_acc->set_uid = 1; - temp_acc->pid = acc_compat12.pid; - temp_acc->set_pid = 1; - temp_acc->filename = strdup(acc_compat12.filename); - temp_acc->set_filename = 1; - - *acc = temp_acc; - } - else - { - free(temp_acc); - } - - return ret; -} - -int dazukoGetAccess_TS_compat12(struct dazuko_id *dazuko, struct access_compat12 *acc) -{ - if (dazuko == NULL) - return -1; - - if (acc == NULL) - return -1; - - if (dazuko->device < 0 || dazuko->dev_major < 0) - return -1; - - memset(acc, 0, sizeof(struct access_compat12)); - - if (ioctl(dazuko->device, _IOR(dazuko->dev_major, IOCTL_GET_AN_ACCESS, struct access_compat12 *), acc) != 0) - return -1; - - return 0; -} - -int dazukoReturnAccess_TS_compat12_wrapper(struct dazuko_id *dazuko, struct dazuko_access **acc, int return_access, int free_access) -{ - struct access_compat12 acc_compat12; - int ret = 0; - - if (acc == NULL) - return -1; - - if (*acc == NULL) - return -1; - - if (return_access) - { - memset(&acc_compat12, 0, sizeof(acc_compat12)); - - acc_compat12.deny = (*acc)->deny; - acc_compat12.event = (*acc)->event; - acc_compat12.o_flags = (*acc)->flags; - acc_compat12.o_mode = (*acc)->mode; - acc_compat12.uid = (*acc)->uid; - acc_compat12.pid = (*acc)->pid; - if ((*acc)->filename != NULL) - { - strncpy(acc_compat12.filename, (*acc)->filename, sizeof(acc_compat12.filename) - 1); - acc_compat12.filename[sizeof(acc_compat12.filename) - 1] = 0; - } - - ret = dazukoReturnAccess_TS_compat12(dazuko, &acc_compat12); - } - - if (free_access && ret == 0) - { - if ((*acc)->filename != NULL) - free((*acc)->filename); - free(*acc); - *acc = NULL; - } - - return ret; -} - -int dazukoReturnAccess_TS_compat12(struct dazuko_id *dazuko, struct access_compat12 *acc) -{ - if (dazuko == NULL) - return -1; - - if (acc == NULL) - return -1; - - if (dazuko->device < 0 || dazuko->dev_major < 0) - return -1; - - if (ioctl(dazuko->device, _IOW(dazuko->dev_major, IOCTL_RETURN_ACCESS, struct access_compat12 *), acc) != 0) - return -1; - - return 0; -} - -int dazukoUnregister_TS_compat12_wrapper(struct dazuko_id **dazuko_id) -{ - int ret; - - if (dazuko_id == NULL) - return -1; - - ret = dazukoUnregister_TS_compat12(*dazuko_id); - - if (ret == 0) - { - free(*dazuko_id); - *dazuko_id = NULL; - } - - return ret; -} - -int dazukoUnregister_TS_compat12(struct dazuko_id *dazuko) -{ - int error = -1; - - if (dazuko == NULL) - return -1; - - if (dazuko->device >= 0) - error = close(dazuko->device); - - dazuko->device = -1; - dazuko->dev_major = -1; - - return error; -} -#endif diff -Nru clamav-0.97.8+dfsg/clamd/dazukoio_compat12.h clamav-0.98.1+dfsg/clamd/dazukoio_compat12.h --- clamav-0.97.8+dfsg/clamd/dazukoio_compat12.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/dazukoio_compat12.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,61 +0,0 @@ -#if HAVE_CONFIG_H -#include "clamav-config.h" -#endif - -#ifdef CLAMUKO -/* Dazuko Interface. Interace with Dazuko 1.x for file access control. - Written by John Ogness - - Copyright (c) 2003, 2004 H+BEDV Datentechnik GmbH - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - 3. Neither the name of Dazuko nor the names of its contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -#ifndef DAZUKOIO_COMPAT12_H -#define DAZUKOIO_COMPAT12_H - -#include "dazukoio_xp.h" -#include "dazukoio.h" - -int dazukoRegister_TS_compat12_wrapper(struct dazuko_id **dazuko_id, const char *groupName); -int dazukoRegister_TS_compat12(struct dazuko_id *dazuko, const char *groupName); -int dazukoSetAccessMask_TS_compat12(struct dazuko_id *dazuko, unsigned long accessMask); -int dazuko_set_path_compat12(struct dazuko_id *dazuko, const char *path, int command); -int dazukoAddIncludePath_TS_compat12(struct dazuko_id *dazuko, const char *path); -int dazukoAddExcludePath_TS_compat12(struct dazuko_id *dazuko, const char *path); -int dazukoRemoveAllPaths_TS_compat12(struct dazuko_id *dazuko); -int dazukoGetAccess_TS_compat12_wrapper(struct dazuko_id *dazuko, struct dazuko_access **acc); -int dazukoGetAccess_TS_compat12(struct dazuko_id *dazuko, struct access_compat12 *acc); -int dazukoReturnAccess_TS_compat12_wrapper(struct dazuko_id *dazuko, struct dazuko_access **acc, int return_access, int free_access); -int dazukoReturnAccess_TS_compat12(struct dazuko_id *dazuko, struct access_compat12 *acc); -int dazukoUnregister_TS_compat12_wrapper(struct dazuko_id **dazuko_id); -int dazukoUnregister_TS_compat12(struct dazuko_id *dazuko); - -#endif -#endif diff -Nru clamav-0.97.8+dfsg/clamd/dazukoio.h clamav-0.98.1+dfsg/clamd/dazukoio.h --- clamav-0.97.8+dfsg/clamd/dazukoio.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/dazukoio.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,102 +0,0 @@ -#if HAVE_CONFIG_H -#include "clamav-config.h" -#endif - -#ifdef CLAMUKO -/* Dazuko Interface. Interace with Dazuko for file access control. - Written by John Ogness - - Copyright (c) 2002, 2003, 2004 H+BEDV Datentechnik GmbH - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - 3. Neither the name of Dazuko nor the names of its contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -#ifndef DAZUKOIO_H -#define DAZUKOIO_H - -/* event types */ -#define DAZUKO_ON_OPEN 1 -#define DAZUKO_ON_CLOSE 2 -#define DAZUKO_ON_EXEC 4 -#define DAZUKO_ON_CLOSE_MODIFIED 8 -#define DAZUKO_ON_UNLINK 16 -#define DAZUKO_ON_RMDIR 32 - -struct dazuko_access -{ - int deny; - int event; - char set_event; - int flags; - char set_flags; - int mode; - char set_mode; - int uid; - char set_uid; - int pid; - char set_pid; - char *filename; - char set_filename; - unsigned long file_size; - char set_file_size; - int file_uid; - char set_file_uid; - int file_gid; - char set_file_gid; - int file_mode; - char set_file_mode; - int file_device; - char set_file_device; -}; - -struct dazuko_id; -typedef struct dazuko_id dazuko_id_t; - -/* single-threaded API */ -int dazukoRegister(const char *groupName, const char *mode); -int dazukoSetAccessMask(unsigned long accessMask); -int dazukoAddIncludePath(const char *path); -int dazukoAddExcludePath(const char *path); -int dazukoRemoveAllPaths(void); -int dazukoGetAccess(struct dazuko_access **acc); -int dazukoReturnAccess(struct dazuko_access **acc); -int dazukoUnregister(void); - -/* thread-safe API (as long as each thread has its own "dazuko_id_t") */ -int dazukoRegister_TS(dazuko_id_t **dazuko, const char *groupName, const char *mode); -int dazukoSetAccessMask_TS(dazuko_id_t *dazuko, unsigned long accessMask); -int dazukoAddIncludePath_TS(dazuko_id_t *dazuko, const char *path); -int dazukoAddExcludePath_TS(dazuko_id_t *dazuko, const char *path); -int dazukoRemoveAllPaths_TS(dazuko_id_t *dazuko); -int dazukoGetAccess_TS(dazuko_id_t *dazuko, struct dazuko_access **acc); -int dazukoReturnAccess_TS(dazuko_id_t *dazuko, struct dazuko_access **acc); -int dazukoUnregister_TS(dazuko_id_t **dazuko); - -#endif -#endif diff -Nru clamav-0.97.8+dfsg/clamd/dazukoio_xp.h clamav-0.98.1+dfsg/clamd/dazukoio_xp.h --- clamav-0.97.8+dfsg/clamd/dazukoio_xp.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/dazukoio_xp.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,106 +0,0 @@ -#if HAVE_CONFIG_H -#include "clamav-config.h" -#endif - -#ifdef CLAMUKO -/* DazukoXP Interface. Interace with Dazuko for file access control. - Written by John Ogness - - Copyright (c) 2002, 2003, 2004 H+BEDV Datentechnik GmbH - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - 3. Neither the name of Dazuko nor the names of its contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -#ifndef DAZUKOIO_XP_H -#define DAZUKOIO_XP_H - -/* various requests */ -#define SET_ACCESS_MASK 0 -#define ADD_INCLUDE_PATH 1 -#define ADD_EXCLUDE_PATH 2 -#define REGISTER 3 -#define REMOVE_ALL_PATHS 4 -#define UNREGISTER 5 -#define GET_AN_ACCESS 6 -#define RETURN_AN_ACCESS 7 - -/* this is just a large number to "guarentee" - to contain the full filename */ -#define DAZUKO_FILENAME_MAX_LENGTH 6144 - -/* this is the hard-limit file length restriction from - the 1.x series */ -#define DAZUKO_FILENAME_MAX_LENGTH_COMPAT12 4095 - -struct dazuko_request -{ - char type[2]; - int buffer_size; - char *buffer; - int reply_buffer_size; - char *reply_buffer; - int reply_buffer_size_used; -}; - -struct dazuko_id -{ - int device; - int dev_major; - int id; - int write_mode; -}; - -/* compat12 ioctls */ - -#define IOCTL_SET_OPTION 0 -#define IOCTL_GET_AN_ACCESS 1 -#define IOCTL_RETURN_ACCESS 2 - -/* compat12 structures */ - -struct access_compat12 -{ - int deny; /* set to deny file access */ - int event; /* ON_OPEN, etc */ - int o_flags; /* access flags */ - int o_mode; /* access mode */ - int uid; /* user id */ - int pid; /* user process id */ - char filename[DAZUKO_FILENAME_MAX_LENGTH_COMPAT12]; /* accessed file */ -}; - -struct option_compat12 -{ - int command; - int buffer_length; - char buffer[DAZUKO_FILENAME_MAX_LENGTH_COMPAT12]; -}; - -#endif -#endif diff -Nru clamav-0.97.8+dfsg/clamd/dazuko_xp.h clamav-0.98.1+dfsg/clamd/dazuko_xp.h --- clamav-0.97.8+dfsg/clamd/dazuko_xp.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/dazuko_xp.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,232 +0,0 @@ -#if HAVE_CONFIG_H -#include "clamav-config.h" -#endif - -#ifdef CLAMUKO -/* DazukoXP. Allow cross platform file access control for 3rd-party applications. - Written by John Ogness - - Copyright (c) 2002, 2003, 2004 H+BEDV Datentechnik GmbH - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - 3. Neither the name of Dazuko nor the names of its contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -#ifndef DAZUKO_XP_H -#define DAZUKO_XP_H - -#define VERSION "2.0.4-pre3" - -#include "dazukoio_xp.h" - -/* various requests */ -#define SET_ACCESS_MASK 0 -#define ADD_INCLUDE_PATH 1 -#define ADD_EXCLUDE_PATH 2 -#define REGISTER 3 -#define REMOVE_ALL_PATHS 4 -#define UNREGISTER 5 -#define GET_AN_ACCESS 6 -#define RETURN_AN_ACCESS 7 - -/* slot states */ -#define DAZUKO_FREE 0 /* the daemon is not ready */ -#define DAZUKO_READY 1 /* a daemon waits for something to do */ -#define DAZUKO_WAITING 2 /* a request is waiting to be served */ -#define DAZUKO_WORKING 3 /* daemon is currently in action */ -#define DAZUKO_DONE 4 /* daemon response is available */ -#define DAZUKO_BROKEN 5 /* invalid state (interrupt from ready,waiting) */ - -/* file types */ -#define DAZUKO_NONE 0 -#define DAZUKO_REGULAR 1 -#define DAZUKO_DIRECTORY 2 -#define DAZUKO_LINK 3 - - -/********************************************************* - * structures that MUST be implemented by platform-layer * - *********************************************************/ - -/* -struct xp_file; -struct xp_mutex; -struct xp_atomic; -struct xp_file_struct; -struct xp_queue; -struct xp_rwlock; -struct xp_daemon_id; -*/ - - -/****************************************** - * structures available to platform-layer * - ******************************************/ - -struct event_properties -{ - int thrown; - - int flags; - char set_flags; - int mode; - char set_mode; - int uid; - char set_uid; - int pid; - char set_pid; -}; - -struct file_properties -{ - unsigned long size; - char set_size; - int uid; - char set_uid; - int gid; - char set_gid; - int mode; - char set_mode; - int device_type; - char set_device_type; - int type; - char set_type; -}; - -struct dazuko_file_listnode -{ - char *filename; - int filename_length; - struct dazuko_file_listnode *next; -}; - -struct dazuko_file_struct -{ - /* A structure designed for simple and - * intelligent memory management when - * doing filename lookups in the kernel. */ - - int should_scan; /* already know we need to scan? */ - char *filename; /* filename to report (pointer in alias list) */ - int filename_length; /* length of filename reported */ - struct dazuko_file_listnode *aliases; /* list of file names (alias names) */ - struct file_properties file_p; /* properties of file */ - struct xp_file_struct *extra_data; /* extra platform-dependant data */ -}; - - -/******************************************************** - * functions that MUST be implemented by platform-layer * - ********************************************************/ - -/* mutex */ -int xp_init_mutex(struct xp_mutex *mutex); -int xp_down(struct xp_mutex *mutex); -int xp_up(struct xp_mutex *mutex); -int xp_destroy_mutex(struct xp_mutex *mutex); - -/* read-write lock */ -int xp_init_rwlock(struct xp_rwlock *rwlock); -int xp_write_lock(struct xp_rwlock *rwlock); -int xp_write_unlock(struct xp_rwlock *rwlock); -int xp_read_lock(struct xp_rwlock *rlock); -int xp_read_unlock(struct xp_rwlock *rlock); -int xp_destroy_rwlock(struct xp_rwlock *rwlock); - -/* wait-notify queue */ -int xp_init_queue(struct xp_queue *queue); -int xp_wait_until_condition(struct xp_queue *queue, int (*cfunction)(void *), void *cparam, int allow_interrupt); -int xp_notify(struct xp_queue *queue); -int xp_destroy_queue(struct xp_queue *queue); - -/* memory */ -void* xp_malloc(size_t size); -int xp_free(void *ptr); -int xp_copyin(const void *user_src, void *kernel_dest, size_t size); -int xp_copyout(const void *kernel_src, void *user_dest, size_t size); -int xp_verify_user_writable(const void *user_ptr, size_t size); -int xp_verify_user_readable(const void *user_ptr, size_t size); - -/* path attribute */ -int xp_is_absolute_path(const char *path); - -/* atomic */ -int xp_atomic_set(struct xp_atomic *atomic, int value); -int xp_atomic_inc(struct xp_atomic *atomic); -int xp_atomic_dec(struct xp_atomic *atomic); -int xp_atomic_read(struct xp_atomic *atomic); - -/* file descriptor */ -int xp_copy_file(struct xp_file *dest, struct xp_file *src); -int xp_compare_file(struct xp_file *file1, struct xp_file *file2); - -/* system hook */ -int xp_sys_hook(void); -int xp_sys_unhook(void); - -/* file structure */ -int xp_file_struct_check(struct dazuko_file_struct *dfs); -int xp_file_struct_check_cleanup(struct dazuko_file_struct *dfs); - -/* daemon id */ -int xp_id_compare(struct xp_daemon_id *id1, struct xp_daemon_id *id2); -int xp_id_free(struct xp_daemon_id *id); -struct xp_daemon_id* xp_id_copy(struct xp_daemon_id *id); - -/* output */ -int xp_print(const char *fmt, ...); - -/* debug */ -#ifdef DEBUG -#define DPRINT(fmt) xp_print fmt -#else -#define DPRINT(fmt) -#endif - - -/***************************************** - * functions available to platform-layer * - *****************************************/ - -int dazuko_vsnprintf(char *str, size_t size, const char *format, va_list ap); -int dazuko_snprintf(char *str, size_t size, const char *format, ...); -int dazuko_is_our_daemon(struct xp_daemon_id *xp_id); -int dazuko_get_value(const char *key, const char *string, char **value); -int dazuko_unregister_daemon(struct xp_daemon_id *xp_id); -int dazuko_handle_user_request(struct dazuko_request *user_request, struct xp_daemon_id *xp_id); -int dazuko_handle_user_request_compat12(void *ptr, int cmd, struct xp_daemon_id *xp_id); -int dazuko_get_filename_length(char *filename); -void dazuko_bzero(void *p, int len); -int dazuko_sys_check(unsigned long event, int daemon_is_allowed, struct xp_daemon_id *xp_id); -int dazuko_sys_pre(unsigned long event, struct dazuko_file_struct *kfs, struct xp_file *file, struct event_properties *event_p); -int dazuko_sys_post(unsigned long event, struct dazuko_file_struct *kfs, struct xp_file *file, struct event_properties *event_p); -int dazuko_init(void); -int dazuko_exit(void); - -#endif -#endif diff -Nru clamav-0.97.8+dfsg/clamd/fan.c clamav-0.98.1+dfsg/clamd/fan.c --- clamav-0.97.8+dfsg/clamd/fan.c 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/fan.c 2014-01-13 17:02:18.000000000 +0000 @@ -0,0 +1,362 @@ +/* + * Copyright (C) 2011 Sourcefire, Inc. + * + * Authors: Tomasz Kojm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#if HAVE_CONFIG_H +#include "clamav-config.h" +#endif + +#ifdef FANOTIFY + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include "fan-syscalllib.h" +#include "fan.h" + +#include "libclamav/clamav.h" +#include "libclamav/scanners.h" + +#include "shared/optparser.h" +#include "shared/output.h" + +#include "server.h" +#include "others.h" +#include "scanner.h" + +static void fan_exit(int sig) +{ + + logg("*ScanOnAccess: fan_exit(), signal %d\n", sig); + pthread_exit(NULL); + logg("ScanOnAccess: stopped\n"); +} + +static int fan_scanfile(int fan_fd, const char *fname, struct fanotify_event_metadata *fmd, int scan, int extinfo, struct thrarg *tharg) +{ + struct fanotify_response res; + struct cb_context context; + const char *virname; + int ret = 0; + + res.fd = fmd->fd; + res.response = FAN_ALLOW; + context.filename = fname; + context.virsize = 0; + if(scan && cl_scandesc_callback(fmd->fd, &virname, NULL, tharg->engine, tharg->options, &context) == CL_VIRUS) { + if(context.virsize) + detstats_add(virname, fname, context.virsize, context.virhash); + if(extinfo && context.virsize) + logg("ScanOnAccess: %s: %s(%s:%llu) FOUND\n", fname, virname, context.virhash, context.virsize); + else + logg("ScanOnAccess: %s: %s FOUND\n", fname, virname); + virusaction(fname, virname, tharg->opts); + res.response = FAN_DENY; + } + + if(fmd->mask & FAN_ALL_PERM_EVENTS) { + ret = write(fan_fd, &res, sizeof(res)); + if(ret == -1) + logg("!ScanOnAccess: Internal error (can't write to fanotify)\n"); + } + + return ret; +} + +void *fan_th(void *arg) +{ + struct thrarg *tharg = (struct thrarg *) arg; + sigset_t sigset; + struct sigaction act; + const struct optstruct *pt; + short int scan; + int sizelimit = 0, extinfo; + STATBUF sb; + uint64_t fan_mask = FAN_ACCESS | FAN_EVENT_ON_CHILD; + int fan_fd; + fd_set rfds; + char buf[4096]; + ssize_t bread; + struct fanotify_event_metadata *fmd; + char fname[1024]; + int ret, len; + char err[128]; + + /* ignore all signals except SIGUSR1 */ + sigfillset(&sigset); + sigdelset(&sigset, SIGUSR1); + /* The behavior of a process is undefined after it ignores a + * SIGFPE, SIGILL, SIGSEGV, or SIGBUS signal */ + sigdelset(&sigset, SIGFPE); + sigdelset(&sigset, SIGILL); + sigdelset(&sigset, SIGSEGV); +#ifdef SIGBUS + sigdelset(&sigset, SIGBUS); +#endif + pthread_sigmask(SIG_SETMASK, &sigset, NULL); + memset(&act, 0, sizeof(struct sigaction)); + act.sa_handler = fan_exit; + sigfillset(&(act.sa_mask)); + sigaction(SIGUSR1, &act, NULL); + sigaction(SIGSEGV, &act, NULL); + + fan_fd = fanotify_init(0, O_RDONLY); + if(fan_fd < 0) { + logg("!ScanOnAccess: fanotify_init failed: %s\n", cli_strerror(errno, err, sizeof(err))); + if(errno == EPERM) + logg("ScanOnAccess: clamd must be started by root\n"); + return NULL; + } + + if((pt = optget(tharg->opts, "OnAccessIncludePath"))->enabled) { + while(pt) { + if(fanotify_mark(fan_fd, FAN_MARK_ADD, fan_mask, fan_fd, pt->strarg) != 0) { + logg("!ScanOnAccess: Can't include path '%s'\n", pt->strarg); + return NULL; + } else + logg("ScanOnAccess: Protecting directory '%s'\n", pt->strarg); + pt = (struct optstruct *) pt->nextarg; + } + } else { + logg("!ScanOnAccess: Please specify at least one path with OnAccessIncludePath\n"); + return NULL; + } + + if((pt = optget(tharg->opts, "OnAccessExcludePath"))->enabled) { + while(pt) { + if(fanotify_mark(fan_fd, FAN_MARK_REMOVE, fan_mask, fan_fd, pt->strarg) != 0) { + logg("!ScanOnAccess: Can't exclude path %s\n", pt->strarg); + return NULL; + } else + logg("ScanOnAccess: Excluded path %s\n", pt->strarg); + pt = (struct optstruct *) pt->nextarg; + } + } + + sizelimit = optget(tharg->opts, "OnAccessMaxFileSize")->numarg; + if(sizelimit) + logg("ScanOnAccess: Max file size limited to %d bytes\n", sizelimit); + else + logg("ScanOnAccess: File size limit disabled\n"); + + extinfo = optget(tharg->opts, "ExtendedDetectionInfo")->enabled; + + FD_ZERO(&rfds); + FD_SET(fan_fd, &rfds); + do { + ret = select(fan_fd + 1, &rfds, NULL, NULL, NULL); + } while(ret == -1 && errno == EINTR); + + while((bread = read(fan_fd, buf, sizeof(buf))) > 0) { + fmd = (struct fanotify_event_metadata *) buf; + while(FAN_EVENT_OK(fmd, bread)) { + scan = 1; + if(fmd->fd >= 0) { + sprintf(fname, "/proc/self/fd/%d", fmd->fd); + len = readlink(fname, fname, sizeof(fname) - 1); + if(len == -1) { + close(fmd->fd); + logg("!ScanOnAccess: Internal error (readlink() failed)\n"); + return NULL; + } + fname[len] = 0; + + if(fan_checkowner(fmd->pid, tharg->opts)) { + scan = 0; + logg("*ScanOnAccess: %s skipped (excluded UID)\n", fname); + } + + if(sizelimit) { + if(FSTAT(fmd->fd, &sb) != 0 || sb.st_size > sizelimit) { + scan = 0; + /* logg("*ScanOnAccess: %s skipped (size > %d)\n", fname, sizelimit); */ + } + } + + if(fan_scanfile(fan_fd, fname, fmd, scan, extinfo, tharg) == -1) { + close(fmd->fd); + return NULL; + } + + if(close(fmd->fd) == -1) { + printf("!ScanOnAccess: Internal error (close(%d) failed)\n", fmd->fd); + close(fmd->fd); + return NULL; + } + } + fmd = FAN_EVENT_NEXT(fmd, bread); + } + do { + ret = select(fan_fd + 1, &rfds, NULL, NULL, NULL); + } while(ret == -1 && errno == EINTR); + } + + if(bread < 0) + logg("!ScanOnAccess: Internal error (failed to read data)\n"); + + return NULL; +} + +#elif defined(CLAMAUTH) + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "libclamav/clamav.h" +#include "libclamav/scanners.h" + +#include "shared/optparser.h" +#include "shared/output.h" + +#include "server.h" +#include "others.h" +#include "scanner.h" + +#define SUPPORTED_PROTOCOL 2 + +static int cauth_fd = -1; + +struct ClamAuthEvent { + unsigned int action; + char path[1024]; + unsigned int pid; +}; + +static void cauth_exit(int sig) +{ + logg("*ScanOnAccess: cauth_exit(), signal %d\n", sig); + if(cauth_fd > 0) + close(cauth_fd); + pthread_exit(NULL); + logg("ScanOnAccess: stopped\n"); +} + +static int cauth_scanfile(const char *fname, int extinfo, struct thrarg *tharg) +{ + struct cb_context context; + const char *virname; + int ret = 0, fd; + + context.filename = fname; + context.virsize = 0; + + fd = open(fname, O_RDONLY); + if(fd == -1) + return -1; + + if(cl_scandesc_callback(fd, &virname, NULL, tharg->engine, tharg->options, &context) == CL_VIRUS) { + if(context.virsize) + detstats_add(virname, fname, context.virsize, context.virhash); + if(extinfo && context.virsize) + logg("ScanOnAccess: %s: %s(%s:%llu) FOUND\n", fname, virname, context.virhash, context.virsize); + else + logg("ScanOnAccess: %s: %s FOUND\n", fname, virname); + virusaction(fname, virname, tharg->opts); + } + close(fd); + return ret; +} + +void *fan_th(void *arg) +{ + struct thrarg *tharg = (struct thrarg *) arg; + sigset_t sigset; + struct sigaction act; + int eventcnt = 1, extinfo; + char err[128]; + struct ClamAuthEvent event; + + /* ignore all signals except SIGUSR1 */ + sigfillset(&sigset); + sigdelset(&sigset, SIGUSR1); + /* The behavior of a process is undefined after it ignores a + * SIGFPE, SIGILL, SIGSEGV, or SIGBUS signal */ + sigdelset(&sigset, SIGFPE); + sigdelset(&sigset, SIGILL); + sigdelset(&sigset, SIGSEGV); +#ifdef SIGBUS + sigdelset(&sigset, SIGBUS); +#endif + pthread_sigmask(SIG_SETMASK, &sigset, NULL); + memset(&act, 0, sizeof(struct sigaction)); + act.sa_handler = cauth_exit; + sigfillset(&(act.sa_mask)); + sigaction(SIGUSR1, &act, NULL); + sigaction(SIGSEGV, &act, NULL); + + extinfo = optget(tharg->opts, "ExtendedDetectionInfo")->enabled; + + cauth_fd = open("/dev/clamauth", O_RDONLY); + if(cauth_fd == -1) { + logg("!ScanOnAccess: Can't open /dev/clamauth\n"); + if(errno == ENOENT) + logg("!ScanOnAccess: Please make sure ClamAuth.kext is loaded\n"); + else if(errno == EACCES) + logg("!ScanOnAccess: This application requires root privileges\n"); + else + logg("!ScanOnAccess: /dev/clamauth: %s\n", cli_strerror(errno, err, sizeof(err))); + + return NULL; + } + + while(1) { + if(read(cauth_fd, &event, sizeof(event)) > 0) { + if(eventcnt == 1) { + if(event.action != SUPPORTED_PROTOCOL) { + logg("!ScanOnAccess: Protocol version mismatch (tool: %d, driver: %d)\n", SUPPORTED_PROTOCOL, event.action); + close(cauth_fd); + return NULL; + } + if(strncmp(event.path, "ClamAuth", 8)) { + logg("!ScanOnAccess: Invalid version event\n"); + close(cauth_fd); + return NULL; + } + logg("ScanOnAccess: Driver version: %s, protocol version: %d\n", &event.path[9], event.action); + } else { + cauth_scanfile(event.path, extinfo, tharg); + } + eventcnt++; + } else { + if(errno == ENODEV) { + printf("^ScanOnAccess: ClamAuth module deactivated, terminating\n"); + close(cauth_fd); + return NULL; + } + } + usleep(200); + } +} +#endif diff -Nru clamav-0.97.8+dfsg/clamd/fan.h clamav-0.98.1+dfsg/clamd/fan.h --- clamav-0.97.8+dfsg/clamd/fan.h 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/fan.h 2014-01-13 17:02:18.000000000 +0000 @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2011 Sourcefire, Inc. + * + * Authors: Tomasz Kojm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#ifndef __FAN_H +#define __FAN_H + +void *fan_th(void *arg); + +#endif diff -Nru clamav-0.97.8+dfsg/clamd/fan-syscalllib.h clamav-0.98.1+dfsg/clamd/fan-syscalllib.h --- clamav-0.97.8+dfsg/clamd/fan-syscalllib.h 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/fan-syscalllib.h 2014-01-13 17:02:18.000000000 +0000 @@ -0,0 +1,28 @@ +#ifndef __FANOTIFY_SYSCALL_LIB +#define __FANOTIFY_SYSCALL_LIB + +#include +#include + +#if defined(__x86_64__) +# define __NR_fanotify_init 300 +# define __NR_fanotify_mark 301 +#elif defined(__i386__) +# define __NR_fanotify_init 338 +# define __NR_fanotify_mark 339 +#else +# error "System call numbers not defined for this architecture" +#endif + +static inline int fanotify_init(unsigned int flags, unsigned int event_f_flags) +{ + return syscall(__NR_fanotify_init, flags, event_f_flags); +} + +static inline int fanotify_mark(int fanotify_fd, unsigned int flags, __u64 mask, + int dfd, const char *pathname) +{ + return syscall(__NR_fanotify_mark, fanotify_fd, flags, mask, + dfd, pathname); +} +#endif diff -Nru clamav-0.97.8+dfsg/clamd/localserver.c clamav-0.98.1+dfsg/clamd/localserver.c --- clamav-0.97.8+dfsg/clamd/localserver.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/localserver.c 2014-01-13 17:02:18.000000000 +0000 @@ -57,7 +57,7 @@ { struct sockaddr_un server; int sockfd, backlog; - struct stat foo; + STATBUF foo; char *estr; memset((char *) &server, 0, sizeof(server)); @@ -92,7 +92,7 @@ close(sockfd); return -1; } - } else if(stat(server.sun_path, &foo) != -1) { + } else if(CLAMSTAT(server.sun_path, &foo) != -1) { logg("!LOCAL: Socket file %s exists. Either remove it, or configure a different one.\n", server.sun_path); close(sockfd); return -1; diff -Nru clamav-0.97.8+dfsg/clamd/Makefile.am clamav-0.98.1+dfsg/clamd/Makefile.am --- clamav-0.97.8+dfsg/clamd/Makefile.am 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/Makefile.am 2014-01-13 17:02:18.000000000 +0000 @@ -44,19 +44,12 @@ scanner.h \ others.c \ others.h \ - clamuko.c \ - clamuko.h \ - clamukofs.c \ - clamukofs.h \ - dazukoio_compat12.c \ - dazukoio_compat12.h \ - dazukoio.c \ - dazukoio.h \ - dazuko_xp.h \ - dazukoio_xp.h \ - dazukofs.c \ - dazukofs.h \ - shared.h + shared.h \ + fan.c \ + fan.h \ + fan-syscalllib.h + +AM_CFLAGS=@WERR_CFLAGS@ endif diff -Nru clamav-0.97.8+dfsg/clamd/Makefile.in clamav-0.98.1+dfsg/clamd/Makefile.in --- clamav-0.97.8+dfsg/clamd/Makefile.in 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/Makefile.in 2014-01-13 17:02:18.000000000 +0000 @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -34,6 +34,23 @@ # MA 02110-1301, USA. VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -67,7 +84,7 @@ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -83,23 +100,18 @@ $(top_srcdir)/shared/misc.h clamd.c tcpserver.c tcpserver.h \ localserver.c localserver.h session.c session.h thrmgr.c \ thrmgr.h server-th.c server.h scanner.c scanner.h others.c \ - others.h clamuko.c clamuko.h clamukofs.c clamukofs.h \ - dazukoio_compat12.c dazukoio_compat12.h dazukoio.c dazukoio.h \ - dazuko_xp.h dazukoio_xp.h dazukofs.c dazukofs.h shared.h + others.h shared.h fan.c fan.h fan-syscalllib.h @BUILD_CLAMD_TRUE@am_clamd_OBJECTS = output.$(OBJEXT) \ @BUILD_CLAMD_TRUE@ optparser.$(OBJEXT) getopt.$(OBJEXT) \ @BUILD_CLAMD_TRUE@ misc.$(OBJEXT) clamd.$(OBJEXT) \ @BUILD_CLAMD_TRUE@ tcpserver.$(OBJEXT) localserver.$(OBJEXT) \ @BUILD_CLAMD_TRUE@ session.$(OBJEXT) thrmgr.$(OBJEXT) \ @BUILD_CLAMD_TRUE@ server-th.$(OBJEXT) scanner.$(OBJEXT) \ -@BUILD_CLAMD_TRUE@ others.$(OBJEXT) clamuko.$(OBJEXT) \ -@BUILD_CLAMD_TRUE@ clamukofs.$(OBJEXT) \ -@BUILD_CLAMD_TRUE@ dazukoio_compat12.$(OBJEXT) \ -@BUILD_CLAMD_TRUE@ dazukoio.$(OBJEXT) dazukofs.$(OBJEXT) +@BUILD_CLAMD_TRUE@ others.$(OBJEXT) fan.$(OBJEXT) clamd_OBJECTS = $(am_clamd_OBJECTS) clamd_LDADD = $(LDADD) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp @@ -111,24 +123,29 @@ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(clamd_SOURCES) DIST_SOURCES = $(am__clamd_SOURCES_DIST) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -161,6 +178,7 @@ DBDIR = @DBDIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -209,6 +227,7 @@ LT_DLPREOPEN = @LT_DLPREOPEN@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -221,6 +240,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ @@ -232,10 +252,15 @@ TH_SAFE = @TH_SAFE@ VERSION = @VERSION@ VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@ +WERR_CFLAGS = @WERR_CFLAGS@ +WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -268,7 +293,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ ltdl_LIBOBJS = @ltdl_LIBOBJS@ ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@ mandir = @mandir@ @@ -316,20 +340,12 @@ @BUILD_CLAMD_TRUE@ scanner.h \ @BUILD_CLAMD_TRUE@ others.c \ @BUILD_CLAMD_TRUE@ others.h \ -@BUILD_CLAMD_TRUE@ clamuko.c \ -@BUILD_CLAMD_TRUE@ clamuko.h \ -@BUILD_CLAMD_TRUE@ clamukofs.c \ -@BUILD_CLAMD_TRUE@ clamukofs.h \ -@BUILD_CLAMD_TRUE@ dazukoio_compat12.c \ -@BUILD_CLAMD_TRUE@ dazukoio_compat12.h \ -@BUILD_CLAMD_TRUE@ dazukoio.c \ -@BUILD_CLAMD_TRUE@ dazukoio.h \ -@BUILD_CLAMD_TRUE@ dazuko_xp.h \ -@BUILD_CLAMD_TRUE@ dazukoio_xp.h \ -@BUILD_CLAMD_TRUE@ dazukofs.c \ -@BUILD_CLAMD_TRUE@ dazukofs.h \ -@BUILD_CLAMD_TRUE@ shared.h +@BUILD_CLAMD_TRUE@ shared.h \ +@BUILD_CLAMD_TRUE@ fan.c \ +@BUILD_CLAMD_TRUE@ fan.h \ +@BUILD_CLAMD_TRUE@ fan-syscalllib.h +@BUILD_CLAMD_TRUE@AM_CFLAGS = @WERR_CFLAGS@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav # it does support --help and --version but with the default config file @@ -372,8 +388,11 @@ $(am__aclocal_m4_deps): install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) - test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)" @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ + fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ @@ -429,7 +448,7 @@ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ done; \ done; rm -f c$${pid}_.???; exit $$bad -clamd$(EXEEXT): $(clamd_OBJECTS) $(clamd_DEPENDENCIES) +clamd$(EXEEXT): $(clamd_OBJECTS) $(clamd_DEPENDENCIES) $(EXTRA_clamd_DEPENDENCIES) @rm -f clamd$(EXEEXT) $(AM_V_CCLD)$(LINK) $(clamd_OBJECTS) $(clamd_LDADD) $(LIBS) @@ -440,11 +459,7 @@ -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clamd.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clamuko.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clamukofs.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dazukofs.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dazukoio.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dazukoio_compat12.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fan.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/localserver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@ @@ -460,90 +475,79 @@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< output.o: $(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c output.obj: $(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` optparser.o: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.o -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c optparser.obj: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.obj -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` getopt.o: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c getopt.obj: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` misc.o: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c misc.obj: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` mostlyclean-libtool: -rm -f *.lo @@ -650,10 +654,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff -Nru clamav-0.97.8+dfsg/clamd/others.c clamav-0.98.1+dfsg/clamd/others.c --- clamav-0.97.8+dfsg/clamd/others.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/others.c 2014-01-13 17:02:18.000000000 +0000 @@ -77,11 +77,19 @@ static pthread_mutex_t virusaction_lock = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t detstats_lock = PTHREAD_MUTEX_INITIALIZER; +static void xfree(void *p) +{ + if (p) + free(p); +} + #ifdef _WIN32 -void virusaction(const char *filename, const char *virname, const struct optstruct *opts) +void +virusaction (const char *filename, const char *virname, + const struct optstruct *opts) { - if(optget(opts, "VirusEvent")->enabled) - logg("^VirusEvent is not supported on this platform"); /* Yet */ + if (optget (opts, "VirusEvent")->enabled) + logg ("^VirusEvent is not supported on this platform"); /* Yet */ } #else @@ -89,244 +97,292 @@ #define VE_FILENAME "CLAM_VIRUSEVENT_FILENAME" #define VE_VIRUSNAME "CLAM_VIRUSEVENT_VIRUSNAME" -void virusaction(const char *filename, const char *virname, const struct optstruct *opts) -{ - pid_t pid; - const struct optstruct *opt; - char *buffer_file, *buffer_vir, *buffer_cmd; - const char *pt; - size_t i, j, v = 0, len; - char *env[4]; - - if(!(opt = optget(opts, "VirusEvent"))->enabled) - return; - - env[0] = getenv("PATH"); - j = env[0] ? 1 : 0; - /* Allocate env vars.. to be portable env vars should not be freed */ - buffer_file = (char *) malloc(strlen(VE_FILENAME) + strlen(filename) + 2); - if(buffer_file) { - sprintf(buffer_file, "%s=%s", VE_FILENAME, filename); - env[j++] = buffer_file; - } - - buffer_vir = (char *) malloc(strlen(VE_VIRUSNAME) + strlen(virname) + 2); - if(buffer_vir) { - sprintf(buffer_vir, "%s=%s", VE_VIRUSNAME, virname); - env[j++] = buffer_vir; - } - env[j++] = NULL; - - pt = opt->strarg; - while((pt = strstr(pt, "%v"))) { - pt += 2; - v++; - } - len = strlen(opt->strarg); - buffer_cmd = (char *) calloc(len + v * strlen(virname) + 1, sizeof(char)); - if(!buffer_cmd) { - free(buffer_file); - free(buffer_vir); - return; - } - for(i = 0, j = 0; i < len; i++) { - if(i + 1 < len && opt->strarg[i] == '%' && opt->strarg[i + 1] == 'v') { - strcat(buffer_cmd, virname); - j += strlen(virname); - i++; - } else { - buffer_cmd[j++] = opt->strarg[i]; - } - } - - pthread_mutex_lock(&virusaction_lock); - /* We can only call async-signal-safe functions after fork(). */ - pid = fork(); - if(!pid) { /* child */ - exit(execle("/bin/sh", "sh", "-c", buffer_cmd, NULL, env)); - } else if(pid > 0) { /* parent */ - pthread_mutex_unlock(&virusaction_lock); - while(waitpid(pid, NULL, 0) == -1 && errno == EINTR); - } else { - logg("!VirusEvent: fork failed.\n"); - } - free(buffer_cmd); - free(buffer_file); - free(buffer_vir); +void +virusaction (const char *filename, const char *virname, + const struct optstruct *opts) +{ + pid_t pid; + const struct optstruct *opt; + char *buffer_file, *buffer_vir, *buffer_cmd, *path; + const char *pt; + size_t i, j, v = 0, len; + char *env[4]; + + if (!(opt = optget (opts, "VirusEvent"))->enabled) + return; + + path = getenv ("PATH"); + env[0] = path ? strdup(path) : NULL; + j = env[0] ? 1 : 0; + /* Allocate env vars.. to be portable env vars should not be freed */ + buffer_file = + (char *) malloc (strlen (VE_FILENAME) + strlen (filename) + 2); + if (buffer_file) + { + sprintf (buffer_file, "%s=%s", VE_FILENAME, filename); + env[j++] = buffer_file; + } + + buffer_vir = + (char *) malloc (strlen (VE_VIRUSNAME) + strlen (virname) + 2); + if (buffer_vir) + { + sprintf (buffer_vir, "%s=%s", VE_VIRUSNAME, virname); + env[j++] = buffer_vir; + } + env[j++] = NULL; + + pt = opt->strarg; + while ((pt = strstr (pt, "%v"))) + { + pt += 2; + v++; + } + len = strlen (opt->strarg); + buffer_cmd = + (char *) calloc (len + v * strlen (virname) + 1, sizeof (char)); + if (!buffer_cmd) + { + if (path) + xfree(env[0]); + + xfree (buffer_file); + xfree (buffer_vir); + return; + } + for (i = 0, j = 0; i < len; i++) + { + if (i + 1 < len && opt->strarg[i] == '%' && opt->strarg[i + 1] == 'v') + { + strcat (buffer_cmd, virname); + j += strlen (virname); + i++; + } + else + { + buffer_cmd[j++] = opt->strarg[i]; + } + } + + pthread_mutex_lock (&virusaction_lock); + /* We can only call async-signal-safe functions after fork(). */ + pid = fork (); + if (pid == 0) + { /* child */ + exit (execle ("/bin/sh", "sh", "-c", buffer_cmd, NULL, env)); + } + else if (pid > 0) + { /* parent */ + pthread_mutex_unlock (&virusaction_lock); + while (waitpid (pid, NULL, 0) == -1 && errno == EINTR); + } + else + { + pthread_mutex_unlock(&virusaction_lock); + logg ("!VirusEvent: fork failed.\n"); + } + if (path) + xfree(env[0]); + + xfree (buffer_cmd); + xfree (buffer_file); + xfree (buffer_vir); } #endif /* _WIN32 */ /* Function: writen Try hard to write the specified number of bytes */ -int writen(int fd, void *buff, unsigned int count) +int +writen (int fd, void *buff, unsigned int count) { - int retval; - unsigned int todo; - unsigned char *current; - + int retval; + unsigned int todo; + unsigned char *current; + todo = count; current = (unsigned char *) buff; - - do { - retval = write(fd, current, todo); - if (retval < 0) { - if (errno == EINTR) { - continue; - } - return -1; - } - todo -= retval; - current += retval; - } while (todo > 0); - + + do + { + retval = write (fd, current, todo); + if (retval < 0) + { + if (errno == EINTR) + { + continue; + } + return -1; + } + todo -= retval; + current += retval; + } + while (todo > 0); + return count; } -static int realloc_polldata(struct fd_data *data) +static int +realloc_polldata (struct fd_data *data) { #ifdef HAVE_POLL if (data->poll_data_nfds == data->nfds) - return 0; + return 0; if (data->poll_data) - free(data->poll_data); - data->poll_data = malloc(data->nfds*sizeof(*data->poll_data)); - if (!data->poll_data) { - logg("!realloc_polldata: Memory allocation failed for poll_data\n"); - return -1; + free (data->poll_data); + data->poll_data = malloc (data->nfds * sizeof (*data->poll_data)); + if (!data->poll_data) + { + logg ("!realloc_polldata: Memory allocation failed for poll_data\n"); + return -1; } data->poll_data_nfds = data->nfds; #endif return 0; } -int poll_fd(int fd, int timeout_sec, int check_signals) +int +poll_fd (int fd, int timeout_sec, int check_signals) { int ret; - struct fd_data fds = FDS_INIT(NULL); + struct fd_data fds = FDS_INIT (NULL); - if (fds_add(&fds, fd, 1, timeout_sec) == -1) - return -1; - do { - ret = fds_poll_recv(&fds, timeout_sec, check_signals, NULL); - } while (ret == -1 && errno == EINTR); - fds_free(&fds); + if (fds_add (&fds, fd, 1, timeout_sec) == -1) + return -1; + do + { + ret = fds_poll_recv (&fds, timeout_sec, check_signals, NULL); + } + while (ret == -1 && errno == EINTR); + fds_free (&fds); return ret; } -void fds_cleanup(struct fd_data *data) +void +fds_cleanup (struct fd_data *data) { struct fd_buf *newbuf; - unsigned i,j; + unsigned i, j; - for (i=0,j=0;i < data->nfds; i++) { - if (data->buf[i].fd < 0) { - if (data->buf[i].buffer) - free(data->buf[i].buffer); - continue; - } - if (i != j) - data->buf[j] = data->buf[i]; - j++; + for (i = 0, j = 0; i < data->nfds; i++) + { + if (data->buf[i].fd < 0) + { + if (data->buf[i].buffer) + free (data->buf[i].buffer); + continue; + } + if (i != j) + data->buf[j] = data->buf[i]; + j++; } if (j == data->nfds) - return; - for (i = j ; i < data->nfds; i++) - data->buf[i].fd = -1; + return; + for (i = j; i < data->nfds; i++) + data->buf[i].fd = -1; data->nfds = j; - logg("$Number of file descriptors polled: %u fds\n", (unsigned) data->nfds); + logg ("$Number of file descriptors polled: %u fds\n", + (unsigned) data->nfds); /* Shrink buffer */ - newbuf = realloc(data->buf, j*sizeof(*newbuf)); - if(!j) - data->buf = NULL; + newbuf = realloc (data->buf, j * sizeof (*newbuf)); + if (!j) + data->buf = NULL; else if (newbuf) - data->buf = newbuf;/* non-fatal if shrink fails */ + data->buf = newbuf; /* non-fatal if shrink fails */ } -static int read_fd_data(struct fd_buf *buf) +static int +read_fd_data (struct fd_buf *buf) { ssize_t n; - buf->got_newdata=1; - if (!buf->buffer) /* listen-only socket */ - return 1; + buf->got_newdata = 1; + if (!buf->buffer) /* listen-only socket */ + return 1; if (buf->off >= buf->bufsize) - return -1; + return -1; - /* Read the pending packet, it may contain more than one command, but - * that is to the cmdparser to handle. - * It will handle 1st command, and then move leftover to beginning of buffer - */ + /* Read the pending packet, it may contain more than one command, but + * that is to the cmdparser to handle. + * It will handle 1st command, and then move leftover to beginning of buffer + */ #ifdef HAVE_FD_PASSING - { - struct msghdr msg; - struct cmsghdr *cmsg; - union { - unsigned char buff[CMSG_SPACE(sizeof(int))]; - struct cmsghdr hdr; - } b; - struct iovec iov[1]; - - if (buf->recvfd != -1) { - logg("$Closing unclaimed FD: %d\n", buf->recvfd); - close(buf->recvfd); - buf->recvfd = -1; - } - memset(&msg, 0, sizeof(msg)); - iov[0].iov_base = buf->buffer + buf->off; - iov[0].iov_len = buf->bufsize - buf->off; - msg.msg_iov = iov; - msg.msg_iovlen = 1; - msg.msg_control = b.buff; - msg.msg_controllen = sizeof(b.buff); - - n = recvmsg(buf->fd, &msg, 0); - if (n < 0) - return -1; - if (msg.msg_flags & MSG_TRUNC) { - logg("^Message truncated at %d bytes\n", (int)n); - return -1; - } - if (msg.msg_flags & MSG_CTRUNC) { - if (msg.msg_controllen > 0) - logg("^Control message truncated at %d bytes, %d data read\n", - (int)msg.msg_controllen, (int)n); - else - logg("^Control message truncated, no control data received, %d bytes read" + { + struct msghdr msg; + struct cmsghdr *cmsg; + union + { + unsigned char buff[CMSG_SPACE (sizeof (int))]; + struct cmsghdr hdr; + } b; + struct iovec iov[1]; + + if (buf->recvfd != -1) + { + logg ("$Closing unclaimed FD: %d\n", buf->recvfd); + close (buf->recvfd); + buf->recvfd = -1; + } + memset (&msg, 0, sizeof (msg)); + iov[0].iov_base = buf->buffer + buf->off; + iov[0].iov_len = buf->bufsize - buf->off; + msg.msg_iov = iov; + msg.msg_iovlen = 1; + msg.msg_control = b.buff; + msg.msg_controllen = sizeof (b.buff); + + n = recvmsg (buf->fd, &msg, 0); + if (n < 0) + return -1; + if (msg.msg_flags & MSG_TRUNC) + { + logg ("^Message truncated at %d bytes\n", (int) n); + return -1; + } + if (msg.msg_flags & MSG_CTRUNC) + { + if (msg.msg_controllen > 0) + logg ("^Control message truncated at %d bytes, %d data read\n", (int) msg.msg_controllen, (int) n); + else + logg ("^Control message truncated, no control data received, %d bytes read" #ifdef C_LINUX - "(Is SELinux/AppArmor enabled, and blocking file descriptor passing?)" + "(Is SELinux/AppArmor enabled, and blocking file descriptor passing?)" #endif - "\n", - (int)n); - return -1; - } - if (msg.msg_controllen) { - for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL; - cmsg = CMSG_NXTHDR(&msg, cmsg)) { - if (cmsg->cmsg_len == CMSG_LEN(sizeof(int)) && - cmsg->cmsg_level == SOL_SOCKET && - cmsg->cmsg_type == SCM_RIGHTS) { - if (buf->recvfd != -1) { - logg("$Unclaimed file descriptor received. closing: %d\n", buf->recvfd); - close(buf->recvfd); - } - buf->recvfd = *(int *)CMSG_DATA(cmsg); - logg("$Receveived a file descriptor: %d\n", buf->recvfd); - } - } - } - } + "\n", (int) n); + return -1; + } + if (msg.msg_controllen) + { + for (cmsg = CMSG_FIRSTHDR (&msg); cmsg != NULL; + cmsg = CMSG_NXTHDR (&msg, cmsg)) + { + if (cmsg->cmsg_len == CMSG_LEN (sizeof (int)) && + cmsg->cmsg_level == SOL_SOCKET && + cmsg->cmsg_type == SCM_RIGHTS) + { + if (buf->recvfd != -1) + { + logg ("$Unclaimed file descriptor received. closing: %d\n", buf->recvfd); + close (buf->recvfd); + } + buf->recvfd = *(int *) CMSG_DATA (cmsg); + logg ("$Receveived a file descriptor: %d\n", buf->recvfd); + } + } + } + } #else - n = recv(buf->fd, buf->buffer + buf->off, buf->bufsize - buf->off,0); - if (n < 0) - return -1; + n = recv (buf->fd, buf->buffer + buf->off, buf->bufsize - buf->off, 0); + if (n < 0) + return -1; #endif - buf->off += n; - return n; + buf->off += n; + return n; } -static int buf_init(struct fd_buf *buf, int listen_only, int timeout) +static int +buf_init (struct fd_buf *buf, int listen_only, int timeout) { buf->off = 0; buf->got_newdata = 0; @@ -339,89 +395,107 @@ buf->dumpname = NULL; buf->group = NULL; buf->term = '\0'; - if (!listen_only) { - if (!buf->buffer) { - buf->bufsize = PATH_MAX+8; - /* plus extra space for a \0 so we can make sure every command is \0 - * terminated */ - if (!(buf->buffer = malloc(buf->bufsize + 1))) { - logg("!add_fd: Memory allocation failed for command buffer\n"); - return -1; - } - } - } else { - if (buf->buffer) - free(buf->buffer); - buf->bufsize = 0; - buf->buffer = NULL; - } - if (timeout) { - time(&buf->timeout_at); - buf->timeout_at += timeout; - } else { - buf->timeout_at = 0; + if (!listen_only) + { + if (!buf->buffer) + { + buf->bufsize = PATH_MAX + 8; + /* plus extra space for a \0 so we can make sure every command is \0 + * terminated */ + if (!(buf->buffer = malloc (buf->bufsize + 1))) + { + logg ("!add_fd: Memory allocation failed for command buffer\n"); + return -1; + } + } + } + else + { + if (buf->buffer) + free (buf->buffer); + buf->bufsize = 0; + buf->buffer = NULL; + } + if (timeout) + { + time (&buf->timeout_at); + buf->timeout_at += timeout; + } + else + { + buf->timeout_at = 0; } return 0; } -int fds_add(struct fd_data *data, int fd, int listen_only, int timeout) +int +fds_add (struct fd_data *data, int fd, int listen_only, int timeout) { struct fd_buf *buf; unsigned n; - if (fd < 0) { - logg("!add_fd: invalid fd passed to add_fd\n"); - return -1; + if (fd < 0) + { + logg ("!add_fd: invalid fd passed to add_fd\n"); + return -1; } /* we may already have this fd, if * the old FD got closed, and the kernel reused the FD */ for (n = 0; n < data->nfds; n++) - if (data->buf[n].fd == fd) { - /* clear stale data in buffer */ - if (buf_init(&data->buf[n], listen_only, timeout) < 0) - return -1; - return 0; - } + if (data->buf[n].fd == fd) + { + /* clear stale data in buffer */ + if (buf_init (&data->buf[n], listen_only, timeout) < 0) + return -1; + return 0; + } n++; - buf = realloc(data->buf, n*sizeof(*buf)); - if (!buf) { - logg("!add_fd: Memory allocation failed for fd_buf\n"); - return -1; + buf = realloc (data->buf, n * sizeof (*buf)); + if (!buf) + { + logg ("!add_fd: Memory allocation failed for fd_buf\n"); + return -1; } data->buf = buf; data->nfds = n; - data->buf[n-1].buffer = NULL; - if (buf_init(&data->buf[n-1], listen_only, timeout) < 0) - return -1; - data->buf[n-1].fd = fd; + data->buf[n - 1].buffer = NULL; + if (buf_init (&data->buf[n - 1], listen_only, timeout) < 0) + return -1; + data->buf[n - 1].fd = fd; return 0; } -static inline void fds_lock(struct fd_data *data) +static inline void +fds_lock (struct fd_data *data) { if (data->buf_mutex) - pthread_mutex_lock(data->buf_mutex); + pthread_mutex_lock (data->buf_mutex); } -static inline void fds_unlock(struct fd_data *data) +static inline void +fds_unlock (struct fd_data *data) { if (data->buf_mutex) - pthread_mutex_unlock(data->buf_mutex); + pthread_mutex_unlock (data->buf_mutex); } -void fds_remove(struct fd_data *data, int fd) +void +fds_remove (struct fd_data *data, int fd) { size_t i; - fds_lock(data); - if (data->buf) { - for (i=0;infds;i++) { - if (data->buf[i].fd == fd) { - data->buf[i].fd = -1; - break; - } - } + fds_lock (data); + if (data->buf) + { + for (i = 0; i < data->nfds; i++) + { + if (data->buf[i].fd == fd) + { + data->buf[i].fd = -1; + break; + } + } } - fds_unlock(data); + fds_unlock (data); } #define BUFFSIZE 1024 @@ -434,7 +508,9 @@ * Must be called with buf_mutex lock held. */ /* TODO: handle ReadTimeout */ -int fds_poll_recv(struct fd_data *data, int timeout, int check_signals, void *event) +int +fds_poll_recv (struct fd_data *data, int timeout, int check_signals, + void *event) { unsigned fdsok = data->nfds; size_t i; @@ -442,40 +518,45 @@ time_t now, closest_timeout; /* we must have at least one fd, the control fd! */ - fds_cleanup(data); + fds_cleanup (data); #ifndef _WIN32 if (!data->nfds) - return 0; + return 0; #endif - for (i=0;i < data->nfds;i++) { - data->buf[i].got_newdata = 0; + for (i = 0; i < data->nfds; i++) + { + data->buf[i].got_newdata = 0; } - time(&now); + time (&now); if (timeout > 0) - closest_timeout = now + timeout; + closest_timeout = now + timeout; else - closest_timeout = 0; - for (i=0;i < data->nfds; i++) { - time_t timeout_at = data->buf[i].timeout_at; - if (timeout_at && timeout_at < now) { - /* timed out */ - data->buf[i].got_newdata = -2; - /* we must return immediately from poll/select, we have a timeout! */ - closest_timeout = now; - } else { - if (!closest_timeout) - closest_timeout = timeout_at; - else if (timeout_at && timeout_at < closest_timeout) - closest_timeout = timeout_at; - } + closest_timeout = 0; + for (i = 0; i < data->nfds; i++) + { + time_t timeout_at = data->buf[i].timeout_at; + if (timeout_at && timeout_at < now) + { + /* timed out */ + data->buf[i].got_newdata = -2; + /* we must return immediately from poll/select, we have a timeout! */ + closest_timeout = now; + } + else + { + if (!closest_timeout) + closest_timeout = timeout_at; + else if (timeout_at && timeout_at < closest_timeout) + closest_timeout = timeout_at; + } } if (closest_timeout) - timeout = closest_timeout - now; + timeout = closest_timeout - now; else - timeout = -1; + timeout = -1; if (timeout > 0) - logg("$fds_poll_recv: timeout after %d seconds\n", timeout); + logg ("$fds_poll_recv: timeout after %d seconds\n", timeout); #ifdef HAVE_POLL /* Use poll() if available, preferred because: * - can poll any number of FDs @@ -485,194 +566,240 @@ * recv() may still block according to the manpage */ - if (realloc_polldata(data) == -1) - return -1; - if (timeout > 0) { - /* seconds to ms */ - timeout *= 1000; - } - for (i=0;i < data->nfds;i++) { - data->poll_data[i].fd = data->buf[i].fd; - data->poll_data[i].events = POLLIN; - data->poll_data[i].revents = 0; + if (realloc_polldata (data) == -1) + return -1; + if (timeout > 0) + { + /* seconds to ms */ + timeout *= 1000; + } + for (i = 0; i < data->nfds; i++) + { + data->poll_data[i].fd = data->buf[i].fd; + data->poll_data[i].events = POLLIN; + data->poll_data[i].revents = 0; } - do { - int n = data->nfds; + do + { + int n = data->nfds; - fds_unlock(data); + fds_unlock (data); #ifdef _WIN32 - retval = poll_with_event(data->poll_data, n, timeout, event); + retval = poll_with_event (data->poll_data, n, timeout, event); #else - retval = poll(data->poll_data, n, timeout); + retval = poll (data->poll_data, n, timeout); #endif - fds_lock(data); + fds_lock (data); - if (retval > 0) { - fdsok = 0; - /* nfds may change during poll, but not - * poll_data_nfds */ - for (i=0;i < data->poll_data_nfds; i++) { - short revents; - if (data->buf[i].fd < 0) - continue; - if (data->buf[i].fd != data->poll_data[i].fd) { - /* should never happen */ - logg("!poll_recv_fds FD mismatch\n"); - continue; - } - revents = data->poll_data[i].revents; - if (revents & (POLLIN|POLLHUP)) { - logg("$Received POLLIN|POLLHUP on fd %d\n",data->poll_data[i].fd); - } + if (retval > 0) + { + fdsok = 0; + /* nfds may change during poll, but not + * poll_data_nfds */ + for (i = 0; i < data->poll_data_nfds; i++) + { + short revents; + if (data->buf[i].fd < 0) + continue; + if (data->buf[i].fd != data->poll_data[i].fd) + { + /* should never happen */ + logg ("!poll_recv_fds FD mismatch\n"); + continue; + } + revents = data->poll_data[i].revents; + if (revents & (POLLIN | POLLHUP)) + { + logg ("$Received POLLIN|POLLHUP on fd %d\n", + data->poll_data[i].fd); + } #ifndef _WIN32 - if (revents & POLLHUP) { - /* avoid SHUT_WR problem on Mac OS X */ - int ret = send(data->poll_data[i].fd, &n, 0, 0); - if (!ret || (ret == -1 && errno == EINTR)) - revents &= ~POLLHUP; - } + if (revents & POLLHUP) + { + /* avoid SHUT_WR problem on Mac OS X */ + int ret = send (data->poll_data[i].fd, &n, 0, 0); + if (!ret || (ret == -1 && errno == EINTR)) + revents &= ~POLLHUP; + } #endif - if (revents & POLLIN) { - int ret = read_fd_data(&data->buf[i]); - /* Data available to be read */ - if (ret == -1) - revents |= POLLERR; - else if (!ret) - revents = POLLHUP; - } - - if (revents & (POLLHUP | POLLERR | POLLNVAL)) { - if (revents & (POLLHUP| POLLNVAL)) { - /* remote disconnected */ - logg("*Client disconnected (FD %d)\n", - data->poll_data[i].fd); - } else { - /* error on file descriptor */ - logg("^Error condition on fd %d\n", - data->poll_data[i].fd); - } - data->buf[i].got_newdata = -1; - } else { - fdsok++; - } - } - } - } while (retval == -1 && !check_signals && errno == EINTR); + if (revents & POLLIN) + { + int ret = read_fd_data (&data->buf[i]); + /* Data available to be read */ + if (ret == -1) + revents |= POLLERR; + else if (!ret) + revents = POLLHUP; + } + + if (revents & (POLLHUP | POLLERR | POLLNVAL)) + { + if (revents & (POLLHUP | POLLNVAL)) + { + /* remote disconnected */ + logg ("*Client disconnected (FD %d)\n", + data->poll_data[i].fd); + } + else + { + /* error on file descriptor */ + logg ("^Error condition on fd %d\n", + data->poll_data[i].fd); + } + data->buf[i].got_newdata = -1; + } + else + { + fdsok++; + } + } + } + } + while (retval == -1 && !check_signals && errno == EINTR); #else { - fd_set rfds; - struct timeval tv; - int maxfd = -1; - - for (i=0;i < data->nfds; i++) { - int fd = data->buf[i].fd; - if (fd >= FD_SETSIZE) { - logg ("!File descriptor is too high for FD_SET\n"); - return -1; - } - - maxfd = MAX(maxfd, fd); - } - - do { - FD_ZERO(&rfds); - for(i=0;i < data->nfds;i++) { - int fd = data->buf[i].fd; - if (fd >= 0) - FD_SET(fd, &rfds); - } - tv.tv_sec = timeout; - tv.tv_usec = 0; - - fds_unlock(data); - retval = select(maxfd+1, &rfds, NULL, NULL, timeout >= 0 ? &tv : NULL); - fds_lock(data); - if (retval > 0) { - fdsok = data->nfds; - for (i=0; i < data->nfds; i++) { - if (data->buf[i].fd < 0) { - fdsok--; - continue; - } - if (FD_ISSET(data->buf[i].fd, &rfds)) { - int ret = read_fd_data(&data->buf[i]); - if (ret == -1 || !ret) { - if (ret == -1) - logg("!Error condition on fd %d\n", - data->buf[i].fd); - else { - /* avoid SHUT_WR problem on Mac OS X */ - int ret = send(data->buf[i].fd, &i, 0, 0); - if (!ret || (ret == -1 && errno == EINTR)) - continue; - logg("*Client disconnected\n"); - } - data->buf[i].got_newdata = -1; - } - } - } - } - if (retval < 0 && errno == EBADF) { - /* unlike poll(), select() won't tell us which FD is bad, so - * we have to check them one by one. */ - tv.tv_sec = 0; - tv.tv_usec = 0; - /* with tv == 0 it doesn't check for EBADF */ - FD_ZERO(&rfds); - for (i=0; i< data->nfds; i++) { - if (data->buf[i].fd == -1) - continue; - FD_SET(data->buf[i].fd, &rfds); - do { - retval = select(data->buf[i].fd+1, &rfds, NULL, NULL, &tv); - } while (retval == -1 && errno == EINTR); - if (retval == -1) { - data->buf[i].fd = -1; - } else { - FD_CLR(data->buf[i].fd, &rfds); - } - } - retval = -1; - errno = EINTR; - continue; - } - } while (retval == -1 && !check_signals && errno == EINTR); + fd_set rfds; + struct timeval tv; + int maxfd = -1; + + for (i = 0; i < data->nfds; i++) + { + int fd = data->buf[i].fd; + if (fd >= FD_SETSIZE) + { + logg ("!File descriptor is too high for FD_SET\n"); + return -1; + } + + maxfd = MAX (maxfd, fd); + } + + do + { + FD_ZERO (&rfds); + for (i = 0; i < data->nfds; i++) + { + int fd = data->buf[i].fd; + if (fd >= 0) + FD_SET (fd, &rfds); + } + tv.tv_sec = timeout; + tv.tv_usec = 0; + + fds_unlock (data); + retval = + select (maxfd + 1, &rfds, NULL, NULL, + timeout >= 0 ? &tv : NULL); + fds_lock (data); + if (retval > 0) + { + fdsok = data->nfds; + for (i = 0; i < data->nfds; i++) + { + if (data->buf[i].fd < 0) + { + fdsok--; + continue; + } + if (FD_ISSET (data->buf[i].fd, &rfds)) + { + int ret = read_fd_data (&data->buf[i]); + if (ret == -1 || !ret) + { + if (ret == -1) + logg ("!Error condition on fd %d\n", + data->buf[i].fd); + else + { + /* avoid SHUT_WR problem on Mac OS X */ + int ret = send (data->buf[i].fd, &i, 0, 0); + if (!ret || (ret == -1 && errno == EINTR)) + continue; + logg ("*Client disconnected\n"); + } + data->buf[i].got_newdata = -1; + } + } + } + } + if (retval < 0 && errno == EBADF) + { + /* unlike poll(), select() won't tell us which FD is bad, so + * we have to check them one by one. */ + tv.tv_sec = 0; + tv.tv_usec = 0; + /* with tv == 0 it doesn't check for EBADF */ + FD_ZERO (&rfds); + for (i = 0; i < data->nfds; i++) + { + if (data->buf[i].fd == -1) + continue; + FD_SET (data->buf[i].fd, &rfds); + do + { + retval = + select (data->buf[i].fd + 1, &rfds, NULL, NULL, + &tv); + } + while (retval == -1 && errno == EINTR); + if (retval == -1) + { + data->buf[i].fd = -1; + } + else + { + FD_CLR (data->buf[i].fd, &rfds); + } + } + retval = -1; + errno = EINTR; + continue; + } + } + while (retval == -1 && !check_signals && errno == EINTR); } #endif - if (retval == -1 && errno != EINTR) { - char err[128]; + if (retval == -1 && errno != EINTR) + { + char err[128]; #ifdef HAVE_POLL - logg("!poll_recv_fds: poll failed: %s\n", cli_strerror(errno, err, sizeof(err))); + logg ("!poll_recv_fds: poll failed: %s\n", + cli_strerror (errno, err, sizeof (err))); #else - logg("!poll_recv_fds: select failed: %s\n", cli_strerror(errno, err, sizeof(err))); + logg ("!poll_recv_fds: select failed: %s\n", + cli_strerror (errno, err, sizeof (err))); #endif } return retval; } -void fds_free(struct fd_data *data) +void +fds_free (struct fd_data *data) { unsigned i; - fds_lock(data); - for (i=0;i < data->nfds;i++) { - if (data->buf[i].buffer) { - free(data->buf[i].buffer); - } + fds_lock (data); + for (i = 0; i < data->nfds; i++) + { + if (data->buf[i].buffer) + { + free (data->buf[i].buffer); + } } if (data->buf) - free(data->buf); + free (data->buf); #ifdef HAVE_POLL if (data->poll_data) - free(data->poll_data); + free (data->poll_data); #endif data->buf = NULL; data->nfds = 0; - fds_unlock(data); + fds_unlock (data); } -struct detstats_s { +struct detstats_s +{ char virname[128]; char fname[128]; char md5[33]; @@ -683,63 +810,80 @@ static struct detstats_s detstats_data[DETSTATS_MAX]; static unsigned int detstats_idx = 0, detstats_total = 0; -void detstats_clear(void) +void +detstats_clear (void) { - pthread_mutex_lock(&detstats_lock); + pthread_mutex_lock (&detstats_lock); detstats_idx = detstats_total = 0; - pthread_mutex_unlock(&detstats_lock); + pthread_mutex_unlock (&detstats_lock); } -void detstats_add(const char *virname, const char *fname, unsigned int fsize, const char *md5) -{ - pthread_mutex_lock(&detstats_lock); - - strncpy(detstats_data[detstats_idx].virname, virname, sizeof(detstats_data[detstats_idx].virname)); - detstats_data[detstats_idx].virname[sizeof(detstats_data[detstats_idx].virname) - 1] = 0; - - if((fname = strrchr(fname, *PATHSEP))) - fname++; - strncpy(detstats_data[detstats_idx].fname, (!fname || !strlen(fname)) ? "NOFNAME" : fname, sizeof(detstats_data[detstats_idx].fname)); - detstats_data[detstats_idx].fname[sizeof(detstats_data[detstats_idx].fname) - 1] = 0; - - strncpy(detstats_data[detstats_idx].md5, md5, sizeof(detstats_data[detstats_idx].md5)); - detstats_data[detstats_idx].md5[sizeof(detstats_data[detstats_idx].md5) - 1] = 0; +void +detstats_add (const char *virname, const char *fname, unsigned int fsize, + const char *md5) +{ + pthread_mutex_lock (&detstats_lock); + + strncpy (detstats_data[detstats_idx].virname, virname, + sizeof (detstats_data[detstats_idx].virname)); + detstats_data[detstats_idx]. + virname[sizeof (detstats_data[detstats_idx].virname) - 1] = 0; + + if ((fname = strrchr (fname, *PATHSEP))) + fname++; + strncpy (detstats_data[detstats_idx].fname, + (!fname + || !strlen (fname)) ? "NOFNAME" : fname, + sizeof (detstats_data[detstats_idx].fname)); + detstats_data[detstats_idx]. + fname[sizeof (detstats_data[detstats_idx].fname) - 1] = 0; + + strncpy (detstats_data[detstats_idx].md5, md5, + sizeof (detstats_data[detstats_idx].md5)); + detstats_data[detstats_idx].md5[sizeof (detstats_data[detstats_idx].md5) - + 1] = 0; detstats_data[detstats_idx].fsize = fsize; - detstats_data[detstats_idx++].time = time(NULL); - if(detstats_idx == DETSTATS_MAX) - detstats_idx = 0; + detstats_data[detstats_idx++].time = time (NULL); + if (detstats_idx == DETSTATS_MAX) + detstats_idx = 0; detstats_total++; - pthread_mutex_unlock(&detstats_lock); + pthread_mutex_unlock (&detstats_lock); } -void detstats_print(int desc, char term) +void +detstats_print (int desc, char term) { - unsigned int i; + unsigned int i; - pthread_mutex_lock(&detstats_lock); - for(i = 0; i < DETSTATS_MAX && i < detstats_total; i++) - mdprintf(desc, "%u:%s:%u:%s:%s%c", detstats_data[i].time, detstats_data[i].md5, detstats_data[i].fsize, detstats_data[i].virname, detstats_data[i].fname, term); - pthread_mutex_unlock(&detstats_lock); + pthread_mutex_lock (&detstats_lock); + for (i = 0; i < DETSTATS_MAX && i < detstats_total; i++) + mdprintf (desc, "%u:%s:%u:%s:%s%c", detstats_data[i].time, + detstats_data[i].md5, detstats_data[i].fsize, + detstats_data[i].virname, detstats_data[i].fname, term); + pthread_mutex_unlock (&detstats_lock); } -#ifdef CLAMUKO -int clamuko_checkowner(int pid, const struct optstruct *opts) +#ifdef FANOTIFY +int +fan_checkowner (int pid, const struct optstruct *opts) { - char path[32]; - struct stat sb; - const struct optstruct *opt; + char path[32]; + STATBUF sb; + const struct optstruct *opt; - if(!(opt = optget(opts, "ClamukoExcludeUID"))->enabled) - return 0; + if (!(opt = optget (opts, "OnAccessExcludeUID"))->enabled) + return 0; - snprintf(path, sizeof(path), "/proc/%u", pid); - if(stat(path, &sb) == 0) { - while(opt) { - if(opt->numarg == (long long) sb.st_uid) - return 1; - opt = opt->nextarg; - } + snprintf (path, sizeof (path), "/proc/%u", pid); + if (CLAMSTAT (path, &sb) == 0) + { + while (opt) + { + if (opt->numarg == (long long) sb.st_uid) + return 1; + opt = opt->nextarg; + } } return 0; } diff -Nru clamav-0.97.8+dfsg/clamd/others.h clamav-0.98.1+dfsg/clamd/others.h --- clamav-0.97.8+dfsg/clamd/others.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/others.h 2014-01-13 17:02:18.000000000 +0000 @@ -86,8 +86,8 @@ void detstats_add(const char *virname, const char *fname, unsigned int fsize, const char *md5); void detstats_print(int desc, char term); -#ifdef CLAMUKO -int clamuko_checkowner(int pid, const struct optstruct *opts); +#ifdef FANOTIFY +int fan_checkowner(int pid, const struct optstruct *opts); #endif #endif diff -Nru clamav-0.97.8+dfsg/clamd/scanner.c clamav-0.98.1+dfsg/clamd/scanner.c --- clamav-0.97.8+dfsg/clamd/scanner.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/scanner.c 2014-01-13 17:02:18.000000000 +0000 @@ -103,10 +103,10 @@ } #define BUFFSIZE 1024 -int scan_callback(struct stat *sb, char *filename, const char *msg, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data) +int scan_callback(STATBUF *sb, char *filename, const char *msg, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data) { struct scan_cb_data *scandata = data->data; - const char *virname; + const char *virname = NULL; const char **virpp = &virname; int ret; int type = scandata->type; @@ -225,8 +225,7 @@ return CL_SUCCESS; } - thrmgr_setactivetask(filename, - type == TYPE_MULTISCAN ? "MULTISCANFILE" : NULL); + thrmgr_setactivetask(filename, NULL); context.filename = filename; context.virsize = 0; ret = cl_scanfile_callback(filename, virpp, &scandata->scanned, scandata->engine, scandata->options, &context); @@ -234,22 +233,27 @@ if (scandata->options & CL_SCAN_ALLMATCHES) { virpp = (const char **)*virpp; /* temp hack for scanall mode until api augmentation */ - virname = virpp[0]; + if (virpp) virname = virpp[0]; } if (thrmgr_group_need_terminate(scandata->conn->group)) { free(filename); - if (ret == CL_VIRUS && scandata->options & CL_SCAN_ALLMATCHES) + if ((scandata->options & CL_SCAN_ALLMATCHES) && (virpp != &virname)) free((void *)virpp); logg("*Client disconnected while scanjob was active\n"); return ret == CL_ETIMEOUT ? ret : CL_BREAK; } + if ((ret == CL_VIRUS) && (virname == NULL)) { + logg("*%s: reported CL_VIRUS but no virname returned!\n", filename); + ret = CL_EMEM; + } + if (ret == CL_VIRUS) { scandata->infected++; if (conn_reply_virus(scandata->conn, filename, virname) == -1) { free(filename); - if (scandata->options & CL_SCAN_ALLMATCHES) + if((scandata->options & CL_SCAN_ALLMATCHES) && (virpp != &virname)) free((void *)virpp); return CL_ETIMEOUT; } @@ -258,7 +262,8 @@ while (NULL != virpp[i]) if (conn_reply_virus(scandata->conn, filename, virpp[i++]) == -1) { free(filename); - free((void *)virpp); + if (virpp != &virname) + free((void *)virpp); return CL_ETIMEOUT; } } @@ -277,6 +282,8 @@ } else if (ret != CL_CLEAN) { scandata->errors++; if (conn_reply(scandata->conn, filename, cl_strerror(ret), "ERROR") == -1) { + if((scandata->options & CL_SCAN_ALLMATCHES) && (virpp != &virname)) + free((void *)virpp); free(filename); return CL_ETIMEOUT; } @@ -286,7 +293,7 @@ } free(filename); - if (ret == CL_VIRUS && scandata->options & CL_SCAN_ALLMATCHES) + if((scandata->options & CL_SCAN_ALLMATCHES) && (virpp != &virname)) free((void *)virpp); if(ret == CL_EMEM) /* stop scanning */ return ret; @@ -304,7 +311,7 @@ { struct scan_cb_data *scandata = data->data; const struct optstruct *opt; - struct stat statbuf; + STATBUF statbuf; if((opt = optget(scandata->opts, "ExcludePath"))->enabled) { while(opt) { @@ -318,7 +325,7 @@ } if(!optget(scandata->opts, "CrossFilesystems")->enabled) { - if(stat(path, &statbuf) == 0) { + if(CLAMSTAT(path, &statbuf) == 0) { if(statbuf.st_dev != scandata->dev) { if(scandata->type != TYPE_MULTISCAN) conn_reply_single(scandata->conn, path, "Excluded (another filesystem)"); @@ -336,7 +343,7 @@ { int ret, fd = conn->scanfd; const char *virname; - struct stat statbuf; + STATBUF statbuf; struct cb_context context; char fdstr[32]; const char*reply_fdstr; @@ -353,7 +360,7 @@ snprintf(fdstr, sizeof(fdstr), "fd[%d]", fd); reply_fdstr = fdstr; } - if(fstat(fd, &statbuf) == -1 || !S_ISREG(statbuf.st_mode)) { + if(FSTAT(fd, &statbuf) == -1 || !S_ISREG(statbuf.st_mode)) { logg("%s: Not a regular file. ERROR\n", fdstr); if (conn_reply(conn, reply_fdstr, "Not a regular file", "ERROR") == -1) return CL_ETIMEOUT; @@ -428,7 +435,7 @@ if((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) continue; - if(bind(sockfd, (struct sockaddr *) &server, sizeof(struct sockaddr_in)) == -1) + if(bind(sockfd, (struct sockaddr *) &server, (socklen_t)sizeof(struct sockaddr_in)) == -1) closesocket(sockfd); else { bound = 1; @@ -440,13 +447,16 @@ timeout = optget(opts, "ReadTimeout")->numarg; firsttimeout = optget(opts, "CommandReadTimeout")->numarg; - if(!bound && !portscan) { + if(!bound) { logg("!ScanStream: Can't find any free port.\n"); mdprintf(odesc, "Can't find any free port. ERROR%c", term); - closesocket(sockfd); return -1; } else { - listen(sockfd, 1); + if (listen(sockfd, 1) == -1) { + logg("!ScanStream: listen() error on socket. Error returned is %s.\n", strerror(errno)); + closesocket(sockfd); + return -1; + } if(mdprintf(odesc, "PORT %u%c", port, term) <= 0) { logg("!ScanStream: error transmitting port.\n"); closesocket(sockfd); @@ -464,7 +474,7 @@ } addrlen = sizeof(peer); - if((acceptd = accept(sockfd, (struct sockaddr *) &peer, &addrlen)) == -1) { + if((acceptd = accept(sockfd, (struct sockaddr *) &peer, (socklen_t *)&addrlen)) == -1) { closesocket(sockfd); mdprintf(odesc, "accept() ERROR%c", term); logg("!ScanStream %u: accept() failed.\n", port); diff -Nru clamav-0.97.8+dfsg/clamd/scanner.h clamav-0.98.1+dfsg/clamd/scanner.h --- clamav-0.97.8+dfsg/clamd/scanner.h 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/scanner.h 2014-01-13 17:02:18.000000000 +0000 @@ -21,10 +21,6 @@ #ifndef __SCANNER_H #define __SCANNER_H -#define TYPE_SCAN 0 -#define TYPE_CONTSCAN 1 -#define TYPE_MULTISCAN 2 - #include #include "libclamav/clamav.h" @@ -32,6 +28,8 @@ #include "thrmgr.h" #include "session.h" +enum scan_type { TYPE_INIT = -1, TYPE_SCAN = 0, TYPE_CONTSCAN = 1, TYPE_MULTISCAN = 2 }; + struct scan_cb_data { int scantype; int odesc; @@ -59,7 +57,7 @@ int scanfd(const client_conn_t *conn, unsigned long int *scanned, const struct cl_engine *engine, unsigned int options, const struct optstruct *opts, int odesc, int stream); int scanstream(int odesc, unsigned long int *scanned, const struct cl_engine *engine, unsigned int options, const struct optstruct *opts, char term); -int scan_callback(struct stat *sb, char *filename, const char *msg, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data); +int scan_callback(STATBUF *sb, char *filename, const char *msg, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data); int scan_pathchk(const char *path, struct cli_ftw_cbdata *data); void hash_callback(int fd, unsigned long long size, const unsigned char *md5, const char *virname, void *ctx); void msg_callback(enum cl_msg severity, const char *fullmsg, const char *msg, void *ctx); diff -Nru clamav-0.97.8+dfsg/clamd/server-th.c clamav-0.98.1+dfsg/clamd/server-th.c --- clamav-0.97.8+dfsg/clamd/server-th.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/server-th.c 2014-01-13 17:02:18.000000000 +0000 @@ -49,10 +49,10 @@ #include "shared/output.h" #include "shared/optparser.h" +#include "fan.h" #include "server.h" #include "thrmgr.h" #include "session.h" -#include "clamuko.h" #include "others.h" #include "shared.h" #include "libclamav/others.h" @@ -599,6 +599,8 @@ logg("$Moved partial command: %lu\n", (unsigned long)buf->off); else logg("$Consumed entire command\n"); + /* adjust pos to account for the buffer shuffle */ + pos = 0; } *ppos = pos; return cmd; @@ -610,74 +612,84 @@ int rc; size_t pos = *ppos; size_t cmdlen; - + logg("$mode == MODE_STREAM\n"); - /* we received a chunk, set readtimeout */ + /* we received some data, set readtimeout */ time(&buf->timeout_at); buf->timeout_at += readtimeout; - if (!buf->chunksize) { - /* read chunksize */ - if (buf->off >= 4) { - uint32_t cs = *(uint32_t*)buf->buffer; - buf->chunksize = ntohl(cs); - logg("$Got chunksize: %u\n", buf->chunksize); - if (!buf->chunksize) { - /* chunksize 0 marks end of stream */ - conn->scanfd = buf->dumpfd; - conn->term = buf->term; - buf->dumpfd = -1; - buf->mode = buf->group ? MODE_COMMAND : MODE_WAITREPLY; - if (buf->mode == MODE_WAITREPLY) - buf->fd = -1; - logg("$Chunks complete\n"); - buf->dumpname = NULL; - if ((rc = execute_or_dispatch_command(conn, COMMAND_INSTREAMSCAN, NULL)) < 0) { - logg("!Command dispatch failed\n"); - if(rc == -1 && optget(opts, "ExitOnOOM")->enabled) { - pthread_mutex_lock(&exit_mutex); - progexit = 1; - pthread_mutex_unlock(&exit_mutex); - } - *error = 1; - } else { - pos = 4; - memmove (buf->buffer, &buf->buffer[pos], buf->off - pos); - buf->off -= pos; - *ppos = 0; - buf->id++; - return 0; + while (pos <= buf->off) { + if (!buf->chunksize) { + /* read chunksize */ + if (buf->off-pos >= 4) { + uint32_t cs; + memmove(&cs, buf->buffer + pos, 4); + pos += 4; + buf->chunksize = ntohl(cs); + logg("$Got chunksize: %u\n", buf->chunksize); + if (!buf->chunksize) { + /* chunksize 0 marks end of stream */ + conn->scanfd = buf->dumpfd; + conn->term = buf->term; + buf->dumpfd = -1; + buf->mode = buf->group ? MODE_COMMAND : MODE_WAITREPLY; + if (buf->mode == MODE_WAITREPLY) + buf->fd = -1; + logg("$Chunks complete\n"); + buf->dumpname = NULL; + if ((rc = execute_or_dispatch_command(conn, COMMAND_INSTREAMSCAN, NULL)) < 0) { + logg("!Command dispatch failed\n"); + if(rc == -1 && optget(opts, "ExitOnOOM")->enabled) { + pthread_mutex_lock(&exit_mutex); + progexit = 1; + pthread_mutex_unlock(&exit_mutex); + } + *error = 1; + } else { + memmove (buf->buffer, &buf->buffer[pos], buf->off - pos); + buf->off -= pos; + *ppos = 0; + buf->id++; + return 0; + } } - } - if (buf->chunksize > buf->quota) { - logg("^INSTREAM: Size limit reached, (requested: %lu, max: %lu)\n", - (unsigned long)buf->chunksize, (unsigned long)buf->quota); - conn_reply_error(conn, "INSTREAM size limit exceeded."); - *error = 1; - *ppos = pos; - return -1; + if (buf->chunksize > buf->quota) { + logg("^INSTREAM: Size limit reached, (requested: %lu, max: %lu)\n", + (unsigned long)buf->chunksize, (unsigned long)buf->quota); + conn_reply_error(conn, "INSTREAM size limit exceeded."); + *error = 1; + *ppos = pos; + return -1; + } else { + buf->quota -= buf->chunksize; + } + logg("$Quota Remaining: %lu\n", buf->quota); } else { - buf->quota -= buf->chunksize; - } - logg("$Quota: %lu\n", buf->quota); - pos = 4; - } else - return -1; - } else - pos = 0; - if (pos + buf->chunksize < buf->off) - cmdlen = buf->chunksize; - else - cmdlen = buf->off - pos; - buf->chunksize -= cmdlen; - if (cli_writen(buf->dumpfd, buf->buffer + pos, cmdlen) < 0) { - conn_reply_error(conn, "Error writing to temporary file"); - logg("!INSTREAM: Can't write to temporary file.\n"); - *error = 1; - } - logg("$Processed %lu bytes of chunkdata\n", cmdlen); - pos += cmdlen; - if (pos == buf->off) { - buf->off = 0; + /* need more data, so return and wait for some */ + memmove (buf->buffer, &buf->buffer[pos], buf->off - pos); + buf->off -= pos; + *ppos = 0; + return -1; + } + } + if (pos + buf->chunksize < buf->off) + cmdlen = buf->chunksize; + else + cmdlen = buf->off - pos; + buf->chunksize -= cmdlen; + if (cli_writen(buf->dumpfd, buf->buffer + pos, cmdlen) < 0) { + conn_reply_error(conn, "Error writing to temporary file"); + logg("!INSTREAM: Can't write to temporary file.\n"); + *error = 1; + } + logg("$Processed %lu bytes of chunkdata, pos %lu\n", cmdlen, pos); + pos += cmdlen; + if (pos == buf->off) { + buf->off = 0; + pos = 0; + /* need more data, so return and wait for some */ + *ppos = pos; + return -1; + } } *ppos = pos; return 0; @@ -709,9 +721,9 @@ unsigned int selfchk; threadpool_t *thr_pool; -#if defined(CLAMUKO) || defined(CLAMAUTH) - pthread_t clamuko_pid; - pthread_attr_t clamuko_attr; +#if defined(FANOTIFY) || defined(CLAMAUTH) + pthread_t fan_pid; + pthread_attr_t fan_attr; struct thrarg *tharg = NULL; /* shut up gcc */ #endif @@ -789,6 +801,58 @@ } #endif + /* Engine max sizes */ + + if((opt = optget(opts, "MaxEmbeddedPE"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_EMBEDDEDPE, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_EMBEDDEDPE) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 1; + } + } + val = cl_engine_get_num(engine, CL_ENGINE_MAX_EMBEDDEDPE, NULL); + logg("Limits: MaxEmbeddedPE limit set to %llu bytes.\n", val); + + if((opt = optget(opts, "MaxHTMLNormalize"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_HTMLNORMALIZE, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_HTMLNORMALIZE) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 1; + } + } + val = cl_engine_get_num(engine, CL_ENGINE_MAX_HTMLNORMALIZE, NULL); + logg("Limits: MaxHTMLNormalize limit set to %llu bytes.\n", val); + + if((opt = optget(opts, "MaxHTMLNoTags"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_HTMLNOTAGS, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_HTMLNOTAGS) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 1; + } + } + val = cl_engine_get_num(engine, CL_ENGINE_MAX_HTMLNOTAGS, NULL); + logg("Limits: MaxHTMLNoTags limit set to %llu bytes.\n", val); + + if((opt = optget(opts, "MaxScriptNormalize"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_SCRIPTNORMALIZE, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_SCRIPTNORMALIZE) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 1; + } + } + val = cl_engine_get_num(engine, CL_ENGINE_MAX_SCRIPTNORMALIZE, NULL); + logg("Limits: MaxScriptNormalize limit set to %llu bytes.\n", val); + + if((opt = optget(opts, "MaxZipTypeRcg"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_ZIPTYPERCG, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_ZIPTYPERCG) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 1; + } + } + val = cl_engine_get_num(engine, CL_ENGINE_MAX_ZIPTYPERCG, NULL); + logg("Limits: MaxZipTypeRcg limit set to %llu bytes.\n", val); + if(optget(opts, "ScanArchive")->enabled) { logg("Archive support enabled.\n"); options |= CL_SCAN_ARCHIVE; @@ -861,6 +925,13 @@ logg("PDF support disabled.\n"); } + if(optget(opts, "ScanSWF")->enabled) { + logg("SWF support enabled.\n"); + options |= CL_SCAN_SWF; + } else { + logg("SWF support disabled.\n"); + } + if(optget(opts, "ScanHTML")->enabled) { logg("HTML support enabled.\n"); options |= CL_SCAN_HTML; @@ -1004,24 +1075,24 @@ logg("*MaxQueue set to: %d\n", max_queue); acceptdata.max_queue = max_queue; - if(optget(opts, "ClamukoScanOnAccess")->enabled || optget(opts, "ClamAuth")->enabled) -#if defined(CLAMUKO) || defined(CLAMAUTH) + if(optget(opts, "ScanOnAccess")->enabled) +#if defined(FANOTIFY) || defined(CLAMAUTH) { do { - if(pthread_attr_init(&clamuko_attr)) break; - pthread_attr_setdetachstate(&clamuko_attr, PTHREAD_CREATE_JOINABLE); + if(pthread_attr_init(&fan_attr)) break; + pthread_attr_setdetachstate(&fan_attr, PTHREAD_CREATE_JOINABLE); if(!(tharg = (struct thrarg *) malloc(sizeof(struct thrarg)))) break; tharg->opts = opts; tharg->engine = engine; tharg->options = options; - if(!pthread_create(&clamuko_pid, &clamuko_attr, clamukoth, tharg)) break; + if(!pthread_create(&fan_pid, &fan_attr, fan_th, tharg)) break; free(tharg); tharg=NULL; } while(0); - if (!tharg) logg("!Unable to start Clamuko\n"); + if (!tharg) logg("!Unable to start on-access scan\n"); } #else - logg("Clamuko is not available.\n"); + logg("!On-access scan is not available\n"); #endif #ifndef _WIN32 @@ -1227,9 +1298,14 @@ } thrmgr_group_terminate(buf->group); if (thrmgr_group_finished(buf->group, EXIT_ERROR)) { - logg("$Shutting down socket after error (FD %d)\n", buf->fd); - shutdown(buf->fd, 2); - closesocket(buf->fd); + if (buf->fd < 0) { + logg("$Skipping shutdown of bad socket after error (FD %d)\n", buf->fd); + } + else { + logg("$Shutting down socket after error (FD %d)\n", buf->fd); + shutdown(buf->fd, 2); + closesocket(buf->fd); + } } else logg("$Socket not shut down due to active tasks\n"); buf->fd = -1; @@ -1284,11 +1360,11 @@ pthread_mutex_lock(&reload_mutex); if(reload) { pthread_mutex_unlock(&reload_mutex); -#if defined(CLAMUKO) || defined(CLAMAUTH) - if((optget(opts, "ClamukoScanOnAccess")->enabled || optget(opts, "ClamAuth")->enabled) && tharg) { - logg("Stopping and restarting Clamuko.\n"); - pthread_kill(clamuko_pid, SIGUSR1); - pthread_join(clamuko_pid, NULL); +#if defined(FANOTIFY) || defined(CLAMAUTH) + if(optget(opts, "ScanOnAccess")->enabled && tharg) { + logg("Restarting on-access scan\n"); + pthread_kill(fan_pid, SIGUSR1); + pthread_join(fan_pid, NULL); } #endif engine = reload_db(engine, dboptions, opts, FALSE, &ret); @@ -1303,10 +1379,10 @@ reload = 0; time(&reloaded_time); pthread_mutex_unlock(&reload_mutex); -#if defined(CLAMUKO) || defined(CLAMAUTH) - if((optget(opts, "ClamukoScanOnAccess")->enabled || optget(opts, "ClamAuth")->enabled) && tharg) { +#if defined(FANOTIFY) || defined(CLAMAUTH) + if(optget(opts, "ScanOnAccess")->enabled && tharg) { tharg->engine = engine; - pthread_create(&clamuko_pid, &clamuko_attr, clamukoth, tharg); + pthread_create(&fan_pid, &fan_attr, fan_th, tharg); } #endif time(&start_time); @@ -1330,11 +1406,11 @@ */ logg("*Waiting for all threads to finish\n"); thrmgr_destroy(thr_pool); -#if defined(CLAMUKO) || defined(CLAMAUTH) - if(optget(opts, "ClamukoScanOnAccess")->enabled || optget(opts, "ClamAuth")->enabled) { - logg("Stopping Clamuko.\n"); - pthread_kill(clamuko_pid, SIGUSR1); - pthread_join(clamuko_pid, NULL); +#if defined(FANOTIFY) || defined(CLAMAUTH) + if(optget(opts, "ScanOnAccess")->enabled && tharg) { + logg("Stopping on-access scan\n"); + pthread_kill(fan_pid, SIGUSR1); + pthread_join(fan_pid, NULL); } #endif if(engine) { diff -Nru clamav-0.97.8+dfsg/clamd/session.c clamav-0.98.1+dfsg/clamd/session.c --- clamav-0.97.8+dfsg/clamd/session.c 2013-04-17 15:25:08.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/session.c 2014-01-13 17:02:18.000000000 +0000 @@ -192,7 +192,7 @@ struct cl_engine *engine = conn->engine; unsigned int options = conn->options; const struct optstruct *opts = conn->opts; - int type = -1; /* TODO: make this enum */ + enum scan_type type = TYPE_INIT; int maxdirrec; int ret = 0; int flags = CLI_FTW_STD; @@ -200,7 +200,7 @@ struct scan_cb_data scandata; struct cli_ftw_cbdata data; unsigned ok, error, total; - struct stat sb; + STATBUF sb; jobgroup_t *group = NULL; if (thrmgr_group_need_terminate(conn->group)) { @@ -236,7 +236,7 @@ int multiscan, max, alive; /* use MULTISCAN only for directories (bb #1869) */ - if (stat(conn->filename, &sb) == 0 && + if (CLAMSTAT(conn->filename, &sb) == 0 && !S_ISDIR(sb.st_mode)) { thrmgr_setactivetask(NULL, "CONTSCAN"); type = TYPE_CONTSCAN; @@ -266,8 +266,12 @@ thrmgr_setactivetask(NULL, "MULTISCAN"); type = TYPE_MULTISCAN; scandata.group = group = thrmgr_group_new(); - if (!group) - return CL_EMEM; + if (!group) { + if(optget(opts, "ExitOnOOM")->enabled) + return -1; + else + return 1; + } break; } case COMMAND_MULTISCANFILE: @@ -281,152 +285,171 @@ *virus = scandata.infected; if (ret == CL_BREAK) { thrmgr_group_terminate(conn->group); - return CL_BREAK; + return 1; } return scandata.errors > 0 ? scandata.errors : 0; case COMMAND_FILDES: thrmgr_setactivetask(NULL, "FILDES"); #ifdef HAVE_FD_PASSING - if (conn->scanfd == -1) + if (conn->scanfd == -1) { conn_reply_error(conn, "FILDES: didn't receive file descriptor."); + return 1; + } else { ret = scanfd(conn, NULL, engine, options, opts, desc, 0); if (ret == CL_VIRUS) { *virus = 1; + ret = 0; } else if (ret == CL_EMEM) { if(optget(opts, "ExitOnOOM")->enabled) ret = -1; + else + ret = 1; } else if (ret == CL_ETIMEOUT) { thrmgr_group_terminate(conn->group); ret = 1; } else ret = 0; + logg("$Closed fd %d\n", conn->scanfd); + close(conn->scanfd); } - logg("$Closed fd %d\n", conn->scanfd); - close(conn->scanfd); return ret; #else - conn_reply_error(conn, "FILDES support not compiled in."); - close(conn->scanfd); - return 0; -#endif - case COMMAND_STATS: - thrmgr_setactivetask(NULL, "STATS"); - if (conn->group) - mdprintf(desc, "%u: ", conn->id); - thrmgr_printstats(desc, conn->term); - return 0; - case COMMAND_STREAM: - thrmgr_setactivetask(NULL, "STREAM"); - ret = scanstream(desc, NULL, engine, options, opts, conn->term); - if (ret == CL_VIRUS) - *virus = 1; - if (ret == CL_EMEM) { - if(optget(opts, "ExitOnOOM")->enabled) - return -1; - } - return 0; - case COMMAND_INSTREAMSCAN: - thrmgr_setactivetask(NULL, "INSTREAM"); - ret = scanfd(conn, NULL, engine, options, opts, desc, 1); - if (ret == CL_VIRUS) { - *virus = 1; - } else if (ret == CL_EMEM) { - if(optget(opts, "ExitOnOOM")->enabled) - ret = -1; - } else if (ret == CL_ETIMEOUT) { - thrmgr_group_terminate(conn->group); - ret = 1; - } else - ret = 0; - if (ftruncate(conn->scanfd, 0) == -1) { - /* not serious, we're going to close it and unlink it anyway */ - logg("*ftruncate failed: %d\n", errno); + conn_reply_error(conn, "FILDES support not compiled in."); + close(conn->scanfd); + return 0; + #endif + case COMMAND_STATS: + thrmgr_setactivetask(NULL, "STATS"); + if (conn->group) + mdprintf(desc, "%u: ", conn->id); + thrmgr_printstats(desc, conn->term); + return 0; + case COMMAND_STREAM: + thrmgr_setactivetask(NULL, "STREAM"); + ret = scanstream(desc, NULL, engine, options, opts, conn->term); + if (ret == CL_VIRUS) + *virus = 1; + if (ret == CL_EMEM) { + if(optget(opts, "ExitOnOOM")->enabled) + return -1; + else + return 1; + } + return 0; + case COMMAND_INSTREAMSCAN: + thrmgr_setactivetask(NULL, "INSTREAM"); + ret = scanfd(conn, NULL, engine, options, opts, desc, 1); + if (ret == CL_VIRUS) { + *virus = 1; + ret = 0; + } else if (ret == CL_EMEM) { + if(optget(opts, "ExitOnOOM")->enabled) + ret = -1; + else + ret = 1; + } else if (ret == CL_ETIMEOUT) { + thrmgr_group_terminate(conn->group); + ret = 1; + } else + ret = 0; + if (ftruncate(conn->scanfd, 0) == -1) { + /* not serious, we're going to close it and unlink it anyway */ + logg("*ftruncate failed: %d\n", errno); + } + close(conn->scanfd); + conn->scanfd = -1; + cli_unlink(conn->filename); + return ret; + case COMMAND_ALLMATCHSCAN: + if (!optget(opts, "AllowAllMatchScan")->enabled) { + logg("$Rejecting ALLMATCHSCAN command.\n"); + conn_reply(conn, conn->filename, "ALLMATCHSCAN command disabled by clamd configuration.", "ERROR"); + return 1; } - close(conn->scanfd); - conn->scanfd = -1; - cli_unlink(conn->filename); - return ret; - case COMMAND_ALLMATCHSCAN: - thrmgr_setactivetask(NULL, "ALLMATCHSCAN"); - scandata.options |= CL_SCAN_ALLMATCHES; - type = TYPE_SCAN; - break;default: - logg("!Invalid command distpached: %d\n", conn->cmdtype); + thrmgr_setactivetask(NULL, "ALLMATCHSCAN"); + scandata.options |= CL_SCAN_ALLMATCHES; + type = TYPE_SCAN; + break; + default: + logg("!Invalid command dispatched: %d\n", conn->cmdtype); return 1; - } + } - scandata.type = type; - maxdirrec = optget(opts, "MaxDirectoryRecursion")->numarg; - if (optget(opts, "FollowDirectorySymlinks")->enabled) - flags |= CLI_FTW_FOLLOW_DIR_SYMLINK; - if (optget(opts, "FollowFileSymlinks")->enabled) - flags |= CLI_FTW_FOLLOW_FILE_SYMLINK; - - if(!optget(opts, "CrossFilesystems")->enabled) - if(stat(conn->filename, &sb) == 0) - scandata.dev = sb.st_dev; - - ret = cli_ftw(conn->filename, flags, maxdirrec ? maxdirrec : INT_MAX, scan_callback, &data, scan_pathchk); - if (ret == CL_EMEM) - if(optget(opts, "ExitOnOOM")->enabled) - return -1; - if (scandata.group && conn->cmdtype == COMMAND_MULTISCAN) { - thrmgr_group_waitforall(group, &ok, &error, &total); - pthread_mutex_lock(&conn->thrpool->pool_mutex); - conn->thrpool->thr_multiscan--; - pthread_mutex_unlock(&conn->thrpool->pool_mutex); - } else { - error = scandata.errors; - total = scandata.total; - ok = total - error - scandata.infected; - } - - if (ok + error == total && (error != total)) { - if (conn_reply_single(conn, conn->filename, "OK") == -1) - ret = CL_ETIMEOUT; - } - *virus = total - (ok + error); - - if (ret == CL_ETIMEOUT) - thrmgr_group_terminate(conn->group); - return error; -} - -static int dispatch_command(client_conn_t *conn, enum commands cmd, const char *argument) -{ - int ret = 0; - int bulk; - client_conn_t *dup_conn = (client_conn_t *) malloc(sizeof(struct client_conn_tag)); - - if(!dup_conn) { - logg("!Can't allocate memory for client_conn\n"); - return -1; - } - memcpy(dup_conn, conn, sizeof(*conn)); - dup_conn->cmdtype = cmd; - if(cl_engine_addref(dup_conn->engine)) { - logg("!cl_engine_addref() failed\n"); - free(dup_conn); - return -1; - } - dup_conn->scanfd = -1; - bulk = 1; - switch (cmd) { - case COMMAND_FILDES: - if (conn->scanfd == -1) { - conn_reply_error(dup_conn, "No file descriptor received."); - ret = 1; - } - dup_conn->scanfd = conn->scanfd; - /* consume FD */ - conn->scanfd = -1; - break; - case COMMAND_SCAN: - case COMMAND_CONTSCAN: - case COMMAND_MULTISCAN: - case COMMAND_ALLMATCHSCAN: - dup_conn->filename = strdup(argument); + scandata.type = type; + maxdirrec = optget(opts, "MaxDirectoryRecursion")->numarg; + if (optget(opts, "FollowDirectorySymlinks")->enabled) + flags |= CLI_FTW_FOLLOW_DIR_SYMLINK; + if (optget(opts, "FollowFileSymlinks")->enabled) + flags |= CLI_FTW_FOLLOW_FILE_SYMLINK; + + if(!optget(opts, "CrossFilesystems")->enabled) + if(CLAMSTAT(conn->filename, &sb) == 0) + scandata.dev = sb.st_dev; + + ret = cli_ftw(conn->filename, flags, maxdirrec ? maxdirrec : INT_MAX, scan_callback, &data, scan_pathchk); + if (ret == CL_EMEM) { + if(optget(opts, "ExitOnOOM")->enabled) + return -1; + else + return 1; + } + if (scandata.group && type == TYPE_MULTISCAN) { + thrmgr_group_waitforall(group, &ok, &error, &total); + pthread_mutex_lock(&conn->thrpool->pool_mutex); + conn->thrpool->thr_multiscan--; + pthread_mutex_unlock(&conn->thrpool->pool_mutex); + } else { + error = scandata.errors; + total = scandata.total; + ok = total - error - scandata.infected; + } + + if (ok + error == total && (error != total)) { + if (conn_reply_single(conn, conn->filename, "OK") == -1) + ret = CL_ETIMEOUT; + } + *virus = total - (ok + error); + + if (ret == CL_ETIMEOUT) + thrmgr_group_terminate(conn->group); + return error; + } + + static int dispatch_command(client_conn_t *conn, enum commands cmd, const char *argument) + { + int ret = 0; + int bulk; + client_conn_t *dup_conn = (client_conn_t *) malloc(sizeof(struct client_conn_tag)); + + if(!dup_conn) { + logg("!Can't allocate memory for client_conn\n"); + return -1; + } + memcpy(dup_conn, conn, sizeof(*conn)); + dup_conn->cmdtype = cmd; + if(cl_engine_addref(dup_conn->engine)) { + logg("!cl_engine_addref() failed\n"); + free(dup_conn); + return -1; + } + dup_conn->scanfd = -1; + bulk = 1; + switch (cmd) { + case COMMAND_FILDES: + if (conn->scanfd == -1) { + conn_reply_error(dup_conn, "No file descriptor received."); + ret = 1; + } + dup_conn->scanfd = conn->scanfd; + /* consume FD */ + conn->scanfd = -1; + break; + case COMMAND_SCAN: + case COMMAND_CONTSCAN: + case COMMAND_MULTISCAN: + case COMMAND_ALLMATCHSCAN: + dup_conn->filename = cli_strdup_to_utf8(argument); if (!dup_conn->filename) { logg("!Failed to allocate memory for filename\n"); ret = -1; diff -Nru clamav-0.97.8+dfsg/clamd/tcpserver.c clamav-0.98.1+dfsg/clamd/tcpserver.c --- clamav-0.97.8+dfsg/clamd/tcpserver.c 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/tcpserver.c 2014-01-13 17:02:18.000000000 +0000 @@ -68,7 +68,7 @@ logg("!TCP: setsocktopt(SO_REUSEADDR) error: %s\n", strerror(errno)); } - if(bind(sockfd, (struct sockaddr *) &server, sizeof(struct sockaddr_in)) == -1) { + if(bind(sockfd, (struct sockaddr *) &server, (socklen_t)sizeof(struct sockaddr_in)) == -1) { estr = strerror(errno); logg("!TCP: bind() error: %s\n", estr); closesocket(sockfd); diff -Nru clamav-0.97.8+dfsg/clamd/thrmgr.c clamav-0.98.1+dfsg/clamd/thrmgr.c --- clamav-0.97.8+dfsg/clamd/thrmgr.c 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamd/thrmgr.c 2014-01-13 17:02:18.000000000 +0000 @@ -138,8 +138,10 @@ prev = l; l = l->nxt; } - if(!l) + if(!l) { + pthread_mutex_unlock(&pools_lock); return; + } if(prev) prev->nxt = l->nxt; if(l == pools) @@ -157,7 +159,7 @@ static void print_queue(int f, work_queue_t *queue, struct timeval *tv_now) { - long umin=~0UL, umax=0, usum=0; + long umin=LONG_MAX, umax=0, usum=0; unsigned invalids = 0, cnt = 0; work_item_t *q; diff -Nru clamav-0.97.8+dfsg/clamdscan/clamdscan.c clamav-0.98.1+dfsg/clamdscan/clamdscan.c --- clamav-0.97.8+dfsg/clamdscan/clamdscan.c 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamdscan/clamdscan.c 2014-01-13 17:02:18.000000000 +0000 @@ -194,6 +194,7 @@ mprintf(" --move=DIRECTORY Move infected files into DIRECTORY\n"); mprintf(" --copy=DIRECTORY Copy infected files into DIRECTORY\n"); mprintf(" --config-file=FILE Read configuration from FILE.\n"); + mprintf(" --allmatch -z Continue scanning within file after finding a match.\n"); mprintf(" --multiscan -m Force MULTISCAN mode\n"); mprintf(" --infected -i Only print infected files\n"); mprintf(" --no-summary Disable summary at end of scanning\n"); diff -Nru clamav-0.97.8+dfsg/clamdscan/client.c clamav-0.98.1+dfsg/clamdscan/client.c --- clamav-0.97.8+dfsg/clamdscan/client.c 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamdscan/client.c 2014-01-13 17:02:18.000000000 +0000 @@ -108,8 +108,12 @@ } memcpy((void *)&testsock, (void *)&tcpsock, sizeof(testsock)); testsock.sin_port = htons(INADDR_ANY); - if(!(s = socket(testsock.sin_family, SOCK_STREAM, 0))) return 0; - ret = (bind(s, (struct sockaddr *)&testsock, sizeof(testsock)) != 0); + if((s = socket(testsock.sin_family, SOCK_STREAM, 0)) < 0) { + logg("isremote: socket() returning: %s.\n", strerror(errno)); + mainsa = NULL; + return 0; + } + ret = (bind(s, (struct sockaddr *)&testsock, (socklen_t)sizeof(testsock)) != 0); closesocket(s); return ret; } @@ -254,8 +258,12 @@ if(scandash) { int sockd, ret; - struct stat sb; - fstat(0, &sb); + STATBUF sb; + if(FSTAT(0, &sb) < 0) { + logg("client.c: fstat failed for file name \"%s\", with %s\n.", + opts->filename[0], strerror(errno)); + return 2; + } if((sb.st_mode & S_IFMT) != S_IFREG) scantype = STREAM; if((sockd = dconnect()) >= 0 && (ret = dsresult(sockd, scantype, NULL, &ret, NULL)) >= 0) *infected = ret; diff -Nru clamav-0.97.8+dfsg/clamdscan/Makefile.am clamav-0.98.1+dfsg/clamdscan/Makefile.am --- clamav-0.97.8+dfsg/clamdscan/Makefile.am 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamdscan/Makefile.am 2014-01-13 17:02:18.000000000 +0000 @@ -38,6 +38,8 @@ proto.h \ client.c \ client.h + +AM_CFLAGS=@WERR_CFLAGS@ endif diff -Nru clamav-0.97.8+dfsg/clamdscan/Makefile.in clamav-0.98.1+dfsg/clamdscan/Makefile.in --- clamav-0.97.8+dfsg/clamdscan/Makefile.in 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamdscan/Makefile.in 2014-01-13 17:02:18.000000000 +0000 @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -34,6 +34,23 @@ # MA 02110-1301, USA. VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -67,7 +84,7 @@ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -91,8 +108,8 @@ @BUILD_CLAMD_TRUE@ proto.$(OBJEXT) client.$(OBJEXT) clamdscan_OBJECTS = $(am_clamdscan_OBJECTS) clamdscan_LDADD = $(LDADD) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp @@ -104,24 +121,29 @@ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(clamdscan_SOURCES) DIST_SOURCES = $(am__clamdscan_SOURCES_DIST) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -154,6 +176,7 @@ DBDIR = @DBDIR@ DEFS = @DEFS@ -DCL_NOTHREADS -DCL_NOLIBCLAMAV DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -202,6 +225,7 @@ LT_DLPREOPEN = @LT_DLPREOPEN@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -214,6 +238,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ @@ -225,10 +250,15 @@ TH_SAFE = @TH_SAFE@ VERSION = @VERSION@ VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@ +WERR_CFLAGS = @WERR_CFLAGS@ +WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -261,7 +291,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ ltdl_LIBOBJS = @ltdl_LIBOBJS@ ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@ mandir = @mandir@ @@ -304,6 +333,7 @@ @BUILD_CLAMD_TRUE@ client.c \ @BUILD_CLAMD_TRUE@ client.h +@BUILD_CLAMD_TRUE@AM_CFLAGS = @WERR_CFLAGS@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/clamscan -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = clamdscan$(EXEEXT) CLEANFILES = *.gcda *.gcno @@ -343,8 +373,11 @@ $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ + fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ @@ -400,7 +433,7 @@ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ done; \ done; rm -f c$${pid}_.???; exit $$bad -clamdscan$(EXEEXT): $(clamdscan_OBJECTS) $(clamdscan_DEPENDENCIES) +clamdscan$(EXEEXT): $(clamdscan_OBJECTS) $(clamdscan_DEPENDENCIES) $(EXTRA_clamdscan_DEPENDENCIES) @rm -f clamdscan$(EXEEXT) $(AM_V_CCLD)$(LINK) $(clamdscan_OBJECTS) $(clamdscan_LDADD) $(LIBS) @@ -423,122 +456,107 @@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< output.o: $(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c output.obj: $(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` optparser.o: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.o -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c optparser.obj: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.obj -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` misc.o: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c misc.obj: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` getopt.o: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c getopt.obj: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` actions.o: $(top_srcdir)/shared/actions.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT actions.o -MD -MP -MF $(DEPDIR)/actions.Tpo -c -o actions.o `test -f '$(top_srcdir)/shared/actions.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/actions.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/actions.Tpo $(DEPDIR)/actions.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/actions.c' object='actions.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/actions.c' object='actions.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o actions.o `test -f '$(top_srcdir)/shared/actions.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/actions.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o actions.o `test -f '$(top_srcdir)/shared/actions.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/actions.c actions.obj: $(top_srcdir)/shared/actions.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT actions.obj -MD -MP -MF $(DEPDIR)/actions.Tpo -c -o actions.obj `if test -f '$(top_srcdir)/shared/actions.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/actions.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/actions.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/actions.Tpo $(DEPDIR)/actions.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/actions.c' object='actions.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/actions.c' object='actions.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o actions.obj `if test -f '$(top_srcdir)/shared/actions.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/actions.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/actions.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o actions.obj `if test -f '$(top_srcdir)/shared/actions.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/actions.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/actions.c'; fi` clamdcom.o: $(top_srcdir)/shared/clamdcom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT clamdcom.o -MD -MP -MF $(DEPDIR)/clamdcom.Tpo -c -o clamdcom.o `test -f '$(top_srcdir)/shared/clamdcom.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/clamdcom.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/clamdcom.Tpo $(DEPDIR)/clamdcom.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/clamdcom.c' object='clamdcom.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/clamdcom.c' object='clamdcom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o clamdcom.o `test -f '$(top_srcdir)/shared/clamdcom.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/clamdcom.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o clamdcom.o `test -f '$(top_srcdir)/shared/clamdcom.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/clamdcom.c clamdcom.obj: $(top_srcdir)/shared/clamdcom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT clamdcom.obj -MD -MP -MF $(DEPDIR)/clamdcom.Tpo -c -o clamdcom.obj `if test -f '$(top_srcdir)/shared/clamdcom.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/clamdcom.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/clamdcom.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/clamdcom.Tpo $(DEPDIR)/clamdcom.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/clamdcom.c' object='clamdcom.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/clamdcom.c' object='clamdcom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o clamdcom.obj `if test -f '$(top_srcdir)/shared/clamdcom.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/clamdcom.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/clamdcom.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o clamdcom.obj `if test -f '$(top_srcdir)/shared/clamdcom.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/clamdcom.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/clamdcom.c'; fi` mostlyclean-libtool: -rm -f *.lo @@ -645,10 +663,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff -Nru clamav-0.97.8+dfsg/clamdscan/proto.c clamav-0.98.1+dfsg/clamdscan/proto.c --- clamav-0.97.8+dfsg/clamdscan/proto.c 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamdscan/proto.c 2014-01-13 17:02:18.000000000 +0000 @@ -188,14 +188,15 @@ /* Sends a proper scan request to clamd and parses its replies * This is used only in non IDSESSION mode - * Returns the number of infected files or -1 on error */ + * Returns the number of infected files or -1 on error + * NOTE: filename may be NULL for STREAM scantype. */ int dsresult(int sockd, int scantype, const char *filename, int *printok, int *errors) { int infected = 0, len = 0, beenthere = 0; char *bol, *eol; struct RCVLN rcv; - struct stat sb; + STATBUF sb; - if(chkpath(filename)) + if(filename && chkpath(filename)) return 0; recvlninit(&rcv, sockd); @@ -221,10 +222,12 @@ break; case STREAM: + /* NULL filename safe in send_stream() */ len = send_stream(sockd, filename); break; #ifdef HAVE_FD_PASSING case FILDES: + /* NULL filename safe in send_fdpass() */ len = send_fdpass(sockd, filename); break; #endif @@ -289,9 +292,17 @@ } } if(!beenthere) { - stat(filename, &sb); + if (!filename) { + logg("STDIN: noreply from clamd\n."); + return -1; + } + if(CLAMSTAT(filename, &sb) == -1) { + logg("~%s: stat() failed with %s, clamd may not be responding\n", + filename, strerror(errno)); + return -1; + } if(!S_ISDIR(sb.st_mode)) { - logg("~%s: no reply from clamd\n", filename ? filename : "STDIN"); + logg("~%s: no reply from clamd\n", filename); return -1; } } @@ -309,7 +320,7 @@ /* FTW callback for scanning in non IDSESSION mode * Returns SUCCESS or BREAK on success, CL_EXXX on error */ -static int serial_callback(struct stat *sb, char *filename, const char *path, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data) { +static int serial_callback(STATBUF *sb, char *filename, const char *path, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data) { struct client_serial_data *c = (struct client_serial_data *)data->data; int sockd, ret; const char *f = filename; @@ -331,7 +342,7 @@ case warning_skipped_link: return CL_SUCCESS; case warning_skipped_special: - logg("!%s: Not supported file type\n", path); + logg("^%s: Not supported file type\n", path); c->errors++; return CL_SUCCESS; case visit_directory_toplev: @@ -463,7 +474,7 @@ /* FTW callback for scanning in IDSESSION mode * Returns SUCCESS on success, CL_EXXX or BREAK on error */ -static int parallel_callback(struct stat *sb, char *filename, const char *path, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data) { +static int parallel_callback(STATBUF *sb, char *filename, const char *path, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data) { struct client_parallel_data *c = (struct client_parallel_data *)data->data; struct SCANID *cid; int res = CL_CLEAN; @@ -484,7 +495,7 @@ logg("^Directory recursion limit reached\n"); return CL_SUCCESS; case warning_skipped_special: - logg("!%s: Not supported file type\n", path); + logg("^%s: Not supported file type\n", path); c->errors++; case warning_skipped_link: case visit_directory_toplev: diff -Nru clamav-0.97.8+dfsg/clamdtop/clamdtop.c clamav-0.98.1+dfsg/clamdtop/clamdtop.c --- clamav-0.97.8+dfsg/clamdtop/clamdtop.c 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamdtop/clamdtop.c 2014-01-13 17:02:34.000000000 +0000 @@ -360,13 +360,13 @@ static void show_bar(WINDOW *win, size_t i, unsigned live, unsigned idle, unsigned max, int blink) { - int y,x; + int y,x,z = 0; unsigned len = 39; unsigned start = 1; unsigned activ = max ? ((live-idle)*(len - start - 2) + (max/2)) / max : 0; unsigned dim = max ? idle*(len - start - 2) / max : 0; unsigned rem = len - activ - dim - start-2; - + assert(activ + 2 < len && activ+dim + 2 < len && activ+dim+rem + 2 < len && "Invalid values"); mvwaddch(win, i, start, '[' | A_BOLD); wattron(win, A_BOLD | COLOR_PAIR(activ_color)); @@ -382,8 +382,14 @@ waddch(win, ']' | A_BOLD); if(blink) { getyx(win, y, x); - mvwaddch(win, y, x-2, '>' | A_BLINK | COLOR_PAIR(red_color)); - move(y, x); + if ((x < 0) || (y < 0)) { + return; /* if getyx() failed, nevermind the blinking */ + } + if (x >= 2) { + z = x - 2; + } + mvwaddch(win, y, z, '>' | A_BLINK | COLOR_PAIR(red_color)); + move(y, z); } } @@ -520,9 +526,11 @@ memset(&addr, 0, sizeof(addr)); addr.sun_family = AF_UNIX; strncpy(addr.sun_path, soname, sizeof(addr.sun_path)); + addr.sun_path[sizeof(addr.sun_path) - 1] = 0x0; print_con_info(conn, "Connecting to: %s\n", soname); if (connect(s, (struct sockaddr *)&addr, sizeof(addr))) { perror("connect"); + close(s); return -1; } } else { @@ -532,6 +540,7 @@ unsigned port = 0; char *name, *pt = strdup(soname); const char *host = pt; + memset(&server, 0x00, sizeof(struct sockaddr_in)); conn->tcp=1; name = strchr(pt, ':'); if(name) { @@ -555,8 +564,9 @@ server.sin_port = htons(port); server.sin_addr.s_addr = ((struct in_addr*)(hp->h_addr))->s_addr; print_con_info(conn, "Connecting to: %s:%u\n", inet_ntoa(server.sin_addr), port); - if (connect(s, (struct sockaddr *)&server, sizeof(server))) { + if (connect(s, (struct sockaddr *)&server, (socklen_t)sizeof(server))) { perror("connect"); + close(s); return -1; } } @@ -824,8 +834,10 @@ OOM_CHECK(line); - if (stats->mem <= 0 || stats->stats_unsupp) + if (stats->mem <= 0 || stats->stats_unsupp) { strncpy(mem, "N/A", sizeof(mem)); + mem[sizeof(mem)-1]='\0'; + } else { char c; double s; @@ -844,8 +856,10 @@ } i = idx+1; - if (!stats->db_time.tm_year) + if (!stats->db_time.tm_year) { strncpy(timbuf,"N/A",sizeof(timbuf)); + timbuf[sizeof(timbuf)-1]='\0'; + } else snprintf(timbuf, sizeof(timbuf), "%04u-%02u-%02u %02uh", 1900 + stats->db_time.tm_year, @@ -933,7 +947,7 @@ static void parse_stats(conn_t *conn, struct stats *stats, unsigned idx) { - char buf[1024]; + char buf[1025]; size_t j; struct timeval tv; unsigned conn_dt; @@ -1004,12 +1018,12 @@ stats->conn_min = (conn_dt/60)%60; stats->conn_sec = conn_dt%60; stats->current_q = 0; - - while(recv_line(conn, buf, sizeof(buf)) && strcmp("END\n",buf) != 0) { + buf[sizeof(buf) - 1] = 0x0; + while(recv_line(conn, buf, sizeof(buf)-1) && strcmp("END\n",buf) != 0) { char *val = strchr(buf, ':'); if(buf[0] == '\t') { - parse_queue(conn, buf, sizeof(buf), idx); + parse_queue(conn, buf, sizeof(buf)-1, idx); continue; } else if(val) *val++ = '\0'; diff -Nru clamav-0.97.8+dfsg/clamdtop/Makefile.am clamav-0.98.1+dfsg/clamdtop/Makefile.am --- clamav-0.97.8+dfsg/clamdtop/Makefile.am 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamdtop/Makefile.am 2014-01-13 17:02:18.000000000 +0000 @@ -10,6 +10,7 @@ $(top_srcdir)/shared/misc.h \ clamdtop.c +AM_CFLAGS=@WERR_CFLAGS@ AM_CPPFLAGS = -I$(top_srcdir) @CURSES_CPPFLAGS@ clamdtop_LDADD = @CURSES_LIBS@ $(top_builddir)/libclamav/libclamav_internal_utils_nothreads.la endif diff -Nru clamav-0.97.8+dfsg/clamdtop/Makefile.in clamav-0.98.1+dfsg/clamdtop/Makefile.in --- clamav-0.97.8+dfsg/clamdtop/Makefile.in 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamdtop/Makefile.in 2014-01-13 17:02:18.000000000 +0000 @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,6 +16,23 @@ @SET_MAKE@ VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -49,7 +66,7 @@ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -67,8 +84,8 @@ @HAVE_CURSES_TRUE@ clamdtop.$(OBJEXT) clamdtop_OBJECTS = $(am_clamdtop_OBJECTS) @HAVE_CURSES_TRUE@clamdtop_DEPENDENCIES = $(top_builddir)/libclamav/libclamav_internal_utils_nothreads.la -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp @@ -80,24 +97,29 @@ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(clamdtop_SOURCES) DIST_SOURCES = $(am__clamdtop_SOURCES_DIST) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -119,6 +141,12 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } man1dir = $(mandir)/man1 NROFF = nroff MANS = $(man_MANS) @@ -154,6 +182,7 @@ DBDIR = @DBDIR@ DEFS = @DEFS@ -DCL_NOTHREADS -DCL_NOLIBCLAMAV DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -202,6 +231,7 @@ LT_DLPREOPEN = @LT_DLPREOPEN@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -214,6 +244,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ @@ -225,10 +256,15 @@ TH_SAFE = @TH_SAFE@ VERSION = @VERSION@ VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@ +WERR_CFLAGS = @WERR_CFLAGS@ +WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -261,7 +297,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ ltdl_LIBOBJS = @ltdl_LIBOBJS@ ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@ mandir = @mandir@ @@ -295,6 +330,7 @@ @HAVE_CURSES_TRUE@ $(top_srcdir)/shared/misc.h \ @HAVE_CURSES_TRUE@ clamdtop.c +@HAVE_CURSES_TRUE@AM_CFLAGS = @WERR_CFLAGS@ @HAVE_CURSES_TRUE@AM_CPPFLAGS = -I$(top_srcdir) @CURSES_CPPFLAGS@ @HAVE_CURSES_TRUE@clamdtop_LDADD = @CURSES_LIBS@ $(top_builddir)/libclamav/libclamav_internal_utils_nothreads.la EXTRA_DIST = clamdtop.c @@ -334,8 +370,11 @@ $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ + fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ @@ -391,7 +430,7 @@ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ done; \ done; rm -f c$${pid}_.???; exit $$bad -clamdtop$(EXEEXT): $(clamdtop_OBJECTS) $(clamdtop_DEPENDENCIES) +clamdtop$(EXEEXT): $(clamdtop_OBJECTS) $(clamdtop_DEPENDENCIES) $(EXTRA_clamdtop_DEPENDENCIES) @rm -f clamdtop$(EXEEXT) $(AM_V_CCLD)$(LINK) $(clamdtop_OBJECTS) $(clamdtop_LDADD) $(LIBS) @@ -409,74 +448,65 @@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< optparser.o: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.o -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c optparser.obj: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.obj -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` getopt.o: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c getopt.obj: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` misc.o: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c misc.obj: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` mostlyclean-libtool: -rm -f *.lo @@ -485,11 +515,18 @@ -rm -rf .libs _libs install-man1: $(man_MANS) @$(NORMAL_INSTALL) - test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" - @list=''; test -n "$(man1dir)" || exit 0; \ - { for i in $$list; do echo "$$i"; done; \ - l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ - sed -n '/\.1[a-z]*$$/p'; \ + @list1=''; \ + list2='$(man_MANS)'; \ + test -n "$(man1dir)" \ + && test -n "`echo $$list1$$list2`" \ + || exit 0; \ + echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ + { for i in $$list1; do echo "$$i"; done; \ + if test -n "$$list2"; then \ + for i in $$list2; do echo "$$i"; done \ + | sed -n '/\.1[a-z]*$$/p'; \ + fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ @@ -518,9 +555,7 @@ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - test -z "$$files" || { \ - echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } + dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ @@ -634,10 +669,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff -Nru clamav-0.97.8+dfsg/clamscan/clamscan.c clamav-0.98.1+dfsg/clamscan/clamscan.c --- clamav-0.97.8+dfsg/clamscan/clamscan.c 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamscan/clamscan.c 2014-01-13 17:02:18.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2009 Sourcefire, Inc. + * Copyright (C) 2007-2012 Sourcefire, Inc. * * Authors: Tomasz Kojm * @@ -53,7 +53,8 @@ void help(void); struct s_info info; -short recursion = 0, printinfected = 0, bell = 0; +short recursion = 0, bell = 0; +short printinfected = 0, printclean = 1; int main(int argc, char **argv) { @@ -105,6 +106,10 @@ cl_debug(); /* enable debug messages */ } + if (optget(opts, "gen-mdb")->enabled) { + cl_always_gen_section_hash(); + } + if(optget(opts, "version")->enabled) { print_version(optget(opts, "database")->strarg); optfree(opts); @@ -123,6 +128,9 @@ if(optget(opts, "infected")->enabled) printinfected = 1; + if(optget(opts, "suppress-ok-results")->enabled) + printclean = 0; + if(optget(opts, "bell")->enabled) bell = 1; @@ -195,11 +203,13 @@ mprintf(" --help -h Print this help screen\n"); mprintf(" --version -V Print version number\n"); mprintf(" --verbose -v Be verbose\n"); + mprintf(" --archive-verbose -a Show filenames inside scanned archives\n"); mprintf(" --debug Enable libclamav's debug messages\n"); mprintf(" --quiet Only output error messages\n"); mprintf(" --stdout Write to stdout instead of stderr\n"); mprintf(" --no-summary Disable summary at end of scanning\n"); mprintf(" --infected -i Only print infected files\n"); + mprintf(" --suppress-ok-results -o Skip printing OK files\n"); mprintf(" --bell Sound bell on virus detection\n"); mprintf("\n"); mprintf(" --tempdir=DIRECTORY Create temporary files in DIRECTORY\n"); @@ -209,6 +219,7 @@ mprintf(" --official-db-only[=yes/no(*)] Only load official signatures\n"); mprintf(" --log=FILE -l FILE Save scan report to FILE\n"); mprintf(" --recursive[=yes/no(*)] -r Scan subdirectories recursively\n"); + mprintf(" --allmatch[=yes/no(*)] -z Continue scanning within file after finding a match\n"); mprintf(" --cross-fs[=yes(*)/no] Scan files and directories on other filesystems\n"); mprintf(" --follow-dir-symlinks[=0/1(*)/2] Follow directory symlinks (0 = never, 1 = direct, 2 = always)\n"); mprintf(" --follow-file-symlinks[=0/1(*)/2] Follow file symlinks (0 = never, 1 = direct, 2 = always)\n"); @@ -224,6 +235,7 @@ mprintf(" --bytecode[=yes(*)/no] Load bytecode from the database\n"); mprintf(" --bytecode-unsigned[=yes/no(*)] Load unsigned bytecode\n"); mprintf(" --bytecode-timeout=N Set bytecode timeout (in milliseconds)\n"); + mprintf(" --bytecode-statistics[=yes/no(*)] Collect and print bytecode statistics\n"); mprintf(" --detect-pua[=yes/no(*)] Detect Possibly Unwanted Applications\n"); mprintf(" --exclude-pua=CAT Skip PUA sigs of category CAT\n"); mprintf(" --include-pua=CAT Load PUA sigs of category CAT\n"); @@ -242,17 +254,24 @@ mprintf(" --scan-elf[=yes(*)/no] Scan ELF files\n"); mprintf(" --scan-ole2[=yes(*)/no] Scan OLE2 containers\n"); mprintf(" --scan-pdf[=yes(*)/no] Scan PDF files\n"); + mprintf(" --scan-swf[=yes(*)/no] Scan SWF files\n"); mprintf(" --scan-html[=yes(*)/no] Scan HTML files\n"); mprintf(" --scan-archive[=yes(*)/no] Scan archive files (supported by libclamav)\n"); mprintf(" --detect-broken[=yes/no(*)] Try to detect broken executable files\n"); mprintf(" --block-encrypted[=yes/no(*)] Block encrypted archives\n"); + mprintf(" --nocerts Disable authenticode certificate chain verification in PE files\n"); + mprintf(" --dumpcerts Dump authenticode certificate chain in PE files\n"); mprintf("\n"); mprintf(" --max-filesize=#n Files larger than this will be skipped and assumed clean\n"); mprintf(" --max-scansize=#n The maximum amount of data to scan for each container file (**)\n"); mprintf(" --max-files=#n The maximum number of files to scan for each container file (**)\n"); mprintf(" --max-recursion=#n Maximum archive recursion level for container file (**)\n"); mprintf(" --max-dir-recursion=#n Maximum directory recursion level\n"); - + mprintf(" --max-embeddedpe=#n Maximum size file to check for embedded PE\n"); + mprintf(" --max-htmlnormalize=#n Maximum size of HTML file to normalize\n"); + mprintf(" --max-htmlnotags=#n Maximum size of normalized HTML file to scan\n"); + mprintf(" --max-scriptnormalize=#n Maximum size of script file to normalize\n"); + mprintf(" --max-ziptypercg=#n Maximum size zip to type reanalyze\n"); mprintf("\n"); mprintf("(*) Default scan settings\n"); mprintf("(**) Certain files (e.g. documents, archives, etc.) may in turn contain other\n"); diff -Nru clamav-0.97.8+dfsg/clamscan/global.h clamav-0.98.1+dfsg/clamscan/global.h --- clamav-0.97.8+dfsg/clamscan/global.h 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamscan/global.h 2014-01-13 17:02:18.000000000 +0000 @@ -32,6 +32,7 @@ }; extern struct s_info info; -extern short recursion, printinfected, bell; +extern short recursion, bell; +extern short printinfected, printclean; #endif diff -Nru clamav-0.97.8+dfsg/clamscan/Makefile.am clamav-0.98.1+dfsg/clamscan/Makefile.am --- clamav-0.97.8+dfsg/clamscan/Makefile.am 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamscan/Makefile.am 2014-01-13 17:02:18.000000000 +0000 @@ -35,6 +35,7 @@ manager.c \ manager.h +AM_CFLAGS=@WERR_CFLAGS@ DEFS = @DEFS@ -DCL_NOTHREADS LIBS = $(top_builddir)/libclamav/libclamav.la @THREAD_LIBS@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav diff -Nru clamav-0.97.8+dfsg/clamscan/Makefile.in clamav-0.98.1+dfsg/clamscan/Makefile.in --- clamav-0.97.8+dfsg/clamscan/Makefile.in 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamscan/Makefile.in 2014-01-13 17:02:18.000000000 +0000 @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -35,6 +35,23 @@ # MA 02110-1301, USA. VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -68,7 +85,7 @@ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -82,8 +99,8 @@ clamscan.$(OBJEXT) manager.$(OBJEXT) clamscan_OBJECTS = $(am_clamscan_OBJECTS) clamscan_LDADD = $(LDADD) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp @@ -95,24 +112,29 @@ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(clamscan_SOURCES) DIST_SOURCES = $(clamscan_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -145,6 +167,7 @@ DBDIR = @DBDIR@ DEFS = @DEFS@ -DCL_NOTHREADS DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -193,6 +216,7 @@ LT_DLPREOPEN = @LT_DLPREOPEN@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -205,6 +229,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ @@ -216,10 +241,15 @@ TH_SAFE = @TH_SAFE@ VERSION = @VERSION@ VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@ +WERR_CFLAGS = @WERR_CFLAGS@ +WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -252,7 +282,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ ltdl_LIBOBJS = @ltdl_LIBOBJS@ ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@ mandir = @mandir@ @@ -292,6 +321,7 @@ manager.c \ manager.h +AM_CFLAGS = @WERR_CFLAGS@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav CLEANFILES = *.gcda *.gcno all: all-am @@ -330,8 +360,11 @@ $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ + fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ @@ -387,7 +420,7 @@ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ done; \ done; rm -f c$${pid}_.???; exit $$bad -clamscan$(EXEEXT): $(clamscan_OBJECTS) $(clamscan_DEPENDENCIES) +clamscan$(EXEEXT): $(clamscan_OBJECTS) $(clamscan_DEPENDENCIES) $(EXTRA_clamscan_DEPENDENCIES) @rm -f clamscan$(EXEEXT) $(AM_V_CCLD)$(LINK) $(clamscan_OBJECTS) $(clamscan_LDADD) $(LIBS) @@ -408,106 +441,93 @@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< output.o: $(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c output.obj: $(top_srcdir)/shared/output.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi` getopt.o: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c getopt.obj: $(top_srcdir)/shared/getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi` optparser.o: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.o -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c optparser.obj: $(top_srcdir)/shared/optparser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.obj -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi` actions.o: $(top_srcdir)/shared/actions.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT actions.o -MD -MP -MF $(DEPDIR)/actions.Tpo -c -o actions.o `test -f '$(top_srcdir)/shared/actions.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/actions.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/actions.Tpo $(DEPDIR)/actions.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/actions.c' object='actions.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/actions.c' object='actions.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o actions.o `test -f '$(top_srcdir)/shared/actions.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/actions.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o actions.o `test -f '$(top_srcdir)/shared/actions.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/actions.c actions.obj: $(top_srcdir)/shared/actions.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT actions.obj -MD -MP -MF $(DEPDIR)/actions.Tpo -c -o actions.obj `if test -f '$(top_srcdir)/shared/actions.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/actions.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/actions.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/actions.Tpo $(DEPDIR)/actions.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/actions.c' object='actions.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/actions.c' object='actions.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o actions.obj `if test -f '$(top_srcdir)/shared/actions.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/actions.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/actions.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o actions.obj `if test -f '$(top_srcdir)/shared/actions.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/actions.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/actions.c'; fi` misc.o: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c misc.obj: $(top_srcdir)/shared/misc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi` mostlyclean-libtool: -rm -f *.lo @@ -614,10 +634,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff -Nru clamav-0.97.8+dfsg/clamscan/manager.c clamav-0.98.1+dfsg/clamscan/manager.c --- clamav-0.97.8+dfsg/clamscan/manager.c 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/clamscan/manager.c 2014-01-13 17:02:34.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2009 Sourcefire, Inc. + * Copyright (C) 2007-2013 Sourcefire, Inc. * * Authors: Tomasz Kojm * @@ -71,7 +71,7 @@ /* FIXME: If possible, handle users correctly */ static int checkaccess(const char *path, const char *username, int mode) { - return !_access(path, mode); + return !access(path, mode); } #else static int checkaccess(const char *path, const char *username, int mode) @@ -120,13 +120,106 @@ } #endif +struct metachain { + char **chains; + unsigned lastadd; + unsigned lastvir; + unsigned level; + unsigned n; +}; + +static cl_error_t pre(int fd, const char *type, void *context) +{ + struct metachain *c = context; + if (c) { + c->level++; + } + return CL_CLEAN; +} + +static int print_chain(struct metachain *c, char *str, unsigned len) +{ + unsigned i; + unsigned na = 0; + for (i=0;in-1;i++) { + unsigned int n = strlen(c->chains[i]); + if (na) + str[na++] = '!'; + if (n + na + 2 > len) + break; + memcpy(str + na, c->chains[i], n); + na += n; + } + str[na] = '\0'; + str[len-1] = '\0'; + return i == c->n-1 ? 0 : 1; +} + +static cl_error_t post(int fd, int result, const char *virname, void *context) +{ + struct metachain *c = context; + if (c && c->n) { + char str[128]; + int toolong = print_chain(c, str, sizeof(str)); + if (c->level == c->lastadd && !virname) + free(c->chains[--c->n]); + if (virname && !c->lastvir) + c->lastvir = c->level; + } + if (c) + c->level--; + return CL_CLEAN; +} + +static cl_error_t meta(const char* container_type, unsigned long fsize_container, const char *filename, + unsigned long fsize_real, int is_encrypted, unsigned int filepos_container, void *context) +{ + int na = 0; + char prev[128]; + struct metachain *c = context; + const char *type = !strncmp(container_type,"CL_TYPE_",8) ? container_type + 8 : container_type; + unsigned n = strlen(type) + 1 + strlen(filename) + 1; + char *chain; + char **chains; + int toolong; + + if (!c) + return CL_CLEAN; + chain = malloc(n); + if (!chain) + return CL_CLEAN; + if (!strcmp(type, "ANY")) + snprintf(chain, n,"%s", filename); + else + snprintf(chain, n,"%s:%s", type, filename); + if (c->lastadd != c->level) { + n = c->n + 1; + chains = realloc(c->chains, n * sizeof(*chains)); + if (!chains) { + free(chain); + return CL_CLEAN; + } + c->chains = chains; + c->n = n; + c->lastadd = c->level; + } else { + free(c->chains[c->n-1]); + } + c->chains[c->n-1] = chain; + toolong = print_chain(c, prev, sizeof(prev)); + logg("*Scanning %s%s!%s\n", prev,toolong ? "..." : "", chain); + return CL_CLEAN; +} + static void scanfile(const char *filename, struct cl_engine *engine, const struct optstruct *opts, unsigned int options) { - int ret = 0, fd, included, printclean = 1; + int ret = 0, fd, included; + unsigned i; const struct optstruct *opt; const char *virname; - const char **virpp = &virname; - struct stat sb; + const char **virpp = &virname; + STATBUF sb; + struct metachain chain; if((opt = optget(opts, "exclude"))->enabled) { while(opt) { @@ -156,7 +249,7 @@ } /* argh, don't scan /proc files */ - if(stat(filename, &sb) != -1) { + if(CLAMSTAT(filename, &sb) != -1) { #ifdef C_LINUX if(procdev && sb.st_dev == procdev) { if(!printinfected) @@ -182,6 +275,14 @@ } #endif + memset(&chain, 0, sizeof(chain)); + if(optget(opts, "archive-verbose")->enabled) { + chain.chains = malloc(sizeof(*chain.chains)); + if (chain.chains) { + chain.chains[0] = strdup(filename); + chain.n = 1; + } + } logg("*Scanning %s\n", filename); if((fd = safe_open(filename, O_RDONLY|O_BINARY)) == -1) { @@ -190,10 +291,19 @@ return; } - if((ret = cl_scandesc(fd, &virname, &info.blocks, engine, options)) == CL_VIRUS) { - if (options & CL_SCAN_ALLMATCHES) { + + if((ret = cl_scandesc_callback(fd, virpp, &info.blocks, engine, options, &chain)) == CL_VIRUS) { + if(optget(opts, "archive-verbose")->enabled) { + if (chain.n > 1) { + char str[128]; + int toolong = print_chain(&chain, str, sizeof(str)); + logg("~%s%s!(%d)%s: %s FOUND\n", str, toolong ? "..." : "", chain.lastvir-1, chain.chains[chain.n-1], virname); + } else if (chain.lastvir) + logg("~%s!(%d): %s FOUND\n", filename, chain.lastvir-1, virname); + } + if (options & CL_SCAN_ALLMATCHES) { int i = 0; - virpp = (const char **)*virpp; /* temp hack for allscan until API enhancement */ + virpp = (const char **)*virpp; /* horrible */ virname = virpp[0]; while (virpp[i]) logg("~%s: %s FOUND\n", filename, virpp[i++]); @@ -217,6 +327,9 @@ info.errors++; } + for (i=0;id_ino) - { + if(dent->d_ino) { if(strcmp(dent->d_name, ".") && strcmp(dent->d_name, "..")) { /* build the full name */ fname = malloc(strlen(dirname) + strlen(dent->d_name) + 2); + if (fname == NULL) { /* oops, malloc() failed, print warning and return */ + logg("!scandirs: Memory allocation failed for fname\n"); + break; + } + if(!strcmp(dirname, PATHSEP)) sprintf(fname, PATHSEP"%s", dent->d_name); else sprintf(fname, "%s"PATHSEP"%s", dirname, dent->d_name); /* stat the file */ - if(lstat(fname, &sb) != -1) { + if(LSTAT(fname, &sb) != -1) { if(!optget(opts, "cross-fs")->enabled) { if(sb.st_dev != dev) { if(!printinfected) @@ -295,7 +412,7 @@ if(dirlnk != 2 && filelnk != 2) { if(!printinfected) logg("%s: Symbolic link\n", fname); - } else if(stat(fname, &sb) != -1) { + } else if(CLAMSTAT(fname, &sb) != -1) { if(S_ISREG(sb.st_mode) && filelnk == 2) { scanfile(fname, engine, opts, options); } else if(S_ISDIR(sb.st_mode) && dirlnk == 2) { @@ -346,7 +463,10 @@ return 2; } - file = cli_gentemp(tmpdir); + if(!(file = cli_gentemp(tmpdir))) { + logg("!Can't generate tempfile name\n"); + return 2; + } if(!(fs = fopen(file, "wb"))) { logg("!Can't open %s for writing\n", file); @@ -405,7 +525,7 @@ int ret = 0, i; unsigned int options = 0, dboptions = 0, dirlnk = 1, filelnk = 1; struct cl_engine *engine; - struct stat sb; + STATBUF sb; char *file, cwd[1024], *pua_cats = NULL; const char *filename; const struct optstruct *opt; @@ -479,6 +599,7 @@ while(opt) { if(!(pua_cats = realloc(pua_cats, i + strlen(opt->strarg) + 3))) { logg("!Can't allocate memory for pua_cats\n"); + cl_engine_free(engine); return 2; } sprintf(pua_cats + i, ".%s", opt->strarg); @@ -510,9 +631,15 @@ if(optget(opts, "leave-temps")->enabled) cl_engine_set_num(engine, CL_ENGINE_KEEPTMP, 1); + if(optget(opts, "force-to-disk")->enabled) + cl_engine_set_num(engine, CL_ENGINE_FORCETODISK, 1); + if(optget(opts, "bytecode-unsigned")->enabled) dboptions |= CL_DB_BYTECODE_UNSIGNED; + if(optget(opts, "bytecode-statistics")->enabled) + dboptions |= CL_DB_BYTECODE_STATS; + if((opt = optget(opts,"bytecode-timeout"))->enabled) cl_engine_set_num(engine, CL_ENGINE_BYTECODE_TIMEOUT, opt->numarg); if((opt = optget(opts,"bytecode-mode"))->enabled) { @@ -563,6 +690,18 @@ return 2; } + if(optget(opts, "archive-verbose")->enabled) { + cl_engine_set_clcb_meta(engine, meta); + cl_engine_set_clcb_pre_cache(engine, pre); + cl_engine_set_clcb_post_scan(engine, post); + } + + if (optget(opts, "nocerts")->enabled) + engine->dconf->pe |= PE_CONF_DISABLECERT; + + if (optget(opts, "dumpcerts")->enabled) + engine->dconf->pe |= PE_CONF_DUMPCERT; + /* set limits */ if((opt = optget(opts, "max-scansize"))->active) { @@ -608,6 +747,48 @@ } } + /* Engine max sizes */ + + if((opt = optget(opts, "max-embeddedpe"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_EMBEDDEDPE, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_EMBEDDEDPE) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 2; + } + } + + if((opt = optget(opts, "max-htmlnormalize"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_HTMLNORMALIZE, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_HTMLNORMALIZE) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 2; + } + } + + if((opt = optget(opts, "max-htmlnotags"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_HTMLNOTAGS, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_HTMLNOTAGS) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 2; + } + } + + if((opt = optget(opts, "max-scriptnormalize"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_SCRIPTNORMALIZE, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_SCRIPTNORMALIZE) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 2; + } + } + + if((opt = optget(opts, "max-ziptypercg"))->active) { + if((ret = cl_engine_set_num(engine, CL_ENGINE_MAX_ZIPTYPERCG, opt->numarg))) { + logg("!cli_engine_set_num(CL_ENGINE_MAX_ZIPTYPERCG) failed: %s\n", cl_strerror(ret)); + cl_engine_free(engine); + return 2; + } + } + /* set scan options */ if(optget(opts, "allmatch")->enabled) options |= CL_SCAN_ALLMATCHES; @@ -642,6 +823,9 @@ if(optget(opts, "scan-pdf")->enabled) options |= CL_SCAN_PDF; + if(optget(opts, "scan-swf")->enabled) + options |= CL_SCAN_SWF; + if(optget(opts, "scan-html")->enabled) options |= CL_SCAN_HTML; @@ -656,6 +840,9 @@ options |= CL_SCAN_INTERNAL_COLLECT_SHA; #endif + if(optget(opts, "dev-performance")->enabled) + options |= CL_SCAN_PERFORMANCE_INFO; + if(optget(opts, "detect-structured")->enabled) { options |= CL_SCAN_STRUCTURED; @@ -700,7 +887,7 @@ #ifdef C_LINUX procdev = (dev_t) 0; - if(stat("/proc", &sb) != -1 && !sb.st_size) + if(CLAMSTAT("/proc", &sb) != -1 && !sb.st_size) procdev = sb.st_dev; #endif @@ -711,7 +898,7 @@ logg("!Can't get absolute pathname of current working directory\n"); ret = 2; } else { - stat(cwd, &sb); + CLAMSTAT(cwd, &sb); scandirs(cwd, engine, opts, options, 1, sb.st_dev); } @@ -723,9 +910,9 @@ logg("^Only scanning files from --file-list (files passed at cmdline are ignored)\n"); while((filename = filelist(opts, &ret)) && (file = strdup(filename))) { - if(lstat(file, &sb) == -1) { - logg("^%s: Can't access file\n", file); + if(LSTAT(file, &sb) == -1) { perror(file); + logg("^%s: Can't access file\n", file); ret = 2; } else { for(i = strlen(file) - 1; i > 0; i--) { @@ -739,7 +926,7 @@ if(dirlnk == 0 && filelnk == 0) { if(!printinfected) logg("%s: Symbolic link\n", file); - } else if(stat(file, &sb) != -1) { + } else if(CLAMSTAT(file, &sb) != -1) { if(S_ISREG(sb.st_mode) && filelnk) { scanfile(file, engine, opts, options); } else if(S_ISDIR(sb.st_mode) && dirlnk) { @@ -762,6 +949,11 @@ } } + if(optget(opts, "bytecode-statistics")->enabled) { + cli_sigperf_print(); + cli_sigperf_events_destroy(); + } + /* free the engine */ cl_engine_free(engine); diff -Nru clamav-0.97.8+dfsg/config/ltmain.sh clamav-0.98.1+dfsg/config/ltmain.sh --- clamav-0.97.8+dfsg/config/ltmain.sh 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/config/ltmain.sh 2014-01-13 17:02:18.000000000 +0000 @@ -1,9 +1,9 @@ -# Generated from ltmain.m4sh. -# ltmain.sh (GNU libtool) 2.2.6b +# libtool (GNU libtool) 2.4.2 # Written by Gordon Matzigkeit , 1996 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, +# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. @@ -32,50 +32,57 @@ # # Provide generalized library-building support services. # -# --config show all configuration variables -# --debug enable verbose shell tracing -# -n, --dry-run display commands without modifying any files -# --features display basic configuration information and exit -# --mode=MODE use operation mode MODE -# --preserve-dup-deps don't remove duplicate dependency libraries -# --quiet, --silent don't print informational messages -# --tag=TAG use configuration variables from tag TAG -# -v, --verbose print informational messages (default) -# --version print version information -# -h, --help print short or long help message +# --config show all configuration variables +# --debug enable verbose shell tracing +# -n, --dry-run display commands without modifying any files +# --features display basic configuration information and exit +# --mode=MODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --no-quiet, --no-silent +# print informational messages (default) +# --no-warn don't display warning messages +# --tag=TAG use configuration variables from tag TAG +# -v, --verbose print more informational messages than default +# --no-verbose don't print the extra informational messages +# --version print version information +# -h, --help, --help-all print short, long, or detailed help message # # MODE must be one of the following: # -# clean remove files from the build directory -# compile compile a source file into a libtool object -# execute automatically set library path, then run a program -# finish complete the installation of libtool libraries -# install install libraries or executables -# link create a library or an executable -# uninstall remove libraries from an installed directory +# clean remove files from the build directory +# compile compile a source file into a libtool object +# execute automatically set library path, then run a program +# finish complete the installation of libtool libraries +# install install libraries or executables +# link create a library or an executable +# uninstall remove libraries from an installed directory # -# MODE-ARGS vary depending on the MODE. +# MODE-ARGS vary depending on the MODE. When passed as first option, +# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # -# host-triplet: $host -# shell: $SHELL -# compiler: $LTCC -# compiler flags: $LTCFLAGS -# linker: $LD (gnu? $with_gnu_ld) -# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2 -# automake: $automake_version -# autoconf: $autoconf_version +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1 +# automake: $automake_version +# autoconf: $autoconf_version # # Report bugs to . +# GNU libtool home page: . +# General help using GNU software: . -PROGRAM=ltmain.sh +PROGRAM=libtool PACKAGE=libtool -VERSION="2.2.6b Debian-2.2.6b-2" +VERSION="2.4.2 Debian-2.4.2-1ubuntu1" TIMESTAMP="" -package_revision=1.3017 +package_revision=1.3337 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then @@ -91,10 +98,15 @@ BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' +} + # NLS nuisances: We save the old values to restore during execute mode. -# Only set LANG and LC_ALL to C if already set. -# These must not be set unconditionally because not all systems understand -# e.g. LANG=C (notably SCO). lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES @@ -107,24 +119,28 @@ lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done +LC_ALL=C +LANGUAGE=C +export LANGUAGE LC_ALL $lt_unset CDPATH +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" : ${CP="cp -f"} -: ${ECHO="echo"} -: ${EGREP="/bin/grep -E"} -: ${FGREP="/bin/grep -F"} -: ${GREP="/bin/grep"} -: ${LN_S="ln -s"} +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} -: ${SED="/bin/sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} @@ -144,6 +160,27 @@ dirname="s,/[^/]*$,," basename="s,^.*/,," +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} # func_dirname may be replaced by extended shell implementation + + +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "${1}" | $SED "$basename"` +} # func_basename may be replaced by extended shell implementation + + # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: @@ -158,33 +195,183 @@ # those functions but instead duplicate the functionality here. func_dirname_and_basename () { - # Extract subdirectory from the argument. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` - if test "X$func_dirname_result" = "X${1}"; then - func_dirname_result="${3}" - else - func_dirname_result="$func_dirname_result${2}" - fi - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi + func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` +} # func_dirname_and_basename may be replaced by extended shell implementation + + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname may be replaced by extended shell implementation + + +# These SED scripts presuppose an absolute path with a trailing slash. +pathcar='s,^/\([^/]*\).*$,\1,' +pathcdr='s,^/[^/]*,,' +removedotparts=':dotsl + s@/\./@/@g + t dotsl + s,/\.$,/,' +collapseslashes='s@/\{1,\}@/@g' +finalslash='s,/*$,/,' + +# func_normal_abspath PATH +# Remove doubled-up and trailing slashes, "." path components, +# and cancel out any ".." path components in PATH after making +# it an absolute path. +# value returned in "$func_normal_abspath_result" +func_normal_abspath () +{ + # Start from root dir and reassemble the path. + func_normal_abspath_result= + func_normal_abspath_tpath=$1 + func_normal_abspath_altnamespace= + case $func_normal_abspath_tpath in + "") + # Empty path, that just means $cwd. + func_stripname '' '/' "`pwd`" + func_normal_abspath_result=$func_stripname_result + return + ;; + # The next three entries are used to spot a run of precisely + # two leading slashes without using negated character classes; + # we take advantage of case's first-match behaviour. + ///*) + # Unusual form of absolute path, do nothing. + ;; + //*) + # Not necessarily an ordinary path; POSIX reserves leading '//' + # and for example Cygwin uses it to access remote file shares + # over CIFS/SMB, so we conserve a leading double slash if found. + func_normal_abspath_altnamespace=/ + ;; + /*) + # Absolute path, do nothing. + ;; + *) + # Relative path, prepend $cwd. + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath + ;; + esac + # Cancel out all the simple stuff to save iterations. We also want + # the path to end with a slash for ease of parsing, so make sure + # there is one (and only one) here. + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` + while :; do + # Processed it all yet? + if test "$func_normal_abspath_tpath" = / ; then + # If we ascended to the root using ".." the result may be empty now. + if test -z "$func_normal_abspath_result" ; then + func_normal_abspath_result=/ + fi + break + fi + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$pathcar"` + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$pathcdr"` + # Figure out what to do with it + case $func_normal_abspath_tcomponent in + "") + # Trailing empty path component, ignore it. + ;; + ..) + # Parent dir; strip last assembled component from result. + func_dirname "$func_normal_abspath_result" + func_normal_abspath_result=$func_dirname_result + ;; + *) + # Actual path component, append it. + func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent + ;; + esac + done + # Restore leading double-slash if one was found on entry. + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } -# Generated shell functions inserted here. +# func_relative_path SRCDIR DSTDIR +# generates a relative path from SRCDIR to DSTDIR, with a trailing +# slash if non-empty, suitable for immediately appending a filename +# without needing to append a separator. +# value returned in "$func_relative_path_result" +func_relative_path () +{ + func_relative_path_result= + func_normal_abspath "$1" + func_relative_path_tlibdir=$func_normal_abspath_result + func_normal_abspath "$2" + func_relative_path_tbindir=$func_normal_abspath_result + + # Ascend the tree starting from libdir + while :; do + # check if we have found a prefix of bindir + case $func_relative_path_tbindir in + $func_relative_path_tlibdir) + # found an exact match + func_relative_path_tcancelled= + break + ;; + $func_relative_path_tlibdir*) + # found a matching prefix + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" + func_relative_path_tcancelled=$func_stripname_result + if test -z "$func_relative_path_result"; then + func_relative_path_result=. + fi + break + ;; + *) + func_dirname $func_relative_path_tlibdir + func_relative_path_tlibdir=${func_dirname_result} + if test "x$func_relative_path_tlibdir" = x ; then + # Have to descend all the way to the root! + func_relative_path_result=../$func_relative_path_result + func_relative_path_tcancelled=$func_relative_path_tbindir + break + fi + func_relative_path_result=../$func_relative_path_result + ;; + esac + done -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh -# is ksh but when the shell is invoked as "sh" and the current value of -# the _XPG environment variable is not equal to 1 (one), the special -# positional parameter $0, within a function call, is the name of the -# function. -progpath="$0" + # Now calculate path; take care to avoid doubling-up slashes. + func_stripname '' '/' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + func_stripname '/' '/' "$func_relative_path_tcancelled" + if test "x$func_stripname_result" != x ; then + func_relative_path_result=${func_relative_path_result}/${func_stripname_result} + fi + + # Normalisation. If bindir is libdir, return empty string, + # else relative path ending with a slash; either way, target + # file name can be directly appended. + if test ! -z "$func_relative_path_result"; then + func_stripname './' '' "$func_relative_path_result/" + func_relative_path_result=$func_stripname_result + fi +} # The name of this program: -# In the unlikely event $progname began with a '-', it would play havoc with -# func_echo (imagine progname=-n), so we prepend ./ in that case: func_dirname_and_basename "$progpath" progname=$func_basename_result -case $progname in - -*) progname=./$progname ;; -esac # Make sure we have an absolute path for reexecution: case $progpath in @@ -196,7 +383,7 @@ ;; *) save_IFS="$IFS" - IFS=: + IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break @@ -215,6 +402,15 @@ # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' +# Sed substitution that turns a string into a regex matching for the +# string literally. +sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' + +# Sed substitution that converts a w32 file name or path +# which contains forward slashes, into one that contains +# (escaped) backslashes. A very naive implementation. +lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. @@ -243,7 +439,7 @@ # name if it has been set yet. func_echo () { - $ECHO "$progname${mode+: }$mode: $*" + $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... @@ -258,18 +454,25 @@ : } +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + # func_error arg... # Echo program name prefixed message to standard error. func_error () { - $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 + $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { - $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 + $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : @@ -326,9 +529,9 @@ case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop - my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` + my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done - my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` + my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do @@ -378,7 +581,7 @@ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi - $ECHO "X$my_tmpdir" | $Xsed + $ECHO "$my_tmpdir" } @@ -392,7 +595,7 @@ { case $1 in *[\\\`\"\$]*) - func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; + func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac @@ -419,7 +622,7 @@ { case $1 in *[\\\`\"]*) - my_arg=`$ECHO "X$1" | $Xsed \ + my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; @@ -488,15 +691,39 @@ fi } - - +# func_tr_sh +# Turn $1 into a string suitable for a shell variable name. +# Result is stored in $func_tr_sh_result. All characters +# not in the set a-zA-Z0-9_ are replaced with '_'. Further, +# if $1 begins with a digit, a '_' is prepended as well. +func_tr_sh () +{ + case $1 in + [0-9]* | *[!a-zA-Z0-9_]*) + func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` + ;; + * ) + func_tr_sh_result=$1 + ;; + esac +} # func_version # Echo version message to standard output and exit. func_version () { - $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { + $opt_debug + + $SED -n '/(C)/!b go + :more + /\./!{ + N + s/\n# / / + b more + } + :go + /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ @@ -509,22 +736,28 @@ # Echo short help message to standard output and exit. func_usage () { - $SED -n '/^# Usage:/,/# -h/ { + $opt_debug + + $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" - $ECHO + echo $ECHO "run \`$progname --help | more' for full usage" exit $? } -# func_help -# Echo long help message to standard output and exit. +# func_help [NOEXIT] +# Echo long help message to standard output and exit, +# unless 'noexit' is passed as argument. func_help () { + $opt_debug + $SED -n '/^# Usage:/,/# Report bugs to/ { + :print s/^# // s/^# *$// s*\$progname*'$progname'* @@ -534,11 +767,18 @@ s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ - s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ - s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ + s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ + s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ p - }' < "$progpath" - exit $? + d + } + /^# .* home page:/b print + /^# General help using/b print + ' < "$progpath" + ret=$? + if test -z "$1"; then + exit $ret + fi } # func_missing_arg argname @@ -546,63 +786,106 @@ # exit_cmd. func_missing_arg () { - func_error "missing argument for $1" + $opt_debug + + func_error "missing argument for $1." exit_cmd=exit } -exit_cmd=: +# func_split_short_opt shortopt +# Set func_split_short_opt_name and func_split_short_opt_arg shell +# variables after splitting SHORTOPT after the 2nd character. +func_split_short_opt () +{ + my_sed_short_opt='1s/^\(..\).*$/\1/;q' + my_sed_short_rest='1s/^..\(.*\)$/\1/;q' + + func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` + func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` +} # func_split_short_opt may be replaced by extended shell implementation + + +# func_split_long_opt longopt +# Set func_split_long_opt_name and func_split_long_opt_arg shell +# variables after splitting LONGOPT at the `=' sign. +func_split_long_opt () +{ + my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' + my_sed_long_arg='1s/^--[^=]*=//' + + func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` + func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` +} # func_split_long_opt may be replaced by extended shell implementation +exit_cmd=: -# Check that we have a working $ECHO. -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then - # Yippee, $ECHO works! - : -else - # Restart under the correct shell, and then maybe $ECHO will work. - exec $SHELL "$progpath" --no-reexec ${1+"$@"} -fi -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null || echo $max_cmd_len` +} # func_len may be replaced by extended shell implementation + + +# func_lo2o object +func_lo2o () +{ + func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` +} # func_lo2o may be replaced by extended shell implementation + + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` +} # func_xform may be replaced by extended shell implementation + + # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. @@ -636,16 +919,16 @@ # Display the features supported by this script. func_features () { - $ECHO "host: $host" + echo "host: $host" if test "$build_libtool_libs" = yes; then - $ECHO "enable shared libraries" + echo "enable shared libraries" else - $ECHO "disable shared libraries" + echo "disable shared libraries" fi if test "$build_old_libs" = yes; then - $ECHO "enable static libraries" + echo "enable static libraries" else - $ECHO "disable static libraries" + echo "disable static libraries" fi exit $? @@ -692,117 +975,209 @@ esac } -# Parse options once, thoroughly. This comes as soon as possible in -# the script to make things like `libtool --version' happen quickly. +# func_check_version_match +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () { + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi - # Shorthand for --mode=foo, only valid as the first argument - case $1 in - clean|clea|cle|cl) - shift; set dummy --mode clean ${1+"$@"}; shift - ;; - compile|compil|compi|comp|com|co|c) - shift; set dummy --mode compile ${1+"$@"}; shift - ;; - execute|execut|execu|exec|exe|ex|e) - shift; set dummy --mode execute ${1+"$@"}; shift - ;; - finish|finis|fini|fin|fi|f) - shift; set dummy --mode finish ${1+"$@"}; shift - ;; - install|instal|insta|inst|ins|in|i) - shift; set dummy --mode install ${1+"$@"}; shift - ;; - link|lin|li|l) - shift; set dummy --mode link ${1+"$@"}; shift - ;; - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) - shift; set dummy --mode uninstall ${1+"$@"}; shift - ;; - esac + exit $EXIT_MISMATCH + fi +} + + +# Shorthand for --mode=foo, only valid as the first argument +case $1 in +clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; +compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; +execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; +finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; +install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; +link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; +uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; +esac - # Parse non-mode specific arguments: - while test "$#" -gt 0; do + + +# Option defaults: +opt_debug=: +opt_dry_run=false +opt_config=false +opt_preserve_dup_deps=false +opt_features=false +opt_finish=false +opt_help=false +opt_help_all=false +opt_silent=: +opt_warning=: +opt_verbose=: +opt_silent=false +opt_verbose=false + + +# Parse options once, thoroughly. This comes as soon as possible in the +# script to make things like `--version' happen as quickly as we can. +{ + # this just eases exit handling + while test $# -gt 0; do opt="$1" shift - case $opt in - --config) func_config ;; - - --debug) preserve_args="$preserve_args $opt" + --debug|-x) opt_debug='set -x' func_echo "enabling shell trace mode" - opt_debug='set -x' $opt_debug ;; - - -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break - execute_dlfiles="$execute_dlfiles $1" - shift + --dry-run|--dryrun|-n) + opt_dry_run=: ;; - - --dry-run | -n) opt_dry_run=: ;; - --features) func_features ;; - --finish) mode="finish" ;; - - --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break - case $1 in - # Valid mode arguments: - clean) ;; - compile) ;; - execute) ;; - finish) ;; - install) ;; - link) ;; - relink) ;; - uninstall) ;; - - # Catch anything else as an error - *) func_error "invalid argument for $opt" - exit_cmd=exit - break - ;; - esac - - mode="$1" + --config) + opt_config=: +func_config + ;; + --dlopen|-dlopen) + optarg="$1" + opt_dlopen="${opt_dlopen+$opt_dlopen +}$optarg" shift ;; - --preserve-dup-deps) - opt_duplicate_deps=: ;; - - --quiet|--silent) preserve_args="$preserve_args $opt" - opt_silent=: + opt_preserve_dup_deps=: ;; - - --verbose| -v) preserve_args="$preserve_args $opt" + --features) + opt_features=: +func_features + ;; + --finish) + opt_finish=: +set dummy --mode finish ${1+"$@"}; shift + ;; + --help) + opt_help=: + ;; + --help-all) + opt_help_all=: +opt_help=': help-all' + ;; + --mode) + test $# = 0 && func_missing_arg $opt && break + optarg="$1" + opt_mode="$optarg" +case $optarg in + # Valid mode arguments: + clean|compile|execute|finish|install|link|relink|uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $opt" + exit_cmd=exit + break + ;; +esac + shift + ;; + --no-silent|--no-quiet) opt_silent=false +func_append preserve_args " $opt" ;; - - --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break - preserve_args="$preserve_args $opt $1" - func_enable_tag "$1" # tagname is set here + --no-warning|--no-warn) + opt_warning=false +func_append preserve_args " $opt" + ;; + --no-verbose) + opt_verbose=false +func_append preserve_args " $opt" + ;; + --silent|--quiet) + opt_silent=: +func_append preserve_args " $opt" + opt_verbose=false + ;; + --verbose|-v) + opt_verbose=: +func_append preserve_args " $opt" +opt_silent=false + ;; + --tag) + test $# = 0 && func_missing_arg $opt && break + optarg="$1" + opt_tag="$optarg" +func_append preserve_args " $opt $optarg" +func_enable_tag "$optarg" shift ;; + -\?|-h) func_usage ;; + --help) func_help ;; + --version) func_version ;; + # Separate optargs to long options: - -dlopen=*|--mode=*|--tag=*) - func_opt_split "$opt" - set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} + --*=*) + func_split_long_opt "$opt" + set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} shift ;; - -\?|-h) func_usage ;; - --help) opt_help=: ;; - --version) func_version ;; - - -*) func_fatal_help "unrecognized option \`$opt'" ;; - - *) nonopt="$opt" - break + # Separate non-argument short options: + -\?*|-h*|-n*|-v*) + func_split_short_opt "$opt" + set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} + shift ;; + + --) break ;; + -*) func_fatal_help "unrecognized option \`$opt'" ;; + *) set dummy "$opt" ${1+"$@"}; shift; break ;; esac done + # Validate options: + + # save first non-option argument + if test "$#" -gt 0; then + nonopt="$opt" + shift + fi + + # preserve --debug + test "$opt_debug" = : || func_append preserve_args " --debug" case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) @@ -810,82 +1185,44 @@ opt_duplicate_compiler_generated_deps=: ;; *) - opt_duplicate_compiler_generated_deps=$opt_duplicate_deps + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac - # Having warned about all mis-specified options, bail out if - # anything was wrong. - $exit_cmd $EXIT_FAILURE -} + $opt_help || { + # Sanity checks first: + func_check_version_match -# func_check_version_match -# Ensure that we are using m4 macros, and libtool script from the same -# release of libtool. -func_check_version_match () -{ - if test "$package_revision" != "$macro_revision"; then - if test "$VERSION" != "$macro_version"; then - if test -z "$macro_version"; then - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from an older release. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - fi - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, -$progname: but the definition of this LT_INIT comes from revision $macro_revision. -$progname: You should recreate aclocal.m4 with macros from revision $package_revision -$progname: of $PACKAGE $VERSION and run autoconf again. -_LT_EOF + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then + func_fatal_configuration "not configured to build any kind of library" fi - exit $EXIT_MISMATCH - fi -} - + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" -## ----------- ## -## Main. ## -## ----------- ## - -$opt_help || { - # Sanity checks first: - func_check_version_match - - if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then - func_fatal_configuration "not configured to build any kind of library" - fi + # Only execute mode is allowed to have -dlopen flags. + if test -n "$opt_dlopen" && test "$opt_mode" != execute; then + func_error "unrecognized option \`-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi - test -z "$mode" && func_fatal_error "error: you must specify a MODE." + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$progname --help --mode=$opt_mode' for more information." + } - # Darwin sucks - eval std_shrext=\"$shrext_cmds\" + # Bail if the options were screwed + $exit_cmd $EXIT_FAILURE +} - # Only execute mode is allowed to have -dlopen flags. - if test -n "$execute_dlfiles" && test "$mode" != execute; then - func_error "unrecognized option \`-dlopen'" - $ECHO "$help" 1>&2 - exit $EXIT_FAILURE - fi - # Change the help message to a mode-specific one. - generic_help="$help" - help="Try \`$progname --help --mode=$mode' for more information." -} +## ----------- ## +## Main. ## +## ----------- ## # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. @@ -950,12 +1287,9 @@ # temporary ltwrapper_script. func_ltwrapper_scriptname () { - func_ltwrapper_scriptname_result="" - if func_ltwrapper_executable_p "$1"; then - func_dirname_and_basename "$1" "" "." - func_stripname '' '.exe' "$func_basename_result" - func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" - fi + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file @@ -1001,6 +1335,37 @@ } +# func_resolve_sysroot PATH +# Replace a leading = in PATH with a sysroot. Store the result into +# func_resolve_sysroot_result +func_resolve_sysroot () +{ + func_resolve_sysroot_result=$1 + case $func_resolve_sysroot_result in + =*) + func_stripname '=' '' "$func_resolve_sysroot_result" + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result + ;; + esac +} + +# func_replace_sysroot PATH +# If PATH begins with the sysroot, replace it with = and +# store the result into func_replace_sysroot_result. +func_replace_sysroot () +{ + case "$lt_sysroot:$1" in + ?*:"$lt_sysroot"*) + func_stripname "$lt_sysroot" '' "$1" + func_replace_sysroot_result="=$func_stripname_result" + ;; + *) + # Including no sysroot. + func_replace_sysroot_result=$1 + ;; + esac +} + # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. @@ -1013,13 +1378,15 @@ if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do - func_quote_for_eval "$arg" - CC_quoted="$CC_quoted $func_quote_for_eval_result" + func_append_quoted CC_quoted "$arg" done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) @@ -1030,11 +1397,13 @@ CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. - func_quote_for_eval "$arg" - CC_quoted="$CC_quoted $func_quote_for_eval_result" + func_append_quoted CC_quoted "$arg" done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. @@ -1097,6 +1466,486 @@ } } + +################################################## +# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS # +################################################## + +# func_convert_core_file_wine_to_w32 ARG +# Helper function used by file name conversion functions when $build is *nix, +# and $host is mingw, cygwin, or some other w32 environment. Relies on a +# correctly configured wine environment available, with the winepath program +# in $build's $PATH. +# +# ARG is the $build file name to be converted to w32 format. +# Result is available in $func_convert_core_file_wine_to_w32_result, and will +# be empty on error (or when ARG is empty) +func_convert_core_file_wine_to_w32 () +{ + $opt_debug + func_convert_core_file_wine_to_w32_result="$1" + if test -n "$1"; then + # Unfortunately, winepath does not exit with a non-zero error code, so we + # are forced to check the contents of stdout. On the other hand, if the + # command is not found, the shell will set an exit code of 127 and print + # *an error message* to stdout. So we must check for both error code of + # zero AND non-empty stdout, which explains the odd construction: + func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null` + if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | + $SED -e "$lt_sed_naive_backslashify"` + else + func_convert_core_file_wine_to_w32_result= + fi + fi +} +# end: func_convert_core_file_wine_to_w32 + + +# func_convert_core_path_wine_to_w32 ARG +# Helper function used by path conversion functions when $build is *nix, and +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly +# configured wine environment available, with the winepath program in $build's +# $PATH. Assumes ARG has no leading or trailing path separator characters. +# +# ARG is path to be converted from $build format to win32. +# Result is available in $func_convert_core_path_wine_to_w32_result. +# Unconvertible file (directory) names in ARG are skipped; if no directory names +# are convertible, then the result may be empty. +func_convert_core_path_wine_to_w32 () +{ + $opt_debug + # unfortunately, winepath doesn't convert paths, only file names + func_convert_core_path_wine_to_w32_result="" + if test -n "$1"; then + oldIFS=$IFS + IFS=: + for func_convert_core_path_wine_to_w32_f in $1; do + IFS=$oldIFS + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" + if test -n "$func_convert_core_file_wine_to_w32_result" ; then + if test -z "$func_convert_core_path_wine_to_w32_result"; then + func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" + else + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" + fi + fi + done + IFS=$oldIFS + fi +} +# end: func_convert_core_path_wine_to_w32 + + +# func_cygpath ARGS... +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or +# (2), returns the Cygwin file name or path in func_cygpath_result (input +# file name or path is assumed to be in w32 format, as previously converted +# from $build's *nix or MSYS format). In case (3), returns the w32 file name +# or path in func_cygpath_result (input file name or path is assumed to be in +# Cygwin format). Returns an empty string on error. +# +# ARGS are passed to cygpath, with the last one being the file name or path to +# be converted. +# +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH +# environment variable; do not put it in $PATH. +func_cygpath () +{ + $opt_debug + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` + if test "$?" -ne 0; then + # on failure, ensure result is empty + func_cygpath_result= + fi + else + func_cygpath_result= + func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" + fi +} +#end: func_cygpath + + +# func_convert_core_msys_to_w32 ARG +# Convert file name or path ARG from MSYS format to w32 format. Return +# result in func_convert_core_msys_to_w32_result. +func_convert_core_msys_to_w32 () +{ + $opt_debug + # awkward: cmd appends spaces to result + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` +} +#end: func_convert_core_msys_to_w32 + + +# func_convert_file_check ARG1 ARG2 +# Verify that ARG1 (a file name in $build format) was converted to $host +# format in ARG2. Otherwise, emit an error message, but continue (resetting +# func_to_host_file_result to ARG1). +func_convert_file_check () +{ + $opt_debug + if test -z "$2" && test -n "$1" ; then + func_error "Could not determine host file name corresponding to" + func_error " \`$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_file_result="$1" + fi +} +# end func_convert_file_check + + +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH +# Verify that FROM_PATH (a path in $build format) was converted to $host +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting +# func_to_host_file_result to a simplistic fallback value (see below). +func_convert_path_check () +{ + $opt_debug + if test -z "$4" && test -n "$3"; then + func_error "Could not determine the host path corresponding to" + func_error " \`$3'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This is a deliberately simplistic "conversion" and + # should not be "improved". See libtool.info. + if test "x$1" != "x$2"; then + lt_replace_pathsep_chars="s|$1|$2|g" + func_to_host_path_result=`echo "$3" | + $SED -e "$lt_replace_pathsep_chars"` + else + func_to_host_path_result="$3" + fi + fi +} +# end func_convert_path_check + + +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT +# and appending REPL if ORIG matches BACKPAT. +func_convert_path_front_back_pathsep () +{ + $opt_debug + case $4 in + $1 ) func_to_host_path_result="$3$func_to_host_path_result" + ;; + esac + case $4 in + $2 ) func_append func_to_host_path_result "$3" + ;; + esac +} +# end func_convert_path_front_back_pathsep + + +################################################## +# $build to $host FILE NAME CONVERSION FUNCTIONS # +################################################## +# invoked via `$to_host_file_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# Result will be available in $func_to_host_file_result. + + +# func_to_host_file ARG +# Converts the file name ARG from $build format to $host format. Return result +# in func_to_host_file_result. +func_to_host_file () +{ + $opt_debug + $to_host_file_cmd "$1" +} +# end func_to_host_file + + +# func_to_tool_file ARG LAZY +# converts the file name ARG from $build format to toolchain format. Return +# result in func_to_tool_file_result. If the conversion in use is listed +# in (the comma separated) LAZY, no conversion takes place. +func_to_tool_file () +{ + $opt_debug + case ,$2, in + *,"$to_tool_file_cmd",*) + func_to_tool_file_result=$1 + ;; + *) + $to_tool_file_cmd "$1" + func_to_tool_file_result=$func_to_host_file_result + ;; + esac +} +# end func_to_tool_file + + +# func_convert_file_noop ARG +# Copy ARG to func_to_host_file_result. +func_convert_file_noop () +{ + func_to_host_file_result="$1" +} +# end func_convert_file_noop + + +# func_convert_file_msys_to_w32 ARG +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_file_result. +func_convert_file_msys_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_to_host_file_result="$func_convert_core_msys_to_w32_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_w32 + + +# func_convert_file_cygwin_to_w32 ARG +# Convert file name ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_file_cygwin_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use + # LT_CYGPATH in this case. + func_to_host_file_result=`cygpath -m "$1"` + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_cygwin_to_w32 + + +# func_convert_file_nix_to_w32 ARG +# Convert file name ARG from *nix to w32 format. Requires a wine environment +# and a working winepath. Returns result in func_to_host_file_result. +func_convert_file_nix_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_file_wine_to_w32 "$1" + func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_w32 + + +# func_convert_file_msys_to_cygwin ARG +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_file_msys_to_cygwin () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_cygpath -u "$func_convert_core_msys_to_w32_result" + func_to_host_file_result="$func_cygpath_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_cygwin + + +# func_convert_file_nix_to_cygwin ARG +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result +# in func_to_host_file_result. +func_convert_file_nix_to_cygwin () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. + func_convert_core_file_wine_to_w32 "$1" + func_cygpath -u "$func_convert_core_file_wine_to_w32_result" + func_to_host_file_result="$func_cygpath_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_cygwin + + +############################################# +# $build to $host PATH CONVERSION FUNCTIONS # +############################################# +# invoked via `$to_host_path_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# The result will be available in $func_to_host_path_result. +# +# Path separators are also converted from $build format to $host format. If +# ARG begins or ends with a path separator character, it is preserved (but +# converted to $host format) on output. +# +# All path conversion functions are named using the following convention: +# file name conversion function : func_convert_file_X_to_Y () +# path conversion function : func_convert_path_X_to_Y () +# where, for any given $build/$host combination the 'X_to_Y' value is the +# same. If conversion functions are added for new $build/$host combinations, +# the two new functions must follow this pattern, or func_init_to_host_path_cmd +# will break. + + +# func_init_to_host_path_cmd +# Ensures that function "pointer" variable $to_host_path_cmd is set to the +# appropriate value, based on the value of $to_host_file_cmd. +to_host_path_cmd= +func_init_to_host_path_cmd () +{ + $opt_debug + if test -z "$to_host_path_cmd"; then + func_stripname 'func_convert_file_' '' "$to_host_file_cmd" + to_host_path_cmd="func_convert_path_${func_stripname_result}" + fi +} + + +# func_to_host_path ARG +# Converts the path ARG from $build format to $host format. Return result +# in func_to_host_path_result. +func_to_host_path () +{ + $opt_debug + func_init_to_host_path_cmd + $to_host_path_cmd "$1" +} +# end func_to_host_path + + +# func_convert_path_noop ARG +# Copy ARG to func_to_host_path_result. +func_convert_path_noop () +{ + func_to_host_path_result="$1" +} +# end func_convert_path_noop + + +# func_convert_path_msys_to_w32 ARG +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_path_result. +func_convert_path_msys_to_w32 () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # Remove leading and trailing path separator characters from ARG. MSYS + # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; + # and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result="$func_convert_core_msys_to_w32_result" + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_msys_to_w32 + + +# func_convert_path_cygwin_to_w32 ARG +# Convert path ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_path_cygwin_to_w32 () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_cygwin_to_w32 + + +# func_convert_path_nix_to_w32 ARG +# Convert path ARG from *nix to w32 format. Requires a wine environment and +# a working winepath. Returns result in func_to_host_file_result. +func_convert_path_nix_to_w32 () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_nix_to_w32 + + +# func_convert_path_msys_to_cygwin ARG +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_path_msys_to_cygwin () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_msys_to_w32_result" + func_to_host_path_result="$func_cygpath_result" + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_msys_to_cygwin + + +# func_convert_path_nix_to_cygwin ARG +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in +# func_to_host_file_result. +func_convert_path_nix_to_cygwin () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" + func_to_host_path_result="$func_cygpath_result" + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_nix_to_cygwin + + # func_mode_compile arg... func_mode_compile () { @@ -1137,12 +1986,12 @@ ;; -pie | -fpie | -fPIE) - pie_flag="$pie_flag $arg" + func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) - later="$later $arg" + func_append later " $arg" continue ;; @@ -1163,15 +2012,14 @@ save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" - func_quote_for_eval "$arg" - lastarg="$lastarg $func_quote_for_eval_result" + func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. - base_compile="$base_compile $lastarg" + func_append base_compile " $lastarg" continue ;; @@ -1187,8 +2035,7 @@ esac # case $arg_mode # Aesthetically quote the previous argument. - func_quote_for_eval "$lastarg" - base_compile="$base_compile $func_quote_for_eval_result" + func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in @@ -1213,7 +2060,7 @@ *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ - *.[fF][09]? | *.for | *.java | *.obj | *.sx) + *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; @@ -1288,7 +2135,7 @@ # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then - output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= @@ -1319,17 +2166,16 @@ $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi - removelist="$removelist $output_obj" + func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist - removelist="$removelist $lockfile" + func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 - if test -n "$fix_srcfile_path"; then - eval srcfile=\"$fix_srcfile_path\" - fi + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 + srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result @@ -1349,7 +2195,7 @@ if test -z "$output_obj"; then # Place PIC objects in $objdir - command="$command -o $lobj" + func_append command " -o $lobj" fi func_show_eval_locale "$command" \ @@ -1396,11 +2242,11 @@ command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then - command="$command -o $obj" + func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. - command="$command$suppress_output" + func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' @@ -1445,13 +2291,13 @@ } $opt_help || { -test "$mode" = compile && func_mode_compile ${1+"$@"} + test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. - case $mode in + case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. @@ -1482,10 +2328,11 @@ -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes - -prefer-pic try to building PIC objects only - -prefer-non-pic try to building non-PIC objects only + -prefer-pic try to build PIC objects only + -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking + -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. @@ -1538,7 +2385,7 @@ The following components of INSTALL-COMMAND are treated specially: - -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." @@ -1558,6 +2405,8 @@ -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible + -bindir BINDIR specify path to binaries directory (for systems where + libraries must be found in the PATH setting at runtime) -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) @@ -1586,6 +2435,11 @@ -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface + -Wc,FLAG + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler + -Wl,FLAG + -Xlinker FLAG pass linker-specific FLAG directly to the linker + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. @@ -1619,18 +2473,44 @@ ;; *) - func_fatal_help "invalid operation mode \`$mode'" + func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac - $ECHO + echo $ECHO "Try \`$progname --help' for more information about other modes." - - exit $? } - # Now that we've collected a possible --mode arg, show help if necessary - $opt_help && func_mode_help +# Now that we've collected a possible --mode arg, show help if necessary +if $opt_help; then + if test "$opt_help" = :; then + func_mode_help + else + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + func_mode_help + done + } | sed -n '1p; 2,$s/^Usage:/ or: /p' + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + echo + func_mode_help + done + } | + sed '1d + /^When reporting/,/^Report/{ + H + d + } + $x + /information about other modes/d + /more detailed .*MODE/d + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' + fi + exit $? +fi # func_mode_execute arg... @@ -1643,13 +2523,16 @@ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. - for file in $execute_dlfiles; do + for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" @@ -1671,7 +2554,7 @@ dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then - dir="$dir/$objdir" + func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" @@ -1712,7 +2595,7 @@ for file do case $file in - -*) ;; + -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then @@ -1728,8 +2611,7 @@ ;; esac # Quote arguments (to preserve shell metacharacters). - func_quote_for_eval "$file" - args="$args $func_quote_for_eval_result" + func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then @@ -1754,29 +2636,66 @@ # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" - $ECHO "export $shlibpath_var" + echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } -test "$mode" = execute && func_mode_execute ${1+"$@"} +test "$opt_mode" = execute && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $opt_debug + libs= + libdirs= + admincmds= + + for opt in "$nonopt" ${1+"$@"} + do + if test -d "$opt"; then + func_append libdirs " $opt" + + elif test -f "$opt"; then + if func_lalib_unsafe_p "$opt"; then + func_append libs " $opt" + else + func_warning "\`$opt' is not a valid libtool archive" + fi + + else + func_fatal_error "invalid argument \`$opt'" + fi + done + if test -n "$libs"; then + if test -n "$lt_sysroot"; then + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" + else + sysroot_cmd= + fi -# func_mode_finish arg... -func_mode_finish () -{ - $opt_debug - libdirs="$nonopt" - admincmds= + # Remove sysroot references + if $opt_dry_run; then + for lib in $libs; do + echo "removing references to $lt_sysroot and \`=' prefixes from $lib" + done + else + tmpdir=`func_mktempdir` + for lib in $libs; do + sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ + > $tmpdir/tmp-la + mv -f $tmpdir/tmp-la $lib + done + ${RM}r "$tmpdir" + fi + fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for dir - do - libdirs="$libdirs $dir" - done - for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. @@ -1786,7 +2705,7 @@ if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" - $opt_dry_run || eval "$cmds" || admincmds="$admincmds + $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done @@ -1795,53 +2714,55 @@ # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS - $ECHO "X----------------------------------------------------------------------" | $Xsed - $ECHO "Libraries have been installed in:" - for libdir in $libdirs; do - $ECHO " $libdir" - done - $ECHO - $ECHO "If you ever happen to want to link against installed libraries" - $ECHO "in a given directory, LIBDIR, you must either use libtool, and" - $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" - $ECHO "flag during linking and do at least one of the following:" - if test -n "$shlibpath_var"; then - $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" - $ECHO " during execution" - fi - if test -n "$runpath_var"; then - $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" - $ECHO " during linking" - fi - if test -n "$hardcode_libdir_flag_spec"; then - libdir=LIBDIR - eval flag=\"$hardcode_libdir_flag_spec\" + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + echo "----------------------------------------------------------------------" + echo "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + echo + echo "If you ever happen to want to link against installed libraries" + echo "in a given directory, LIBDIR, you must either use libtool, and" + echo "specify the full pathname of the library, or use the \`-LLIBDIR'" + echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + echo " - add LIBDIR to the \`$shlibpath_var' environment variable" + echo " during execution" + fi + if test -n "$runpath_var"; then + echo " - add LIBDIR to the \`$runpath_var' environment variable" + echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" - $ECHO " - use the \`$flag' linker flag" - fi - if test -n "$admincmds"; then - $ECHO " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" - fi - $ECHO + $ECHO " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + echo - $ECHO "See any operating system documentation about shared libraries for" - case $host in - solaris2.[6789]|solaris2.1[0-9]) - $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" - $ECHO "pages." - ;; - *) - $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." - ;; - esac - $ECHO "X----------------------------------------------------------------------" | $Xsed + echo "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" + echo "pages." + ;; + *) + echo "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + echo "----------------------------------------------------------------------" + fi exit $EXIT_SUCCESS } -test "$mode" = finish && func_mode_finish ${1+"$@"} +test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... @@ -1852,7 +2773,7 @@ # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. - $ECHO "X$nonopt" | $GREP shtool >/dev/null; then + case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " @@ -1866,7 +2787,12 @@ # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" - install_prog="$install_prog$func_quote_for_eval_result" + func_append install_prog "$func_quote_for_eval_result" + install_shared_prog=$install_prog + case " $install_prog " in + *[\\\ /]cp\ *) install_cp=: ;; + *) install_cp=false ;; + esac # We need to accept at least all the BSD install flags. dest= @@ -1876,10 +2802,12 @@ install_type= isdir=no stripme= + no_mode=: for arg do + arg2= if test -n "$dest"; then - files="$files $dest" + func_append files " $dest" dest=$arg continue fi @@ -1887,10 +2815,9 @@ case $arg in -d) isdir=yes ;; -f) - case " $install_prog " in - *[\\\ /]cp\ *) ;; - *) prev=$arg ;; - esac + if $install_cp; then :; else + prev=$arg + fi ;; -g | -m | -o) prev=$arg @@ -1904,6 +2831,10 @@ *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then + if test "x$prev" = x-m && test -n "$install_override_mode"; then + arg2=$install_override_mode + no_mode=false + fi prev= else dest=$arg @@ -1914,7 +2845,11 @@ # Aesthetically quote the argument. func_quote_for_eval "$arg" - install_prog="$install_prog $func_quote_for_eval_result" + func_append install_prog " $func_quote_for_eval_result" + if test -n "$arg2"; then + func_quote_for_eval "$arg2" + fi + func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ @@ -1923,6 +2858,13 @@ test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" + if test -n "$install_override_mode" && $no_mode; then + if $install_cp; then :; else + func_quote_for_eval "$install_override_mode" + func_append install_shared_prog " -m $func_quote_for_eval_result" + fi + fi + if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" @@ -1977,10 +2919,13 @@ case $file in *.$libext) # Do the static libraries later. - staticlibs="$staticlibs $file" + func_append staticlibs " $file" ;; *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" @@ -1994,23 +2939,23 @@ if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; - *) current_libdirs="$current_libdirs $libdir" ;; + *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; - *) future_libdirs="$future_libdirs $libdir" ;; + *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" - dir="$dir$objdir" + func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` + inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that @@ -2023,9 +2968,9 @@ if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" @@ -2043,7 +2988,7 @@ test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. - func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in @@ -2083,7 +3028,7 @@ func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" + test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) @@ -2183,7 +3128,7 @@ if test -f "$lib"; then func_source "$lib" fi - libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test + libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no @@ -2202,7 +3147,7 @@ file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. - relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" @@ -2221,7 +3166,7 @@ } else # Install the binary that we compiled earlier. - file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi @@ -2257,11 +3202,13 @@ # Set up the ranlib parameters. oldlib="$destdir/$name" + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 + tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then - func_show_eval "$old_striplib $oldlib" 'exit $?' + func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. @@ -2280,7 +3227,7 @@ fi } -test "$mode" = install && func_mode_install ${1+"$@"} +test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p @@ -2323,6 +3270,22 @@ extern \"C\" { #endif +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" +#endif + +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + /* External symbol declarations for the compiler. */\ " @@ -2332,10 +3295,11 @@ $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. - progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do - func_verbose "extracting global C symbols from \`$progfile'" - $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" + func_to_tool_file "$progfile" func_convert_file_msys_to_w32 + func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then @@ -2371,7 +3335,7 @@ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in - *cygwin | *mingw* | *cegcc* ) + *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; @@ -2384,10 +3348,52 @@ func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } + case $host in + *cygwin* | *mingw* | *cegcc* ) + # if an import library, we need to obtain dlname + if func_win32_import_lib_p "$dlprefile"; then + func_tr_sh "$dlprefile" + eval "curr_lafile=\$libfile_$func_tr_sh_result" + dlprefile_dlbasename="" + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then + # Use subshell, to avoid clobbering current variable values + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` + if test -n "$dlprefile_dlname" ; then + func_basename "$dlprefile_dlname" + dlprefile_dlbasename="$func_basename_result" + else + # no lafile. user explicitly requested -dlpreopen . + $sharedlib_from_linklib_cmd "$dlprefile" + dlprefile_dlbasename=$sharedlib_from_linklib_result + fi + fi + $opt_dry_run || { + if test -n "$dlprefile_dlbasename" ; then + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' + else + func_warning "Could not compute DLL name from $name" + eval '$ECHO ": $name " >> "$nlist"' + fi + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" + } + else # not an import lib + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + fi + ;; + *) + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + ;; + esac done $opt_dry_run || { @@ -2415,36 +3421,19 @@ if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else - $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" + echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi - $ECHO >> "$output_objdir/$my_dlsyms" "\ + echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; -" - case $host in - *cygwin* | *mingw* | *cegcc* ) - $ECHO >> "$output_objdir/$my_dlsyms" "\ -/* DATA imports from DLLs on WIN32 con't be const, because - runtime relocations are performed -- see ld's documentation - on pseudo-relocs. */" - lt_dlsym_const= ;; - *osf5*) - echo >> "$output_objdir/$my_dlsyms" "\ -/* This system does not cope well with relocations in const data */" - lt_dlsym_const= ;; - *) - lt_dlsym_const=const ;; - esac - - $ECHO >> "$output_objdir/$my_dlsyms" "\ -extern $lt_dlsym_const lt_dlsymlist +extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; -$lt_dlsym_const lt_dlsymlist +LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," @@ -2457,7 +3446,7 @@ eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac - $ECHO >> "$output_objdir/$my_dlsyms" "\ + echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; @@ -2484,7 +3473,7 @@ # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; @@ -2500,7 +3489,7 @@ for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; - *) symtab_cflags="$symtab_cflags $arg" ;; + *) func_append symtab_cflags " $arg" ;; esac done @@ -2515,16 +3504,16 @@ case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; @@ -2538,8 +3527,8 @@ # really was required. # Nullify the symbol file. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } @@ -2549,6 +3538,7 @@ # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. +# Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug @@ -2559,9 +3549,11 @@ win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | - $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then - win32_nmres=`eval $NM -f posix -A $1 | + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then + func_to_tool_file "$1" func_convert_file_msys_to_w32 + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ @@ -2590,6 +3582,131 @@ $ECHO "$win32_libid_type" } +# func_cygming_dll_for_implib ARG +# +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib () +{ + $opt_debug + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` +} + +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs +# +# The is the core of a fallback implementation of a +# platform-specific function to extract the name of the +# DLL associated with the specified import library LIBNAME. +# +# SECTION_NAME is either .idata$6 or .idata$7, depending +# on the platform and compiler that created the implib. +# +# Echos the name of the DLL associated with the +# specified import library. +func_cygming_dll_for_implib_fallback_core () +{ + $opt_debug + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` + $OBJDUMP -s --section "$1" "$2" 2>/dev/null | + $SED '/^Contents of section '"$match_literal"':/{ + # Place marker at beginning of archive member dllname section + s/.*/====MARK====/ + p + d + } + # These lines can sometimes be longer than 43 characters, but + # are always uninteresting + /:[ ]*file format pe[i]\{,1\}-/d + /^In archive [^:]*:/d + # Ensure marker is printed + /^====MARK====/p + # Remove all lines with less than 43 characters + /^.\{43\}/!d + # From remaining lines, remove first 43 characters + s/^.\{43\}//' | + $SED -n ' + # Join marker and all lines until next marker into a single line + /^====MARK====/ b para + H + $ b para + b + :para + x + s/\n//g + # Remove the marker + s/^====MARK====// + # Remove trailing dots and whitespace + s/[\. \t]*$// + # Print + /./p' | + # we now have a list, one entry per line, of the stringified + # contents of the appropriate section of all members of the + # archive which possess that section. Heuristic: eliminate + # all those which have a first or second character that is + # a '.' (that is, objdump's representation of an unprintable + # character.) This should work for all archives with less than + # 0x302f exports -- but will fail for DLLs whose name actually + # begins with a literal '.' or a single character followed by + # a '.'. + # + # Of those that remain, print the first one. + $SED -e '/^\./d;/^.\./d;q' +} + +# func_cygming_gnu_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is a GNU/binutils-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_gnu_implib_p () +{ + $opt_debug + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` + test -n "$func_cygming_gnu_implib_tmp" +} + +# func_cygming_ms_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is an MS-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_ms_implib_p () +{ + $opt_debug + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` + test -n "$func_cygming_ms_implib_tmp" +} + +# func_cygming_dll_for_implib_fallback ARG +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# +# This fallback implementation is for use when $DLLTOOL +# does not support the --identify-strict option. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib_fallback () +{ + $opt_debug + if func_cygming_gnu_implib_p "$1" ; then + # binutils import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` + elif func_cygming_ms_implib_p "$1" ; then + # ms-generated import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` + else + # unknown + sharedlib_from_linklib_result="" + fi +} # func_extract_an_archive dir oldlib @@ -2598,7 +3715,18 @@ $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' + if test "$lock_old_archive_extraction" = yes; then + lockfile=$f_ex_an_ar_oldlib.lock + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + fi + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ + 'stat=$?; rm -f "$lockfile"; exit $stat' + if test "$lock_old_archive_extraction" = yes; then + $opt_dry_run || rm -f "$lockfile" + fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else @@ -2669,7 +3797,7 @@ darwin_file= darwin_files= for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ @@ -2684,25 +3812,30 @@ func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } - -# func_emit_wrapper_part1 [arg=no] +# func_emit_wrapper [arg=no] # -# Emit the first part of a libtool wrapper script on stdout. -# For more information, see the description associated with -# func_emit_wrapper(), below. -func_emit_wrapper_part1 () -{ - func_emit_wrapper_part1_arg1=no - if test -n "$1" ; then - func_emit_wrapper_part1_arg1=$1 - fi +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory in which it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL @@ -2718,7 +3851,6 @@ # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. -Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible @@ -2749,31 +3881,135 @@ else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then - ECHO=\"$qecho\" - file=\"\$0\" - # Make sure echo works. - if test \"X\$1\" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift - elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then - # Yippee, \$ECHO works! - : - else - # Restart under the correct shell, and then maybe \$ECHO will work. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} - fi - fi\ + file=\"\$0\"" + + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` + $ECHO "\ + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + ECHO=\"$qECHO\" + fi + +# Very basic option parsing. These options are (a) specific to +# the libtool wrapper, (b) are identical between the wrapper +# /script/ and the wrapper /executable/ which is used only on +# windows platforms, and (c) all begin with the string "--lt-" +# (application programs are unlikely to have options which match +# this pattern). +# +# There are only two supported options: --lt-debug and +# --lt-dump-script. There is, deliberately, no --lt-help. +# +# The first argument to this parsing function should be the +# script's $0 value, followed by "$@". +lt_option_debug= +func_parse_lt_options () +{ + lt_script_arg0=\$0 + shift + for lt_opt + do + case \"\$lt_opt\" in + --lt-debug) lt_option_debug=1 ;; + --lt-dump-script) + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` + cat \"\$lt_dump_D/\$lt_dump_F\" + exit 0 + ;; + --lt-*) + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 + exit 1 + ;; + esac + done + + # Print the debug banner immediately: + if test -n \"\$lt_option_debug\"; then + echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 + fi +} + +# Used when --lt-debug. Prints its arguments to stdout +# (redirection is the responsibility of the caller) +func_lt_dump_args () +{ + lt_dump_args_N=1; + for lt_arg + do + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` + done +} + +# Core function for launching the target application +func_exec_program_core () +{ " - $ECHO "\ + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 +} + +# A function to encapsulate launching the target application +# Strips options in the --lt-* namespace from \$@ and +# launches target application with the remaining arguments. +func_exec_program () +{ + case \" \$* \" in + *\\ --lt-*) + for lt_wr_arg + do + case \$lt_wr_arg in + --lt-*) ;; + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; + esac + shift + done ;; + esac + func_exec_program_core \${1+\"\$@\"} +} + + # Parse options + func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. - thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do - destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then @@ -2783,30 +4019,13 @@ esac fi - file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done -" -} -# end: func_emit_wrapper_part1 - -# func_emit_wrapper_part2 [arg=no] -# -# Emit the second part of a libtool wrapper script on stdout. -# For more information, see the description associated with -# func_emit_wrapper(), below. -func_emit_wrapper_part2 () -{ - func_emit_wrapper_part2_arg1=no - if test -n "$1" ; then - func_emit_wrapper_part2_arg1=$1 - fi - - $ECHO "\ # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. - WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then @@ -2814,7 +4033,7 @@ fi # remove .libs from thisdir case \"\$thisdir\" in - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi @@ -2869,6 +4088,18 @@ if test -f \"\$progdir/\$program\"; then" + # fixup the dll searchpath if we need to. + # + # Fix the DLL searchpath if we need to. Do this before prepending + # to shlibpath, because on Windows, both are PATH and uninstalled + # libraries must come first. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ @@ -2877,253 +4108,28 @@ # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed - $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi - # fixup the dll searchpath if we need to. - if test -n "$dllsearchpath"; then - $ECHO "\ - # Add the dll search path components to the executable PATH - PATH=$dllsearchpath:\$PATH -" - fi - $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. -" - case $host in - # Backslashes separate directories on plain windows - *-*-mingw | *-*-os2* | *-cegcc*) - $ECHO "\ - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; - - *) - $ECHO "\ - exec \"\$progdir/\$program\" \${1+\"\$@\"} -" - ;; - esac - $ECHO "\ - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 - exit 1 + func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 - $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } -# end: func_emit_wrapper_part2 - - -# func_emit_wrapper [arg=no] -# -# Emit a libtool wrapper script on stdout. -# Don't directly open a file because we may want to -# incorporate the script contents within a cygwin/mingw -# wrapper executable. Must ONLY be called from within -# func_mode_link because it depends on a number of variables -# set therein. -# -# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR -# variable will take. If 'yes', then the emitted script -# will assume that the directory in which it is stored is -# the $objdir directory. This is a cygwin/mingw-specific -# behavior. -func_emit_wrapper () -{ - func_emit_wrapper_arg1=no - if test -n "$1" ; then - func_emit_wrapper_arg1=$1 - fi - - # split this up so that func_emit_cwrapperexe_src - # can call each part independently. - func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" - func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" -} - - -# func_to_host_path arg -# -# Convert paths to host format when used with build tools. -# Intended for use with "native" mingw (where libtool itself -# is running under the msys shell), or in the following cross- -# build environments: -# $build $host -# mingw (msys) mingw [e.g. native] -# cygwin mingw -# *nix + wine mingw -# where wine is equipped with the `winepath' executable. -# In the native mingw case, the (msys) shell automatically -# converts paths for any non-msys applications it launches, -# but that facility isn't available from inside the cwrapper. -# Similar accommodations are necessary for $host mingw and -# $build cygwin. Calling this function does no harm for other -# $host/$build combinations not listed above. -# -# ARG is the path (on $build) that should be converted to -# the proper representation for $host. The result is stored -# in $func_to_host_path_result. -func_to_host_path () -{ - func_to_host_path_result="$1" - if test -n "$1" ; then - case $host in - *mingw* ) - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' - case $build in - *mingw* ) # actually, msys - # awkward: cmd appends spaces to result - lt_sed_strip_trailing_spaces="s/[ ]*\$//" - func_to_host_path_tmp1=`( cmd //c echo "$1" |\ - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - *cygwin* ) - func_to_host_path_tmp1=`cygpath -w "$1"` - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - * ) - # Unfortunately, winepath does not exit with a non-zero - # error code, so we are forced to check the contents of - # stdout. On the other hand, if the command is not - # found, the shell will set an exit code of 127 and print - # *an error message* to stdout. So we must check for both - # error code of zero AND non-empty stdout, which explains - # the odd construction: - func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` - if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ - $SED -e "$lt_sed_naive_backslashify"` - else - # Allow warning below. - func_to_host_path_result="" - fi - ;; - esac - if test -z "$func_to_host_path_result" ; then - func_error "Could not determine host path corresponding to" - func_error " '$1'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback: - func_to_host_path_result="$1" - fi - ;; - esac - fi -} -# end: func_to_host_path - -# func_to_host_pathlist arg -# -# Convert pathlists to host format when used with build tools. -# See func_to_host_path(), above. This function supports the -# following $build/$host combinations (but does no harm for -# combinations not listed here): -# $build $host -# mingw (msys) mingw [e.g. native] -# cygwin mingw -# *nix + wine mingw -# -# Path separators are also converted from $build format to -# $host format. If ARG begins or ends with a path separator -# character, it is preserved (but converted to $host format) -# on output. -# -# ARG is a pathlist (on $build) that should be converted to -# the proper representation on $host. The result is stored -# in $func_to_host_pathlist_result. -func_to_host_pathlist () -{ - func_to_host_pathlist_result="$1" - if test -n "$1" ; then - case $host in - *mingw* ) - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' - # Remove leading and trailing path separator characters from - # ARG. msys behavior is inconsistent here, cygpath turns them - # into '.;' and ';.', and winepath ignores them completely. - func_to_host_pathlist_tmp2="$1" - # Once set for this call, this variable should not be - # reassigned. It is used in tha fallback case. - func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ - $SED -e 's|^:*||' -e 's|:*$||'` - case $build in - *mingw* ) # Actually, msys. - # Awkward: cmd appends spaces to result. - lt_sed_strip_trailing_spaces="s/[ ]*\$//" - func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - *cygwin* ) - func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - * ) - # unfortunately, winepath doesn't convert pathlists - func_to_host_pathlist_result="" - func_to_host_pathlist_oldIFS=$IFS - IFS=: - for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do - IFS=$func_to_host_pathlist_oldIFS - if test -n "$func_to_host_pathlist_f" ; then - func_to_host_path "$func_to_host_pathlist_f" - if test -n "$func_to_host_path_result" ; then - if test -z "$func_to_host_pathlist_result" ; then - func_to_host_pathlist_result="$func_to_host_path_result" - else - func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" - fi - fi - fi - IFS=: - done - IFS=$func_to_host_pathlist_oldIFS - ;; - esac - if test -z "$func_to_host_pathlist_result" ; then - func_error "Could not determine the host path(s) corresponding to" - func_error " '$1'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback. This may break if $1 contains DOS-style drive - # specifications. The fix is not to complicate the expression - # below, but for the user to provide a working wine installation - # with winepath so that path translation in the cross-to-mingw - # case works properly. - lt_replace_pathsep_nix_to_dos="s|:|;|g" - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ - $SED -e "$lt_replace_pathsep_nix_to_dos"` - fi - # Now, add the leading and trailing path separators back - case "$1" in - :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" - ;; - esac - case "$1" in - *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" - ;; - esac - ;; - esac - fi -} -# end: func_to_host_pathlist + # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout @@ -3141,31 +4147,23 @@ This wrapper executable should never be moved out of the build directory. If it is, it will not operate correctly. - - Currently, it simply execs the wrapper *script* "$SHELL $output", - but could eventually absorb all of the scripts functionality and - exec $objdir/$outputname directly. */ EOF cat <<"EOF" +#ifdef _MSC_VER +# define _CRT_SECURE_NO_DEPRECATE 1 +#endif #include #include #ifdef _MSC_VER # include # include # include -# define setmode _setmode #else # include # include # ifdef __CYGWIN__ # include -# define HAVE_SETENV -# ifdef __STRICT_ANSI__ -char *realpath (const char *, char *); -int putenv (char *); -int setenv (const char *, const char *, int); -# endif # endif #endif #include @@ -3177,6 +4175,44 @@ #include #include +/* declarations of non-ANSI functions */ +#if defined(__MINGW32__) +# ifdef __STRICT_ANSI__ +int _putenv (const char *); +# endif +#elif defined(__CYGWIN__) +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +/* #elif defined (other platforms) ... */ +#endif + +/* portability defines, excluding path handling macros */ +#if defined(_MSC_VER) +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +# define S_IXUSR _S_IEXEC +# ifndef _INTPTR_T_DEFINED +# define _INTPTR_T_DEFINED +# define intptr_t int +# endif +#elif defined(__MINGW32__) +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +#elif defined(__CYGWIN__) +# define HAVE_SETENV +# define FOPEN_WB "wb" +/* #elif defined (other platforms) ... */ +#endif + #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) @@ -3192,14 +4228,7 @@ # define S_IXGRP 0 #endif -#ifdef _MSC_VER -# define S_IXUSR _S_IEXEC -# define stat _stat -# ifndef _INTPTR_T_DEFINED -# define intptr_t int -# endif -#endif - +/* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' @@ -3230,10 +4259,6 @@ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ -#ifdef __CYGWIN__ -# define FOPEN_WB "wb" -#endif - #ifndef FOPEN_WB # define FOPEN_WB "w" #endif @@ -3246,22 +4271,13 @@ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) -#undef LTWRAPPER_DEBUGPRINTF -#if defined DEBUGWRAPPER -# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args -static void -ltwrapper_debugprintf (const char *fmt, ...) -{ - va_list args; - va_start (args, fmt); - (void) vfprintf (stderr, fmt, args); - va_end (args); -} +#if defined(LT_DEBUGWRAPPER) +static int lt_debug = 1; #else -# define LTWRAPPER_DEBUGPRINTF(args) +static int lt_debug = 0; #endif -const char *program_name = NULL; +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); @@ -3271,41 +4287,27 @@ int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); -void lt_fatal (const char *message, ...); +void lt_debugprintf (const char *file, int line, const char *fmt, ...); +void lt_fatal (const char *file, int line, const char *message, ...); +static const char *nonnull (const char *s); +static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); -void lt_opt_process_env_set (const char *arg); -void lt_opt_process_env_prepend (const char *arg); -void lt_opt_process_env_append (const char *arg); -int lt_split_name_value (const char *arg, char** name, char** value); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); - -static const char *script_text_part1 = -EOF - - func_emit_wrapper_part1 yes | - $SED -e 's/\([\\"]\)/\\\1/g' \ - -e 's/^/ "/' -e 's/$/\\n"/' - echo ";" - cat <"))); + lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n", + nonnull (lt_argv_zero)); for (i = 0; i < newargc; i++) { - LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); + lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n", + i, nonnull (newargz[i])); } EOF @@ -3560,11 +4523,14 @@ mingw*) cat <<"EOF" /* execv doesn't actually work on mingw as expected on unix */ + newargz = prepare_spawn (newargz); rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); if (rval == -1) { /* failed to start process */ - LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); + lt_debugprintf (__FILE__, __LINE__, + "(main) failed to launch target \"%s\": %s\n", + lt_argv_zero, nonnull (strerror (errno))); return 127; } return rval; @@ -3586,7 +4552,7 @@ { void *p = (void *) malloc (num); if (!p) - lt_fatal ("Memory exhausted"); + lt_fatal (__FILE__, __LINE__, "memory exhausted"); return p; } @@ -3620,8 +4586,8 @@ { struct stat st; - LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", - path ? (*path ? path : "EMPTY!") : "NULL!")); + lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n", + nonempty (path)); if ((!path) || (!*path)) return 0; @@ -3638,8 +4604,8 @@ int rval = 0; struct stat st; - LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", - path ? (*path ? path : "EMPTY!") : "NULL!")); + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", + nonempty (path)); if ((!path) || (!*path)) return 0; @@ -3665,8 +4631,8 @@ int tmp_len; char *concat_name; - LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", - wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", + nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; @@ -3719,7 +4685,8 @@ { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); @@ -3744,7 +4711,8 @@ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); @@ -3770,8 +4738,9 @@ int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { - LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", - tmp_pathspec)); + lt_debugprintf (__FILE__, __LINE__, + "checking path component for symlinks: %s\n", + tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) @@ -3793,8 +4762,9 @@ } else { - char *errstr = strerror (errno); - lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); + lt_fatal (__FILE__, __LINE__, + "error accessing file \"%s\": %s", + tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); @@ -3807,7 +4777,8 @@ tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { - lt_fatal ("Could not follow symlinks for %s", pathspec); + lt_fatal (__FILE__, __LINE__, + "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif @@ -3833,11 +4804,25 @@ return str; } +void +lt_debugprintf (const char *file, int line, const char *fmt, ...) +{ + va_list args; + if (lt_debug) + { + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); + } +} + static void -lt_error_core (int exit_status, const char *mode, +lt_error_core (int exit_status, const char *file, + int line, const char *mode, const char *message, va_list ap) { - fprintf (stderr, "%s: %s: ", program_name, mode); + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); @@ -3846,20 +4831,32 @@ } void -lt_fatal (const char *message, ...) +lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); - lt_error_core (EXIT_FAILURE, "FATAL", message, ap); + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } +static const char * +nonnull (const char *s) +{ + return s ? s : "(null)"; +} + +static const char * +nonempty (const char *s) +{ + return (s && !*s) ? "(empty)" : nonnull (s); +} + void lt_setenv (const char *name, const char *value) { - LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", - (name ? name : ""), - (value ? value : ""))); + lt_debugprintf (__FILE__, __LINE__, + "(lt_setenv) setting '%s' to '%s'\n", + nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ @@ -3904,95 +4901,12 @@ return new_value; } -int -lt_split_name_value (const char *arg, char** name, char** value) -{ - const char *p; - int len; - if (!arg || !*arg) - return 1; - - p = strchr (arg, (int)'='); - - if (!p) - return 1; - - *value = xstrdup (++p); - - len = strlen (arg) - strlen (*value); - *name = XMALLOC (char, len); - strncpy (*name, arg, len-1); - (*name)[len - 1] = '\0'; - - return 0; -} - -void -lt_opt_process_env_set (const char *arg) -{ - char *name = NULL; - char *value = NULL; - - if (lt_split_name_value (arg, &name, &value) != 0) - { - XFREE (name); - XFREE (value); - lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); - } - - lt_setenv (name, value); - XFREE (name); - XFREE (value); -} - -void -lt_opt_process_env_prepend (const char *arg) -{ - char *name = NULL; - char *value = NULL; - char *new_value = NULL; - - if (lt_split_name_value (arg, &name, &value) != 0) - { - XFREE (name); - XFREE (value); - lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); - } - - new_value = lt_extend_str (getenv (name), value, 0); - lt_setenv (name, new_value); - XFREE (new_value); - XFREE (name); - XFREE (value); -} - -void -lt_opt_process_env_append (const char *arg) -{ - char *name = NULL; - char *value = NULL; - char *new_value = NULL; - - if (lt_split_name_value (arg, &name, &value) != 0) - { - XFREE (name); - XFREE (value); - lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); - } - - new_value = lt_extend_str (getenv (name), value, 1); - lt_setenv (name, new_value); - XFREE (new_value); - XFREE (name); - XFREE (value); -} - void lt_update_exe_path (const char *name, const char *value) { - LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", - (name ? name : ""), - (value ? value : ""))); + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); if (name && *name && value && *value) { @@ -4011,9 +4925,9 @@ void lt_update_lib_path (const char *name, const char *value) { - LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", - (name ? name : ""), - (value ? value : ""))); + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); if (name && *name && value && *value) { @@ -4023,11 +4937,158 @@ } } +EOF + case $host_os in + mingw*) + cat <<"EOF" + +/* Prepares an argument vector before calling spawn(). + Note that spawn() does not by itself call the command interpreter + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + GetVersionEx(&v); + v.dwPlatformId == VER_PLATFORM_WIN32_NT; + }) ? "cmd.exe" : "command.com"). + Instead it simply concatenates the arguments, separated by ' ', and calls + CreateProcess(). We must quote the arguments since Win32 CreateProcess() + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a + special way: + - Space and tab are interpreted as delimiters. They are not treated as + delimiters if they are surrounded by double quotes: "...". + - Unescaped double quotes are removed from the input. Their only effect is + that within double quotes, space and tab are treated like normal + characters. + - Backslashes not followed by double quotes are not special. + - But 2*n+1 backslashes followed by a double quote become + n backslashes followed by a double quote (n >= 0): + \" -> " + \\\" -> \" + \\\\\" -> \\" + */ +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +char ** +prepare_spawn (char **argv) +{ + size_t argc; + char **new_argv; + size_t i; + + /* Count number of arguments. */ + for (argc = 0; argv[argc] != NULL; argc++) + ; + + /* Allocate new argument vector. */ + new_argv = XMALLOC (char *, argc + 1); + + /* Put quoted arguments into the new argument vector. */ + for (i = 0; i < argc; i++) + { + const char *string = argv[i]; + + if (string[0] == '\0') + new_argv[i] = xstrdup ("\"\""); + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) + { + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); + size_t length; + unsigned int backslashes; + const char *s; + char *quoted_string; + char *p; + + length = 0; + backslashes = 0; + if (quote_around) + length++; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + length += backslashes + 1; + length++; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + length += backslashes + 1; + + quoted_string = XMALLOC (char, length + 1); + + p = quoted_string; + backslashes = 0; + if (quote_around) + *p++ = '"'; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + { + unsigned int j; + for (j = backslashes + 1; j > 0; j--) + *p++ = '\\'; + } + *p++ = c; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + { + unsigned int j; + for (j = backslashes; j > 0; j--) + *p++ = '\\'; + *p++ = '"'; + } + *p = '\0'; + + new_argv[i] = quoted_string; + } + else + new_argv[i] = (char *) string; + } + new_argv[argc] = NULL; + + return new_argv; +} +EOF + ;; + esac + cat <<"EOF" +void lt_dump_script (FILE* f) +{ +EOF + func_emit_wrapper yes | + $SED -n -e ' +s/^\(.\{79\}\)\(..*\)/\1\ +\2/ +h +s/\([\\"]\)/\\\1/g +s/$/\\n/ +s/\([^\n]*\).*/ fputs ("\1", f);/p +g +D' + cat <<"EOF" +} EOF } # end: func_emit_cwrapperexe_src +# func_win32_import_lib_p ARG +# True if ARG is an import lib, as indicated by $file_magic_cmd +func_win32_import_lib_p () +{ + $opt_debug + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in + *import*) : ;; + *) false ;; + esac +} + # func_mode_link arg... func_mode_link () { @@ -4072,6 +5133,7 @@ new_inherited_linker_flags= avoid_version=no + bindir= dlfiles= dlprefiles= dlself=no @@ -4164,6 +5226,11 @@ esac case $prev in + bindir) + bindir="$arg" + prev= + continue + ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. @@ -4195,9 +5262,9 @@ ;; *) if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" + func_append dlfiles " $arg" else - dlprefiles="$dlprefiles $arg" + func_append dlprefiles " $arg" fi prev= continue @@ -4221,7 +5288,7 @@ *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later + *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; @@ -4240,7 +5307,7 @@ moreargs= for fil in `cat "$save_arg"` do -# moreargs="$moreargs $fil" +# func_append moreargs " $fil" arg=$fil # A libtool-controlled object. @@ -4269,7 +5336,7 @@ if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" + func_append dlfiles " $pic_object" prev= continue else @@ -4281,7 +5348,7 @@ # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" + func_append dlprefiles " $pic_object" prev= fi @@ -4351,12 +5418,12 @@ if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; - *) rpath="$rpath $arg" ;; + *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; - *) xrpath="$xrpath $arg" ;; + *) func_append xrpath " $arg" ;; esac fi prev= @@ -4368,28 +5435,28 @@ continue ;; weak) - weak_libs="$weak_libs $arg" + func_append weak_libs " $arg" prev= continue ;; xcclinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $qarg" + func_append linker_flags " $qarg" + func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) - compiler_flags="$compiler_flags $qarg" + func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $wl$qarg" + func_append linker_flags " $qarg" + func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" @@ -4425,6 +5492,11 @@ continue ;; + -bindir) + prev=bindir + continue + ;; + -dlopen) prev=dlfiles continue @@ -4475,15 +5547,16 @@ ;; -L*) - func_stripname '-L' '' "$arg" - dir=$func_stripname_result - if test -z "$dir"; then + func_stripname "-L" '' "$arg" + if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; @@ -4495,24 +5568,30 @@ ;; esac case "$deplibs " in - *" -L$dir "*) ;; + *" -L$dir "* | *" $arg "*) + # Will only happen for absolute or sysroot arguments + ;; *) - deplibs="$deplibs -L$dir" - lib_search_path="$lib_search_path $dir" + # Preserve sysroot, but never include relative directories + case $dir in + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; + *) func_append deplibs " -L$dir" ;; + esac + func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; - *) dllsearchpath="$dllsearchpath:$dir";; + *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; - *) dllsearchpath="$dllsearchpath:$testbindir";; + *) func_append dllsearchpath ":$testbindir";; esac ;; esac @@ -4522,7 +5601,7 @@ -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; @@ -4536,7 +5615,7 @@ ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework - deplibs="$deplibs System.ltframework" + func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) @@ -4556,7 +5635,7 @@ ;; esac fi - deplibs="$deplibs $arg" + func_append deplibs " $arg" continue ;; @@ -4568,21 +5647,22 @@ # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. - -model|-arch|-isysroot) - compiler_flags="$compiler_flags $arg" + -model|-arch|-isysroot|--sysroot) + func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) - compiler_flags="$compiler_flags $arg" + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; + * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; @@ -4649,13 +5729,17 @@ # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; + =*) + func_stripname '=' '' "$dir" + dir=$lt_sysroot$func_stripname_result + ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; + *) func_append xrpath " $dir" ;; esac continue ;; @@ -4708,8 +5792,8 @@ for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" - arg="$arg $wl$func_quote_for_eval_result" - compiler_flags="$compiler_flags $func_quote_for_eval_result" + func_append arg " $func_quote_for_eval_result" + func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" @@ -4724,9 +5808,9 @@ for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" - arg="$arg $wl$func_quote_for_eval_result" - compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" - linker_flags="$linker_flags $func_quote_for_eval_result" + func_append arg " $wl$func_quote_for_eval_result" + func_append compiler_flags " $wl$func_quote_for_eval_result" + func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" @@ -4754,23 +5838,27 @@ arg="$func_quote_for_eval_result" ;; - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler - # -r[0-9][0-9]* specifies the processor on the SGI compiler - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler - # +DA*, +DD* enable 64-bit mode on the HP compiler - # -q* pass through compiler args for the IBM compiler - # -m*, -t[45]*, -txscale* pass through architecture-specific - # compiler args for GCC - # -F/path gives path to uninstalled frameworks, gcc on darwin - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC - # @file GCC response files + # Flags to be passed through unchanged, with rationale: + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler + # -r[0-9][0-9]* specify processor for the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler + # +DA*, +DD* enable 64-bit mode for the HP compiler + # -q* compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC + # -F/path path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC + # @file GCC response files + # -tp=* Portland pgcc target processor selection + # --sysroot=* for sysroot support + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ + -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" - compiler_flags="$compiler_flags $arg" + func_append compiler_flags " $arg" continue ;; @@ -4782,7 +5870,7 @@ *.$objext) # A standard object. - objs="$objs $arg" + func_append objs " $arg" ;; *.lo) @@ -4813,7 +5901,7 @@ if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" + func_append dlfiles " $pic_object" prev= continue else @@ -4825,7 +5913,7 @@ # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" + func_append dlprefiles " $pic_object" prev= fi @@ -4870,24 +5958,25 @@ *.$libext) # An archive. - deplibs="$deplibs $arg" - old_deplibs="$old_deplibs $arg" + func_append deplibs " $arg" + func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. + func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. - dlfiles="$dlfiles $arg" + func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. - dlprefiles="$dlprefiles $arg" + func_append dlprefiles " $func_resolve_sysroot_result" prev= else - deplibs="$deplibs $arg" + func_append deplibs " $func_resolve_sysroot_result" fi continue ;; @@ -4925,7 +6014,7 @@ if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var - eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` + eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi @@ -4934,6 +6023,8 @@ func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" + func_to_tool_file "$output_objdir/" + tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" @@ -4954,12 +6045,12 @@ # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do - if $opt_duplicate_deps ; then + if $opt_preserve_dup_deps ; then case "$libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi - libs="$libs $deplib" + func_append libs " $deplib" done if test "$linkmode" = lib; then @@ -4972,9 +6063,9 @@ if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac - pre_post_deps="$pre_post_deps $pre_post_dep" + func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= @@ -5044,17 +6135,19 @@ for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= + func_resolve_sysroot "$lib" case $lib in - *.la) func_source "$lib" ;; + *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do - deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` + func_basename "$deplib" + deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; - *) deplibs="$deplibs $deplib" ;; + *) func_append deplibs " $deplib" ;; esac done done @@ -5070,16 +6163,17 @@ lib= found=no case $deplib in - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else - compiler_flags="$compiler_flags $deplib" + func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi @@ -5164,7 +6258,7 @@ if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi @@ -5177,7 +6271,8 @@ test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then @@ -5191,7 +6286,8 @@ finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" @@ -5202,17 +6298,21 @@ -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" - dir=$func_stripname_result + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; + *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; - *.la) lib="$deplib" ;; + *.la) + func_resolve_sysroot "$deplib" + lib=$func_resolve_sysroot_result + ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" @@ -5230,7 +6330,7 @@ match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi @@ -5240,15 +6340,15 @@ ;; esac if test "$valid_a_lib" != yes; then - $ECHO + echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because the file extensions .$libext of this argument makes me believe" - $ECHO "*** that it is just a static archive that I should not use here." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because the file extensions .$libext of this argument makes me believe" + echo "*** that it is just a static archive that I should not use here." else - $ECHO + echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" @@ -5275,11 +6375,11 @@ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. - newdlprefiles="$newdlprefiles $deplib" + func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else - newdlfiles="$newdlfiles $deplib" + func_append newdlfiles " $deplib" fi fi continue @@ -5321,20 +6421,20 @@ # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then - tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; - *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi - dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then - test -n "$dlopen" && dlfiles="$dlfiles $dlopen" - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + test -n "$dlopen" && func_append dlfiles " $dlopen" + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then @@ -5345,17 +6445,17 @@ func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. - convenience="$convenience $ladir/$objdir/$old_library" - old_convenience="$old_convenience $ladir/$objdir/$old_library" + func_append convenience " $ladir/$objdir/$old_library" + func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" - if $opt_duplicate_deps ; then + if $opt_preserve_dup_deps ; then case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi - tmp_libs="$tmp_libs $deplib" + func_append tmp_libs " $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" @@ -5366,9 +6466,15 @@ # Get the name of the library we link against. linklib= - for l in $old_library $library_names; do - linklib="$l" - done + if test -n "$old_library" && + { test "$prefer_static_libs" = yes || + test "$prefer_static_libs,$installed" = "built,no"; }; then + linklib=$old_library + else + for l in $old_library $library_names; do + linklib="$l" + done + fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi @@ -5385,9 +6491,9 @@ # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. - dlprefiles="$dlprefiles $lib $dependency_libs" + func_append dlprefiles " $lib $dependency_libs" else - newdlfiles="$newdlfiles $lib" + func_append newdlfiles " $lib" fi continue fi # $pass = dlopen @@ -5409,14 +6515,14 @@ # Find the relevant object directory and library name. if test "X$installed" = Xyes; then - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else - dir="$libdir" - absdir="$libdir" + dir="$lt_sysroot$libdir" + absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else @@ -5424,12 +6530,12 @@ dir="$ladir" absdir="$abs_ladir" # Remove this search path later - notinst_path="$notinst_path $abs_ladir" + func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later - notinst_path="$notinst_path $abs_ladir" + func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" @@ -5440,20 +6546,46 @@ if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - newdlprefiles="$newdlprefiles $dir/$old_library" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" - # Otherwise, use the dlname, so that lt_dlopen finds it. - elif test -n "$dlname"; then - newdlprefiles="$newdlprefiles $dir/$dlname" - else - newdlprefiles="$newdlprefiles $dir/$linklib" - fi + case "$host" in + # special handling for platforms with PE-DLLs. + *cygwin* | *mingw* | *cegcc* ) + # Linker will automatically link against shared library if both + # static and shared are present. Therefore, ensure we extract + # symbols from the import library if a shared library is present + # (otherwise, the dlopen module name will be incorrect). We do + # this by putting the import library name into $newdlprefiles. + # We recover the dlopen module name by 'saving' the la file + # name in a special purpose variable, and (later) extracting the + # dlname from the la file. + if test -n "$dlname"; then + func_tr_sh "$dir/$linklib" + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" + func_append newdlprefiles " $dir/$linklib" + else + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + fi + ;; + * ) + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + func_append newdlprefiles " $dir/$dlname" + else + func_append newdlprefiles " $dir/$linklib" + fi + ;; + esac fi # $pass = dlpreopen if test -z "$libdir"; then @@ -5471,7 +6603,7 @@ if test "$linkmode" = prog && test "$pass" != link; then - newlib_search_path="$newlib_search_path $ladir" + func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no @@ -5484,7 +6616,8 @@ for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? @@ -5495,12 +6628,12 @@ # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi - if $opt_duplicate_deps ; then + if $opt_preserve_dup_deps ; then case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi - tmp_libs="$tmp_libs $deplib" + func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... @@ -5515,7 +6648,7 @@ # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; - *) temp_rpath="$temp_rpath$absdir:" ;; + *) func_append temp_rpath "$absdir:" ;; esac fi @@ -5527,7 +6660,7 @@ *) case "$compile_rpath " in *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" + *) func_append compile_rpath " $absdir" ;; esac ;; esac @@ -5536,7 +6669,7 @@ *) case "$finalize_rpath " in *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" + *) func_append finalize_rpath " $libdir" ;; esac ;; esac @@ -5561,12 +6694,12 @@ case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded - notinst_deplibs="$notinst_deplibs $lib" + func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then - notinst_deplibs="$notinst_deplibs $lib" + func_append notinst_deplibs " $lib" need_relink=yes fi ;; @@ -5583,7 +6716,7 @@ fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then - $ECHO + echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else @@ -5601,7 +6734,7 @@ *) case "$compile_rpath " in *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" + *) func_append compile_rpath " $absdir" ;; esac ;; esac @@ -5610,7 +6743,7 @@ *) case "$finalize_rpath " in *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" + *) func_append finalize_rpath " $libdir" ;; esac ;; esac @@ -5664,7 +6797,7 @@ linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" - if test "$linkmode" = prog || test "$mode" != relink; then + if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= @@ -5686,9 +6819,9 @@ if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then - $ECHO - $ECHO "*** And there doesn't seem to be a static archive available" - $ECHO "*** The link will probably fail, sorry" + echo + echo "*** And there doesn't seem to be a static archive available" + echo "*** The link will probably fail, sorry" else add="$dir/$old_library" fi @@ -5715,12 +6848,12 @@ test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then - add_dir="-L$dir" + add_dir="-L$absdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" + func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi @@ -5742,7 +6875,7 @@ if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then @@ -5756,13 +6889,13 @@ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi - if test "$linkmode" = prog || test "$mode" = relink; then + if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= @@ -5776,7 +6909,7 @@ elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then @@ -5793,7 +6926,7 @@ if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" + func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi @@ -5828,21 +6961,21 @@ # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. - $ECHO + echo $ECHO "*** Warning: This system can not link to static lib archive $lib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then - $ECHO "*** But as you try to build a module library, libtool will still create " - $ECHO "*** a static module, that should work as long as the dlopening application" - $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." + echo "*** But as you try to build a module library, libtool will still create " + echo "*** a static module, that should work as long as the dlopening application" + echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then - $ECHO - $ECHO "*** However, this would only work if libtool was able to extract symbol" - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" - $ECHO "*** not find such a program. So, this module is probably useless." - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module @@ -5870,27 +7003,33 @@ temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; - *) xrpath="$xrpath $temp_xrpath";; + *) func_append xrpath " $temp_xrpath";; esac;; - *) temp_deplibs="$temp_deplibs $libdir";; + *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi - newlib_search_path="$newlib_search_path $absdir" + func_append newlib_search_path " $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" - if $opt_duplicate_deps ; then + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result";; + *) func_resolve_sysroot "$deplib" ;; + esac + if $opt_preserve_dup_deps ; then case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + *" $func_resolve_sysroot_result "*) + func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi - tmp_libs="$tmp_libs $deplib" + func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then @@ -5900,8 +7039,10 @@ case $deplib in -L*) path="$deplib" ;; *.la) + func_resolve_sysroot "$deplib" + deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." - dir="$func_dirname_result" + dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; @@ -5928,8 +7069,8 @@ if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi - compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" - linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" + func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" + func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi @@ -5962,7 +7103,7 @@ compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else - compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" @@ -5979,7 +7120,7 @@ for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; - *) lib_search_path="$lib_search_path $dir" ;; + *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= @@ -6037,10 +7178,10 @@ -L*) case " $tmp_libs " in *" $deplib "*) ;; - *) tmp_libs="$tmp_libs $deplib" ;; + *) func_append tmp_libs " $deplib" ;; esac ;; - *) tmp_libs="$tmp_libs $deplib" ;; + *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" @@ -6056,7 +7197,7 @@ ;; esac if test -n "$i" ; then - tmp_libs="$tmp_libs $i" + func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs @@ -6097,7 +7238,7 @@ # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" - objs="$objs$old_deplibs" + func_append objs "$old_deplibs" ;; lib) @@ -6130,10 +7271,10 @@ if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else - $ECHO + echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" - libobjs="$libobjs $objs" + func_append libobjs " $objs" fi fi @@ -6192,13 +7333,14 @@ # which has an extra 1 added just for fun # case $version_type in + # correct linux to gnu/linux during the next big refactor darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; - freebsd-aout|freebsd-elf|sunos) + freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" @@ -6311,7 +7453,7 @@ versuffix="$major.$revision" ;; - linux) + linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" @@ -6334,7 +7476,7 @@ done # Make executables depend on our current version. - verstring="$verstring:${current}.0" + func_append verstring ":${current}.0" ;; qnx) @@ -6402,10 +7544,10 @@ fi func_generate_dlsyms "$libname" "$libname" "yes" - libobjs="$libobjs $symfileobj" + func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= - if test "$mode" != relink; then + if test "$opt_mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= @@ -6421,7 +7563,7 @@ continue fi fi - removelist="$removelist $p" + func_append removelist " $p" ;; *) ;; esac @@ -6432,27 +7574,28 @@ # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then - oldlibs="$oldlibs $output_objdir/$libname.$libext" + func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. - oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do - # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` - # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` - # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` + # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do - temp_xrpath="$temp_xrpath -R$libdir" + func_replace_sysroot "$libdir" + func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; + *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then @@ -6466,7 +7609,7 @@ for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; - *) dlfiles="$dlfiles $lib" ;; + *) func_append dlfiles " $lib" ;; esac done @@ -6476,19 +7619,19 @@ for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; - *) dlprefiles="$dlprefiles $lib" ;; + *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework - deplibs="$deplibs System.ltframework" + func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. @@ -6505,7 +7648,7 @@ *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then - deplibs="$deplibs -lc" + func_append deplibs " -lc" fi ;; esac @@ -6554,7 +7697,7 @@ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" i="" ;; esac @@ -6565,21 +7708,21 @@ set dummy $deplib_matches; shift deplib_match=$1 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" else droppeddeps=yes - $ECHO + echo $ECHO "*** Warning: dynamic linker does not accept needed library $i." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which I believe you do not have" - $ECHO "*** because a test_compile did reveal that the linker did not use it for" - $ECHO "*** its dynamic dependency list that programs get resolved with at runtime." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which I believe you do not have" + echo "*** because a test_compile did reveal that the linker did not use it for" + echo "*** its dynamic dependency list that programs get resolved with at runtime." fi fi ;; *) - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" ;; esac done @@ -6597,7 +7740,7 @@ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" i="" ;; esac @@ -6608,29 +7751,29 @@ set dummy $deplib_matches; shift deplib_match=$1 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" else droppeddeps=yes - $ECHO + echo $ECHO "*** Warning: dynamic linker does not accept needed library $i." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because a test_compile did reveal that the linker did not use this one" - $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because a test_compile did reveal that the linker did not use this one" + echo "*** as a dynamic dependency that programs can get resolved with at runtime." fi fi else droppeddeps=yes - $ECHO + echo $ECHO "*** Warning! Library $i is needed by this library but I was not able to" - $ECHO "*** make it link in! You will probably need to install it or some" - $ECHO "*** library that it depends on before this library will be fully" - $ECHO "*** functional. Installing it before continuing would be even better." + echo "*** make it link in! You will probably need to install it or some" + echo "*** library that it depends on before this library will be fully" + echo "*** functional. Installing it before continuing would be even better." fi ;; *) - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" ;; esac done @@ -6647,15 +7790,27 @@ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` + if test -n "$file_magic_glob"; then + libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob` + else + libnameglob=$libname + fi + test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + if test "$want_nocaseglob" = yes; then + shopt -s nocaseglob + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` + $nocaseglob + else + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` + fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | @@ -6672,13 +7827,13 @@ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; - *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi @@ -6687,12 +7842,12 @@ fi if test -n "$a_deplib" ; then droppeddeps=yes - $ECHO + echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because I did check the linker path looking for a file starting" + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else @@ -6703,7 +7858,7 @@ ;; *) # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. @@ -6719,7 +7874,7 @@ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" a_deplib="" ;; esac @@ -6730,9 +7885,9 @@ potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test - if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi @@ -6741,12 +7896,12 @@ fi if test -n "$a_deplib" ; then droppeddeps=yes - $ECHO + echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because I did check the linker path looking for a file starting" + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else @@ -6757,32 +7912,32 @@ ;; *) # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" - tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ - -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' - tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi - if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | - $GREP . >/dev/null; then - $ECHO + case $tmp_deplibs in + *[!\ \ ]*) + echo if test "X$deplibs_check_method" = "Xnone"; then - $ECHO "*** Warning: inter-library dependencies are not supported in this platform." + echo "*** Warning: inter-library dependencies are not supported in this platform." else - $ECHO "*** Warning: inter-library dependencies are not known to be supported." + echo "*** Warning: inter-library dependencies are not known to be supported." fi - $ECHO "*** All declared inter-library dependencies are being dropped." + echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes - fi + ;; + esac ;; esac versuffix=$versuffix_save @@ -6794,23 +7949,23 @@ case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then - $ECHO - $ECHO "*** Warning: libtool could not satisfy all declared inter-library" + echo + echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" - $ECHO "*** a static module, that should work as long as the dlopening" - $ECHO "*** application is linked with the -dlopen flag." + echo "*** a static module, that should work as long as the dlopening" + echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then - $ECHO - $ECHO "*** However, this would only work if libtool was able to extract symbol" - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" - $ECHO "*** not find such a program. So, this module is probably useless." - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" @@ -6820,16 +7975,16 @@ build_libtool_libs=no fi else - $ECHO "*** The inter-library dependencies that have been dropped here will be" - $ECHO "*** automatically added whenever a program is linked with this library" - $ECHO "*** or is declared to -dlopen it." + echo "*** The inter-library dependencies that have been dropped here will be" + echo "*** automatically added whenever a program is linked with this library" + echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then - $ECHO - $ECHO "*** Since this library must not contain undefined symbols," - $ECHO "*** because either the platform does not support them or" - $ECHO "*** it was explicitly requested with -no-undefined," - $ECHO "*** libtool will only create a static version of it." + echo + echo "*** Since this library must not contain undefined symbols," + echo "*** because either the platform does not support them or" + echo "*** it was explicitly requested with -no-undefined," + echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module @@ -6846,9 +8001,9 @@ # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac @@ -6861,7 +8016,7 @@ *) case " $deplibs " in *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; + func_append new_libs " -L$path/$objdir" ;; esac ;; esac @@ -6871,10 +8026,10 @@ -L*) case " $new_libs " in *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; + *) func_append new_libs " $deplib" ;; esac ;; - *) new_libs="$new_libs $deplib" ;; + *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" @@ -6886,15 +8041,22 @@ # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then + # Remove ${wl} instances when linking with ld. + # FIXME: should test the right _cmds variable. + case $archive_cmds in + *\$LD\ *) wl= ;; + esac if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" - test "$mode" != relink && rpath="$compile_rpath$rpath" + test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then + func_replace_sysroot "$libdir" + libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else @@ -6903,18 +8065,18 @@ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" - dep_rpath="$dep_rpath $flag" + func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; + *) func_append perm_rpath " $libdir" ;; esac fi done @@ -6922,17 +8084,13 @@ if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" - if test -n "$hardcode_libdir_flag_spec_ld"; then - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" - else - eval dep_rpath=\"$hardcode_libdir_flag_spec\" - fi + eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do - rpath="$rpath$dir:" + func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi @@ -6940,7 +8098,7 @@ fi shlibpath="$finalize_shlibpath" - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi @@ -6966,18 +8124,18 @@ linknames= for link do - linknames="$linknames $link" + func_append linknames " $link" done # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" - delfiles="$delfiles $export_symbols" + func_append delfiles " $export_symbols" fi orig_export_symbols= @@ -7008,13 +8166,45 @@ $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do + for cmd1 in $cmds; do IFS="$save_ifs" - eval cmd=\"$cmd\" - func_len " $cmd" - len=$func_len_result - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + # Take the normal branch if the nm_file_list_spec branch + # doesn't work or if tool conversion is not needed. + case $nm_file_list_spec~$to_tool_file_cmd in + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) + try_normal_branch=yes + eval cmd=\"$cmd1\" + func_len " $cmd" + len=$func_len_result + ;; + *) + try_normal_branch=no + ;; + esac + if test "$try_normal_branch" = yes \ + && { test "$len" -lt "$max_cmd_len" \ + || test "$max_cmd_len" -le -1; } + then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + elif test -n "$nm_file_list_spec"; then + func_basename "$output" + output_la=$func_basename_result + save_libobjs=$libobjs + save_output=$output + output=${output_objdir}/${output_la}.nm + func_to_tool_file "$output" + libobjs=$nm_file_list_spec$func_to_tool_file_result + func_append delfiles " $output" + func_verbose "creating $NM input file list: $output" + for obj in $save_libobjs; do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > "$output" + eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' + output=$save_output + libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. @@ -7036,7 +8226,7 @@ if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then @@ -7048,7 +8238,7 @@ # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi @@ -7058,7 +8248,7 @@ case " $convenience " in *" $test_deplib "*) ;; *) - tmp_deplibs="$tmp_deplibs $test_deplib" + func_append tmp_deplibs " $test_deplib" ;; esac done @@ -7078,21 +8268,21 @@ test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $convenience - libobjs="$libobjs $func_extract_archives_result" + func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" - linker_flags="$linker_flags $flag" + func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking - if test "$mode" = relink; then + if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi @@ -7137,7 +8327,8 @@ save_libobjs=$libobjs fi save_output=$output - output_la=`$ECHO "X$output" | $Xsed -e "$basename"` + func_basename "$output" + output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. @@ -7150,13 +8341,16 @@ if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" - $ECHO 'INPUT (' > $output + echo 'INPUT (' > $output for obj in $save_libobjs do - $ECHO "$obj" >> $output + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output done - $ECHO ')' >> $output - delfiles="$delfiles $output" + echo ')' >> $output + func_append delfiles " $output" + func_to_tool_file "$output" + output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" @@ -7170,10 +8364,12 @@ fi for obj do - $ECHO "$obj" >> $output + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output done - delfiles="$delfiles $output" - output=$firstobj\"$file_list_spec$output\" + func_append delfiles " $output" + func_to_tool_file "$output" + output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." @@ -7197,17 +8393,19 @@ # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\" + reload_objs=$objlist + eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext - objlist=$obj + objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result @@ -7217,11 +8415,12 @@ # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi - delfiles="$delfiles $output" + func_append delfiles " $output" else output= @@ -7255,7 +8454,7 @@ lt_exit=$? # Restore the uninstalled library and exit - if test "$mode" = relink; then + if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) @@ -7276,7 +8475,7 @@ if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then @@ -7288,7 +8487,7 @@ # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi @@ -7329,10 +8528,10 @@ # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $dlprefiles - libobjs="$libobjs $func_extract_archives_result" + func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi @@ -7348,7 +8547,7 @@ lt_exit=$? # Restore the uninstalled library and exit - if test "$mode" = relink; then + if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) @@ -7360,7 +8559,7 @@ IFS="$save_ifs" # Restore the uninstalled library and exit - if test "$mode" = relink; then + if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then @@ -7441,18 +8640,21 @@ if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" - reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` + reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi + # If we're not building shared, we need to use non_pic_objs + test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" + # Create the old-style object. - reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test + reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' @@ -7512,8 +8714,8 @@ case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac @@ -7524,14 +8726,14 @@ if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) - compile_command="$compile_command ${wl}-bind_at_load" - finalize_command="$finalize_command ${wl}-bind_at_load" + func_append compile_command " ${wl}-bind_at_load" + func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac @@ -7545,7 +8747,7 @@ *) case " $compile_deplibs " in *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; + func_append new_libs " -L$path/$objdir" ;; esac ;; esac @@ -7555,17 +8757,17 @@ -L*) case " $new_libs " in *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; + *) func_append new_libs " $deplib" ;; esac ;; - *) new_libs="$new_libs $deplib" ;; + *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" - compile_command="$compile_command $compile_deplibs" - finalize_command="$finalize_command $finalize_deplibs" + func_append compile_command " $compile_deplibs" + func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. @@ -7573,7 +8775,7 @@ # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; + *) func_append finalize_rpath " $libdir" ;; esac done fi @@ -7592,18 +8794,18 @@ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" + func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; + *) func_append perm_rpath " $libdir" ;; esac fi case $host in @@ -7612,12 +8814,12 @@ case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; - *) dllsearchpath="$dllsearchpath:$libdir";; + *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; - *) dllsearchpath="$dllsearchpath:$testbindir";; + *) func_append dllsearchpath ":$testbindir";; esac ;; esac @@ -7643,18 +8845,18 @@ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" + func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + *) func_append finalize_perm_rpath " $libdir" ;; esac fi done @@ -7668,8 +8870,8 @@ if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. - compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" @@ -7681,15 +8883,15 @@ wrappers_required=yes case $host in + *cegcc* | *mingw32ce*) + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. + wrappers_required=no + ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; - *cegcc) - # Disable wrappers for cegcc, we are cross compiling anyway. - wrappers_required=no - ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no @@ -7698,13 +8900,19 @@ esac if test "$wrappers_required" = no; then # Replace the output file specification. - compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' @@ -7727,7 +8935,7 @@ # We should set the runpath_var. rpath= for dir in $perm_rpath; do - rpath="$rpath$dir:" + func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi @@ -7735,7 +8943,7 @@ # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do - rpath="$rpath$dir:" + func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi @@ -7745,11 +8953,18 @@ # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + exit $EXIT_SUCCESS fi @@ -7764,7 +8979,7 @@ if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then - relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= @@ -7776,13 +8991,19 @@ fi # Replace the output file specification. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' + if test -n "$postlink_cmds"; then + func_to_tool_file "$output_objdir/$outputname" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + # Now create the wrapper script. func_verbose "creating $output" @@ -7800,18 +9021,7 @@ fi done relink_command="(cd `pwd`; $relink_command)" - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` - fi - - # Quote $ECHO for shipping. - if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then - case $progpath in - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; - esac - qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` - else - qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. @@ -7891,7 +9101,7 @@ else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then - oldobjs="$oldobjs $symfileobj" + func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" @@ -7899,10 +9109,10 @@ if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $addlibs - oldobjs="$oldobjs $func_extract_archives_result" + func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. @@ -7913,10 +9123,10 @@ # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $dlprefiles - oldobjs="$oldobjs $func_extract_archives_result" + func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have @@ -7932,9 +9142,9 @@ done | sort | sort -uc >/dev/null 2>&1); then : else - $ECHO "copying selected object files to avoid basename conflicts..." + echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= @@ -7958,18 +9168,30 @@ esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - oldobjs="$oldobjs $gentop/$newobj" + func_append oldobjs " $gentop/$newobj" ;; - *) oldobjs="$oldobjs $obj" ;; + *) func_append oldobjs " $obj" ;; esac done fi + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 + tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds + elif test -n "$archiver_list_spec"; then + func_verbose "using command file archive linking..." + for obj in $oldobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > $output_objdir/$libname.libcmd + func_to_tool_file "$output_objdir/$libname.libcmd" + oldobjs=" $archiver_list_spec$func_to_tool_file_result" + cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." @@ -8043,7 +9265,7 @@ done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi @@ -8063,12 +9285,23 @@ *.la) func_basename "$deplib" name="$func_basename_result" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + func_resolve_sysroot "$deplib" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" - newdependency_libs="$newdependency_libs $libdir/$name" + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" + ;; + -L*) + func_stripname -L '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -L$func_replace_sysroot_result" ;; - *) newdependency_libs="$newdependency_libs $deplib" ;; + -R*) + func_stripname -R '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -R$func_replace_sysroot_result" + ;; + *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" @@ -8082,9 +9315,9 @@ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" - newdlfiles="$newdlfiles $libdir/$name" + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; - *) newdlfiles="$newdlfiles $lib" ;; + *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" @@ -8101,7 +9334,7 @@ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" - newdlprefiles="$newdlprefiles $libdir/$name" + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done @@ -8113,7 +9346,7 @@ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac - newdlfiles="$newdlfiles $abs" + func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= @@ -8122,15 +9355,33 @@ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac - newdlprefiles="$newdlprefiles $abs" + func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin + # In fact, it would be nice if we could use this code for all target + # systems that can't hard-code library paths into their executables + # and that have no shared library path variable independent of PATH, + # but it turns out we can't easily determine that from inspecting + # libtool variables, so we have to hard-code the OSs to which it + # applies here; at the moment, that means platforms that use the PE + # object format with DLL files. See the long comment at the top of + # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) + # If a -bindir argument was supplied, place the dll there. + if test "x$bindir" != x ; + then + func_relative_path "$install_libdir" "$bindir" + tdlname=$func_relative_path_result$dlname + else + # Otherwise fall back on heuristic. + tdlname=../bin/$dlname + fi + ;; esac $ECHO > $output "\ # $outputname - a libtool library file @@ -8189,7 +9440,7 @@ exit $EXIT_SUCCESS } -{ test "$mode" = link || test "$mode" = relink; } && +{ test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} @@ -8209,9 +9460,9 @@ for arg do case $arg in - -f) RM="$RM $arg"; rmforce=yes ;; - -*) RM="$RM $arg" ;; - *) files="$files $arg" ;; + -f) func_append RM " $arg"; rmforce=yes ;; + -*) func_append RM " $arg" ;; + *) func_append files " $arg" ;; esac done @@ -8220,24 +9471,23 @@ rmdirs= - origobjdir="$objdir" for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then - objdir="$origobjdir" + odir="$objdir" else - objdir="$dir/$origobjdir" + odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" - test "$mode" = uninstall && objdir="$dir" + test "$opt_mode" = uninstall && odir="$dir" - # Remember objdir for removal later, being careful to avoid duplicates - if test "$mode" = clean; then + # Remember odir for removal later, being careful to avoid duplicates + if test "$opt_mode" = clean; then case " $rmdirs " in - *" $objdir "*) ;; - *) rmdirs="$rmdirs $objdir" ;; + *" $odir "*) ;; + *) func_append rmdirs " $odir" ;; esac fi @@ -8263,18 +9513,17 @@ # Delete the libtool libraries and symlinks. for n in $library_names; do - rmfiles="$rmfiles $objdir/$n" + func_append rmfiles " $odir/$n" done - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" + test -n "$old_library" && func_append rmfiles " $odir/$old_library" - case "$mode" in + case "$opt_mode" in clean) - case " $library_names " in - # " " in the beginning catches empty $dlname + case " $library_names " in *" $dlname "*) ;; - *) rmfiles="$rmfiles $objdir/$dlname" ;; + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then @@ -8302,19 +9551,19 @@ # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then - rmfiles="$rmfiles $dir/$pic_object" + func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then - rmfiles="$rmfiles $dir/$non_pic_object" + func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) - if test "$mode" = clean ; then + if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) @@ -8324,7 +9573,7 @@ noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe - rmfiles="$rmfiles $file" + func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. @@ -8333,7 +9582,7 @@ func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result - rmfiles="$rmfiles $func_ltwrapper_scriptname_result" + func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename @@ -8341,12 +9590,12 @@ # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" + func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then - rmfiles="$rmfiles $objdir/lt-$name" + func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then - rmfiles="$rmfiles $objdir/lt-${noexename}.c" + func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi @@ -8354,7 +9603,6 @@ esac func_show_eval "$RM $rmfiles" 'exit_status=1' done - objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do @@ -8366,16 +9614,16 @@ exit $exit_status } -{ test "$mode" = uninstall || test "$mode" = clean; } && +{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} -test -z "$mode" && { +test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ - func_fatal_help "invalid operation mode \`$mode'" + func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" diff -Nru clamav-0.97.8+dfsg/configure clamav-0.98.1+dfsg/configure --- clamav-0.97.8+dfsg/configure 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/configure 2014-01-13 17:02:34.000000000 +0000 @@ -1,20 +1,22 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.63 for ClamAV 0.97.8. +# Generated by GNU Autoconf 2.69 for ClamAV 0.98.1. # # Report bugs to . # -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which @@ -22,23 +24,15 @@ alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - as_nl=' ' export as_nl @@ -46,7 +40,13 @@ as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else @@ -57,7 +57,7 @@ as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; - case $arg in + case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; @@ -80,13 +80,6 @@ } fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - # IFS # We need space, tab and new line, in precisely that order. Quoting is @@ -96,15 +89,16 @@ IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +as_myself= +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -116,12 +110,16 @@ fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' @@ -133,330 +131,353 @@ LANGUAGE=C export LANGUAGE -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - # CDPATH. -$as_unset CDPATH - +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST else - as_have_required=no + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes else - exitcode=1 - echo positional parameters were not saved. + as_have_required=no fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - case $as_dir in + as_found=: + case $as_dir in #( /*) for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi done;; esac + as_found=false done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } IFS=$as_save_IFS - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: http://bugs.clamav.net/ about your system, including +$0: any error possibly output before this message. Then +$0: install a modern shell, or manually run the script +$0: under such a shell if you do have one." + fi + exit 1 +fi fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi +} # as_fn_mkdir_p -if as_func_ret_success; then - : +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append -if ( set x; as_func_ret_success y && test x = "$1" ); then - : +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. + as_expr=false fi -if as_func_ret_success; then - : +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. + as_basename=false fi -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname else - exitcode=1 - echo positional parameters were not saved. + as_dirname=false fi -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell bug-autoconf@gnu.org about your system, - echo including any error possibly output before this message. - echo This can help us improve future autoconf versions. - echo Configuration will now proceed without shell functions. -} +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= @@ -473,9 +494,12 @@ s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). @@ -484,29 +508,18 @@ exit } - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then @@ -521,49 +534,29 @@ # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. + # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' + as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' + as_mkdir_p=false fi -as_executable_p=$as_test_x + +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -571,163 +564,16 @@ # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - lt_ltdl_dir='libltdl' - -# Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} -case X$lt_ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` - ;; -esac - -ECHO=${lt_ECHO-echo} -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then - # Yippee, $ECHO works! - : -else - # Restart under the correct shell. - exec $SHELL "$0" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat <<_LT_EOF -$* -_LT_EOF - exit 0 -fi - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -if test -z "$lt_ECHO"; then - if test "X${echo_test_string+set}" != Xset; then - # find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if { echo_test_string=`eval $cmd`; } 2>/dev/null && - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null - then - break - fi - done - fi - - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : - else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - ECHO="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$ECHO" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - ECHO='print -r' - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - ECHO='printf %s\n' - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - ECHO="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - ECHO="$CONFIG_SHELL $0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - ECHO=echo - fi - fi - fi - fi - fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -lt_ECHO=$ECHO -if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" -fi - - - -exec 7<&0 &1 +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` @@ -742,14 +588,14 @@ subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='ClamAV' PACKAGE_TARNAME='clamav' -PACKAGE_VERSION='0.97.8' -PACKAGE_STRING='ClamAV 0.97.8' +PACKAGE_VERSION='0.98.1' +PACKAGE_STRING='ClamAV 0.98.1' PACKAGE_BUGREPORT='http://bugs.clamav.net/' +PACKAGE_URL='http://www.clamav.net/' ac_unique_file="clamscan/clamscan.c" # Factoring default headers for most tests. @@ -798,6 +644,8 @@ LTLIBOBJS LIBOBJS subdirs +WERR_CFLAGS_MILTER +WERR_CFLAGS HAVE_CURSES_FALSE HAVE_CURSES_TRUE CURSES_LIBS @@ -818,10 +666,12 @@ LIBCLAMAV_LIBS CFGDIR DBDIR -LINK_TOMMATH_FALSE -LINK_TOMMATH_TRUE +XML_LIBS +XML_CPPFLAGS ENABLE_UNRAR_FALSE ENABLE_UNRAR_TRUE +HAVE_LIBBZ2_FALSE +HAVE_LIBBZ2_TRUE LIBBZ2_PREFIX LTLIBBZ2 LIBBZ2 @@ -867,9 +717,11 @@ LIPO NMEDIT DSYMUTIL -lt_ECHO +MANIFEST_TOOL RANLIB +ac_ct_AR AR +DLLTOOL OBJDUMP NM ac_ct_DUMPBIN @@ -882,6 +734,7 @@ am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE +am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE @@ -900,6 +753,8 @@ LIBCLAMAV_VERSION AM_BACKSLASH AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V am__untar am__tar AMTAR @@ -965,6 +820,7 @@ program_transform_name prefix exec_prefix +PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION @@ -982,6 +838,7 @@ enable_fast_install enable_dependency_tracking with_gnu_ld +with_sysroot enable_libtool_lock with_included_ltdl with_ltdl_include @@ -1001,12 +858,13 @@ enable_bzip2 with_libbz2_prefix enable_unrar +enable_xml +with_xml enable_getaddrinfo enable_ipv6 enable_dns -enable_clamuko +enable_fanotify enable_milter -with_system_tommath with_iconv enable_pthreads enable_cr @@ -1102,8 +960,9 @@ fi case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. @@ -1148,8 +1007,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1175,8 +1033,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1380,8 +1237,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1397,8 +1253,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1428,17 +1283,17 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1447,7 +1302,7 @@ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac @@ -1455,15 +1310,13 @@ if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { $as_echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; - fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 - { (exit 1); exit 1; }; } ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1486,8 +1339,7 @@ [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' @@ -1501,8 +1353,6 @@ if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi @@ -1517,11 +1367,9 @@ ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { $as_echo "$as_me: error: working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. @@ -1560,13 +1408,11 @@ fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then @@ -1592,7 +1438,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures ClamAV 0.97.8 to adapt to many kinds of systems. +\`configure' configures ClamAV 0.98.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1606,7 +1452,7 @@ --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages + -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files @@ -1663,7 +1509,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of ClamAV 0.97.8:";; + short | recursive ) echo "Configuration of ClamAV 0.98.1:";; esac cat <<\_ACEOF @@ -1691,15 +1537,16 @@ (and sometimes confusing) to the casual installer --disable-zlib-vcheck do not check for buggy zlib version --disable-bzip2 disable bzip2 support - --disable-unrar don't build libclamunrar and libclamunrar_iface + --disable-unrar do not build libclamunrar and libclamunrar_iface + --disable-xml disable DMG and XAR support --disable-getaddrinfo disable support for getaddrinfo --disable-ipv6 disable IPv6 support --disable-dns disable support for database verification through DNS - --disable-clamuko disable clamuko support (Linux, DragonFly and FreeBSD only) + --disable-fanotify disable fanotify support (Linux only) --enable-milter build clamav-milter --disable-pthreads disable POSIX threads support - --disable-cr don't link with C reentrant library (BSD) + --disable-cr do not link with C reentrant library (BSD) --enable-id-check use id utility instead of /etc/passwd parsing --enable-yp-check use ypmatch utility instead of /etc/passwd parsing --disable-clamav disable test for clamav user/group @@ -1718,9 +1565,11 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-pic try to use only PIC/non-PIC objects [default=use + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). --with-included-ltdl use the GNU ltdl sources included here --with-ltdl-include=DIR use the ltdl headers installed in DIR --with-ltdl-lib=DIR use the libltdl.la installed in DIR @@ -1732,11 +1581,12 @@ /usr/local or /usr if not found in /usr/local) --with-libbz2-prefix[=DIR] search for libbz2 in DIR/include and DIR/lib --without-libbz2-prefix don't search for libbz2 in includedir and libdir - --with-system-tommath link against system libtommath (default = no, use bundled) + --with-xml=DIR path to directory containing libxml2 library (default= + /usr/local or /usr if not found in /usr/local) --with-iconv supports iconv() (default=auto) --with-user=uid name of the clamav user (default=clamav) --with-group=gid name of the clamav group (default=clamav) - --with-version=STR use custom version string (dev only) + --with-version=STR use custom version string (dev only) --with-dbdir=path path to virus database directory --with-libncurses-prefix[=DIR] search for libncurses in DIR/include and DIR/lib --without-libncurses-prefix don't search for libncurses in includedir and libdir @@ -1749,92 +1599,548 @@ LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +ClamAV home page: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +ClamAV configure 0.98.1 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func -Report bugs to . +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +# --------------------------------------------- +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +# accordingly. +ac_fn_c_check_decl () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + as_decl_name=`echo $2|sed 's/ *(.*//'` + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $as_decl_name +#ifdef __cplusplus + (void) $as_decl_use; +#else + (void) $as_decl_name; +#endif +#endif + + ; + return 0; +} _ACEOF -ac_status=$? +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || - { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || - continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix +} # ac_fn_c_check_decl -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -ClamAV configure 0.97.8 -generated by GNU Autoconf 2.63 +} # ac_fn_c_check_type -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> _ACEOF - exit +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## -------------------------------------- ## +## Report this to http://bugs.clamav.net/ ## +## -------------------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by ClamAV $as_me 0.97.8, which was -generated by GNU Autoconf 2.63. Invocation command line was +It was created by ClamAV $as_me 0.98.1, which was +generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -1870,8 +2176,8 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" -done + $as_echo "PATH: $as_dir" + done IFS=$as_save_IFS } >&5 @@ -1908,9 +2214,9 @@ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" + as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else @@ -1926,13 +2232,13 @@ -* ) ac_must_keep_next=true ;; esac fi - ac_configure_args="$ac_configure_args '$ac_arg'" + as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there @@ -1944,11 +2250,9 @@ { echo - cat <<\_ASBOX -## ---------------- ## + $as_echo "## ---------------- ## ## Cache variables. ## -## ---------------- ## -_ASBOX +## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( @@ -1957,13 +2261,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) $as_unset $ac_var ;; + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -1982,11 +2286,9 @@ ) echo - cat <<\_ASBOX -## ----------------- ## + $as_echo "## ----------------- ## ## Output variables. ## -## ----------------- ## -_ASBOX +## ----------------- ##" echo for ac_var in $ac_subst_vars do @@ -1999,11 +2301,9 @@ echo if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## + $as_echo "## ------------------- ## ## File substitutions. ## -## ------------------- ## -_ASBOX +## ------------------- ##" echo for ac_var in $ac_subst_files do @@ -2017,11 +2317,9 @@ fi if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## + $as_echo "## ----------- ## ## confdefs.h. ## -## ----------- ## -_ASBOX +## ----------- ##" echo cat confdefs.h echo @@ -2035,46 +2333,53 @@ exit $exit_status ' 0 for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h +$as_echo "/* confdefs.h */" > confdefs.h + # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - ac_site_file1=$CONFIG_SITE + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site @@ -2085,19 +2390,23 @@ for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue - if test -r "$ac_site_file"; then - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; @@ -2105,7 +2414,7 @@ esac fi else - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi @@ -2120,11 +2429,11 @@ eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; @@ -2134,17 +2443,17 @@ ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac @@ -2156,43 +2465,20 @@ esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then - { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi - - - - - - - - - - - - - - - - - - - - - - - - +## -------------------- ## +## Main body of script. ## +## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -2203,7 +2489,6 @@ - ac_aux_dir= for ac_dir in config "$srcdir"/config; do if test -f "$ac_dir/install-sh"; then @@ -2221,9 +2506,7 @@ fi done if test -z "$ac_aux_dir"; then - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 -$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 fi # These three variables are undocumented and unsupported, @@ -2242,35 +2525,27 @@ # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 -{ $as_echo "$as_me:$LINENO: checking build system type" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } -if test "${ac_cv_build+set}" = set; then +if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -$as_echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' @@ -2286,28 +2561,24 @@ case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:$LINENO: checking host system type" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } -if test "${ac_cv_host+set}" = set; then +if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -$as_echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' @@ -2323,28 +2594,24 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:$LINENO: checking target system type" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } -if test "${ac_cv_target+set}" = set; then +if ${ac_cv_target+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 -$as_echo "$as_me: error: invalid value of canonical target" >&2;} - { (exit 1); exit 1; }; };; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' @@ -2367,6 +2634,7 @@ NONENONEs,x,x, && program_prefix=${target_alias}- + target_cpu_arch="unknown" case $target_cpu in i386*|i486*|i586*|i686*|i786*) target_cpu_arch=i386 ;; @@ -2423,7 +2691,7 @@ # # if $ac_need_target_h_file_new ; then -{ $as_echo "$as_me:$LINENO: result: creating $ac_need_target_h_file - canonical system defines" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $ac_need_target_h_file - canonical system defines" >&5 $as_echo "creating $ac_need_target_h_file - canonical system defines" >&6; } echo /'*' automatically generated by $PACKAGE configure '*'/ >$ac_need_target_h_file echo /'*' on `date` '*'/ >>$ac_need_target_h_file @@ -2497,7 +2765,7 @@ # # if $ac_need_target_h_file_new ; then -{ $as_echo "$as_me:$LINENO: result: creating $ac_need_target_h_file - canonical system defines" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $ac_need_target_h_file - canonical system defines" >&5 $as_echo "creating $ac_need_target_h_file - canonical system defines" >&6; } echo /'*' automatically generated by $PACKAGE configure '*'/ >$ac_need_target_h_file echo /'*' on `date` '*'/ >>$ac_need_target_h_file @@ -2570,10 +2838,10 @@ # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then +if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2581,11 +2849,11 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. @@ -2593,7 +2861,7 @@ # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. @@ -2622,7 +2890,7 @@ ;; esac -done + done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir @@ -2638,7 +2906,7 @@ INSTALL=$ac_install_sh fi fi -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. @@ -2649,7 +2917,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 @@ -2660,15 +2928,11 @@ ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) - { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 -$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} - { (exit 1); exit 1; }; };; + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 -$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} - { (exit 1); exit 1; }; };; + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's @@ -2690,11 +2954,8 @@ # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file @@ -2703,13 +2964,10 @@ # Ok. : else - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -$as_echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: result: yes" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" @@ -2737,7 +2995,7 @@ am_missing_run="$MISSING --run " else am_missing_run= - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi @@ -2758,9 +3016,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then +if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then @@ -2771,24 +3029,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -2798,9 +3056,9 @@ ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then @@ -2811,24 +3069,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -2837,7 +3095,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -2850,10 +3108,10 @@ fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then + if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2861,9 +3119,9 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do + for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ @@ -2873,11 +3131,12 @@ esac done done -done + done IFS=$as_save_IFS fi + test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else @@ -2885,11 +3144,10 @@ # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" @@ -2902,9 +3160,9 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then +if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then @@ -2915,24 +3173,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:$LINENO: result: $AWK" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -2940,11 +3198,11 @@ test -n "$AWK" && break done -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF @@ -2952,7 +3210,7 @@ all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; @@ -2962,11 +3220,11 @@ rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -2986,9 +3244,7 @@ am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi @@ -3004,7 +3260,7 @@ # Define the identity of the package. PACKAGE='clamav' - VERSION='0.97.8' + VERSION='0.98.1' # Some tools Automake needs. @@ -3025,12 +3281,12 @@ # We need awk for the "check" target. The system "awk" is bad on # some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' -{ $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 $as_echo_n "checking how to create a ustar tar archive... " >&6; } # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar plaintar pax cpio none' @@ -3103,13 +3359,13 @@ done rm -rf conftest.dir -if test "${am_cv_prog_tar_ustar+set}" = set; then +if ${am_cv_prog_tar_ustar+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_prog_tar_ustar=$_am_tool fi -{ $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 $as_echo "$am_cv_prog_tar_ustar" >&6; } @@ -3117,7 +3373,7 @@ # Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then +if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi @@ -3126,19 +3382,44 @@ no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi AM_BACKSLASH='\' -cat >>confdefs.h <<\_ACEOF -#define PACKAGE PACKAGE_NAME -_ACEOF +$as_echo "#define PACKAGE PACKAGE_NAME" >>confdefs.h -VERSION="0.97.8" +VERSION="0.98.1" LC_CURRENT=7 -LC_REVISION=17 +LC_REVISION=20 LC_AGE=1 LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE" @@ -3147,153 +3428,61 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then +if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:$LINENO: result: $AWK" >&5 -$as_echo "$AWK" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AWK" && break -done - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi done + done IFS=$as_save_IFS -rm -rf conftest.one conftest.two conftest.dir - fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi fi -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + test -n "$AWK" && break +done -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else - { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF @@ -3301,7 +3490,7 @@ all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; @@ -3311,11 +3500,11 @@ rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -3328,17 +3517,16 @@ - case `pwd` in *\ * | *\ *) - { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac -macro_version='2.2.6b' -macro_revision='1.3017' +macro_version='2.4.2' +macro_revision='1.3337' @@ -3354,6 +3542,75 @@ ltmain="$ac_aux_dir/ltmain.sh" +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" @@ -3366,7 +3623,7 @@ .PHONY: am__doit END # If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= @@ -3394,18 +3651,19 @@ fi -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then +if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' + am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= @@ -3424,9 +3682,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -3437,24 +3695,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3464,9 +3722,9 @@ ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then @@ -3477,24 +3735,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3503,7 +3761,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -3517,9 +3775,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -3530,24 +3788,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3557,9 +3815,9 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -3571,18 +3829,18 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then @@ -3601,10 +3859,10 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3616,9 +3874,9 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -3629,24 +3887,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3660,9 +3918,9 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then @@ -3673,24 +3931,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3703,7 +3961,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -3714,57 +3972,37 @@ fi -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -V >&5") 2>&5 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3780,8 +4018,8 @@ # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: @@ -3797,17 +4035,17 @@ done rm -f $ac_rmfiles -if { (ac_try="$ac_link_default" +if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, @@ -3824,7 +4062,7 @@ # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -3843,84 +4081,41 @@ else ac_file='' fi - -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -if test -z "$ac_file"; then - $as_echo "$as_me: failed program was:" >&5 +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } fi - +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } - fi - fi -fi -{ $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } -if { (ac_try="$ac_link" +if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with @@ -3935,32 +4130,83 @@ esac done else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } fi - -rm -f conftest$ac_cv_exeext -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } -if test "${ac_cv_objext+set}" = set; then +if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3972,17 +4218,17 @@ } _ACEOF rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" +if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in @@ -3995,31 +4241,23 @@ $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } fi - rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then +if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4033,37 +4271,16 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no + ac_compiler_gnu=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes @@ -4072,20 +4289,16 @@ fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then +if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4096,35 +4309,11 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4135,36 +4324,12 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_compile "$LINENO"; then : - ac_c_werror_flag=$ac_save_c_werror_flag +else + ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4175,42 +4340,17 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS @@ -4227,23 +4367,18 @@ CFLAGS= fi fi -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then +if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include -#include -#include +struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); @@ -4295,32 +4430,9 @@ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then + if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done @@ -4331,17 +4443,19 @@ # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) - { $as_echo "$as_me:$LINENO: result: none needed" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) - { $as_echo "$as_me:$LINENO: result: unsupported" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac +if test "x$ac_cv_prog_cc_c89" != xno; then : +fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -4351,9 +4465,9 @@ depcc="$CC" am_compiler_list= -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then +if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then @@ -4362,6 +4476,7 @@ # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. + rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. @@ -4421,7 +4536,7 @@ break fi ;; - msvisualcpp | msvcmsys) + msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. @@ -4461,7 +4576,7 @@ fi fi -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type @@ -4476,9 +4591,9 @@ fi -{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } -if test "${ac_cv_path_SED+set}" = set; then +if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ @@ -4486,7 +4601,7 @@ ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - $as_unset ac_script || ac_script= + { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST @@ -4495,10 +4610,10 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do + for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue + as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in @@ -4515,7 +4630,7 @@ $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` + as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" @@ -4530,19 +4645,17 @@ $ac_path_SED_found && break 3 done done -done + done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 -$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed @@ -4560,9 +4673,9 @@ -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if test "${ac_cv_path_GREP+set}" = set; then +if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then @@ -4573,10 +4686,10 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do + for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue + as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in @@ -4593,7 +4706,7 @@ $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` + as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" @@ -4608,26 +4721,24 @@ $ac_path_GREP_found && break 3 done done -done + done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then +if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 @@ -4641,10 +4752,10 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do + for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue + as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in @@ -4661,7 +4772,7 @@ $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` + as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" @@ -4676,12 +4787,10 @@ $ac_path_EGREP_found && break 3 done done -done + done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP @@ -4689,14 +4798,14 @@ fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" -{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } -if test "${ac_cv_path_FGREP+set}" = set; then +if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 @@ -4710,10 +4819,10 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in fgrep; do + for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue + as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in @@ -4730,7 +4839,7 @@ $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` + as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" @@ -4745,12 +4854,10 @@ $ac_path_FGREP_found && break 3 done done -done + done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP @@ -4758,7 +4865,7 @@ fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" @@ -4784,7 +4891,7 @@ # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then +if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no @@ -4793,7 +4900,7 @@ ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) @@ -4823,13 +4930,13 @@ ;; esac elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi -if test "${lt_cv_path_LD+set}" = set; then +if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then @@ -4860,18 +4967,16 @@ LD="$lt_cv_path_LD" if test -n "$LD"; then - { $as_echo "$as_me:$LINENO: result: $LD" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 $as_echo "$LD" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then +if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. @@ -4884,7 +4989,7 @@ ;; esac fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -4896,9 +5001,9 @@ -{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if test "${lt_cv_path_NM+set}" = set; then +if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then @@ -4945,20 +5050,23 @@ : ${lt_cv_path_NM=no} fi fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$ac_tool_prefix"; then - for ac_prog in "dumpbin -symbols" "link -dump -symbols" + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_DUMPBIN+set}" = set; then +if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then @@ -4969,24 +5077,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then - { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -4996,13 +5104,13 @@ fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN - for ac_prog in "dumpbin -symbols" "link -dump -symbols" + for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then @@ -5013,24 +5121,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -5043,7 +5151,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -5051,6 +5159,15 @@ fi fi + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" @@ -5063,33 +5180,33 @@ -{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } -if test "${lt_cv_nm_interface+set}" = set; then +if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:5073: $ac_compile\"" >&5) + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 - (eval echo "\"\$as_me:5076: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 - (eval echo "\"\$as_me:5079: output\"" >&5) + (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } # find the maximum length of command line arguments -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then +if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 @@ -5122,6 +5239,11 @@ lt_cv_sys_max_cmd_len=8192; ;; + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. @@ -5147,6 +5269,11 @@ lt_cv_sys_max_cmd_len=196608 ;; + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not @@ -5186,8 +5313,8 @@ # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. - while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ - = "XX$teststring$teststring"; } >/dev/null 2>&1 && + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` @@ -5207,10 +5334,10 @@ fi if test -n $lt_cv_sys_max_cmd_len ; then - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else - { $as_echo "$as_me:$LINENO: result: none" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len @@ -5224,27 +5351,27 @@ : ${MV="mv -f"} : ${RM="rm -f"} -{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ - = c,a/b,, \ + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } -{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes -{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } @@ -5279,14 +5406,88 @@ -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then +if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in @@ -5295,6 +5496,11 @@ esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' @@ -5315,9 +5521,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_OBJDUMP+set}" = set; then +if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then @@ -5328,24 +5534,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then - { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -5355,9 +5561,9 @@ ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then @@ -5368,24 +5574,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -5394,7 +5600,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -5414,9 +5620,9 @@ -{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then +if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' @@ -5458,16 +5664,18 @@ # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; -cegcc) +cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' @@ -5497,6 +5705,10 @@ lt_cv_deplibs_check_method=pass_all ;; +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in @@ -5505,11 +5717,11 @@ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac @@ -5530,95 +5742,262 @@ lt_cv_deplibs_check_method=pass_all ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL fi - ;; +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; +test -z "$DLLTOOL" && DLLTOOL=dlltool -*nto* | *qnx*) - lt_cv_deplibs_check_method=pass_all - ;; -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; - pc) - lt_cv_deplibs_check_method=pass_all + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - - - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO @@ -5628,11 +6007,13 @@ if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_AR+set}" = set; then +if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then @@ -5643,36 +6024,40 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:$LINENO: result: $AR" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi + test -n "$AR" && break + done fi -if test -z "$ac_cv_prog_AR"; then +if test -z "$AR"; then ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then +if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then @@ -5683,48 +6068,108 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi + + test -n "$ac_ct_AR" && break +done + if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi -else - AR="$ac_cv_prog_AR" fi -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi @@ -5735,9 +6180,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then +if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then @@ -5748,24 +6193,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -5775,9 +6220,9 @@ ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then @@ -5788,24 +6233,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -5814,7 +6259,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -5834,9 +6279,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then +if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then @@ -5847,24 +6292,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -5874,9 +6319,9 @@ ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then @@ -5887,24 +6332,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -5913,7 +6358,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -5938,15 +6383,27 @@ if test -n "$RANLIB"; then case $host_os in openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + @@ -5991,9 +6448,9 @@ # Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then +if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else @@ -6054,8 +6511,8 @@ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= @@ -6079,6 +6536,7 @@ # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ @@ -6091,6 +6549,7 @@ else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no @@ -6109,18 +6568,18 @@ int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" @@ -6132,6 +6591,18 @@ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + #ifdef __cplusplus extern "C" { #endif @@ -6143,7 +6614,7 @@ cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ -const struct { +LT_DLSYM_CONST struct { const char *name; void *address; } @@ -6169,19 +6640,19 @@ _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext}; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi @@ -6211,13 +6682,26 @@ lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:$LINENO: result: failed" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else - { $as_echo "$as_me:$LINENO: result: ok" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + @@ -6238,10 +6722,45 @@ +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + # Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then +if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi @@ -6253,11 +6772,11 @@ ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" @@ -6271,12 +6790,12 @@ ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 6274 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) @@ -6310,11 +6829,11 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in @@ -6363,9 +6882,9 @@ # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then +if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c @@ -6374,11 +6893,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -6389,38 +6904,13 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_cc_needs_belf=no + lt_cv_cc_needs_belf=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6428,25 +6918,38 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; -sparc*-*solaris*) +*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" @@ -6460,7 +6963,124 @@ ;; esac -need_locks="$enable_libtool_lock" +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + case $host_os in @@ -6468,9 +7088,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then +if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then @@ -6481,24 +7101,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6508,9 +7128,9 @@ ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then @@ -6521,24 +7141,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6547,7 +7167,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -6560,9 +7180,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_NMEDIT+set}" = set; then +if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then @@ -6573,24 +7193,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6600,9 +7220,9 @@ ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then @@ -6613,24 +7233,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6639,7 +7259,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -6652,9 +7272,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_LIPO+set}" = set; then +if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then @@ -6665,24 +7285,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then - { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6692,9 +7312,9 @@ ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then @@ -6705,24 +7325,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6731,7 +7351,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -6744,9 +7364,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_OTOOL+set}" = set; then +if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then @@ -6757,24 +7377,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then - { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6784,9 +7404,9 @@ ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then @@ -6797,24 +7417,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6823,7 +7443,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -6836,9 +7456,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_OTOOL64+set}" = set; then +if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then @@ -6849,24 +7469,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then - { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6876,9 +7496,9 @@ ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then @@ -6889,24 +7509,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -6915,7 +7535,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac @@ -6951,9 +7571,9 @@ - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } -if test "${lt_cv_apple_cc_single_mod+set}" = set; then +if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no @@ -6969,7 +7589,13 @@ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? - if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 @@ -6978,22 +7604,19 @@ rm -f conftest.* fi fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then +if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -7004,43 +7627,53 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_ld_exported_symbols_list=no + lt_cv_ld_exported_symbols_list=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; @@ -7068,7 +7701,7 @@ else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi - if test "$DSYMUTIL" != ":"; then + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= @@ -7081,14 +7714,14 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then + if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded @@ -7103,11 +7736,7 @@ # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include @@ -7116,78 +7745,34 @@ #endif Syntax error _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_cpp "$LINENO"; then : +else # Broken: fails on valid input. continue fi - -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then +if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. ac_preproc_ok=: break fi - -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : break fi @@ -7199,7 +7784,7 @@ else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes @@ -7210,11 +7795,7 @@ # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include @@ -7223,87 +7804,40 @@ #endif Syntax error _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_cpp "$LINENO"; then : +else # Broken: fails on valid input. continue fi - -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then +if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. ac_preproc_ok=: break fi - -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c @@ -7313,16 +7847,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } -if test "${ac_cv_header_stdc+set}" = set; then +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -7337,48 +7867,23 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no + ac_cv_header_stdc=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : + $EGREP "memchr" >/dev/null 2>&1; then : + else ac_cv_header_stdc=no fi @@ -7388,18 +7893,14 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : + $EGREP "free" >/dev/null 2>&1; then : + else ac_cv_header_stdc=no fi @@ -7409,14 +7910,10 @@ if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -7443,118 +7940,33 @@ return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_run "$LINENO"; then : -( exit $ac_status ) -ac_cv_header_stdc=no +else + ac_cv_header_stdc=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF +$as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -7564,62 +7976,13 @@ done - for ac_header in dlfcn.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_DLFCN_H 1 _ACEOF fi @@ -7628,10 +7991,12 @@ + + # Set options enable_dlopen=yes # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then +if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; @@ -7667,7 +8032,7 @@ # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then +if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; @@ -7700,8 +8065,23 @@ # Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; pic_mode="$withval" +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac else pic_mode=default fi @@ -7716,7 +8096,7 @@ # Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then +if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; @@ -7778,6 +8158,11 @@ + + + + + test -z "$LN_S" && LN_S="ln -s" @@ -7797,9 +8182,9 @@ setopt NO_GLOB_SUBST fi -{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } -if test "${lt_cv_objdir+set}" = set; then +if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null @@ -7812,7 +8197,7 @@ fi rmdir .libs 2>/dev/null fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir @@ -7827,19 +8212,6 @@ - - - - - - - - - - - - - case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some @@ -7852,23 +8224,6 @@ ;; esac -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - # Global variables: ofile=libtool can_build_shared=yes @@ -7897,7 +8252,7 @@ *) break;; esac done -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it @@ -7905,9 +8260,9 @@ case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then +if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in @@ -7958,10 +8313,10 @@ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -7971,9 +8326,9 @@ if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:$LINENO: checking for file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then +if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in @@ -8024,10 +8379,10 @@ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -8106,11 +8461,16 @@ lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac - { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no @@ -8126,15 +8486,15 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8129: $lt_compile\"" >&5) + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8133: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes @@ -8143,7 +8503,7 @@ $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then @@ -8163,8 +8523,6 @@ lt_prog_compiler_pic= lt_prog_compiler_static= -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' @@ -8212,6 +8570,12 @@ lt_prog_compiler_pic='-fno-common' ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag @@ -8254,6 +8618,15 @@ lt_prog_compiler_pic='-fPIC' ;; esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in @@ -8316,7 +8689,13 @@ lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; - pgcc* | pgf77* | pgf90* | pgf95*) + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' @@ -8328,25 +8707,40 @@ # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; - xl*) - # IBM XL C 8.0/Fortran 10.1 on PPC + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' ;; esac ;; @@ -8378,7 +8772,7 @@ lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in - f77* | f90* | f95*) + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; @@ -8435,21 +8829,25 @@ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -$as_echo "$lt_prog_compiler_pic" >&6; } - - - - +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then - { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then +if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no @@ -8465,15 +8863,15 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8468: $lt_compile\"" >&5) + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8472: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes @@ -8482,7 +8880,7 @@ $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then @@ -8502,13 +8900,18 @@ + + + + + # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if test "${lt_cv_prog_compiler_static_works+set}" = set; then +if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no @@ -8521,7 +8924,7 @@ if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes @@ -8534,7 +8937,7 @@ LDFLAGS="$save_LDFLAGS" fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then @@ -8549,9 +8952,9 @@ - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then +if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no @@ -8570,16 +8973,16 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8573: $lt_compile\"" >&5) + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8577: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes @@ -8596,7 +8999,7 @@ $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } @@ -8604,9 +9007,9 @@ - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then +if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no @@ -8625,16 +9028,16 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8628: $lt_compile\"" >&5) + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8632: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes @@ -8651,7 +9054,7 @@ $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } @@ -8660,7 +9063,7 @@ hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* @@ -8668,10 +9071,10 @@ touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi @@ -8684,7 +9087,7 @@ - { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= @@ -8700,7 +9103,6 @@ hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported @@ -8744,13 +9146,39 @@ openbsd*) with_gnu_ld=no ;; - linux* | k*bsd*-gnu) + linux* | k*bsd*-gnu | gnu*) link_all_deplibs=no ;; esac ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' @@ -8784,11 +9212,12 @@ ld_shlibs=no cat <<_LT_EOF 1>&2 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. _LT_EOF fi @@ -8824,10 +9253,12 @@ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' @@ -8845,6 +9276,11 @@ fi ;; + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no @@ -8870,15 +9306,16 @@ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then - tmp_addflag= + tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; @@ -8889,13 +9326,17 @@ lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; - xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 @@ -8911,17 +9352,16 @@ fi case $cc_basename in - xlf*) + xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' - hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld='-rpath $libdir' - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac @@ -8935,8 +9375,8 @@ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; @@ -8954,8 +9394,8 @@ _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi @@ -9001,8 +9441,8 @@ *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi @@ -9042,8 +9482,10 @@ else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi @@ -9131,11 +9573,13 @@ allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -9146,54 +9590,34 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi fi -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + aix_libpath=$lt_cv_aix_libpath_ +fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' @@ -9202,11 +9626,13 @@ else # Determine the default libpath from the value encoded in an # empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -9217,59 +9643,44 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi fi -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + aix_libpath=$lt_cv_aix_libpath_ +fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' @@ -9301,20 +9712,64 @@ # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_from_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac ;; darwin* | rhapsody*) @@ -9324,7 +9779,12 @@ hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in @@ -9332,7 +9792,7 @@ *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then - output_verbose_link_cmd=echo + output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" @@ -9350,10 +9810,6 @@ hardcode_shlibpath_var=no ;; - freebsd1*) - ld_shlibs=no - ;; - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little @@ -9366,7 +9822,7 @@ ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) + freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes @@ -9375,7 +9831,7 @@ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no @@ -9383,7 +9839,7 @@ hpux9*) if test "$GCC" = yes; then - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi @@ -9398,14 +9854,13 @@ ;; hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes @@ -9417,16 +9872,16 @@ ;; hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then + if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else @@ -9438,7 +9893,46 @@ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + ;; esac fi @@ -9466,52 +9960,39 @@ irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" - cat >conftest.$ac_ext <<_ACEOF -int foo(void) {} + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' - +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + lt_cv_irix_exported_symbol=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$save_LDFLAGS" +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' @@ -9573,17 +10054,17 @@ hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported - archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' @@ -9593,13 +10074,13 @@ osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' @@ -9612,9 +10093,9 @@ no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) @@ -9763,7 +10244,7 @@ fi fi -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no @@ -9800,46 +10281,52 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } - $RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -$as_echo "$archive_cmds_need_lc" >&6; } + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi @@ -9997,12 +10484,7 @@ - - - - - - { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then @@ -10010,16 +10492,23 @@ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= @@ -10032,7 +10521,7 @@ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; @@ -10052,7 +10541,13 @@ if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi @@ -10078,7 +10573,7 @@ case $host_os in aix3*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH @@ -10087,7 +10582,7 @@ ;; aix[4-9]*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes @@ -10140,7 +10635,7 @@ m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; @@ -10152,7 +10647,7 @@ ;; bsdi[45]*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' @@ -10171,8 +10666,9 @@ need_version=no need_lib_prefix=no - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) + case $GCC,$cc_basename in + yes,*) + # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ @@ -10191,38 +10687,85 @@ case $host_os in cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + *) + sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. + # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' ;; *) + # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' ;; esac - dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; @@ -10243,7 +10786,7 @@ ;; dgux*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' @@ -10251,10 +10794,6 @@ shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) - dynamic_linker=no - ;; - freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. @@ -10262,7 +10801,7 @@ objformat=`/usr/bin/objformat` else case $host_os in - freebsd[123]*) objformat=aout ;; + freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi @@ -10280,7 +10819,7 @@ esac shlibpath_var=LD_LIBRARY_PATH case $host_os in - freebsd2*) + freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) @@ -10300,12 +10839,26 @@ ;; gnu*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; @@ -10351,12 +10904,14 @@ soname_spec='${libname}${release}${shared_ext}$major' ;; esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 ;; interix[3-9]*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' @@ -10372,7 +10927,7 @@ nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; @@ -10409,9 +10964,9 @@ dynamic_linker=no ;; -# This must be Linux ELF. +# This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' @@ -10419,16 +10974,17 @@ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ - LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -10439,43 +10995,19 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then - shlibpath_overrides_runpath=yes +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes fi - -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install @@ -10484,7 +11016,7 @@ # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi @@ -10528,7 +11060,7 @@ ;; newsos6) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -10597,7 +11129,7 @@ ;; solaris*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' @@ -10622,7 +11154,7 @@ ;; sysv4 | sysv4.3*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH @@ -10646,7 +11178,7 @@ sysv4*MP*) if test -d /usr/nec ;then - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH @@ -10677,7 +11209,7 @@ tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' @@ -10687,7 +11219,7 @@ ;; uts4*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH @@ -10697,7 +11229,7 @@ dynamic_linker=no ;; esac -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no @@ -10799,7 +11331,12 @@ - { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || @@ -10824,7 +11361,7 @@ # directories. hardcode_action=unsupported fi -{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || @@ -10869,18 +11406,14 @@ darwin*) # if libdl is installed we need to link against it - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then +if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -10898,43 +11431,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no + ac_cv_lib_dl_dlopen=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else @@ -10947,106 +11455,18 @@ ;; *) - { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 -$as_echo_n "checking for shl_load... " >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef shl_load - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif - -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_shl_load=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_shl_load=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -$as_echo "$ac_cv_func_shl_load" >&6; } -if test "x$ac_cv_func_shl_load" = x""yes; then + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then +if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -11064,145 +11484,32 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_shl_load=no + ac_cv_lib_dld_shl_load=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else - { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 -$as_echo_n "checking for dlopen... " >&6; } -if test "${ac_cv_func_dlopen+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define dlopen to an innocuous variant, in case declares dlopen. - For example, HP-UX 11i declares gettimeofday. */ -#define dlopen innocuous_dlopen - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dlopen (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef dlopen - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_dlopen || defined __stub___dlopen -choke me -#endif - -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_dlopen=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_dlopen=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -$as_echo "$ac_cv_func_dlopen" >&6; } -if test "x$ac_cv_func_dlopen" = x""yes; then + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then +if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -11220,57 +11527,28 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no + ac_cv_lib_dl_dlopen=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then +if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -11288,57 +11566,28 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_svld_dlopen=no + ac_cv_lib_svld_dlopen=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else - { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then +if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -11356,43 +11605,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_dld_link=no + ac_cv_lib_dld_dld_link=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi @@ -11431,9 +11655,9 @@ save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" - { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then +if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : @@ -11442,7 +11666,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11445 "configure" +#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11483,7 +11707,13 @@ # endif #endif -void fnord() { int i=42;} +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); @@ -11492,7 +11722,11 @@ if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } /* dlclose (self); */ } else @@ -11501,11 +11735,11 @@ return status; } _LT_EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in @@ -11522,14 +11756,14 @@ fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then +if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : @@ -11538,7 +11772,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11541 "configure" +#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11579,7 +11813,13 @@ # endif #endif -void fnord() { int i=42;} +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); @@ -11588,7 +11828,11 @@ if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } /* dlclose (self); */ } else @@ -11597,11 +11841,11 @@ return status; } _LT_EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in @@ -11618,7 +11862,7 @@ fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi @@ -11657,12 +11901,12 @@ striplib= old_striplib= -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:$LINENO: result: yes" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough @@ -11671,15 +11915,15 @@ if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" - { $as_echo "$as_me:$LINENO: result: yes" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac @@ -11697,12 +11941,12 @@ # Report which library types will actually be built - { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } - { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no @@ -11723,14 +11967,14 @@ fi ;; esac - { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } - { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes - { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } @@ -11757,6 +12001,8 @@ + + ac_config_commands="$ac_config_commands libtool" @@ -11765,17 +12011,19 @@ # Only expand once: -{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } -if test "${libltdl_cv_shlibext+set}" = set; then +if ${libltdl_cv_shlibext+:} false; then : $as_echo_n "(cached) " >&6 else module=yes eval libltdl_cv_shlibext=$shrext_cmds +module=no +eval libltdl_cv_shrext=$shrext_cmds fi -{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 $as_echo "$libltdl_cv_shlibext" >&6; } if test -n "$libltdl_cv_shlibext"; then @@ -11784,15 +12032,22 @@ _ACEOF fi +if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then -{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5 +cat >>confdefs.h <<_ACEOF +#define LT_SHARED_EXT "$libltdl_cv_shrext" +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 $as_echo_n "checking which variable specifies run-time module search path... " >&6; } -if test "${lt_cv_module_path_var+set}" = set; then +if ${lt_cv_module_path_var+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_module_path_var="$shlibpath_var" fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 $as_echo "$lt_cv_module_path_var" >&6; } if test -n "$lt_cv_module_path_var"; then @@ -11802,14 +12057,14 @@ fi -{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 $as_echo_n "checking for the default library search path... " >&6; } -if test "${lt_cv_sys_dlsearch_path+set}" = set; then +if ${lt_cv_sys_dlsearch_path+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 $as_echo "$lt_cv_sys_dlsearch_path" >&6; } if test -n "$lt_cv_sys_dlsearch_path"; then sys_dlsearch_path= @@ -11839,17 +12094,13 @@ LIBADD_DLOPEN= -{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 $as_echo_n "checking for library containing dlopen... " >&6; } -if test "${ac_cv_search_dlopen+set}" = set; then +if ${ac_cv_search_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -11874,59 +12125,30 @@ ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then + if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dlopen=$ac_res -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_dlopen+set}" = set; then +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_dlopen+:} false; then : break fi done -if test "${ac_cv_search_dlopen+set}" = set; then - : +if ${ac_cv_search_dlopen+:} false; then : + else ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 $as_echo "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen -if test "$ac_res" != no; then +if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBDL 1 -_ACEOF +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h if test "$ac_cv_search_dlopen" != "none required" ; then LIBADD_DLOPEN="-ldl" @@ -11934,11 +12156,7 @@ libltdl_cv_lib_dl_dlopen="yes" LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_DLFCN_H # include @@ -11952,50 +12170,21 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBDL 1 -_ACEOF +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h libltdl_cv_func_dlopen="yes" LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then +if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -12013,159 +12202,40 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_svld_dlopen=no + ac_cv_lib_svld_dlopen=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBDL 1 -_ACEOF +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" fi fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes then lt_save_LIBS="$LIBS" LIBS="$LIBS $LIBADD_DLOPEN" - -for ac_func in dlerror -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then + for ac_func in dlerror +do : + ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" +if test "x$ac_cv_func_dlerror" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define HAVE_DLERROR 1 _ACEOF fi @@ -12175,209 +12245,23 @@ fi -LIBADD_SHL_LOAD= -{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5 -$as_echo_n "checking for shl_load... " >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef shl_load - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif - -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_shl_load=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_shl_load=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -$as_echo "$ac_cv_func_shl_load" >&6; } -if test "x$ac_cv_func_shl_load" = x""yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SHL_LOAD 1 -_ACEOF - - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" -else - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_dld_shl_load=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_shl_load=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SHL_LOAD 1 -_ACEOF - - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" - LIBADD_SHL_LOAD="-ldld" -fi - -fi - - - -case $host_os in -darwin[1567].*) -# We only want this for pre-Mac OS X 10.4. - { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 -$as_echo_n "checking for _dyld_func_lookup... " >&6; } -if test "${ac_cv_func__dyld_func_lookup+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define _dyld_func_lookup to an innocuous variant, in case declares _dyld_func_lookup. - For example, HP-UX 11i declares gettimeofday. */ -#define _dyld_func_lookup innocuous__dyld_func_lookup - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char _dyld_func_lookup (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif +LIBADD_SHL_LOAD= +ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + +$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h -#undef _dyld_func_lookup + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC @@ -12385,62 +12269,45 @@ #ifdef __cplusplus extern "C" #endif -char _dyld_func_lookup (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup -choke me -#endif - +char shl_load (); int main () { -return _dyld_func_lookup (); +return shl_load (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func__dyld_func_lookup=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + +$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h - ac_cv_func__dyld_func_lookup=no + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" + LIBADD_SHL_LOAD="-ldld" fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 -$as_echo "$ac_cv_func__dyld_func_lookup" >&6; } -if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_DYLD 1 -_ACEOF + + +case $host_os in +darwin[1567].*) +# We only want this for pre-Mac OS X 10.4. + ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" +if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : + +$as_echo "#define HAVE_DYLD 1" >>confdefs.h LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" fi @@ -12450,92 +12317,30 @@ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" ;; cygwin* | mingw* | os2* | pw32*) - { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5 -$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; } -if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -int -main () -{ -#ifndef cygwin_conv_path - (void) cygwin_conv_path; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_cygwin_conv_path=yes + ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include +" +if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : + ac_have_decl=1 else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_cygwin_conv_path=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_have_decl=0 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5 -$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; } -if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CYGWIN_CONV_PATH 1 -_ACEOF - - -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CYGWIN_CONV_PATH 0 +#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl _ACEOF - -fi - - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" ;; esac -{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then +if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -12553,47 +12358,20 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_dld_link=no + ac_cv_lib_dld_dld_link=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : -cat >>confdefs.h <<\_ACEOF -#define HAVE_DLD 1 -_ACEOF +$as_echo "#define HAVE_DLD 1" >>confdefs.h LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" fi @@ -12608,9 +12386,7 @@ LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " done -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBDLLOADER 1 -_ACEOF +$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h fi @@ -12625,9 +12401,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } -if test "${lt_cv_sys_symbol_underscore+set}" = set; then +if ${lt_cv_sys_symbol_underscore+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sys_symbol_underscore=no @@ -12635,18 +12411,18 @@ void nm_test_func(){} int main(){nm_test_func;return 0;} _LT_EOF - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then # Now try to grab the symbols. ac_nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$ac_nlist"; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$ac_nlist"; then # See whether the symbols have a leading underscore. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then lt_cv_sys_symbol_underscore=yes @@ -12667,7 +12443,7 @@ rm -rf conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 $as_echo "$lt_cv_sys_symbol_underscore" >&6; } sys_symbol_underscore=$lt_cv_sys_symbol_underscore @@ -12675,9 +12451,9 @@ if test x"$lt_cv_sys_symbol_underscore" = xyes; then if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then - { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } -if test "${libltdl_cv_need_uscore+set}" = set; then +if ${libltdl_cv_need_uscore+:} false; then : $as_echo_n "(cached) " >&6 else libltdl_cv_need_uscore=unknown @@ -12689,7 +12465,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12692 "configure" +#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12730,7 +12506,13 @@ # endif #endif -void fnord() { int i=42;} +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); @@ -12739,7 +12521,11 @@ if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } /* dlclose (self); */ } else @@ -12748,11 +12534,11 @@ return status; } _LT_EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in @@ -12770,22 +12556,20 @@ LIBS="$save_LIBS" fi -{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 $as_echo "$libltdl_cv_need_uscore" >&6; } fi fi if test x"$libltdl_cv_need_uscore" = xyes; then -cat >>confdefs.h <<\_ACEOF -#define NEED_USCORE 1 -_ACEOF +$as_echo "#define NEED_USCORE 1" >>confdefs.h fi -{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } -if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then +if ${lt_cv_sys_dlopen_deplibs+:} false; then : $as_echo_n "(cached) " >&6 else # PORTME does your system automatically load deplibs for dlopen? @@ -12877,304 +12661,58 @@ esac fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } if test "$lt_cv_sys_dlopen_deplibs" != yes; then -cat >>confdefs.h <<\_ACEOF -#define LTDL_DLOPEN_DEPLIBS 1 -_ACEOF +$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h fi : - for ac_header in argz.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +do : + ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default +" +if test "x$ac_cv_header_argz_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_ARGZ_H 1 _ACEOF fi done - -{ $as_echo "$as_me:$LINENO: checking for error_t" >&5 -$as_echo_n "checking for error_t... " >&6; } -if test "${ac_cv_type_error_t+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_type_error_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined(HAVE_ARGZ_H) -# include -#endif - -int -main () -{ -if (sizeof (error_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined(HAVE_ARGZ_H) -# include -#endif - -int -main () -{ -if (sizeof ((error_t))) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_error_t=yes -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 -$as_echo "$ac_cv_type_error_t" >&6; } -if test "x$ac_cv_type_error_t" = x""yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_ERROR_T 1 -_ACEOF - - -else - -cat >>confdefs.h <<\_ACEOF -#define error_t int -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define __error_t_defined 1 -_ACEOF - -fi - - -ARGZ_H= - - - - - - - -for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ - argz_next argz_stringify -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} + +ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) +# include +#endif +" +if test "x$ac_cv_type_error_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_ERROR_T 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" + + else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi +$as_echo "#define error_t int" >>confdefs.h + + +$as_echo "#define __error_t_defined 1" >>confdefs.h -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then + + +ARGZ_H= +for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ + argz_next argz_stringify +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -13188,10 +12726,10 @@ done -if test -z "$ARGZ_H"; then - { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5 +if test -z "$ARGZ_H"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 $as_echo_n "checking if argz actually works... " >&6; } -if test "${lt_cv_sys_argz_works+set}" = set; then +if ${lt_cv_sys_argz_works+:} false; then : $as_echo_n "(cached) " >&6 else case $host_os in #( @@ -13220,13 +12758,11 @@ *) lt_cv_sys_argz_works=yes ;; esac fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 $as_echo "$lt_cv_sys_argz_works" >&6; } - if test $lt_cv_sys_argz_works = yes; then + if test "$lt_cv_sys_argz_works" = yes; then : -cat >>confdefs.h <<\_ACEOF -#define HAVE_WORKING_ARGZ 1 -_ACEOF +$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h else ARGZ_H=argz.h @@ -13235,15 +12771,13 @@ _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" fi - fi - -{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } -if test "${libltdl_cv_preloaded_symbols+set}" = set; then +if ${libltdl_cv_preloaded_symbols+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$lt_cv_sys_global_symbol_pipe"; then @@ -13253,13 +12787,11 @@ fi fi -{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 $as_echo "$libltdl_cv_preloaded_symbols" >&6; } if test x"$libltdl_cv_preloaded_symbols" = xyes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_PRELOADED_SYMBOLS 1 -_ACEOF +$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h fi @@ -13276,7 +12808,7 @@ # Check whether --with-included_ltdl was given. -if test "${with_included_ltdl+set}" = set; then +if test "${with_included_ltdl+set}" = set; then : withval=$with_included_ltdl; fi @@ -13284,121 +12816,22 @@ if test "x$with_included_ltdl" != xyes; then # We are not being forced to use the included libltdl sources, so # decide whether there is a useful installed version we can use. - { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5 -$as_echo_n "checking for ltdl.h... " >&6; } -if test "${ac_cv_header_ltdl_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - - -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_ltdl_h=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_ltdl_h=no -fi + ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5 -$as_echo "$ac_cv_header_ltdl_h" >&6; } -if test "x$ac_cv_header_ltdl_h" = x""yes; then - { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5 -$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; } -if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default +" +if test "x$ac_cv_header_ltdl_h" = xyes; then : + ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default #include - -int -main () -{ -#ifndef lt_dlinterface_register - (void) lt_dlinterface_register; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_lt_dlinterface_register=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_lt_dlinterface_register=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5 -$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; } -if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then - { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5 +" +if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } -if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then +if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lltdl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -13416,43 +12849,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ltdl_lt_dladvise_preload=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_ltdl_lt_dladvise_preload=no + ac_cv_lib_ltdl_lt_dladvise_preload=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } -if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then +if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : with_included_ltdl=no else with_included_ltdl=yes @@ -13473,7 +12881,7 @@ # Check whether --with-ltdl_include was given. -if test "${with_ltdl_include+set}" = set; then +if test "${with_ltdl_include+set}" = set; then : withval=$with_ltdl_include; fi @@ -13481,9 +12889,7 @@ if test -n "$with_ltdl_include"; then if test -f "$with_ltdl_include/ltdl.h"; then : else - { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5 -$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 fi else with_ltdl_include=no @@ -13491,7 +12897,7 @@ # Check whether --with-ltdl_lib was given. -if test "${with_ltdl_lib+set}" = set; then +if test "${with_ltdl_lib+set}" = set; then : withval=$with_ltdl_lib; fi @@ -13499,9 +12905,7 @@ if test -n "$with_ltdl_lib"; then if test -f "$with_ltdl_lib/libltdl.la"; then : else - { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5 -$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 fi else with_ltdl_lib=no @@ -13510,9 +12914,7 @@ case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in ,yes,no,no,) case $enable_ltdl_convenience in - no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5 -$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;} - { (exit 1); exit 1; }; } ;; + no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac @@ -13533,18 +12935,14 @@ # If the included ltdl is not to be used, then use the # preinstalled libltdl we found. -cat >>confdefs.h <<\_ACEOF -#define HAVE_LTDL 1 -_ACEOF +$as_echo "#define HAVE_LTDL 1" >>confdefs.h LIBLTDL=-lltdl LTDLDEPS= LTDLINCL= ;; ,no*,no,*) - { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5 -$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 ;; *) with_included_ltdl=no LIBLTDL="-L$with_ltdl_lib -lltdl" @@ -13555,19 +12953,19 @@ INCLTDL="$LTDLINCL" # Report our decision... -{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 $as_echo_n "checking where to find libltdl headers... " >&6; } -{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 $as_echo "$LTDLINCL" >&6; } -{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 $as_echo_n "checking where to find libltdl library... " >&6; } -{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 $as_echo "$LIBLTDL" >&6; } # Check whether --enable-ltdl-install was given. -if test "${enable_ltdl_install+set}" = set; then +if test "${enable_ltdl_install+set}" = set; then : enableval=$enable_ltdl_install; fi @@ -13606,65 +13004,12 @@ - - - - - - for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -13674,102 +13019,11 @@ done - - - for ac_func in closedir opendir readdir -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -13782,101 +13036,11 @@ fi done - - for ac_func in strlcat strlcpy -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -13892,12 +13056,20 @@ cat >>confdefs.h <<_ACEOF -#define LT_LIBEXT "$libext" +#define LT_LIBEXT "$libext" +_ACEOF + + +name= +eval "lt_libprefix=\"$libname_spec\"" + +cat >>confdefs.h <<_ACEOF +#define LT_LIBPREFIX "$lt_libprefix" _ACEOF name=ltdl -LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` +eval "LTDLOPEN=\"$libname_spec\"" @@ -13924,21 +13096,17 @@ _ACEOF -cat >>confdefs.h <<\_ACEOF -#define SCANBUFF 131072 -_ACEOF +$as_echo "#define SCANBUFF 131072" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define FILEBUFF 8192 -_ACEOF +$as_echo "#define FILEBUFF 8192" >>confdefs.h # Only modify libdir if user has not overriden it default_libdir='${exec_prefix}/lib' if test "$libdir" = "$default_libdir"; then - { $as_echo "$as_me:$LINENO: checking for multiarch libdir" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch libdir" >&5 $as_echo_n "checking for multiarch libdir... " >&6; } # Based on http://lists.gnu.org/archive/html/autoconf/2008-09/msg00072.html if test "$GCC" = yes; then @@ -13954,7 +13122,7 @@ *) acl_libdirstem=lib/$ac_multilibdir ;; esac libdir='${exec_prefix}/'$acl_libdirstem - { $as_echo "$as_me:$LINENO: result: $libdir" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdir" >&5 $as_echo "$libdir" >&6; } else acl_libdirstem=lib @@ -13970,16 +13138,12 @@ fi -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } -if test "${ac_cv_header_stdc+set}" = set; then +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -13994,48 +13158,23 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no + ac_cv_header_stdc=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : + $EGREP "memchr" >/dev/null 2>&1; then : + else ac_cv_header_stdc=no fi @@ -14045,18 +13184,14 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : + $EGREP "free" >/dev/null 2>&1; then : + else ac_cv_header_stdc=no fi @@ -14066,14 +13201,10 @@ if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -14100,67 +13231,34 @@ return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_run "$LINENO"; then : -( exit $ac_status ) -ac_cv_header_stdc=no +else + ac_cv_header_stdc=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF +$as_echo "#define STDC_HEADERS 1" >>confdefs.h fi -{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } -if test "${ac_cv_c_restrict+set}" = set; then +if ${ac_cv_c_restrict+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_restrict=no # The order here caters to the fact that C++ does not require restrict. for ac_kw in __restrict __restrict__ _Restrict restrict; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ typedef int * int_ptr; int foo (int_ptr $ac_kw ip) { @@ -14177,46 +13275,20 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_restrict=$ac_kw -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_restrict" != no && break done fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 $as_echo "$ac_cv_c_restrict" >&6; } - case $ac_cv_c_restrict in restrict) ;; - no) cat >>confdefs.h <<\_ACEOF -#define restrict /**/ -_ACEOF + no) $as_echo "#define restrict /**/" >>confdefs.h ;; *) cat >>confdefs.h <<_ACEOF #define restrict $ac_cv_c_restrict @@ -14224,26 +13296,22 @@ ;; esac -{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if test "${ac_cv_c_const+set}" = set; then +if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { -/* FIXME: Include the comments suggested by Paul. */ + #ifndef __cplusplus - /* Ultrix mips cc rejects this. */ + /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; - const charset cs; + const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; @@ -14260,8 +13328,9 @@ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; - { /* SCO 3.2v4 cc rejects this. */ - char *t; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; @@ -14277,10 +13346,10 @@ iptr p = 0; ++p; } - { /* AIX XL C 1.02.0.0 rejects this saying + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; }; - struct s *b; b->j = 5; + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; @@ -14293,56 +13362,29 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_const=no + ac_cv_c_const=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then -cat >>confdefs.h <<\_ACEOF -#define const /**/ -_ACEOF +$as_echo "#define const /**/" >>confdefs.h fi -{ $as_echo "$as_me:$LINENO: checking for inline" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } -if test "${ac_cv_c_inline+set}" = set; then +if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; @@ -14351,41 +13393,17 @@ #endif _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } - case $ac_cv_c_inline in inline | yes) ;; *) @@ -14401,15 +13419,15 @@ ;; esac -{ $as_echo "$as_me:$LINENO: checking whether FPU byte ordering is bigendian" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU byte ordering is bigendian" >&5 $as_echo_n "checking whether FPU byte ordering is bigendian... " >&6; } -if test "${ac_cv_c_fpu_bigendian+set}" = set; then +if ${ac_cv_c_fpu_bigendian+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_fpu_bigendian=auto # Check whether --with-fpu-words-bigendian was given. -if test "${with_fpu_words_bigendian+set}" = set; then +if test "${with_fpu_words_bigendian+set}" = set; then : withval=$with_fpu_words_bigendian; ac_cv_c_fpu_bigendian=$with_fpu_words_bigendian else ac_cv_c_fpu_bigendian=auto @@ -14417,32 +13435,11 @@ if test $ac_cv_c_fpu_bigendian = auto; then -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ double d = 3815911171354501045744583353695226502220105394563506259449467213186125718792664588210662403287568710818873279842508553551908601408568128557088985172985437412593385138085986771664896.0; _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : if ${GREP-grep} emmeelle conftest.$ac_objext >/dev/null 2>&1 ; then ac_cv_c_fpu_bigendian=yes @@ -14454,64 +13451,47 @@ ac_cv_c_fpu_bigendian=universal fi -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_fpu_bigendian" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fpu_bigendian" >&5 $as_echo "$ac_cv_c_fpu_bigendian" >&6; } have_autoitea06="no" case $ac_cv_c_fpu_bigendian in yes) -cat >>confdefs.h <<\_ACEOF -#define FPU_WORDS_BIGENDIAN 1 -_ACEOF +$as_echo "#define FPU_WORDS_BIGENDIAN 1" >>confdefs.h have_autoitea06="yes" ;; no) -cat >>confdefs.h <<\_ACEOF -#define FPU_WORDS_BIGENDIAN 0 -_ACEOF +$as_echo "#define FPU_WORDS_BIGENDIAN 0" >>confdefs.h have_autoitea06="yes" ;; universal) -cat >>confdefs.h <<\_ACEOF -#define FPU_WORDS_BIGENDIAN WORDS_BIGENDIAN -_ACEOF +$as_echo "#define FPU_WORDS_BIGENDIAN WORDS_BIGENDIAN" >>confdefs.h have_autoitea06="yes" ;; *) - { $as_echo "$as_me:$LINENO: WARNING: Unable to determine FPU endianess, some features may not be available in this build" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine FPU endianess, some features may not be available in this build" >&5 $as_echo "$as_me: WARNING: Unable to determine FPU endianess, some features may not be available in this build" >&2;} esac - - { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if test "${ac_cv_c_bigendian+set}" = set; then +if ${ac_cv_c_bigendian+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler @@ -14519,46 +13499,34 @@ typedef int dummy; _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless - # there are some -arch flags. Note that *ppc* also matches - # ppc64. This check is also rather less than ideal. - case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( - *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; - esac -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -14576,30 +13544,9 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -14615,49 +13562,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_bigendian=no + ac_cv_c_bigendian=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -14672,30 +13588,9 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -14710,51 +13605,20 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_bigendian=no + ac_cv_c_bigendian=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; @@ -14780,24 +13644,7 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi @@ -14809,20 +13656,10 @@ ac_cv_c_bigendian=unknown fi fi -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int @@ -14842,88 +13679,50 @@ return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_c_bigendian=yes + ac_cv_c_bigendian=yes fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) - cat >>confdefs.h <<\_ACEOF -#define WORDS_BIGENDIAN 1 -_ACEOF + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) -cat >>confdefs.h <<\_ACEOF -#define AC_APPLE_UNIVERSAL_BUILD 1 -_ACEOF +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) - { { $as_echo "$as_me:$LINENO: error: unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" >&5 -$as_echo "$as_me: error: unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} - { (exit 1); exit 1; }; } ;; + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac LIBM= case $host in -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) - { $as_echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } -if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then +if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmw $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -14941,58 +13740,29 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_mw__mwvalidcheckl=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_mw__mwvalidcheckl=no + ac_cv_lib_mw__mwvalidcheckl=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } -if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then +if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : LIBM="-lmw" fi - { $as_echo "$as_me:$LINENO: checking for cos in -lm" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 $as_echo_n "checking for cos in -lm... " >&6; } -if test "${ac_cv_lib_m_cos+set}" = set; then +if ${ac_cv_lib_m_cos+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -15005,65 +13775,36 @@ int main () { -return cos (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +return cos (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_cos=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_m_cos=no + ac_cv_lib_m_cos=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 $as_echo "$ac_cv_lib_m_cos" >&6; } -if test "x$ac_cv_lib_m_cos" = x""yes; then +if test "x$ac_cv_lib_m_cos" = xyes; then : LIBM="$LIBM -lm" fi ;; *) - { $as_echo "$as_me:$LINENO: checking for cos in -lm" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 $as_echo_n "checking for cos in -lm... " >&6; } -if test "${ac_cv_lib_m_cos+set}" = set; then +if ${ac_cv_lib_m_cos+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -15081,43 +13822,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_cos=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_m_cos=no + ac_cv_lib_m_cos=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 $as_echo "$ac_cv_lib_m_cos" >&6; } -if test "x$ac_cv_lib_m_cos" = x""yes; then +if test "x$ac_cv_lib_m_cos" = xyes; then : LIBM="-lm" fi @@ -15127,7 +13843,7 @@ # Check whether --enable-gcc-vcheck was given. -if test "${enable_gcc_vcheck+set}" = set; then +if test "${enable_gcc_vcheck+set}" = set; then : enableval=$enable_gcc_vcheck; gcc_check=$enableval else gcc_check="yes" @@ -15138,19 +13854,17 @@ VERSION_SUFFIX= if test "$gcc_check" = "yes"; then if test "x$ac_compiler_gnu" = "xyes"; then - { $as_echo "$as_me:$LINENO: checking for a supported version of gcc" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5 $as_echo_n "checking for a supported version of gcc... " >&6; } gcc_version=`${CC} -dumpversion` case "${gcc_version}" in 4.1.0*) - { $as_echo "$as_me:$LINENO: result: no (${gcc_version})" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5 $as_echo "no (${gcc_version})" >&6; } - { { $as_echo "$as_me:$LINENO: error: gcc 4.1.0 is known to incorrectly compile upx.c. Upgrade your compiler to at least 4.1.1/4.1.2)" >&5 -$as_echo "$as_me: error: gcc 4.1.0 is known to incorrectly compile upx.c. Upgrade your compiler to at least 4.1.1/4.1.2)" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "gcc 4.1.0 is known to incorrectly compile upx.c. Upgrade your compiler to at least 4.1.1/4.1.2)" "$LINENO" 5 ;; *) - { $as_echo "$as_me:$LINENO: result: ok (${gcc_version})" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5 $as_echo "ok (${gcc_version})" >&6; } ;; esac @@ -15184,17 +13898,13 @@ fi -{ $as_echo "$as_me:$LINENO: checking for gcc bug PR27603" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc bug PR27603" >&5 $as_echo_n "checking for gcc bug PR27603... " >&6; } -if test "$cross_compiling" = yes; then - { $as_echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 +if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assumed ok" >&5 $as_echo "cross-compiling, assumed ok" >&6; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* (C) Richard Guenther */ @@ -15214,57 +13924,24 @@ } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - { $as_echo "$as_me:$LINENO: result: ok, bug not present" >&5 +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5 $as_echo "ok, bug not present" >&6; } else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { $as_echo "$as_me:$LINENO: error: your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603" >&5 -$as_echo "$as_me: error: your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603" "$LINENO" 5 fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - -{ $as_echo "$as_me:$LINENO: checking for gcc bug PR26763-2" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc bug PR26763-2" >&5 $as_echo_n "checking for gcc bug PR26763-2... " >&6; } -if test "$cross_compiling" = yes; then - { $as_echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 +if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assumed ok" >&5 $as_echo "cross-compiling, assumed ok" >&6; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* (C) Richard Guenther */ @@ -15286,57 +13963,24 @@ } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - { $as_echo "$as_me:$LINENO: result: ok, bug not present" >&5 +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5 $as_echo "ok, bug not present" >&6; } else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { $as_echo "$as_me:$LINENO: error: your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763" >&5 -$as_echo "$as_me: error: your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763" "$LINENO" 5 fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - -{ $as_echo "$as_me:$LINENO: checking for valid code generation of CLI_ISCONTAINED" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid code generation of CLI_ISCONTAINED" >&5 $as_echo_n "checking for valid code generation of CLI_ISCONTAINED... " >&6; } -if test "$cross_compiling" = yes; then - { $as_echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 +if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assumed ok" >&5 $as_echo "cross-compiling, assumed ok" >&6; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -15397,57 +14041,24 @@ } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - { $as_echo "$as_me:$LINENO: result: ok, bug not present" >&5 +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5 $as_echo "ok, bug not present" >&6; } else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { $as_echo "$as_me:$LINENO: error: your compiler has a bug that causes clamav bug no. 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670" >&5 -$as_echo "$as_me: error: your compiler has a bug that causes clamav bug no. 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "your compiler has a bug that causes clamav bug no. 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670" "$LINENO" 5 fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - -{ $as_echo "$as_me:$LINENO: checking for gcc bug PR28045" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc bug PR28045" >&5 $as_echo_n "checking for gcc bug PR28045... " >&6; } -if test "$cross_compiling" = yes; then - { $as_echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 +if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assumed ok" >&5 $as_echo "cross-compiling, assumed ok" >&6; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* (C) Andrew Pinski */ @@ -15472,57 +14083,24 @@ } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - { $as_echo "$as_me:$LINENO: result: ok, bug not present" >&5 +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5 $as_echo "ok, bug not present" >&6; } else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { $as_echo "$as_me:$LINENO: error: your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045" >&5 -$as_echo "$as_me: error: your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045" "$LINENO" 5 fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - -{ $as_echo "$as_me:$LINENO: checking for gcc bug PR37573" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc bug PR37573" >&5 $as_echo_n "checking for gcc bug PR37573... " >&6; } -if test "$cross_compiling" = yes; then - { $as_echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 +if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assumed ok" >&5 $as_echo "cross-compiling, assumed ok" >&6; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -15596,537 +14174,121 @@ bar (p, s, s + 0xa25e); if (memcmp (p, q, s) != 0) abort (); - return 0; -} - - -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - { $as_echo "$as_me:$LINENO: result: ok, bug not present" >&5 -$as_echo "ok, bug not present" >&6; } -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { $as_echo "$as_me:$LINENO: error: your compiler has gcc PR37573 bug, use a lower optimization level (-O1 or -O2), see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37573" >&5 -$as_echo "$as_me: error: your compiler has gcc PR37573 bug, use a lower optimization level (-O1 or -O2), see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37573" >&2;} - { (exit 1); exit 1; }; } -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - - -{ $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5 -$as_echo_n "checking for ld --version-script... " >&6; } -if test "${ac_cv_ld_version_script+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat > conftest.c < conftest.map <&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; - then - VERSIONSCRIPTFLAG=--version-script - ac_cv_ld_version_script=yes - else - if { ac_try='${CC-cc} $CFLAGS $pic_flag $LDFLAGS -shared - -o conftest.so conftest.c - -Wl,-M,conftest.map - 1>&5' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; - then - VERSIONSCRIPTFLAG=-M - ac_cv_ld_version_script=yes; - else - ac_cv_ld_version_script=no - fi - fi - rm -f conftest* -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_ld_version_script" >&5 -$as_echo "$ac_cv_ld_version_script" >&6; } - - if test "x$ac_cv_ld_version_script" = "xyes"; then - VERSIONSCRIPT_TRUE= - VERSIONSCRIPT_FALSE='#' -else - VERSIONSCRIPT_TRUE='#' - VERSIONSCRIPT_FALSE= -fi - - -# it is not fatal if gperf is missing - -GPERF=${GPERF-"${am_missing_run}gperf"} - - - - - - - - - - - - - - - - - - - - - - - - - - - -for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi + return 0; +} -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## -------------------------------------- ## -## Report this to http://bugs.clamav.net/ ## -## -------------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5 +$as_echo "ok, bug not present" >&6; } else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - + as_fn_error $? "your compiler has gcc PR37573 bug, use a lower optimization level (-O1 or -O2), see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37573" "$LINENO" 5 fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -done -if test "${ac_cv_header_syslog_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5 -$as_echo_n "checking for syslog.h... " >&6; } -if test "${ac_cv_header_syslog_h+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5 +$as_echo_n "checking for ld --version-script... " >&6; } +if ${ac_cv_ld_version_script+:} false; then : $as_echo_n "(cached) " >&6 -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5 -$as_echo "$ac_cv_header_syslog_h" >&6; } else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5 -$as_echo_n "checking syslog.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 + cat > conftest.c < conftest.map <&5 + (eval $ac_try) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; + then + VERSIONSCRIPTFLAG=--version-script + ac_cv_ld_version_script=yes + else + if { ac_try='${CC-cc} $CFLAGS $pic_flag $LDFLAGS -shared + -o conftest.so conftest.c + -Wl,-M,conftest.map + 1>&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; + then + VERSIONSCRIPTFLAG=-M + ac_cv_ld_version_script=yes; + else + ac_cv_ld_version_script=no + fi + fi + rm -f conftest* fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_version_script" >&5 +$as_echo "$ac_cv_ld_version_script" >&6; } -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5 -$as_echo_n "checking syslog.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes + if test "x$ac_cv_ld_version_script" = "xyes"; then + VERSIONSCRIPT_TRUE= + VERSIONSCRIPT_FALSE='#' else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + VERSIONSCRIPT_TRUE='#' + VERSIONSCRIPT_FALSE= fi -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## -------------------------------------- ## -## Report this to http://bugs.clamav.net/ ## -## -------------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for syslog.h" >&5 -$as_echo_n "checking for syslog.h... " >&6; } -if test "${ac_cv_header_syslog_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_header_syslog_h=$ac_header_preproc -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5 -$as_echo "$ac_cv_header_syslog_h" >&6; } +# it is not fatal if gperf is missing + +GPERF=${GPERF-"${am_missing_run}gperf"} -fi -if test "x$ac_cv_header_syslog_h" = x""yes; then -cat >>confdefs.h <<\_ACEOF -#define USE_SYSLOG 1 + +for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h sys/times.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi +done +ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" +if test "x$ac_cv_header_syslog_h" = xyes; then : -{ $as_echo "$as_me:$LINENO: checking for off_t" >&5 -$as_echo_n "checking for off_t... " >&6; } -if test "${ac_cv_type_off_t+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_type_off_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof (off_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof ((off_t))) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define USE_SYSLOG 1" >>confdefs.h - ac_cv_type_off_t=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" +if test "x$ac_cv_type_off_t" = xyes; then : -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 -$as_echo "$ac_cv_type_off_t" >&6; } -if test "x$ac_cv_type_off_t" = x""yes; then - : else cat >>confdefs.h <<_ACEOF @@ -16135,17 +14297,13 @@ fi -{ $as_echo "$as_me:$LINENO: checking size of short" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 $as_echo_n "checking size of short... " >&6; } -if test "${ac_cv_sizeof_short+set}" = set; then +if ${ac_cv_sizeof_short+:} false; then : $as_echo_n "(cached) " >&6 else for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "confdefs.h" #include @@ -16159,32 +14317,9 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sizeof_short=$ac_size -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test x$ac_cv_sizeof_short != x ; then break; fi done @@ -16192,11 +14327,9 @@ fi if test x$ac_cv_sizeof_short = x ; then - { { $as_echo "$as_me:$LINENO: error: cannot determine a size for short" >&5 -$as_echo "$as_me: error: cannot determine a size for short" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "cannot determine a size for short" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 $as_echo "$ac_cv_sizeof_short" >&6; } cat >>confdefs.h <<_ACEOF @@ -16204,17 +14337,13 @@ _ACEOF -{ $as_echo "$as_me:$LINENO: checking size of int" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } -if test "${ac_cv_sizeof_int+set}" = set; then +if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) " >&6 else for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "confdefs.h" #include @@ -16228,32 +14357,9 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sizeof_int=$ac_size -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test x$ac_cv_sizeof_int != x ; then break; fi done @@ -16261,11 +14367,9 @@ fi if test x$ac_cv_sizeof_int = x ; then - { { $as_echo "$as_me:$LINENO: error: cannot determine a size for int" >&5 -$as_echo "$as_me: error: cannot determine a size for int" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "cannot determine a size for int" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 $as_echo "$ac_cv_sizeof_int" >&6; } cat >>confdefs.h <<_ACEOF @@ -16273,17 +14377,13 @@ _ACEOF -{ $as_echo "$as_me:$LINENO: checking size of long" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } -if test "${ac_cv_sizeof_long+set}" = set; then +if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "confdefs.h" #include @@ -16297,32 +14397,9 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sizeof_long=$ac_size -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test x$ac_cv_sizeof_long != x ; then break; fi done @@ -16330,11 +14407,9 @@ fi if test x$ac_cv_sizeof_long = x ; then - { { $as_echo "$as_me:$LINENO: error: cannot determine a size for long" >&5 -$as_echo "$as_me: error: cannot determine a size for long" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "cannot determine a size for long" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 $as_echo "$ac_cv_sizeof_long" >&6; } cat >>confdefs.h <<_ACEOF @@ -16342,17 +14417,13 @@ _ACEOF -{ $as_echo "$as_me:$LINENO: checking size of long long" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 $as_echo_n "checking size of long long... " >&6; } -if test "${ac_cv_sizeof_long_long+set}" = set; then +if ${ac_cv_sizeof_long_long+:} false; then : $as_echo_n "(cached) " >&6 else for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "confdefs.h" #include @@ -16366,32 +14437,9 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sizeof_long_long=$ac_size -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test x$ac_cv_sizeof_long_long != x ; then break; fi done @@ -16399,11 +14447,9 @@ fi if test x$ac_cv_sizeof_long_long = x ; then - { { $as_echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5 -$as_echo "$as_me: error: cannot determine a size for long long" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "cannot determine a size for long long" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 $as_echo "$ac_cv_sizeof_long_long" >&6; } cat >>confdefs.h <<_ACEOF @@ -16411,17 +14457,13 @@ _ACEOF -{ $as_echo "$as_me:$LINENO: checking size of void *" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 $as_echo_n "checking size of void *... " >&6; } -if test "${ac_cv_sizeof_void_p+set}" = set; then +if ${ac_cv_sizeof_void_p+:} false; then : $as_echo_n "(cached) " >&6 else for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "confdefs.h" #include @@ -16435,32 +14477,9 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sizeof_void_p=$ac_size -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test x$ac_cv_sizeof_void_p != x ; then break; fi done @@ -16468,11 +14487,9 @@ fi if test x$ac_cv_sizeof_void_p = x ; then - { { $as_echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5 -$as_echo "$as_me: error: cannot determine a size for void *" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "cannot determine a size for void *" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 $as_echo "$ac_cv_sizeof_void_p" >&6; } cat >>confdefs.h <<_ACEOF @@ -16482,7 +14499,7 @@ # Check whether --enable-experimental was given. -if test "${enable_experimental+set}" = set; then +if test "${enable_experimental+set}" = set; then : enableval=$enable_experimental; enable_experimental=$enableval else enable_experimental="no" @@ -16491,9 +14508,7 @@ if test "$enable_experimental" = "yes"; then -cat >>confdefs.h <<\_ACEOF -#define CL_EXPERIMENTAL 1 -_ACEOF +$as_echo "#define CL_EXPERIMENTAL 1" >>confdefs.h VERSION_SUFFIX="$VERSION_SUFFIX-exp" fi @@ -16503,88 +14518,51 @@ - { $as_echo "$as_me:$LINENO: checking whether uname(2) is POSIX" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uname(2) is POSIX" >&5 $as_echo_n "checking whether uname(2) is POSIX... " >&6; } - if test "${ax_cv_uname_syscall+set}" = set; then + if ${ax_cv_uname_syscall+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : ax_cv_uname_syscall=no else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main() { struct utsname unm; return uname( &unm ); } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : ax_cv_uname_syscall=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ax_cv_uname_syscall=no + ax_cv_uname_syscall=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - # end of TRY_RUN fi # end of CACHE_VAL - { $as_echo "$as_me:$LINENO: result: $ax_cv_uname_syscall" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uname_syscall" >&5 $as_echo "$ax_cv_uname_syscall" >&6; } if test x$ax_cv_uname_syscall = xyes then -cat >>confdefs.h <<\_ACEOF -#define HAVE_UNAME_SYSCALL 1 -_ACEOF +$as_echo "#define HAVE_UNAME_SYSCALL 1" >>confdefs.h fi -{ $as_echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5 $as_echo_n "checking for bind in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_bind+set}" = set; then +if ${ac_cv_lib_socket_bind+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -16602,57 +14580,28 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_bind=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_socket_bind=no + ac_cv_lib_socket_bind=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5 $as_echo "$ac_cv_lib_socket_bind" >&6; } -if test "x$ac_cv_lib_socket_bind" = x""yes; then +if test "x$ac_cv_lib_socket_bind" = xyes; then : LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket" fi -{ $as_echo "$as_me:$LINENO: checking for library containing gethostent" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5 $as_echo_n "checking for library containing gethostent... " >&6; } -if test "${ac_cv_search_gethostent+set}" = set; then +if ${ac_cv_search_gethostent+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -16677,168 +14626,37 @@ ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then + if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gethostent=$ac_res -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_gethostent+set}" = set; then +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_gethostent+:} false; then : break fi done -if test "${ac_cv_search_gethostent+set}" = set; then - : +if ${ac_cv_search_gethostent+:} false; then : + else ac_cv_search_gethostent=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostent" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5 $as_echo "$ac_cv_search_gethostent" >&6; } ac_res=$ac_cv_search_gethostent -if test "$ac_res" != no; then +if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" (LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl") fi - - - - - - - - - - - - - - - - for ac_func in poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat strcasestr inet_ntop setgroups initgroups ctime_r mkstemp mallinfo madvise -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -16846,17 +14664,13 @@ fi done -{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } -if test "${ac_cv_sys_largefile_source+set}" = set; then +if ${ac_cv_sys_largefile_source+:} false; then : $as_echo_n "(cached) " >&6 else while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* for off_t */ #include @@ -16869,43 +14683,12 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_sys_largefile_source=no; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGEFILE_SOURCE 1 #include /* for off_t */ @@ -16919,43 +14702,16 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_sys_largefile_source=1; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext ac_cv_sys_largefile_source=unknown break done fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 $as_echo "$ac_cv_sys_largefile_source" >&6; } case $ac_cv_sys_largefile_source in #( no | unknown) ;; @@ -16972,28 +14728,22 @@ # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. if test $ac_cv_sys_largefile_source != unknown; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_FSEEKO 1 -_ACEOF +$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h fi - { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 $as_echo_n "checking for working mmap... " >&6; } -if test "${ac_cv_c_mmap_private+set}" = set; then +if ${ac_cv_c_mmap_private+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : ac_cv_c_mmap_private=no else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -17055,67 +14805,34 @@ return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_mmap_private=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_c_mmap_private=no + ac_cv_c_mmap_private=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_mmap_private" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_mmap_private" >&5 $as_echo "$ac_cv_c_mmap_private" >&6; } if test $ac_cv_c_mmap_private = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF +$as_echo "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap ac_cv_c_can_get_pagesize="no" -{ $as_echo "$as_me:$LINENO: checking for sysconf(_SC_PAGESIZE)" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf(_SC_PAGESIZE)" >&5 $as_echo_n "checking for sysconf(_SC_PAGESIZE)... " >&6; } -if test "${ac_cv_c_sysconf_sc_pagesize+set}" = set; then +if ${ac_cv_c_sysconf_sc_pagesize+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -17130,61 +14847,30 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_c_sysconf_sc_pagesize=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_sysconf_sc_pagesize=no + ac_cv_c_sysconf_sc_pagesize=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_sysconf_sc_pagesize" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_sysconf_sc_pagesize" >&5 $as_echo "$ac_cv_c_sysconf_sc_pagesize" >&6; } if test "$ac_cv_c_sysconf_sc_pagesize" = "yes"; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_SYSCONF_SC_PAGESIZE 1 -_ACEOF +$as_echo "#define HAVE_SYSCONF_SC_PAGESIZE 1" >>confdefs.h ac_cv_c_can_get_pagesize="yes" fi -{ $as_echo "$as_me:$LINENO: checking for getpagesize()" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize()" >&5 $as_echo_n "checking for getpagesize()... " >&6; } -if test "${ac_cv_c_getpagesize+set}" = set; then +if ${ac_cv_c_getpagesize+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_UNISTD_H @@ -17198,64 +14884,33 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_c_getpagesize=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_getpagesize=no + ac_cv_c_getpagesize=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_getpagesize" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_getpagesize" >&5 $as_echo "$ac_cv_c_getpagesize" >&6; } if test "$ac_cv_c_getpagesize" = "yes"; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETPAGESIZE 1 -_ACEOF +$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h ac_cv_c_can_get_pagesize="yes" fi - { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; } -if test "${ac_cv_c_mmap_anonymous+set}" = set; then +if ${ac_cv_c_mmap_anonymous+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_mmap_anonymous='no' - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -17266,96 +14921,40 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_c_mmap_anonymous='MAP_ANONYMOUS' else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* OPENBSD WORKAROUND - DND*/ -#include -/* OPENBSD WORKAROUND - END*/ -#include - -int -main () -{ -mmap((void *)0, 0, PROT_READ | PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_c_mmap_anonymous='MAP_ANON' - -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +/* OPENBSD WORKAROUND - DND*/ +#include +/* OPENBSD WORKAROUND - END*/ +#include +int +main () +{ +mmap((void *)0, 0, PROT_READ | PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_c_mmap_anonymous='MAP_ANON' fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_mmap_anonymous" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_mmap_anonymous" >&5 $as_echo "$ac_cv_c_mmap_anonymous" >&6; } if test "$ac_cv_c_mmap_anonymous" != "no"; then @@ -17366,7 +14965,7 @@ fi # Check whether --enable-mempool was given. -if test "${enable_mempool+set}" = set; then +if test "${enable_mempool+set}" = set; then : enableval=$enable_mempool; enable_mempool=$enableval else enable_mempool="yes" @@ -17375,21 +14974,19 @@ have_mempool="no" if test "$enable_mempool" = "yes"; then if test "$ac_cv_c_mmap_private" != "yes"; then - { $as_echo "$as_me:$LINENO: ****** mempool support disabled (mmap not available or not usable)" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: ****** mempool support disabled (mmap not available or not usable)" >&5 $as_echo "$as_me: ****** mempool support disabled (mmap not available or not usable)" >&6;} else if test "$ac_cv_c_can_get_pagesize" != "yes"; then - { $as_echo "$as_me:$LINENO: ****** mempool support disabled (pagesize cannot be determined)" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: ****** mempool support disabled (pagesize cannot be determined)" >&5 $as_echo "$as_me: ****** mempool support disabled (pagesize cannot be determined)" >&6;} else if test "$ac_cv_c_mmap_anonymous" = "no"; then - { $as_echo "$as_me:$LINENO: ****** mempool support disabled (anonymous mmap not available)" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: ****** mempool support disabled (anonymous mmap not available)" >&5 $as_echo "$as_me: ****** mempool support disabled (anonymous mmap not available)" >&6;} else -cat >>confdefs.h <<\_ACEOF -#define USE_MPOOL 1 -_ACEOF +$as_echo "#define USE_MPOOL 1" >>confdefs.h have_mempool="yes" fi @@ -17400,7 +14997,7 @@ enable_check_ut=auto enable_ut_install=no # Check whether --enable-check was given. -if test "${enable_check+set}" = set; then +if test "${enable_check+set}" = set; then : enableval=$enable_check; enable_check_ut=$enableval else enable_check_ut="auto" @@ -17426,7 +15023,7 @@ # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then +if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no @@ -17448,7 +15045,7 @@ ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 $as_echo_n "checking for ld used by GCC... " >&6; } case $host in *-*-mingw*) @@ -17478,13 +15075,13 @@ ;; esac elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi -if test "${acl_cv_path_LD+set}" = set; then +if ${acl_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then @@ -17512,18 +15109,16 @@ LD="$acl_cv_path_LD" if test -n "$LD"; then - { $as_echo "$as_me:$LINENO: result: $LD" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 $as_echo "$LD" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then +if ${acl_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. @@ -17534,16 +15129,16 @@ acl_cv_prog_gnu_ld=no ;; esac fi -{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 $as_echo "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld - { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 $as_echo_n "checking for shared library run path origin... " >&6; } -if test "${acl_cv_rpath+set}" = set; then +if ${acl_cv_rpath+:} false; then : $as_echo_n "(cached) " >&6 else @@ -17554,7 +15149,7 @@ acl_cv_rpath=done fi -{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 $as_echo "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" @@ -17566,7 +15161,7 @@ acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then +if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; : else enable_rpath=yes @@ -17602,7 +15197,7 @@ # Check whether --with-libcheck-prefix was given. -if test "${with_libcheck_prefix+set}" = set; then +if test "${with_libcheck_prefix+set}" = set; then : withval=$with_libcheck_prefix; if test "X$withval" = "Xno"; then use_additional=no @@ -18032,139 +15627,8 @@ fi CPPFLAGS="$CPPFLAGS $INCCHECK" - if test "${ac_cv_header_check_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for check.h" >&5 -$as_echo_n "checking for check.h... " >&6; } -if test "${ac_cv_header_check_h+set}" = set; then - $as_echo_n "(cached) " >&6 -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_check_h" >&5 -$as_echo "$ac_cv_header_check_h" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking check.h usability" >&5 -$as_echo_n "checking check.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking check.h presence" >&5 -$as_echo_n "checking check.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: check.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: check.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: check.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: check.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: check.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: check.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: check.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: check.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: check.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: check.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: check.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: check.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: check.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: check.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: check.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: check.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## -------------------------------------- ## -## Report this to http://bugs.clamav.net/ ## -## -------------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for check.h" >&5 -$as_echo_n "checking for check.h... " >&6; } -if test "${ac_cv_header_check_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_header_check_h=$ac_header_preproc -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_check_h" >&5 -$as_echo "$ac_cv_header_check_h" >&6; } - -fi -if test "x$ac_cv_header_check_h" = x""yes; then + ac_fn_c_check_header_mongrel "$LINENO" "check.h" "ac_cv_header_check_h" "$ac_includes_default" +if test "x$ac_cv_header_check_h" = xyes; then : have_header=yes else have_header=no @@ -18174,16 +15638,12 @@ ac_cv_findlib_CHECK_libs= ac_cv_findlib_CHECK_ltlibs= ac_cv_findlib_CHECK_inc= - if test "$have_header" = "yes"; then + if test "$have_header" = "yes"; then : LIBS="$LIBS $LIBCHECK" - { $as_echo "$as_me:$LINENO: checking linking with check" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking with check" >&5 $as_echo_n "checking linking with check... " >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -18194,64 +15654,34 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_findlib_CHECK_libs="$LIBCHECK" ac_cv_findlib_CHECK_ltlibs="$LTLIBCHECK" ac_cv_findlib_CHECK_inc="$INCCHECK" - { $as_echo "$as_me:$LINENO: result: ok" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi - CPPFLAGS="$save_CPPFLAGS" LIBS="$save_LIBS" - if test "X$ac_cv_findlib_CHECK_libs" = "X"; then + if test "X$ac_cv_findlib_CHECK_libs" = "X"; then : - { $as_echo "$as_me:$LINENO: unable to compile/link with check" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: unable to compile/link with check" >&5 $as_echo "$as_me: unable to compile/link with check" >&6;} HAVE_LIBCHECK=no else - { $as_echo "$as_me:$LINENO: Compiling and linking with check by using $ac_cv_findlib_CHECK_inc $ac_cv_findlib_CHECK_libs" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling and linking with check by using $ac_cv_findlib_CHECK_inc $ac_cv_findlib_CHECK_libs" >&5 $as_echo "$as_me: Compiling and linking with check by using $ac_cv_findlib_CHECK_inc $ac_cv_findlib_CHECK_libs" >&6;} -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBCHECK 1 -_ACEOF +$as_echo "#define HAVE_LIBCHECK 1" >>confdefs.h HAVE_LIBCHECK=yes LIBCHECK="$ac_cv_findlib_CHECK_libs" @@ -18262,7 +15692,6 @@ fi - fi @@ -18276,19 +15705,14 @@ if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then - { { $as_echo "$as_me:$LINENO: error: + as_fn_error $? " ERROR! Check was configured, but not found. Get it from http://check.sf.net/ -" >&5 -$as_echo "$as_me: error: - -ERROR! Check was configured, but not found. Get it from http://check.sf.net/ -" >&2;} - { (exit 1); exit 1; }; } +" "$LINENO" 5 fi # Check whether --enable-coverage was given. -if test "${enable_coverage+set}" = set; then +if test "${enable_coverage+set}" = set; then : enableval=$enable_coverage; enable_cov=$enableval else enable_cov="no" @@ -18297,14 +15721,10 @@ if test "x$enable_coverage" = "xyes"; then if test "x$CHECK_LIBS" = "x"; then - { { $as_echo "$as_me:$LINENO: error: Coverage testing required, but unit tests not enabled!" >&5 -$as_echo "$as_me: error: Coverage testing required, but unit tests not enabled!" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Coverage testing required, but unit tests not enabled!" "$LINENO" 5 fi if test "x$ac_compiler_gnu" != "xyes"; then - { { $as_echo "$as_me:$LINENO: error: coverage testing only works if gcc is used" >&5 -$as_echo "$as_me: error: coverage testing only works if gcc is used" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "coverage testing only works if gcc is used" "$LINENO" 5 fi CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" @@ -18313,9 +15733,9 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_GCOV+set}" = set; then +if ${ac_cv_prog_GCOV+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$GCOV"; then @@ -18326,24 +15746,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_GCOV="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi GCOV=$ac_cv_prog_GCOV if test -n "$GCOV"; then - { $as_echo "$as_me:$LINENO: result: $GCOV" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 $as_echo "$GCOV" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -18356,9 +15776,9 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_LCOV+set}" = set; then +if ${ac_cv_prog_LCOV+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LCOV"; then @@ -18369,24 +15789,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LCOV="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi LCOV=$ac_cv_prog_LCOV if test -n "$LCOV"; then - { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 $as_echo "$LCOV" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -18399,9 +15819,9 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_GENHTML+set}" = set; then +if ${ac_cv_prog_GENHTML+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$GENHTML"; then @@ -18412,24 +15832,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_GENHTML="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi GENHTML=$ac_cv_prog_GENHTML if test -n "$GENHTML"; then - { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 $as_echo "$GENHTML" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -18450,154 +15870,23 @@ have_pthreads=no -if test "${ac_cv_header_pthread_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5 -$as_echo_n "checking for pthread.h... " >&6; } -if test "${ac_cv_header_pthread_h+set}" = set; then - $as_echo_n "(cached) " >&6 -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 -$as_echo "$ac_cv_header_pthread_h" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5 -$as_echo_n "checking pthread.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5 -$as_echo_n "checking pthread.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## -------------------------------------- ## -## Report this to http://bugs.clamav.net/ ## -## -------------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5 -$as_echo_n "checking for pthread.h... " >&6; } -if test "${ac_cv_header_pthread_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_header_pthread_h=$ac_header_preproc -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 -$as_echo "$ac_cv_header_pthread_h" >&6; } - -fi -if test "x$ac_cv_header_pthread_h" = x""yes; then +ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = xyes; then : have_pthreads=yes fi -{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then +if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi - { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= @@ -18610,15 +15899,15 @@ MAINT=$MAINTAINER_MODE_TRUE -{ $as_echo "$as_me:$LINENO: checking for zlib installation" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib installation" >&5 $as_echo_n "checking for zlib installation... " >&6; } # Check whether --with-zlib was given. -if test "${with_zlib+set}" = set; then +if test "${with_zlib+set}" = set; then : withval=$with_zlib; if test "$withval"; then ZLIB_HOME="$withval" - { $as_echo "$as_me:$LINENO: result: using $ZLIB_HOME" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ZLIB_HOME" >&5 $as_echo "using $ZLIB_HOME" >&6; } fi @@ -18629,7 +15918,7 @@ then ZLIB_HOME=/usr fi -{ $as_echo "$as_me:$LINENO: result: $ZLIB_HOME" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZLIB_HOME" >&5 $as_echo "$ZLIB_HOME" >&6; } fi @@ -18638,7 +15927,7 @@ CLAMDSCAN_LIBS="$FRESHCLAM_LIBS" # Check whether --enable-zlib-vcheck was given. -if test "${enable_zlib_vcheck+set}" = set; then +if test "${enable_zlib_vcheck+set}" = set; then : enableval=$enable_zlib_vcheck; zlib_check=$enableval else zlib_check="yes" @@ -18647,9 +15936,7 @@ if test ! -f "$ZLIB_HOME/include/zlib.h" then - { { $as_echo "$as_me:$LINENO: error: Please install zlib and zlib-devel packages" >&5 -$as_echo "$as_me: error: Please install zlib and zlib-devel packages" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5 else vuln=`grep "ZLIB_VERSION \"1.2.0" $ZLIB_HOME/include/zlib.h` @@ -18659,15 +15946,13 @@ if test -n "$vuln"; then if test "$zlib_check" = "yes"; then - { { $as_echo "$as_me:$LINENO: error: The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!" >&5 -$as_echo "$as_me: error: The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!" "$LINENO" 5 else - { $as_echo "$as_me:$LINENO: WARNING: ****** This ClamAV installation may be linked against" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** This ClamAV installation may be linked against" >&5 $as_echo "$as_me: WARNING: ****** This ClamAV installation may be linked against" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** a broken zlib version. Please DO NOT report any" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** a broken zlib version. Please DO NOT report any" >&5 $as_echo "$as_me: WARNING: ****** a broken zlib version. Please DO NOT report any" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** stability problems to the ClamAV developers!" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** stability problems to the ClamAV developers!" >&5 $as_echo "$as_me: WARNING: ****** stability problems to the ClamAV developers!" >&2;} fi fi @@ -18677,18 +15962,14 @@ CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include" save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib" - { $as_echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 $as_echo_n "checking for inflateEnd in -lz... " >&6; } -if test "${ac_cv_lib_z_inflateEnd+set}" = set; then +if ${ac_cv_lib_z_inflateEnd+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -18706,63 +15987,31 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_z_inflateEnd=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_z_inflateEnd=no + ac_cv_lib_z_inflateEnd=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; } -if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then +if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -L$ZLIB_HOME/lib -lz" else - { { $as_echo "$as_me:$LINENO: error: Please install zlib and zlib-devel packages" >&5 -$as_echo "$as_me: error: Please install zlib and zlib-devel packages" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5 fi - -{ $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 $as_echo_n "checking for gzopen in -lz... " >&6; } -if test "${ac_cv_lib_z_gzopen+set}" = set; then +if ${ac_cv_lib_z_gzopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -18780,43 +16029,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_z_gzopen=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_z_gzopen=no + ac_cv_lib_z_gzopen=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 $as_echo "$ac_cv_lib_z_gzopen" >&6; } -if test "x$ac_cv_lib_z_gzopen" = x""yes; then +if test "x$ac_cv_lib_z_gzopen" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBZ 1 _ACEOF @@ -18824,25 +16048,19 @@ LIBS="-lz $LIBS" else - { { $as_echo "$as_me:$LINENO: error: Your zlib is missing gzopen()" >&5 -$as_echo "$as_me: error: Your zlib is missing gzopen()" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Your zlib is missing gzopen()" "$LINENO" 5 fi LDFLAGS="$save_LDFLAGS" else - { $as_echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 $as_echo_n "checking for inflateEnd in -lz... " >&6; } -if test "${ac_cv_lib_z_inflateEnd+set}" = set; then +if ${ac_cv_lib_z_inflateEnd+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -18860,63 +16078,31 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_z_inflateEnd=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_z_inflateEnd=no + ac_cv_lib_z_inflateEnd=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; } -if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then +if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz";FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lz" else - { { $as_echo "$as_me:$LINENO: error: Please install zlib and zlib-devel packages" >&5 -$as_echo "$as_me: error: Please install zlib and zlib-devel packages" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5 fi - -{ $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 $as_echo_n "checking for gzopen in -lz... " >&6; } -if test "${ac_cv_lib_z_gzopen+set}" = set; then +if ${ac_cv_lib_z_gzopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -18934,43 +16120,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_z_gzopen=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_z_gzopen=no + ac_cv_lib_z_gzopen=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 $as_echo "$ac_cv_lib_z_gzopen" >&6; } -if test "x$ac_cv_lib_z_gzopen" = x""yes; then +if test "x$ac_cv_lib_z_gzopen" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBZ 1 _ACEOF @@ -18978,9 +16139,7 @@ LIBS="-lz $LIBS" else - { { $as_echo "$as_me:$LINENO: error: Your zlib is missing gzopen()" >&5 -$as_echo "$as_me: error: Your zlib is missing gzopen()" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Your zlib is missing gzopen()" "$LINENO" 5 fi fi @@ -18988,7 +16147,7 @@ fi # Check whether --enable-bzip2 was given. -if test "${enable_bzip2+set}" = set; then +if test "${enable_bzip2+set}" = set; then : enableval=$enable_bzip2; want_bzip2=$enableval else want_bzip2="yes" @@ -19003,9 +16162,9 @@ - { $as_echo "$as_me:$LINENO: checking how to link with libbz2" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbz2" >&5 $as_echo_n "checking how to link with libbz2... " >&6; } -if test "${ac_cv_libbz2_libs+set}" = set; then +if ${ac_cv_libbz2_libs+:} false; then : $as_echo_n "(cached) " >&6 else @@ -19028,7 +16187,7 @@ # Check whether --with-libbz2-prefix was given. -if test "${with_libbz2_prefix+set}" = set; then +if test "${with_libbz2_prefix+set}" = set; then : withval=$with_libbz2_prefix; if test "X$withval" = "Xno"; then use_additional=no @@ -19463,7 +16622,7 @@ ac_cv_libbz2_prefix="$LIBBZ2_PREFIX" fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_libbz2_libs" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbz2_libs" >&5 $as_echo "$ac_cv_libbz2_libs" >&6; } LIBBZ2="$ac_cv_libbz2_libs" LTLIBBZ2="$ac_cv_libbz2_ltlibs" @@ -19504,18 +16663,14 @@ test -z "$LIBBZ2_PREFIX" || LDFLAGS="$LDFLAGS -L$LIBBZ2_PREFIX/$acl_libdirstem"; have_bzprefix="no" - { $as_echo "$as_me:$LINENO: checking for BZ2_bzReadOpen in -lbz2" >&5 -$as_echo_n "checking for BZ2_bzReadOpen in -lbz2... " >&6; } -if test "${ac_cv_lib_bz2_BZ2_bzReadOpen+set}" = set; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5 +$as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; } +if ${ac_cv_lib_bz2_BZ2_bzDecompressInit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbz2 $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -19523,214 +16678,52 @@ builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" -#endif -char BZ2_bzReadOpen (); -int -main () -{ -return BZ2_bzReadOpen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_bz2_BZ2_bzReadOpen=yes +#endif +char BZ2_bzDecompressInit (); +int +main () +{ +return BZ2_bzDecompressInit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bz2_BZ2_bzDecompressInit=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_bz2_BZ2_bzReadOpen=no + ac_cv_lib_bz2_BZ2_bzDecompressInit=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzReadOpen" >&5 -$as_echo "$ac_cv_lib_bz2_BZ2_bzReadOpen" >&6; } -if test "x$ac_cv_lib_bz2_BZ2_bzReadOpen" = x""yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5 +$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; } +if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then : have_bzprefix="yes" fi if test "x$have_bzprefix" = "xno"; then -cat >>confdefs.h <<\_ACEOF -#define NOBZ2PREFIX 1 -_ACEOF +$as_echo "#define NOBZ2PREFIX 1" >>confdefs.h fi LDFLAGS="$save_LDFLAGS" if test "$HAVE_LIBBZ2" = "yes"; then - if test "${ac_cv_header_bzlib_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5 -$as_echo_n "checking for bzlib.h... " >&6; } -if test "${ac_cv_header_bzlib_h+set}" = set; then - $as_echo_n "(cached) " >&6 -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 -$as_echo "$ac_cv_header_bzlib_h" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5 -$as_echo_n "checking bzlib.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5 -$as_echo_n "checking bzlib.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## -------------------------------------- ## -## Report this to http://bugs.clamav.net/ ## -## -------------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5 -$as_echo_n "checking for bzlib.h... " >&6; } -if test "${ac_cv_header_bzlib_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_header_bzlib_h=$ac_header_preproc -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 -$as_echo "$ac_cv_header_bzlib_h" >&6; } - -fi -if test "x$ac_cv_header_bzlib_h" = x""yes; then - { $as_echo "$as_me:$LINENO: checking for CVE-2008-1372" >&5 + ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" +if test "x$ac_cv_header_bzlib_h" = xyes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CVE-2008-1372" >&5 $as_echo_n "checking for CVE-2008-1372... " >&6; } -if test "${ac_cv_c_cve_2008_1372+set}" = set; then +if ${ac_cv_c_cve_2008_1372+:} false; then : $as_echo_n "(cached) " >&6 else save_LIBS="$LIBS" LIBS="$LIBCLAMAV_LIBS $LIBBZ2" -if test "$cross_compiling" = yes; then +if test "$cross_compiling" = yes; then : ac_cv_c_cve_2008_1372=ok else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -19793,35 +16786,9 @@ } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_cve_2008_1372=ok else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) if test $? -gt 127; then ac_cv_c_cve_2008_1372=bugged @@ -19830,15 +16797,14 @@ fi fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - LIBS="$save_LIBS" fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_cve_2008_1372" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cve_2008_1372" >&5 $as_echo "$ac_cv_c_cve_2008_1372" >&6; } else @@ -19847,22 +16813,22 @@ if test "$ac_cv_c_cve_2008_1372" = "bugged"; then - { $as_echo "$as_me:$LINENO: WARNING: ****** bzip2 libraries are affected by the CVE-2008-1372 bug" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** bzip2 libraries are affected by the CVE-2008-1372 bug" >&5 $as_echo "$as_me: WARNING: ****** bzip2 libraries are affected by the CVE-2008-1372 bug" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** We strongly suggest you to update to bzip2 1.0.5." >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** We strongly suggest you to update to bzip2 1.0.5." >&5 $as_echo "$as_me: WARNING: ****** We strongly suggest you to update to bzip2 1.0.5." >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5 $as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;} bzip_check="bugged (CVE-2008-1372)" fi if test "$ac_cv_c_cve_2008_1372" = "linkfailed"; then - { $as_echo "$as_me:$LINENO: WARNING: ****** Unable to link bzip2 testcase" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Unable to link bzip2 testcase" >&5 $as_echo "$as_me: WARNING: ****** Unable to link bzip2 testcase" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** You may be affected by CVE-2008-1372 bug, but I need to be able to link a testcase to verify" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** You may be affected by CVE-2008-1372 bug, but I need to be able to link a testcase to verify" >&5 $as_echo "$as_me: WARNING: ****** You may be affected by CVE-2008-1372 bug, but I need to be able to link a testcase to verify" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&5 $as_echo "$as_me: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5 $as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;} bzip_check="link failed (CVE-2008-1372)" fi @@ -19877,22 +16843,18 @@ fi if test "$HAVE_LIBBZ2" = "yes"; then - { $as_echo "$as_me:$LINENO: checking for CVE-2010-0405" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CVE-2010-0405" >&5 $as_echo_n "checking for CVE-2010-0405... " >&6; } -if test "${ac_cv_c_cve_2010_0405+set}" = set; then +if ${ac_cv_c_cve_2010_0405+:} false; then : $as_echo_n "(cached) " >&6 else save_LIBS="$LIBS" LIBS="$LIBCLAMAV_LIBS $LIBBZ2" -if test "$cross_compiling" = yes; then +if test "$cross_compiling" = yes; then : ac_cv_c_cve_2010_0405=ok else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -19958,35 +16920,9 @@ } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_cve_2010_0405=ok else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) if test $? -gt 127; then ac_cv_c_cve_2010_0405=bugged @@ -19995,34 +16931,33 @@ fi fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - LIBS="$save_LIBS" fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_cve_2010_0405" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cve_2010_0405" >&5 $as_echo "$ac_cv_c_cve_2010_0405" >&6; } if test "$ac_cv_c_cve_2010_0405" = "bugged"; then - { $as_echo "$as_me:$LINENO: WARNING: ****** bzip2 libraries are affected by the CVE-2010-0405 bug" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** bzip2 libraries are affected by the CVE-2010-0405 bug" >&5 $as_echo "$as_me: WARNING: ****** bzip2 libraries are affected by the CVE-2010-0405 bug" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** We strongly suggest you to update bzip2" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** We strongly suggest you to update bzip2" >&5 $as_echo "$as_me: WARNING: ****** We strongly suggest you to update bzip2" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5 $as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;} bzip_check="bugged (CVE-2010-0405)" fi if test "$ac_cv_c_cve_2010_0405" = "linkfailed"; then - { $as_echo "$as_me:$LINENO: WARNING: ****** Unable to link bzip2 testcase" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Unable to link bzip2 testcase" >&5 $as_echo "$as_me: WARNING: ****** Unable to link bzip2 testcase" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** You may be affected by CVE-2010-0405 bug, but I need to be able to link a testcase to verify" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** You may be affected by CVE-2010-0405 bug, but I need to be able to link a testcase to verify" >&5 $as_echo "$as_me: WARNING: ****** You may be affected by CVE-2010-0405 bug, but I need to be able to link a testcase to verify" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&5 $as_echo "$as_me: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5 $as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;} bzip_check="link failed (CVE-2010-0405)" fi @@ -20031,25 +16966,32 @@ ok|bugged|linkfailed) LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBBZ2" -cat >>confdefs.h <<\_ACEOF -#define HAVE_BZLIB_H 1 -_ACEOF +$as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h ;; *) - { $as_echo "$as_me:$LINENO: WARNING: ****** bzip2 support disabled" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** bzip2 support disabled" >&5 $as_echo "$as_me: WARNING: ****** bzip2 support disabled" >&2;} ;; esac else - { $as_echo "$as_me:$LINENO: WARNING: ****** bzip2 support disabled" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** bzip2 support disabled" >&5 $as_echo "$as_me: WARNING: ****** bzip2 support disabled" >&2;} fi fi + if test "x$HAVE_LIBBZ2" = "xyes"; then + HAVE_LIBBZ2_TRUE= + HAVE_LIBBZ2_FALSE='#' +else + HAVE_LIBBZ2_TRUE='#' + HAVE_LIBBZ2_FALSE= +fi + + # Check whether --enable-unrar was given. -if test "${enable_unrar+set}" = set; then +if test "${enable_unrar+set}" = set; then : enableval=$enable_unrar; want_unrar=$enableval else want_unrar="yes" @@ -20064,8 +17006,165 @@ fi +want_xml="auto" +# Check whether --enable-xml was given. +if test "${enable_xml+set}" = set; then : + enableval=$enable_xml; want_xml=$enableval +else + want_xml="auto" +fi + + +XML_HOME="" +if test "X$want_xml" != "Xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 installation" >&5 +$as_echo_n "checking for libxml2 installation... " >&6; } + +# Check whether --with-xml was given. +if test "${with_xml+set}" = set; then : + withval=$with_xml; + if test "$withval" + then + XML_HOME="$withval" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $XML_HOME" >&5 +$as_echo "using $XML_HOME" >&6; } + else + as_fn_error $? "cannot assign blank value to --with-xml" "$LINENO" 5 + fi + +else + + XML_HOME=/usr/local + if test ! -x "$XML_HOME/bin/xml2-config" + then + XML_HOME=/usr + if test ! -x "$XML_HOME/bin/xml2-config" + then + XML_HOME="" + fi + fi + if test "x$XML_HOME" != "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_HOME" >&5 +$as_echo "$XML_HOME" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + fi + +fi + +fi + +found_xml="no" +XMLCONF_VERSION="" +XML_CPPFLAGS="" +XML_LIBS="" +if test "x$XML_HOME" != "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking xml2-config version" >&5 +$as_echo_n "checking xml2-config version... " >&6; } + XMLCONF_VERSION="`$XML_HOME/bin/xml2-config --version`" + if test "x%XMLCONF_VERSION" != "x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCONF_VERSION" >&5 +$as_echo "$XMLCONF_VERSION" >&6; } + found_xml="yes" + XML_CPPFLAGS="`$XML_HOME/bin/xml2-config --cflags`" + XML_LIBS="`$XML_HOME/bin/xml2-config --libs`" + else + as_fn_error $? "xml2-config failed" "$LINENO" 5 + fi +fi + +working_xml="no" +if test "X$found_xml" != "Xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlreader.h in $XML_HOME" >&5 +$as_echo_n "checking for xmlreader.h in $XML_HOME... " >&6; } + + if test ! -f "$XML_HOME/include/libxml2/libxml/xmlreader.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 +$as_echo "found" >&6; } + save_LIBS="$LIBS" + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $XML_LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlTextReaderRead in -lxml2" >&5 +$as_echo_n "checking for xmlTextReaderRead in -lxml2... " >&6; } +if ${ac_cv_lib_xml2_xmlTextReaderRead+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lxml2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char xmlTextReaderRead (); +int +main () +{ +return xmlTextReaderRead (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_xml2_xmlTextReaderRead=yes +else + ac_cv_lib_xml2_xmlTextReaderRead=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlTextReaderRead" >&5 +$as_echo "$ac_cv_lib_xml2_xmlTextReaderRead" >&6; } +if test "x$ac_cv_lib_xml2_xmlTextReaderRead" = xyes; then : + working_xml="yes" +else + working_xml="no" +fi + + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + fi +fi + +if test "$working_xml" = "yes"; then + +$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling and linking with libxml2 from $XML_HOME" >&5 +$as_echo "$as_me: Compiling and linking with libxml2 from $XML_HOME" >&6;} +else + if test "$want_xml" = "yes"; then + as_fn_error $? "****** Please install libxml2 packages!" "$LINENO" 5 + else + if test "$want_xml" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: ****** libxml2 support unavailable" >&5 +$as_echo "$as_me: ****** libxml2 support unavailable" >&6;} + fi + fi + XML_CPPFLAGS="" + XML_LIBS="" + + +fi + # Check whether --enable-getaddrinfo was given. -if test "${enable_getaddrinfo+set}" = set; then +if test "${enable_getaddrinfo+set}" = set; then : enableval=$enable_getaddrinfo; want_getaddrinfo=$enableval else want_getaddrinfo="yes" @@ -20074,20 +17173,16 @@ if test "$want_getaddrinfo" = "yes" then - { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 $as_echo_n "checking for getaddrinfo... " >&6; } - if test "${have_cv_gai+set}" = set; then + if ${have_cv_gai+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : have_cv_gai=no else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -20107,58 +17202,29 @@ } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : have_cv_gai=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_cv_gai=no + have_cv_gai=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi - { $as_echo "$as_me:$LINENO: result: $have_cv_gai" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cv_gai" >&5 $as_echo "$have_cv_gai" >&6; } if test "$have_cv_gai" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETADDRINFO 1 -_ACEOF +$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h fi fi # Check whether --enable-ipv6 was given. -if test "${enable_ipv6+set}" = set; then +if test "${enable_ipv6+set}" = set; then : enableval=$enable_ipv6; want_ipv6=$enableval else want_ipv6="yes" @@ -20167,20 +17233,16 @@ if test "$want_ipv6" = "yes" then - { $as_echo "$as_me:$LINENO: checking for IPv6 support" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 $as_echo_n "checking for IPv6 support... " >&6; } - if test "${have_cv_ipv6+set}" = set; then + if ${have_cv_ipv6+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : have_cv_ipv6=no else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -20205,52 +17267,23 @@ } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : have_cv_ipv6=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_cv_ipv6=no + have_cv_ipv6=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi - { $as_echo "$as_me:$LINENO: result: $have_cv_ipv6" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cv_ipv6" >&5 $as_echo "$have_cv_ipv6" >&6; } if test "$have_cv_ipv6" = yes; then -cat >>confdefs.h <<\_ACEOF -#define SUPPORT_IPv6 1 -_ACEOF +$as_echo "#define SUPPORT_IPv6 1" >>confdefs.h fi fi @@ -20258,7 +17291,7 @@ # Check whether --enable-dns was given. -if test "${enable_dns+set}" = set; then +if test "${enable_dns+set}" = set; then : enableval=$enable_dns; want_dns=$enableval else want_dns=yes @@ -20266,66 +17299,24 @@ fi if test $want_dns = yes; then - ac_cv_have_lresolv=no - { $as_echo "$as_me:$LINENO: checking for resolv.h" >&5 -$as_echo_n "checking for resolv.h... " >&6; } -if test "${ac_cv_header_resolv_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -#include -#include -#include - - -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_resolv_h=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_resolv_h=no -fi + ac_cv_have_lresolv=no + ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " +#include +#include +#include -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5 -$as_echo "$ac_cv_header_resolv_h" >&6; } -if test "x$ac_cv_header_resolv_h" = x""yes; then +" +if test "x$ac_cv_header_resolv_h" = xyes; then : - { $as_echo "$as_me:$LINENO: checking for dn_expand in std libs" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in std libs" >&5 $as_echo_n "checking for dn_expand in std libs... " >&6; } -if test "${ac_cv_have_lresolv_std+set}" = set; then +if ${ac_cv_have_lresolv_std+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_have_lresolv_std='no' - cat >conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ #include #include @@ -20334,56 +17325,30 @@ int main() { return (long)dn_expand; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_have_lresolv_std='yes' ac_cv_have_lresolv='' -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_lresolv_std" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lresolv_std" >&5 $as_echo "$ac_cv_have_lresolv_std" >&6; } if test "x$ac_cv_have_lresolv" = "xno"; then bklibs=$LIBS LIBS=-lresolv - { $as_echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5 $as_echo_n "checking for dn_expand in -lresolv... " >&6; } -if test "${ac_cv_have_lresolv_lresolv+set}" = set; then +if ${ac_cv_have_lresolv_lresolv+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_have_lresolv_lresolv='yes' - cat >conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ #include #include @@ -20392,44 +17357,17 @@ int main() { return (long)dn_expand; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_have_lresolv_lresolv='yes' ac_cv_have_lresolv=' -lresolv' -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_lresolv_lresolv" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lresolv_lresolv" >&5 $as_echo "$ac_cv_have_lresolv_lresolv" >&6; } LIBS=$bklibs; fi @@ -20442,42 +17380,34 @@ if test "x$ac_cv_have_lresolv" != "xno"; then FRESHCLAM_LIBS="$FRESHCLAM_LIBS$ac_cv_have_lresolv" -cat >>confdefs.h <<\_ACEOF -#define HAVE_RESOLV_H 1 -_ACEOF +$as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h else - { $as_echo "$as_me:$LINENO: WARNING: ****** DNS support disabled" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** DNS support disabled" >&5 $as_echo "$as_me: WARNING: ****** DNS support disabled" >&2;} fi fi -# Check whether --enable-clamuko was given. -if test "${enable_clamuko+set}" = set; then - enableval=$enable_clamuko; want_clamuko=$enableval +# Check whether --enable-fanotify was given. +if test "${enable_fanotify+set}" = set; then : + enableval=$enable_fanotify; want_fanotify=$enableval else - want_clamuko="yes" + want_fanotify="yes" fi if test "$cross_compiling" = no; then - { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 $as_echo_n "checking whether setpgrp takes no argument... " >&6; } -if test "${ac_cv_func_setpgrp_void+set}" = set; then +if ${ac_cv_func_setpgrp_void+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 -$as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} - { (exit 1); exit 1; }; } + if test "$cross_compiling" = yes; then : + as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int @@ -20491,64 +17421,31 @@ return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_setpgrp_void=no else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_setpgrp_void=yes + ac_cv_func_setpgrp_void=yes fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 $as_echo "$ac_cv_func_setpgrp_void" >&6; } if test $ac_cv_func_setpgrp_void = yes; then -cat >>confdefs.h <<\_ACEOF -#define SETPGRP_VOID 1 -_ACEOF +$as_echo "#define SETPGRP_VOID 1" >>confdefs.h fi else - { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 $as_echo_n "checking whether setpgrp takes no argument... " >&6; } -if test "${ac_cv_func_setpgrp_void+set}" = set; then +if ${ac_cv_func_setpgrp_void+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -20566,186 +17463,50 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_func_setpgrp_void=no else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_setpgrp_void=yes + ac_cv_func_setpgrp_void=yes fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 $as_echo "$ac_cv_func_setpgrp_void" >&6; } if test $ac_cv_func_setpgrp_void = yes; then - cat >>confdefs.h <<\_ACEOF -#define SETPGRP_VOID 1 -_ACEOF + $as_echo "#define SETPGRP_VOID 1" >>confdefs.h fi fi # Check whether --enable-milter was given. -if test "${enable_milter+set}" = set; then +if test "${enable_milter+set}" = set; then : enableval=$enable_milter; have_milter=$enableval else have_milter="no" fi -have_system_tommath=no - -# Check whether --with-system-tommath was given. -if test "${with_system_tommath+set}" = set; then - withval=$with_system_tommath; - case "$withval" in - yes) - { $as_echo "$as_me:$LINENO: checking for mp_mul_2d in -ltommath" >&5 -$as_echo_n "checking for mp_mul_2d in -ltommath... " >&6; } -if test "${ac_cv_lib_tommath_mp_mul_2d+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltommath $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char mp_mul_2d (); -int -main () -{ -return mp_mul_2d (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_tommath_mp_mul_2d=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_tommath_mp_mul_2d=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tommath_mp_mul_2d" >&5 -$as_echo "$ac_cv_lib_tommath_mp_mul_2d" >&6; } -if test "x$ac_cv_lib_tommath_mp_mul_2d" = x""yes; then - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SYSTEM_TOMMATH 1 -_ACEOF - - LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -ltommath" - have_system_tommath=yes - -else - { $as_echo "$as_me:$LINENO: WARNING: ****** Option --with-system-tommath was given but libtommath does not seem to be available, using bundled files instead" >&5 -$as_echo "$as_me: WARNING: ****** Option --with-system-tommath was given but libtommath does not seem to be available, using bundled files instead" >&2;} - -fi - - ;; - no) ;; - *) { { $as_echo "$as_me:$LINENO: error: --with-system-tommath does not take an argument" >&5 -$as_echo "$as_me: error: --with-system-tommath does not take an argument" >&2;} - { (exit 1); exit 1; }; } ;; - esac - -fi - - if test "x$have_system_tommath" = "xyes"; then - LINK_TOMMATH_TRUE= - LINK_TOMMATH_FALSE='#' -else - LINK_TOMMATH_TRUE='#' - LINK_TOMMATH_FALSE= -fi - - - # Check whether --with-iconv was given. -if test "${with_iconv+set}" = set; then +if test "${with_iconv+set}" = set; then : withval=$with_iconv; case "$withval" in yes|no) wiconv="$withval";; - *) { { $as_echo "$as_me:$LINENO: error: --with-iconv does not take an argument" >&5 -$as_echo "$as_me: error: --with-iconv does not take an argument" >&2;} - { (exit 1); exit 1; }; };; + *) as_fn_error $? "--with-iconv does not take an argument" "$LINENO" 5;; esac else wiconv=auto fi if test "X$wiconv" != "Xno"; then - { $as_echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 $as_echo_n "checking for libiconv_open in -liconv... " >&6; } -if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then +if ${ac_cv_lib_iconv_libiconv_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-liconv $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -20763,55 +17524,26 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_iconv_libiconv_open=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_iconv_libiconv_open=no + ac_cv_lib_iconv_libiconv_open=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } -if test "x$ac_cv_lib_iconv_libiconv_open" = x""yes; then +if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -liconv" fi - { $as_echo "$as_me:$LINENO: checking for iconv" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 $as_echo_n "checking for iconv... " >&6; } save_LIBS="$LIBS" LIBS="$LIBCLAMAV_LIBS" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -20831,66 +17563,39 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : - { $as_echo "$as_me:$LINENO: result: yes" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } -cat >>confdefs.h <<\_ACEOF -#define HAVE_ICONV 1 -_ACEOF +$as_echo "#define HAVE_ICONV 1" >>confdefs.h else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS="$save_LIBS" fi # Check whether --enable-pthreads was given. -if test "${enable_pthreads+set}" = set; then +if test "${enable_pthreads+set}" = set; then : enableval=$enable_pthreads; have_pthreads=$enableval fi # Check whether --enable-cr was given. -if test "${enable_cr+set}" = set; then +if test "${enable_cr+set}" = set; then : enableval=$enable_cr; use_cr=$enableval fi # Check whether --enable-id-check was given. -if test "${enable_id_check+set}" = set; then +if test "${enable_id_check+set}" = set; then : enableval=$enable_id_check; use_id=$enableval else use_id="no" @@ -20898,7 +17603,7 @@ # Check whether --enable-yp-check was given. -if test "${enable_yp_check+set}" = set; then +if test "${enable_yp_check+set}" = set; then : enableval=$enable_yp_check; use_yp=$enableval else use_yp="no" @@ -20907,7 +17612,7 @@ # Check whether --with-user was given. -if test "${with_user+set}" = set; then +if test "${with_user+set}" = set; then : withval=$with_user; clamav_user="$withval" else clamav_user="clamav" @@ -20916,7 +17621,7 @@ # Check whether --with-group was given. -if test "${with_group+set}" = set; then +if test "${with_group+set}" = set; then : withval=$with_group; clamav_group="$withval" else clamav_group="clamav" @@ -20935,7 +17640,7 @@ # Check whether --enable-clamav was given. -if test "${enable_clamav+set}" = set; then +if test "${enable_clamav+set}" = set; then : enableval=$enable_clamav; test_clamav=$enableval else test_clamav=yes @@ -20943,7 +17648,7 @@ # Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then +if test "${enable_debug+set}" = set; then : enableval=$enable_debug; enable_debug=$enableval else enable_debug="no" @@ -20953,27 +17658,23 @@ if test "$enable_debug" = "yes"; then VERSION_SUFFIX="$VERSION_SUFFIX-debug" -cat >>confdefs.h <<\_ACEOF -#define CL_DEBUG 1 -_ACEOF +$as_echo "#define CL_DEBUG 1" >>confdefs.h else -cat >>confdefs.h <<\_ACEOF -#define NDEBUG 1 -_ACEOF +$as_echo "#define NDEBUG 1" >>confdefs.h fi # Check whether --with-version was given. -if test "${with_version+set}" = set; then +if test "${with_version+set}" = set; then : withval=$with_version; VERSION="$withval" fi # Check whether --enable-no-cache was given. -if test "${enable_no_cache+set}" = set; then +if test "${enable_no_cache+set}" = set; then : enableval=$enable_no_cache; enable_nocache=$enableval else enable_nocache="no" @@ -20982,14 +17683,12 @@ if test "$enable_nocache" = "yes"; then -cat >>confdefs.h <<\_ACEOF -#define FRESHCLAM_NO_CACHE 1 -_ACEOF +$as_echo "#define FRESHCLAM_NO_CACHE 1" >>confdefs.h fi # Check whether --enable-dns-fix was given. -if test "${enable_dns_fix+set}" = set; then +if test "${enable_dns_fix+set}" = set; then : enableval=$enable_dns_fix; enable_dnsfix=$enableval else enable_dnsfix="no" @@ -20998,14 +17697,12 @@ if test "$enable_dnsfix" = "yes"; then -cat >>confdefs.h <<\_ACEOF -#define FRESHCLAM_DNS_FIX 1 -_ACEOF +$as_echo "#define FRESHCLAM_DNS_FIX 1" >>confdefs.h fi # Check whether --enable-bigstack was given. -if test "${enable_bigstack+set}" = set; then +if test "${enable_bigstack+set}" = set; then : enableval=$enable_bigstack; enable_bigstack=$enableval else enable_bigstack="no" @@ -21014,15 +17711,13 @@ if test "$enable_bigstack" = "yes"; then -cat >>confdefs.h <<\_ACEOF -#define C_BIGSTACK 1 -_ACEOF +$as_echo "#define C_BIGSTACK 1" >>confdefs.h fi # Check whether --with-dbdir was given. -if test "${with_dbdir+set}" = set; then +if test "${with_dbdir+set}" = set; then : withval=$with_dbdir; db_dir="$withval" else db_dir="_default_" @@ -21068,13 +17763,9 @@ _ACEOF -{ $as_echo "$as_me:$LINENO: checking whether in_port_t is defined" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether in_port_t is defined" >&5 $as_echo_n "checking whether in_port_t is defined... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -21088,50 +17779,23 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : - { $as_echo "$as_me:$LINENO: result: yes" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } -cat >>confdefs.h <<\_ACEOF -#define HAVE_IN_PORT_T 1 -_ACEOF +$as_echo "#define HAVE_IN_PORT_T 1" >>confdefs.h else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: checking for in_addr_t definition" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t definition" >&5 $as_echo_n "checking for in_addr_t definition... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -21145,78 +17809,47 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : - { $as_echo "$as_me:$LINENO: result: yes" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } -cat >>confdefs.h <<\_ACEOF -#define HAVE_IN_ADDR_T 1 -_ACEOF +$as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext case "$target_os" in linux*) -cat >>confdefs.h <<\_ACEOF -#define C_LINUX 1 -_ACEOF +$as_echo "#define C_LINUX 1" >>confdefs.h if test "$have_pthreads" = "yes"; then THREAD_LIBS="-lpthread" TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then + if test "$want_fanotify" = "yes"; then + ac_fn_c_check_header_mongrel "$LINENO" "linux/fanotify.h" "ac_cv_header_linux_fanotify_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_fanotify_h" = xyes; then : + +$as_echo "#define FANOTIFY 1" >>confdefs.h + +fi -cat >>confdefs.h <<\_ACEOF -#define CLAMUKO 1 -_ACEOF fi fi ;; kfreebsd*-gnu) -cat >>confdefs.h <<\_ACEOF -#define C_KFREEBSD_GNU 1 -_ACEOF +$as_echo "#define C_KFREEBSD_GNU 1" >>confdefs.h if test "$have_pthreads" = "yes"; then THREAD_LIBS="-lpthread" TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then - -cat >>confdefs.h <<\_ACEOF -#define CLAMUKO 1 -_ACEOF - - fi fi ;; solaris*) @@ -21229,63 +17862,34 @@ TH_SAFE="-thread-safe" fi -cat >>confdefs.h <<\_ACEOF -#define C_SOLARIS 1 -_ACEOF +$as_echo "#define C_SOLARIS 1" >>confdefs.h ;; freebsd[45]*) if test "$have_pthreads" = "yes"; then THREAD_LIBS="-pthread -lc_r" TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then - -cat >>confdefs.h <<\_ACEOF -#define CLAMUKO 1 -_ACEOF - - fi fi -cat >>confdefs.h <<\_ACEOF -#define C_BSD 1 -_ACEOF +$as_echo "#define C_BSD 1" >>confdefs.h ;; freebsd*) if test "$have_pthreads" = "yes"; then THREAD_LIBS="-lthr" TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then - -cat >>confdefs.h <<\_ACEOF -#define CLAMUKO 1 -_ACEOF - - fi fi -cat >>confdefs.h <<\_ACEOF -#define C_BSD 1 -_ACEOF +$as_echo "#define C_BSD 1" >>confdefs.h ;; dragonfly*) if test "$have_pthreads" = "yes"; then THREAD_LIBS="-pthread" TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then - -cat >>confdefs.h <<\_ACEOF -#define CLAMUKO 1 -_ACEOF - - fi fi -cat >>confdefs.h <<\_ACEOF -#define C_BSD 1 -_ACEOF +$as_echo "#define C_BSD 1" >>confdefs.h ;; openbsd*) @@ -21296,9 +17900,7 @@ TH_SAFE="-thread-safe" fi -cat >>confdefs.h <<\_ACEOF -#define C_BSD 1 -_ACEOF +$as_echo "#define C_BSD 1" >>confdefs.h ;; bsdi*) @@ -21307,9 +17909,7 @@ TH_SAFE="-thread-safe" fi -cat >>confdefs.h <<\_ACEOF -#define C_BSD 1 -_ACEOF +$as_echo "#define C_BSD 1" >>confdefs.h ;; netbsd*) @@ -21317,51 +17917,42 @@ THREAD_LIBS="-lpthread" fi -cat >>confdefs.h <<\_ACEOF -#define C_BSD 1 -_ACEOF +$as_echo "#define C_BSD 1" >>confdefs.h ;; bsd*) - { $as_echo "$as_me:$LINENO: result: Unknown BSD detected. Disabling thread support." >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unknown BSD detected. Disabling thread support." >&5 $as_echo "Unknown BSD detected. Disabling thread support." >&6; } have_pthreads="no" -cat >>confdefs.h <<\_ACEOF -#define C_BSD 1 -_ACEOF +$as_echo "#define C_BSD 1" >>confdefs.h ;; beos*) - { $as_echo "$as_me:$LINENO: result: BeOS detected. Disabling thread support." >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: BeOS detected. Disabling thread support." >&5 $as_echo "BeOS detected. Disabling thread support." >&6; } have_pthreads="no" -cat >>confdefs.h <<\_ACEOF -#define C_BEOS 1 -_ACEOF +$as_echo "#define C_BEOS 1" >>confdefs.h + + ;; +x86:Interix*) + +$as_echo "#define C_INTERIX 1" >>confdefs.h ;; darwin*) -cat >>confdefs.h <<\_ACEOF -#define C_BSD 1 -_ACEOF +$as_echo "#define C_BSD 1" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define C_DARWIN 1 -_ACEOF +$as_echo "#define C_DARWIN 1" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define BIND_8_COMPAT 1 -_ACEOF +$as_echo "#define BIND_8_COMPAT 1" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define CLAMAUTH 1 -_ACEOF +$as_echo "#define CLAMAUTH 1" >>confdefs.h use_netinfo="yes" ;; @@ -21375,9 +17966,7 @@ TH_SAFE="-thread-safe" fi -cat >>confdefs.h <<\_ACEOF -#define C_OS2 1 -_ACEOF +$as_echo "#define C_OS2 1" >>confdefs.h ;; sco*) @@ -21388,9 +17977,7 @@ TH_SAFE="-thread-safe" fi -cat >>confdefs.h <<\_ACEOF -#define C_HPUX 1 -_ACEOF +$as_echo "#define C_HPUX 1" >>confdefs.h if test "$have_mempool" = "yes"; then LDFLAGS="$LDFLAGS -Wl,+pd,1M" @@ -21401,15 +17988,11 @@ THREAD_LIBS="-lpthread" TH_SAFE="-thread-safe" -cat >>confdefs.h <<\_ACEOF -#define _THREAD_SAFE 1 -_ACEOF +$as_echo "#define _THREAD_SAFE 1" >>confdefs.h fi -cat >>confdefs.h <<\_ACEOF -#define C_AIX 1 -_ACEOF +$as_echo "#define C_AIX 1" >>confdefs.h ;; *-*-osf*) @@ -21417,22 +18000,16 @@ THREAD_LIBS="-pthread" TH_SAFE="-thread-safe" -cat >>confdefs.h <<\_ACEOF -#define _POSIX_PII_SOCKET 1 -_ACEOF +$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h fi -cat >>confdefs.h <<\_ACEOF -#define C_OSF 1 -_ACEOF +$as_echo "#define C_OSF 1" >>confdefs.h ;; nto-qnx*) -cat >>confdefs.h <<\_ACEOF -#define C_QNX6 1 -_ACEOF +$as_echo "#define C_QNX6 1" >>confdefs.h ;; irix*) @@ -21442,16 +18019,12 @@ fi LIBS="$LIBS -lgen" -cat >>confdefs.h <<\_ACEOF -#define C_IRIX 1 -_ACEOF +$as_echo "#define C_IRIX 1" >>confdefs.h ;; interix*) -cat >>confdefs.h <<\_ACEOF -#define C_INTERIX 1 -_ACEOF +$as_echo "#define C_INTERIX 1" >>confdefs.h if test "$test_clamav" = "yes"; then if test ! -r /etc/passwd; then @@ -21465,9 +18038,7 @@ ;; gnu*) -cat >>confdefs.h <<\_ACEOF -#define C_GNU_HURD 1 -_ACEOF +$as_echo "#define C_GNU_HURD 1" >>confdefs.h if test "$have_pthreads" = "yes"; then THREAD_LIBS="-lpthread" @@ -21494,18 +18065,14 @@ CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter" fi LIBS="$LIBS -lmilter $CLAMAV_MILTER_LIBS" - { $as_echo "$as_me:$LINENO: checking for mi_stop in -lmilter" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5 $as_echo_n "checking for mi_stop in -lmilter... " >&6; } -if test "${ac_cv_lib_milter_mi_stop+set}" = set; then +if ${ac_cv_lib_milter_mi_stop+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmilter $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -21522,58 +18089,29 @@ ; return 0; } -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_milter_mi_stop=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_milter_mi_stop=no + ac_cv_lib_milter_mi_stop=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_milter_mi_stop" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_mi_stop" >&5 $as_echo "$ac_cv_lib_milter_mi_stop" >&6; } -if test "x$ac_cv_lib_milter_mi_stop" = x""yes; then +if test "x$ac_cv_lib_milter_mi_stop" = xyes; then : CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_LIBS" else - { $as_echo "$as_me:$LINENO: checking for library containing strlcpy" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5 $as_echo_n "checking for library containing strlcpy... " >&6; } -if test "${ac_cv_search_strlcpy+set}" = set; then +if ${ac_cv_search_strlcpy+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -21598,72 +18136,41 @@ ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then + if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_strlcpy=$ac_res -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_strlcpy+set}" = set; then +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_strlcpy+:} false; then : break fi done -if test "${ac_cv_search_strlcpy+set}" = set; then - : +if ${ac_cv_search_strlcpy+:} false; then : + else ac_cv_search_strlcpy=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strlcpy" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5 $as_echo "$ac_cv_search_strlcpy" >&6; } ac_res=$ac_cv_search_strlcpy -if test "$ac_res" != no; then +if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" test "$ac_cv_search_strlcpy" = "none required" || CLAMAV_MILTER_XLIB="$ac_cv_search_strlcpy" fi LIBS="$save_LIBS $CLAMAV_MILTER_LIBS $CLAMAV_MILTER_XLIB" $as_unset ac_cv_lib_milter_mi_stop - { $as_echo "$as_me:$LINENO: checking for mi_stop in -lmilter" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5 $as_echo_n "checking for mi_stop in -lmilter... " >&6; } -if test "${ac_cv_lib_milter_mi_stop+set}" = set; then +if ${ac_cv_lib_milter_mi_stop+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmilter $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -21681,49 +18188,22 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_milter_mi_stop=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_milter_mi_stop=no + ac_cv_lib_milter_mi_stop=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_milter_mi_stop" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_mi_stop" >&5 $as_echo "$ac_cv_lib_milter_mi_stop" >&6; } -if test "x$ac_cv_lib_milter_mi_stop" = x""yes; then +if test "x$ac_cv_lib_milter_mi_stop" = xyes; then : CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS" else - { { $as_echo "$as_me:$LINENO: error: Cannot find libmilter" >&5 -$as_echo "$as_me: error: Cannot find libmilter" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Cannot find libmilter" "$LINENO" 5 fi @@ -21731,158 +18211,17 @@ fi LIBS="$save_LIBS" - -for ac_header in libmilter/mfapi.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## -------------------------------------- ## -## Report this to http://bugs.clamav.net/ ## -## -------------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then + for ac_header in libmilter/mfapi.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "libmilter/mfapi.h" "ac_cv_header_libmilter_mfapi_h" "$ac_includes_default" +if test "x$ac_cv_header_libmilter_mfapi_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_LIBMILTER_MFAPI_H 1 _ACEOF have_milter="yes" else - { { $as_echo "$as_me:$LINENO: error: Please install mfapi.h from the sendmail distribution" >&5 -$as_echo "$as_me: error: Please install mfapi.h from the sendmail distribution" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Please install mfapi.h from the sendmail distribution" "$LINENO" 5 fi @@ -21911,101 +18250,11 @@ then save_LIBS="$LIBS" LIBS="$THREAD_LIBS $LIBS" - - -for ac_func in sched_yield pthread_yield -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then + for ac_func in sched_yield pthread_yield +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -22015,118 +18264,22 @@ LIBS="$save_LIBS" -cat >>confdefs.h <<\_ACEOF -#define BUILD_CLAMD 1 -_ACEOF +$as_echo "#define BUILD_CLAMD 1" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define CL_THREAD_SAFE 1 -_ACEOF +$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define _REENTRANT 1 -_ACEOF +$as_echo "#define _REENTRANT 1" >>confdefs.h fi - for ac_func in enable_extended_FILE_stdio -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +do : + ac_fn_c_check_func "$LINENO" "enable_extended_FILE_stdio" "ac_cv_func_enable_extended_FILE_stdio" +if test "x$ac_cv_func_enable_extended_FILE_stdio" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define HAVE_ENABLE_EXTENDED_FILE_STDIO 1 _ACEOF fi @@ -22134,14 +18287,10 @@ -{ $as_echo "$as_me:$LINENO: checking for readdir_r" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir_r" >&5 $as_echo_n "checking for readdir_r... " >&6; } if test -z "$ac_cv_readdir_args"; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -22159,40 +18308,13 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_readdir_args=2 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test -z "$ac_cv_readdir_args"; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -22209,39 +18331,16 @@ ; return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_readdir_args=3 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_readdir_args=3 fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Check whether --enable-readdir_r was given. -if test "${enable_readdir_r+set}" = set; then +if test "${enable_readdir_r+set}" = set; then : enableval=$enable_readdir_r; enable_readdir_r=$enableval else enable_readdir_r="no" @@ -22249,37 +18348,29 @@ if test "$enable_readdir_r" = "no"; then - { $as_echo "$as_me:$LINENO: result: support disabled" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: support disabled" >&5 $as_echo "support disabled" >&6; } elif test -z "$ac_cv_readdir_args"; then - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else if test "$ac_cv_readdir_args" = 2; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_READDIR_R_2 1 -_ACEOF +$as_echo "#define HAVE_READDIR_R_2 1" >>confdefs.h elif test "$ac_cv_readdir_args" = 3; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_READDIR_R_3 1 -_ACEOF +$as_echo "#define HAVE_READDIR_R_3 1" >>confdefs.h fi - { $as_echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_readdir_args arguments" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, and it takes $ac_cv_readdir_args arguments" >&5 $as_echo "yes, and it takes $ac_cv_readdir_args arguments" >&6; } fi -{ $as_echo "$as_me:$LINENO: checking for ctime_r" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime_r" >&5 $as_echo_n "checking for ctime_r... " >&6; } if test "$ac_cv_func_ctime_r" = "yes"; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -22296,64 +18387,35 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_ctime_args=3 -cat >>confdefs.h <<\_ACEOF -#define HAVE_CTIME_R_3 1 -_ACEOF +$as_echo "#define HAVE_CTIME_R_3 1" >>confdefs.h else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_ctime_args=2 -cat >>confdefs.h <<\_ACEOF -#define HAVE_CTIME_R_2 1 -_ACEOF +$as_echo "#define HAVE_CTIME_R_2 1" >>confdefs.h fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { $as_echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, and it takes $ac_cv_ctime_args arguments" >&5 $as_echo "yes, and it takes $ac_cv_ctime_args arguments" >&6; } fi -{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 $as_echo_n "checking for socklen_t... " >&6; } -if test "${ac_cv_socklen_t+set}" = set; then +if ${ac_cv_socklen_t+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_socklen_t=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -22370,54 +18432,27 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_socklen_t=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5 $as_echo "$ac_cv_socklen_t" >&6; } if test $ac_cv_socklen_t = no; then - { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 $as_echo_n "checking for socklen_t equivalent... " >&6; } - if test "${ac_cv_socklen_t_equiv+set}" = set; then + if ${ac_cv_socklen_t_equiv+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_socklen_t_equiv=int for t in int size_t unsigned long "unsigned long"; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -22434,41 +18469,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_socklen_t_equiv="$t" break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done fi - { $as_echo "$as_me:$LINENO: result: $ac_cv_socklen_t_equiv" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t_equiv" >&5 $as_echo "$ac_cv_socklen_t_equiv" >&6; } cat >>confdefs.h <<_ACEOF @@ -22481,23 +18493,23 @@ then if test "$use_id" = "no" then - { $as_echo "$as_me:$LINENO: checking for $clamav_user in /etc/passwd" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $clamav_user in /etc/passwd" >&5 $as_echo_n "checking for $clamav_user in /etc/passwd... " >&6; } if test -r /etc/passwd; then clamavuser=`cat /etc/passwd|grep "^$clamav_user:"` clamavgroup=`cat /etc/group|grep "^$clamav_group:"` fi else - { $as_echo "$as_me:$LINENO: checking for $clamav_user using id" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $clamav_user using id" >&5 $as_echo_n "checking for $clamav_user using id... " >&6; } id $clamav_user > /dev/null 2>&1 if test "$?" = 0 ; then clamavuser=1 # Extract the first word of "getent", so it can be a program name with args. set dummy getent; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_GETENT+set}" = set; then +if ${ac_cv_path_GETENT+:} false; then : $as_echo_n "(cached) " >&6 else case $GETENT in @@ -22510,14 +18522,14 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GETENT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS ;; @@ -22525,10 +18537,10 @@ fi GETENT=$ac_cv_path_GETENT if test -n "$GETENT"; then - { $as_echo "$as_me:$LINENO: result: $GETENT" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETENT" >&5 $as_echo "$GETENT" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -22544,12 +18556,12 @@ if test "$use_netinfo" = "yes" then if test -x /usr/bin/dscl; then - { $as_echo "$as_me:$LINENO: checking for $clamav_user using dscl" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $clamav_user using dscl" >&5 $as_echo_n "checking for $clamav_user using dscl... " >&6; } clamavuser=`/usr/bin/dscl . -list /Users |grep ${clamav_user}` clamavgroup=`/usr/bin/dscl . -list /Groups |grep ${clamav_group}` else - { $as_echo "$as_me:$LINENO: checking for $clamav_user using netinfo" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $clamav_user using netinfo" >&5 $as_echo_n "checking for $clamav_user using netinfo... " >&6; } clamavuser=`/usr/bin/nidump passwd . |grep ${clamav_user}` clamavgroup=`/usr/bin/nidump group . |grep ${clamav_group}` @@ -22558,7 +18570,7 @@ if test "$use_yp" = "yes" then - { $as_echo "$as_me:$LINENO: checking for $clamav_user using ypmatch" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $clamav_user using ypmatch" >&5 $as_echo_n "checking for $clamav_user using ypmatch... " >&6; } clamavuser=`ypmatch ${clamav_user} passwd` clamavgroup=`ypmatch ${clamav_group} group` @@ -22566,13 +18578,11 @@ if test -z "$clamavuser" || test -z "$clamavgroup" then - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - { { $as_echo "$as_me:$LINENO: error: User $clamav_user (and/or group $clamav_group) doesn't exist. Please read the documentation !" >&5 -$as_echo "$as_me: error: User $clamav_user (and/or group $clamav_group) doesn't exist. Please read the documentation !" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "User $clamav_user (and/or group $clamav_group) does not exist. Please read the documentation !" "$LINENO" 5 else - { $as_echo "$as_me:$LINENO: result: yes, user $clamav_user and group $clamav_group" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, user $clamav_user and group $clamav_group" >&5 $as_echo "yes, user $clamav_user and group $clamav_group" >&6; } CLAMAVUSER="$clamav_user" CLAMAVGROUP="$clamav_group" @@ -22581,17 +18591,13 @@ fi fi -{ $as_echo "$as_me:$LINENO: checking for structure packing via __attribute__((packed))" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for structure packing via __attribute__((packed))" >&5 $as_echo_n "checking for structure packing via __attribute__((packed))... " >&6; } -if test "${have_cv_attrib_packed+set}" = set; then +if ${have_cv_attrib_packed+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -22606,60 +18612,32 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : have_cv_attrib_packed=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - have_cv_attrib_packed=no + have_cv_attrib_packed=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $have_cv_attrib_packed" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cv_attrib_packed" >&5 $as_echo "$have_cv_attrib_packed" >&6; } if test "$have_cv_attrib_packed" = no; then - { $as_echo "$as_me:$LINENO: checking for structure packing via pragma" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for structure packing via pragma" >&5 $as_echo_n "checking for structure packing via pragma... " >&6; } - if test "${have_cv_pragma_pack+set}" = set; then + if ${have_cv_pragma_pack+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(int argc, char **argv) { @@ -22667,74 +18645,38 @@ struct { char c; long l; } s; return sizeof(s)==sizeof(s.c)+sizeof(s.l) ? 0:1; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : have_cv_pragma_pack=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_cv_pragma_pack=no + have_cv_pragma_pack=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi - { $as_echo "$as_me:$LINENO: result: $have_cv_pragma_pack" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cv_pragma_pack" >&5 $as_echo "$have_cv_pragma_pack" >&6; } if test "$have_cv_pragma_pack" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_PRAGMA_PACK 1 -_ACEOF +$as_echo "#define HAVE_PRAGMA_PACK 1" >>confdefs.h else - { $as_echo "$as_me:$LINENO: checking for structure packing via hppa/hp-ux pragma" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for structure packing via hppa/hp-ux pragma" >&5 $as_echo_n "checking for structure packing via hppa/hp-ux pragma... " >&6; } - if test "${have_cv_pragma_pack_hpux+set}" = set; then + if ${have_cv_pragma_pack_hpux+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* hppa/hp-ux wants pragma outside of function */ @@ -22743,66 +18685,33 @@ int main(int argc, char **argv) { return sizeof(s)==sizeof(s.c)+sizeof(s.l) ? 0:1; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : have_cv_pragma_pack_hpux=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_cv_pragma_pack_hpux=no + have_cv_pragma_pack_hpux=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi - { $as_echo "$as_me:$LINENO: result: $have_cv_pragma_pack_hpux" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cv_pragma_pack_hpux" >&5 $as_echo "$have_cv_pragma_pack_hpux" >&6; } -cat >>confdefs.h <<\_ACEOF -#define HAVE_PRAGMA_PACK_HPPA 1 -_ACEOF +$as_echo "#define HAVE_PRAGMA_PACK_HPPA 1" >>confdefs.h fi fi -{ $as_echo "$as_me:$LINENO: checking for type aligning via __attribute__((aligned))" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type aligning via __attribute__((aligned))" >&5 $as_echo_n "checking for type aligning via __attribute__((aligned))... " >&6; } -if test "${have_cv_attrib_aligned+set}" = set; then +if ${have_cv_attrib_aligned+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -22813,75 +18722,44 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : have_cv_attrib_aligned=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - have_cv_attrib_aligned=no + have_cv_attrib_aligned=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $have_cv_attrib_aligned" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cv_attrib_aligned" >&5 $as_echo "$have_cv_attrib_aligned" >&6; } if test "$have_cv_attrib_packed" = no -a "$have_cv_pragma_pack" = no -a "$have_cv_pragma_pack_hpux" = no; then - { { $as_echo "$as_me:$LINENO: error: Need to know how to pack structures with this compiler" >&5 -$as_echo "$as_me: error: Need to know how to pack structures with this compiler" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Need to know how to pack structures with this compiler" "$LINENO" 5 fi if test "$have_cv_attrib_packed" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ATTRIB_PACKED 1 -_ACEOF +$as_echo "#define HAVE_ATTRIB_PACKED 1" >>confdefs.h fi if test "$have_cv_attrib_aligned" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ATTRIB_ALIGNED 1 -_ACEOF +$as_echo "#define HAVE_ATTRIB_ALIGNED 1" >>confdefs.h fi -{ $as_echo "$as_me:$LINENO: checking that structure packing works" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that structure packing works" >&5 $as_echo_n "checking that structure packing works... " >&6; } -if test "${have_cv_struct_pack+set}" = set; then +if ${have_cv_struct_pack+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : have_cv_struct_pack=yes else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef HAVE_ATTRIB_PACKED @@ -22929,85 +18807,46 @@ return (sizeof(s2) >= sizeof(s)) ? 0 : 3; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : have_cv_struct_pack=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_cv_struct_pack=no + have_cv_struct_pack=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi -{ $as_echo "$as_me:$LINENO: result: $have_cv_struct_pack" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cv_struct_pack" >&5 $as_echo "$have_cv_struct_pack" >&6; } if test "$have_cv_struct_pack" = "no"; then - { { $as_echo "$as_me:$LINENO: error: Structure packing seems to be available, but is not working with this compiler" >&5 -$as_echo "$as_me: error: Structure packing seems to be available, but is not working with this compiler" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Structure packing seems to be available, but is not working with this compiler" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: checking for fd_set" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5 $as_echo_n "checking for fd_set... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "fd_mask" >/dev/null 2>&1; then + $EGREP "fd_mask" >/dev/null 2>&1; then : have_fd_set=yes fi rm -f conftest* if test "$have_fd_set" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_SYS_SELECT_H 1 -_ACEOF +$as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h - { $as_echo "$as_me:$LINENO: result: yes, found in sys/select.h" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5 $as_echo "yes, found in sys/select.h" >&6; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -23022,57 +18861,30 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : have_fd_set=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - have_fd_set=no + have_fd_set=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$have_fd_set" = yes; then - { $as_echo "$as_me:$LINENO: result: yes, found in sys/types.h" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5 $as_echo "yes, found in sys/types.h" >&6; } else -cat >>confdefs.h <<\_ACEOF -#define NO_FD_SET 1 -_ACEOF +$as_echo "#define NO_FD_SET 1" >>confdefs.h - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi -{ $as_echo "$as_me:$LINENO: checking default FD_SETSIZE value" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default FD_SETSIZE value" >&5 $as_echo_n "checking default FD_SETSIZE value... " >&6; } -if test "$cross_compiling" = yes; then +if test "$cross_compiling" = yes; then : DEFAULT_FD_SETSIZE=256 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -23100,43 +18912,16 @@ } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : DEFAULT_FD_SETSIZE=`cat conftestval` else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -DEFAULT_FD_SETSIZE=256 + DEFAULT_FD_SETSIZE=256 fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - -{ $as_echo "$as_me:$LINENO: result: $DEFAULT_FD_SETSIZE" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_FD_SETSIZE" >&5 $as_echo "$DEFAULT_FD_SETSIZE" >&6; } cat >>confdefs.h <<_ACEOF @@ -23144,161 +18929,83 @@ _ACEOF -{ $as_echo "$as_me:$LINENO: checking whether signed right shift is sign extended" >&5 -$as_echo_n "checking whether signed right shift is sign extended... " >&6; } -if test "$cross_compiling" = yes; then - have_signed_rightshift_extended=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int main(void){int a=-1;int b=a>>1;return(a!=b);} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - have_signed_rightshift_extended=yes -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_signed_rightshift_extended=no -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -if test $have_signed_rightshift_extended = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SAR 1 -_ACEOF - -fi -{ $as_echo "$as_me:$LINENO: result: $have_signed_rightshift_extended" >&5 -$as_echo "$have_signed_rightshift_extended" >&6; }; - - - - -for ac_func in recvmsg sendmsg -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stat64" >&5 +$as_echo_n "checking stat64... " >&6; } +if test "$cross_compiling" = yes; then : + enable_stat64=no else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +#define _LARGEFILE_SOURCE +#define _LARGEFILE64_SOURCE +#include +#include +#include +#include +#include -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +int main(void) { + struct stat64 sb; + + if (stat64(".", &sb) == -1) + return errno; + + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + enable_stat64=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + enable_stat64=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +if test "$enable_stat64" != "no"; then + +$as_echo "#define HAVE_STAT64 1" >>confdefs.h + +CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stat64" >&5 +$as_echo "$enable_stat64" >&6; } - eval "$as_ac_var=no" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signed right shift is sign extended" >&5 +$as_echo_n "checking whether signed right shift is sign extended... " >&6; } +if test "$cross_compiling" = yes; then : + have_signed_rightshift_extended=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int main(void){int a=-1;int b=a>>1;return(a!=b);} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + have_signed_rightshift_extended=yes +else + have_signed_rightshift_extended=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +if test $have_signed_rightshift_extended = yes; then + +$as_echo "#define HAVE_SAR 1" >>confdefs.h + fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_signed_rightshift_extended" >&5 +$as_echo "$have_signed_rightshift_extended" >&6; }; + + +for ac_func in recvmsg sendmsg +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -23306,17 +19013,13 @@ fi done -{ $as_echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } -if test "${ac_cv_have_control_in_msghdr+set}" = set; then +if ${ac_cv_have_control_in_msghdr+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE 500 @@ -23343,42 +19046,21 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_control_in_msghdr="yes" else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_control_in_msghdr="no" + ac_cv_have_control_in_msghdr="no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 $as_echo "$ac_cv_have_control_in_msghdr" >&6; } if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then - { $as_echo "$as_me:$LINENO: checking BSD 4.4 / RFC2292 style fd passing" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking BSD 4.4 / RFC2292 style fd passing" >&5 $as_echo_n "checking BSD 4.4 / RFC2292 style fd passing... " >&6; } # Check whether --enable-fdpassing was given. -if test "${enable_fdpassing+set}" = set; then +if test "${enable_fdpassing+set}" = set; then : enableval=$enable_fdpassing; want_fdpassing=$enableval else want_fdpassing="yes" @@ -23386,18 +19068,14 @@ if test "x$want_fdpassing" = "xyes"; then - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : have_fdpass=0 else - cat >conftest.$ac_ext <<_ACEOF - -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #ifdef HAVE_SYS_TYPES_H #include #endif @@ -23548,55 +19226,24 @@ _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : have_fdpass=1; fdpass_need_xopen=0 else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_fdpass=0 + have_fdpass=0 fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - if test $have_fdpass = 0; then - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : have_fdpass=0 else - cat >conftest.$ac_ext <<_ACEOF - -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #define _XOPEN_SOURCE 500 #ifdef HAVE_SYS_TYPES_H #include @@ -23748,69 +19395,38 @@ _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : have_fdpass=1; fdpass_need_xopen=1 else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_fdpass=0 + have_fdpass=0 fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi if test $have_fdpass = 1; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_FD_PASSING 1 -_ACEOF +$as_echo "#define HAVE_FD_PASSING 1" >>confdefs.h if test $fdpass_need_xopen = 1; then -cat >>confdefs.h <<\_ACEOF -#define FDPASS_NEED_XOPEN 1 -_ACEOF +$as_echo "#define FDPASS_NEED_XOPEN 1" >>confdefs.h - { $as_echo "$as_me:$LINENO: result: yes, by defining _XOPEN_SOURCE" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, by defining _XOPEN_SOURCE" >&5 $as_echo "yes, by defining _XOPEN_SOURCE" >&6; } else - { $as_echo "$as_me:$LINENO: result: yes" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else - { $as_echo "$as_me:$LINENO: result: disabled" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 $as_echo "disabled" >&6; } fi fi @@ -23828,7 +19444,7 @@ # Check whether --enable-clamdtop was given. -if test "${enable_clamdtop+set}" = set; then +if test "${enable_clamdtop+set}" = set; then : enableval=$enable_clamdtop; enable_clamdtop=$enableval else enable_clamdtop="auto" @@ -23863,7 +19479,7 @@ # Check whether --with-libncurses-prefix was given. -if test "${with_libncurses_prefix+set}" = set; then +if test "${with_libncurses_prefix+set}" = set; then : withval=$with_libncurses_prefix; if test "X$withval" = "Xno"; then use_additional=no @@ -24293,139 +19909,8 @@ fi CPPFLAGS="$CPPFLAGS $INCNCURSES" - if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for ncurses/ncurses.h" >&5 -$as_echo_n "checking for ncurses/ncurses.h... " >&6; } -if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then - $as_echo_n "(cached) " >&6 -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_ncurses_h" >&5 -$as_echo "$ac_cv_header_ncurses_ncurses_h" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking ncurses/ncurses.h usability" >&5 -$as_echo_n "checking ncurses/ncurses.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking ncurses/ncurses.h presence" >&5 -$as_echo_n "checking ncurses/ncurses.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: ncurses/ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: ncurses/ncurses.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: ncurses/ncurses.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: ncurses/ncurses.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: ncurses/ncurses.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: ncurses/ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: ncurses/ncurses.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: ncurses/ncurses.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## -------------------------------------- ## -## Report this to http://bugs.clamav.net/ ## -## -------------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for ncurses/ncurses.h" >&5 -$as_echo_n "checking for ncurses/ncurses.h... " >&6; } -if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_header_ncurses_ncurses_h=$ac_header_preproc -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_ncurses_h" >&5 -$as_echo "$ac_cv_header_ncurses_ncurses_h" >&6; } - -fi -if test "x$ac_cv_header_ncurses_ncurses_h" = x""yes; then + ac_fn_c_check_header_mongrel "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default" +if test "x$ac_cv_header_ncurses_ncurses_h" = xyes; then : have_header=yes else have_header=no @@ -24435,16 +19920,12 @@ ac_cv_findlib_NCURSES_libs= ac_cv_findlib_NCURSES_ltlibs= ac_cv_findlib_NCURSES_inc= - if test "$have_header" = "yes"; then + if test "$have_header" = "yes"; then : LIBS="$LIBS $LIBNCURSES" - { $as_echo "$as_me:$LINENO: checking linking with ncurses" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking with ncurses" >&5 $as_echo_n "checking linking with ncurses... " >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -24455,64 +19936,34 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_findlib_NCURSES_libs="$LIBNCURSES" ac_cv_findlib_NCURSES_ltlibs="$LTLIBNCURSES" ac_cv_findlib_NCURSES_inc="$INCNCURSES" - { $as_echo "$as_me:$LINENO: result: ok" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi - CPPFLAGS="$save_CPPFLAGS" LIBS="$save_LIBS" - if test "X$ac_cv_findlib_NCURSES_libs" = "X"; then + if test "X$ac_cv_findlib_NCURSES_libs" = "X"; then : - { $as_echo "$as_me:$LINENO: unable to compile/link with ncurses" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: unable to compile/link with ncurses" >&5 $as_echo "$as_me: unable to compile/link with ncurses" >&6;} HAVE_LIBNCURSES=no else - { $as_echo "$as_me:$LINENO: Compiling and linking with ncurses by using $ac_cv_findlib_NCURSES_inc $ac_cv_findlib_NCURSES_libs" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling and linking with ncurses by using $ac_cv_findlib_NCURSES_inc $ac_cv_findlib_NCURSES_libs" >&5 $as_echo "$as_me: Compiling and linking with ncurses by using $ac_cv_findlib_NCURSES_inc $ac_cv_findlib_NCURSES_libs" >&6;} -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBNCURSES 1 -_ACEOF +$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h HAVE_LIBNCURSES=yes LIBNCURSES="$ac_cv_findlib_NCURSES_libs" @@ -24525,7 +19976,6 @@ - if test "X$HAVE_LIBNCURSES" != "Xyes"; then HAVE_LIBNCURSES= @@ -24554,7 +20004,7 @@ # Check whether --with-libncurses-prefix was given. -if test "${with_libncurses_prefix+set}" = set; then +if test "${with_libncurses_prefix+set}" = set; then : withval=$with_libncurses_prefix; if test "X$withval" = "Xno"; then use_additional=no @@ -24984,139 +20434,8 @@ fi CPPFLAGS="$CPPFLAGS $INCNCURSES" - if test "${ac_cv_header_ncurses_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for ncurses.h" >&5 -$as_echo_n "checking for ncurses.h... " >&6; } -if test "${ac_cv_header_ncurses_h+set}" = set; then - $as_echo_n "(cached) " >&6 -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5 -$as_echo "$ac_cv_header_ncurses_h" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking ncurses.h usability" >&5 -$as_echo_n "checking ncurses.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking ncurses.h presence" >&5 -$as_echo_n "checking ncurses.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: ncurses.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: ncurses.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: ncurses.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: ncurses.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: ncurses.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## -------------------------------------- ## -## Report this to http://bugs.clamav.net/ ## -## -------------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for ncurses.h" >&5 -$as_echo_n "checking for ncurses.h... " >&6; } -if test "${ac_cv_header_ncurses_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_header_ncurses_h=$ac_header_preproc -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5 -$as_echo "$ac_cv_header_ncurses_h" >&6; } - -fi -if test "x$ac_cv_header_ncurses_h" = x""yes; then + ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" +if test "x$ac_cv_header_ncurses_h" = xyes; then : have_header=yes else have_header=no @@ -25126,84 +20445,50 @@ ac_cv_findlib_NCURSES_libs= ac_cv_findlib_NCURSES_ltlibs= ac_cv_findlib_NCURSES_inc= - if test "$have_header" = "yes"; then + if test "$have_header" = "yes"; then : LIBS="$LIBS $LIBNCURSES" - { $as_echo "$as_me:$LINENO: checking linking with ncurses" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking with ncurses" >&5 $as_echo_n "checking linking with ncurses... " >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include -int -main () -{ -initscr(); KEY_RESIZE; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +int +main () +{ +initscr(); KEY_RESIZE; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : ac_cv_findlib_NCURSES_libs="$LIBNCURSES" ac_cv_findlib_NCURSES_ltlibs="$LTLIBNCURSES" ac_cv_findlib_NCURSES_inc="$INCNCURSES" - { $as_echo "$as_me:$LINENO: result: ok" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi - CPPFLAGS="$save_CPPFLAGS" LIBS="$save_LIBS" - if test "X$ac_cv_findlib_NCURSES_libs" = "X"; then + if test "X$ac_cv_findlib_NCURSES_libs" = "X"; then : - { $as_echo "$as_me:$LINENO: unable to compile/link with ncurses" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: unable to compile/link with ncurses" >&5 $as_echo "$as_me: unable to compile/link with ncurses" >&6;} HAVE_LIBNCURSES=no else - { $as_echo "$as_me:$LINENO: Compiling and linking with ncurses by using $ac_cv_findlib_NCURSES_inc $ac_cv_findlib_NCURSES_libs" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling and linking with ncurses by using $ac_cv_findlib_NCURSES_inc $ac_cv_findlib_NCURSES_libs" >&5 $as_echo "$as_me: Compiling and linking with ncurses by using $ac_cv_findlib_NCURSES_inc $ac_cv_findlib_NCURSES_libs" >&6;} -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBNCURSES 1 -_ACEOF +$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h HAVE_LIBNCURSES=yes LIBNCURSES="$ac_cv_findlib_NCURSES_libs" @@ -25215,7 +20500,6 @@ fi - fi if test "X$HAVE_LIBNCURSES" != "Xyes"; then @@ -25245,7 +20529,7 @@ # Check whether --with-libpdcurses-prefix was given. -if test "${with_libpdcurses_prefix+set}" = set; then +if test "${with_libpdcurses_prefix+set}" = set; then : withval=$with_libpdcurses_prefix; if test "X$withval" = "Xno"; then use_additional=no @@ -25675,139 +20959,8 @@ fi CPPFLAGS="$CPPFLAGS $INCPDCURSES" - if test "${ac_cv_header_curses_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for curses.h" >&5 -$as_echo_n "checking for curses.h... " >&6; } -if test "${ac_cv_header_curses_h+set}" = set; then - $as_echo_n "(cached) " >&6 -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5 -$as_echo "$ac_cv_header_curses_h" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking curses.h usability" >&5 -$as_echo_n "checking curses.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking curses.h presence" >&5 -$as_echo_n "checking curses.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## -------------------------------------- ## -## Report this to http://bugs.clamav.net/ ## -## -------------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for curses.h" >&5 -$as_echo_n "checking for curses.h... " >&6; } -if test "${ac_cv_header_curses_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_header_curses_h=$ac_header_preproc -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5 -$as_echo "$ac_cv_header_curses_h" >&6; } - -fi -if test "x$ac_cv_header_curses_h" = x""yes; then + ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" +if test "x$ac_cv_header_curses_h" = xyes; then : have_header=yes else have_header=no @@ -25817,16 +20970,12 @@ ac_cv_findlib_PDCURSES_libs= ac_cv_findlib_PDCURSES_ltlibs= ac_cv_findlib_PDCURSES_inc= - if test "$have_header" = "yes"; then + if test "$have_header" = "yes"; then : LIBS="$LIBS $LIBPDCURSES" - { $as_echo "$as_me:$LINENO: checking linking with pdcurses" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking with pdcurses" >&5 $as_echo_n "checking linking with pdcurses... " >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -25837,65 +20986,35 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_findlib_PDCURSES_libs="$LIBPDCURSES" ac_cv_findlib_PDCURSES_ltlibs="$LTLIBPDCURSES" ac_cv_findlib_PDCURSES_inc="$INCPDCURSES" - { $as_echo "$as_me:$LINENO: result: ok" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi - CPPFLAGS="$save_CPPFLAGS" LIBS="$save_LIBS" - if test "X$ac_cv_findlib_PDCURSES_libs" = "X"; then + if test "X$ac_cv_findlib_PDCURSES_libs" = "X"; then : - { $as_echo "$as_me:$LINENO: unable to compile/link with pdcurses" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: unable to compile/link with pdcurses" >&5 $as_echo "$as_me: unable to compile/link with pdcurses" >&6;} HAVE_LIBPDCURSES=no - { $as_echo "$as_me:$LINENO: WARNING: ****** not building clamdtop: ncurses not found" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** not building clamdtop: ncurses not found" >&5 $as_echo "$as_me: WARNING: ****** not building clamdtop: ncurses not found" >&2;} else - { $as_echo "$as_me:$LINENO: Compiling and linking with pdcurses by using $ac_cv_findlib_PDCURSES_inc $ac_cv_findlib_PDCURSES_libs" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling and linking with pdcurses by using $ac_cv_findlib_PDCURSES_inc $ac_cv_findlib_PDCURSES_libs" >&5 $as_echo "$as_me: Compiling and linking with pdcurses by using $ac_cv_findlib_PDCURSES_inc $ac_cv_findlib_PDCURSES_libs" >&6;} -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBPDCURSES 1 -_ACEOF +$as_echo "#define HAVE_LIBPDCURSES 1" >>confdefs.h HAVE_LIBPDCURSES=yes LIBPDCURSES="$ac_cv_findlib_PDCURSES_libs" @@ -25908,19 +21027,13 @@ fi - fi if test "x$CURSES_LIBS" = "x" -a "$enable_clamdtop" = "yes"; then - { { $as_echo "$as_me:$LINENO: error: - -ERROR! Clamdtop was configured, but not found. You need to install libncurses5-dev. -" >&5 -$as_echo "$as_me: error: + as_fn_error $? " ERROR! Clamdtop was configured, but not found. You need to install libncurses5-dev. -" >&2;} - { (exit 1); exit 1; }; } +" "$LINENO" 5 fi fi @@ -25942,7 +21055,7 @@ # Check whether --enable-distcheck-werror was given. -if test "${enable_distcheck_werror+set}" = set; then +if test "${enable_distcheck_werror+set}" = set; then : enableval=$enable_distcheck_werror; enable_distcheckwerror=$enableval else enable_distcheckwerror="no" @@ -25954,14 +21067,20 @@ # Some configure tests fail (like checking for cos in -lm) if we enable these # Werror flags for configure too (for example -Wstrict-prototypes makes # configure think that -lm doesn't have cos, hence its in libc). +WERR_CFLAGS= +WERR_CFLAGS_MILTER= if test "x$enable_distcheckwerror" = "xyes"; then if test "$distcheck_enable_flags" = "1"; then - CFLAGS="$CFLAGS -Wno-pointer-sign -Werror-implicit-function-declaration -Wno-error=strict-aliasing -Werror -Wextra -Wall -Wno-error=bad-function-cast -Wbad-function-cast -Wcast-align -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wno-error=missing-prototypes -Wnested-externs -Wno-error=nested-externs -Wpointer-arith -Wstrict-prototypes -Wno-error=strict-prototypes -Wno-switch -Wno-switch-enum -Wundef -Wwrite-strings -Wstrict-overflow=1 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wdeclaration-after-statement -Waggregate-return -Wmissing-format-attribute -Wno-error=missing-format-attribute -Wno-error=type-limits -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-value -Wno-error=unused-variable -Wcast-qual -Wno-error=cast-qual -Wno-error=sign-compare -Wshadow -Wno-error=shadow -Wno-error=uninitialized -fdiagnostics-show-option -Wno-unused-parameter -Wno-error=unreachable-code -Winvalid-pch -Wno-error=invalid-pch -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -Wno-error=aggregate-return" + WERR_COMMON="-Wno-pointer-sign -Werror-implicit-function-declaration -Werror -Wextra -Wall -Wno-error=strict-aliasing -Wno-error=bad-function-cast -Wbad-function-cast -Wcast-align -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wno-error=missing-prototypes -Wnested-externs -Wno-error=nested-externs -Wpointer-arith -Wstrict-prototypes -Wno-error=strict-prototypes -Wno-switch -Wno-switch-enum -Wundef -Wstrict-overflow=1 -Winit-self -Wmissing-include-dirs -Wdeclaration-after-statement -Waggregate-return -Wmissing-format-attribute -Wno-error=missing-format-attribute -Wno-error=type-limits -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-value -Wno-error=unused-variable -Wcast-qual -Wno-error=cast-qual -Wno-error=sign-compare -Wshadow -Wno-error=shadow -Wno-error=uninitialized -fdiagnostics-show-option -Wno-unused-parameter -Wno-error=unreachable-code -Winvalid-pch -Wno-error=invalid-pch -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -Wno-error=aggregate-return" + WERR_CFLAGS="$WERR_COMMON -Wwrite-strings" + WERR_CFLAGS_MILTER="$WERR_COMMON -Wno-error=format-nonliteral" fi fi + + # Check whether --enable-llvm was given. -if test "${enable_llvm+set}" = set; then +if test "${enable_llvm+set}" = set; then : enableval=$enable_llvm; enable_llvm=$enableval else enable_llvm="auto" @@ -25983,7 +21102,7 @@ fi # Check whether --enable-sha-collector-for-internal-use was given. -if test "${enable_sha_collector_for_internal_use+set}" = set; then +if test "${enable_sha_collector_for_internal_use+set}" = set; then : enableval=$enable_sha_collector_for_internal_use; enable_sha_collector="yes" else enable_sha_collector="no" @@ -25991,9 +21110,7 @@ if test "$enable_sha_collector" != "no"; then -cat >>confdefs.h <<\_ACEOF -#define HAVE__INTERNAL__SHA_COLLECT 1 -_ACEOF +$as_echo "#define HAVE__INTERNAL__SHA_COLLECT 1" >>confdefs.h fi @@ -26026,13 +21143,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) $as_unset $ac_var ;; + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -26040,8 +21157,8 @@ (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" @@ -26063,12 +21180,23 @@ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi else - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi @@ -26082,14 +21210,15 @@ ac_libobjs= ac_ltlibobjs= +U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs @@ -26105,32 +21234,20 @@ fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi LT_CONFIG_H=clamav-config.h @@ -26151,76 +21268,50 @@ if test -z "${VERSIONSCRIPT_TRUE}" && test -z "${VERSIONSCRIPT_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"VERSIONSCRIPT\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"VERSIONSCRIPT\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"VERSIONSCRIPT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LIBCHECK_TRUE}" && test -z "${HAVE_LIBCHECK_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBCHECK\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"HAVE_LIBCHECK\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"HAVE_LIBCHECK\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_COVERAGE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"ENABLE_COVERAGE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIBBZ2_TRUE}" && test -z "${HAVE_LIBBZ2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBBZ2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_UNRAR\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"ENABLE_UNRAR\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${LINK_TOMMATH_TRUE}" && test -z "${LINK_TOMMATH_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"LINK_TOMMATH\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"LINK_TOMMATH\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"ENABLE_UNRAR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CLAMD_TRUE}" && test -z "${BUILD_CLAMD_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CLAMD\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"BUILD_CLAMD\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"BUILD_CLAMD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_MILTER_TRUE}" && test -z "${HAVE_MILTER_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MILTER\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"HAVE_MILTER\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"HAVE_MILTER\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CURSES\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"HAVE_CURSES\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"HAVE_CURSES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -: ${CONFIG_STATUS=./config.status} +: "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. @@ -26230,17 +21321,18 @@ debug=false ac_cs_recheck=false ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which @@ -26248,23 +21340,15 @@ alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - as_nl=' ' export as_nl @@ -26272,7 +21356,13 @@ as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else @@ -26283,7 +21373,7 @@ as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; - case $arg in + case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; @@ -26306,13 +21396,6 @@ } fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - # IFS # We need space, tab and new line, in precisely that order. Quoting is @@ -26322,15 +21405,16 @@ IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +as_myself= +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -26342,12 +21426,16 @@ fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' @@ -26359,7 +21447,89 @@ LANGUAGE=C export LANGUAGE -# Required to use basename. +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -26373,8 +21543,12 @@ as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ @@ -26394,133 +21568,118 @@ } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file else - as_expr=false + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -p' - fi -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null +} # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -26530,13 +21689,19 @@ exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 -# Save the log message, to keep $[0] and so on meaningful, and to +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by ClamAV $as_me 0.97.8, which was -generated by GNU Autoconf 2.63. Invocation command line was +This file was extended by ClamAV $as_me 0.98.1, which was +generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -26568,13 +21733,15 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. -Usage: $0 [OPTION]... [FILE]... +Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit + --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files @@ -26593,16 +21760,18 @@ Configuration commands: $config_commands -Report bugs to ." +Report bugs to . +ClamAV home page: ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -ClamAV config.status 0.97.8 -configured by $0, generated by GNU Autoconf 2.63, - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +ClamAV config.status 0.98.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" -Copyright (C) 2008 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -26620,11 +21789,16 @@ while test $# != 0 do case $1 in - --*=*) + --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; *) ac_option=$1 ac_optarg=$2 @@ -26638,27 +21812,29 @@ ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; esac - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" + as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" + as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - { $as_echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; };; + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -26666,11 +21842,10 @@ ac_cs_silent=: ;; # This is an error. - -*) { $as_echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; - *) ac_config_targets="$ac_config_targets $1" + *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac @@ -26687,7 +21862,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' @@ -26721,131 +21896,154 @@ sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' -lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' -lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' -lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' -OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' -DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' -NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' -LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' -OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' -OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' -compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + # Quote evaled strings. -for var in SED \ +for var in SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ GREP \ EGREP \ FGREP \ @@ -26858,8 +22056,13 @@ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +DLLTOOL \ +sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ +archiver_list_spec \ STRIP \ RANLIB \ CC \ @@ -26869,14 +22072,14 @@ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ -SHELL \ -ECHO \ +nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ -lt_prog_compiler_wl \ lt_prog_compiler_pic \ +lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ +MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ @@ -26890,9 +22093,7 @@ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ -hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ -fix_srcfile_path \ exclude_expsyms \ include_expsyms \ file_list_spec \ @@ -26900,12 +22101,13 @@ libname_spec \ library_names_spec \ soname_spec \ +install_override_mode \ finish_eval \ old_striplib \ striplib; do - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" @@ -26927,14 +22129,15 @@ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ +postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" @@ -26942,12 +22145,6 @@ esac done -# Fix-up fallback echo if it was mangled by the above quoting rules. -case \$lt_ECHO in -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` - ;; -esac - ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' @@ -27011,9 +22208,7 @@ "docs/man/sigtool.1") CONFIG_FILES="$CONFIG_FILES docs/man/sigtool.1" ;; "docs/man/clamdtop.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamdtop.1" ;; - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done @@ -27036,26 +22231,24 @@ # after its creation but before its name has been assigned to `$tmp'. $debug || { - tmp= + tmp= ac_tmp= trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" + test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") -} || -{ - $as_echo "$as_me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. @@ -27063,7 +22256,13 @@ if test -n "$CONFIG_FILES"; then -ac_cr=' ' +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' @@ -27071,7 +22270,7 @@ ac_cs_awk_cr=$ac_cr fi -echo 'BEGIN {' >"$tmp/subs1.awk" && +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF @@ -27080,24 +22279,18 @@ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi @@ -27105,7 +22298,7 @@ rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h @@ -27119,7 +22312,7 @@ t delim :nl h -s/\(.\{148\}\).*/\1/ +s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p @@ -27133,7 +22326,7 @@ t nl :delim h -s/\(.\{148\}\).*/\1/ +s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p @@ -27153,7 +22346,7 @@ rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK -cat >>"\$tmp/subs1.awk" <<_ACAWK && +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" @@ -27185,23 +22378,29 @@ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 -$as_echo "$as_me: error: could not setup config files machinery" >&2;} - { (exit 1); exit 1; }; } +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// s/^[^=]*=[ ]*$// }' fi @@ -27213,7 +22412,7 @@ # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then -cat >"$tmp/defines.awk" <<\_ACAWK || +cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF @@ -27225,13 +22424,11 @@ # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do - ac_t=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_t"; then + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then break elif $ac_last_try; then - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi @@ -27316,9 +22513,7 @@ _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 -$as_echo "$as_me: error: could not setup config headers machinery" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" @@ -27331,9 +22526,7 @@ esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} - { (exit 1); exit 1; }; };; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -27352,7 +22545,7 @@ for ac_f do case $ac_f in - -) ac_f="$tmp/stdin";; + -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. @@ -27361,12 +22554,10 @@ [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac - ac_file_inputs="$ac_file_inputs '$ac_f'" + as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't @@ -27377,7 +22568,7 @@ `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. @@ -27389,10 +22580,8 @@ esac case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } ;; + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac @@ -27420,47 +22609,7 @@ q } s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in @@ -27517,7 +22666,6 @@ # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= - ac_sed_dataroot=' /datarootdir/ { p @@ -27527,12 +22675,11 @@ /@docdir@/p /@infodir@/p /@localedir@/p -/@mandir@/p -' +/@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -27542,7 +22689,7 @@ s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; + s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF @@ -27570,27 +22717,24 @@ s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} +which seems to be undefined. Please make sure it is defined" >&2;} - rm -f "$tmp/stdin" + rm -f "$ac_tmp/stdin" case $ac_file in - -) cat "$tmp/out" && rm -f "$tmp/out";; - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # @@ -27599,27 +22743,21 @@ if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" - } >"$tmp/config.h" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" - mv "$tmp/config.h" "$ac_file" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 -$as_echo "$as_me: error: could not create -" >&2;} - { (exit 1); exit 1; }; } + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" @@ -27657,7 +22795,7 @@ s/.*/./; q'`/stamp-h$_am_stamp_count ;; - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -27752,47 +22890,7 @@ q } s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done @@ -27820,7 +22918,8 @@ # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008 Free Software Foundation, Inc. +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. @@ -27868,6 +22967,15 @@ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + # The host system. host_alias=$host_alias host=$host @@ -27917,9 +23025,11 @@ # turn newlines into spaces. NL2SP=$lt_lt_NL2SP -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP @@ -27927,13 +23037,30 @@ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == "file_magic". +# Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + # The archiver. AR=$lt_AR + +# Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + # A symbol stripping program. STRIP=$lt_STRIP @@ -27942,6 +23069,9 @@ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + # A C compiler. LTCC=$lt_CC @@ -27960,14 +23090,14 @@ # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix -# The name of the directory that contains temporary libtool files. -objdir=$objdir +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot -# An echo program that does not interpret backslashes. -ECHO=$lt_ECHO +# The name of the directory that contains temporary libtool files. +objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD @@ -27975,6 +23105,9 @@ # Must we lock files when doing compilation? need_locks=$lt_need_locks +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL @@ -28031,6 +23164,9 @@ # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds @@ -28070,6 +23206,10 @@ # The linker used to build libraries. LD=$lt_LD +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds @@ -28082,12 +23222,12 @@ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static @@ -28137,10 +23277,6 @@ # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec -# If ld is used when linking, flag to hardcode \$libdir into a binary -# during linking. This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld - # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator @@ -28174,262 +23310,219 @@ # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to "yes" if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# Commands necessary for linking programs (against libraries) with templates. -prelink_cmds=$lt_prelink_cmds - -# Specify filename containing input files. -file_list_spec=$lt_file_list_spec - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# ### END LIBTOOL CONFIG - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - -ltmain="$ac_aux_dir/ltmain.sh" - - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - case $xsi_shell in - yes) - cat << \_LT_EOF >> "$cfgfile" - -# func_dirname file append nondir_replacement -# Compute the dirname of FILE. If nonempty, add APPEND to the result, -# otherwise set result to NONDIR_REPLACEMENT. -func_dirname () -{ - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac -} - -# func_basename file -func_basename () -{ - func_basename_result="${1##*/}" -} - -# func_dirname_and_basename file append nondir_replacement -# perform func_basename and func_dirname in a single function -# call: -# dirname: Compute the dirname of FILE. If nonempty, -# add APPEND to the result, otherwise set result -# to NONDIR_REPLACEMENT. -# value returned in "$func_dirname_result" -# basename: Compute filename of FILE. -# value retuned in "$func_basename_result" -# Implementation must be kept synchronized with func_dirname -# and func_basename. For efficiency, we do not delegate to -# those functions but instead duplicate the functionality here. -func_dirname_and_basename () -{ - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac - func_basename_result="${1##*/}" -} - -# func_stripname prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -func_stripname () -{ - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are - # positional parameters, so assign one to ordinary parameter first. - func_stripname_result=${3} - func_stripname_result=${func_stripname_result#"${1}"} - func_stripname_result=${func_stripname_result%"${2}"} -} - -# func_opt_split -func_opt_split () -{ - func_opt_split_opt=${1%%=*} - func_opt_split_arg=${1#*=} -} - -# func_lo2o object -func_lo2o () -{ - case ${1} in - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; - *) func_lo2o_result=${1} ;; - esac -} - -# func_xform libobj-or-source -func_xform () -{ - func_xform_result=${1%.*}.lo -} - -# func_arith arithmetic-term... -func_arith () -{ - func_arith_result=$(( $* )) -} - -# func_len string -# STRING may not start with a hyphen. -func_len () -{ - func_len_result=${#1} -} - -_LT_EOF - ;; - *) # Bourne compatible functions. - cat << \_LT_EOF >> "$cfgfile" - -# func_dirname file append nondir_replacement -# Compute the dirname of FILE. If nonempty, add APPEND to the result, -# otherwise set result to NONDIR_REPLACEMENT. -func_dirname () -{ - # Extract subdirectory from the argument. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` - if test "X$func_dirname_result" = "X${1}"; then - func_dirname_result="${3}" - else - func_dirname_result="$func_dirname_result${2}" - fi -} - -# func_basename file -func_basename () -{ - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` -} - +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols -# func_stripname prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -# func_strip_suffix prefix name -func_stripname () -{ - case ${2} in - .*) func_stripname_result=`$ECHO "X${3}" \ - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; - *) func_stripname_result=`$ECHO "X${3}" \ - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; - esac -} +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds -# sed scripts: -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' -my_sed_long_arg='1s/^-[^=]*=//' +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms -# func_opt_split -func_opt_split () -{ - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` -} +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms -# func_lo2o object -func_lo2o () -{ - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` -} +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds -# func_xform libobj-or-source -func_xform () -{ - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` -} +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds -# func_arith arithmetic-term... -func_arith () -{ - func_arith_result=`expr "$@"` -} +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec -# func_len string -# STRING may not start with a hyphen. -func_len () -{ - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` -} +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action -_LT_EOF -esac +# ### END LIBTOOL CONFIG -case $lt_shell_append in - yes) - cat << \_LT_EOF >> "$cfgfile" - -# func_append var value -# Append VALUE to the end of shell variable VAR. -func_append () -{ - eval "$1+=\$2" -} _LT_EOF - ;; - *) - cat << \_LT_EOF >> "$cfgfile" - -# func_append var value -# Append VALUE to the end of shell variable VAR. -func_append () -{ - eval "$1=\$$1\$2" -} + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi _LT_EOF ;; esac - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + - mv -f "$cfgfile" "$ofile" || + mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" @@ -28439,15 +23532,12 @@ done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. @@ -28468,7 +23558,7 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit 1 fi @@ -28514,7 +23604,7 @@ case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac - ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done @@ -28543,49 +23633,9 @@ test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - $as_echo "$as_me:$LINENO: $ac_msg" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 $as_echo "$ac_msg" >&6 - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in @@ -28632,7 +23682,7 @@ # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else - { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi @@ -28646,7 +23696,7 @@ ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac - { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ @@ -28659,15 +23709,13 @@ fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi if test "$enable_llvm" = "yes" && test "$subdirfailed" != "no"; then - { { $as_echo "$as_me:$LINENO: error: Failed to configure LLVM, and LLVM was explicitly requested" >&5 -$as_echo "$as_me: error: Failed to configure LLVM, and LLVM was explicitly requested" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "Failed to configure LLVM, and LLVM was explicitly requested" "$LINENO" 5 fi if test "$subdirfailed" != "yes" && test "$enable_llvm" != "no"; then ENABLE_LLVM_TRUE= @@ -28707,13 +23755,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) $as_unset $ac_var ;; + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -28721,8 +23769,8 @@ (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" @@ -28744,12 +23792,23 @@ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi else - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi @@ -28763,14 +23822,15 @@ ac_libobjs= ac_ltlibobjs= +U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs @@ -28786,32 +23846,20 @@ fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi LT_CONFIG_H=clamav-config.h @@ -28832,90 +23880,58 @@ if test -z "${VERSIONSCRIPT_TRUE}" && test -z "${VERSIONSCRIPT_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"VERSIONSCRIPT\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"VERSIONSCRIPT\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"VERSIONSCRIPT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LIBCHECK_TRUE}" && test -z "${HAVE_LIBCHECK_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBCHECK\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"HAVE_LIBCHECK\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"HAVE_LIBCHECK\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_COVERAGE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"ENABLE_COVERAGE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIBBZ2_TRUE}" && test -z "${HAVE_LIBBZ2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBBZ2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_UNRAR\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"ENABLE_UNRAR\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${LINK_TOMMATH_TRUE}" && test -z "${LINK_TOMMATH_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"LINK_TOMMATH\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"LINK_TOMMATH\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"ENABLE_UNRAR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CLAMD_TRUE}" && test -z "${BUILD_CLAMD_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CLAMD\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"BUILD_CLAMD\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"BUILD_CLAMD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_MILTER_TRUE}" && test -z "${HAVE_MILTER_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MILTER\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"HAVE_MILTER\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"HAVE_MILTER\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CURSES\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"HAVE_CURSES\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"HAVE_CURSES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"am__EXEEXT\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"am__EXEEXT\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"am__EXEEXT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_LLVM_TRUE}" && test -z "${ENABLE_LLVM_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LLVM\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"ENABLE_LLVM\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "conditional \"ENABLE_LLVM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -: ${CONFIG_STATUS=./config.status} +: "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. @@ -28925,17 +23941,18 @@ debug=false ac_cs_recheck=false ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which @@ -28943,23 +23960,15 @@ alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - as_nl=' ' export as_nl @@ -28967,7 +23976,13 @@ as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else @@ -28978,7 +23993,7 @@ as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; - case $arg in + case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; @@ -29001,13 +24016,6 @@ } fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - # IFS # We need space, tab and new line, in precisely that order. Quoting is @@ -29017,15 +24025,16 @@ IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +as_myself= +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -29037,12 +24046,16 @@ fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' @@ -29054,7 +24067,89 @@ LANGUAGE=C export LANGUAGE -# Required to use basename. +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -29068,8 +24163,12 @@ as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ @@ -29089,76 +24188,25 @@ } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then @@ -29173,49 +24221,85 @@ # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. + # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' + as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -29225,13 +24309,19 @@ exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 -# Save the log message, to keep $[0] and so on meaningful, and to +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by ClamAV $as_me 0.97.8, which was -generated by GNU Autoconf 2.63. Invocation command line was +This file was extended by ClamAV $as_me 0.98.1, which was +generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -29263,13 +24353,15 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. -Usage: $0 [OPTION]... [FILE]... +Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit + --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files @@ -29288,16 +24380,18 @@ Configuration commands: $config_commands -Report bugs to ." +Report bugs to . +ClamAV home page: ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -ClamAV config.status 0.97.8 -configured by $0, generated by GNU Autoconf 2.63, - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +ClamAV config.status 0.98.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" -Copyright (C) 2008 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -29315,11 +24409,16 @@ while test $# != 0 do case $1 in - --*=*) + --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; *) ac_option=$1 ac_optarg=$2 @@ -29333,27 +24432,29 @@ ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; esac - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" + as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" + as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - { $as_echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; };; + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -29361,11 +24462,10 @@ ac_cs_silent=: ;; # This is an error. - -*) { $as_echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; - *) ac_config_targets="$ac_config_targets $1" + *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac @@ -29382,7 +24482,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' @@ -29416,131 +24516,154 @@ sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' -lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' -lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' -lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' -OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' -DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' -NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' -LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' -OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' -OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' -compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + # Quote evaled strings. -for var in SED \ +for var in SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ GREP \ EGREP \ FGREP \ @@ -29553,8 +24676,13 @@ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +DLLTOOL \ +sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ +archiver_list_spec \ STRIP \ RANLIB \ CC \ @@ -29564,14 +24692,14 @@ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ -SHELL \ -ECHO \ +nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ -lt_prog_compiler_wl \ lt_prog_compiler_pic \ +lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ +MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ @@ -29585,9 +24713,7 @@ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ -hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ -fix_srcfile_path \ exclude_expsyms \ include_expsyms \ file_list_spec \ @@ -29595,12 +24721,13 @@ libname_spec \ library_names_spec \ soname_spec \ +install_override_mode \ finish_eval \ old_striplib \ striplib; do - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" @@ -29622,14 +24749,15 @@ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ +postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" @@ -29637,12 +24765,6 @@ esac done -# Fix-up fallback echo if it was mangled by the above quoting rules. -case \$lt_ECHO in -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` - ;; -esac - ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' @@ -29708,9 +24830,7 @@ "docs/man/clamdtop.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamdtop.1" ;; "libclamav/Makefile") CONFIG_FILES="$CONFIG_FILES libclamav/Makefile" ;; - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done @@ -29733,26 +24853,24 @@ # after its creation but before its name has been assigned to `$tmp'. $debug || { - tmp= + tmp= ac_tmp= trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" + test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") -} || -{ - $as_echo "$as_me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. @@ -29760,7 +24878,13 @@ if test -n "$CONFIG_FILES"; then -ac_cr=' ' +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' @@ -29768,7 +24892,7 @@ ac_cs_awk_cr=$ac_cr fi -echo 'BEGIN {' >"$tmp/subs1.awk" && +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF @@ -29777,24 +24901,18 @@ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi @@ -29802,7 +24920,7 @@ rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h @@ -29816,7 +24934,7 @@ t delim :nl h -s/\(.\{148\}\).*/\1/ +s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p @@ -29830,7 +24948,7 @@ t nl :delim h -s/\(.\{148\}\).*/\1/ +s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p @@ -29850,7 +24968,7 @@ rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK -cat >>"\$tmp/subs1.awk" <<_ACAWK && +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" @@ -29882,23 +25000,29 @@ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 -$as_echo "$as_me: error: could not setup config files machinery" >&2;} - { (exit 1); exit 1; }; } +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// s/^[^=]*=[ ]*$// }' fi @@ -29910,7 +25034,7 @@ # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then -cat >"$tmp/defines.awk" <<\_ACAWK || +cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF @@ -29922,13 +25046,11 @@ # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do - ac_t=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_t"; then + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then break elif $ac_last_try; then - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi @@ -30013,9 +25135,7 @@ _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 -$as_echo "$as_me: error: could not setup config headers machinery" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" @@ -30028,9 +25148,7 @@ esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} - { (exit 1); exit 1; }; };; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -30049,7 +25167,7 @@ for ac_f do case $ac_f in - -) ac_f="$tmp/stdin";; + -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. @@ -30058,12 +25176,10 @@ [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac - ac_file_inputs="$ac_file_inputs '$ac_f'" + as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't @@ -30074,7 +25190,7 @@ `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. @@ -30086,10 +25202,8 @@ esac case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } ;; + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac @@ -30117,47 +25231,7 @@ q } s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in @@ -30214,7 +25288,6 @@ # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= - ac_sed_dataroot=' /datarootdir/ { p @@ -30224,12 +25297,11 @@ /@docdir@/p /@infodir@/p /@localedir@/p -/@mandir@/p -' +/@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -30239,7 +25311,7 @@ s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; + s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF @@ -30267,27 +25339,24 @@ s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} +which seems to be undefined. Please make sure it is defined" >&2;} - rm -f "$tmp/stdin" + rm -f "$ac_tmp/stdin" case $ac_file in - -) cat "$tmp/out" && rm -f "$tmp/out";; - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # @@ -30296,27 +25365,21 @@ if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" - } >"$tmp/config.h" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" - mv "$tmp/config.h" "$ac_file" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 -$as_echo "$as_me: error: could not create -" >&2;} - { (exit 1); exit 1; }; } + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" @@ -30354,7 +25417,7 @@ s/.*/./; q'`/stamp-h$_am_stamp_count ;; - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -30449,47 +25512,7 @@ q } s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done @@ -30517,7 +25540,8 @@ # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008 Free Software Foundation, Inc. +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. @@ -30565,6 +25589,15 @@ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + # The host system. host_alias=$host_alias host=$host @@ -30614,9 +25647,11 @@ # turn newlines into spaces. NL2SP=$lt_lt_NL2SP -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP @@ -30624,13 +25659,30 @@ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == "file_magic". +# Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + # The archiver. AR=$lt_AR + +# Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + # A symbol stripping program. STRIP=$lt_STRIP @@ -30639,6 +25691,9 @@ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + # A C compiler. LTCC=$lt_CC @@ -30657,14 +25712,14 @@ # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix -# The name of the directory that contains temporary libtool files. -objdir=$objdir +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot -# An echo program that does not interpret backslashes. -ECHO=$lt_ECHO +# The name of the directory that contains temporary libtool files. +objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD @@ -30672,6 +25727,9 @@ # Must we lock files when doing compilation? need_locks=$lt_need_locks +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL @@ -30728,6 +25786,9 @@ # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds @@ -30767,6 +25828,10 @@ # The linker used to build libraries. LD=$lt_LD +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds @@ -30779,12 +25844,12 @@ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static @@ -30834,10 +25899,6 @@ # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec -# If ld is used when linking, flag to hardcode \$libdir into a binary -# during linking. This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld - # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator @@ -30871,9 +25932,6 @@ # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols @@ -30889,6 +25947,9 @@ # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + # Specify filename containing input files. file_list_spec=$lt_file_list_spec @@ -30921,212 +25982,169 @@ # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - case $xsi_shell in - yes) - cat << \_LT_EOF >> "$cfgfile" - -# func_dirname file append nondir_replacement -# Compute the dirname of FILE. If nonempty, add APPEND to the result, -# otherwise set result to NONDIR_REPLACEMENT. -func_dirname () -{ - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac -} - -# func_basename file -func_basename () -{ - func_basename_result="${1##*/}" -} - -# func_dirname_and_basename file append nondir_replacement -# perform func_basename and func_dirname in a single function -# call: -# dirname: Compute the dirname of FILE. If nonempty, -# add APPEND to the result, otherwise set result -# to NONDIR_REPLACEMENT. -# value returned in "$func_dirname_result" -# basename: Compute filename of FILE. -# value retuned in "$func_basename_result" -# Implementation must be kept synchronized with func_dirname -# and func_basename. For efficiency, we do not delegate to -# those functions but instead duplicate the functionality here. -func_dirname_and_basename () -{ - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac - func_basename_result="${1##*/}" -} - -# func_stripname prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -func_stripname () -{ - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are - # positional parameters, so assign one to ordinary parameter first. - func_stripname_result=${3} - func_stripname_result=${func_stripname_result#"${1}"} - func_stripname_result=${func_stripname_result%"${2}"} -} - -# func_opt_split -func_opt_split () -{ - func_opt_split_opt=${1%%=*} - func_opt_split_arg=${1#*=} -} - -# func_lo2o object -func_lo2o () -{ - case ${1} in - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; - *) func_lo2o_result=${1} ;; - esac -} - -# func_xform libobj-or-source -func_xform () -{ - func_xform_result=${1%.*}.lo -} - -# func_arith arithmetic-term... -func_arith () -{ - func_arith_result=$(( $* )) -} - -# func_len string -# STRING may not start with a hyphen. -func_len () -{ - func_len_result=${#1} -} - -_LT_EOF - ;; - *) # Bourne compatible functions. - cat << \_LT_EOF >> "$cfgfile" - -# func_dirname file append nondir_replacement -# Compute the dirname of FILE. If nonempty, add APPEND to the result, -# otherwise set result to NONDIR_REPLACEMENT. -func_dirname () -{ - # Extract subdirectory from the argument. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` - if test "X$func_dirname_result" = "X${1}"; then - func_dirname_result="${3}" - else - func_dirname_result="$func_dirname_result${2}" - fi -} - -# func_basename file -func_basename () -{ - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` -} - - -# func_stripname prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -# func_strip_suffix prefix name -func_stripname () -{ - case ${2} in - .*) func_stripname_result=`$ECHO "X${3}" \ - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; - *) func_stripname_result=`$ECHO "X${3}" \ - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; - esac -} - -# sed scripts: -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' -my_sed_long_arg='1s/^-[^=]*=//' - -# func_opt_split -func_opt_split () -{ - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` -} - -# func_lo2o object -func_lo2o () -{ - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` -} - -# func_xform libobj-or-source -func_xform () -{ - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` -} - -# func_arith arithmetic-term... -func_arith () -{ - func_arith_result=`expr "$@"` -} - -# func_len string -# STRING may not start with a hyphen. -func_len () -{ - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` -} - -_LT_EOF -esac - -case $lt_shell_append in - yes) - cat << \_LT_EOF >> "$cfgfile" - -# func_append var value -# Append VALUE to the end of shell variable VAR. -func_append () -{ - eval "$1+=\$2" -} -_LT_EOF - ;; - *) - cat << \_LT_EOF >> "$cfgfile" - -# func_append var value -# Append VALUE to the end of shell variable VAR. -func_append () -{ - eval "$1=\$$1\$2" -} - -_LT_EOF - ;; - esac + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - mv -f "$cfgfile" "$ofile" || + mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" @@ -31136,15 +26154,12 @@ done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. @@ -31165,7 +26180,7 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit 1 fi @@ -31211,7 +26226,7 @@ case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac - ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done @@ -31240,49 +26255,9 @@ test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - $as_echo "$as_me:$LINENO: $ac_msg" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 $as_echo "$ac_msg" >&6 - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in @@ -31329,7 +26304,7 @@ # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else - { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi @@ -31343,7 +26318,7 @@ ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac - { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ @@ -31356,13 +26331,13 @@ fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi # Print a summary of what features we enabled -{ $as_echo "$as_me:$LINENO: Summary of detected features follows" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: Summary of detected features follows" >&5 $as_echo "$as_me: Summary of detected features follows" >&6;} cat <&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: Summary of miscellaneous features" >&5 $as_echo "$as_me: Summary of miscellaneous features" >&6;} if test "x$CHECK_LIBS" = "x"; then check_libs="no" @@ -31380,11 +26355,11 @@ $as_echo_n " check : " - if test "x$enable_check_ut" = "xno"; then + if test "x$enable_check_ut" = "xno"; then : $as_echo "$check_libs (disabled)" -elif test "x$enable_check_ut" = "xyes"; then +elif test "x$enable_check_ut" = "xyes"; then : $as_echo "$check_libs" -elif test "x$enable_check_ut" = "x"; then +elif test "x$enable_check_ut" = "x"; then : $as_echo "$check_libs" else $as_echo "$check_libs ($enable_check_ut)" @@ -31392,75 +26367,70 @@ - - $as_echo_n " clamuko : " - if test "x$want_clamuko" = "xno"; then - $as_echo "$want_clamuko (disabled)" -elif test "x$want_clamuko" = "xyes"; then - $as_echo "$want_clamuko" -elif test "x$want_clamuko" = "x"; then - $as_echo "$want_clamuko" + $as_echo_n " fanotify : " + if test "x$want_fanotify" = "xno"; then : + $as_echo "$want_fanotify (disabled)" +elif test "x$want_fanotify" = "xyes"; then : + $as_echo "$want_fanotify" +elif test "x$want_fanotify" = "x"; then : + $as_echo "$want_fanotify" else - $as_echo "$want_clamuko ($want_clamuko)" + $as_echo "$want_fanotify ($want_fanotify)" fi - if test "x$ac_cv_have_control_in_msghdr" = "xyes"; then $as_echo_n " fdpassing : " - if test "x$want_fdpassing" = "xno"; then + if test "x$want_fdpassing" = "xno"; then : $as_echo "$have_fdpass (disabled)" -elif test "x$want_fdpassing" = "xyes"; then +elif test "x$want_fdpassing" = "xyes"; then : $as_echo "$have_fdpass" -elif test "x$want_fdpassing" = "x"; then +elif test "x$want_fdpassing" = "x"; then : $as_echo "$have_fdpass" else $as_echo "$have_fdpass ($want_fdpassing)" fi - else $as_echo_n " fdpassing : " - if test "x" = "xno"; then + if test "x" = "xno"; then : $as_echo "n/a (disabled)" -elif test "x" = "xyes"; then +elif test "x" = "xyes"; then : $as_echo "n/a" -elif test "x" = "x"; then +elif test "x" = "x"; then : $as_echo "n/a" else $as_echo "n/a ()" fi - fi $as_echo_n " IPv6 : " - if test "x$want_ipv6" = "xno"; then + if test "x$want_ipv6" = "xno"; then : $as_echo "$have_cv_ipv6 (disabled)" -elif test "x$want_ipv6" = "xyes"; then +elif test "x$want_ipv6" = "xyes"; then : $as_echo "$have_cv_ipv6" -elif test "x$want_ipv6" = "x"; then +elif test "x$want_ipv6" = "x"; then : $as_echo "$have_cv_ipv6" else $as_echo "$have_cv_ipv6 ($want_ipv6)" fi - -{ $as_echo "$as_me:$LINENO: Summary of optional tools" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: Summary of optional tools" >&5 $as_echo "$as_me: Summary of optional tools" >&6;} $as_echo_n " clamdtop : " - if test "x$enable_clamdtop" = "xno"; then + if test "x$enable_clamdtop" = "xno"; then : $as_echo "$CURSES_LIBS (disabled)" -elif test "x$enable_clamdtop" = "xyes"; then +elif test "x$enable_clamdtop" = "xyes"; then : $as_echo "$CURSES_LIBS" -elif test "x$enable_clamdtop" = "x"; then +elif test "x$enable_clamdtop" = "x"; then : $as_echo "$CURSES_LIBS" else $as_echo "$CURSES_LIBS ($enable_clamdtop)" @@ -31468,52 +26438,48 @@ - $as_echo_n " milter : " - if test "x$have_milter" = "xno"; then + if test "x$have_milter" = "xno"; then : $as_echo "yes (disabled)" -elif test "x$have_milter" = "xyes"; then +elif test "x$have_milter" = "xyes"; then : $as_echo "yes" -elif test "x$have_milter" = "x"; then +elif test "x$have_milter" = "x"; then : $as_echo "yes" else $as_echo "yes ($have_milter)" fi - -{ $as_echo "$as_me:$LINENO: Summary of engine performance features)" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: Summary of engine performance features)" >&5 $as_echo "$as_me: Summary of engine performance features)" >&6;} if test "x$enable_debug" = "xyes"; then $as_echo_n " release mode: " - if test "xdebug build" = "xno"; then + if test "xdebug build" = "xno"; then : $as_echo "no (disabled)" -elif test "xdebug build" = "xyes"; then +elif test "xdebug build" = "xyes"; then : $as_echo "no" -elif test "xdebug build" = "x"; then +elif test "xdebug build" = "x"; then : $as_echo "no" else $as_echo "no (debug build)" fi - else $as_echo_n " release mode: " - if test "xyes" = "xno"; then + if test "xyes" = "xno"; then : $as_echo "yes (disabled)" -elif test "xyes" = "xyes"; then +elif test "xyes" = "xyes"; then : $as_echo "yes" -elif test "xyes" = "x"; then +elif test "xyes" = "x"; then : $as_echo "yes" else $as_echo "yes (yes)" fi - fi have_jit="no" if test "$subdirfailed" = "no"; then @@ -31522,11 +26488,11 @@ $as_echo_n " jit : " - if test "x$enable_llvm" = "xno"; then + if test "x$enable_llvm" = "xno"; then : $as_echo "$have_jit (disabled)" -elif test "x$enable_llvm" = "xyes"; then +elif test "x$enable_llvm" = "xyes"; then : $as_echo "$have_jit" -elif test "x$enable_llvm" = "x"; then +elif test "x$enable_llvm" = "x"; then : $as_echo "$have_jit" else $as_echo "$have_jit ($enable_llvm)" @@ -31534,30 +26500,28 @@ - $as_echo_n " mempool : " - if test "x$enable_mempool" = "xno"; then + if test "x$enable_mempool" = "xno"; then : $as_echo "$have_mempool (disabled)" -elif test "x$enable_mempool" = "xyes"; then +elif test "x$enable_mempool" = "xyes"; then : $as_echo "$have_mempool" -elif test "x$enable_mempool" = "x"; then +elif test "x$enable_mempool" = "x"; then : $as_echo "$have_mempool" else $as_echo "$have_mempool ($enable_mempool)" fi - -{ $as_echo "$as_me:$LINENO: Summary of engine detection features" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: Summary of engine detection features" >&5 $as_echo "$as_me: Summary of engine detection features" >&6;} $as_echo_n " autoit_ea06 : " - if test "x" = "xno"; then + if test "x" = "xno"; then : $as_echo "$have_autoitea06 (disabled)" -elif test "x" = "xyes"; then +elif test "x" = "xyes"; then : $as_echo "$have_autoitea06" -elif test "x" = "x"; then +elif test "x" = "x"; then : $as_echo "$have_autoitea06" else $as_echo "$have_autoitea06 ()" @@ -31565,13 +26529,12 @@ - $as_echo_n " bzip2 : " - if test "x$want_bzip2" = "xno"; then + if test "x$want_bzip2" = "xno"; then : $as_echo "$bzip_check (disabled)" -elif test "x$want_bzip2" = "xyes"; then +elif test "x$want_bzip2" = "xyes"; then : $as_echo "$bzip_check" -elif test "x$want_bzip2" = "x"; then +elif test "x$want_bzip2" = "x"; then : $as_echo "$bzip_check" else $as_echo "$bzip_check ($want_bzip2)" @@ -31579,13 +26542,12 @@ - $as_echo_n " zlib : " - if test "xyes" = "xno"; then + if test "xyes" = "xno"; then : $as_echo "$ZLIB_HOME (disabled)" -elif test "xyes" = "xyes"; then +elif test "xyes" = "xyes"; then : $as_echo "$ZLIB_HOME" -elif test "xyes" = "x"; then +elif test "xyes" = "x"; then : $as_echo "$ZLIB_HOME" else $as_echo "$ZLIB_HOME (yes)" @@ -31593,25 +26555,52 @@ - $as_echo_n " unrar : " - if test "x$want_unrar" = "xno"; then + if test "x$want_unrar" = "xno"; then : $as_echo "$want_unrar (disabled)" -elif test "x$want_unrar" = "xyes"; then +elif test "x$want_unrar" = "xyes"; then : $as_echo "$want_unrar" -elif test "x$want_unrar" = "x"; then +elif test "x$want_unrar" = "x"; then : $as_echo "$want_unrar" else $as_echo "$want_unrar ($want_unrar)" fi +if test "x$XML_LIBS" = "x"; then + + + $as_echo_n " dmg and xar : " + if test "x" = "xno"; then : + $as_echo "no (disabled)" +elif test "x" = "xyes"; then : + $as_echo "no" +elif test "x" = "x"; then : + $as_echo "no" +else + $as_echo "no ()" +fi + +else + + $as_echo_n " dmg and xar : " + if test "x" = "xno"; then : + $as_echo "yes, from $XML_HOME (disabled)" +elif test "x" = "xyes"; then : + $as_echo "yes, from $XML_HOME" +elif test "x" = "x"; then : + $as_echo "yes, from $XML_HOME" +else + $as_echo "yes, from $XML_HOME ()" +fi + +fi # Yep, downgrading the compiler avoids the bug too: # 4.0.x, and 4.1.0 are the known buggy versions # 3.4 doesn't have the bug if test "x$gcc_check" != "xyes"; then - { $as_echo "$as_me:$LINENO: WARNING: + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Optimizations disabled to avoid compiler bugs ****** The resulting binaries will be slow! ****** It is recommended to either upgrade or downgrade your compiler @@ -31624,7 +26613,7 @@ fi if test "x$cross_compiling" != "xno" || test "x$gcc_check" != "xyes" || test "x$zlib_check" = "xno" || test "x$bzip_check" != "xok" ; then -{ $as_echo "$as_me:$LINENO: WARNING: +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** WARNING: ****** You are cross compiling to a different host or you are ****** linking to bugged system libraries or you have manually diff -Nru clamav-0.97.8+dfsg/configure.ac clamav-0.98.1+dfsg/configure.ac --- clamav-0.97.8+dfsg/configure.ac 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/configure.ac 2014-01-13 17:02:34.000000000 +0000 @@ -0,0 +1,1837 @@ +dnl Copyright (C) 2002 - 2006 Tomasz Kojm +dnl readdir_r checks (c) COPYRIGHT MIT 1995 +dnl socklen_t check (c) Alexander V. Lukyanov +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +dnl MA 02110-1301, USA. + +AC_PREREQ([2.59]) +dnl For a release change [devel] to the real version [0.xy] +dnl also change VERSION below +AC_INIT([ClamAV], [0.98.1], [http://bugs.clamav.net/], [clamav], [http://www.clamav.net/]) + +AH_BOTTOM([#include "platform.h"]) +dnl put configure auxiliary into config +AC_CONFIG_AUX_DIR([config]) +AC_CONFIG_HEADER([clamav-config.h]) + +dnl safety check, this used to be a parameter to AC_INIT +AC_CONFIG_SRCDIR([clamscan/clamscan.c]) +AC_CONFIG_MACRO_DIR([m4]) +AC_CREATE_TARGET_H([target.h]) + +dnl -Wall and -Werror here are NOT CFLAGS, they refer to automake warnings +dnl enable stealth builds and psychedelic tests +AM_INIT_AUTOMAKE([1.11 -Wall -Wportability -Wno-override -Werror std-options foreign dist-bzip2 no-define color-tests parallel-tests tar-ustar]) +AM_SILENT_RULES([yes]) + +dnl we told automake to not define these, since we want to include +dnl the date in the version +AC_DEFINE([PACKAGE], PACKAGE_NAME, [Name of package]) + +dnl change this on a release +dnl VERSION="devel-`date +%Y%m%d`" +VERSION="0.98.1" + +LC_CURRENT=7 +LC_REVISION=20 +LC_AGE=1 +LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE" +AC_SUBST([LIBCLAMAV_VERSION]) + +AC_PROG_AWK +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET + +LT_CONFIG_LTDL_DIR([libltdl]) +LT_INIT([dlopen disable-static]) +LTDL_INIT([recursive]) +AC_CONFIG_FILES([libltdl/Makefile]) + +major=`expr $LC_CURRENT - $LC_AGE` +AC_DEFINE_UNQUOTED([LIBCLAMAV_FULLVER], "$major.$LC_AGE.$LC_REVISION", + ["Full library version number"]) +AC_DEFINE_UNQUOTED([LIBCLAMAV_MAJORVER], $major, + ["Major library version number"]) +AC_DEFINE([SCANBUFF], 131072, [scan buffer size]) +AC_DEFINE([FILEBUFF], 8192, [file i/o buffer size]) + +AC_LIB_MULTILIB_GUESS + +AC_HEADER_STDC +AC_C_RESTRICT +AC_C_CONST +AC_C_INLINE +AC_C_FPU_BIGENDIAN +AC_C_BIGENDIAN + +LT_LIB_M + +AC_ARG_ENABLE([gcc-vcheck], +[ --disable-gcc-vcheck do not check for buggy gcc version ], +gcc_check=$enableval, gcc_check="yes") + +msg_gcc_check="use --disable-gcc-vcheck to disable this check. Before reporting any bugs check with a supported version of gcc" +VERSION_SUFFIX= +dnl Check for gcc-4.1.0 +if test "$gcc_check" = "yes"; then + if test "x$ac_compiler_gnu" = "xyes"; then + AC_MSG_CHECKING([for a supported version of gcc]) + gcc_version=`${CC} -dumpversion` + case "${gcc_version}" in + 4.1.0*) + AC_MSG_RESULT([no (${gcc_version})]) + AC_MSG_ERROR([gcc 4.1.0 is known to incorrectly compile upx.c. Upgrade your compiler to at least 4.1.1/4.1.2)]) + ;; + *) + AC_MSG_RESULT([ok (${gcc_version})]) + ;; + esac + case "${gcc_version}" in + [[56789]].* | 4.[[3456789]].*) + # bb #1581 - temporarely add -fno-strict-aliasing so gcc 4.4.0 + # works correctly + CFLAGS="$CFLAGS -fno-strict-aliasing" + ;; + *) + ;; + esac + fi +else + CFLAGS="$CFLAGS -O0" + VERSION_SUFFIX="$VERSION_SUFFIX-broken-compiler" +fi + +# add distcheck warning flags +distcheck_enable_flags=0 +if test "x$ac_compiler_gnu" = "xyes"; then + gcc_version=`${CC} -dumpversion` + case "${gcc_version}" in + 4.[[3456789]]*) + distcheck_enable_flags=1 + ;; + [[56789]].*) + distcheck_enable_flags=1 + ;; + esac +fi + +dnl Checks if compiler produces valid code, regardless of compiler +dnl we do these checks here to avoid receiving endless bugreports about +dnl breakages due to compiler bugs. + +dnl Check if compiler produces invalid code on gcc PR27603 (affects upx.c) +dnl testcase from gcc testsuite +AC_MSG_CHECKING([for gcc bug PR27603]) +AC_TRY_RUN( + [ +/* (C) Richard Guenther */ +void exit (int); +void abort (void); +int a; +int main(void) +{ + int j; + for (j = 0; j < 6; j++) + { + if ((unsigned)j - 3 <= 1) + exit (0); + a = 1000 * (6 - j); + } + abort (); +} +], [AC_MSG_RESULT([ok, bug not present])], +[AC_MSG_ERROR([your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) + +dnl Check if compiler produces invalid code on gcc PR26763-2 (affects upx.c) +dnl testcase from gcc testsuite +AC_MSG_CHECKING([for gcc bug PR26763-2]) +AC_TRY_RUN( + [ +/* (C) Richard Guenther */ +extern void abort(void); + +static int try (char *a, int d) +{ + return a + d > a; +} + +int main(void) +{ + char bla[100]; + + if (try (bla + 50, -1)) + abort (); + + return 0; +} +], [AC_MSG_RESULT([ok, bug not present])], +[AC_MSG_ERROR([your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763])],[AC_MSG_RESULT([cross-compiling, assumed ok])]) + +dnl Check if compiler produces invalid code on own testcase based on upx.c +AC_MSG_CHECKING([for valid code generation of CLI_ISCONTAINED]) +AC_TRY_RUN( + [ +#include +static struct v{ + char* dst; + unsigned int dsize; + unsigned int dcur; + unsigned int backsize; + signed int unp_offset; +} values[] = { + {(char*)0xf78ab008, 0x2e000, 1, 4, -1594}, + {(char*)0xb7af1008, 0x2e000, 1, 4, -1594} + +}; +extern void abort(void); + +#define CLI_ISCONTAINED(bb, bb_size, sb, sb_size) \ + ((bb_size) > 0 && (sb_size) > 0 && (size_t)(sb_size) <= (size_t)(bb_size) \ + && (sb) >= (bb) && ((sb) + (sb_size)) <= ((bb) + (bb_size)) && ((sb) + (sb_size)) > (bb) && (sb) < ((bb) + (bb_size))) + +int crashtest() +{ + unsigned int backsize, dcur; + int dval=0x12000, unp_offset; + int* dsize = &dval; + char* dst = (char*)0x12000; + while(1) { + backsize=4; + dcur=0; + unp_offset=0x800002c7; + + if (!CLI_ISCONTAINED(dst, *dsize, dst+dcur+unp_offset, backsize) || !CLI_ISCONTAINED(dst, *dsize, dst+dcur, backsize) || unp_offset >=0) + return -1; + abort(); + } + return 0; +} + +int main(void) +{ + int i; + for(i=0;idst; + unsigned int* dsize = &v->dsize; + unsigned int dcur = v->dcur; + unsigned int backsize = v->backsize-1; + signed int unp_offset = v->unp_offset; + + if(!CLI_ISCONTAINED(dst, *dsize, dst+dcur+unp_offset, backsize) || + !CLI_ISCONTAINED(dst, *dsize,dst+dcur,backsize) || unp_offset >= 0) { + continue; + } + abort(); + } + crashtest(); + return 0; +} +], [AC_MSG_RESULT([ok, bug not present])], +[AC_MSG_ERROR([your compiler has a bug that causes clamav bug no. 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) + +dnl Check if compiler produces invalid code on gcc PR28045 (affects upx.c) +dnl testcase from gcc testsuite +AC_MSG_CHECKING([for gcc bug PR28045]) +AC_TRY_RUN( + [ +/* (C) Andrew Pinski */ +extern void abort(void); +struct a +{ + unsigned int bits : 1; + signed long val : ((sizeof(long) * 8) - 1); +}; +static int Fnegate (struct a b) +{ + if ((-((long)b.val)) <= ((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL)) + && (-((long)b.val)) >= (-(((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL))) - 1)) + return 0 ; + abort (); +} +int main (void) +{ + struct a b = {1, 1}; + Fnegate (b); + return 0; +} +], [AC_MSG_RESULT([ok, bug not present])], +[AC_MSG_ERROR([your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) + +dnl Check if compiler produces invalid code on gcc PR37573 (affects autoit.c) +dnl this is a bug in gcc 4.4.0, but for some reason it affects gcc 4.1.2 too +dnl gcc 4.1.3 is OK. This bug occurs only at -O3. +AC_MSG_CHECKING([for gcc bug PR37573]) +AC_TRY_RUN( + [ +#include +#include +struct S +{ + unsigned int *a; + unsigned int b; + unsigned int c[624]; +}; +static unsigned char +foo (struct S *s) +{ + unsigned int r; + if (!--s->b) + { + unsigned int *c = s->c; + unsigned int i; + s->a = c; + for (i = 0; i < 227; i++) + c[i] = + ((((c[i] ^ c[i + 1]) & 0x7ffffffe) ^ c[i]) >> 1) ^ + ((0 - (c[i + 1] & 1)) & 0x9908b0df) ^ c[i + 397]; + for (; i < 623; i++) + c[i] = + ((((c[i] ^ c[i + 1]) & 0x7ffffffe) ^ c[i]) >> 1) ^ + ((0 - (c[i + 1] & 1)) & 0x9908b0df) ^ c[i - 227]; + c[623] = + ((((c[623] ^ c[0]) & 0x7ffffffe) ^ c[623]) >> 1) ^ ((0 - (c[0] & 1)) & + 0x9908b0df) ^ c[i + - + 227]; + } + r = *(s->a++); + r ^= (r >> 11); + r ^= ((r & 0xff3a58ad) << 7); + r ^= ((r & 0xffffdf8c) << 15); + r ^= (r >> 18); + return (unsigned char) (r >> 1); +} + +void +bar (unsigned char *p, unsigned int q, unsigned int r) +{ + struct S s; + unsigned int i; + unsigned int *c = s.c; + *c = r; + for (i = 1; i < 624; i++) + c[i] = i + 0x6c078965 * ((c[i - 1] >> 30) ^ c[i - 1]); + s.b = 1; + while (q--) + *p++ ^= foo (&s); +}; + +static unsigned char p[23] = { + 0xc0, 0x49, 0x17, 0x32, 0x62, 0x1e, 0x2e, 0xd5, 0x4c, 0x19, 0x28, 0x49, + 0x91, 0xe4, 0x72, 0x83, 0x91, 0x3d, 0x93, 0x83, 0xb3, 0x61, 0x38 +}; + +static unsigned char q[23] = { + 0x3e, 0x41, 0x55, 0x54, 0x4f, 0x49, 0x54, 0x20, 0x55, 0x4e, 0x49, 0x43, + 0x4f, 0x44, 0x45, 0x20, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x3c +}; + +int +main (void) +{ + unsigned int s; + s = 23; + bar (p, s, s + 0xa25e); + if (memcmp (p, q, s) != 0) + abort (); + return 0; +} + +], [AC_MSG_RESULT([ok, bug not present])], +[AC_MSG_ERROR([your compiler has gcc PR37573 bug, use a lower optimization level (-O1 or -O2), see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37573])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) + +dnl Linker feature checks +dnl check for version script support in the linker (GNU ld, or Solaris ld style) +AC_CACHE_CHECK([for ld --version-script], [ac_cv_ld_version_script], [dnl + cat > conftest.c < conftest.map <&AS_MESSAGE_LOG_FD]); + then + VERSIONSCRIPTFLAG=--version-script + ac_cv_ld_version_script=yes + else + dnl check for Solaris ld style linker version script + if AC_TRY_COMMAND([${CC-cc} $CFLAGS $pic_flag $LDFLAGS -shared + -o conftest.so conftest.c + -Wl,-M,conftest.map + 1>&AS_MESSAGE_LOG_FD]); + then + VERSIONSCRIPTFLAG=-M + ac_cv_ld_version_script=yes; + else + ac_cv_ld_version_script=no + fi + fi + rm -f conftest*]) +AC_SUBST([VERSIONSCRIPTFLAG]) +AM_CONDITIONAL([VERSIONSCRIPT], test "x$ac_cv_ld_version_script" = "xyes") + +# it is not fatal if gperf is missing +AM_MISSING_PROG(GPERF, gperf) +AC_SUBST(GPERF) + +AC_CHECK_HEADERS([stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h sys/times.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h]) +AC_CHECK_HEADER([syslog.h],AC_DEFINE([USE_SYSLOG],1,[use syslog]),) + +AC_TYPE_OFF_T +AC_COMPILE_CHECK_SIZEOF([short]) +AC_COMPILE_CHECK_SIZEOF([int]) +AC_COMPILE_CHECK_SIZEOF([long]) +AC_COMPILE_CHECK_SIZEOF([long long]) +AC_COMPILE_CHECK_SIZEOF([void *]) + +AC_ARG_ENABLE([experimental], +[ --enable-experimental enable experimental code], +enable_experimental=$enableval, enable_experimental="no") + +if test "$enable_experimental" = "yes"; then + AC_DEFINE([CL_EXPERIMENTAL],1,[enable experimental code]) + VERSION_SUFFIX="$VERSION_SUFFIX-exp" +fi + +build_configure_args=`echo "$ac_configure_args" | sed -e 's/[\"]//g'` +AC_SUBST([BUILD_CONFIGURE_FLAGS], [$build_configure_args]) + +AX_CHECK_UNAME_SYSCALL +AC_CHECK_LIB([socket], [bind], [LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket"]) +AC_SEARCH_LIBS([gethostent],[nsl], [(LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl")]) + +AC_CHECK_FUNCS([poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat strcasestr inet_ntop setgroups initgroups ctime_r mkstemp mallinfo madvise]) +AC_FUNC_FSEEKO + +dnl Check if anon maps are available, check if we can determine the page size +AC_C_FUNC_MMAP_PRIVATE +AC_C_FUNC_PAGESIZE +AC_C_FUNC_MMAP_ANONYMOUS +AC_ARG_ENABLE([mempool],[ --disable-mempool disable memory pools], enable_mempool=$enableval, enable_mempool="yes") +have_mempool="no" +if test "$enable_mempool" = "yes"; then + if test "$ac_cv_c_mmap_private" != "yes"; then + AC_MSG_NOTICE([****** mempool support disabled (mmap not available or not usable)]) + else + if test "$ac_cv_c_can_get_pagesize" != "yes"; then + AC_MSG_NOTICE([****** mempool support disabled (pagesize cannot be determined)]) + else + if test "$ac_cv_c_mmap_anonymous" = "no"; then + AC_MSG_NOTICE([****** mempool support disabled (anonymous mmap not available)]) + else + AC_DEFINE([USE_MPOOL],1,[enable memory pools]) + have_mempool="yes" + fi + fi + fi +fi + +enable_check_ut=auto +enable_ut_install=no +AC_ARG_ENABLE(check, +[ --enable-check Enable 'check' unit tests (default=auto)], enable_check_ut=$enableval, enable_check_ut="auto" ) + +if test "$enable_check_ut" != "no" ; then + AC_LIB_FIND([check],[check.h], + AC_LANG_PROGRAM([#include ],[srunner_create(0)]), + [CHECK_CPPFLAGS="$INCCHECK"; CHECK_LIBS="$LTLIBCHECK"], + []) +fi +AC_SUBST([CHECK_CPPFLAGS]) +AC_SUBST([CHECK_LIBS]) +AM_CONDITIONAL([HAVE_LIBCHECK],test "X$HAVE_LIBCHECK" = "Xyes") + +if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then + AC_MSG_ERROR([ + +ERROR! Check was configured, but not found. Get it from http://check.sf.net/ +]) +fi + +AC_ARG_ENABLE(coverage, + AC_HELP_STRING([--enable-coverage], + [turn on test coverage + @<:@default=no@:>@]), +[enable_cov=$enableval],[enable_cov="no"]) + +if test "x$enable_coverage" = "xyes"; then + if test "x$CHECK_LIBS" = "x"; then + AC_MSG_ERROR([Coverage testing required, but unit tests not enabled!]) + fi + if test "x$ac_compiler_gnu" != "xyes"; then + AC_MSG_ERROR([coverage testing only works if gcc is used]) + fi + + CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" + LDFLAGS="$LDFLAGS -lgcov" + AC_CHECK_PROGS(GCOV, gcov, false) + AC_CHECK_PROGS(LCOV, lcov, false) + AC_CHECK_PROGS(GENHTML, genhtml, false) +fi + +AM_CONDITIONAL(ENABLE_COVERAGE, test "x$enable_coverage" = "xyes") + +have_pthreads=no +AC_CHECK_HEADER([pthread.h],[have_pthreads=yes],) + +AM_MAINTAINER_MODE +dnl Check for zlib +AC_MSG_CHECKING([for zlib installation]) +AC_ARG_WITH([zlib], +[ --with-zlib=DIR path to directory containing zlib library (default= + /usr/local or /usr if not found in /usr/local)], +[ +if test "$withval"; then + ZLIB_HOME="$withval" + AC_MSG_RESULT([using $ZLIB_HOME]) +fi +], [ +ZLIB_HOME=/usr/local +if test ! -f "$ZLIB_HOME/include/zlib.h" +then + ZLIB_HOME=/usr +fi +AC_MSG_RESULT([$ZLIB_HOME]) +]) + +CLAMDSCAN_LIBS="$FRESHCLAM_LIBS" + +AC_ARG_ENABLE([zlib-vcheck], +[ --disable-zlib-vcheck do not check for buggy zlib version ], +zlib_check=$enableval, zlib_check="yes") + +if test ! -f "$ZLIB_HOME/include/zlib.h" +then + AC_MSG_ERROR([Please install zlib and zlib-devel packages]) +else + + vuln=`grep "ZLIB_VERSION \"1.2.0" $ZLIB_HOME/include/zlib.h` + if test -z "$vuln"; then + vuln=`grep "ZLIB_VERSION \"1.2.1" $ZLIB_HOME/include/zlib.h` + fi + + if test -n "$vuln"; then + if test "$zlib_check" = "yes"; then + AC_MSG_ERROR(The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!) + else + AC_MSG_WARN([****** This ClamAV installation may be linked against]) + AC_MSG_WARN([****** a broken zlib version. Please DO NOT report any]) + AC_MSG_WARN([****** stability problems to the ClamAV developers!]) + fi + fi + + save_LIBS="$LIBS" + if test "$ZLIB_HOME" != "/usr"; then + CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include" + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib" + AC_CHECK_LIB([z], [inflateEnd], [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -L$ZLIB_HOME/lib -lz"], AC_MSG_ERROR([Please install zlib and zlib-devel packages])) + AC_CHECK_LIB([z], [gzopen], [], AC_MSG_ERROR([Your zlib is missing gzopen()])) + LDFLAGS="$save_LDFLAGS" + else + AC_CHECK_LIB([z], [inflateEnd], [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz";FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lz"], AC_MSG_ERROR([Please install zlib and zlib-devel packages])) + AC_CHECK_LIB([z], [gzopen],[], AC_MSG_ERROR([Your zlib is missing gzopen()])) + fi + LIBS="$save_LIBS" +fi + +AC_ARG_ENABLE([bzip2], +[ --disable-bzip2 disable bzip2 support], +want_bzip2=$enableval, want_bzip2="yes") + +bzip_check="ok" +if test "$want_bzip2" = "yes" +then + AC_LIB_LINKFLAGS([bz2]) + save_LDFLAGS="$LDFLAGS" + # Only add -L if prefix is not empty + test -z "$LIBBZ2_PREFIX" || LDFLAGS="$LDFLAGS -L$LIBBZ2_PREFIX/$acl_libdirstem"; + + have_bzprefix="no" + AC_CHECK_LIB([bz2], [BZ2_bzDecompressInit], [have_bzprefix="yes"]) + if test "x$have_bzprefix" = "xno"; then + AC_DEFINE([NOBZ2PREFIX],1,[bzip funtions do not have bz2 prefix]) + fi + LDFLAGS="$save_LDFLAGS" + if test "$HAVE_LIBBZ2" = "yes"; then + AC_CHECK_HEADER([bzlib.h], + [AC_C_CVE_2008_1372], + [ac_cv_c_cve_2008_1372="no"]) + if test "$ac_cv_c_cve_2008_1372" = "bugged"; then + AC_MSG_WARN([****** bzip2 libraries are affected by the CVE-2008-1372 bug]) + AC_MSG_WARN([****** We strongly suggest you to update to bzip2 1.0.5.]) + AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!]) + bzip_check="bugged (CVE-2008-1372)" + fi + if test "$ac_cv_c_cve_2008_1372" = "linkfailed"; then + dnl This shouldn't happen + dnl We failed to link but libtool may still be able to link, so don't disable bzip2 just yet + AC_MSG_WARN([****** Unable to link bzip2 testcase]) + AC_MSG_WARN([****** You may be affected by CVE-2008-1372 bug, but I need to be able to link a testcase to verify]) + AC_MSG_WARN([****** It is recommended to fix your build environment so that we can run the testcase!]) + AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!]) + bzip_check="link failed (CVE-2008-1372)" + fi + + case "$ac_cv_c_cve_2008_1372" in + ok|bugged|linkfailed) + ;; + *) + HAVE_LIBBZ2=no + ;; + esac + fi + + if test "$HAVE_LIBBZ2" = "yes"; then + AC_C_CVE_2010_0405 + if test "$ac_cv_c_cve_2010_0405" = "bugged"; then + AC_MSG_WARN([****** bzip2 libraries are affected by the CVE-2010-0405 bug]) + AC_MSG_WARN([****** We strongly suggest you to update bzip2]) + AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!]) + bzip_check="bugged (CVE-2010-0405)" + fi + if test "$ac_cv_c_cve_2010_0405" = "linkfailed"; then + dnl This shouldn't happen + dnl We failed to link but libtool may still be able to link, so don't disable bzip2 just yet + AC_MSG_WARN([****** Unable to link bzip2 testcase]) + AC_MSG_WARN([****** You may be affected by CVE-2010-0405 bug, but I need to be able to link a testcase to verify]) + AC_MSG_WARN([****** It is recommended to fix your build environment so that we can run the testcase!]) + AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!]) + bzip_check="link failed (CVE-2010-0405)" + fi + + case "$ac_cv_c_cve_2010_0405" in + ok|bugged|linkfailed) + LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBBZ2" + AC_DEFINE([HAVE_BZLIB_H],1,[have bzip2]) + ;; + *) + AC_MSG_WARN([****** bzip2 support disabled]) + ;; + esac + + else + AC_MSG_WARN([****** bzip2 support disabled]) + fi +fi + +AM_CONDITIONAL([HAVE_LIBBZ2], test "x$HAVE_LIBBZ2" = "xyes") + +AC_ARG_ENABLE([unrar], +[ --disable-unrar do not build libclamunrar and libclamunrar_iface ], +want_unrar=$enableval, want_unrar="yes") +AM_CONDITIONAL([ENABLE_UNRAR],[test "$want_unrar" = "yes"]) + +dnl libxml2 +want_xml="auto" +AC_ARG_ENABLE([xml], +[ --disable-xml disable DMG and XAR support], +want_xml=$enableval, want_xml="auto") + +XML_HOME="" +if test "X$want_xml" != "Xno"; then + AC_MSG_CHECKING([for libxml2 installation]) + AC_ARG_WITH([xml], + [ --with-xml=DIR path to directory containing libxml2 library (default= + /usr/local or /usr if not found in /usr/local)], + [ + if test "$withval" + then + XML_HOME="$withval" + AC_MSG_RESULT([using $XML_HOME]) + else + AC_MSG_ERROR([cannot assign blank value to --with-xml]) + fi + ], [ + XML_HOME=/usr/local + if test ! -x "$XML_HOME/bin/xml2-config" + then + XML_HOME=/usr + if test ! -x "$XML_HOME/bin/xml2-config" + then + XML_HOME="" + fi + fi + if test "x$XML_HOME" != "x"; then + AC_MSG_RESULT([$XML_HOME]) + else + AC_MSG_RESULT([not found]) + fi + ]) +fi + +found_xml="no" +XMLCONF_VERSION="" +XML_CPPFLAGS="" +XML_LIBS="" +if test "x$XML_HOME" != "x"; then + AC_MSG_CHECKING([xml2-config version]) + XMLCONF_VERSION="`$XML_HOME/bin/xml2-config --version`" + if test "x%XMLCONF_VERSION" != "x"; then + AC_MSG_RESULT([$XMLCONF_VERSION]) + found_xml="yes" + XML_CPPFLAGS="`$XML_HOME/bin/xml2-config --cflags`" + XML_LIBS="`$XML_HOME/bin/xml2-config --libs`" + else + AC_MSG_ERROR([xml2-config failed]) + fi +fi + +working_xml="no" +if test "X$found_xml" != "Xno"; then + AC_MSG_CHECKING([for xmlreader.h in $XML_HOME]) + + if test ! -f "$XML_HOME/include/libxml2/libxml/xmlreader.h"; then + AC_MSG_RESULT([not found]) + else + AC_MSG_RESULT([found]) + save_LIBS="$LIBS" + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $XML_LIBS" + + AC_CHECK_LIB([xml2], [xmlTextReaderRead], [working_xml="yes"], [working_xml="no"]) + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + fi +fi + +if test "$working_xml" = "yes"; then + AC_DEFINE([HAVE_LIBXML2],1,[Define to 1 if you have the 'libxml2' library (-lxml2).]) + AC_SUBST(XML_CPPFLAGS) + AC_SUBST(XML_LIBS) + AC_MSG_NOTICE([Compiling and linking with libxml2 from $XML_HOME]) +else + if test "$want_xml" = "yes"; then + AC_MSG_ERROR([****** Please install libxml2 packages!]) + else + if test "$want_xml" != "no"; then + AC_MSG_NOTICE([****** libxml2 support unavailable]) + fi + fi + XML_CPPFLAGS="" + XML_LIBS="" + AC_SUBST(XML_CPPFLAGS) + AC_SUBST(XML_LIBS) +fi + +AC_ARG_ENABLE([getaddrinfo], +[ --disable-getaddrinfo disable support for getaddrinfo], +want_getaddrinfo=$enableval, want_getaddrinfo="yes") + +if test "$want_getaddrinfo" = "yes" +then + AC_MSG_CHECKING([for getaddrinfo]) + AC_CACHE_VAL([have_cv_gai],[ + AC_TRY_RUN([ + #include + #include + #include + #include + int main(int argc, char **argv) + { + struct addrinfo *res; + int sd; + + if(getaddrinfo("127.0.0.1", NULL, NULL, &res) < 0) + return 1; + freeaddrinfo(res); + + return 0; + } + ], + [have_cv_gai=yes], + [have_cv_gai=no], + [have_cv_gai=no]) + ]) + AC_MSG_RESULT([$have_cv_gai]) + if test "$have_cv_gai" = yes; then + AC_DEFINE(HAVE_GETADDRINFO, 1, [have getaddrinfo()]) + fi +fi + +AC_ARG_ENABLE([ipv6], +[ --disable-ipv6 disable IPv6 support], +want_ipv6=$enableval, want_ipv6="yes") + +if test "$want_ipv6" = "yes" +then + AC_MSG_CHECKING([for IPv6 support]) + AC_CACHE_VAL([have_cv_ipv6],[ + AC_TRY_RUN([ + #include + #include + #include + #include + int main(int argc, char **argv) + { + struct addrinfo *res, hints; + int sd; + + if((sd = socket(AF_INET6, SOCK_STREAM, 0)) < 0) + return 1; + close(sd); + /* also check if getaddrinfo() handles AF_UNSPEC -- bb#1196 */ + memset(&hints, 0, sizeof(hints)); + hints.ai_family = AF_UNSPEC; + if(getaddrinfo("127.0.0.1", NULL, &hints, &res) < 0) + return 1; + freeaddrinfo(res); + return 0; + } + ], + [have_cv_ipv6=yes], + [have_cv_ipv6=no], + [have_cv_ipv6=no]) + ]) + AC_MSG_RESULT([$have_cv_ipv6]) + if test "$have_cv_ipv6" = yes; then + AC_DEFINE(SUPPORT_IPv6, 1, [Support for IPv6]) + fi +fi + +AC_C_DNS + +AC_ARG_ENABLE([fanotify], +[ --disable-fanotify disable fanotify support (Linux only)], +want_fanotify=$enableval, want_fanotify="yes") + +dnl AC_FUNC_SETPGRP does not work when cross compiling +dnl Instead, assume we will have a prototype for setpgrp if cross compiling. +dnl testcase from gdb/configure.ac +if test "$cross_compiling" = no; then + AC_FUNC_SETPGRP +else + AC_CACHE_CHECK([whether setpgrp takes no argument], [ac_cv_func_setpgrp_void], + [AC_TRY_COMPILE([ +#include +], [ + if (setpgrp(1,1) == -1) + exit (0); + else + exit (1); +], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes)]) +if test $ac_cv_func_setpgrp_void = yes; then + AC_DEFINE([SETPGRP_VOID], 1) +fi +fi + +AC_ARG_ENABLE([milter], +[ --enable-milter build clamav-milter], +have_milter=$enableval, have_milter="no") + +dnl we need to try to link with iconv, otherwise there could be a +dnl mismatch between a 32-bit and 64-bit lib. Detect this at configure time. +dnl we need to check after zlib/bzip2, because they can change the include path +AC_ARG_WITH([iconv], [ --with-iconv supports iconv() (default=auto)], +[ + case "$withval" in + yes|no) wiconv="$withval";; + *) AC_MSG_ERROR([--with-iconv does not take an argument]);; + esac], +[ wiconv=auto ]) +if test "X$wiconv" != "Xno"; then + AC_CHECK_LIB([iconv], [libiconv_open], LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -liconv") + AC_MSG_CHECKING([for iconv]) + save_LIBS="$LIBS" + LIBS="$LIBCLAMAV_LIBS" + AC_TRY_LINK([ + #include + ],[ + char** xin,**xout; + unsigned long il,ol; + int rc; + iconv_t iconv_struct = iconv_open("UTF-16BE","UTF-8"); + rc = iconv(iconv_struct,xin,&il,xout,&ol); + iconv_close(iconv_struct); +],[ + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_ICONV], 1, [iconv() available]) +],[ + AC_MSG_RESULT(no) +]) + LIBS="$save_LIBS" +fi + +AC_ARG_ENABLE([pthreads], +[ --disable-pthreads disable POSIX threads support], +have_pthreads=$enableval,) + +AC_ARG_ENABLE([cr], +[ --disable-cr do not link with C reentrant library (BSD) ], +use_cr=$enableval,) + +AC_ARG_ENABLE([id-check], +[ --enable-id-check use id utility instead of /etc/passwd parsing], +use_id=$enableval, use_id="no") + +AC_ARG_ENABLE([yp-check], +[ --enable-yp-check use ypmatch utility instead of /etc/passwd parsing], +use_yp=$enableval, use_yp="no") + +AC_ARG_WITH([user], +[ --with-user=uid name of the clamav user (default=clamav)], +clamav_user="$withval", clamav_user="clamav") + +AC_ARG_WITH([group], +[ --with-group=gid name of the clamav group (default=clamav)], +clamav_group="$withval", clamav_group="clamav") + +AC_DEFINE_UNQUOTED([CLAMAVUSER],"$clamav_user",[name of the clamav user]) +AC_DEFINE_UNQUOTED([CLAMAVGROUP],"$clamav_group",[name of the clamav group]) + +AC_ARG_ENABLE([clamav], +[ --disable-clamav disable test for clamav user/group], +test_clamav=$enableval, test_clamav=yes) + +AC_ARG_ENABLE([debug], +[ --enable-debug enable debug code], +enable_debug=$enableval, enable_debug="no") + +if test "$enable_debug" = "yes"; then + VERSION_SUFFIX="$VERSION_SUFFIX-debug" + AC_DEFINE([CL_DEBUG],1,[enable debugging]) +else + AC_DEFINE([NDEBUG],1,[disable assertions]) +fi + +AC_ARG_WITH([version], +[ --with-version=STR use custom version string (dev only)], +VERSION="$withval", ) + +AC_ARG_ENABLE([no-cache], +[ --enable-no-cache use "Cache-Control: no-cache" in freshclam], +enable_nocache=$enableval, enable_nocache="no") + +if test "$enable_nocache" = "yes"; then + AC_DEFINE([FRESHCLAM_NO_CACHE],1,[use "Cache-Control: no-cache" in freshclam]) +fi + +AC_ARG_ENABLE([dns-fix], +[ --enable-dns-fix enable workaround for broken DNS servers (as in SpeedTouch 510)], +enable_dnsfix=$enableval, enable_dnsfix="no") + +if test "$enable_dnsfix" = "yes"; then + AC_DEFINE([FRESHCLAM_DNS_FIX],1,[enable workaround for broken DNS servers]) +fi + +AC_ARG_ENABLE([bigstack], +[ --enable-bigstack increase thread stack size], +enable_bigstack=$enableval, enable_bigstack="no") + +if test "$enable_bigstack" = "yes"; then + AC_DEFINE([C_BIGSTACK],1,[Increase thread stack size.]) +fi + +AC_ARG_WITH([dbdir], +[ --with-dbdir=path path to virus database directory], +db_dir="$withval", db_dir="_default_") + +dnl I had problems with $pkgdatadir thus these funny checks +if test "$db_dir" = "_default_" +then + if test "$prefix" = "NONE" + then + db_dir="$ac_default_prefix/share/clamav" + else + db_dir="$prefix/share/clamav" + fi +fi + +AC_DEFINE_UNQUOTED([DATADIR],"$db_dir", [Path to virus database directory.]) +DBDIR="$db_dir" +AC_SUBST([DBDIR]) + +dnl configure config directory +cfg_dir=`echo $sysconfdir | grep prefix` + +if test -n "$cfg_dir"; then + if test "$prefix" = "NONE" + then + cfg_dir="$ac_default_prefix/etc" + else + cfg_dir="$prefix/etc" + fi +else + cfg_dir="$sysconfdir" +fi + +CFGDIR=$cfg_dir +AC_SUBST([CFGDIR]) +AC_DEFINE_UNQUOTED([CONFDIR],"$cfg_dir",[where to look for the config file]) + +dnl check for in_port_t definition +AC_MSG_CHECKING([whether in_port_t is defined]) +AC_TRY_COMPILE([ +#include +#include +], +[in_port_t pt; pt = 0; return pt;], +[ + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_IN_PORT_T],1,[in_port_t is defined]) +], +AC_MSG_RESULT(no)) + +dnl check for in_addr_t definition +AC_MSG_CHECKING([for in_addr_t definition]) +AC_TRY_COMPILE([ +#include +#include +], +[ in_addr_t pt; pt = 0; return pt; ], +[ + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_IN_ADDR_T],1,[in_addr_t is defined]) +], +AC_MSG_RESULT(no)) + +case "$target_os" in +linux*) + AC_DEFINE([C_LINUX],1,[target is linux]) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + TH_SAFE="-thread-safe" + if test "$want_fanotify" = "yes"; then + AC_CHECK_HEADER([linux/fanotify.h],AC_DEFINE([FANOTIFY],1,[use fanotify]),) + fi + fi + ;; +kfreebsd*-gnu) + AC_DEFINE([C_KFREEBSD_GNU],1,[target is kfreebsd-gnu]) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + TH_SAFE="-thread-safe" + fi + ;; +solaris*) + CLAMDSCAN_LIBS="$CLAMDSCAN_LIBS -lresolv" + FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lresolv" + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + CLAMD_LIBS="$CLAMD_LIBS -lresolv" + CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lresolv" + TH_SAFE="-thread-safe" + fi + AC_DEFINE([C_SOLARIS],1,[os is solaris]) + ;; +freebsd[[45]]*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-pthread -lc_r" + TH_SAFE="-thread-safe" + fi + AC_DEFINE([C_BSD],1,[os is freebsd 4 or 5]) + ;; +freebsd*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lthr" + TH_SAFE="-thread-safe" + fi + AC_DEFINE([C_BSD],1,[os is freebsd 6]) + ;; +dragonfly*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-pthread" + TH_SAFE="-thread-safe" + fi + AC_DEFINE([C_BSD],1,[os is dragonfly]) + ;; +openbsd*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-pthread" + CLAMD_LIBS="$CLAMD_LIBS -pthread" + CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread" + TH_SAFE="-thread-safe" + fi + AC_DEFINE([C_BSD],1,[os is OpenBSD]) + ;; +bsdi*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-pthread" + TH_SAFE="-thread-safe" + fi + AC_DEFINE([C_BSD],1,[os is BSDI BSD/OS]) + ;; +netbsd*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + fi + AC_DEFINE([C_BSD],1,[os is NetBSD]) + ;; +bsd*) + AC_MSG_RESULT([Unknown BSD detected. Disabling thread support.]) + have_pthreads="no" + AC_DEFINE([C_BSD],1,[os is bsd flavor]) + ;; +beos*) + AC_MSG_RESULT([BeOS detected. Disabling thread support.]) + have_pthreads="no" + AC_DEFINE([C_BEOS],1,[os is beos]) + ;; +x86:Interix*) + AC_DEFINE([C_INTERIX],1,[os is Interix]) + ;; +darwin*) + AC_DEFINE([C_BSD],1,[os is bsd flavor]) + AC_DEFINE([C_DARWIN],1,[os is darwin]) + AC_DEFINE([BIND_8_COMPAT],1,[enable bind8 compatibility]) + AC_DEFINE([CLAMAUTH],1,[use ClamAuth]) + use_netinfo="yes" + ;; +os2*) + CLAMDSCAN_LIBS="$CLAMDSCAN_LIBS -lsyslog" + FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsyslog" + CLAMD_LIBS="$CLAMD_LIBS -lsyslog" + CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsyslog" + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + TH_SAFE="-thread-safe" + fi + AC_DEFINE([C_OS2],1,[os is OS/2]) + ;; +sco*) + dnl njh@bandsman.sco.uk: SCO Unix port + dnl FRESHCLAM_LIBS="-lsocket" + dnl CLAMD_LIBS="-lsocket" + dnl CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket" + ;; +hpux*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + TH_SAFE="-thread-safe" + fi + AC_DEFINE([C_HPUX],1,[os is hpux]) + if test "$have_mempool" = "yes"; then + LDFLAGS="$LDFLAGS -Wl,+pd,1M" + fi + ;; +aix*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + TH_SAFE="-thread-safe" + AC_DEFINE([_THREAD_SAFE],1,[thread safe]) + fi + AC_DEFINE([C_AIX],1,[os is aix]) + ;; +*-*-osf*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-pthread" + TH_SAFE="-thread-safe" + AC_DEFINE([_POSIX_PII_SOCKET],1,[POSIX compatibility]) + fi + AC_DEFINE([C_OSF],1,[os is osf/tru64]) + ;; +nto-qnx*) + AC_DEFINE([C_QNX6],1,[os is QNX 6.x.x]) + ;; +irix*) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + TH_SAFE="-thread-safe" + fi + LIBS="$LIBS -lgen" + AC_DEFINE([C_IRIX],1,[os is irix]) + ;; +interix*) + AC_DEFINE([C_INTERIX],1,[os is interix]) + if test "$test_clamav" = "yes"; then + if test ! -r /etc/passwd; then + test_clamav="no" + fi + fi + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + TH_SAFE="-thread-safe" + fi + ;; +gnu*) + AC_DEFINE([C_GNU_HURD],1,[target is gnu-hurd]) + if test "$have_pthreads" = "yes"; then + THREAD_LIBS="-lpthread" + TH_SAFE="-thread-safe" + fi + ;; +*) + ;; +esac + +AC_SUBST([LIBCLAMAV_LIBS]) +AC_SUBST([CLAMD_LIBS]) +AC_SUBST([CLAMAV_MILTER_LIBS]) +AC_SUBST([FRESHCLAM_LIBS]) +AC_SUBST([CLAMDSCAN_LIBS]) +AC_SUBST([TH_SAFE]) +AC_SUBST([THREAD_LIBS]) + +dnl --enable-milter +if test "$have_milter" = "yes"; then + dnl libmilter checking code adapted from spamass-milter by + dnl Tom G. Christensen + + dnl Check for libmilter and it's header files in the usual locations + save_LIBS="$LIBS" + CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread" + if test -d /usr/lib/libmilter ; then + CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter" + fi + LIBS="$LIBS -lmilter $CLAMAV_MILTER_LIBS" + AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_LIBS"],[ + dnl Older sendmails require libsm or libsmutil for support functions + AC_SEARCH_LIBS([strlcpy], [sm smutil], [test "$ac_cv_search_strlcpy" = "none required" || CLAMAV_MILTER_XLIB="$ac_cv_search_strlcpy"]) + LIBS="$save_LIBS $CLAMAV_MILTER_LIBS $CLAMAV_MILTER_XLIB" + $as_unset ac_cv_lib_milter_mi_stop + AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS"],[ + AC_MSG_ERROR([Cannot find libmilter]) + ]) + ]) + LIBS="$save_LIBS" + AC_CHECK_HEADERS([libmilter/mfapi.h],[have_milter="yes"],[ + AC_MSG_ERROR([Please install mfapi.h from the sendmail distribution]) + ]) +fi + +AM_CONDITIONAL([BUILD_CLAMD],[test "$have_pthreads" = "yes"]) +AM_CONDITIONAL([HAVE_MILTER],[test "$have_milter" = "yes"]) + +if test "$have_pthreads" = "yes" +then + save_LIBS="$LIBS" + LIBS="$THREAD_LIBS $LIBS" + AC_CHECK_FUNCS([sched_yield pthread_yield]) + LIBS="$save_LIBS" + AC_DEFINE([BUILD_CLAMD], 1, "build clamd") + dnl define these here, so we don't forget any system + AC_DEFINE([CL_THREAD_SAFE],1,[thread safe]) + AC_DEFINE([_REENTRANT],1,[thread safe]) +fi + +AC_CHECK_FUNCS([enable_extended_FILE_stdio]) + +dnl Check for readdir_r and number of its arguments +dnl Code from libwww/configure.in + +AC_MSG_CHECKING([for readdir_r]) +if test -z "$ac_cv_readdir_args"; then + AC_TRY_COMPILE( + [ +#include +#include + ], + [ + struct dirent dir, *dirp; + DIR *mydir; + dirp = readdir_r(mydir, &dir); + ], ac_cv_readdir_args=2) +fi +if test -z "$ac_cv_readdir_args"; then + AC_TRY_COMPILE( + [ +#include +#include + ], + [ + struct dirent dir, *dirp; + DIR *mydir; + int rc; + rc = readdir_r(mydir, &dir, &dirp); + ], ac_cv_readdir_args=3) +fi + +AC_ARG_ENABLE([readdir_r], +[ --enable-readdir_r enable support for readdir_r], +enable_readdir_r=$enableval, enable_readdir_r="no") + +if test "$enable_readdir_r" = "no"; then + AC_MSG_RESULT(support disabled) +elif test -z "$ac_cv_readdir_args"; then + AC_MSG_RESULT(no) +else + if test "$ac_cv_readdir_args" = 2; then + AC_DEFINE([HAVE_READDIR_R_2],1,[readdir_r takes 2 arguments]) + elif test "$ac_cv_readdir_args" = 3; then + AC_DEFINE([HAVE_READDIR_R_3],1,[readdir_r takes 3 arguments]) + fi + AC_MSG_RESULT([yes, and it takes $ac_cv_readdir_args arguments]) +fi + +AC_MSG_CHECKING([for ctime_r]) +if test "$ac_cv_func_ctime_r" = "yes"; then + AC_TRY_COMPILE([ + #include + ],[ + char buf[31]; + time_t t; + ctime_r(&t, buf, 30); + ],[ + ac_cv_ctime_args=3 + AC_DEFINE([HAVE_CTIME_R_3],1,[ctime_r takes 3 arguments]) + ],[ + ac_cv_ctime_args=2 + AC_DEFINE([HAVE_CTIME_R_2],1,[ctime_r takes 2 arguments]) + ]) + + AC_MSG_RESULT([yes, and it takes $ac_cv_ctime_args arguments]) +fi + +dnl Determine socklen_t type. Code from lftp. +AC_MSG_CHECKING([for socklen_t]) +AC_CACHE_VAL([ac_cv_socklen_t], +[ + ac_cv_socklen_t=no + AC_TRY_COMPILE([ + #include + #include + ], + [ + socklen_t len; + getpeername(0,0,&len); + ], + [ + ac_cv_socklen_t=yes + ]) +]) +AC_MSG_RESULT([$ac_cv_socklen_t]) + if test $ac_cv_socklen_t = no; then + AC_MSG_CHECKING([for socklen_t equivalent]) + AC_CACHE_VAL([ac_cv_socklen_t_equiv], + [ + ac_cv_socklen_t_equiv=int + for t in int size_t unsigned long "unsigned long"; do + AC_TRY_COMPILE([ + #include + #include + ], + [ + $t len; + getpeername(0,0,&len); + ], + [ + ac_cv_socklen_t_equiv="$t" + break + ]) + done + ]) + AC_MSG_RESULT([$ac_cv_socklen_t_equiv]) + AC_DEFINE_UNQUOTED([socklen_t], $ac_cv_socklen_t_equiv, [Define to "int" if does not define.]) +fi + +dnl Check for clamav in /etc/passwd +if test "$test_clamav" = "yes" +then + dnl parse /etc/passwd + if test "$use_id" = "no" + then + AC_MSG_CHECKING([for $clamav_user in /etc/passwd]) + if test -r /etc/passwd; then + clamavuser=`cat /etc/passwd|grep "^$clamav_user:"` + clamavgroup=`cat /etc/group|grep "^$clamav_group:"` + fi + else + AC_MSG_CHECKING([for $clamav_user using id]) + id $clamav_user > /dev/null 2>&1 + if test "$?" = 0 ; then + clamavuser=1 + AC_PATH_PROG(GETENT, getent) + if test -n "$GETENT" ; then + clamavgroup=`$GETENT group | grep "^${clamav_group}:"` + else + clamavgroup=`cat /etc/group|grep $clamav_group` + fi + fi + fi + + if test "$use_netinfo" = "yes" + then + if test -x /usr/bin/dscl; then + AC_MSG_CHECKING([for $clamav_user using dscl]) + clamavuser=`/usr/bin/dscl . -list /Users |grep ${clamav_user}` + clamavgroup=`/usr/bin/dscl . -list /Groups |grep ${clamav_group}` + else + AC_MSG_CHECKING([for $clamav_user using netinfo]) + clamavuser=`/usr/bin/nidump passwd . |grep ${clamav_user}` + clamavgroup=`/usr/bin/nidump group . |grep ${clamav_group}` + fi + fi + + if test "$use_yp" = "yes" + then + AC_MSG_CHECKING([for $clamav_user using ypmatch]) + clamavuser=`ypmatch ${clamav_user} passwd` + clamavgroup=`ypmatch ${clamav_group} group` + fi + + if test -z "$clamavuser" || test -z "$clamavgroup" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([User $clamav_user (and/or group $clamav_group) does not exist. Please read the documentation !]) + else + AC_MSG_RESULT([yes, user $clamav_user and group $clamav_group]) + CLAMAVUSER="$clamav_user" + CLAMAVGROUP="$clamav_group" + AC_SUBST([CLAMAVUSER]) + AC_SUBST([CLAMAVGROUP]) + fi +fi + +dnl check for __attribute__((packed)) +dnl but only on compilers claiming to be gcc compatible +dnl because for example Sun's compiler silently ignores the packed attribute. +AC_MSG_CHECKING([for structure packing via __attribute__((packed))]) +AC_CACHE_VAL([have_cv_attrib_packed],[ + AC_TRY_COMPILE(, + [#ifdef __GNUC__ + struct { int i __attribute__((packed)); } s; + #else + #error Only checking for packed attribute on gcc-like compilers + #endif], + [have_cv_attrib_packed=yes], + [have_cv_attrib_packed=no]) + ]) +AC_MSG_RESULT([$have_cv_attrib_packed]) + +if test "$have_cv_attrib_packed" = no; then + AC_MSG_CHECKING([for structure packing via pragma]) + AC_CACHE_VAL([have_cv_pragma_pack],[ + AC_TRY_RUN([ + int main(int argc, char **argv) { +#pragma pack(1) /* has to be in column 1 ! */ + struct { char c; long l; } s; + return sizeof(s)==sizeof(s.c)+sizeof(s.l) ? 0:1; } ], + [have_cv_pragma_pack=yes], + [have_cv_pragma_pack=no]) + ]) + AC_MSG_RESULT([$have_cv_pragma_pack]) + if test "$have_cv_pragma_pack" = yes; then + AC_DEFINE([HAVE_PRAGMA_PACK], 1, "pragma pack") + else + AC_MSG_CHECKING([for structure packing via hppa/hp-ux pragma]) + AC_CACHE_VAL([have_cv_pragma_pack_hpux],[ + AC_TRY_RUN([ + /* hppa/hp-ux wants pragma outside of function */ +#pragma pack 1 /* has to be in column 1 ! */ + struct { char c; long l; } s; + int main(int argc, char **argv) { + return sizeof(s)==sizeof(s.c)+sizeof(s.l) ? 0:1; } ], + [have_cv_pragma_pack_hpux=yes], + [have_cv_pragma_pack_hpux=no]) + ]) + AC_MSG_RESULT([$have_cv_pragma_pack_hpux]) + AC_DEFINE([HAVE_PRAGMA_PACK_HPPA], 1, "pragma pack hppa/hp-ux style") + fi +fi + +dnl check for __attribute__((aligned)) +AC_MSG_CHECKING([for type aligning via __attribute__((aligned))]) +AC_CACHE_VAL([have_cv_attrib_aligned],[ + AC_TRY_COMPILE(, + [typedef int cl_aligned_int __attribute__((aligned));], + [have_cv_attrib_aligned=yes], + [have_cv_attrib_aligned=no]) + ]) +AC_MSG_RESULT([$have_cv_attrib_aligned]) + +if test "$have_cv_attrib_packed" = no -a "$have_cv_pragma_pack" = no -a "$have_cv_pragma_pack_hpux" = no; then + AC_MSG_ERROR(Need to know how to pack structures with this compiler) +fi + +if test "$have_cv_attrib_packed" = yes; then + AC_DEFINE([HAVE_ATTRIB_PACKED], 1, [attrib packed]) +fi + +if test "$have_cv_attrib_aligned" = yes; then + AC_DEFINE([HAVE_ATTRIB_ALIGNED], 1, [attrib aligned]) +fi + +dnl Sanity check that struct packing works +AC_MSG_CHECKING([that structure packing works]) +AC_CACHE_VAL([have_cv_struct_pack],[ + AC_TRY_RUN([ +#ifndef HAVE_ATTRIB_PACKED +#define __attribute__(x) +#endif +#ifdef HAVE_PRAGMA_PACK +#pragma pack(1) /* has to be in column 1 ! */ +#endif +#ifdef HAVE_PRAGMA_PACK_HPPA +#pragma pack 1 /* has to be in column 1 ! */ +#endif + +struct { char c __attribute__((packed)); long l __attribute__((packed)); } s; + +#ifdef HAVE_PRAGMA_PACK +#pragma pack() +#endif +#ifdef HAVE_PRAGMA_PACK_HPPA +#pragma pack +#endif + +struct { char c; long l;} s2; + +#ifdef HAVE_PRAGMA_PACK +#pragma pack(1) /* has to be in column 1 ! */ +#endif +#ifdef HAVE_PRAGMA_PACK_HPPA +#pragma pack 1 /* has to be in column 1 ! */ +#endif + +struct { char c; long l; } __attribute__((packed)) s3; + +#ifdef HAVE_PRAGMA_PACK +#pragma pack() +#endif +#ifdef HAVE_PRAGMA_PACK_HPPA +#pragma pack +#endif + + int main(int argc, char **argv) { + if (sizeof(s)!=sizeof(s.c)+sizeof(s.l)) + return 1; + if (sizeof(s) != sizeof(s3)) + return 2; + return (sizeof(s2) >= sizeof(s)) ? 0 : 3; + }], + [have_cv_struct_pack=yes], + [have_cv_struct_pack=no], + [have_cv_struct_pack=yes]) +]) +AC_MSG_RESULT([$have_cv_struct_pack]) + +if test "$have_cv_struct_pack" = "no"; then + AC_MSG_ERROR([Structure packing seems to be available, but is not working with this compiler]) +fi + +dnl Check if needs to be included for fd_set +AC_MSG_CHECKING([for fd_set]) +AC_HEADER_EGREP([fd_mask], [sys/select.h], [have_fd_set=yes]) +if test "$have_fd_set" = yes; then + AC_DEFINE([HAVE_SYS_SELECT_H], 1, "have ") + AC_MSG_RESULT([yes, found in sys/select.h]) +else + AC_TRY_COMPILE([#include + #include + #ifdef HAVE_UNISTD_H + #include + #endif], + [fd_set readMask, writeMask;], have_fd_set=yes, have_fd_set=no) + if test "$have_fd_set" = yes; then + AC_MSG_RESULT([yes, found in sys/types.h]) + else + AC_DEFINE([NO_FD_SET], 1, "no fd_set") + AC_MSG_RESULT(no) + fi +fi + +AC_MSG_CHECKING([default FD_SETSIZE value]) +AC_TRY_RUN([ +#include +#include +#include +#ifdef HAVE_SYS_SELECT_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#include +int main(void) { + FILE *fp = fopen("conftestval", "w"); + if(fp) { + if(fprintf (fp, "%d\n", FD_SETSIZE) < 1) { + perror("fprintf failed"); + return errno; + } + } else { + perror("fopen failed"); + return errno; + } + return 0; +} +], +DEFAULT_FD_SETSIZE=`cat conftestval`, +DEFAULT_FD_SETSIZE=256, +DEFAULT_FD_SETSIZE=256) +AC_MSG_RESULT([$DEFAULT_FD_SETSIZE]) +AC_DEFINE_UNQUOTED([DEFAULT_FD_SETSIZE], $DEFAULT_FD_SETSIZE, "default FD_SETSIZE value") + +AC_MSG_CHECKING([stat64]) +AC_TRY_RUN([ +#define _LARGEFILE_SOURCE +#define _LARGEFILE64_SOURCE +#include +#include +#include +#include +#include + +int main(void) { + struct stat64 sb; + + if (stat64(".", &sb) == -1) + return errno; + + return 0; +} +], +[enable_stat64=yes], +[enable_stat64=no], +[enable_stat64=no], +) + +if test "$enable_stat64" != "no"; then +AC_DEFINE([HAVE_STAT64],1,[enable stat64]) +CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" +fi +AC_MSG_RESULT([$enable_stat64]) + +dnl Check signed right shift implementation +AC_MSG_CHECKING([whether signed right shift is sign extended]) +AC_TRY_RUN([int main(void){int a=-1;int b=a>>1;return(a!=b);}], + [have_signed_rightshift_extended=yes], + [have_signed_rightshift_extended=no], + [have_signed_rightshift_extended=no]) +if test $have_signed_rightshift_extended = yes; then + AC_DEFINE([HAVE_SAR], 1, [Define signed right shift implementation]) +fi +AC_MSG_RESULT([$have_signed_rightshift_extended]); + +AC_C_FDPASSING + +AC_DEFINE_UNQUOTED([VERSION],"$VERSION",[Version number of package]) +AC_DEFINE_UNQUOTED([VERSION_SUFFIX],"$VERSION_SUFFIX",[Version suffix for package]) + +AC_ARG_ENABLE(clamdtop, + AC_HELP_STRING([--enable-clamdtop], + [Enable 'clamdtop' tool @<:@default=auto@:>@]), +[enable_clamdtop=$enableval], [enable_clamdtop="auto"]) + +if test "$enable_clamdtop" != "no"; then + +AC_LIB_FIND([ncurses], [ncurses/ncurses.h], + AC_LANG_PROGRAM([#include ], + [initscr(); KEY_RESIZE;]), + [CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES"; + CURSES_INCLUDE=""], + []) + +if test "X$HAVE_LIBNCURSES" != "Xyes"; then + HAVE_LIBNCURSES= + AC_LIB_FIND([ncurses], [ncurses.h], + AC_LANG_PROGRAM([#include ], + [initscr(); KEY_RESIZE;]), + [CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES"; + CURSES_INCLUDE=""], + []) +fi + +if test "X$HAVE_LIBNCURSES" != "Xyes"; then + AC_LIB_FIND([pdcurses],[curses.h], + AC_LANG_PROGRAM([#include ], + [initscr(); KEY_RESIZE;]), + [CURSES_CPPFLAGS="$INCPDCURSES"; + CURSES_LIBS="$LTLIBPDCURSES"; + CURSES_INCLUDE=""], + [AC_MSG_WARN([****** not building clamdtop: ncurses not found])]) +fi + +if test "x$CURSES_LIBS" = "x" -a "$enable_clamdtop" = "yes"; then + AC_MSG_ERROR([ + +ERROR! Clamdtop was configured, but not found. You need to install libncurses5-dev. +]) +fi + +fi + +AC_DEFINE_UNQUOTED([CURSES_INCLUDE], $CURSES_INCLUDE, [curses header location]) +AC_SUBST([CURSES_CPPFLAGS]) +AC_SUBST([CURSES_LIBS]) +AM_CONDITIONAL([HAVE_CURSES], + [test "X$HAVE_LIBNCURSES" = "Xyes" || test "X$HAVE_LIBPDCURSES" = "Xyes"]) + +AC_ARG_ENABLE([distcheck-werror], + AC_HELP_STRING([--enable-distcheck-werror], + [enable warnings as error for distcheck + @<:@default=no@:>@]), +[enable_distcheckwerror=$enableval],[enable_distcheckwerror="no"]) + +# Enable distcheck warnings and Werror only for gcc versions that support them, +# and only after we've run the configure tests. +# Some configure tests fail (like checking for cos in -lm) if we enable these +# Werror flags for configure too (for example -Wstrict-prototypes makes +# configure think that -lm doesn't have cos, hence its in libc). +WERR_CFLAGS= +WERR_CFLAGS_MILTER= +if test "x$enable_distcheckwerror" = "xyes"; then + if test "$distcheck_enable_flags" = "1"; then + WERR_COMMON="-Wno-pointer-sign -Werror-implicit-function-declaration -Werror -Wextra -Wall -Wno-error=strict-aliasing -Wno-error=bad-function-cast -Wbad-function-cast -Wcast-align -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wno-error=missing-prototypes -Wnested-externs -Wno-error=nested-externs -Wpointer-arith -Wstrict-prototypes -Wno-error=strict-prototypes -Wno-switch -Wno-switch-enum -Wundef -Wstrict-overflow=1 -Winit-self -Wmissing-include-dirs -Wdeclaration-after-statement -Waggregate-return -Wmissing-format-attribute -Wno-error=missing-format-attribute -Wno-error=type-limits -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-value -Wno-error=unused-variable -Wcast-qual -Wno-error=cast-qual -Wno-error=sign-compare -Wshadow -Wno-error=shadow -Wno-error=uninitialized -fdiagnostics-show-option -Wno-unused-parameter -Wno-error=unreachable-code -Winvalid-pch -Wno-error=invalid-pch -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -Wno-error=aggregate-return" + WERR_CFLAGS="$WERR_COMMON -Wwrite-strings" + WERR_CFLAGS_MILTER="$WERR_COMMON -Wno-error=format-nonliteral" + fi +fi +AC_SUBST([WERR_CFLAGS]) +AC_SUBST([WERR_CFLAGS_MILTER]) + +AC_ARG_ENABLE([llvm],AC_HELP_STRING([--enable-llvm], + [Enable 'llvm' JIT/verifier support @<:@default=auto@:>@]), + [enable_llvm=$enableval], [enable_llvm="auto"]) + +if test "$enable_llvm" != "no"; then + dnl Try to configure subdir, optionally + AC_CONFIG_SUBDIRS_OPTIONAL([libclamav/c++]) +fi + +AC_ARG_ENABLE([sha-collector-for-internal-use], [], [enable_sha_collector="yes"], [enable_sha_collector="no"]) +if test "$enable_sha_collector" != "no"; then + AC_DEFINE([HAVE__INTERNAL__SHA_COLLECT], 1, [For internal use only - DO NOT DEFINE]) +fi + +AC_OUTPUT([ +clamscan/Makefile +database/Makefile +docs/Makefile +clamd/Makefile +clamdscan/Makefile +clamav-milter/Makefile +freshclam/Makefile +sigtool/Makefile +clamconf/Makefile +etc/Makefile +test/Makefile +unit_tests/Makefile +clamdtop/Makefile +clambc/Makefile +Makefile +clamav-config +libclamav.pc +platform.h +docs/man/clamav-milter.8 +docs/man/clamav-milter.conf.5 +docs/man/clambc.1 +docs/man/clamconf.1 +docs/man/clamd.8 +docs/man/clamd.conf.5 +docs/man/clamdscan.1 +docs/man/clamscan.1 +docs/man/freshclam.1 +docs/man/freshclam.conf.5 +docs/man/sigtool.1 +docs/man/clamdtop.1 +]) + +if test "$enable_llvm" = "yes" && test "$subdirfailed" != "no"; then + AC_MSG_ERROR([Failed to configure LLVM, and LLVM was explicitly requested]) +fi +AM_CONDITIONAL([ENABLE_LLVM], + [test "$subdirfailed" != "yes" && test "$enable_llvm" != "no"]) +no_recursion="yes"; +AC_OUTPUT([libclamav/Makefile]) + +# Print a summary of what features we enabled +AC_MSG_NOTICE([Summary of detected features follows]) + +cat < -dnl readdir_r checks (c) COPYRIGHT MIT 1995 -dnl socklen_t check (c) Alexander V. Lukyanov -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2 of the License, or -dnl (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -dnl MA 02110-1301, USA. - -AC_PREREQ([2.59]) -dnl For a release change [devel] to the real version [0.xy] -dnl also change VERSION below -AC_INIT([ClamAV], [0.97.8], [http://bugs.clamav.net/], [clamav], [http://www.clamav.net/]) - -AH_BOTTOM([#include "platform.h"]) -dnl put configure auxiliary into config -AC_CONFIG_AUX_DIR([config]) -AC_CONFIG_HEADER([clamav-config.h]) - -dnl safety check, this used to be a parameter to AC_INIT -AC_CONFIG_SRCDIR([clamscan/clamscan.c]) -AC_CONFIG_MACRO_DIR([m4]) -AC_CREATE_TARGET_H([target.h]) - -dnl -Wall and -Werror here are NOT CFLAGS, they refer to automake warnings -dnl enable stealth builds and psychedelic tests -AM_INIT_AUTOMAKE([1.11 -Wall -Wportability -Wno-override -Werror std-options foreign dist-bzip2 no-define color-tests parallel-tests tar-ustar]) -AM_SILENT_RULES([yes]) - -dnl we told automake to not define these, since we want to include -dnl the date in the version -AC_DEFINE([PACKAGE], PACKAGE_NAME, [Name of package]) - -dnl change this on a release -dnl VERSION="devel-`date +%Y%m%d`" -VERSION="0.97.8" - -LC_CURRENT=7 -LC_REVISION=17 -LC_AGE=1 -LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE" -AC_SUBST([LIBCLAMAV_VERSION]) - -AC_PROG_AWK -AC_PROG_INSTALL -AC_PROG_LN_S -AC_PROG_MAKE_SET - -LT_CONFIG_LTDL_DIR([libltdl]) -LT_INIT([dlopen disable-static]) -LTDL_INIT([recursive]) -AC_CONFIG_FILES([libltdl/Makefile]) - -major=`expr $LC_CURRENT - $LC_AGE` -AC_DEFINE_UNQUOTED([LIBCLAMAV_FULLVER], "$major.$LC_AGE.$LC_REVISION", - ["Full library version number"]) -AC_DEFINE_UNQUOTED([LIBCLAMAV_MAJORVER], $major, - ["Major library version number"]) -AC_DEFINE([SCANBUFF], 131072, [scan buffer size]) -AC_DEFINE([FILEBUFF], 8192, [file i/o buffer size]) - -AC_LIB_MULTILIB_GUESS - -AC_HEADER_STDC -AC_C_RESTRICT -AC_C_CONST -AC_C_INLINE -AC_C_FPU_BIGENDIAN -AC_C_BIGENDIAN - -LT_LIB_M - -AC_ARG_ENABLE([gcc-vcheck], -[ --disable-gcc-vcheck do not check for buggy gcc version ], -gcc_check=$enableval, gcc_check="yes") - -msg_gcc_check="use --disable-gcc-vcheck to disable this check. Before reporting any bugs check with a supported version of gcc" -VERSION_SUFFIX= -dnl Check for gcc-4.1.0 -if test "$gcc_check" = "yes"; then - if test "x$ac_compiler_gnu" = "xyes"; then - AC_MSG_CHECKING([for a supported version of gcc]) - gcc_version=`${CC} -dumpversion` - case "${gcc_version}" in - 4.1.0*) - AC_MSG_RESULT([no (${gcc_version})]) - AC_MSG_ERROR([gcc 4.1.0 is known to incorrectly compile upx.c. Upgrade your compiler to at least 4.1.1/4.1.2)]) - ;; - *) - AC_MSG_RESULT([ok (${gcc_version})]) - ;; - esac - case "${gcc_version}" in - [[56789]].* | 4.[[3456789]].*) - # bb #1581 - temporarely add -fno-strict-aliasing so gcc 4.4.0 - # works correctly - CFLAGS="$CFLAGS -fno-strict-aliasing" - ;; - *) - ;; - esac - fi -else - CFLAGS="$CFLAGS -O0" - VERSION_SUFFIX="$VERSION_SUFFIX-broken-compiler" -fi - -# add distcheck warning flags -distcheck_enable_flags=0 -if test "x$ac_compiler_gnu" = "xyes"; then - gcc_version=`${CC} -dumpversion` - case "${gcc_version}" in - 4.[[3456789]]*) - distcheck_enable_flags=1 - ;; - [[56789]].*) - distcheck_enable_flags=1 - ;; - esac -fi - -dnl Checks if compiler produces valid code, regardless of compiler -dnl we do these checks here to avoid receiving endless bugreports about -dnl breakages due to compiler bugs. - -dnl Check if compiler produces invalid code on gcc PR27603 (affects upx.c) -dnl testcase from gcc testsuite -AC_MSG_CHECKING([for gcc bug PR27603]) -AC_TRY_RUN( - [ -/* (C) Richard Guenther */ -void exit (int); -void abort (void); -int a; -int main(void) -{ - int j; - for (j = 0; j < 6; j++) - { - if ((unsigned)j - 3 <= 1) - exit (0); - a = 1000 * (6 - j); - } - abort (); -} -], [AC_MSG_RESULT([ok, bug not present])], -[AC_MSG_ERROR([your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) - -dnl Check if compiler produces invalid code on gcc PR26763-2 (affects upx.c) -dnl testcase from gcc testsuite -AC_MSG_CHECKING([for gcc bug PR26763-2]) -AC_TRY_RUN( - [ -/* (C) Richard Guenther */ -extern void abort(void); - -static int try (char *a, int d) -{ - return a + d > a; -} - -int main(void) -{ - char bla[100]; - - if (try (bla + 50, -1)) - abort (); - - return 0; -} -], [AC_MSG_RESULT([ok, bug not present])], -[AC_MSG_ERROR([your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763])],[AC_MSG_RESULT([cross-compiling, assumed ok])]) - -dnl Check if compiler produces invalid code on own testcase based on upx.c -AC_MSG_CHECKING([for valid code generation of CLI_ISCONTAINED]) -AC_TRY_RUN( - [ -#include -static struct v{ - char* dst; - unsigned int dsize; - unsigned int dcur; - unsigned int backsize; - signed int unp_offset; -} values[] = { - {(char*)0xf78ab008, 0x2e000, 1, 4, -1594}, - {(char*)0xb7af1008, 0x2e000, 1, 4, -1594} - -}; -extern void abort(void); - -#define CLI_ISCONTAINED(bb, bb_size, sb, sb_size) \ - ((bb_size) > 0 && (sb_size) > 0 && (size_t)(sb_size) <= (size_t)(bb_size) \ - && (sb) >= (bb) && ((sb) + (sb_size)) <= ((bb) + (bb_size)) && ((sb) + (sb_size)) > (bb) && (sb) < ((bb) + (bb_size))) - -int crashtest() -{ - unsigned int backsize, dcur; - int dval=0x12000, unp_offset; - int* dsize = &dval; - char* dst = (char*)0x12000; - while(1) { - backsize=4; - dcur=0; - unp_offset=0x800002c7; - - if (!CLI_ISCONTAINED(dst, *dsize, dst+dcur+unp_offset, backsize) || !CLI_ISCONTAINED(dst, *dsize, dst+dcur, backsize) || unp_offset >=0) - return -1; - abort(); - } - return 0; -} - -int main(void) -{ - int i; - for(i=0;idst; - unsigned int* dsize = &v->dsize; - unsigned int dcur = v->dcur; - unsigned int backsize = v->backsize-1; - signed int unp_offset = v->unp_offset; - - if(!CLI_ISCONTAINED(dst, *dsize, dst+dcur+unp_offset, backsize) || - !CLI_ISCONTAINED(dst, *dsize,dst+dcur,backsize) || unp_offset >= 0) { - continue; - } - abort(); - } - crashtest(); - return 0; -} -], [AC_MSG_RESULT([ok, bug not present])], -[AC_MSG_ERROR([your compiler has a bug that causes clamav bug no. 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) - -dnl Check if compiler produces invalid code on gcc PR28045 (affects upx.c) -dnl testcase from gcc testsuite -AC_MSG_CHECKING([for gcc bug PR28045]) -AC_TRY_RUN( - [ -/* (C) Andrew Pinski */ -extern void abort(void); -struct a -{ - unsigned int bits : 1; - signed long val : ((sizeof(long) * 8) - 1); -}; -static int Fnegate (struct a b) -{ - if ((-((long)b.val)) <= ((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL)) - && (-((long)b.val)) >= (-(((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL))) - 1)) - return 0 ; - abort (); -} -int main (void) -{ - struct a b = {1, 1}; - Fnegate (b); - return 0; -} -], [AC_MSG_RESULT([ok, bug not present])], -[AC_MSG_ERROR([your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) - -dnl Check if compiler produces invalid code on gcc PR37573 (affects autoit.c) -dnl this is a bug in gcc 4.4.0, but for some reason it affects gcc 4.1.2 too -dnl gcc 4.1.3 is OK. This bug occurs only at -O3. -AC_MSG_CHECKING([for gcc bug PR37573]) -AC_TRY_RUN( - [ -#include -#include -struct S -{ - unsigned int *a; - unsigned int b; - unsigned int c[624]; -}; -static unsigned char -foo (struct S *s) -{ - unsigned int r; - if (!--s->b) - { - unsigned int *c = s->c; - unsigned int i; - s->a = c; - for (i = 0; i < 227; i++) - c[i] = - ((((c[i] ^ c[i + 1]) & 0x7ffffffe) ^ c[i]) >> 1) ^ - ((0 - (c[i + 1] & 1)) & 0x9908b0df) ^ c[i + 397]; - for (; i < 623; i++) - c[i] = - ((((c[i] ^ c[i + 1]) & 0x7ffffffe) ^ c[i]) >> 1) ^ - ((0 - (c[i + 1] & 1)) & 0x9908b0df) ^ c[i - 227]; - c[623] = - ((((c[623] ^ c[0]) & 0x7ffffffe) ^ c[623]) >> 1) ^ ((0 - (c[0] & 1)) & - 0x9908b0df) ^ c[i - - - 227]; - } - r = *(s->a++); - r ^= (r >> 11); - r ^= ((r & 0xff3a58ad) << 7); - r ^= ((r & 0xffffdf8c) << 15); - r ^= (r >> 18); - return (unsigned char) (r >> 1); -} - -void -bar (unsigned char *p, unsigned int q, unsigned int r) -{ - struct S s; - unsigned int i; - unsigned int *c = s.c; - *c = r; - for (i = 1; i < 624; i++) - c[i] = i + 0x6c078965 * ((c[i - 1] >> 30) ^ c[i - 1]); - s.b = 1; - while (q--) - *p++ ^= foo (&s); -}; - -static unsigned char p[23] = { - 0xc0, 0x49, 0x17, 0x32, 0x62, 0x1e, 0x2e, 0xd5, 0x4c, 0x19, 0x28, 0x49, - 0x91, 0xe4, 0x72, 0x83, 0x91, 0x3d, 0x93, 0x83, 0xb3, 0x61, 0x38 -}; - -static unsigned char q[23] = { - 0x3e, 0x41, 0x55, 0x54, 0x4f, 0x49, 0x54, 0x20, 0x55, 0x4e, 0x49, 0x43, - 0x4f, 0x44, 0x45, 0x20, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x3c -}; - -int -main (void) -{ - unsigned int s; - s = 23; - bar (p, s, s + 0xa25e); - if (memcmp (p, q, s) != 0) - abort (); - return 0; -} - -], [AC_MSG_RESULT([ok, bug not present])], -[AC_MSG_ERROR([your compiler has gcc PR37573 bug, use a lower optimization level (-O1 or -O2), see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37573])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) - -dnl Linker feature checks -dnl check for version script support in the linker (GNU ld, or Solaris ld style) -AC_CACHE_CHECK([for ld --version-script], [ac_cv_ld_version_script], [dnl - cat > conftest.c < conftest.map <&AS_MESSAGE_LOG_FD]); - then - VERSIONSCRIPTFLAG=--version-script - ac_cv_ld_version_script=yes - else - dnl check for Solaris ld style linker version script - if AC_TRY_COMMAND([${CC-cc} $CFLAGS $pic_flag $LDFLAGS -shared - -o conftest.so conftest.c - -Wl,-M,conftest.map - 1>&AS_MESSAGE_LOG_FD]); - then - VERSIONSCRIPTFLAG=-M - ac_cv_ld_version_script=yes; - else - ac_cv_ld_version_script=no - fi - fi - rm -f conftest*]) -AC_SUBST([VERSIONSCRIPTFLAG]) -AM_CONDITIONAL([VERSIONSCRIPT], test "x$ac_cv_ld_version_script" = "xyes") - -# it is not fatal if gperf is missing -AM_MISSING_PROG(GPERF, gperf) -AC_SUBST(GPERF) - -AC_CHECK_HEADERS([stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h]) -AC_CHECK_HEADER([syslog.h],AC_DEFINE([USE_SYSLOG],1,[use syslog]),) - -AC_TYPE_OFF_T -AC_COMPILE_CHECK_SIZEOF([short]) -AC_COMPILE_CHECK_SIZEOF([int]) -AC_COMPILE_CHECK_SIZEOF([long]) -AC_COMPILE_CHECK_SIZEOF([long long]) -AC_COMPILE_CHECK_SIZEOF([void *]) - -AC_ARG_ENABLE([experimental], -[ --enable-experimental enable experimental code], -enable_experimental=$enableval, enable_experimental="no") - -if test "$enable_experimental" = "yes"; then - AC_DEFINE([CL_EXPERIMENTAL],1,[enable experimental code]) - VERSION_SUFFIX="$VERSION_SUFFIX-exp" -fi - -build_configure_args=`echo "$ac_configure_args" | sed -e 's/[\"]//g'` -AC_SUBST([BUILD_CONFIGURE_FLAGS], [$build_configure_args]) - -AX_CHECK_UNAME_SYSCALL -AC_CHECK_LIB([socket], [bind], [LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket"]) -AC_SEARCH_LIBS([gethostent],[nsl], [(LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl")]) - -AC_CHECK_FUNCS([poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat strcasestr inet_ntop setgroups initgroups ctime_r mkstemp mallinfo madvise]) -AC_FUNC_FSEEKO - -dnl Check if anon maps are available, check if we can determine the page size -AC_C_FUNC_MMAP_PRIVATE -AC_C_FUNC_PAGESIZE -AC_C_FUNC_MMAP_ANONYMOUS -AC_ARG_ENABLE([mempool],[ --disable-mempool disable memory pools], enable_mempool=$enableval, enable_mempool="yes") -have_mempool="no" -if test "$enable_mempool" = "yes"; then - if test "$ac_cv_c_mmap_private" != "yes"; then - AC_MSG_NOTICE([****** mempool support disabled (mmap not available or not usable)]) - else - if test "$ac_cv_c_can_get_pagesize" != "yes"; then - AC_MSG_NOTICE([****** mempool support disabled (pagesize cannot be determined)]) - else - if test "$ac_cv_c_mmap_anonymous" = "no"; then - AC_MSG_NOTICE([****** mempool support disabled (anonymous mmap not available)]) - else - AC_DEFINE([USE_MPOOL],1,[enable memory pools]) - have_mempool="yes" - fi - fi - fi -fi - -enable_check_ut=auto -enable_ut_install=no -AC_ARG_ENABLE(check, -[ --enable-check Enable 'check' unit tests (default=auto)], enable_check_ut=$enableval, enable_check_ut="auto" ) - -if test "$enable_check_ut" != "no" ; then - AC_LIB_FIND([check],[check.h], - AC_LANG_PROGRAM([#include ],[srunner_create(0)]), - [CHECK_CPPFLAGS="$INCCHECK"; CHECK_LIBS="$LTLIBCHECK"], - []) -fi -AC_SUBST([CHECK_CPPFLAGS]) -AC_SUBST([CHECK_LIBS]) -AM_CONDITIONAL([HAVE_LIBCHECK],test "X$HAVE_LIBCHECK" = "Xyes") - -if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then - AC_MSG_ERROR([ - -ERROR! Check was configured, but not found. Get it from http://check.sf.net/ -]) -fi - -AC_ARG_ENABLE(coverage, - AC_HELP_STRING([--enable-coverage], - [turn on test coverage - @<:@default=no@:>@]), -[enable_cov=$enableval],[enable_cov="no"]) - -if test "x$enable_coverage" = "xyes"; then - if test "x$CHECK_LIBS" = "x"; then - AC_MSG_ERROR([Coverage testing required, but unit tests not enabled!]) - fi - if test "x$ac_compiler_gnu" != "xyes"; then - AC_MSG_ERROR([coverage testing only works if gcc is used]) - fi - - CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" - LDFLAGS="$LDFLAGS -lgcov" - AC_CHECK_PROGS(GCOV, gcov, false) - AC_CHECK_PROGS(LCOV, lcov, false) - AC_CHECK_PROGS(GENHTML, genhtml, false) -fi - -AM_CONDITIONAL(ENABLE_COVERAGE, test "x$enable_coverage" = "xyes") - -have_pthreads=no -AC_CHECK_HEADER([pthread.h],[have_pthreads=yes],) - -AM_MAINTAINER_MODE -dnl Check for zlib -AC_MSG_CHECKING([for zlib installation]) -AC_ARG_WITH([zlib], -[ --with-zlib=DIR path to directory containing zlib library (default= - /usr/local or /usr if not found in /usr/local)], -[ -if test "$withval"; then - ZLIB_HOME="$withval" - AC_MSG_RESULT([using $ZLIB_HOME]) -fi -], [ -ZLIB_HOME=/usr/local -if test ! -f "$ZLIB_HOME/include/zlib.h" -then - ZLIB_HOME=/usr -fi -AC_MSG_RESULT([$ZLIB_HOME]) -]) - -CLAMDSCAN_LIBS="$FRESHCLAM_LIBS" - -AC_ARG_ENABLE([zlib-vcheck], -[ --disable-zlib-vcheck do not check for buggy zlib version ], -zlib_check=$enableval, zlib_check="yes") - -if test ! -f "$ZLIB_HOME/include/zlib.h" -then - AC_MSG_ERROR([Please install zlib and zlib-devel packages]) -else - - vuln=`grep "ZLIB_VERSION \"1.2.0" $ZLIB_HOME/include/zlib.h` - if test -z "$vuln"; then - vuln=`grep "ZLIB_VERSION \"1.2.1" $ZLIB_HOME/include/zlib.h` - fi - - if test -n "$vuln"; then - if test "$zlib_check" = "yes"; then - AC_MSG_ERROR(The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!) - else - AC_MSG_WARN([****** This ClamAV installation may be linked against]) - AC_MSG_WARN([****** a broken zlib version. Please DO NOT report any]) - AC_MSG_WARN([****** stability problems to the ClamAV developers!]) - fi - fi - - save_LIBS="$LIBS" - if test "$ZLIB_HOME" != "/usr"; then - CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include" - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib" - AC_CHECK_LIB([z], [inflateEnd], [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -L$ZLIB_HOME/lib -lz"], AC_MSG_ERROR([Please install zlib and zlib-devel packages])) - AC_CHECK_LIB([z], [gzopen], [], AC_MSG_ERROR([Your zlib is missing gzopen()])) - LDFLAGS="$save_LDFLAGS" - else - AC_CHECK_LIB([z], [inflateEnd], [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz";FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lz"], AC_MSG_ERROR([Please install zlib and zlib-devel packages])) - AC_CHECK_LIB([z], [gzopen],[], AC_MSG_ERROR([Your zlib is missing gzopen()])) - fi - LIBS="$save_LIBS" -fi - -AC_ARG_ENABLE([bzip2], -[ --disable-bzip2 disable bzip2 support], -want_bzip2=$enableval, want_bzip2="yes") - -bzip_check="ok" -if test "$want_bzip2" = "yes" -then - AC_LIB_LINKFLAGS([bz2]) - save_LDFLAGS="$LDFLAGS" - # Only add -L if prefix is not empty - test -z "$LIBBZ2_PREFIX" || LDFLAGS="$LDFLAGS -L$LIBBZ2_PREFIX/$acl_libdirstem"; - - have_bzprefix="no" - AC_CHECK_LIB([bz2], [BZ2_bzReadOpen], [have_bzprefix="yes"]) - if test "x$have_bzprefix" = "xno"; then - AC_DEFINE([NOBZ2PREFIX],1,[bzip funtions do not have bz2 prefix]) - fi - LDFLAGS="$save_LDFLAGS" - if test "$HAVE_LIBBZ2" = "yes"; then - AC_CHECK_HEADER([bzlib.h], - [AC_C_CVE_2008_1372], - [ac_cv_c_cve_2008_1372="no"]) - if test "$ac_cv_c_cve_2008_1372" = "bugged"; then - AC_MSG_WARN([****** bzip2 libraries are affected by the CVE-2008-1372 bug]) - AC_MSG_WARN([****** We strongly suggest you to update to bzip2 1.0.5.]) - AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!]) - bzip_check="bugged (CVE-2008-1372)" - fi - if test "$ac_cv_c_cve_2008_1372" = "linkfailed"; then - dnl This shouldn't happen - dnl We failed to link but libtool may still be able to link, so don't disable bzip2 just yet - AC_MSG_WARN([****** Unable to link bzip2 testcase]) - AC_MSG_WARN([****** You may be affected by CVE-2008-1372 bug, but I need to be able to link a testcase to verify]) - AC_MSG_WARN([****** It is recommended to fix your build environment so that we can run the testcase!]) - AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!]) - bzip_check="link failed (CVE-2008-1372)" - fi - - case "$ac_cv_c_cve_2008_1372" in - ok|bugged|linkfailed) - ;; - *) - HAVE_LIBBZ2=no - ;; - esac - fi - - if test "$HAVE_LIBBZ2" = "yes"; then - AC_C_CVE_2010_0405 - if test "$ac_cv_c_cve_2010_0405" = "bugged"; then - AC_MSG_WARN([****** bzip2 libraries are affected by the CVE-2010-0405 bug]) - AC_MSG_WARN([****** We strongly suggest you to update bzip2]) - AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!]) - bzip_check="bugged (CVE-2010-0405)" - fi - if test "$ac_cv_c_cve_2010_0405" = "linkfailed"; then - dnl This shouldn't happen - dnl We failed to link but libtool may still be able to link, so don't disable bzip2 just yet - AC_MSG_WARN([****** Unable to link bzip2 testcase]) - AC_MSG_WARN([****** You may be affected by CVE-2010-0405 bug, but I need to be able to link a testcase to verify]) - AC_MSG_WARN([****** It is recommended to fix your build environment so that we can run the testcase!]) - AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!]) - bzip_check="link failed (CVE-2010-0405)" - fi - - case "$ac_cv_c_cve_2010_0405" in - ok|bugged|linkfailed) - LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBBZ2" - AC_DEFINE([HAVE_BZLIB_H],1,[have bzip2]) - ;; - *) - AC_MSG_WARN([****** bzip2 support disabled]) - ;; - esac - - else - AC_MSG_WARN([****** bzip2 support disabled]) - fi -fi - -AC_ARG_ENABLE([unrar], -[ --disable-unrar don't build libclamunrar and libclamunrar_iface ], -want_unrar=$enableval, want_unrar="yes") -AM_CONDITIONAL([ENABLE_UNRAR],[test "$want_unrar" = "yes"]) - -AC_ARG_ENABLE([getaddrinfo], -[ --disable-getaddrinfo disable support for getaddrinfo], -want_getaddrinfo=$enableval, want_getaddrinfo="yes") - -if test "$want_getaddrinfo" = "yes" -then - AC_MSG_CHECKING([for getaddrinfo]) - AC_CACHE_VAL([have_cv_gai],[ - AC_TRY_RUN([ - #include - #include - #include - #include - int main(int argc, char **argv) - { - struct addrinfo *res; - int sd; - - if(getaddrinfo("127.0.0.1", NULL, NULL, &res) < 0) - return 1; - freeaddrinfo(res); - - return 0; - } - ], - [have_cv_gai=yes], - [have_cv_gai=no], - [have_cv_gai=no]) - ]) - AC_MSG_RESULT([$have_cv_gai]) - if test "$have_cv_gai" = yes; then - AC_DEFINE(HAVE_GETADDRINFO, 1, [have getaddrinfo()]) - fi -fi - -AC_ARG_ENABLE([ipv6], -[ --disable-ipv6 disable IPv6 support], -want_ipv6=$enableval, want_ipv6="yes") - -if test "$want_ipv6" = "yes" -then - AC_MSG_CHECKING([for IPv6 support]) - AC_CACHE_VAL([have_cv_ipv6],[ - AC_TRY_RUN([ - #include - #include - #include - #include - int main(int argc, char **argv) - { - struct addrinfo *res, hints; - int sd; - - if((sd = socket(AF_INET6, SOCK_STREAM, 0)) < 0) - return 1; - close(sd); - /* also check if getaddrinfo() handles AF_UNSPEC -- bb#1196 */ - memset(&hints, 0, sizeof(hints)); - hints.ai_family = AF_UNSPEC; - if(getaddrinfo("127.0.0.1", NULL, &hints, &res) < 0) - return 1; - freeaddrinfo(res); - return 0; - } - ], - [have_cv_ipv6=yes], - [have_cv_ipv6=no], - [have_cv_ipv6=no]) - ]) - AC_MSG_RESULT([$have_cv_ipv6]) - if test "$have_cv_ipv6" = yes; then - AC_DEFINE(SUPPORT_IPv6, 1, [Support for IPv6]) - fi -fi - -AC_C_DNS - -AC_ARG_ENABLE([clamuko], -[ --disable-clamuko disable clamuko support (Linux, DragonFly and FreeBSD only)], -want_clamuko=$enableval, want_clamuko="yes") - -dnl AC_FUNC_SETPGRP does not work when cross compiling -dnl Instead, assume we will have a prototype for setpgrp if cross compiling. -dnl testcase from gdb/configure.ac -if test "$cross_compiling" = no; then - AC_FUNC_SETPGRP -else - AC_CACHE_CHECK([whether setpgrp takes no argument], [ac_cv_func_setpgrp_void], - [AC_TRY_COMPILE([ -#include -], [ - if (setpgrp(1,1) == -1) - exit (0); - else - exit (1); -], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes)]) -if test $ac_cv_func_setpgrp_void = yes; then - AC_DEFINE([SETPGRP_VOID], 1) -fi -fi - -AC_ARG_ENABLE([milter], -[ --enable-milter build clamav-milter], -have_milter=$enableval, have_milter="no") - -have_system_tommath=no -AC_ARG_WITH([system-tommath], -[ --with-system-tommath link against system libtommath (default = no, use bundled)], -[ - case "$withval" in - yes) - AC_CHECK_LIB([tommath], [mp_mul_2d], - [ - AC_DEFINE([HAVE_SYSTEM_TOMMATH], 1, [link against system-wide libtommath]) - LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -ltommath" - have_system_tommath=yes - ], - [AC_MSG_WARN([****** Option --with-system-tommath was given but libtommath does not seem to be available, using bundled files instead])] - ) - ;; - no) ;; - *) AC_MSG_ERROR([--with-system-tommath does not take an argument]) ;; - esac -]) -AM_CONDITIONAL([LINK_TOMMATH], test "x$have_system_tommath" = "xyes") - - -dnl we need to try to link with iconv, otherwise there could be a -dnl mismatch between a 32-bit and 64-bit lib. Detect this at configure time. -dnl we need to check after zlib/bzip2, because they can change the include path -AC_ARG_WITH([iconv], [ --with-iconv supports iconv() (default=auto)], -[ - case "$withval" in - yes|no) wiconv="$withval";; - *) AC_MSG_ERROR([--with-iconv does not take an argument]);; - esac], -[ wiconv=auto ]) -if test "X$wiconv" != "Xno"; then - AC_CHECK_LIB([iconv], [libiconv_open], LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -liconv") - AC_MSG_CHECKING([for iconv]) - save_LIBS="$LIBS" - LIBS="$LIBCLAMAV_LIBS" - AC_TRY_LINK([ - #include - ],[ - char** xin,**xout; - unsigned long il,ol; - int rc; - iconv_t iconv_struct = iconv_open("UTF-16BE","UTF-8"); - rc = iconv(iconv_struct,xin,&il,xout,&ol); - iconv_close(iconv_struct); -],[ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_ICONV], 1, [iconv() available]) -],[ - AC_MSG_RESULT(no) -]) - LIBS="$save_LIBS" -fi - -AC_ARG_ENABLE([pthreads], -[ --disable-pthreads disable POSIX threads support], -have_pthreads=$enableval,) - -AC_ARG_ENABLE([cr], -[ --disable-cr don't link with C reentrant library (BSD) ], -use_cr=$enableval,) - -AC_ARG_ENABLE([id-check], -[ --enable-id-check use id utility instead of /etc/passwd parsing], -use_id=$enableval, use_id="no") - -AC_ARG_ENABLE([yp-check], -[ --enable-yp-check use ypmatch utility instead of /etc/passwd parsing], -use_yp=$enableval, use_yp="no") - -AC_ARG_WITH([user], -[ --with-user=uid name of the clamav user (default=clamav)], -clamav_user="$withval", clamav_user="clamav") - -AC_ARG_WITH([group], -[ --with-group=gid name of the clamav group (default=clamav)], -clamav_group="$withval", clamav_group="clamav") - -AC_DEFINE_UNQUOTED([CLAMAVUSER],"$clamav_user",[name of the clamav user]) -AC_DEFINE_UNQUOTED([CLAMAVGROUP],"$clamav_group",[name of the clamav group]) - -AC_ARG_ENABLE([clamav], -[ --disable-clamav disable test for clamav user/group], -test_clamav=$enableval, test_clamav=yes) - -AC_ARG_ENABLE([debug], -[ --enable-debug enable debug code], -enable_debug=$enableval, enable_debug="no") - -if test "$enable_debug" = "yes"; then - VERSION_SUFFIX="$VERSION_SUFFIX-debug" - AC_DEFINE([CL_DEBUG],1,[enable debugging]) -else - AC_DEFINE([NDEBUG],1,[disable assertions]) -fi - -AC_ARG_WITH([version], -[ --with-version=STR use custom version string (dev only)], -VERSION="$withval", ) - -AC_ARG_ENABLE([no-cache], -[ --enable-no-cache use "Cache-Control: no-cache" in freshclam], -enable_nocache=$enableval, enable_nocache="no") - -if test "$enable_nocache" = "yes"; then - AC_DEFINE([FRESHCLAM_NO_CACHE],1,[use "Cache-Control: no-cache" in freshclam]) -fi - -AC_ARG_ENABLE([dns-fix], -[ --enable-dns-fix enable workaround for broken DNS servers (as in SpeedTouch 510)], -enable_dnsfix=$enableval, enable_dnsfix="no") - -if test "$enable_dnsfix" = "yes"; then - AC_DEFINE([FRESHCLAM_DNS_FIX],1,[enable workaround for broken DNS servers]) -fi - -AC_ARG_ENABLE([bigstack], -[ --enable-bigstack increase thread stack size], -enable_bigstack=$enableval, enable_bigstack="no") - -if test "$enable_bigstack" = "yes"; then - AC_DEFINE([C_BIGSTACK],1,[Increase thread stack size.]) -fi - -AC_ARG_WITH([dbdir], -[ --with-dbdir=path path to virus database directory], -db_dir="$withval", db_dir="_default_") - -dnl I had problems with $pkgdatadir thus these funny checks -if test "$db_dir" = "_default_" -then - if test "$prefix" = "NONE" - then - db_dir="$ac_default_prefix/share/clamav" - else - db_dir="$prefix/share/clamav" - fi -fi - -AC_DEFINE_UNQUOTED([DATADIR],"$db_dir", [Path to virus database directory.]) -DBDIR="$db_dir" -AC_SUBST([DBDIR]) - -dnl configure config directory -cfg_dir=`echo $sysconfdir | grep prefix` - -if test -n "$cfg_dir"; then - if test "$prefix" = "NONE" - then - cfg_dir="$ac_default_prefix/etc" - else - cfg_dir="$prefix/etc" - fi -else - cfg_dir="$sysconfdir" -fi - -CFGDIR=$cfg_dir -AC_SUBST([CFGDIR]) -AC_DEFINE_UNQUOTED([CONFDIR],"$cfg_dir",[where to look for the config file]) - -dnl check for in_port_t definition -AC_MSG_CHECKING([whether in_port_t is defined]) -AC_TRY_COMPILE([ -#include -#include -], -[in_port_t pt; pt = 0; return pt;], -[ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_IN_PORT_T],1,[in_port_t is defined]) -], -AC_MSG_RESULT(no)) - -dnl check for in_addr_t definition -AC_MSG_CHECKING([for in_addr_t definition]) -AC_TRY_COMPILE([ -#include -#include -], -[ in_addr_t pt; pt = 0; return pt; ], -[ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_IN_ADDR_T],1,[in_addr_t is defined]) -], -AC_MSG_RESULT(no)) - -case "$target_os" in -linux*) - AC_DEFINE([C_LINUX],1,[target is linux]) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then - AC_DEFINE([CLAMUKO],1,[enable clamuko]) - fi - fi - ;; -kfreebsd*-gnu) - AC_DEFINE([C_KFREEBSD_GNU],1,[target is kfreebsd-gnu]) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then - AC_DEFINE([CLAMUKO],1,[enable clamuko]) - fi - fi - ;; -solaris*) - CLAMDSCAN_LIBS="$CLAMDSCAN_LIBS -lresolv" - FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lresolv" - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - CLAMD_LIBS="$CLAMD_LIBS -lresolv" - CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lresolv" - TH_SAFE="-thread-safe" - fi - AC_DEFINE([C_SOLARIS],1,[os is solaris]) - ;; -freebsd[[45]]*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-pthread -lc_r" - TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then - AC_DEFINE([CLAMUKO],1,[enable clamuko]) - fi - fi - AC_DEFINE([C_BSD],1,[os is freebsd 4 or 5]) - ;; -freebsd*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lthr" - TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then - AC_DEFINE([CLAMUKO],1,[enable clamuko]) - fi - fi - AC_DEFINE([C_BSD],1,[os is freebsd 6]) - ;; -dragonfly*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-pthread" - TH_SAFE="-thread-safe" - if test "$want_clamuko" = "yes"; then - AC_DEFINE([CLAMUKO],1,[enable clamuko]) - fi - fi - AC_DEFINE([C_BSD],1,[os is dragonfly]) - ;; -openbsd*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-pthread" - CLAMD_LIBS="$CLAMD_LIBS -pthread" - CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread" - TH_SAFE="-thread-safe" - fi - AC_DEFINE([C_BSD],1,[os is OpenBSD]) - ;; -bsdi*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-pthread" - TH_SAFE="-thread-safe" - fi - AC_DEFINE([C_BSD],1,[os is BSDI BSD/OS]) - ;; -netbsd*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - fi - AC_DEFINE([C_BSD],1,[os is NetBSD]) - ;; -bsd*) - AC_MSG_RESULT([Unknown BSD detected. Disabling thread support.]) - have_pthreads="no" - AC_DEFINE([C_BSD],1,[os is bsd flavor]) - ;; -beos*) - AC_MSG_RESULT([BeOS detected. Disabling thread support.]) - have_pthreads="no" - AC_DEFINE([C_BEOS],1,[os is beos]) - ;; -darwin*) - AC_DEFINE([C_BSD],1,[os is bsd flavor]) - AC_DEFINE([C_DARWIN],1,[os is darwin]) - AC_DEFINE([BIND_8_COMPAT],1,[enable bind8 compatibility]) - AC_DEFINE([CLAMAUTH],1,[enable ClamAuth]) - use_netinfo="yes" - ;; -os2*) - CLAMDSCAN_LIBS="$CLAMDSCAN_LIBS -lsyslog" - FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsyslog" - CLAMD_LIBS="$CLAMD_LIBS -lsyslog" - CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsyslog" - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - TH_SAFE="-thread-safe" - fi - AC_DEFINE([C_OS2],1,[os is OS/2]) - ;; -sco*) - dnl njh@bandsman.sco.uk: SCO Unix port - dnl FRESHCLAM_LIBS="-lsocket" - dnl CLAMD_LIBS="-lsocket" - dnl CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket" - ;; -hpux*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - TH_SAFE="-thread-safe" - fi - AC_DEFINE([C_HPUX],1,[os is hpux]) - if test "$have_mempool" = "yes"; then - LDFLAGS="$LDFLAGS -Wl,+pd,1M" - fi - ;; -aix*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - TH_SAFE="-thread-safe" - AC_DEFINE([_THREAD_SAFE],1,[thread safe]) - fi - AC_DEFINE([C_AIX],1,[os is aix]) - ;; -*-*-osf*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-pthread" - TH_SAFE="-thread-safe" - AC_DEFINE([_POSIX_PII_SOCKET],1,[POSIX compatibility]) - fi - AC_DEFINE([C_OSF],1,[os is osf/tru64]) - ;; -nto-qnx*) - AC_DEFINE([C_QNX6],1,[os is QNX 6.x.x]) - ;; -irix*) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - TH_SAFE="-thread-safe" - fi - LIBS="$LIBS -lgen" - AC_DEFINE([C_IRIX],1,[os is irix]) - ;; -interix*) - AC_DEFINE([C_INTERIX],1,[os is interix]) - if test "$test_clamav" = "yes"; then - if test ! -r /etc/passwd; then - test_clamav="no" - fi - fi - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - TH_SAFE="-thread-safe" - fi - ;; -gnu*) - AC_DEFINE([C_GNU_HURD],1,[target is gnu-hurd]) - if test "$have_pthreads" = "yes"; then - THREAD_LIBS="-lpthread" - TH_SAFE="-thread-safe" - fi - ;; -*) - ;; -esac - -AC_SUBST([LIBCLAMAV_LIBS]) -AC_SUBST([CLAMD_LIBS]) -AC_SUBST([CLAMAV_MILTER_LIBS]) -AC_SUBST([FRESHCLAM_LIBS]) -AC_SUBST([CLAMDSCAN_LIBS]) -AC_SUBST([TH_SAFE]) -AC_SUBST([THREAD_LIBS]) - -dnl --enable-milter -if test "$have_milter" = "yes"; then - dnl libmilter checking code adapted from spamass-milter by - dnl Tom G. Christensen - - dnl Check for libmilter and it's header files in the usual locations - save_LIBS="$LIBS" - CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread" - if test -d /usr/lib/libmilter ; then - CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter" - fi - LIBS="$LIBS -lmilter $CLAMAV_MILTER_LIBS" - AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_LIBS"],[ - dnl Older sendmails require libsm or libsmutil for support functions - AC_SEARCH_LIBS([strlcpy], [sm smutil], [test "$ac_cv_search_strlcpy" = "none required" || CLAMAV_MILTER_XLIB="$ac_cv_search_strlcpy"]) - LIBS="$save_LIBS $CLAMAV_MILTER_LIBS $CLAMAV_MILTER_XLIB" - $as_unset ac_cv_lib_milter_mi_stop - AC_CHECK_LIB([milter],[mi_stop],[CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS"],[ - AC_MSG_ERROR([Cannot find libmilter]) - ]) - ]) - LIBS="$save_LIBS" - AC_CHECK_HEADERS([libmilter/mfapi.h],[have_milter="yes"],[ - AC_MSG_ERROR([Please install mfapi.h from the sendmail distribution]) - ]) -fi - -AM_CONDITIONAL([BUILD_CLAMD],[test "$have_pthreads" = "yes"]) -AM_CONDITIONAL([HAVE_MILTER],[test "$have_milter" = "yes"]) - -if test "$have_pthreads" = "yes" -then - save_LIBS="$LIBS" - LIBS="$THREAD_LIBS $LIBS" - AC_CHECK_FUNCS([sched_yield pthread_yield]) - LIBS="$save_LIBS" - AC_DEFINE([BUILD_CLAMD], 1, "build clamd") - dnl define these here, so we don't forget any system - AC_DEFINE([CL_THREAD_SAFE],1,[thread safe]) - AC_DEFINE([_REENTRANT],1,[thread safe]) -fi - -AC_CHECK_FUNCS([enable_extended_FILE_stdio]) - -dnl Check for readdir_r and number of its arguments -dnl Code from libwww/configure.in - -AC_MSG_CHECKING([for readdir_r]) -if test -z "$ac_cv_readdir_args"; then - AC_TRY_COMPILE( - [ -#include -#include - ], - [ - struct dirent dir, *dirp; - DIR *mydir; - dirp = readdir_r(mydir, &dir); - ], ac_cv_readdir_args=2) -fi -if test -z "$ac_cv_readdir_args"; then - AC_TRY_COMPILE( - [ -#include -#include - ], - [ - struct dirent dir, *dirp; - DIR *mydir; - int rc; - rc = readdir_r(mydir, &dir, &dirp); - ], ac_cv_readdir_args=3) -fi - -AC_ARG_ENABLE([readdir_r], -[ --enable-readdir_r enable support for readdir_r], -enable_readdir_r=$enableval, enable_readdir_r="no") - -if test "$enable_readdir_r" = "no"; then - AC_MSG_RESULT(support disabled) -elif test -z "$ac_cv_readdir_args"; then - AC_MSG_RESULT(no) -else - if test "$ac_cv_readdir_args" = 2; then - AC_DEFINE([HAVE_READDIR_R_2],1,[readdir_r takes 2 arguments]) - elif test "$ac_cv_readdir_args" = 3; then - AC_DEFINE([HAVE_READDIR_R_3],1,[readdir_r takes 3 arguments]) - fi - AC_MSG_RESULT([yes, and it takes $ac_cv_readdir_args arguments]) -fi - -AC_MSG_CHECKING([for ctime_r]) -if test "$ac_cv_func_ctime_r" = "yes"; then - AC_TRY_COMPILE([ - #include - ],[ - char buf[31]; - time_t t; - ctime_r(&t, buf, 30); - ],[ - ac_cv_ctime_args=3 - AC_DEFINE([HAVE_CTIME_R_3],1,[ctime_r takes 3 arguments]) - ],[ - ac_cv_ctime_args=2 - AC_DEFINE([HAVE_CTIME_R_2],1,[ctime_r takes 2 arguments]) - ]) - - AC_MSG_RESULT([yes, and it takes $ac_cv_ctime_args arguments]) -fi - -dnl Determine socklen_t type. Code from lftp. -AC_MSG_CHECKING([for socklen_t]) -AC_CACHE_VAL([ac_cv_socklen_t], -[ - ac_cv_socklen_t=no - AC_TRY_COMPILE([ - #include - #include - ], - [ - socklen_t len; - getpeername(0,0,&len); - ], - [ - ac_cv_socklen_t=yes - ]) -]) -AC_MSG_RESULT([$ac_cv_socklen_t]) - if test $ac_cv_socklen_t = no; then - AC_MSG_CHECKING([for socklen_t equivalent]) - AC_CACHE_VAL([ac_cv_socklen_t_equiv], - [ - ac_cv_socklen_t_equiv=int - for t in int size_t unsigned long "unsigned long"; do - AC_TRY_COMPILE([ - #include - #include - ], - [ - $t len; - getpeername(0,0,&len); - ], - [ - ac_cv_socklen_t_equiv="$t" - break - ]) - done - ]) - AC_MSG_RESULT([$ac_cv_socklen_t_equiv]) - AC_DEFINE_UNQUOTED([socklen_t], $ac_cv_socklen_t_equiv, [Define to "int" if does not define.]) -fi - -dnl Check for clamav in /etc/passwd -if test "$test_clamav" = "yes" -then - dnl parse /etc/passwd - if test "$use_id" = "no" - then - AC_MSG_CHECKING([for $clamav_user in /etc/passwd]) - if test -r /etc/passwd; then - clamavuser=`cat /etc/passwd|grep "^$clamav_user:"` - clamavgroup=`cat /etc/group|grep "^$clamav_group:"` - fi - else - AC_MSG_CHECKING([for $clamav_user using id]) - id $clamav_user > /dev/null 2>&1 - if test "$?" = 0 ; then - clamavuser=1 - AC_PATH_PROG(GETENT, getent) - if test -n "$GETENT" ; then - clamavgroup=`$GETENT group | grep "^${clamav_group}:"` - else - clamavgroup=`cat /etc/group|grep $clamav_group` - fi - fi - fi - - if test "$use_netinfo" = "yes" - then - if test -x /usr/bin/dscl; then - AC_MSG_CHECKING([for $clamav_user using dscl]) - clamavuser=`/usr/bin/dscl . -list /Users |grep ${clamav_user}` - clamavgroup=`/usr/bin/dscl . -list /Groups |grep ${clamav_group}` - else - AC_MSG_CHECKING([for $clamav_user using netinfo]) - clamavuser=`/usr/bin/nidump passwd . |grep ${clamav_user}` - clamavgroup=`/usr/bin/nidump group . |grep ${clamav_group}` - fi - fi - - if test "$use_yp" = "yes" - then - AC_MSG_CHECKING([for $clamav_user using ypmatch]) - clamavuser=`ypmatch ${clamav_user} passwd` - clamavgroup=`ypmatch ${clamav_group} group` - fi - - if test -z "$clamavuser" || test -z "$clamavgroup" - then - AC_MSG_RESULT(no) - AC_MSG_ERROR([User $clamav_user (and/or group $clamav_group) doesn't exist. Please read the documentation !]) - else - AC_MSG_RESULT([yes, user $clamav_user and group $clamav_group]) - CLAMAVUSER="$clamav_user" - CLAMAVGROUP="$clamav_group" - AC_SUBST([CLAMAVUSER]) - AC_SUBST([CLAMAVGROUP]) - fi -fi - -dnl check for __attribute__((packed)) -dnl but only on compilers claiming to be gcc compatible -dnl because for example Sun's compiler silently ignores the packed attribute. -AC_MSG_CHECKING([for structure packing via __attribute__((packed))]) -AC_CACHE_VAL([have_cv_attrib_packed],[ - AC_TRY_COMPILE(, - [#ifdef __GNUC__ - struct { int i __attribute__((packed)); } s; - #else - #error Only checking for packed attribute on gcc-like compilers - #endif], - [have_cv_attrib_packed=yes], - [have_cv_attrib_packed=no]) - ]) -AC_MSG_RESULT([$have_cv_attrib_packed]) - -if test "$have_cv_attrib_packed" = no; then - AC_MSG_CHECKING([for structure packing via pragma]) - AC_CACHE_VAL([have_cv_pragma_pack],[ - AC_TRY_RUN([ - int main(int argc, char **argv) { -#pragma pack(1) /* has to be in column 1 ! */ - struct { char c; long l; } s; - return sizeof(s)==sizeof(s.c)+sizeof(s.l) ? 0:1; } ], - [have_cv_pragma_pack=yes], - [have_cv_pragma_pack=no]) - ]) - AC_MSG_RESULT([$have_cv_pragma_pack]) - if test "$have_cv_pragma_pack" = yes; then - AC_DEFINE([HAVE_PRAGMA_PACK], 1, "pragma pack") - else - AC_MSG_CHECKING([for structure packing via hppa/hp-ux pragma]) - AC_CACHE_VAL([have_cv_pragma_pack_hpux],[ - AC_TRY_RUN([ - /* hppa/hp-ux wants pragma outside of function */ -#pragma pack 1 /* has to be in column 1 ! */ - struct { char c; long l; } s; - int main(int argc, char **argv) { - return sizeof(s)==sizeof(s.c)+sizeof(s.l) ? 0:1; } ], - [have_cv_pragma_pack_hpux=yes], - [have_cv_pragma_pack_hpux=no]) - ]) - AC_MSG_RESULT([$have_cv_pragma_pack_hpux]) - AC_DEFINE([HAVE_PRAGMA_PACK_HPPA], 1, "pragma pack hppa/hp-ux style") - fi -fi - -dnl check for __attribute__((aligned)) -AC_MSG_CHECKING([for type aligning via __attribute__((aligned))]) -AC_CACHE_VAL([have_cv_attrib_aligned],[ - AC_TRY_COMPILE(, - [typedef int cl_aligned_int __attribute__((aligned));], - [have_cv_attrib_aligned=yes], - [have_cv_attrib_aligned=no]) - ]) -AC_MSG_RESULT([$have_cv_attrib_aligned]) - -if test "$have_cv_attrib_packed" = no -a "$have_cv_pragma_pack" = no -a "$have_cv_pragma_pack_hpux" = no; then - AC_MSG_ERROR(Need to know how to pack structures with this compiler) -fi - -if test "$have_cv_attrib_packed" = yes; then - AC_DEFINE([HAVE_ATTRIB_PACKED], 1, [attrib packed]) -fi - -if test "$have_cv_attrib_aligned" = yes; then - AC_DEFINE([HAVE_ATTRIB_ALIGNED], 1, [attrib aligned]) -fi - -dnl Sanity check that struct packing works -AC_MSG_CHECKING([that structure packing works]) -AC_CACHE_VAL([have_cv_struct_pack],[ - AC_TRY_RUN([ -#ifndef HAVE_ATTRIB_PACKED -#define __attribute__(x) -#endif -#ifdef HAVE_PRAGMA_PACK -#pragma pack(1) /* has to be in column 1 ! */ -#endif -#ifdef HAVE_PRAGMA_PACK_HPPA -#pragma pack 1 /* has to be in column 1 ! */ -#endif - -struct { char c __attribute__((packed)); long l __attribute__((packed)); } s; - -#ifdef HAVE_PRAGMA_PACK -#pragma pack() -#endif -#ifdef HAVE_PRAGMA_PACK_HPPA -#pragma pack -#endif - -struct { char c; long l;} s2; - -#ifdef HAVE_PRAGMA_PACK -#pragma pack(1) /* has to be in column 1 ! */ -#endif -#ifdef HAVE_PRAGMA_PACK_HPPA -#pragma pack 1 /* has to be in column 1 ! */ -#endif - -struct { char c; long l; } __attribute__((packed)) s3; - -#ifdef HAVE_PRAGMA_PACK -#pragma pack() -#endif -#ifdef HAVE_PRAGMA_PACK_HPPA -#pragma pack -#endif - - int main(int argc, char **argv) { - if (sizeof(s)!=sizeof(s.c)+sizeof(s.l)) - return 1; - if (sizeof(s) != sizeof(s3)) - return 2; - return (sizeof(s2) >= sizeof(s)) ? 0 : 3; - }], - [have_cv_struct_pack=yes], - [have_cv_struct_pack=no], - [have_cv_struct_pack=yes]) -]) -AC_MSG_RESULT([$have_cv_struct_pack]) - -if test "$have_cv_struct_pack" = "no"; then - AC_MSG_ERROR([Structure packing seems to be available, but is not working with this compiler]) -fi - -dnl Check if needs to be included for fd_set -AC_MSG_CHECKING([for fd_set]) -AC_HEADER_EGREP([fd_mask], [sys/select.h], [have_fd_set=yes]) -if test "$have_fd_set" = yes; then - AC_DEFINE([HAVE_SYS_SELECT_H], 1, "have ") - AC_MSG_RESULT([yes, found in sys/select.h]) -else - AC_TRY_COMPILE([#include - #include - #ifdef HAVE_UNISTD_H - #include - #endif], - [fd_set readMask, writeMask;], have_fd_set=yes, have_fd_set=no) - if test "$have_fd_set" = yes; then - AC_MSG_RESULT([yes, found in sys/types.h]) - else - AC_DEFINE([NO_FD_SET], 1, "no fd_set") - AC_MSG_RESULT(no) - fi -fi - -AC_MSG_CHECKING([default FD_SETSIZE value]) -AC_TRY_RUN([ -#include -#include -#include -#ifdef HAVE_SYS_SELECT_H -#include -#endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#include -int main(void) { - FILE *fp = fopen("conftestval", "w"); - if(fp) { - if(fprintf (fp, "%d\n", FD_SETSIZE) < 1) { - perror("fprintf failed"); - return errno; - } - } else { - perror("fopen failed"); - return errno; - } - return 0; -} -], -DEFAULT_FD_SETSIZE=`cat conftestval`, -DEFAULT_FD_SETSIZE=256, -DEFAULT_FD_SETSIZE=256) -AC_MSG_RESULT([$DEFAULT_FD_SETSIZE]) -AC_DEFINE_UNQUOTED([DEFAULT_FD_SETSIZE], $DEFAULT_FD_SETSIZE, "default FD_SETSIZE value") - -dnl Check signed right shift implementation -AC_MSG_CHECKING([whether signed right shift is sign extended]) -AC_TRY_RUN([int main(void){int a=-1;int b=a>>1;return(a!=b);}], - [have_signed_rightshift_extended=yes], - [have_signed_rightshift_extended=no], - [have_signed_rightshift_extended=no]) -if test $have_signed_rightshift_extended = yes; then - AC_DEFINE([HAVE_SAR], 1, [Define signed right shift implementation]) -fi -AC_MSG_RESULT([$have_signed_rightshift_extended]); - -AC_C_FDPASSING - -AC_DEFINE_UNQUOTED([VERSION],"$VERSION",[Version number of package]) -AC_DEFINE_UNQUOTED([VERSION_SUFFIX],"$VERSION_SUFFIX",[Version suffix for package]) - -AC_ARG_ENABLE(clamdtop, - AC_HELP_STRING([--enable-clamdtop], - [Enable 'clamdtop' tool @<:@default=auto@:>@]), -[enable_clamdtop=$enableval], [enable_clamdtop="auto"]) - -if test "$enable_clamdtop" != "no"; then - -AC_LIB_FIND([ncurses], [ncurses/ncurses.h], - AC_LANG_PROGRAM([#include ], - [initscr(); KEY_RESIZE;]), - [CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES"; - CURSES_INCLUDE=""], - []) - -if test "X$HAVE_LIBNCURSES" != "Xyes"; then - HAVE_LIBNCURSES= - AC_LIB_FIND([ncurses], [ncurses.h], - AC_LANG_PROGRAM([#include ], - [initscr(); KEY_RESIZE;]), - [CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES"; - CURSES_INCLUDE=""], - []) -fi - -if test "X$HAVE_LIBNCURSES" != "Xyes"; then - AC_LIB_FIND([pdcurses],[curses.h], - AC_LANG_PROGRAM([#include ], - [initscr(); KEY_RESIZE;]), - [CURSES_CPPFLAGS="$INCPDCURSES"; - CURSES_LIBS="$LTLIBPDCURSES"; - CURSES_INCLUDE=""], - [AC_MSG_WARN([****** not building clamdtop: ncurses not found])]) -fi - -if test "x$CURSES_LIBS" = "x" -a "$enable_clamdtop" = "yes"; then - AC_MSG_ERROR([ - -ERROR! Clamdtop was configured, but not found. You need to install libncurses5-dev. -]) -fi - -fi - -AC_DEFINE_UNQUOTED([CURSES_INCLUDE], $CURSES_INCLUDE, [curses header location]) -AC_SUBST([CURSES_CPPFLAGS]) -AC_SUBST([CURSES_LIBS]) -AM_CONDITIONAL([HAVE_CURSES], - [test "X$HAVE_LIBNCURSES" = "Xyes" || test "X$HAVE_LIBPDCURSES" = "Xyes"]) - -AC_ARG_ENABLE([distcheck-werror], - AC_HELP_STRING([--enable-distcheck-werror], - [enable warnings as error for distcheck - @<:@default=no@:>@]), -[enable_distcheckwerror=$enableval],[enable_distcheckwerror="no"]) - -# Enable distcheck warnings and Werror only for gcc versions that support them, -# and only after we've run the configure tests. -# Some configure tests fail (like checking for cos in -lm) if we enable these -# Werror flags for configure too (for example -Wstrict-prototypes makes -# configure think that -lm doesn't have cos, hence its in libc). -if test "x$enable_distcheckwerror" = "xyes"; then - if test "$distcheck_enable_flags" = "1"; then - CFLAGS="$CFLAGS -Wno-pointer-sign -Werror-implicit-function-declaration -Wno-error=strict-aliasing -Werror -Wextra -Wall -Wno-error=bad-function-cast -Wbad-function-cast -Wcast-align -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wno-error=missing-prototypes -Wnested-externs -Wno-error=nested-externs -Wpointer-arith -Wstrict-prototypes -Wno-error=strict-prototypes -Wno-switch -Wno-switch-enum -Wundef -Wwrite-strings -Wstrict-overflow=1 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wdeclaration-after-statement -Waggregate-return -Wmissing-format-attribute -Wno-error=missing-format-attribute -Wno-error=type-limits -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-value -Wno-error=unused-variable -Wcast-qual -Wno-error=cast-qual -Wno-error=sign-compare -Wshadow -Wno-error=shadow -Wno-error=uninitialized -fdiagnostics-show-option -Wno-unused-parameter -Wno-error=unreachable-code -Winvalid-pch -Wno-error=invalid-pch -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -Wno-error=aggregate-return" - fi -fi - -AC_ARG_ENABLE([llvm],AC_HELP_STRING([--enable-llvm], - [Enable 'llvm' JIT/verifier support @<:@default=auto@:>@]), - [enable_llvm=$enableval], [enable_llvm="auto"]) - -if test "$enable_llvm" != "no"; then - dnl Try to configure subdir, optionally - AC_CONFIG_SUBDIRS_OPTIONAL([libclamav/c++]) -fi - -AC_ARG_ENABLE([sha-collector-for-internal-use], [], [enable_sha_collector="yes"], [enable_sha_collector="no"]) -if test "$enable_sha_collector" != "no"; then - AC_DEFINE([HAVE__INTERNAL__SHA_COLLECT], 1, [For internal use only - DO NOT DEFINE]) -fi - -AC_OUTPUT([ -clamscan/Makefile -database/Makefile -docs/Makefile -clamd/Makefile -clamdscan/Makefile -clamav-milter/Makefile -freshclam/Makefile -sigtool/Makefile -clamconf/Makefile -etc/Makefile -test/Makefile -unit_tests/Makefile -clamdtop/Makefile -clambc/Makefile -Makefile -clamav-config -libclamav.pc -platform.h -docs/man/clamav-milter.8 -docs/man/clamav-milter.conf.5 -docs/man/clambc.1 -docs/man/clamconf.1 -docs/man/clamd.8 -docs/man/clamd.conf.5 -docs/man/clamdscan.1 -docs/man/clamscan.1 -docs/man/freshclam.1 -docs/man/freshclam.conf.5 -docs/man/sigtool.1 -docs/man/clamdtop.1 -]) - -if test "$enable_llvm" = "yes" && test "$subdirfailed" != "no"; then - AC_MSG_ERROR([Failed to configure LLVM, and LLVM was explicitly requested]) -fi -AM_CONDITIONAL([ENABLE_LLVM], - [test "$subdirfailed" != "yes" && test "$enable_llvm" != "no"]) -no_recursion="yes"; -AC_OUTPUT([libclamav/Makefile]) - -# Print a summary of what features we enabled -AC_MSG_NOTICE([Summary of detected features follows]) - -cat < \n\t - directory that contains clamav-.tar.gz"; - exit 1; -fi - -DIR=$1 -VERS=$2 - -test -d $DIR || { echo "Directory $DIR doesn't exist"; exit 2; } -TARBALL="$PWD/$DIR/clamav-$VERS.tar.gz" -test -f $TARBALL || { echo "Tarball $TARBALL doesn't exist"; exit 3; } - -TEMP=`mktemp -d __splitXXXXXX` || { echo "Cannot create temporary directory"; exit 2; } -echo "Temporary directory is $TEMP" -cd $TEMP || exit 3; -echo "Extracting $TARBALL"; -tar -xzf $TARBALL || { echo "Failed to extract $TARBALL"; exit 4; } - -UNRARPKG=libclamunrar_$VERS.orig.tar.gz -DFSGPKG=clamav_$VERS+dfsg.orig.tar.gz -UNRARDIR="libclamunrar-$VERS" -MAKEFLAGS=-j4 - -set -e - -mv clamav-$VERS clamav-$VERS+dfsg -mkdir $UNRARDIR -UNRARDIR="$PWD/$UNRARDIR" -echo "Preparing dfsg package" -cd clamav-$VERS+dfsg -# remove win32 stuff, doesn't make sense to ship it -rm -r win32 -sed -i 's/ win32//' Makefile.am Makefile.in -rm shared/*.la shared/*.lo shared/Makefile -# cleanup llvm -set -- libclamav/c++/llvm/utils/lit/lit/*.pyc -if [ -f "$1" ] ; then - echo "Pre-compiled python files found!" - exit 1 -fi -cp -R libclamunrar_iface $UNRARDIR -mv libclamunrar $UNRARDIR -cp -R m4/ $UNRARDIR -cp -R config/ $UNRARDIR -cp configure.in $UNRARDIR -cp platform.h.in $UNRARDIR -cp COPYING{,.unrar,.LGPL} $UNRARDIR -cd ../ -tar -czf $DFSGPKG clamav-$VERS+dfsg/ -cd $UNRARDIR -echo "Preparing unrar package" -# The sed sorcery below makes sure that the AC_OUTPUT in the unrar package looks -# like: -# AC_OUTPUT([ -# libclamunrar_iface/Makefile -# Makefile -# platform.h -# ]) -# It also removes ltdl, and renames the AC_CONFIG_SRCDIR parameter to an -# existing file. -sed -i '/AC_OUTPUT/,/])/ { -/^AC_OUTPUT(\[$/p -s/^clamscan\/Makefile/libclamunrar_iface\/Makefile/p -/^Makefile/p -/^platform.h/p -/^])/p -d -} -/LTDL/d -/ltdl/d -s/clamscan\/clamscan.c/libclamunrar_iface\/unrar_iface.c/ -' configure.in -cat <Makefile.am && -ACLOCAL_AMFLAGS=-I m4 -DISTCLEANFILES = target.h -SUBDIRS = libclamunrar_iface -EOF -autoreconf -rm -r autom4te.cache -cd .. -tar -czf $UNRARPKG libclamunrar-$VERS/ - -printf "Test archives?" -read yes -if [ x$yes != xy ] ; then - echo "Copying tarballs to current directory" - mv $UNRARPKG ../ && - mv $DFSGPKG ../ && - echo "Ready (untested): $UNRARPKG $DFSGPKG" && - cd .. && rm -r $TEMP && - echo "Removed temporary directory $TEMP" && - exit 0 - exit 30 -fi - -mkdir testpfx || { echo "Failed to create testpfx"; exit 5; } -TESTPFX="$PWD/testpfx" -mkdir buildtest && cd buildtest -echo "Running build-test for $DFSGPKG" -tar -xzf ../$DFSGPKG && cd clamav-$VERS+dfsg -echo "Configuring" -./configure --disable-clamav --disable-unrar --enable-milter --prefix=$TESTPFX >makelog -echo "Building" -make $MAKEFLAGS >>makelog -echo "Checking" -make $MAKEFLAGS check >>makelog 2>&1 -make $MAKEFLAGS install >>makelog -make $MAKFELAGS installcheck >>makelog -echo "OK" -cd .. -echo "Running build-test for $UNRARPKG" -tar -xzf ../$UNRARPKG && cd libclamunrar-$VERS -echo "Configuring" -./configure --disable-clamav --prefix=$TESTPFX >makelog -echo "Building" -make $MAKEFLAGS >>makelog -make $MAKEFLAGS install >>makelog -make $MAKEFLAGS installcheck >>makelog -echo "OK" -cd ../.. -echo "Testing whether unrar functionality works" -cat <test.hdb -aa15bcf478d165efd2065190eb473bcb:544:ClamAV-Test-File -EOF - -if test $? -ne 0; then - tail makelog - echo - echo "Failed" - exit 50; -fi -# clamscan will exit with exitcode 1 on success (virus found) -set +e -$TESTPFX/bin/clamscan buildtest/clamav-$VERS+dfsg/test/clam-v*.rar -dtest.hdb >clamscanlog -if test $? -ne 1; then - echo "Test failed"; - cat clamscanlog - exit 10; -fi -NDET=`grep FOUND clamscanlog | wc -l` -if test "0$NDET" -eq "2"; then - echo "All testfiles detected" - echo "Copying tarballs to current directory" - mv $UNRARPKG ../ && - mv $DFSGPKG ../ && - echo "Ready: $UNRARPKG $DFSGPKG" && - cd .. && rm -r $TEMP && - echo "Removed temporary directory $TEMP" && - exit 0 - exit 30 -fi -echo "Test failed" -cat clamscanlog -exit 100 diff -Nru clamav-0.97.8+dfsg/database/Makefile.in clamav-0.98.1+dfsg/database/Makefile.in --- clamav-0.97.8+dfsg/database/Makefile.in 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/database/Makefile.in 2014-01-13 17:02:18.000000000 +0000 @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -34,6 +34,23 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -66,21 +83,26 @@ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/clamav-config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ @@ -111,6 +133,7 @@ DBDIR = @DBDIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -159,6 +182,7 @@ LT_DLPREOPEN = @LT_DLPREOPEN@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -171,6 +195,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ @@ -182,10 +207,15 @@ TH_SAFE = @TH_SAFE@ VERSION = @VERSION@ VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@ +WERR_CFLAGS = @WERR_CFLAGS@ +WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -218,7 +248,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ ltdl_LIBOBJS = @ltdl_LIBOBJS@ ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@ mandir = @mandir@ @@ -334,10 +363,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff -Nru clamav-0.97.8+dfsg/debian/changelog clamav-0.98.1+dfsg/debian/changelog --- clamav-0.97.8+dfsg/debian/changelog 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/changelog 2014-03-27 12:57:35.000000000 +0000 @@ -1,12 +1,216 @@ -clamav (0.97.8+dfsg-1ubuntu1.12.04.2) precise-proposed; urgency=low +clamav (0.98.1+dfsg-4ubuntu1~ubuntu12.04.2) precise-security; urgency=medium + + * Rebuild as a security update (LP: #1296856) + + -- Marc Deslauriers Thu, 27 Mar 2014 08:57:35 -0400 + +clamav (0.98.1+dfsg-4ubuntu1~ubuntu12.04.1) precise-backports; urgency=low + + * No-change backport to precise (LP: #1292943) + + -- Scott Kitterman Wed, 19 Mar 2014 11:05:52 -0400 + +clamav (0.98.1+dfsg-4ubuntu1) trusty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Drop build-dep on electric-fence (in Universe) + - Add apparmor profiles for clamd and freshclam along with maintainer + script changes + + -- Scott Kitterman Wed, 19 Mar 2014 08:59:31 -0400 + +clamav (0.98.1+dfsg-4) unstable; urgency=medium + + [ Sebastian Andrzej Siewior ] + * Postinst scripts: fix empty access and broken freshclam.conf in + clamav-base.postinst.in and clamav-freshclam.postinst.in (Closes: #741675) + (LP: #1293042) + * Postinst scripts: fix quoting + + [ Andreas Cadhalpun ] + * Add templates and adapt postinst and config scripts for the new options + in 0.98 to fix the creation of the configuration files (Closes: #741675) + (LP: #1293042) + * Reset new options to default to fix breakage in previous upload + * Automatically updated translation files + + -- Scott Kitterman Mon, 17 Mar 2014 12:10:51 -0400 + +clamav (0.98.1+dfsg-3ubuntu1) trusty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Drop build-dep on electric-fence (in Universe) + - Add apparmor profiles for clamd and freshclam along with maintainer + script changes + + -- Scott Kitterman Sat, 15 Mar 2014 12:47:13 -0400 + +clamav (0.98.1+dfsg-3) unstable; urgency=medium + + [ Scott Kitterman ] + * Switch to format 3.0 (quilt) to enable use of git-dpm + * Extract existing inline changes into new commits/dpm patches + - Change paths in sample conf file to match Debian + - Add patch so that RAR tests are not expected to pass with RAR disabled + - Add 0003-configure-use-pkg-config-for-check-so-test-is-detect.patch + - Add 0004-Stop-using-a-cargo-culted-syscall-table-and-trust-th.patch + - Add 0005-configure.ac-patches-to-got-with-autoreconf-and-auto.patch + - Add 0006-Fix-STAT64-definition-and-add-missing-includes.patch + * Fix vcs-field-not-canonical for both git and web access + * Add libxml2-dev to build-depends for dmg and xar support + * Add options in debian/clamav-base.postinst.in, clamav-daemon.postinst.in, + clamav-freshclam.postinst.in, and clamav-milter.postinst.in for new 0.98 + series options + * Disable LLVM for hurd/ports that don't support it + + [ Andreas Cadhalpun ] + * Remove unneccesary '-i' option from dh_autoreconf + * Remove trailing \ from --with-dbdir path to avoid resulting paths with \\ + * Add debian/upstream/signing-key.asc and a lintian-override for the + lintian bug and update the watchfile + * debian/clamav-base.postinst.in: Update to reflect the change from + examples/clamd.conf to examples/clamd.conf.sample (Closes: #741512) + + -- Scott Kitterman Fri, 14 Mar 2014 16:30:45 -0400 + +clamav (0.98.1+dfsg-2ubuntu2) trusty; urgency=medium + + * Build without LLVM support on ppc64el to fix test failures. + + -- Colin Watson Fri, 07 Mar 2014 15:18:32 +0000 + +clamav (0.98.1+dfsg-2ubuntu1) trusty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Drop build-dep on electric-fence (in Universe) + - Add apparmor profiles for clamd and freshclam along with maintainer + script changes + + -- Scott Kitterman Wed, 05 Mar 2014 23:59:25 -0500 + +clamav (0.98.1+dfsg-2) unstable; urgency=medium + + [ Adam Conrad ] + * Stop using a cargo-culted syscall table and trust the glibc headers + (Closes: #733035) + + [ Louis Bouchard ] + * debian/common_functions + - Fix slurp_config() that is sometimes not discriminative + enough which leads to invalid configuration files (LP: #799623 ) + + [ Yolanda Robla ] + * Add autopkgtests (Closes: #710260) + + [ Sebastian Andrzej Siewior ] + * unit_test: check_clamav: skip .rar files if there is no rar support to fix + test failure (and FTBFS) when tests are run + * configure: use pkg-config for check so test is detected and tests will run + + [ Scott Kitterman ] + * Add pkg-config to build-depends + * Remove rule that touched libclamav/version.h since it is no longer missing + in 0.98.1 + + -- Scott Kitterman Mon, 03 Mar 2014 16:49:54 -0500 + +clamav (0.98.1+dfsg-1ubuntu5) trusty; urgency=low * debian/common_functions - Fix slurp_config() that is sometimes not discriminative enough which leads to invalid configuration files (LP: #799623) - -- Louis Bouchard Mon, 10 Feb 2014 17:54:42 +0100 + -- Louis Bouchard Mon, 10 Feb 2014 17:56:52 +0100 + +clamav (0.98.1+dfsg-1ubuntu4) trusty; urgency=medium + + * Stop using a cargo-culted syscall table and trust the glibc headers. + + -- Adam Conrad Mon, 03 Feb 2014 17:04:49 -0700 + +clamav (0.98.1+dfsg-1ubuntu3) trusty; urgency=low + + * Add #ifndef __NR_fanotify_init in clamd/fan-syscalllib.h to avoid local + definitions when already defined and FTBFS if local definition is missing + - Fix for FTBFS on arm64 + + -- Scott Kitterman Mon, 03 Feb 2014 13:24:29 -0500 + +clamav (0.98.1+dfsg-1ubuntu2) trusty; urgency=low + + * Really drop build-dep on electric-fence (in Universe) + + -- Scott Kitterman Sat, 01 Feb 2014 14:42:28 -0500 + +clamav (0.98.1+dfsg-1ubuntu1) trusty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Drop build-dep on electric-fence (in Universe) + - Add apparmor profiles for clamd and freshclam along with maintainer + script changes + - Add autopkgtest + + -- Scott Kitterman Sat, 01 Feb 2014 11:06:17 -0500 + +clamav (0.98.1+dfsg-1) unstable; urgency=low + + * New upstream release + - Update embedded-library override for modified zlib for new SO version + * Add definitions in clamd/fan-syscalllib.h for missing arches to fix FTBFS + (Closes: #737119) + - Thanks to Andreas Cadhalpun for the patch + * Really use autoreconf (Closes: #727291) again + - Thanks to Andreas Cadhalpun for the corrected patch + + -- Scott Kitterman Fri, 31 Jan 2014 23:03:09 -0500 + +clamav (0.98+dfsg-1) unstable; urgency=low + + [ Matthias Klose ] + * Use dh_autotools-dev to update config.{sub,guess} for AArch64 + (Closes: #727291) + + [ Scott Kitterman ] + * New upstream release (Closes: #727027) + - Update embedded-library override for modified zlid for new SO version + - Update debian/clamav-*.examples for upstream change in sample config file + names + * Stop removing clamav user and group on purge (Closes: #626547) + * Moved split-tarball.sh from contrib to debian since it is debian specific + and not provided by upstream + * Update standards version to 3.9.5 without further change. + * Add missing includes to shared/output.c and libclamav/clamav.h to fix + FTBFS + * Fix STATBUF definition to be struct stat vice struct64 to resolve FTBFS on + 32 bit archs (Thanks to Andreas Cadhalpun) + + -- Scott Kitterman Sun, 26 Jan 2014 00:57:46 -0500 + +clamav (0.97.8+dfsg-1ubuntu5) trusty; urgency=medium + + * Use dh_autoreconf to update libtool. + + -- Dimitri John Ledkov Fri, 20 Dec 2013 21:46:34 +0000 + +clamav (0.97.8+dfsg-1ubuntu4) saucy; urgency=low + + * Use dh_autotools-dev to update config.{sub,guess} for AArch64. + + -- Matthias Klose Thu, 10 Oct 2013 13:10:04 +0200 + +clamav (0.97.8+dfsg-1ubuntu3) saucy; urgency=low + + * debian/tests: Update clamd test to not require network access. + + -- Yolanda Robla Wed, 29 May 2013 11:33:15 +0200 + +clamav (0.97.8+dfsg-1ubuntu2) saucy; urgency=low + + * debian/tests: Add autopkgtest. + + -- Yolanda Robla Wed, 22 May 2013 12:29:44 +0200 -clamav (0.97.8+dfsg-1ubuntu1.12.04.1) precise-security; urgency=low +clamav (0.97.8+dfsg-1ubuntu1.13.04.1) raring-security; urgency=low [ Seth Arnold ] * SECURITY UPDATE: Updated to 0.97.8 to fix multiple security issues. diff -Nru clamav-0.97.8+dfsg/debian/clamav-base.config.in clamav-0.98.1+dfsg/debian/clamav-base.config.in --- clamav-0.97.8+dfsg/debian/clamav-base.config.in 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-base.config.in 2014-03-17 22:40:42.000000000 +0000 @@ -95,6 +95,42 @@ if [ "$LogTime" = "true" ]; then db_set clamav-base/LogTime true || true fi +if [ "$LogRotate" = "true" ]; then + db_set clamav-base/LogRotate true || true +fi +if [ "$ScanOnAccess" = "true" ]; then + db_set clamav-base/ScanOnAccess true || true +fi +if [ -n "$OnAccessMaxFileSize" ]; then + db_set clamav-base/OnAccessMaxFileSize "$OnAccessMaxFileSize" || true +fi +if [ "$AllowAllMatchScan" = "true" ]; then + db_set clamav-base/AllowAllMatchScan true || true +fi +if [ "$ForceToDisk" = "true" ]; then + db_set clamav-base/ForceToDisk true || true +fi +if [ "$DisableCertCheck" = "true" ]; then + db_set clamav-base/DisableCertCheck true || true +fi +if [ "$ScanSWF" = "true" ]; then + db_set clamav-base/ScanSWF true || true +fi +if [ -n "$MaxEmbeddedPE" ]; then + db_set clamav-base/MaxEmbeddedPE "$MaxEmbeddedPE" || true +fi +if [ -n "$MaxHTMLNormalize" ]; then + db_set clamav-base/MaxHTMLNormalize "$MaxHTMLNormalize" || true +fi +if [ -n "$MaxHTMLNoTags" ]; then + db_set clamav-base/MaxHTMLNoTags "$MaxHTMLNoTags" || true +fi +if [ -n "$MaxScriptNormalize" ]; then + db_set clamav-base/MaxScriptNormalize "$MaxScriptNormalize" || true +fi +if [ -n "$MaxZipTypeRcg" ]; then + db_set clamav-base/MaxZipTypeRcg "$MaxZipTypeRcg" || true +fi if [ "$Bytecode" = "true" ]; then db_set clamav-base/Bytecode true || true fi @@ -330,10 +366,46 @@ StateLogFile ;; "LogTime") - StateGeneric low clamav-base/LogTime SelfCheck LogFile + StateGeneric low clamav-base/LogTime LogRotate LogFile + ;; + "LogRotate") + StateGeneric low clamav-base/LogRotate ScanOnAccess LogFile + ;; + "ScanOnAccess") + StateGeneric low clamav-base/ScanOnAccess OnAccessMaxFileSize LogFile + ;; + "OnAccessMaxFileSize") + StateGeneric low clamav-base/OnAccessMaxFileSize AllowAllMatchScan ScanOnAccess + ;; + "AllowAllMatchScan") + StateGeneric low clamav-base/AllowAllMatchScan ForceToDisk OnAccessMaxFileSize + ;; + "ForceToDisk") + StateGeneric low clamav-base/ForceToDisk DisableCertCheck AllowAllMatchScan + ;; + "DisableCertCheck") + StateGeneric low clamav-base/DisableCertCheck ScanSWF ForceToDisk + ;; + "ScanSWF") + StateGeneric low clamav-base/ScanSWF MaxEmbeddedPE DisableCertCheck + ;; + "MaxEmbeddedPE") + StateGeneric low clamav-base/MaxEmbeddedPE MaxHTMLNormalize ScanSWF + ;; + "MaxHTMLNormalize") + StateGeneric low clamav-base/MaxHTMLNormalize MaxHTMLNoTags MaxEmbeddedPE + ;; + "MaxHTMLNoTags") + StateGeneric low clamav-base/MaxHTMLNoTags MaxScriptNormalize MaxHTMLNormalize + ;; + "MaxScriptNormalize") + StateGeneric low clamav-base/MaxScriptNormalize MaxZipTypeRcg MaxHTMLNoTags + ;; + "MaxZipTypeRcg") + StateGeneric low clamav-base/MaxZipTypeRcg SelfCheck MaxScriptNormalize ;; "SelfCheck") - StateGeneric low clamav-base/SelfCheck User LogFile + StateGeneric low clamav-base/SelfCheck User MaxZipTypeRcg ;; "User") StateUser diff -Nru clamav-0.97.8+dfsg/debian/clamav-base.examples clamav-0.98.1+dfsg/debian/clamav-base.examples --- clamav-0.97.8+dfsg/debian/clamav-base.examples 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-base.examples 2014-03-17 22:40:42.000000000 +0000 @@ -1 +1 @@ -etc/clamd.conf +etc/clamd.conf.sample diff -Nru clamav-0.97.8+dfsg/debian/clamav-base.postinst.in clamav-0.98.1+dfsg/debian/clamav-base.postinst.in --- clamav-0.97.8+dfsg/debian/clamav-base.postinst.in 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-base.postinst.in 2014-03-17 22:40:42.000000000 +0000 @@ -149,6 +149,8 @@ db_metaget clamav-base/LogTime value || true logtime="$RET" fi + db_metaget clamav-base/LogRotate value || true + LogRotate="$RET" db_get clamav-base/SelfCheck || true selfcheck="$RET" db_metaget clamav-base/Bytecode value || true @@ -159,9 +161,64 @@ db_metaget clamav-base/BytecodeTimeout value || true bytecodetime="$RET" fi + db_metaget clamav-base/ScanOnAccess value || true + ScanOnAccess="$RET" + if [ "$ScanOnAccess" = "true" ]; then + db_metaget clamav-base/OnAccessMaxFileSize value || true + OnAccessMaxFileSize="$RET" + fi + db_metaget clamav-base/AllowAllMatchScan value || true + AllowAllMatchScan="$RET" + db_metaget clamav-base/ForceToDisk value || true + ForceToDisk="$RET" + db_metaget clamav-base/DisableCertCheck value || true + DisableCertCheck="$RET" + db_metaget clamav-base/ScanSWF value || true + ScanSWF="$RET" + db_metaget clamav-base/MaxEmbeddedPE value || true + MaxEmbeddedPE="$RET" + db_metaget clamav-base/MaxHTMLNormalize value || true + MaxHTMLNormalize="$RET" + db_metaget clamav-base/MaxHTMLNoTags value || true + MaxHTMLNoTags="$RET" + db_metaget clamav-base/MaxScriptNormalize value || true + MaxScriptNormalize="$RET" + db_metaget clamav-base/MaxZipTypeRcg value || true + MaxZipTypeRcg="$RET" slurp_config "$CLAMAVCONF" - + + # Test for the broken versions, see #741675. + if [ "$2" = "0.98.1+dfsg-3" ] || [ "$2" = "0.98.1+dfsg-1+deb7u2" ] || [ "$2" = "0.98.1+dfsg-1+deb6u2" ]; then + # Use the defaults instead of the bogus values created by that versions. + db_metaget clamav-base/LogRotate default || true + LogRotate="$RET" + db_metaget clamav-base/ScanOnAccess default || true + ScanOnAccess="$RET" + OnAccessMaxFileSize="" + OnAccessIncludePath="" + OnAccessExcludePath="" + OnAccessExcludeUID="" + db_metaget clamav-base/AllowAllMatchScan default || true + AllowAllMatchScan="$RET" + db_metaget clamav-base/ForceToDisk default || true + ForceToDisk="$RET" + db_metaget clamav-base/DisableCertCheck default || true + DisableCertCheck="$RET" + db_metaget clamav-base/ScanSWF default || true + ScanSWF="$RET" + db_metaget clamav-base/MaxEmbeddedPE default || true + MaxEmbeddedPE="$RET" + db_metaget clamav-base/MaxHTMLNormalize default || true + MaxHTMLNormalize="$RET" + db_metaget clamav-base/MaxHTMLNoTags default || true + MaxHTMLNoTags="$RET" + db_metaget clamav-base/MaxScriptNormalize default || true + MaxScriptNormalize="$RET" + db_metaget clamav-base/MaxZipTypeRcg default || true + MaxZipTypeRcg="$RET" + fi + if [ -z "$PidFile" ]; then PidFile='/var/run/clamav/clamd.pid' elif [ "$PidFile" = '/var/run/clamd.pid' ]; then @@ -198,6 +255,7 @@ [ -z "$maxconnQleng" ] && maxconnQleng=15 [ -z "$streamsavelength" ] && streamsavelength=10 [ -z "$LogFacility" ] && LogFacility=LOG_LOCAL6 + [ -z "$LogRotate" ] && LogRotate=true [ -z "$LogFileUnlock" ] && LogFileUnlock=false [ -z "$LogFileMaxSize" ] && LogFileMaxSize=0 [ -z "$LogClean" ] && LogClean=false @@ -272,6 +330,7 @@ MaxThreads $maxthreads MaxConnectionQueueLength $maxconnQleng LogSyslog $logsyslog +LogRotate $LogRotate LogFacility $LogFacility LogClean $LogClean LogVerbose $LogVerbose @@ -281,8 +340,14 @@ Foreground $Foreground Debug $Debug ScanPE $ScanPE +MaxEmbeddedPE $MaxEmbeddedPE ScanOLE2 $ScanOLE2 ScanHTML $ScanHTML +MaxHTMLNormalize $MaxHTMLNormalize +MaxHTMLNoTags $MaxHTMLNoTags +MaxScriptNormalize $MaxScriptNormalize +MaxZipTypeRcg $MaxZipTypeRcg +ScanSWF $ScanSWF DetectBrokenExecutables $DetectBrokenExecutables ExitOnOOM $ExitOnOOM LeaveTemporaryFiles $LeaveTemporaryFiles @@ -302,6 +367,10 @@ MaxQueue $MaxQueue ExtendedDetectionInfo $ExtendedDetectionInfo OLE2BlockMacros $OLE2BlockMacros +ScanOnAccess $ScanOnAccess +AllowAllMatchScan $AllowAllMatchScan +ForceToDisk $ForceToDisk +DisableCertCheck $DisableCertCheck EOF if is_true "$StructuredDataDetection"; then @@ -351,6 +420,10 @@ [ -n "$VirusEvent" ] && echo "VirusEvent $VirusEvent" >> $DEBCONFFILE [ -n "$StreamMinPort" ] && echo "StreamMinPort $StreamMinPort" >> $DEBCONFFILE [ -n "$StreamMaxPort" ] && echo "StreamMaxPort $StreamMaxPort" >> $DEBCONFFILE + [ -n "$OnAccessMaxFileSize" ] && echo "OnAccessMaxFileSize $OnAccessMaxFileSize" >> $DEBCONFFILE + [ -n "$OnAccessIncludePath" ] && echo "OnAccessIncludePath $OnAccessIncludePath" >> $DEBCONFFILE + [ -n "$OnAccessExcludePath" ] && echo "OnAccessExcludePath $OnAccessExcludePath" >> $DEBCONFFILE + [ -n "$OnAccessExcludeUID" ] && echo "OnAccessExcludeUID $OnAccessExcludeUID" >> $DEBCONFFILE [ -n "$ClamukoScanOnAccess" ] && echo "ClamukoScanOnAccess $ClamukoScanOnAccess" >> $DEBCONFFILE [ -n "$ClamukoScanOnOpen" ] && echo "ClamukoScanOnOpen $ClamukoScanOnOpen" >> $DEBCONFFILE [ -n "$ClamukoScanOnClose" ] && echo "ClamukoScanOnClose $ClamukoScanOnClose" >> $DEBCONFFILE @@ -376,7 +449,7 @@ else ucf_cleanup "$CLAMAVCONF" - ucf_upgrade_check "$CLAMAVCONF" /usr/share/doc/clamav-base/examples/clamd.conf /var/lib/ucf/cache/:etc:clamav:clamd.conf + ucf_upgrade_check "$CLAMAVCONF" /usr/share/doc/clamav-base/examples/clamd.conf.sample /var/lib/ucf/cache/:etc:clamav:clamd.conf db_stop || true fi diff -Nru clamav-0.97.8+dfsg/debian/clamav-base.postrm clamav-0.98.1+dfsg/debian/clamav-base.postrm --- clamav-0.97.8+dfsg/debian/clamav-base.postrm 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-base.postrm 2014-03-17 22:40:42.000000000 +0000 @@ -37,12 +37,6 @@ fi done rm -f /var/log/clamav/clamav.log* /etc/clamav/clamav.conf.dpkg-old /etc/clamav/clamd.conf.dpkg-old /etc/clamav/clamd.conf.ucf-old - if [ -x "/usr/sbin/userdel" ]; then - userdel clamav || true - fi - if [ -x "/usr/sbin/groupdel" ]; then - groupdel clamav || true - fi rm -f /var/lib/clamav/*.md5sum || true rm -f $DATABASEDIR/main.cvd $DATABASEDIR/daily.cvd $DATABASEDIR/bytecode.cvd ;; diff -Nru clamav-0.97.8+dfsg/debian/clamav-base.templates clamav-0.98.1+dfsg/debian/clamav-base.templates --- clamav-0.97.8+dfsg/debian/clamav-base.templates 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-base.templates 2014-03-17 22:40:42.000000000 +0000 @@ -143,6 +143,93 @@ Default: true _Description: Do you want to log time information with each message? +Template: clamav-base/LogRotate +Type: boolean +Default: true +_Description: Do you want to enable log rotation? + +Template: clamav-base/ScanOnAccess +Type: boolean +Default: false +_Description: Do you want to enable on-access scanning? + +Template: clamav-base/OnAccessMaxFileSize +Type: string +Default: 5M +_Description: Maximum file size to scan: + A value of 0 disables the limit. + +Template: clamav-base/AllowAllMatchScan +Type: boolean +Default: true +_Description: Do you want to permit the use of the ALLMATCHSCAN command? + If set to no, clamd will reject any ALLMATCHSCAN command as invalid. + +Template: clamav-base/ForceToDisk +Type: boolean +Default: false +_Description: Do you want memory or nested map scans to dump the content to disk? + If you turn on this option, more data is written to disk and is available + when the LeaveTemporaryFiles option is enabled. + +Template: clamav-base/DisableCertCheck +Type: boolean +Default: false +_Description: Do you want to completely turn off authenticode verification? + Certain PE files contain an authenticode signature. By default, we check + the signature chain in the PE file against a database of trusted and + revoked certificates if the file being scanned is marked as a virus. + If any certificate in the chain validates against any trusted root, but + does not match any revoked certificate, the file is marked as whitelisted. + If the file does match a revoked certificate, the file is marked as virus. + +Template: clamav-base/ScanSWF +Type: boolean +Default: true +_Description: Do you want to enable scanning within SWF files? + If you turn off this option, the original files will still be scanned, but + without decoding and additional processing. + +Template: clamav-base/MaxEmbeddedPE +Type: string +Default: 10M +_Description: Maximum size of a file to check for embedded PE: + Files larger than this value will skip the additional analysis step. + Note: disabling this limit or setting it too high may result in severe damage + to the system. + +Template: clamav-base/MaxHTMLNormalize +Type: string +Default: 10M +_Description: Maximum size of a HTML file to normalize: + HTML files larger than this value will not be normalized or scanned. + Note: disabling this limit or setting it too high may result in severe damage + to the system. + +Template: clamav-base/MaxHTMLNoTags +Type: string +Default: 2M +_Description: Maximum size of a normalized HTML file to scan: + HTML files larger than this value after normalization will not be scanned. + Note: disabling this limit or setting it too high may result in severe damage + to the system. + +Template: clamav-base/MaxScriptNormalize +Type: string +Default: 5M +_Description: Maximum size of a script file to normalize: + Script content larger than this value will not be normalized or scanned. + Note: disabling this limit or setting it too high may result in severe damage + to the system. + +Template: clamav-base/MaxZipTypeRcg +Type: string +Default: 1M +_Description: Maximum size of a ZIP file to reanalyze type recognition: + ZIP files larger than this value will skip the step to potentially reanalyze as PE. + Note: disabling this limit or setting it too high may result in severe damage + to the system. + Template: clamav-base/SelfCheck Type: string Default: 3600 diff -Nru clamav-0.97.8+dfsg/debian/clamav-daemon.postinst.in clamav-0.98.1+dfsg/debian/clamav-daemon.postinst.in --- clamav-0.97.8+dfsg/debian/clamav-daemon.postinst.in 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-daemon.postinst.in 2014-03-17 22:40:42.000000000 +0000 @@ -38,7 +38,11 @@ if echo "$LogFile" | grep -q '^/dev/'; then make_logrotate=false else - make_logrotate=true + if [ -n "$LogRotate" ]; then + make_logrotate=true + else + make_logrotate=false + fi fi [ -n "$User" ] || User=clamav if [ "$make_logrotate" = 'true' ]; then diff -Nru clamav-0.97.8+dfsg/debian/clamav-freshclam.config.in clamav-0.98.1+dfsg/debian/clamav-freshclam.config.in --- clamav-0.97.8+dfsg/debian/clamav-freshclam.config.in 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-freshclam.config.in 2014-03-17 22:40:42.000000000 +0000 @@ -59,6 +59,9 @@ else db_set clamav-freshclam/NotifyClamd "false" || true fi +if [ -n "$PrivateMirror" ]; then + db_set clamav-freshclam/PrivateMirror "$PrivateMirror" || true +fi # States @@ -153,7 +156,10 @@ Stateupdate_interval ;; notify_daemon) - StateGeneric medium clamav-freshclam/NotifyClamd End update_interval + StateGeneric medium clamav-freshclam/NotifyClamd private_mirror update_interval + ;; + private_mirror) + StateGeneric low clamav-freshclam/PrivateMirror End notify_daemon ;; esac done diff -Nru clamav-0.97.8+dfsg/debian/clamav-freshclam.examples clamav-0.98.1+dfsg/debian/clamav-freshclam.examples --- clamav-0.97.8+dfsg/debian/clamav-freshclam.examples 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-freshclam.examples 2014-03-17 22:40:42.000000000 +0000 @@ -1 +1 @@ -etc/freshclam.conf +etc/freshclam.conf.sample diff -Nru clamav-0.97.8+dfsg/debian/clamav-freshclam.postinst.in clamav-0.98.1+dfsg/debian/clamav-freshclam.postinst.in --- clamav-0.97.8+dfsg/debian/clamav-freshclam.postinst.in 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-freshclam.postinst.in 2014-03-17 22:40:42.000000000 +0000 @@ -121,9 +121,22 @@ [ "$RET" = "true" ] && notify="/etc/clamav/clamd.conf" db_metaget clamav-base/Bytecode value || true bytecode="$RET" + db_metaget clamav-base/LogRotate value || true + LogRotate="$RET" + db_metaget clamav-freshclam/PrivateMirror value || true + PrivateMirror="$RET" slurp_config "$FRESHCLAMCONFFILE" + # Test for the broken versions, see #741675. + if [ "$2" = "0.98.1+dfsg-3" ] || [ "$2" = "0.98.1+dfsg-1+deb7u2" ] || [ "$2" = "0.98.1+dfsg-1+deb6u2" ]; then + # Use the defaults instead of the bogus values created by that versions. + db_metaget clamav-base/LogRotate default || true + LogRotate="$RET" + db_metaget clamav-freshclam/PrivateMirror default || true + PrivateMirror="$RET" + fi + # Make sure user changes to unasked questions remain intact [ -n "$DatabaseOwner" ] && [ "$DatabaseOwner" != "$dbowner" ] && dbowner="$DatabaseOwner" [ -n "$UpdateLogFile" ] && [ "$UpdateLogFile" != "$udlogfile" ] && udlogfile="$UpdateLogFile" @@ -134,7 +147,11 @@ if echo "$udlogfile" | grep -q '^/dev/'; then make_logrotate=false else - make_logrotate=true + if [ -n "$LogRotate" ]; then + make_logrotate=true + else + make_logrotate=false + fi fi [ -n "$User" ] || User=clamav if [ "$make_logrotate" = 'true' ]; then @@ -216,6 +233,7 @@ [ -z "$TestDatabases" ] && TestDatabases=yes [ -z "$ScriptedUpdates" ] && ScriptedUpdates=yes [ -z "$LogTime" ] && LogTime=true + [ -z "$LogRotate" ] && LogRotate=true [ -z "$CompressLocalDatabase" ] && CompressLocalDatabase=no # Generate config file @@ -229,6 +247,7 @@ LogSyslog $LogSyslog LogFacility $LogFacility LogFileMaxSize $LogFileMaxSize +LogRotate $LogRotate LogTime $LogTime Foreground $Foreground Debug $Debug @@ -288,6 +307,7 @@ [ -n "$DetectionStatsCountry" ] && echo "DetectionStatsCountry $DetectionStatsCountry" >> $DEBCONFILE [ -n "$DetectionStatsHostID" ] && echo "DetectionStatsHostID $DetectionStatsHostID" >> $DEBCONFILE [ -n "$SafeBrowsing" ] && echo "SafeBrowsing $SafeBrowsing" >> $DEBCONFILE + [ -n "$PrivateMirror" ] && echo "PrivateMirror $PrivateMirror" >> $DEBCONFILE if [ -n "$DatabaseCustomURL" ]; then for i in $DatabaseCustomURL; do echo "DatabaseCustomURL $i" >> $DEBCONFILE diff -Nru clamav-0.97.8+dfsg/debian/clamav-freshclam.templates clamav-0.98.1+dfsg/debian/clamav-freshclam.templates --- clamav-0.97.8+dfsg/debian/clamav-freshclam.templates 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-freshclam.templates 2014-03-17 22:40:42.000000000 +0000 @@ -87,3 +87,17 @@ delayed (it performs this check every 6 hours by default), posing the risk that a new virus may slip through even if the database is up to date. Do not use this if you do not use clamd, as it will produce errors. + +Template: clamav-freshclam/PrivateMirror +Type: string +Default: +_Description: Private mirror for freshclam: + This option allows you to easily point freshclam to private mirrors. + If PrivateMirror is set, freshclam does not attempt to use DNS + to determine whether its databases are out-of-date, instead it will + use the If-Modified-Since request or directly check the headers of the + remote database files. For each database, freshclam first attempts + to download the CLD file. If that fails, it tries to download the + CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo + and ScriptedUpdates. It can be used multiple times to provide + fall-back mirrors. diff -Nru clamav-0.97.8+dfsg/debian/clamav-milter.config.in clamav-0.98.1+dfsg/debian/clamav-milter.config.in --- clamav-0.97.8+dfsg/debian/clamav-milter.config.in 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-milter.config.in 2014-03-17 22:40:42.000000000 +0000 @@ -141,6 +141,9 @@ MaxFileSize=25 fi db_set clamav-milter/MaxFileSize "$MaxFileSize" || true +if [ "$SupportMultipleRecipients" = "true" ]; then + db_set clamav-milter/SupportMultipleRecipients true || true +fi # States @@ -309,7 +312,10 @@ StateGeneric low clamav-milter/LogClean MaxFileSize LogInfected ;; "MaxFileSize") - StateGenericDigit low clamav-milter/MaxFileSize End LogClean + StateGenericDigit low clamav-milter/MaxFileSize SupportMultipleRecipients LogClean + ;; + "SupportMultipleRecipients") + StateGeneric low clamav-milter/SupportMultipleRecipients End MaxFileSize ;; esac done diff -Nru clamav-0.97.8+dfsg/debian/clamav-milter.examples clamav-0.98.1+dfsg/debian/clamav-milter.examples --- clamav-0.97.8+dfsg/debian/clamav-milter.examples 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-milter.examples 2014-03-17 22:40:42.000000000 +0000 @@ -1 +1 @@ -etc/clamav-milter.conf +etc/clamav-milter.conf.sample diff -Nru clamav-0.97.8+dfsg/debian/clamav-milter.postinst.in clamav-0.98.1+dfsg/debian/clamav-milter.postinst.in --- clamav-0.97.8+dfsg/debian/clamav-milter.postinst.in 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-milter.postinst.in 2014-03-17 22:40:42.000000000 +0000 @@ -95,6 +95,10 @@ db_metaget clamav-milter/MaxFileSize value || true maxfilesize="`echo $RET | sed -e s/M//g`" MaxFSize="${maxfilesize}M" + db_metaget clamav-base/LogRotate value || true + LogRotate="$RET" + db_metaget clamav-milter/SupportMultipleRecipients value || true + SupportMultipleRecipients="$RET" if [ -z "$logfile" ] || [ "$logfile" = 'none' ]; then logsyslog=true @@ -107,7 +111,16 @@ fi slurp_config "$CLAMAVMILTERCONF" - + + # Test for the broken versions, see #741675. + if [ "$2" = "0.98.1+dfsg-3" ] || [ "$2" = "0.98.1+dfsg-1+deb7u2" ] || [ "$2" = "0.98.1+dfsg-1+deb6u2" ]; then + # Use the defaults instead of the bogus values created by that versions. + db_metaget clamav-base/LogRotate default || true + LogRotate="$RET" + db_metaget clamav-milter/SupportMultipleRecipients default || true + SupportMultipleRecipients="$RET" + fi + echo "#Automatically Generated by clamav-milter postinst" > $DEBCONFFILE echo "#To reconfigure clamav-milter run #dpkg-reconfigure clamav-milter" >> $DEBCONFFILE echo "#Please read /usr/share/doc/clamav-base/README.Debian.gz for details" >> $DEBCONFFILE @@ -160,7 +173,9 @@ LogVerbose $logverbose LogInfected $loginfected LogClean $logclean +LogRotate $LogRotate MaxFileSize $MaxFSize +SupportMultipleRecipients $SupportMultipleRecipients EOF if [ -n "$SkipAuthenticated" ]; then cat >> $DEBCONFFILE << EOF @@ -239,7 +254,11 @@ if echo "$logfile" | grep -q '^/dev/'; then make_logrotate=false else - make_logrotate=true + if [ -n "$LogRotate" ]; then + make_logrotate=true + else + make_logrotate=false + fi fi [ -n "$user" ] || user=clamav if [ "$make_logrotate" = 'true' ]; then diff -Nru clamav-0.97.8+dfsg/debian/clamav-milter.templates clamav-0.98.1+dfsg/debian/clamav-milter.templates --- clamav-0.97.8+dfsg/debian/clamav-milter.templates 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/clamav-milter.templates 2014-03-17 22:40:42.000000000 +0000 @@ -265,3 +265,21 @@ . You should check that this value is lower than the value of "StreamMaxLength" in the clamd.conf file. + + +Template: clamav-milter/SupportMultipleRecipients +Type: boolean +Default: false +_Description: Do you want clamav-milter to support multiple recipients? + This option affects the behaviour of LogInfected, LogClean and VirusAction + when a message with multiple recipients is scanned: + If SupportMultipleRecipients is off (the default) + then one single log entry is generated for the message and, in case the + message is determined to be malicious, the command indicated by VirusAction + is executed just once. In both cases only the last recipient is reported. + If SupportMultipleRecipients is on: + then one line is logged for each recipient and the command indicated + by VirusAction is also executed once for each recipient. + . + Note: although it's probably a good idea to enable this option, the default value + is currently set to off for legacy reasons. diff -Nru clamav-0.97.8+dfsg/debian/control clamav-0.98.1+dfsg/debian/control --- clamav-0.97.8+dfsg/debian/control 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/control 2014-03-19 13:00:56.000000000 +0000 @@ -3,12 +3,16 @@ Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: ClamAV Team -Uploaders: Stephen Gran , Michael Meskes , Michael Tautschnig , Scott Kitterman -Build-Depends: debhelper (>= 6.0.7), po-debconf, zlib1g-dev, libbz2-dev, libmilter-dev, perl, bc, check, libtommath-dev, libltdl-dev, libncurses5-dev, python -Standards-Version: 3.9.3 -Vcs-Git: git://git.debian.org/pkg-clamav/clamav.git -Vcs-Browser: http://git.debian.org/?p=pkg-clamav/clamav.git;a=summary +Uploaders: Stephen Gran , Michael Meskes , + Michael Tautschnig , Scott Kitterman +Build-Depends: debhelper (>= 6.0.7), po-debconf, zlib1g-dev, libbz2-dev, libmilter-dev, + perl, bc, check, libtommath-dev, libltdl-dev, libncurses5-dev, python, + libxml2-dev, dh-autoreconf, automake1.11, pkg-config +Standards-Version: 3.9.5 +Vcs-Git: git://anonscm.debian.org/pkg-clamav/clamav.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-clamav/clamav.git;a=summary Homepage: http://www.clamav.net/ +XS-Testsuite: autopkgtest Package: clamav-base Architecture: all diff -Nru clamav-0.97.8+dfsg/debian/.git-dpm clamav-0.98.1+dfsg/debian/.git-dpm --- clamav-0.97.8+dfsg/debian/.git-dpm 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/.git-dpm 2014-03-11 04:31:20.000000000 +0000 @@ -0,0 +1,8 @@ +# see git-dpm(1) from git-dpm package +d1c4510893190e33e55f43e0e674011b5e157f61 +d1c4510893190e33e55f43e0e674011b5e157f61 +f9dd30121dc6926a7a1f704662656aaebe567d5e +f9dd30121dc6926a7a1f704662656aaebe567d5e +clamav_0.98.1+dfsg.orig.tar.gz +112910a65f0518feb08e5250bc7f3b0fb74a697f +13118803 diff -Nru clamav-0.97.8+dfsg/debian/libclamav6.lintian-overrides clamav-0.98.1+dfsg/debian/libclamav6.lintian-overrides --- clamav-0.97.8+dfsg/debian/libclamav6.lintian-overrides 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/libclamav6.lintian-overrides 2014-03-17 22:40:42.000000000 +0000 @@ -1 +1 @@ -libclamav6 binary: embedded-library usr/lib/libclamav.so.6.1.17: zlib +libclamav6 binary: embedded-library usr/lib/libclamav.so.6.1.20: zlib diff -Nru clamav-0.97.8+dfsg/debian/patches/0001-Change-paths-in-sample-conf-file-to-match-Debian.patch clamav-0.98.1+dfsg/debian/patches/0001-Change-paths-in-sample-conf-file-to-match-Debian.patch --- clamav-0.97.8+dfsg/debian/patches/0001-Change-paths-in-sample-conf-file-to-match-Debian.patch 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/patches/0001-Change-paths-in-sample-conf-file-to-match-Debian.patch 2014-03-11 04:31:20.000000000 +0000 @@ -0,0 +1,40 @@ +From 137bf4cb213ae4525cdbb8303b1d906385498559 Mon Sep 17 00:00:00 2001 +From: Scott Kitterman +Date: Mon, 10 Mar 2014 19:20:18 -0400 +Subject: Change paths in sample conf file to match Debian + +--- + etc/clamav-milter.conf.sample | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/etc/clamav-milter.conf.sample b/etc/clamav-milter.conf.sample +index b7d66a4..ed0d519 100644 +--- a/etc/clamav-milter.conf.sample ++++ b/etc/clamav-milter.conf.sample +@@ -64,7 +64,7 @@ Example + # daemon (main thread). + # + # Default: disabled +-#PidFile /var/run/clamav-milter.pid ++#PidFile /var/run/clamav/clamav-milter.pid + + # Optional path to the global temporary directory. + # Default: system specific (usually /tmp or /var/tmp). +@@ -90,7 +90,7 @@ Example + # with the same socket: clamd servers will be selected in a round-robin fashion. + # + # Default: no default +-#ClamdSocket tcp:scanner.mydomain:7357 ++ClamdSocket /var/run/clamav/clamd + + + ## +@@ -212,7 +212,7 @@ Example + # A full path is required. + # + # Default: disabled +-#LogFile /tmp/clamav-milter.log ++#LogFile /var/log/clamav/clamav-milter.log + + # By default the log file is locked for writing - the lock protects against + # running clamav-milter multiple times. diff -Nru clamav-0.97.8+dfsg/debian/patches/0002-Sebastian-Andrzej-Siewior.patch clamav-0.98.1+dfsg/debian/patches/0002-Sebastian-Andrzej-Siewior.patch --- clamav-0.97.8+dfsg/debian/patches/0002-Sebastian-Andrzej-Siewior.patch 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/patches/0002-Sebastian-Andrzej-Siewior.patch 2014-03-11 04:31:20.000000000 +0000 @@ -0,0 +1,103 @@ +From 2493e18d6facdf0363bdb0933238e0061dacf9d5 Mon Sep 17 00:00:00 2001 +From: Scott Kitterman +Date: Mon, 10 Mar 2014 19:28:15 -0400 +Subject: =?UTF-8?q?=20=20[=20Sebastian=20Andrzej=20Siewior=20]=0A=20=20*?= + =?UTF-8?q?=20unit=5Ftest:=20check=5Fclamav:=20skip=20.rar=20files=20if=20?= + =?UTF-8?q?there=20is=20no=20rar=20support=20to=20fix=0A=20=20=20=20test?= + =?UTF-8?q?=20failure=20(and=20FTBFS)=20when=20tests=20are=20run?= + +--- + unit_tests/check_clamav.c | 50 +++++++++++++++++++++++++++++++++++------------ + 1 file changed, 37 insertions(+), 13 deletions(-) + +diff --git a/unit_tests/check_clamav.c b/unit_tests/check_clamav.c +index 3473082..3ccd5d5 100644 +--- a/unit_tests/check_clamav.c ++++ b/unit_tests/check_clamav.c +@@ -361,9 +361,24 @@ static const int expected_testfiles = 48; + static const int expected_testfiles = 46; + #endif + ++static unsigned skip_unrar_files(void) ++{ ++ const char *s = getenv("unrar_disabled"); ++ ++ if (!s) ++ return 0; ++ ++ if (strcmp(s, "1")) ++ return 0; ++ ++ /* number of .rar files we skipp */ ++ return 2; ++} ++ + static void init_testfiles(void) + { + struct dirent *dirent; ++ int expect = expected_testfiles; + unsigned i = 0; + + DIR *d = opendir(OBJDIR"/../test"); +@@ -375,13 +390,18 @@ static void init_testfiles(void) + while ((dirent = readdir(d))) { + if (strncmp(dirent->d_name, "clam", 4)) + continue; ++ if (strstr(dirent->d_name, ".rar") && skip_unrar_files()) { ++ cli_dbgmsg("skipping (no unrar) %s\n", dirent->d_name); ++ continue; ++ } + i++; + testfiles = cli_realloc(testfiles, i*sizeof(*testfiles)); + fail_unless(!!testfiles, "cli_realloc"); + testfiles[i-1] = strdup(dirent->d_name); + } + testfiles_n = i; +- fail_unless_fmt(testfiles_n == expected_testfiles, "testfiles: %d != %d", testfiles_n, expected_testfiles); ++ expect -= skip_unrar_files(); ++ fail_unless_fmt(testfiles_n == expect, "testfiles: %d != %d", testfiles_n, expect); + + closedir(d); + } +@@ -560,6 +580,8 @@ END_TEST + + static Suite *test_cl_suite(void) + { ++ int expect = expected_testfiles; ++ + Suite *s = suite_create("cl_api"); + TCase *tc_cl = tcase_create("cl_dup"); + TCase *tc_cl_scan = tcase_create("cl_scan"); +@@ -585,18 +607,20 @@ static Suite *test_cl_suite(void) + suite_add_tcase(s, tc_cl_scan); + tcase_add_checked_fixture (tc_cl_scan, engine_setup, engine_teardown); + #ifdef CHECK_HAVE_LOOPS +- tcase_add_loop_test(tc_cl_scan, test_cl_scandesc, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scandesc_allscan, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scanfile, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scanfile_allscan, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scandesc_callback, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scandesc_callback_allscan, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scanfile_callback, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scanfile_callback_allscan, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_handle, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_handle_allscan, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_mem, 0, expected_testfiles); +- tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_mem_allscan, 0, expected_testfiles); ++ expect -= skip_unrar_files(); ++ ++ tcase_add_loop_test(tc_cl_scan, test_cl_scandesc, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scandesc_allscan, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scanfile, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scanfile_allscan, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scandesc_callback, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scandesc_callback_allscan, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scanfile_callback, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scanfile_callback_allscan, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_handle, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_handle_allscan, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_mem, 0, expect); ++ tcase_add_loop_test(tc_cl_scan, test_cl_scanmap_callback_mem_allscan, 0, expect); + #endif + return s; + } diff -Nru clamav-0.97.8+dfsg/debian/patches/0003-configure-use-pkg-config-for-check-so-test-is-detect.patch clamav-0.98.1+dfsg/debian/patches/0003-configure-use-pkg-config-for-check-so-test-is-detect.patch --- clamav-0.97.8+dfsg/debian/patches/0003-configure-use-pkg-config-for-check-so-test-is-detect.patch 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/patches/0003-configure-use-pkg-config-for-check-so-test-is-detect.patch 2014-03-11 04:31:20.000000000 +0000 @@ -0,0 +1,61 @@ +From 3bfb03f1f9b8317ff355f0c65cde1e9b3fd5cc43 Mon Sep 17 00:00:00 2001 +From: Scott Kitterman +Date: Mon, 10 Mar 2014 19:46:48 -0400 +Subject: configure: use pkg-config for check so test is detected and tests + will run + +--- + configure.ac | 19 ++++++------------- + unit_tests/Makefile.am | 4 ++-- + 2 files changed, 8 insertions(+), 15 deletions(-) + +diff --git a/configure.ac b/configure.ac +index c91baeb..41df5d0 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -464,22 +464,15 @@ enable_ut_install=no + AC_ARG_ENABLE(check, + [ --enable-check Enable 'check' unit tests (default=auto)], enable_check_ut=$enableval, enable_check_ut="auto" ) + +-if test "$enable_check_ut" != "no" ; then +- AC_LIB_FIND([check],[check.h], +- AC_LANG_PROGRAM([#include ],[srunner_create(0)]), +- [CHECK_CPPFLAGS="$INCCHECK"; CHECK_LIBS="$LTLIBCHECK"], +- []) ++if test "$enable_check_ut" = "auto" ; then ++ PKG_CHECK_EXISTS([check], [enable_check_ut="yes"], ++ [enable_check_ut="no"]) + fi +-AC_SUBST([CHECK_CPPFLAGS]) +-AC_SUBST([CHECK_LIBS]) +-AM_CONDITIONAL([HAVE_LIBCHECK],test "X$HAVE_LIBCHECK" = "Xyes") + +-if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then +- AC_MSG_ERROR([ +- +-ERROR! Check was configured, but not found. Get it from http://check.sf.net/ +-]) ++if test "$enable_check_ut" = "yes" ; then ++ PKG_CHECK_MODULES([CHECK], [check >= 0.9.4]) + fi ++AM_CONDITIONAL([HAVE_LIBCHECK],test "X$CHECK_LIBS" != "X") + + AC_ARG_ENABLE(coverage, + AC_HELP_STRING([--enable-coverage], +diff --git a/unit_tests/Makefile.am b/unit_tests/Makefile.am +index d85d7b6..a4d9d84 100644 +--- a/unit_tests/Makefile.am ++++ b/unit_tests/Makefile.am +@@ -33,10 +33,10 @@ check_clamav_SOURCES = check_clamav.c checks.h checks_common.h $(top_builddir)/l + check_jsnorm.c check_str.c check_regex.c\ + check_disasm.c check_uniq.c check_matchers.c\ + check_htmlnorm.c check_bytecode.c +-check_clamav_CPPFLAGS = -I$(top_srcdir) @CHECK_CPPFLAGS@ -DSRCDIR=\"$(abs_srcdir)\" -DOBJDIR=\"$(abs_builddir)\" ++check_clamav_CPPFLAGS = -I$(top_srcdir) @CHECK_CFLAGS@ -DSRCDIR=\"$(abs_srcdir)\" -DOBJDIR=\"$(abs_builddir)\" + check_clamav_LDADD = $(top_builddir)/libclamav/libclamav.la @THREAD_LIBS@ @CHECK_LIBS@ + check_clamd_SOURCES = check_clamd.c checks_common.h +-check_clamd_CPPFLAGS = -I$(top_srcdir) @CHECK_CPPFLAGS@ -DSRCDIR=\"$(abs_srcdir)\" -DBUILDDIR=\"$(abs_builddir)\" ++check_clamd_CPPFLAGS = -I$(top_srcdir) @CHECK_CFLAGS@ -DSRCDIR=\"$(abs_srcdir)\" -DBUILDDIR=\"$(abs_builddir)\" + check_clamd_LDADD = @CHECK_LIBS@ @CLAMD_LIBS@ + else + check_clamd_SOURCES = check_clamav_skip.c diff -Nru clamav-0.97.8+dfsg/debian/patches/0004-Stop-using-a-cargo-culted-syscall-table-and-trust-th.patch clamav-0.98.1+dfsg/debian/patches/0004-Stop-using-a-cargo-culted-syscall-table-and-trust-th.patch --- clamav-0.97.8+dfsg/debian/patches/0004-Stop-using-a-cargo-culted-syscall-table-and-trust-th.patch 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/patches/0004-Stop-using-a-cargo-culted-syscall-table-and-trust-th.patch 2014-03-11 04:31:20.000000000 +0000 @@ -0,0 +1,45 @@ +From fa5fdd205e4958c304f3dfd10173eb4e0c35596f Mon Sep 17 00:00:00 2001 +From: Scott Kitterman +Date: Mon, 10 Mar 2014 19:57:02 -0400 +Subject: Stop using a cargo-culted syscall table and trust the glibc headers + +--- + clamd/fan-syscalllib.h | 17 ++++------------- + 1 file changed, 4 insertions(+), 13 deletions(-) + +diff --git a/clamd/fan-syscalllib.h b/clamd/fan-syscalllib.h +index 288cd99..b130635 100644 +--- a/clamd/fan-syscalllib.h ++++ b/clamd/fan-syscalllib.h +@@ -2,27 +2,18 @@ + #define __FANOTIFY_SYSCALL_LIB + + #include +-#include +- +-#if defined(__x86_64__) +-# define __NR_fanotify_init 300 +-# define __NR_fanotify_mark 301 +-#elif defined(__i386__) +-# define __NR_fanotify_init 338 +-# define __NR_fanotify_mark 339 +-#else +-# error "System call numbers not defined for this architecture" +-#endif ++#include ++#include + + static inline int fanotify_init(unsigned int flags, unsigned int event_f_flags) + { +- return syscall(__NR_fanotify_init, flags, event_f_flags); ++ return syscall(SYS_fanotify_init, flags, event_f_flags); + } + + static inline int fanotify_mark(int fanotify_fd, unsigned int flags, __u64 mask, + int dfd, const char *pathname) + { +- return syscall(__NR_fanotify_mark, fanotify_fd, flags, mask, ++ return syscall(SYS_fanotify_mark, fanotify_fd, flags, mask, + dfd, pathname); + } + #endif diff -Nru clamav-0.97.8+dfsg/debian/patches/0005-configure.ac-patches-to-got-with-autoreconf-and-auto.patch clamav-0.98.1+dfsg/debian/patches/0005-configure.ac-patches-to-got-with-autoreconf-and-auto.patch --- clamav-0.97.8+dfsg/debian/patches/0005-configure.ac-patches-to-got-with-autoreconf-and-auto.patch 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/patches/0005-configure.ac-patches-to-got-with-autoreconf-and-auto.patch 2014-03-11 04:31:20.000000000 +0000 @@ -0,0 +1,40 @@ +From cbdf7f7418d29942b7f367be843678e111a96518 Mon Sep 17 00:00:00 2001 +From: Scott Kitterman +Date: Mon, 10 Mar 2014 20:41:13 -0400 +Subject: configure.ac patches to got with autoreconf and automake1.11 + +--- + configure.ac | 3 ++- + libclamav/c++/configure.ac | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 41df5d0..c9e3f97 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -34,8 +34,9 @@ AC_CREATE_TARGET_H([target.h]) + + dnl -Wall and -Werror here are NOT CFLAGS, they refer to automake warnings + dnl enable stealth builds and psychedelic tests +-AM_INIT_AUTOMAKE([1.11 -Wall -Wportability -Wno-override -Werror std-options foreign dist-bzip2 no-define color-tests parallel-tests tar-ustar]) ++AM_INIT_AUTOMAKE([-Wall -Wportability -Wno-override -Werror std-options foreign dist-bzip2 no-define color-tests parallel-tests tar-ustar]) + AM_SILENT_RULES([yes]) ++AM_PROG_AR + + dnl we told automake to not define these, since we want to include + dnl the date in the version +diff --git a/libclamav/c++/configure.ac b/libclamav/c++/configure.ac +index d72dcd1..353a302 100644 +--- a/libclamav/c++/configure.ac ++++ b/libclamav/c++/configure.ac +@@ -20,8 +20,9 @@ AC_CONFIG_SRCDIR([llvm/configure]) + AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_HEADER([clamavcxx-config.h]) + AC_CANONICAL_TARGET +-AM_INIT_AUTOMAKE([1.9 -Wall -Wportability -Werror foreign no-define color-tests tar-pax]) ++AM_INIT_AUTOMAKE([-Wall -Wportability -Werror foreign no-define color-tests tar-pax]) + AM_SILENT_RULES([yes]) ++AM_PROG_AR + + cxxset=${CXXFLAGS+set} + AC_PROG_CXX diff -Nru clamav-0.97.8+dfsg/debian/patches/0006-Fix-STAT64-definition-and-add-missing-includes.patch clamav-0.98.1+dfsg/debian/patches/0006-Fix-STAT64-definition-and-add-missing-includes.patch --- clamav-0.97.8+dfsg/debian/patches/0006-Fix-STAT64-definition-and-add-missing-includes.patch 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/patches/0006-Fix-STAT64-definition-and-add-missing-includes.patch 2014-03-11 04:31:20.000000000 +0000 @@ -0,0 +1,41 @@ +From d1c4510893190e33e55f43e0e674011b5e157f61 Mon Sep 17 00:00:00 2001 +From: Scott Kitterman +Date: Mon, 10 Mar 2014 20:44:29 -0400 +Subject: Fix STAT64 definition and add missing includes. + +--- + libclamav/clamav.h | 5 ++++- + shared/output.c | 1 + + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/libclamav/clamav.h b/libclamav/clamav.h +index fc6c642..0fc2fe6 100644 +--- a/libclamav/clamav.h ++++ b/libclamav/clamav.h +@@ -22,10 +22,13 @@ + #define __CLAMAV_H + + /* Certain OSs already use 64bit variables in their stat struct */ +-#define STAT64_BLACKLIST !defined(__FreeBSD__) && !defined(__APPLE__) ++#define STAT64_BLACKLIST !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__FreeBSD_kernel__) && !defined(__hurd__) + + #if defined(HAVE_STAT64) && STAT64_BLACKLIST + ++#include ++#include ++#include + #include + + #define STATBUF struct stat64 +diff --git a/shared/output.c b/shared/output.c +index 3af3acd..5e947a5 100644 +--- a/shared/output.c ++++ b/shared/output.c +@@ -51,6 +51,7 @@ + #endif + + #include "output.h" ++#include "libclamav/clamav.h" + #include "libclamav/others.h" + #include "libclamav/str.h" + diff -Nru clamav-0.97.8+dfsg/debian/patches/series clamav-0.98.1+dfsg/debian/patches/series --- clamav-0.97.8+dfsg/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/patches/series 2014-03-11 04:31:20.000000000 +0000 @@ -0,0 +1,6 @@ +0001-Change-paths-in-sample-conf-file-to-match-Debian.patch +0002-Sebastian-Andrzej-Siewior.patch +0003-configure-use-pkg-config-for-check-so-test-is-detect.patch +0004-Stop-using-a-cargo-culted-syscall-table-and-trust-th.patch +0005-configure.ac-patches-to-got-with-autoreconf-and-auto.patch +0006-Fix-STAT64-definition-and-add-missing-includes.patch diff -Nru clamav-0.97.8+dfsg/debian/po/cs.po clamav-0.98.1+dfsg/debian/po/cs.po --- clamav-0.97.8+dfsg/debian/po/cs.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/cs.po 2014-03-17 22:40:58.000000000 +0000 @@ -15,7 +15,7 @@ msgstr "" "Project-Id-Version: clamav\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2010-10-13 19:12+0200\n" "Last-Translator: Miroslav Kure \n" "Language-Team: Czech \n" @@ -228,6 +228,26 @@ "proklouzne, i když máte aktuální databázi. Pokud clamd nepoužíváte, tuto " "volbu nepovolujte, protože by vyvolala nějaké chyby." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -480,15 +500,180 @@ msgid "Do you want to log time information with each message?" msgstr "Chcete s každou zprávou zaznamenat i čas události?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Chcete povolit prohledávání pošty?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Chcete povolit prohledávání archivů?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Hodnotou „0“ limit zrušíte." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Chcete povolit prohledávání pošty?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Maximální velikost logovacího souboru (v MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Maximální velikost logovacího souboru (v MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Maximální velikost logovacího souboru (v MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Maximální velikost logovacího souboru (v MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Čas mezi sebekontrolami daemona (v sekundách):" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -500,13 +685,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Uživatel, pod kterým se má spouštět clamav-daemon:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -521,19 +706,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Skupiny pro clamav-daemon (oddělené mezerami):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Zadejte libovolné skupiny, do kterých má clamd patřit." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -547,31 +732,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Chcete z databáze nahrávat bajtkód?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "TrustSigned" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoid" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Bezpečnostní úroveň, se kterou se má bajtkód spustit:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -585,7 +770,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Maximální čas běhu bajtkódu (v milisekundách):" @@ -1243,12 +1428,37 @@ "Měli byste se ujistit, že je tato hodnota menší, než hodnota " "„StreamMaxLength“ uvedená v konfiguračním souboru clamd.conf." +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" + #~ msgid "Set to a value of '0' to disable the timeout." #~ msgstr "Hodnotou „0“ časový limit zrušíte." -#~ msgid "Value of 0 disables the limit." -#~ msgstr "Hodnotou „0“ limit zrušíte." - #~ msgid "Do you want to enable RAR archive scanning?" #~ msgstr "Chcete povolit prohledávání RAR archivů?" diff -Nru clamav-0.97.8+dfsg/debian/po/da.po clamav-0.98.1+dfsg/debian/po/da.po --- clamav-0.97.8+dfsg/debian/po/da.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/da.po 2014-03-17 22:40:59.000000000 +0000 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: clamav\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-06-10 16:12+0200\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2011-07-03 12:42+0000\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" @@ -57,7 +57,8 @@ " manual: no automatic invocation of freshclam. This is not recommended,\n" " as ClamAV's database is constantly updated." msgstr "" -" d??mon: freshclam k??rer hele tiden som d??mon. Du b??r v??lge dette, hvis\n" +" d??mon: freshclam k??rer hele tiden som d??mon. Du b??r v??lge dette, " +"hvis\n" " du har en permanent netforbindelse.\n" " ifup.d: freshclam vil k??re som d??mon i al den tid, din internet-\n" " forbindelse er oppe. V??lg dette, hvis du bruger en \n" @@ -127,8 +128,8 @@ "If you need to supply a username and password to the proxy, enter it here. " "Otherwise, leave this blank." msgstr "" -"Hvis proxyen kr??ver brugernavn og adgangskode, s?? angiv dem her. Ellers lad " -"feltet st?? tomt." +"Hvis proxyen kr??ver brugernavn og adgangskode, s?? angiv dem her. Ellers " +"lad feltet st?? tomt." #. Type: string #. Description @@ -169,8 +170,8 @@ msgstr "" "Hvis d??monen k??rer, mens netforbindelsen er nede, vil logfilen blive fyldt " "med en masse beskeder s??som ??ERROR: Connection with database.clamav.net " -"failed.??, s?? det kan v??re sv??rt at se, hvorn??r freshclam i virkeligheden " -"ikke kan komme til at opdatere databasen." +"failed.??, s?? det kan v??re sv??rt at se, hvorn??r freshclam i " +"virkeligheden ikke kan komme til at opdatere databasen." #. Type: string #. Description @@ -222,9 +223,29 @@ msgstr "" "Hvis du ikke v??lger denne indstilling, vil clamd's indl??sning af databaser " "blive forsinket betydeligt (den tjekker som udgangspunkt hver sjette time), " -"s??ledes at du risikerer, at en ny virus slipper igennem, selvom din database " -"er fuldt opdateret. Brug ikke denne indstilling, hvis du ikke bruger clamd, " -"da den vil resultere i fejl." +"s??ledes at du risikerer, at en ny virus slipper igennem, selvom din " +"database er fuldt opdateret. Brug ikke denne indstilling, hvis du ikke " +"bruger clamd, da den vil resultere i fejl." + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" #. Type: boolean #. Description @@ -249,8 +270,8 @@ msgstr "" "ClamAV-programmerne vil ikke fungere, hvis de ikke er sat op. Hvis du ikke " "konfigurerer automatisk, skal du selv s??tte /etc/clamav/clamd.conf op eller " -"k??re ??dpkg-reconfigure clamav-base?? senere. Uanset hvad vil manuelle " -"??ndringer i /etc/clamav/clamd.conf blive respekteret." +"k??re ??dpkg-reconfigure clamav-base?? senere. Uanset hvad vil manuelle ??" +"ndringer i /etc/clamav/clamd.conf blive respekteret." #. Type: select #. Description @@ -320,8 +341,8 @@ "listen on a single address or host name, enter it here." msgstr "" "Skriv ??any?? for at lytte p?? alle de IP-adresser, der er sat op. Hvis du i " -"stedet ??nsker at lytte p?? en enkelt adresse eller ??t v??rtsnavn s?? skriv den " -"her." +"stedet ??nsker at lytte p?? en enkelt adresse eller ??t v??rtsnavn s?? skriv " +"den her." #. Type: error #. Description @@ -390,7 +411,8 @@ #: ../clamav-base.templates:13001 msgid "You can set a limit on the stream length that can be scanned." msgstr "" -"Du kan s??tte en begr??nsning p?? st??rrelsen af de str??mme, der kan skannes." +"Du kan s??tte en begr??nsning p?? st??rrelsen af de str??mme, der kan " +"skannes." #. Type: string #. Description @@ -405,8 +427,8 @@ "This value must be set if you want to allow the daemon to follow directory " "symlinks." msgstr "" -"Denne v??rdi skal v??re angivet, hvis du ??nsker at tillade d??monen at f??lge " -"symbolske mappehenvisninger." +"Denne v??rdi skal v??re angivet, hvis du ??nsker at tillade d??monen at f??" +"lge symbolske mappehenvisninger." #. Type: string #. Description @@ -424,7 +446,8 @@ #. Description #: ../clamav-base.templates:16001 msgid "Do you want the daemon to follow regular file symlinks?" -msgstr "??nsker du at d??monen skal f??lge almindelige symbolske filhenvisninger?" +msgstr "" +"??nsker du at d??monen skal f??lge almindelige symbolske filhenvisninger?" #. Type: string #. Description @@ -463,8 +486,8 @@ "It is possible to log the daemon activity to the system logger. This can be " "done independently of whether you want to log activity to a special file." msgstr "" -"Det er muligt at logge d??monaktiviteten til systemloggeren. Dette kan g??res " -"uafh??ngigt af, om du ??nsker at logge aktivitet til en speciel fil." +"Det er muligt at logge d??monaktiviteten til systemloggeren. Dette kan g??" +"res uafh??ngigt af, om du ??nsker at logge aktivitet til en speciel fil." #. Type: string #. Description @@ -478,15 +501,180 @@ msgid "Do you want to log time information with each message?" msgstr "Vil du inkludere tidspunktet ved hver besked?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "??nsker du at aktivere postskanning?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Vil du aktivere skanning af arkiver?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Indtastning af ??0?? vil deaktivere denne begr??nsning." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "??nsker du at aktivere postskanning?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Maksimal st??rrelse p?? lofilen (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Maksimal st??rrelse p?? lofilen (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Maksimal st??rrelse p?? lofilen (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Maksimal st??rrelse p?? lofilen (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Tid i sekunder mellem d??monens selvtjek:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -499,13 +687,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Bruger som clamav-d??monen skal k??re som:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -515,24 +703,24 @@ "Det anbefales at k??re ClamAV-programmerne som en bruger der ikke er " "privilegeret. Det vil fungere med de fleste postdistributionsprogrammer " "(MTA) med en smule justering, men hvis du vil benytte clamd til at udf??re " -"skanninger af filsystemer, kan det nok ikke undg??s at k??re den som root. Se " -"README.Debian i pakken clamav-base for detaljer." +"skanninger af filsystemer, kan det nok ikke undg??s at k??re den som root. " +"Se README.Debian i pakken clamav-base for detaljer." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Grupper til clamav-daemon (adskilt af mellemrum):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Angiv eventuelle ekstra grupper til clamd." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -547,31 +735,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Vil du indl??se bytecode fra databasen?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "TillidsUnderskrevet" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoid" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Sikkerhedsniveau for bytecode:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -586,7 +774,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Tidsudl??b for bytecodeudf??rsel i millisekunder:" @@ -606,9 +794,9 @@ "manual changes in /etc/clamav/clamav-milter.conf will be respected." msgstr "" "ClamAV-programmet vil ikke fungere, hvis de ikke er sat op. Hvis du ikke " -"konfigurerer automatisk, m?? du selv s??tte /etc/clamav/clamav-milter.conf op " -"eller k??re ??dpkg-reconfigure clamav-milter?? senere. Uanset hvad vil manuelle " -"??ndringer i /etc/clamav/clamav-milter.conf blive respekteret." +"konfigurerer automatisk, m?? du selv s??tte /etc/clamav/clamav-milter.conf " +"op eller k??re ??dpkg-reconfigure clamav-milter?? senere. Uanset hvad vil " +"manuelle ??ndringer i /etc/clamav/clamav-milter.conf blive respekteret." #. Type: string #. Description @@ -626,8 +814,8 @@ " - IPv4 socket : inet:port@[hostname|ip-address]\n" " - IPv6 socket : inet6:port@[hostname|ip-address]" msgstr "" -"V??lg venligst den metode som skal bruges af clamav-milter til at kommunikere " -"med Sendmail. De f??lgende formater kan bruges:\n" +"V??lg venligst den metode som skal bruges af clamav-milter til at " +"kommunikere med Sendmail. De f??lgende formater kan bruges:\n" " - Unix-dom??nesokkel : [[unix|lokal]:]/sti/til/fil\n" " - IPv4-sokkel : inet:port@[v??rtsnavn|ip-adresse]\n" " - IPv6-sokkel : inet6:port@[v??rtsnavn|ip-adresse]" @@ -690,10 +878,11 @@ "it is used in combination with an MTA), the user running clamav-milter need " "to be added to the relevant group(s)." msgstr "" -"Clamv-milter k??rer som udgangspunkt som en bruger, der ikke er priviligeret. " -"Hvis du har brug for, at clamav-milter skal kunne tilg?? filer, der ejes af " -"en anden bruger (f.eks. i kombination med et postleveringsprogram), skal du " -"tilf??je brugeren, der k??rer clamav-milter, til de relevante grupper." +"Clamv-milter k??rer som udgangspunkt som en bruger, der ikke er " +"priviligeret. Hvis du har brug for, at clamav-milter skal kunne tilg?? " +"filer, der ejes af en anden bruger (f.eks. i kombination med et " +"postleveringsprogram), skal du tilf??je brugeren, der k??rer clamav-milter, " +"til de relevante grupper." #. Type: string #. Description @@ -708,8 +897,8 @@ "Please enter the delay (in seconds) before clamav-milter times out when it " "is waiting for incoming data from clamd." msgstr "" -"Indtast venligst forsinkelsen (i sekunder) f??r clamav-milter f??r tidsudl??b, " -"n??r programmet venter p?? indg??ende data fra clamd." +"Indtast venligst forsinkelsen (i sekunder) f??r clamav-milter f??r tidsudl??" +"b, n??r programmet venter p?? indg??ende data fra clamd." #. Type: string #. Description @@ -736,8 +925,8 @@ "Clamav-milter can run in a chroot jail. It will enter it after reading the " "configuration file and before dropping root privileges." msgstr "" -"Clamav-milter kan k??re i et chrootf??ngsel. Den vil indg?? i dette efter, at " -"programmet har l??st konfigurationsfilen og f??r den smider " +"Clamav-milter kan k??re i et chrootf??ngsel. Den vil indg?? i dette efter, " +"at programmet har l??st konfigurationsfilen og f??r den smider " "administratorprivilegierne." #. Type: string @@ -775,8 +964,9 @@ "Please specify the directory for clamav-milter's files that are temporarily " "buffered for scanning. If unset, $TMPDIR and $TEMP will be honored." msgstr "" -"Angiv mappen for clamav-milters filer som midlertidigt er lagt i mellemlageret " -"for skanning. Hvis den ikke angives, vil $TMPDIR og $TEMP blive anvendt." +"Angiv mappen for clamav-milters filer som midlertidigt er lagt i " +"mellemlageret for skanning. Hvis den ikke angives, vil $TMPDIR og $TEMP " +"blive anvendt." #. Type: string #. Description @@ -797,13 +987,14 @@ " address, and the \"port\" is only required for IPv6 addresses,\n" " defaulting to 3310 otherwise." msgstr "" -"Angiv venligst soklen der skal bruges til at forbinde til ClamAV-d??monen for " -"skanningsform??l. Mulige valg er:\n" +"Angiv venligst soklen der skal bruges til at forbinde til ClamAV-d??monen " +"for skanningsform??l. Mulige valg er:\n" " - en lokal unixsokkel der bruger en absolut sti, i formatet ??unix:sti??\n" " (for eksempel: unix:/var/run/clamd/clamd.socket);\n" " - en lokal eller ekstern TCP-sokkel i formatet ??tcp:v??rt:port?? (for " "eksempel:\n" -" cp:192.168.0.1). ??V??rtv??rdien?? kan enten v??re et v??rtsnavn eller en\n" +" cp:192.168.0.1). ??V??rtv??rdien?? kan enten v??re et v??rtsnavn eller " +"en\n" " IP-adresse, og ??porten?? er kun kr??vet for IPv6-adresser,\n" " ellers er standarden 3310." @@ -819,8 +1010,8 @@ "You may specify multiple choices, separated by spaces. In such case, the " "clamd servers will be selected in a round-robin fashion." msgstr "" -"Du m?? angive flere valg, adskilt af mellemrum. I s??danne tilf??lde, vil clamd-" -"serverne blive valgt efter metoden round-robin." +"Du m?? angive flere valg, adskilt af mellemrum. I s??danne tilf??lde, vil " +"clamd-serverne blive valgt efter metoden round-robin." #. Type: string #. Description @@ -839,8 +1030,8 @@ msgstr "" "Angiv venligst, i CIDR-notation (v??rt(navn)/maske), v??rterne hvor ingen " "skanning skal udf??res p?? indg??ende post. Flere punkter skal adskilles af " -"mellemrum. Den ??lokale?? genvej kan brues til at specificere lokalt oprindet " -"(ikke-SMTP) e-post." +"mellemrum. Den ??lokale?? genvej kan brues til at specificere lokalt " +"oprindet (ikke-SMTP) e-post." #. Type: string #. Description @@ -871,8 +1062,9 @@ "Each line in this file should be a POSIX regular expression; lines starting " "with \"#\", \":\" or \"!\" will be ignored as comments." msgstr "" -"Hver linje i denne fil skal v??re et POSIX-regul??rt udtryk; linjer startende " -"med ??#??, ??:?? eller ??!?? vil blive ignoreret som v??rende kommentarer." +"Hver linje i denne fil skal v??re et POSIX-regul??rt udtryk; linjer " +"startende med ??#??, ??:?? eller ??!?? vil blive ignoreret som v??rende " +"kommentarer." #. Type: string #. Description @@ -883,8 +1075,8 @@ "\" prefix, it affects recipient addresses." msgstr "" "Linjer skal starte med ??Fra:?? (uden mellemrum efter kolonnet) for at " -"hvidlistningen g??lder for matchende afsenderadresser; ellers, eller med " -"pr??fikset ??Til:??, p??virker den modtageradresser." +"hvidlistningen g??lder for matchende afsenderadresser; ellers, eller med pr??" +"fikset ??Til:??, p??virker den modtageradresser." #. Type: select #. Choices @@ -933,7 +1125,8 @@ #. Description #: ../clamav-milter.templates:17002 msgid "Please choose the action to perform on \"infected\" messages:" -msgstr "V??lg venligst handlingen der skal udf??res p?? ??inficerede?? beskeder:" +msgstr "" +"V??lg venligst handlingen der skal udf??res p?? ??inficerede?? beskeder:" #. Type: select #. Description @@ -971,9 +1164,9 @@ "data structures, no scanners available, network timeouts, unknown scanner " "replies...:" msgstr "" -"V??lg venligst handlingen der skal udf??res ved fejl s??som fejl ved tildeling " -"af datastrukturer, ingen skannere tilg??ngelige, netv??rkstidsudl??b, ukendte " -"skannersvar...:" +"V??lg venligst handlingen der skal udf??res ved fejl s??som fejl ved " +"tildeling af datastrukturer, ingen skannere tilg??ngelige, netv??rkstidsudl??" +"b, ukendte skannersvar...:" #. Type: select #. Description @@ -1053,9 +1246,9 @@ "headers will be attached to each processed message, possibly replacing " "existing similar headers." msgstr "" -"Hvis du v??lger denne indstilling vil teksthovederne ??X-Virus-Scanned?? og ??X-" -"Virus-Status?? blive tilf??jet til hver behandlet besked, og dermed h??jst " -"sandsynlig erstatte lignende eksisterende teksthoveder." +"Hvis du v??lger denne indstilling vil teksthovederne ??X-Virus-Scanned?? " +"og ??X-Virus-Status?? blive tilf??jet til hver behandlet besked, og dermed " +"h??jst sandsynlig erstatte lignende eksisterende teksthoveder." #. Type: string #. Description @@ -1093,8 +1286,8 @@ "running clamav-milter multiple times. This option disables log file locking." msgstr "" "Som standard er logfilen l??s for skrivning. L??sningen beskytter mod, at " -"clamav-milter kan k??re flere gange. Denne indstilling deaktiverer " -"logfill??sning." +"clamav-milter kan k??re flere gange. Denne indstilling deaktiverer logfill??" +"sning." #. Type: string #. Description @@ -1109,8 +1302,8 @@ "Please specify the maximum size for the log file. Using \"0\" will allow " "that file to grow indefinitely." msgstr "" -"Angiv venligst den maksimale st??rrelse for logfilen. Brug af ??0?? vil tillade " -"at filen vokser uendeligt." +"Angiv venligst den maksimale st??rrelse for logfilen. Brug af ??0?? vil " +"tillade at filen vokser uendeligt." #. Type: boolean #. Description @@ -1219,9 +1412,9 @@ " - Basic: minimal information;\n" " - Full : verbose information." msgstr "" -"V??lg venligst informationsniveauet som vil blive logget, n??r der ikke findes " -"en trussel i en skannet besked (dette er brugbart under fejls??gning men ??ger " -"dramatisk loggens st??rrelse):\n" +"V??lg venligst informationsniveauet som vil blive logget, n??r der ikke " +"findes en trussel i en skannet besked (dette er brugbart under fejls??gning " +"men ??ger dramatisk loggens st??rrelse):\n" " - Slukket: Ingen logning;\n" " - Basis: Minimal information;\n" " - Fuld: Uddybende information." @@ -1239,8 +1432,8 @@ "Please specify the maximum size for scanned messages. Messages bigger than " "this limit will not be scanned." msgstr "" -"Angiv venligst den maksimale st??rrelse for skannede beskeder. Beskeder " -"st??rre end denne begr??nsning vil ikke blive skannet." +"Angiv venligst den maksimale st??rrelse for skannede beskeder. Beskeder st??" +"rre end denne begr??nsning vil ikke blive skannet." #. Type: string #. Description @@ -1249,5 +1442,33 @@ "You should check that this value is lower than the value of \"StreamMaxLength" "\" in the clamd.conf file." msgstr "" -"Du b??r tjekke at denne v??rdi er mindre end v??rdien af ??StreamMaxLength?? i " -"clamd.conf-filen." +"Du b??r tjekke at denne v??rdi er mindre end v??rdien af ??StreamMaxLength?? " +"i clamd.conf-filen." + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/de.po clamav-0.98.1+dfsg/debian/po/de.po --- clamav-0.97.8+dfsg/debian/po/de.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/de.po 2014-03-17 22:40:58.000000000 +0000 @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: clamav_0.97.3+dfsg-4_de\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2011-12-12 22:14+0100\n" "Last-Translator: Thomas Müller \n" "Language-Team: German \n" @@ -235,6 +235,26 @@ "obwohl Ihre Datenbank aktuell ist. Benutzen Sie diese Einstellung nicht, " "falls Sie Clamd nicht einsetzen, weil dies Fehler hervorrufen würde." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -496,15 +516,180 @@ msgid "Do you want to log time information with each message?" msgstr "Sollen mit jeder Meldung auch Zeitangaben protokolliert werden?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Soll E-Mail-Überprüfung aktiviert werden?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Soll die Überprüfung von Archiven aktiviert werden?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Die Eingabe von »0« hebt die Begrenzung auf." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Soll E-Mail-Überprüfung aktiviert werden?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Maximale Dateigröße der Protokolldatei (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Maximale Dateigröße der Protokolldatei (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Maximale Dateigröße der Protokolldatei (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Maximale Dateigröße der Protokolldatei (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Zeitspanne in Sekunden zwischen Selbsttests des Daemons:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -517,13 +702,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Benutzername, unter dem der Clamav-Daemon laufen soll:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -539,19 +724,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Benutzergruppen für den ClamAV-Daemon (durch Leerzeichen getrennt):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Bitte geben Sie jede zusätzliche Gruppe für Clamd an." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -567,31 +752,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Wollen Sie Bytecode aus der Datenbank laden?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "TrustSigned" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoid" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Für den Bytecode anzuwendende Sicherheitsstufe:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -605,7 +790,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Timeout für die Ausführung von Bytecode (in Millisekunden):" @@ -1281,3 +1466,31 @@ msgstr "" "Sie sollten sicherstellen, dass dieser Wert kleiner als der Wert von " "»StreamMaxLength« in der Datei clamd.conf ist." + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/es.po clamav-0.98.1+dfsg/debian/po/es.po --- clamav-0.97.8+dfsg/debian/po/es.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/es.po 2014-03-17 22:40:58.000000000 +0000 @@ -36,7 +36,7 @@ msgstr "" "Project-Id-Version: clamav 0.96+dfsg-4\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2011-07-03 18:45+0200\n" "Last-Translator: Omar Campagne \n" "Language-Team: Debian Spanish \n" @@ -263,6 +263,26 @@ "datos esté al día. No utilice esta opción si no utiliza clamd, ya que si lo " "hace se producirán errores." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -522,15 +542,180 @@ msgid "Do you want to log time information with each message?" msgstr "¿Desea registrar información de la hora con cada mensaje?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "¿Desea activar el análisis del correo?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "¿Desea activar el análisis de archivos?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "El valor 0 inhabilita el límite de tamaño." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "¿Desea activar el análisis del correo?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Límite de tamaño del fichero de registro de actividades (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Límite de tamaño del fichero de registro de actividades (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Límite de tamaño del fichero de registro de actividades (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Límite de tamaño del fichero de registro de actividades (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Demora en segundos entre autocomprobaciones del demonio:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -543,13 +728,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Usuario con el que ejecutar clamav-daemon:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -565,19 +750,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Grupos a los que asignar clamav-daemon (separados por espacios):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Por favor, introduzca grupos adicionales para clamd." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -593,31 +778,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "¿Desea cargar bytecodes de la base de datos?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "TrustSigned" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoid" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Nivel de seguridad para el bytecode:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -634,7 +819,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Intervalo de ejecución del bytecode en milisegundos:" @@ -1306,12 +1491,36 @@ "Debería comprobar que este valor es menor que el valor de «StreamMaxLength» " "en el fichero «clamd.conf»." -#, fuzzy -#~ msgid "Set to a value of '0' to disable the timeout." -#~ msgstr "El valor 0 inhabilita el límite de tamaño." +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" #, fuzzy -#~ msgid "Value of 0 disables the limit." +#~ msgid "Set to a value of '0' to disable the timeout." #~ msgstr "El valor 0 inhabilita el límite de tamaño." #~ msgid "Do you want to enable RAR archive scanning?" diff -Nru clamav-0.97.8+dfsg/debian/po/eu.po clamav-0.98.1+dfsg/debian/po/eu.po --- clamav-0.97.8+dfsg/debian/po/eu.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/eu.po 2014-03-17 22:40:58.000000000 +0000 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: clamav-eu\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2008-09-24 11:03+0200\n" "Last-Translator: Piarres Beobide \n" "Language-Team: Euskara \n" @@ -224,6 +224,26 @@ "baten erasoaren aukera emanez. Ez erabili aukera hau ez baduzu clamd " "erabiltzen, horrela erabiltzeak erroreak sortzen ditu." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -345,11 +365,6 @@ #. Description #: ../clamav-base.templates:11001 #, fuzzy -#| msgid "" -#| "This option enables scanning mail contents for viruses. You need this " -#| "option enabled if you want to use clamav-milter. It is recommended that " -#| "you use a separate unpacker to extract any MIME parts of email messages " -#| "if you want to scan email." msgid "" "This option enables scanning mail contents for viruses. You need this option " "enabled if you want to use clamav-milter, or if you want to enable phishing " @@ -483,15 +498,180 @@ msgid "Do you want to log time information with each message?" msgstr "Mezu bakoitzarekin ordu informazioa erregistratzea nahi duzu?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Posta eskaneatzea gaitu nahi al duzu?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Artxibo eskaneatzea gaitu nahi al duzu?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "'0' ezarriaz gero muga hau ezgaituko da." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Posta eskaneatzea gaitu nahi al duzu?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Onartzen den gehienezko korronte tamaina (unitate Mb):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Onartzen den gehienezko korronte tamaina (unitate Mb):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Onartzen den gehienezko korronte tamaina (unitate Mb):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Onartzen den gehienezko korronte tamaina (unitate Mb):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Deabruaren auto-egiaztapenen arteko tartea segundutan:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -504,13 +684,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Clamav-deamon exekutatzeko erabiltzailea:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -525,19 +705,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Clamav-deamon taldeak (zuriunez bereizirik):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Mesedez idatzi clamd-rentzat talde gehiagarri bat." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -552,33 +732,32 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 #, fuzzy -#| msgid "Do you want to log time information with each message?" msgid "Do you want to load bytecode from the database?" msgstr "Mezu bakoitzarekin ordu informazioa erregistratzea nahi duzu?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -588,7 +767,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "" @@ -662,11 +841,6 @@ #. Description #: ../clamav-milter.templates:7001 #, fuzzy -#| msgid "" -#| "It is recommended to run the ClamAV programs as a non-privileged user. " -#| "This will work with most MTAs with a little tweaking, but if you want to " -#| "use clamd for filesystem scans, running as root is probably unavoidable. " -#| "Please see README.Debian in the clamav-base package for details." msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking." @@ -726,7 +900,6 @@ #. Description #: ../clamav-milter.templates:9001 #, fuzzy -#| msgid "Entering '0' will disable the timeout." msgid "Choosing \"0\" will disable this timeout." msgstr " '0' ezarriaz denboraz-kanpo muga desgaituko da." @@ -1077,7 +1250,6 @@ #. Description #: ../clamav-milter.templates:25001 #, fuzzy -#| msgid "Do you want to use the system logger?" msgid "Use system logger?" msgstr "Sistemako erregistroa erabili nahi al duzu?" @@ -1190,14 +1362,38 @@ "\" in the clamd.conf file." msgstr "" +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" + #, fuzzy #~ msgid "Set to a value of '0' to disable the timeout." #~ msgstr " '0' ezarriaz denboraz-kanpo muga desgaituko da." -#, fuzzy -#~ msgid "Value of 0 disables the limit." -#~ msgstr "'0' ezarriaz gero muga hau ezgaituko da." - #~ msgid "Do you want to enable RAR archive scanning?" #~ msgstr "RAR artxibo arakatzea gaitu nahi al duzu?" diff -Nru clamav-0.97.8+dfsg/debian/po/fi.po clamav-0.98.1+dfsg/debian/po/fi.po --- clamav-0.97.8+dfsg/debian/po/fi.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/fi.po 2014-03-17 22:40:58.000000000 +0000 @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: clamav\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2009-06-22 22:47+0300\n" "Last-Translator: Esko Arajärvi \n" "Language-Team: Finnish \n" @@ -220,6 +220,26 @@ "Älä valitse tätä, jos et käytä ohjelmaa clamd, koska silloin tämä tuottaisi " "virheitä." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -339,11 +359,6 @@ #. Description #: ../clamav-base.templates:11001 #, fuzzy -#| msgid "" -#| "This option enables scanning mail contents for viruses. You need this " -#| "option enabled if you want to use clamav-milter. It is recommended that " -#| "you use a separate unpacker to extract any MIME parts of email messages " -#| "if you want to scan email." msgid "" "This option enables scanning mail contents for viruses. You need this option " "enabled if you want to use clamav-milter, or if you want to enable phishing " @@ -480,15 +495,180 @@ msgid "Do you want to log time information with each message?" msgstr "Haluatko tallentaa aikatiedon jokaisen viestin yhteydessä?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Otetaanko käyttöön sähköpostien tutkinta?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Otetaanko käyttöön arkistojen tutkinta?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Asetus 0 poistaa tämän rajoituksen." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Otetaanko käyttöön sähköpostien tutkinta?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Lokitiedoston enimmäiskoko (Mt):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Lokitiedoston enimmäiskoko (Mt):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Lokitiedoston enimmäiskoko (Mt):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Lokitiedoston enimmäiskoko (Mt):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Taustaprosessin itsetarkistusten väli sekunneissa:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -501,13 +681,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Tunnus, jolla clamav-daemon ajetaan:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -522,19 +702,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Ohjelman clamav-daemon ryhmät (välilyönnein eroteltuina):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Anna mahdolliset clamdin lisäryhmät." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -548,33 +728,32 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 #, fuzzy -#| msgid "Do you want to log time information with each message?" msgid "Do you want to load bytecode from the database?" msgstr "Haluatko tallentaa aikatiedon jokaisen viestin yhteydessä?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -584,7 +763,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "" @@ -640,7 +819,6 @@ #. Description #: ../clamav-milter.templates:5001 #, fuzzy -#| msgid "Groups for clamav-milter (space-separated):" msgid "Group owner of clamav-milter local (UNIX) socket:" msgstr "Ohjelman clamav-milter ryhmät (välilyönnein eroteltuina):" @@ -770,9 +948,6 @@ #. Description #: ../clamav-milter.templates:13001 #, fuzzy -#| msgid "" -#| "Please specify the directory for clamav-milter's temporary files. If " -#| "unset, $TMPDIR and $TEMP will be honored." msgid "" "Please specify the directory for clamav-milter's files that are temporarily " "buffered for scanning. If unset, $TMPDIR and $TEMP will be honored." @@ -1059,9 +1234,6 @@ #. Description #: ../clamav-milter.templates:21001 #, fuzzy -#| msgid "" -#| "Specify the full path to the clamav-milter log file, which must be " -#| "writable for the clamav daemon." msgid "" "Specify the full path to the clamav-milter log file, which must be writable " "for the clamav daemon. Enter none to disable." @@ -1200,7 +1372,6 @@ #. Description #: ../clamav-milter.templates:29002 #, fuzzy -#| msgid "Information to log on infected messages:" msgid "Information to log if no threat is found:" msgstr "Saastuneista viesteistä lokiin kirjoitettavat tiedot:" @@ -1208,12 +1379,6 @@ #. Description #: ../clamav-milter.templates:29002 #, fuzzy -#| msgid "" -#| "Please choose the level of information that will be logged when infected " -#| "messages are found:\n" -#| " - Off : no logging;\n" -#| " - Basic: minimal information;\n" -#| " - Full : verbose information." msgid "" "Please choose the level of information that will be logged when no threat is " "found in a scanned message (this is useful in debugging but drastically " @@ -1253,3 +1418,31 @@ msgstr "" "Tarkista, että tämä arvo on pienempi kuin tiedostossa clamd.conf " "attribuutille ”StreamMaxLength” asetettu arvo." + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/fr.po clamav-0.98.1+dfsg/debian/po/fr.po --- clamav-0.97.8+dfsg/debian/po/fr.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/fr.po 2014-03-17 22:40:58.000000000 +0000 @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2010-06-14 19:37+0200\n" "Last-Translator: Florentin Duneau \n" "Language-Team: French \n" @@ -236,6 +236,26 @@ "base de données soit à jour. Ne choisissez pas cette option si vous " "n'utilisez pas clamd, car cela produirait des erreurs." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -498,15 +518,180 @@ msgid "Do you want to log time information with each message?" msgstr "Souhaitez-vous indiquer l'heure pour chaque entrée du journal ?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Faut-il activer la vérification du courriel ?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Souhaitez-vous activer la vérification des archives ?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Une valeur nulle désactivera cette limite." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Faut-il activer la vérification du courriel ?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Taille maximale (en Mo) du fichier de journal :" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Taille maximale (en Mo) du fichier de journal :" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Taille maximale (en Mo) du fichier de journal :" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Taille maximale (en Mo) du fichier de journal :" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Délai en secondes entre les auto-vérifications du démon :" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -519,13 +704,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Identifiant qui exécutera le démon :" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -542,20 +727,20 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Groupes de clamav-daemon (séparés par des espaces) :" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "" "Veuillez indiquer tous les groupes supplémentaires auxquels appartient clamd." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -570,7 +755,7 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "" "Faut-il charger le code intermédiaire (« bytecode ») depuis la base de " @@ -578,25 +763,25 @@ #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "Validation par signature électronique" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoïaque" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Niveau de sécurité à appliquer au code intermédiaire (« bytecode ») :" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -612,7 +797,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Délai d'attente (« timeout ») pour le code intermédiaire (ms) :" @@ -1286,3 +1471,31 @@ msgstr "" "Vous devez vérifier que cette valeur est inférieure à la valeur de " "« StreamMaxLength » du fichier de configuration clamd.conf." + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/gl.po clamav-0.98.1+dfsg/debian/po/gl.po --- clamav-0.97.8+dfsg/debian/po/gl.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/gl.po 2014-03-17 22:40:58.000000000 +0000 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: clamav\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2009-05-06 21:40+0200\n" "Last-Translator: marce villarino \n" "Language-Team: Galician \n" @@ -227,6 +227,26 @@ "risco de que un novo virus pase as comprobacións incluso se a base de datos " "está actualizada. Non a escolla se non usa clamd, xa que ha producir erros." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -345,11 +365,6 @@ #. Description #: ../clamav-base.templates:11001 #, fuzzy -#| msgid "" -#| "This option enables scanning mail contents for viruses. You need this " -#| "option enabled if you want to use clamav-milter. It is recommended that " -#| "you use a separate unpacker to extract any MIME parts of email messages " -#| "if you want to scan email." msgid "" "This option enables scanning mail contents for viruses. You need this option " "enabled if you want to use clamav-milter, or if you want to enable phishing " @@ -488,15 +503,180 @@ msgid "Do you want to log time information with each message?" msgstr "Desexa rexistrar a hora con cada mensaxe?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Desexa activar o exame do correo?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Desexa activar o exame de arquivos?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Se introduce \"0\" o límite ha quedar desactivado." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Desexa activar o exame do correo?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Tamaño máximo do ficheiro de rexistro (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Tamaño máximo do ficheiro de rexistro (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Tamaño máximo do ficheiro de rexistro (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Tamaño máximo do ficheiro de rexistro (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Retardo en segundos entre as comprobacións automáticas do servizo:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -508,13 +688,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Usuario co que executar clamav-daemon:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -529,19 +709,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Grupos para clamav-daemon (separados por espazos):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Introduza os grupos extra para clamd, se hai algún." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -556,33 +736,32 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 #, fuzzy -#| msgid "Do you want to log time information with each message?" msgid "Do you want to load bytecode from the database?" msgstr "Desexa rexistrar a hora con cada mensaxe?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -592,7 +771,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "" @@ -648,7 +827,6 @@ #. Description #: ../clamav-milter.templates:5001 #, fuzzy -#| msgid "Groups for clamav-milter (space-separated):" msgid "Group owner of clamav-milter local (UNIX) socket:" msgstr "Grupos para clamav-milter (separados por espazos):" @@ -779,9 +957,6 @@ #. Description #: ../clamav-milter.templates:13001 #, fuzzy -#| msgid "" -#| "Please specify the directory for clamav-milter's temporary files. If " -#| "unset, $TMPDIR and $TEMP will be honored." msgid "" "Please specify the directory for clamav-milter's files that are temporarily " "buffered for scanning. If unset, $TMPDIR and $TEMP will be honored." @@ -1069,9 +1244,6 @@ #. Description #: ../clamav-milter.templates:21001 #, fuzzy -#| msgid "" -#| "Specify the full path to the clamav-milter log file, which must be " -#| "writable for the clamav daemon." msgid "" "Specify the full path to the clamav-milter log file, which must be writable " "for the clamav daemon. Enter none to disable." @@ -1213,7 +1385,6 @@ #. Description #: ../clamav-milter.templates:29002 #, fuzzy -#| msgid "Information to log on infected messages:" msgid "Information to log if no threat is found:" msgstr "Información a rexistrar ao aparecer mensaxes infectadas:" @@ -1221,12 +1392,6 @@ #. Description #: ../clamav-milter.templates:29002 #, fuzzy -#| msgid "" -#| "Please choose the level of information that will be logged when infected " -#| "messages are found:\n" -#| " - Off : no logging;\n" -#| " - Basic: minimal information;\n" -#| " - Full : verbose information." msgid "" "Please choose the level of information that will be logged when no threat is " "found in a scanned message (this is useful in debugging but drastically " @@ -1267,14 +1432,38 @@ "Debería verificar que este valor é menor que o de «StreamMaxLength» no " "ficheiro clamd.conf." +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" + #, fuzzy #~ msgid "Set to a value of '0' to disable the timeout." #~ msgstr "Se introduce \"0\" hase desactivar o límite de tempo." -#, fuzzy -#~ msgid "Value of 0 disables the limit." -#~ msgstr "Se introduce \"0\" o límite ha quedar desactivado." - #~ msgid "Do you want to enable RAR archive scanning?" #~ msgstr "¿Quere activar a exploración de arquivos RAR?" diff -Nru clamav-0.97.8+dfsg/debian/po/it.po clamav-0.98.1+dfsg/debian/po/it.po --- clamav-0.97.8+dfsg/debian/po/it.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/it.po 2014-03-17 22:40:58.000000000 +0000 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: clamav 0.96.1+dfsg-3 \n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2011-02-19 15:31+0100\n" "Last-Translator: Luca Monducci \n" "Language-Team: Italian \n" @@ -227,6 +227,26 @@ "aggiornato. Non abilitare questa opzione se non si usa clamd, altrimenti si " "verificheranno degli errori." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -481,15 +501,180 @@ msgid "Do you want to log time information with each message?" msgstr "Registrare anche l'orario nei messaggi di log?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Attivare l'analisi delle email?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Attivare la scansione degli archivi?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Il valore \"0\" disabilita questo limite." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Attivare l'analisi delle email?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Dimensione massima del file di log (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Dimensione massima del file di log (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Dimensione massima del file di log (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Dimensione massima del file di log (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Ritardo in secondi tra i controlli automatici del demone (SelfCheck):" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -501,13 +686,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Utente che deve eseguire clamav-daemon:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -523,19 +708,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Gruppi per clamav-daemon (separati da spazi):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Inserire eventuali gruppi aggiuntivi per clamd." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -550,31 +735,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Caricare il bytecode dal database?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "TrustSigned" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoico" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Livello di sicurezza da applicare al bytecode:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -589,7 +774,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Tempo massimo di esecuzione del bytecode in millisecondi:" @@ -1253,3 +1438,31 @@ msgstr "" "Assicurarsi che questo valore sia inferiore al valore di \"StreamMaxLength\" " "nel file clamd.conf" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/ja.po clamav-0.98.1+dfsg/debian/po/ja.po --- clamav-0.97.8+dfsg/debian/po/ja.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/ja.po 2014-03-17 22:40:58.000000000 +0000 @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: clamav\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2012-02-15 22:59+0900\n" "Last-Translator: Kenshi Muto \n" "Language-Team: Japanese \n" @@ -219,6 +219,26 @@ "新であっても、新しいウイルスがすり抜けてくるというリスクを抱えます。エラーが" "発生するため、clamd を使うのでない場合は、この選択肢を選ばないでください。" +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -470,15 +490,180 @@ msgid "Do you want to log time information with each message?" msgstr "各メッセージに時間情報を記録しますか?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "メール走査を有効にしますか?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "アーカイブの走査を有効にしますか?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "'0' を入力すると、制限が無効になります。" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "メール走査を有効にしますか?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "ログファイルの最大サイズ (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "ログファイルの最大サイズ (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "ログファイルの最大サイズ (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "ログファイルの最大サイズ (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "デーモンのセルフチェックのあいだの遅延秒数:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -490,13 +675,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "clamav-daemon を実行するユーザ:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -510,19 +695,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "clamav-daemon のグループ (スペースで区切る):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "clamd のその他のグループを入力してください。" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -536,31 +721,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "バイトコードをデータベースから読み込みますか?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "TrustSigned" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoid" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "バイトコードに適用するセキュリティレベル:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -575,7 +760,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "バイトコード実行のタイムアウト時間、単位ミリ秒:" @@ -1228,3 +1413,31 @@ msgstr "" "この値が clamd.conf ファイルの \"StreamMaxLength\" 値よりも低いことを確認して" "ください。" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/nl.po clamav-0.98.1+dfsg/debian/po/nl.po --- clamav-0.97.8+dfsg/debian/po/nl.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/nl.po 2014-03-17 22:40:58.000000000 +0000 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: clamav 0.97.3+dfsg-2\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2011-12-08 12:17+0100\n" "Last-Translator: Jeroen Schot \n" "Language-Team: Debian l10n Dutch \n" @@ -232,6 +232,26 @@ "deze instelling aanzet zonder dat u clamd gebruikt, dan zal dit fouten " "opleveren." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -495,15 +515,180 @@ msgid "Do you want to log time information with each message?" msgstr "Wilt u bij elk bericht de tijd loggen?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Wilt u dat e-mailberichten gecontroleerd worden?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Wilt u het scannen van archieven aanzetten?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "De waarde 0 betekent ongelimiteerd." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Wilt u dat e-mailberichten gecontroleerd worden?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Maximale logbestandsgrootte (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Maximale logbestandsgrootte (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Maximale logbestandsgrootte (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Maximale logbestandsgrootte (in MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Vertraging in seconden tussen achtergronddienst-zelfcontroles:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -516,13 +701,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Gebruiker als welke clamav-daemon draait:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -538,19 +723,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Groepen voor clamav-daemon (gescheiden door spaties):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Aan welke extra groepen wilt u clamd toevoegen?" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -565,31 +750,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Wilt u bytecode van de database laden?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "VertrouwOndertekend" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoïde" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Veiligheidsniveau dat op bytecode moet worden toegepast:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -604,7 +789,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Verlooptijd voor uitvoering van bytecode in milliseconden:" @@ -1276,3 +1461,31 @@ msgstr "" "Het wordt aangeraden te controleren dat deze waarde lager is dan de waarde " "van \"StreamMaxLength\" in het clamd.conf bestand." + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/pl.po clamav-0.98.1+dfsg/debian/po/pl.po --- clamav-0.97.8+dfsg/debian/po/pl.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/pl.po 2014-03-17 22:40:58.000000000 +0000 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2012-02-10 16:25+0100\n" "Last-Translator: Michał Kułach \n" "Language-Team: Polish \n" @@ -226,6 +226,26 @@ "Jeśli clamd nie jest używany należy nie wybierać tej opcji, w przeciwnym " "wypadku pojawią się błędy." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -483,15 +503,180 @@ msgid "Do you want to log time information with each message?" msgstr "Zapisywać czas przy każdej informacji w logu?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Włączyć skanowanie poczty elektronicznej?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Włączyć skanowanie archiwów?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Wpisanie \"0\" wyłączy ten limit." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Włączyć skanowanie poczty elektronicznej?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Maksymalny rozmiar pliku dziennika (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Maksymalny rozmiar pliku dziennika (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Maksymalny rozmiar pliku dziennika (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Maksymalny rozmiar pliku dziennika (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Opóźnienie (w sekundach) pomiędzy sprawdzeniami demona:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -503,13 +688,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Użytkownik uruchamiający clamav-daemon:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -525,19 +710,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Grupy clamav-daemon (oddzielone spacjami):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Proszę podać wszystkie dodatkowe grupy dla clamd." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -552,31 +737,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Ładować kod bajtowy z bazy danych?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "Ufaj podpis." #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoiczny" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Poziom bezpieczeństwa dla kodu bajtowego:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -590,7 +775,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Czas oczekiwania na wykonanie kodu bajtowego (w milisekundach):" @@ -1259,3 +1444,31 @@ msgstr "" "Proszę sprawdzić, czy wartość ta jest niższa niż wartość \"StreamMaxLength\" " "w pliku clamd.conf." + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/pt_BR.po clamav-0.98.1+dfsg/debian/po/pt_BR.po --- clamav-0.97.8+dfsg/debian/po/pt_BR.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/pt_BR.po 2014-03-17 22:40:58.000000000 +0000 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: clamav\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2007-10-06 14:39-0300\n" "Last-Translator: Felipe Augusto van de Wiel (faw) \n" "Language-Team: l10n portuguese \n" @@ -230,6 +230,26 @@ "que sua base de dados esteja atualizada. Não utilize esta opção se você não " "usa o clamd, pois a mesma produzirá erros." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -349,11 +369,6 @@ #. Description #: ../clamav-base.templates:11001 #, fuzzy -#| msgid "" -#| "This option enables scanning mail contents for viruses. You need this " -#| "option enabled if you want to use clamav-milter. It is recommended that " -#| "you use a separate unpacker to extract any MIME parts of email messages " -#| "if you want to scan email." msgid "" "This option enables scanning mail contents for viruses. You need this option " "enabled if you want to use clamav-milter, or if you want to enable phishing " @@ -493,15 +508,180 @@ msgid "Do you want to log time information with each message?" msgstr "Deseja fazer o log de informações de horas com cada mensagem?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Deseja habilitar a varredura de e-mails?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Deseja habilitar a varredura em arquivos que contêm outros arquivos?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "O valor 0 (zero) desabilita o limite de tamanho." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Deseja habilitar a varredura de e-mails?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Tamamho máximo de \"stream\" permitido (unidade Mb):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Tamamho máximo de \"stream\" permitido (unidade Mb):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Tamamho máximo de \"stream\" permitido (unidade Mb):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Tamamho máximo de \"stream\" permitido (unidade Mb):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Atraso em segundos entre as checagens do próprio daemon:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -514,13 +694,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Usuário para executar o clamav-daemon:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -535,19 +715,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Grupos para o clamav-daemon (separados por espaço):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Por favor, informe quaisquer grupos extras para o clamd." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -562,33 +742,32 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 #, fuzzy -#| msgid "Do you want to save streams to disk?" msgid "Do you want to load bytecode from the database?" msgstr "Deseja salvar streams em disco ?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -598,7 +777,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "" @@ -672,11 +851,6 @@ #. Description #: ../clamav-milter.templates:7001 #, fuzzy -#| msgid "" -#| "It is recommended to run the ClamAV programs as a non-privileged user. " -#| "This will work with most MTAs with a little tweaking, but if you want to " -#| "use clamd for filesystem scans, running as root is probably unavoidable. " -#| "Please see README.Debian in the clamav-base package for details." msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking." @@ -736,7 +910,6 @@ #. Description #: ../clamav-milter.templates:9001 #, fuzzy -#| msgid "Entering '0' will disable the timeout." msgid "Choosing \"0\" will disable this timeout." msgstr "Informar '0' desabilitará o limite de tempo." @@ -997,7 +1170,6 @@ #. Choices #: ../clamav-milter.templates:20001 #, fuzzy -#| msgid "Yes, No" msgid "Yes" msgstr "Sim, Não" @@ -1089,7 +1261,6 @@ #. Description #: ../clamav-milter.templates:25001 #, fuzzy -#| msgid "Do you want to use the system logger?" msgid "Use system logger?" msgstr "Deseja usar o registrador de logs do sistema?" @@ -1202,12 +1373,36 @@ "\" in the clamd.conf file." msgstr "" -#, fuzzy -#~ msgid "Set to a value of '0' to disable the timeout." -#~ msgstr "O valor 0 (zero) desabilita o limite de tamanho." +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" #, fuzzy -#~ msgid "Value of 0 disables the limit." +#~ msgid "Set to a value of '0' to disable the timeout." #~ msgstr "O valor 0 (zero) desabilita o limite de tamanho." #~ msgid "Do you want to enable RAR archive scanning?" diff -Nru clamav-0.97.8+dfsg/debian/po/pt.po clamav-0.98.1+dfsg/debian/po/pt.po --- clamav-0.97.8+dfsg/debian/po/pt.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/pt.po 2014-03-17 22:40:59.000000000 +0000 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: clamav 0.97+dfsg-1\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2011-06-19 07:34+0100\n" "Last-Translator: Américo Monteiro \n" "Language-Team: Portuguese \n" @@ -226,6 +226,26 @@ "sua base de dados esteja actualizada. Não use isto se não usar o clamd, " "porque vai produzir erros." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -479,15 +499,180 @@ msgid "Do you want to log time information with each message?" msgstr "Quer registar informação temporal em cada mensagem?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Quer activar a inspecção ao correio electrónico (mail)?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Quer activar a inspecção de arquivos?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Definir '0' desactiva este limite." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Quer activar a inspecção ao correio electrónico (mail)?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Tamanho máximo do ficheiro de relatório (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Tamanho máximo do ficheiro de relatório (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Tamanho máximo do ficheiro de relatório (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Tamanho máximo do ficheiro de relatório (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Espera em segundos entre auto-testes do 'daemon':" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -500,13 +685,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Utilizador a utilizar para correr o clamav-daemon:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -521,19 +706,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Grupos para o clamav-daemon (separados por espaços):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Por favor indique quaisquer grupos extra para o clamd." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -548,31 +733,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Deseja carregar bytecode a partir da base de dados?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "TrustSigned" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranóia" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Nível de segurança a aplicar ao bytecode:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -587,7 +772,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Limite de tempo de execução do bytecode em milissegundos:" @@ -1253,3 +1438,31 @@ msgstr "" "Você deve verificar que este valor é inferior ao valor de \"StreamMaxLength" "\" no ficheiro clamd.conf." + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/ru.po clamav-0.98.1+dfsg/debian/po/ru.po --- clamav-0.97.8+dfsg/debian/po/ru.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/ru.po 2014-03-17 22:40:58.000000000 +0000 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: clamav 0.97.1+dfsg-1\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2011-07-23 09:03+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" @@ -228,6 +228,26 @@ "риск, что новый вирус сможет проскользнуть, хотя ваша база будет свежей. Не " "используйте, если вы не пользуетесь clamd, потому что это создаст ошибки." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -481,15 +501,180 @@ msgid "Do you want to log time information with each message?" msgstr "Протоколировать информацию о времени с каждым сообщением?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Разрешить сканирование почты?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Разрешить сканирование архивов?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Значение '0' отключает это ограничение." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Разрешить сканирование почты?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Максимальный размер файла протокола (МБ):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Максимальный размер файла протокола (МБ):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Максимальный размер файла протокола (МБ):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Максимальный размер файла протокола (МБ):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Задержка в секундах между самопроверками службы:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -501,13 +686,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "С правами какого пользователя запускать clamav-daemon:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -522,19 +707,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Группы для clamav-daemon (через пробел):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Введите дополнительные группы для clamd." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -549,31 +734,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Загружать байт-код из базы данных?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "ДоверятьПодписанным" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Параноидальный" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Уровень безопасности, применяемый к байт-коду:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -588,7 +773,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Задержка выполнения байт-кода в миллисекундах:" @@ -1245,3 +1430,31 @@ msgstr "" "Убедитесь, что это значение меньше, чем значение \"StreamMaxLength\" в clamd." "conf" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/sv.po clamav-0.98.1+dfsg/debian/po/sv.po --- clamav-0.97.8+dfsg/debian/po/sv.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/sv.po 2014-03-17 22:40:58.000000000 +0000 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: clamav_0.93~dfsg-1_sv\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2011-06-29 22:37+0100\n" "Last-Translator: Martin Bagge / brother \n" "Language-Team: Swedish \n" @@ -225,6 +225,26 @@ "Använd inte detta om du inte använder clamd eftersom den kommer att " "producera felmeddelanden." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -476,15 +496,180 @@ msgid "Do you want to log time information with each message?" msgstr "Vill du logga tidsinformation med varje meddelande?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Vill du aktivera skanning av e-post?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Vill du aktivera skanning av arkiv?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Värdet 0 stänger av storleksbegränsningen." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Vill du aktivera skanning av e-post?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Maximal storlek på loggfil (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Maximal storlek på loggfil (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Maximal storlek på loggfil (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Maximal storlek på loggfil (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Fördröjning i sekunder mellan daemonens självkontroller:" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -496,13 +681,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Vilken användare vill du ska köra clamav-daemonen som?" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -516,19 +701,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Grupper för clamav-daemon (separera med mellanslag):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Ange de extra grupper som clamd ska ingå i." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -542,31 +727,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Ska bytekod laddas från databasen?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "TrustSigned" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Paranoid" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Säkerthetsnivå för bytekoden:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -580,7 +765,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Maximal tid i millisekunder vid exekvering av bytekod:" @@ -1240,6 +1425,34 @@ "Du bör säkerställa att detta värde är lägre än värdet för \"StreamMaxlength" "\" i filen clamd.conf." +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" + #~ msgid "Define the interface through to communicate with sendmail:" #~ msgstr "Definiera gränssnitt som ska kommunicera med sendmail:" diff -Nru clamav-0.97.8+dfsg/debian/po/templates.pot clamav-0.98.1+dfsg/debian/po/templates.pot --- clamav-0.97.8+dfsg/debian/po/templates.pot 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/templates.pot 2014-03-17 22:40:42.000000000 +0000 @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" +"Project-Id-Version: clamav\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -188,6 +188,26 @@ "use this if you do not use clamd, as it will produce errors." msgstr "" +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -418,15 +438,172 @@ msgid "Do you want to log time information with each message?" msgstr "" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +msgid "Do you want to enable log rotation?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +msgid "Do you want to enable on-access scanning?" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "A value of 0 disables the limit." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "Do you want to enable scanning within SWF files?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "Maximum size of a file to check for embedded PE:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "Maximum size of a HTML file to normalize:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "Maximum size of a script file to normalize:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -435,13 +612,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -451,19 +628,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -473,31 +650,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -507,7 +684,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "" @@ -1074,3 +1251,31 @@ "You should check that this value is lower than the value of \"StreamMaxLength" "\" in the clamd.conf file." msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/po/vi.po clamav-0.98.1+dfsg/debian/po/vi.po --- clamav-0.97.8+dfsg/debian/po/vi.po 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/po/vi.po 2014-03-17 22:40:58.000000000 +0000 @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: clamav 0.96.3+dfsg-2\n" "Report-Msgid-Bugs-To: clamav@packages.debian.org\n" -"POT-Creation-Date: 2011-10-24 07:48+0000\n" +"POT-Creation-Date: 2014-03-16 20:46+0100\n" "PO-Revision-Date: 2010-10-27 16:18+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" @@ -224,6 +224,26 @@ "nhập mặc dù cơ sở dữ liệu vẫn còn hiện thời. Đừng bật tuỳ chọn này nếu bạn " "không sử dụng clamd, vì nó sẽ gây ra lỗi." +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "Private mirror for freshclam:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-freshclam.templates:9001 +msgid "" +"This option allows you to easily point freshclam to private mirrors. If " +"PrivateMirror is set, freshclam does not attempt to use DNS to determine " +"whether its databases are out-of-date, instead it will use the If-Modified-" +"Since request or directly check the headers of the remote database files. " +"For each database, freshclam first attempts to download the CLD file. If " +"that fails, it tries to download the CVD file. This option overrides " +"DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple " +"times to provide fall-back mirrors." +msgstr "" + #. Type: boolean #. Description #: ../clamav-base.templates:2001 ../clamav-milter.templates:2001 @@ -477,15 +497,180 @@ msgid "Do you want to log time information with each message?" msgstr "Muốn ghi lưu thông tin thời gian cùng với mỗi thông điệp ?" -#. Type: string +#. Type: boolean #. Description #: ../clamav-base.templates:23001 +#, fuzzy +msgid "Do you want to enable log rotation?" +msgstr "Muốn hiệu lực quét thư?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:24001 +#, fuzzy +msgid "Do you want to enable on-access scanning?" +msgstr "Muốn hiệu lực quét kho nén ?" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +msgid "Maximum file size to scan:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:25001 +#, fuzzy +msgid "A value of 0 disables the limit." +msgstr "Gõ giá trị « 0 » thì tắt sự hạn chế này." + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "Do you want to permit the use of the ALLMATCHSCAN command?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:26001 +msgid "If set to no, clamd will reject any ALLMATCHSCAN command as invalid." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "Do you want memory or nested map scans to dump the content to disk?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:27001 +msgid "" +"If you turn on this option, more data is written to disk and is available " +"when the LeaveTemporaryFiles option is enabled." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "Do you want to completely turn off authenticode verification?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:28001 +msgid "" +"Certain PE files contain an authenticode signature. By default, we check the " +"signature chain in the PE file against a database of trusted and revoked " +"certificates if the file being scanned is marked as a virus. If any " +"certificate in the chain validates against any trusted root, but does not " +"match any revoked certificate, the file is marked as whitelisted. If the " +"file does match a revoked certificate, the file is marked as virus." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +#, fuzzy +msgid "Do you want to enable scanning within SWF files?" +msgstr "Muốn hiệu lực quét thư?" + +#. Type: boolean +#. Description +#: ../clamav-base.templates:29001 +msgid "" +"If you turn off this option, the original files will still be scanned, but " +"without decoding and additional processing." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +#, fuzzy +msgid "Maximum size of a file to check for embedded PE:" +msgstr "Kích cỡ tối đa của tập tin ghi lưu (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:30001 +msgid "" +"Files larger than this value will skip the additional analysis step. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +#, fuzzy +msgid "Maximum size of a HTML file to normalize:" +msgstr "Kích cỡ tối đa của tập tin ghi lưu (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:31001 +msgid "" +"HTML files larger than this value will not be normalized or scanned. Note: " +"disabling this limit or setting it too high may result in severe damage to " +"the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +#, fuzzy +msgid "Maximum size of a normalized HTML file to scan:" +msgstr "Kích cỡ tối đa của tập tin ghi lưu (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:32001 +msgid "" +"HTML files larger than this value after normalization will not be scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +#, fuzzy +msgid "Maximum size of a script file to normalize:" +msgstr "Kích cỡ tối đa của tập tin ghi lưu (MB):" + +#. Type: string +#. Description +#: ../clamav-base.templates:33001 +msgid "" +"Script content larger than this value will not be normalized or scanned. " +"Note: disabling this limit or setting it too high may result in severe " +"damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "Maximum size of a ZIP file to reanalyze type recognition:" +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:34001 +msgid "" +"ZIP files larger than this value will skip the step to potentially reanalyze " +"as PE. Note: disabling this limit or setting it too high may result in " +"severe damage to the system." +msgstr "" + +#. Type: string +#. Description +#: ../clamav-base.templates:35001 msgid "Delay in seconds between daemon self checks:" msgstr "Thời gian giữa hai lần trình nền tự kiểm tra (giây):" #. Type: string #. Description -#: ../clamav-base.templates:23001 +#: ../clamav-base.templates:35001 msgid "" "During the SelfCheck the daemon checks if it needs to reload the virus " "database. It also tries to repair problems caused by bugs in the daemon, " @@ -498,13 +683,13 @@ #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "User to run clamav-daemon as:" msgstr "Người dùng dưới họ cần chạy clamav-daemon:" #. Type: string #. Description -#: ../clamav-base.templates:24001 +#: ../clamav-base.templates:36001 msgid "" "It is recommended to run the ClamAV programs as a non-privileged user. This " "will work with most MTAs with a little tweaking, but if you want to use " @@ -519,19 +704,19 @@ #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Groups for clamav-daemon (space-separated):" msgstr "Các nhóm cho trình nền clamav-daemon (định giới bằng dấu cách):" #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "Please enter any extra groups for clamd." msgstr "Hãy gõ nhóm bổ sung nào cho trình nền clamd." #. Type: string #. Description -#: ../clamav-base.templates:25001 +#: ../clamav-base.templates:37001 msgid "" "By default, clamd runs as a non-privileged user. If you need clamd to be " "able to access files owned by another user (e.g., in combination with an " @@ -546,31 +731,31 @@ #. Type: boolean #. Description -#: ../clamav-base.templates:26001 +#: ../clamav-base.templates:38001 msgid "Do you want to load bytecode from the database?" msgstr "Muốn nạp mã byte từ cơ sở dữ liệu ?" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "TrustSigned" msgstr "Tin cậy chữ ký" #. Type: select #. Choices -#: ../clamav-base.templates:27001 +#: ../clamav-base.templates:39001 msgid "Paranoid" msgstr "Rất cẩn thận" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "Security level to apply to the bytecode:" msgstr "Cấp bảo mật cần áp dụng cho mã byte:" #. Type: select #. Description -#: ../clamav-base.templates:27002 +#: ../clamav-base.templates:39002 msgid "" " - TrustSigned : trust bytecode loaded from signed virus database files,\n" " but insert runtime safety checks for bytecode loaded\n" @@ -585,7 +770,7 @@ #. Type: string #. Description -#: ../clamav-base.templates:28001 +#: ../clamav-base.templates:40001 msgid "Bytecode execution timeout in milliseconds:" msgstr "Thời hạn thực hiện mã byte (theo mili-giây):" @@ -775,9 +960,6 @@ #. Description #: ../clamav-milter.templates:13001 #, fuzzy -#| msgid "" -#| "Please specify the directory for clamav-milter's temporary files. If " -#| "unset, $TMPDIR and $TEMP will be honored." msgid "" "Please specify the directory for clamav-milter's files that are temporarily " "buffered for scanning. If unset, $TMPDIR and $TEMP will be honored." @@ -1208,7 +1390,6 @@ #. Description #: ../clamav-milter.templates:29002 #, fuzzy -#| msgid "Information to log on infected messages:" msgid "Information to log if no threat is found:" msgstr "Thông tin cần ghi lưu về thư bị nhiễm độc:" @@ -1216,12 +1397,6 @@ #. Description #: ../clamav-milter.templates:29002 #, fuzzy -#| msgid "" -#| "Please choose the level of information that will be logged when infected " -#| "messages are found:\n" -#| " - Off : no logging;\n" -#| " - Basic: minimal information;\n" -#| " - Full : verbose information." msgid "" "Please choose the level of information that will be logged when no threat is " "found in a scanned message (this is useful in debugging but drastically " @@ -1261,3 +1436,31 @@ "Bạn nên kiểm tra lại giá trị này vẫn còn nhỏ hơn giá trị của « " "StreamMaxLength » (chiều dài luồng tối đa) trong tập tin cấu hình « clamd." "conf »." + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "Do you want clamav-milter to support multiple recipients?" +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"This option affects the behaviour of LogInfected, LogClean and VirusAction " +"when a message with multiple recipients is scanned: If " +"SupportMultipleRecipients is off (the default) then one single log entry is " +"generated for the message and, in case the message is determined to be " +"malicious, the command indicated by VirusAction is executed just once. In " +"both cases only the last recipient is reported. If SupportMultipleRecipients " +"is on: then one line is logged for each recipient and the command indicated " +"by VirusAction is also executed once for each recipient." +msgstr "" + +#. Type: boolean +#. Description +#: ../clamav-milter.templates:31001 +msgid "" +"Note: although it's probably a good idea to enable this option, the default " +"value is currently set to off for legacy reasons." +msgstr "" diff -Nru clamav-0.97.8+dfsg/debian/rules clamav-0.98.1+dfsg/debian/rules --- clamav-0.97.8+dfsg/debian/rules 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/rules 2014-03-19 13:01:48.000000000 +0000 @@ -5,6 +5,9 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +export AUTOMAKE = automake-1.11 +export ACLOCAL = aclocal-1.11 + # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) @@ -36,28 +39,34 @@ endif endif +# LLVM doesn't work on these archs, so no point in breaking the build over it. +ifneq (,$(filter $(DEB_HOST_ARCH), hurd-i386 ppc64 powerpcspe ppc64el)) + export enable_llvm=no +endif + config.status: configure dh_testdir - egrep '^#[[:alpha:]]' etc/clamd.conf | sed -e 's/^#//' | awk '{print $$1}' | while read opt; do \ + egrep '^#[[:alpha:]]' etc/clamd.conf.sample | sed -e 's/^#//' | awk '{print $$1}' | while read opt; do \ if ! grep -q "$${opt}" debian/clamav-base.postinst.in ; then \ echo "Unhandled option(clamd.conf): $${opt}"; \ exit 1; \ fi;\ done; - egrep '^#[[:alpha:]]' etc/freshclam.conf | sed -e 's/^#//' | awk '{print $$1}' | while read opt; do \ + egrep '^#[[:alpha:]]' etc/freshclam.conf.sample | sed -e 's/^#//' | awk '{print $$1}' | while read opt; do \ if ! grep -q "$${opt}" debian/clamav-freshclam.postinst.in ; then \ echo "Unhandled option (freshclam.conf): $${opt}"; \ exit 1; \ fi;\ done; - egrep '^#[[:alpha:]]' etc/clamav-milter.conf | sed -e 's/^#//' | awk '{print $$1}' | while read opt; do \ + egrep '^#[[:alpha:]]' etc/clamav-milter.conf.sample | sed -e 's/^#//' | awk '{print $$1}' | while read opt; do \ if ! grep -q "$${opt}" debian/clamav-milter.postinst.in ; then \ echo "Unhandled option (clamav-milter.conf): $${opt}"; \ exit 1; \ fi;\ done; # Add here commands to configure the package. - ./configure CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-clamav --with-dbdir=/var/lib/clamav/ --sysconfdir=/etc/clamav --enable-milter --disable-clamuko --with-gnu-ld --enable-dns-fix ${DEBUG_OPTS} --disable-unrar --libdir=\$${prefix}/lib --with-system-tommath --without-included-ltdl + dh_autoreconf + ./configure CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-clamav --with-dbdir=/var/lib/clamav --sysconfdir=/etc/clamav --enable-milter --disable-clamuko --with-gnu-ld --enable-dns-fix ${DEBUG_OPTS} --disable-unrar --libdir=\$${prefix}/lib --with-system-tommath --without-included-ltdl build: build-stamp build-stamp: build-arch build-indep @@ -125,6 +134,7 @@ rm -f debian/clamav-freshclam.config rm -f debian/clamav-freshclam.postinst rm -f libclamav/c++/llvm/utils/lit/lit/*.pyc + dh_autoreconf_clean dh_clean install: install-indep install-arch diff -Nru clamav-0.97.8+dfsg/debian/source/format clamav-0.98.1+dfsg/debian/source/format --- clamav-0.97.8+dfsg/debian/source/format 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/source/format 2014-03-17 22:40:42.000000000 +0000 @@ -1 +1 @@ -1.0 +3.0 (quilt) diff -Nru clamav-0.97.8+dfsg/debian/source/lintian-overrides clamav-0.98.1+dfsg/debian/source/lintian-overrides --- clamav-0.97.8+dfsg/debian/source/lintian-overrides 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/source/lintian-overrides 2014-03-12 19:46:15.000000000 +0000 @@ -0,0 +1,3 @@ +# The new location for the upstream signing key is upstream/signing-key.{asc,pgp}, but lintian is not yet updated. +# See: https://bugs.debian.org/738597 +clamav source: debian-watch-file-pubkey-file-is-missing diff -Nru clamav-0.97.8+dfsg/debian/split-tarball.sh clamav-0.98.1+dfsg/debian/split-tarball.sh --- clamav-0.97.8+dfsg/debian/split-tarball.sh 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/split-tarball.sh 2014-03-17 22:40:42.000000000 +0000 @@ -0,0 +1,156 @@ +#!/bin/bash +# Split an upstream tarball into +dfsg, and libclamunrar. +if test $# -ne 2; then + echo -e "Usage: $0 \n\t - directory that contains clamav-.tar.gz"; + exit 1; +fi + +DIR=$1 +VERS=$2 + +test -d $DIR || { echo "Directory $DIR doesn't exist"; exit 2; } +TARBALL="$PWD/$DIR/clamav-$VERS.tar.gz" +test -f $TARBALL || { echo "Tarball $TARBALL doesn't exist"; exit 3; } + +TEMP=`mktemp -d __splitXXXXXX` || { echo "Cannot create temporary directory"; exit 2; } +echo "Temporary directory is $TEMP" +cd $TEMP || exit 3; +echo "Extracting $TARBALL"; +tar -xzf $TARBALL || { echo "Failed to extract $TARBALL"; exit 4; } + +UNRARPKG=libclamunrar_$VERS.orig.tar.gz +DFSGPKG=clamav_$VERS+dfsg.orig.tar.gz +UNRARDIR="libclamunrar-$VERS" +MAKEFLAGS=-j4 + +set -e + +mv clamav-$VERS clamav-$VERS+dfsg +mkdir $UNRARDIR +UNRARDIR="$PWD/$UNRARDIR" +echo "Preparing dfsg package" +cd clamav-$VERS+dfsg +# remove win32 stuff, doesn't make sense to ship it +rm -r win32 +sed -i 's/ win32//' Makefile.am Makefile.in +rm shared/*.la shared/*.lo shared/Makefile +# cleanup llvm +set -- libclamav/c++/llvm/utils/lit/lit/*.pyc +if [ -f "$1" ] ; then + echo "Pre-compiled python files found!" + exit 1 +fi +cp -R libclamunrar_iface $UNRARDIR +mv libclamunrar $UNRARDIR +cp -R m4/ $UNRARDIR +cp -R config/ $UNRARDIR +cp configure.in $UNRARDIR +cp platform.h.in $UNRARDIR +cp COPYING{,.unrar,.LGPL} $UNRARDIR +cd ../ +tar -czf $DFSGPKG clamav-$VERS+dfsg/ +cd $UNRARDIR +echo "Preparing unrar package" +# The sed sorcery below makes sure that the AC_OUTPUT in the unrar package looks +# like: +# AC_OUTPUT([ +# libclamunrar_iface/Makefile +# Makefile +# platform.h +# ]) +# It also removes ltdl, and renames the AC_CONFIG_SRCDIR parameter to an +# existing file. +sed -i '/AC_OUTPUT/,/])/ { +/^AC_OUTPUT(\[$/p +s/^clamscan\/Makefile/libclamunrar_iface\/Makefile/p +/^Makefile/p +/^platform.h/p +/^])/p +d +} +/LTDL/d +/ltdl/d +s/clamscan\/clamscan.c/libclamunrar_iface\/unrar_iface.c/ +' configure.in +cat <Makefile.am && +ACLOCAL_AMFLAGS=-I m4 +DISTCLEANFILES = target.h +SUBDIRS = libclamunrar_iface +EOF +autoreconf +rm -r autom4te.cache +cd .. +tar -czf $UNRARPKG libclamunrar-$VERS/ + +printf "Test archives?" +read yes +if [ x$yes != xy ] ; then + echo "Copying tarballs to current directory" + mv $UNRARPKG ../ && + mv $DFSGPKG ../ && + echo "Ready (untested): $UNRARPKG $DFSGPKG" && + cd .. && rm -r $TEMP && + echo "Removed temporary directory $TEMP" && + exit 0 + exit 30 +fi + +mkdir testpfx || { echo "Failed to create testpfx"; exit 5; } +TESTPFX="$PWD/testpfx" +mkdir buildtest && cd buildtest +echo "Running build-test for $DFSGPKG" +tar -xzf ../$DFSGPKG && cd clamav-$VERS+dfsg +echo "Configuring" +./configure --disable-clamav --disable-unrar --enable-milter --prefix=$TESTPFX >makelog +echo "Building" +make $MAKEFLAGS >>makelog +echo "Checking" +make $MAKEFLAGS check >>makelog 2>&1 +make $MAKEFLAGS install >>makelog +make $MAKFELAGS installcheck >>makelog +echo "OK" +cd .. +echo "Running build-test for $UNRARPKG" +tar -xzf ../$UNRARPKG && cd libclamunrar-$VERS +echo "Configuring" +./configure --disable-clamav --prefix=$TESTPFX >makelog +echo "Building" +make $MAKEFLAGS >>makelog +make $MAKEFLAGS install >>makelog +make $MAKEFLAGS installcheck >>makelog +echo "OK" +cd ../.. +echo "Testing whether unrar functionality works" +cat <test.hdb +aa15bcf478d165efd2065190eb473bcb:544:ClamAV-Test-File +EOF + +if test $? -ne 0; then + tail makelog + echo + echo "Failed" + exit 50; +fi +# clamscan will exit with exitcode 1 on success (virus found) +set +e +$TESTPFX/bin/clamscan buildtest/clamav-$VERS+dfsg/test/clam-v*.rar -dtest.hdb >clamscanlog +if test $? -ne 1; then + echo "Test failed"; + cat clamscanlog + exit 10; +fi +NDET=`grep FOUND clamscanlog | wc -l` +if test "0$NDET" -eq "2"; then + echo "All testfiles detected" + echo "Copying tarballs to current directory" + mv $UNRARPKG ../ && + mv $DFSGPKG ../ && + echo "Ready: $UNRARPKG $DFSGPKG" && + cd .. && rm -r $TEMP && + echo "Removed temporary directory $TEMP" && + exit 0 + exit 30 +fi +echo "Test failed" +cat clamscanlog +exit 100 diff -Nru clamav-0.97.8+dfsg/debian/tests/clamd clamav-0.98.1+dfsg/debian/tests/clamd --- clamav-0.97.8+dfsg/debian/tests/clamd 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/tests/clamd 2014-03-17 22:40:42.000000000 +0000 @@ -0,0 +1,20 @@ +#!/bin/bash +#---------------------- +# Testing clamav-daemon +#---------------------- +set -e +DAEMON=clamd + +# copy the file form unit tests to clamav directory +cp `dirname $0`/../../unit_tests/input/bytecode.cvd /var/lib/clamav/main.cvd > /dev/null 2>&1 +cp `dirname $0`/../../unit_tests/input/bytecode.cvd /var/lib/clamav/daily.cvd > /dev/null 2>&1 + +# restart clamav +/etc/init.d/clamav-daemon start > /dev/null 2>&1 + +if pidof -x $DAEMON > /dev/null; then + echo "OK" +else + echo "ERROR: ${DAEMON} IS NOT RUNNING" + exit 1 +fi diff -Nru clamav-0.97.8+dfsg/debian/tests/client clamav-0.98.1+dfsg/debian/tests/client --- clamav-0.97.8+dfsg/debian/tests/client 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/tests/client 2014-03-17 22:40:42.000000000 +0000 @@ -0,0 +1,13 @@ +#!/bin/bash +#--------------- +# Testing client +#--------------- +set -e +ADMIN=clamscan +$ADMIN --help > /dev/null 2>&1 +RET=$? + +if [[ $RET != 0 ]]; then + echo "ERROR, ${ADMIN} is not running" + exit $RET +fi diff -Nru clamav-0.97.8+dfsg/debian/tests/control clamav-0.98.1+dfsg/debian/tests/control --- clamav-0.97.8+dfsg/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/tests/control 2014-03-17 22:40:42.000000000 +0000 @@ -0,0 +1,3 @@ +Tests: clamd client milter +Depends: clamav-daemon, clamav, clamav-milter +Restrictions: needs-root diff -Nru clamav-0.97.8+dfsg/debian/tests/milter clamav-0.98.1+dfsg/debian/tests/milter --- clamav-0.97.8+dfsg/debian/tests/milter 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/tests/milter 2014-03-17 22:40:42.000000000 +0000 @@ -0,0 +1,13 @@ +#!/bin/bash +#---------------------- +# Testing clamav-milter +#---------------------- +set -e +DAEMON=clamav-milter + +if pidof -x $DAEMON > /dev/null; then + echo "OK" +else + echo "ERROR: ${DAEMON} IS NOT RUNNING" + exit 1 +fi diff -Nru clamav-0.97.8+dfsg/debian/upstream/signing-key.asc clamav-0.98.1+dfsg/debian/upstream/signing-key.asc --- clamav-0.97.8+dfsg/debian/upstream/signing-key.asc 1970-01-01 00:00:00.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/upstream/signing-key.asc 2014-03-12 19:46:15.000000000 +0000 @@ -0,0 +1,43 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v2.0.22 (GNU/Linux) + +mQGiBFFkfvoRBAC+y0U0ScSLdZ7Wo1I87m2cL47YM/uZgGKnSt5RME/Nx4N+P+l0 +Ye6FjoAVCWTcSOYLgxB+mRNkS4Mgdz+VQLlLFWdfaXDS95fbFzgWITPCOEw+OTYV +tevyjmZdRERRfZVSyo/6ZXNr1DzI2CTwG2CnO6bsTVG7Q6qWsKNoAlwGbwCgrztH +/UJzQLNPbhBMWChJCUC8qwED/AtvdQtKfGEQSBgzQKxwFjJe/DGr9EpQOksIZ7tx +WdsFlL7qFo2XZLTYiK9KD9k5BPyyGE6C61MTl5QRkbJ1RHVYDlymFqH1pgUXY0hF +IhaFEDCiLC9b5SAnnD5cJaMYHyl6HMSUXSaHoE/7wlG0ReW55ktKo2aUJkohJ4go +1XjhA/9wGwwmTporspTw8J8LYjDI5d0ijOYXfnaG2YdZIdeQomy9nntfHm9oK2et +X+SKksq3eKbcoLoxQdIEX9P21hyOi/CdKhF5Gu3rye7SfqRHhqT77A7zJ1vxkx9L +mo0Fpg4dJHdDVo9e13XQB0mh6TInv/Rg4p3Uno+LmiqsLMQlq7RBU291cmNlZmly +ZSBWUlQgKFNvdXJjZWZpcmUgVlJUIEdQRyBLZXkpIDxyZXNlYXJjaEBzb3VyY2Vm +aXJlLmNvbT6IZgQTEQIAJgUCUWR++gIbAwUJA8JnAAYLCQgHAwIEFQIIAwQWAgMB +Ah4BAheAAAoJEEC46iNkIh1TIVoAniFONlG3VevGF1dzFw5/wUqxKFlsAJ95xlMw +IRNp20UEUcz13eOvaMyMEIhGBBARAgAGBQJRZIEvAAoJEGgaKmQVSX8DZPkAnis6 +NapNTN9NUw9lxRNqJJccF68FAJ40Q4StmQSmLmsdHqrxl501Lck8TLkEDQRRZH+E +EBAAhyJEk2aERYCOAEfsX2k0owWFyMKwGW++eCjQmYdU2FSrCwrL1GDy2Gvi/3jB +Ga6TcYWK7jRO4EXOU816NJYh1GdB8zjL7lpu+kD45O9FvxAjc4X1fH58YYCTcUT7 +EgR6VVF6sePsFXEAVBU/vPoYwp002y83svgYUdkjDkX0ynthpDtfTMezy98efsOP +ph3ZZEv/flcRpNuUVTWdKlQG/8ducMBYC4GCxeKbXDGbtpEnPbJh1Rk963HxpoSS +e0AAFmOroZp279q/9SeSbZ0NdCYdQb79qLXVwOExc29EXH/ECVFFTdAkyDGAcqdF +9BzHaKoPi3UwRH8X3rqgD3Y702zENKwXrp4UP1BohdkoH0tvYGNuvc791+lo2iOe +k2QTLqgGe66xKVf0l6zQsbqUog1/FunIyEqt+LRFhjxI9EZwt5Z28pgdO/SZn+v/ +Hwyfhex5KeRzHop4D31jz5m6tUy7R27ZuXLA7bRyLvZ/MauW8xPI4g8OyoySxjfp +u/AtJ6MOV2Sp5zKuqoqaU6voXAmucyTcdkzcvdjIpkFqjz89fmf0A/HopYX8Z2kJ +vcI0C+0+yqB/EaAZk3V9d9w6hU72JI5X7A/w0Wq/iH39SJePGhwAU9t+R5gGJi75 +deYTsp8NAdXIlwDxFE7Qq6u+uQWeNVagxcbs59+Bb+uxnz8AAwUP/3Jv5QRQoLc4 +B5gUDfWkGZ6WUwjAkPB45uSVAqzkEGAHILHcchpjP7izy1TUlBEDjMylX1/bKE0i +jIq9Jv/M1nSVrWfiC5ZIKNLWanJd4wCgxoODVHI8aYZiCBZtpqqJyLSw2CDd8QHI +AWbYUOtGtG69uL0UhT+I0+mNopMHyCQLrAJGZFjq7yqNRSJpkjSkE7xHkI0D+7QA +jDv1RoY7DtEutdoIMgbTj619PJePnWgX1/DzydztMr0vfmAilp6hXu1M4xDlyjPV +OVZGpT34tXB8POpncbbAAWmnJTwDe/ZVsBqT/sfgx86G5c1zb0dIMlNPQbAs2tXr +gz1Lf918/Ju1bvsr9ZnaY0aJu+bLcrYVinVce4WLBeCiYVpUo6P+EO2POrUwcoI7 +gEwoAjyGGVZ9f4jrGbUhBTltVoHz0yK6VFDlYI8g4D+WRUJ+lJVn8aYZKhXLazsu +q+nUUkXcn4+bYEBt4b7NQsLjd8M3gEoojWtrArcI0IJXhGKOPBZI+FQ2v7jL1eDA +0ht7plKjLcGLSVj2NLAIWmK+0H46T05HuYowt5/FNSVnwvu1OMS11wKCiG3k1foL +OPBQmFlEkcZZPM3S4JuoDCtipCrS1Ht18VTr1zXo4jOi1DEnG3StOA5wVS3vIydd +/3t7wUvWL/n2pwC49ke5hkSMh3LP8sQCiE8EGBECAA8FAlFkf4QCGwwFCQPCZwAA +CgkQQLjqI2QiHVPVZwCeLVASz45PqP9S3URuEUx9ReLcCWgAn11ttPqK9gCZJnIl +MjiCtk3kDuDp +=xBx3 +-----END PGP PUBLIC KEY BLOCK----- diff -Nru clamav-0.97.8+dfsg/debian/watch clamav-0.98.1+dfsg/debian/watch --- clamav-0.97.8+dfsg/debian/watch 2014-03-27 17:29:14.000000000 +0000 +++ clamav-0.98.1+dfsg/debian/watch 2014-03-17 22:40:42.000000000 +0000 @@ -1,4 +1,4 @@ version=3 -opts=uversionmangle=s/(\d+)(rc)/$1~$2/,dversionmangle=s/\+dfsg// \ +opts="uversionmangle=s/(\d+)(rc)/$1~$2/,dversionmangle=s/\+dfsg//,pgpsigurlmangle=s/$/.sig/" \ http://sf.net/clamav/clamav-(.*).tar.gz debian uupdate Binary files /tmp/vYrzDcM6EW/clamav-0.97.8+dfsg/docs/clamdoc.pdf and /tmp/jBWIXkZ_LK/clamav-0.98.1+dfsg/docs/clamdoc.pdf differ diff -Nru clamav-0.97.8+dfsg/docs/clamdoc.tex clamav-0.98.1+dfsg/docs/clamdoc.tex --- clamav-0.97.8+dfsg/docs/clamdoc.tex 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/clamdoc.tex 2014-01-13 17:02:18.000000000 +0000 @@ -71,7 +71,7 @@ \vspace{3cm} \begin{flushright} \rule[-1ex]{8cm}{3pt}\\ - \huge Clam AntiVirus 0.97.8\\ + \huge Clam AntiVirus 0.98.1\\ \huge \emph{User Manual}\\ \end{flushright} @@ -126,7 +126,7 @@ \item{Licensed under the GNU General Public License, Version 2} \item{POSIX compliant, portable} \item{Fast scanning} - \item{Supports on-access scanning (Linux and FreeBSD only)} + \item{Supports on-access scanning (Linux only)} \item{Detects over 1 million viruses, worms and trojans, including Microsoft Office macro viruses, mobile malware, and other threats} \item{Built-in bytecode interpreter allows the ClamAV signature writers @@ -143,6 +143,14 @@ \item CPIO \item Gzip \item Bzip2 + \item DMG + \item IMG + \item ISO 9660 + \item PKG + \item HFS+ partition + \item HFSX partition + \item XAR + \item XZ \item MS OLE2 \item MS Cabinet Files (including SFX) \item MS CHM (Compiled HTML) @@ -230,7 +238,7 @@ \section{Installation} - \subsection{Requirements} + \subsection{Requirements}\label{sec:components} The following components are required to compile ClamAV under UNIX: \footnote{For Windows instructions please see win32/README in the main source code directory.} @@ -247,6 +255,7 @@ The following packages are optional but \textbf{highly recommended}: \begin{itemize} \item bzip2 and bzip2-devel library + \item libxml2 and libxml2-dev library \item \verb+check+ unit testing framework \footnote{See section \ref{unit-testing} on how to run the unit tests}. \end{itemize} The following packages are optional, but \textbf{required for bytecode JIT support}: @@ -316,17 +325,18 @@ \begin{verbatim} $ ./configure --enable-milter \end{verbatim} + See section /ref{sec:clamavmilter} for more details on clamav-milter. \subsection{Running unit tests}\label{unit-testing} ClamAV includes unit tests that allow you to test that the compiled binaries work correctly on your platform. - + \\\\ The first step is to use your OS's package manager to install the \verb+check+ package. If your OS doesn't have that package, you can download it from \url{http://check.sourceforge.net/}, build it and install it. - + \\\\ To help clamav's configure script locate \verb+check+, it is recommended that you install \verb+pkg-config+, preferably using your OS's package manager, or from \url{http://pkg-config.freedesktop.org}. - + \\\\ The recommended way to run unit-tests is the following, which ensures you will get an error if unit tests cannot be built: \footnote{The configure script in ClamAV automatically enables the unit tests, if it finds the check framework, however it doesn't consider it a fatal error if unit tests cannot be enabled.} \begin{verbatim} @@ -334,15 +344,16 @@ $ make $ make check \end{verbatim} - When \verb+make check+ is finished, you should get a message similar to this: \begin{verbatim} ================== All 8 tests passed ================== \end{verbatim} - - If a unit test fails, you get a message similar to the following. + If a unit test fails, you get a message similar to the following. + Note that in older versions of make check may report failures due to + the absence of optional packages. Please make sure you have the + latest versions of the components noted in section /ref{sec:components}. See the next section on how to report a bug when a unit test fails. \begin{verbatim} ======================================== @@ -350,7 +361,6 @@ Please report to http://bugs.clamav.net/ ======================================== \end{verbatim} - If unit tests are disabled (and you didn't use --enable-check), you will get this message: \begin{verbatim} *** Unit tests disabled in this build @@ -391,7 +401,33 @@ \end{verbatim} \end{itemize} + \subsection{Obtain Latest ClamAV anti-virus signature databases} + Before you can run ClamAV in daemon mode (clamd), 'clamdscan', + or 'clamscan' which is ClamAV's command line virus scanner, + you must have ClamAV Virus Database (.cvd) file(s) installed + in the appropriate location on your system. The default + location for these database files are /usr/local/share/clamav + (in Linux/Unix). + \\\\ + Here is a listing of currently available ClamAV Virus Database Files: + \begin{itemize} + \item bytecode.cvd (signatures to detect bytecode in files) + \item main.cvd (main ClamAV virus database file) + \item daily.cvd (daily update file for ClamAV virus databases) + \item safebrowsing.cvd (virus signatures for safe browsing) + \end{itemize} + These files can be downloaded via HTTP from the main ClamAV website + or via the 'freshclam' utility on a periodic basis. Using 'freshclam' + is the preferred method of keeping the ClamAV virus database files + up to date without manual intervention (see section \ref{conf:freshclam} for + information on how to configure 'freshclam' for automatic updating and section + \ref{sec:freshclam} for additional details on freshclam). + \section{Configuration} + Before proceeding with the steps below, you should + run the 'clamconf' command, which gives important information + about your ClamAV configuration. See section \ref{sec:clamconf} + for more details. \subsection{clamd} Before you start using the daemon you have to edit the configuration file @@ -407,44 +443,38 @@ \subsubsection{On-access scanning} One of the interesting features of \verb+clamd+ is on-access scanning - based on the Dazuko module, available from \url{http://dazuko.org/}. - \textbf{This module is not required to run clamd - furthermore, you - shouldn't run Dazuko on production systems}. At the moment Dazuko is - avaliable for Linux and FreeBSD, but the following information only covers - Linux. - \begin{verbatim} - $ tar zxpvf dazuko-a.b.c.tar.gz - $ cd dazuko-a.b.c - $ make dazuko - or - $ make dazuko-smp (for smp kernels) - $ su - # insmod dazuko.o - # cp dazuko.o /lib/modules/`uname -r`/misc - # depmod -a - \end{verbatim} - Depending on your Linux distribution you may need to add a "dazuko" entry to - \emph{/etc/modules} or run the module during system's startup by adding - \begin{verbatim} - /sbin/modprobe dazuko - \end{verbatim} - to some startup file. You must also create a new device: - \begin{verbatim} - $ cat /proc/devices | grep dazuko - 254 dazuko - $ su -c "mknod -m 600 /dev/dazuko c 254 0" - \end{verbatim} - Now configure Clamuko in \verb+clamd.conf+ and read the \ref{clamuko} - section. + based on fanotify, included in Linux since kernel 2.6.36. + \textbf{This is not required to run clamd}. At the moment the fanotify header is + only avaliable for Linux. + \\\\ + Configure on-access scanning in \verb+clamd.conf+ and read the + \ref{On-access} section for on-access scanning usage. - \subsection{clamav-milter} + \subsection{clamav-milter}\label{sec:clamavmilter} ClamAV $\ge0.95$ includes a new, redesigned clamav-milter. The most notable difference is that the internal mode has been dropped and now a working clamd companion is required. The second important difference is that now - the milter has got its own configuration and log files. To compile ClamAV - with the clamav-milter just run \verb+./configure+ \verb+--enable-milter+ - and make as usual. Please consult your MTA's manual on how to connect it - with the milter. + the milter has got its own configuration and log files. + \\\\ + To compile ClamAV with the clamav-milter just run \verb+./configure+ + \verb+--enable-milter+ and make as usual. In order to use the + '--enable-milter' option with 'configure', your system MUST have the milter + library installed. If you use the '--enable-milter' option without the + library being installed, you will most likely see output like this during + 'configure': + \begin{verbatim} + checking for libiconv_open in -liconv... no + checking for iconv... yes + checking whether in_port_t is defined... yes + checking for in_addr_t definition... yes + checking for mi_stop in -lmilter... no + checking for library containing strlcpy... no + checking for mi_stop in -lmilter... no + configure: error: Cannot find libmilter + \end{verbatim} + At which point the 'configure' script will stop processing. + \\\\ + Please consult your MTA's manual on how to connect ClamAV with the milter. \subsection{Testing} Try to scan recursively the source directory: @@ -462,7 +492,7 @@ Please note that the scanned files must be accessible by the user running \verb+clamd+ or you will get an error. - \subsection{Setting up auto-updating} + \subsection{Setting up auto-updating}\label{conf:freshclam} \verb+freshclam+ is the automatic database update tool for Clam AntiVirus. It can work in two modes: \begin{itemize} @@ -533,14 +563,14 @@ been detected. This data is then used to generate real-time reports on active malware. These reports, along with geographical and historic trends, will be published on \url{http://www.clamav.net/}. - + \\\\ The more data that we receive from ClamAV users, the more reports, and the better the quality of the reports, will be. To enable the submission of data to us for use in the Active Malware Report, enable SubmitDetectionStats in freshclam.conf, and LogTime and LogFile in clamd.conf. You should only enable this feature if you're running clamd to scan incoming data in your environment. - + \\\\ The only private data that is transferred is an IP address, which is used to create the geographical data. The size of the data that is sent is small; it contains just the filename, malware name and time of detection. The data @@ -581,6 +611,10 @@ \item \textbf{MULTISCAN file/directory}\\ Scan file in a standard way or scan directory (recursively) using multiple threads (to make the scanning faster on SMP machines). + \item \textbf{ALLMATCHSCAN file/directory}\\ + ALLMATCHSCAN works just like SCAN except that it sets a mode + where, after finding a virus within a file, continues scanning for + additional viruses. \item \textbf{INSTREAM}\\ \emph{It is mandatory to prefix this command with \textbf{n} or \textbf{z}.}\\ @@ -673,9 +707,9 @@ try to workaround this limitation by using FILDES \end{itemize} - \subsection{Clamuko}\label{clamuko} - Clamuko is a special thread in \verb+clamd+ that performs on-access - scanning under Linux and FreeBSD and shares internal virus database + \subsection{On-access Scanning}\label{On-access} + There is a special thread in \verb+clamd+ that performs on-access + scanning under Linux and shares internal virus database with the daemon. \textbf{You must follow some important rules when using it:} \begin{itemize} @@ -691,14 +725,124 @@ For example, to protect the whole system add the following lines to \verb+clamd.conf+: \begin{verbatim} - ClamukoScanOnAccess - ClamukoIncludePath / - ClamukoExcludePath /proc - ClamukoExcludePath /temporary/dir/of/your/mail/scanning/software - \end{verbatim} - You can also use clamuko to protect files on Samba/Netatalk but a far - more better and safe idea is to use the \textbf{samba-vscan} module. - NFS is not supported because Dazuko doesn't intercept NFS access calls. + ScanOnAccess yes + OnAccessIncludePath / + OnAccessExcludePath /proc + OnAccessExcludePath /temporary/dir/of/your/mail/scanning/software + \end{verbatim} + For more configuration options, type 'man clamd.conf' or reference the + example clamd.conf. + + \subsection{Clamdtop} + \verb+clamdtop+ is a tool to monitor one or multiple instances of clamd. It + has a (color) ncurses interface, that shows the jobs in clamd's queue, + memory usage, and information about the loaded signature database. + You can specify on the command-line to which clamd(s) it should connect + to. By default it will attempt to connect to the local clamd as defined + in clamd.conf. + \\\\ + For more detailed help, type 'man clamdtop' or 'clamdtop --help'. + + \subsection{Clamscan} + \verb+clamscan+ is ClamAV's command line virus scanner. It can be used to + scan files and/or directories for viruses. In order for clamscan + to work proper, the ClamAV virus database files must be installed on + the system you are using clamscan on. + \\\\ + The general usage of clamscan is: clamscan [options] [file/directory/-] + \\\\ + For more detailed help, type 'man clamscan' or 'clamscan --help'. + + \subsection{ClamBC} + \verb+clambc+ is Clam Anti-Virus' bytecode testing tool. It can be + used to test files which contain bytecode. For more detailed help, + type 'man clambc' or 'clambc --help'. + + \subsection{Freshclam}\label{sec:freshclam} + \verb+freshclam+ is ClamAV's virus database update tool and reads it's + configuration from the file 'freshclam.conf' (this may be + overriden by command line options). Freshclam's default behavior is to + attempt to update databases that are paired with downloaded cdiffs. + Potentially corrupted databases are not updated and are automatically + fully replaced after several failed attempts unless otherwise specified. + \\\\ + Here is a sample usage including cdiffs: +{\footnotesize + \begin{verbatim} +$ freshclam + +ClamAV update process started at Mon Oct 7 08:15:10 2013 +main.cld is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo) +Downloading daily-17945.cdiff [100%] +Downloading daily-17946.cdiff [100%] +Downloading daily-17947.cdiff [100%] +daily.cld updated (version: 17947, sigs: 406951, f-level: 63, builder: neo) +Downloading bytecode-227.cdiff [100%] +Downloading bytecode-228.cdiff [100%] +bytecode.cld updated (version: 228, sigs: 43, f-level: 63, builder: neo) +Database updated (2831219 signatures) from database.clamav.net (IP: 64.6.100.177) + \end{verbatim} +} + For more detailed help, type 'man clamscan' or 'clamscan --help'. + + \subsection{Clamconf}\label{sec:clamconf} + \verb+clamconf+ is the Clam Anti-Virus configuration utility. It is used + for displaying values of configurations options in ClamAV, which + will show the contents of clamd.conf (or tell you if it is not + properly configured), the contents of freshclam.conf, and display + information about software settings, database, platform, and build + information. Here is a sample clamconf output: +{\footnotesize + \begin{verbatim} +$ clamconf + +Checking configuration files in /etc/clamav + +Config file: clamd.conf +----------------------- +ERROR: Please edit the example config file /etc/clamav/clamd.conf + +Config file: freshclam.conf +--------------------------- +ERROR: Please edit the example config file /etc/clamav/freshclam.conf + +clamav-milter.conf not found + +Software settings +----------------- +Version: 0.98.1 +Optional features supported: MEMPOOL IPv6 AUTOIT_EA06 BZIP2 RAR JIT + +Database information +-------------------- +Database directory: /xclam/gcc/release/share/clamav +WARNING: freshclam.conf and clamd.conf point to different database directories +print_dbs: Can't open directory /xclam/gcc/release/share/clamav + +Platform information +-------------------- +uname: Linux 3.5.0-44-generic #67~precise1-Ubuntu SMP Wed Nov 13 16:20:03 UTC 2013 i686 +OS: linux-gnu, ARCH: i386, CPU: i686 +Full OS version: Ubuntu 12.04.3 LTS +zlib version: 1.2.3.4 (1.2.3.4), compile flags: 55 +Triple: i386-pc-linux-gnu +CPU: i686, Little-endian +platform id: 0x0a114d4d0404060401040604 + +Build information +----------------- +GNU C: 4.6.4 (4.6.4) +GNU C++: 4.6.4 (4.6.4) +CPPFLAGS: +CFLAGS: -g -O0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE +CXXFLAGS: +LDFLAGS: +Configure: '--prefix=/xclam/gcc/release/' '--disable-clamav' '--enable-debug' 'CFLAGS=-g -O0' +sizeof(void*) = 4 +Engine flevel: 77, dconf: 77 + \end{verbatim} +} + For more detailed help, type 'man clamconf' or 'clamconf --help'. \subsection{Output format} @@ -719,14 +863,16 @@ \verb+FOUND+ strings. In case of archives the scanner depends on libclamav and only prints the first virus found within an archive: \begin{verbatim} - zolw@localhost:/tmp$ clamscan malware.zip + $ clamscan malware.zip malware.zip: Worm.Mydoom.U FOUND \end{verbatim} + When using the --allmatch(-z) flag, clamscan may print multiple virus + \verb+FOUND+ lines for archives and files. \subsubsection{clamd} The output format of \verb+clamd+ is very similar to \verb+clamscan+. \begin{verbatim} - zolw@localhost:~$ telnet localhost 3310 + $ telnet localhost 3310 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. @@ -793,6 +939,14 @@ \item CPIO \item Gzip \item Bzip2 + \item DMG + \item IMG + \item ISO 9660 + \item PKG + \item HFS+ partition + \item HFSX partition + \item XAR + \item XZ \item MS OLE2 \item MS Cabinet Files (+ SFX) \item MS CHM (Compiled HTML) @@ -817,8 +971,14 @@ decoding and normalization is only performed for HTML files. \subsubsection{Data Loss Prevention} - Libclamav includes a DLP module which can detect credit card and - social security numbers inside text files. + Libclamav includes a DLP module which can detect the following + credit card issuers: AMEX, VISA, MasterCard, Discover, Diner's Club, + and JCB and U.S. social security numbers inside text files. + \\\\ + Future versions of Libclamav may include additional features to + detect other credit cards and other forms of PII (Personally + Identifiable Information) which may be transmitted without the + benefit of being encrypted. \subsubsection{Others} Libclamav can handle various obfuscators, encoders, files vulnerable to @@ -1035,6 +1195,8 @@ files). \item \textbf{CL\_SCAN\_PDF}\\ Enables scanning within PDF files. + \item \textbf{CL\_SCAN\_SWF}\\ + Enables scanning within SWF files, notably compressed SWF. \item \textbf{CL\_SCAN\_PE}\\ This flag enables deep scanning of Portable Executable files and allows libclamav to unpack executables compressed with run-time @@ -1107,9 +1269,9 @@ \subsubsection{clamav-config} Use \verb+clamav-config+ to check compilation information for libclamav. \begin{verbatim} - zolw@localhost:~$ clamav-config --libs + $ clamav-config --libs -L/usr/local/lib -lz -lbz2 -lgmp -lpthread - zolw@localhost:~$ clamav-config --cflags + $ clamav-config --cflags -I/usr/local/include -g -O2 \end{verbatim} @@ -1131,7 +1293,7 @@ \end{verbatim} \verb+sigtool --info+ displays detailed information on CVD files: \begin{verbatim} -zolw@localhost:/usr/local/share/clamav$ sigtool -i daily.cvd +$ sigtool -i daily.cvd File: daily.cvd Build time: 10 Mar 2008 10:45 +0000 Version: 6191 @@ -1574,7 +1736,7 @@ Role: virus database maintainer \item Joel Esler \email{}, USA\\ - Role: open source community manager + Role: community manager \item Tom Judge \email{}, USA\\ Role: infrastucture developer @@ -1591,8 +1753,14 @@ \item Shawn Webb \email{}, USA\\ Role: ClamAV developer - \item Carl Wu \email{}, USA\\ - Role: ClamAV developer + \item Kevin Lin \email{}, USA\\ + Role: ClamAV developer + + \item Dave Suffling \email{}, Canada\\ + Role: ClamAV developer + + \item Samir Sapra \email{}, USA\\ + Role: ClamAV developer \item Alain Zidouemba \email{}, USA\\ Role: virus database maintainer diff -Nru clamav-0.97.8+dfsg/docs/html/clamdoc.css clamav-0.98.1+dfsg/docs/html/clamdoc.css --- clamav-0.97.8+dfsg/docs/html/clamdoc.css 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/clamdoc.css 2014-01-13 17:02:18.000000000 +0000 @@ -1,6 +1,6 @@ /* Century Schoolbook font is very similar to Computer Modern Math: cmmi */ .MATH { font-family: "Century Schoolbook", serif; } -.MATH I { font-family: "Century Schoolbook", serif; font-style: italic } +.MATH I { font-family: "Century Schoolbook", serif; font-shape: italic } .BOLDMATH { font-family: "Century Schoolbook", serif; font-weight: bold } /* implement both fixed-size and relative sizes */ @@ -28,11 +28,3 @@ /* document-specific styles come next */ -PRE.preform { } -DIV.center { } -DIV.flushright { } -DIV.navigation { } -SPAN.textbf { font-weight: bold } -SPAN.arabic { } -SPAN.textit { font-style: italic } -#hue36 { color: #ffffff; } diff -Nru clamav-0.97.8+dfsg/docs/html/clamdoc.html clamav-0.98.1+dfsg/docs/html/clamdoc.html --- clamav-0.97.8+dfsg/docs/html/clamdoc.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/clamdoc.html 2014-01-13 17:02:34.000000000 +0000 @@ -24,18 +24,18 @@ @@ -44,9 +44,9 @@

Image clam + WIDTH="525" HEIGHT="480" ALIGN="BOTTOM" BORDER="0" + SRC="img2.png" + ALT="\includegraphics[width=353pt]{clam}">


@@ -56,7 +56,7 @@

-
Clam AntiVirus 0.97.8 +
Clam AntiVirus 0.98.1
User Manual
@@ -68,165 +68,177 @@ +
+
  • Core Team +
  • Emeritus Team

    -SourceFire 2013-04-16 +Sourcefire 2013-12-24
    Binary files /tmp/vYrzDcM6EW/clamav-0.97.8+dfsg/docs/html/clam.png and /tmp/jBWIXkZ_LK/clamav-0.98.1+dfsg/docs/html/clam.png differ Binary files /tmp/vYrzDcM6EW/clamav-0.97.8+dfsg/docs/html/crossref.png and /tmp/jBWIXkZ_LK/clamav-0.98.1+dfsg/docs/html/crossref.png differ diff -Nru clamav-0.97.8+dfsg/docs/html/footnode.html clamav-0.98.1+dfsg/docs/html/footnode.html --- clamav-0.97.8+dfsg/docs/html/footnode.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/footnode.html 2014-01-13 17:02:34.000000000 +0000 @@ -18,7 +18,7 @@ - + @@ -98,7 +98,7 @@ . -
    ... UNIX:... UNIX:3
    For Windows instructions please see win32/README in the main source code directory. @@ -135,9 +135,9 @@ .
    -
    ... framework... framework4
    -
    See section [*] on how to run the unit tests +
    See section 3.6 on how to run the unit tests
    .
     .
    @@ -171,7 +171,7 @@
     .
     
    -
    ... support:... support:5
    if not available ClamAV will fall back to an interpreter @@ -207,7 +207,7 @@ .
    -
    ... gcc-c++.... gcc-c++.6
    Note that several versions of GCC have bugs when compiling LLVM, see
    -
    ... built:... built:7
    The configure script in ClamAV automatically enables the unit tests, if it finds the check framework, however it doesn't consider it a fatal error if unit tests cannot be enabled. @@ -282,8 +282,8 @@ .
    -
    ... file8
    +
    ... file8
    To get more info on clamscan options run 'man clamscan'
    .
    @@ -318,8 +318,8 @@
     .
     
    -
    ... file9
    +
    ... file9
    man 5 clamd.conf
    .
    @@ -354,8 +354,8 @@
     .
     
    -
    ... signo10
    +
    ... signo10
    Remember to initialize the virus counter variable with 0. Binary files /tmp/vYrzDcM6EW/clamav-0.97.8+dfsg/docs/html/img2.png and /tmp/jBWIXkZ_LK/clamav-0.98.1+dfsg/docs/html/img2.png differ Binary files /tmp/vYrzDcM6EW/clamav-0.97.8+dfsg/docs/html/img3.png and /tmp/jBWIXkZ_LK/clamav-0.98.1+dfsg/docs/html/img3.png differ Binary files /tmp/vYrzDcM6EW/clamav-0.97.8+dfsg/docs/html/img4.png and /tmp/jBWIXkZ_LK/clamav-0.98.1+dfsg/docs/html/img4.png differ Binary files /tmp/vYrzDcM6EW/clamav-0.97.8+dfsg/docs/html/img5.png and /tmp/jBWIXkZ_LK/clamav-0.98.1+dfsg/docs/html/img5.png differ Binary files /tmp/vYrzDcM6EW/clamav-0.97.8+dfsg/docs/html/img6.png and /tmp/jBWIXkZ_LK/clamav-0.98.1+dfsg/docs/html/img6.png differ diff -Nru clamav-0.97.8+dfsg/docs/html/index.html clamav-0.98.1+dfsg/docs/html/index.html --- clamav-0.97.8+dfsg/docs/html/index.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/index.html 2014-01-13 17:02:34.000000000 +0000 @@ -24,18 +24,18 @@ @@ -44,9 +44,9 @@

    Image clam + WIDTH="525" HEIGHT="480" ALIGN="BOTTOM" BORDER="0" + SRC="img2.png" + ALT="\includegraphics[width=353pt]{clam}">


    @@ -56,7 +56,7 @@

    -
    Clam AntiVirus 0.97.8 +
    Clam AntiVirus 0.98.1
    User Manual
    @@ -68,165 +68,177 @@ +
    +
  • Core Team +
  • Emeritus Team

    -SourceFire 2013-04-16 +Sourcefire 2013-12-24
    diff -Nru clamav-0.97.8+dfsg/docs/html/node10.html clamav-0.98.1+dfsg/docs/html/node10.html --- clamav-0.97.8+dfsg/docs/html/node10.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node10.html 2014-01-13 17:02:34.000000000 +0000 @@ -26,26 +26,26 @@ @@ -60,7 +60,7 @@



    -SourceFire 2013-04-16 +Sourcefire 2013-12-24
    diff -Nru clamav-0.97.8+dfsg/docs/html/node11.html clamav-0.98.1+dfsg/docs/html/node11.html --- clamav-0.97.8+dfsg/docs/html/node11.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node11.html 2014-01-13 17:02:34.000000000 +0000 @@ -18,7 +18,7 @@ - + @@ -27,26 +27,26 @@ @@ -62,25 +62,27 @@ Subsections

    -SourceFire 2013-04-16 +Sourcefire 2013-12-24
    diff -Nru clamav-0.97.8+dfsg/docs/html/node12.html clamav-0.98.1+dfsg/docs/html/node12.html --- clamav-0.97.8+dfsg/docs/html/node12.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node12.html 2014-01-13 17:02:34.000000000 +0000 @@ -27,37 +27,38 @@ -

    -Requirements +

    +
    +Requirements

    The following components are required to compile ClamAV under UNIX: 3 + HREF="footnode.html#foot126">3
    • zlib and zlib-devel packages
    • @@ -76,20 +77,22 @@
      • bzip2 and bzip2-devel library
      • +
      • libxml2 and libxml2-dev library +
      • check unit testing framework 4. + HREF="footnode.html#foot818">4.
      The following packages are optional, but required for bytecode JIT support: 5 + HREF="footnode.html#foot135">5
      • GCC C and C++ compilers (minimum 4.1.3, recommended 4.3.4 or newer)
        the package for these compilers are usually called: gcc, g++, or gcc-c++. 6 + HREF="footnode.html#foot819">6
      • A supported CPU for the JIT, either of: X86, X86-64, PowerPC, PowerPC64 @@ -109,30 +112,30 @@
        -SourceFire 2013-04-16 +Sourcefire 2013-12-24
        diff -Nru clamav-0.97.8+dfsg/docs/html/node13.html clamav-0.98.1+dfsg/docs/html/node13.html --- clamav-0.97.8+dfsg/docs/html/node13.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node13.html 2014-01-13 17:02:34.000000000 +0000 @@ -27,26 +27,26 @@ @@ -74,7 +74,7 @@



        -SourceFire 2013-04-16 +Sourcefire 2013-12-24
        diff -Nru clamav-0.97.8+dfsg/docs/html/node14.html clamav-0.98.1+dfsg/docs/html/node14.html --- clamav-0.97.8+dfsg/docs/html/node14.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node14.html 2014-01-13 17:02:34.000000000 +0000 @@ -27,26 +27,26 @@ @@ -68,7 +68,7 @@



        -SourceFire 2013-04-16 +Sourcefire 2013-12-24
        diff -Nru clamav-0.97.8+dfsg/docs/html/node15.html clamav-0.98.1+dfsg/docs/html/node15.html --- clamav-0.97.8+dfsg/docs/html/node15.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node15.html 2014-01-13 17:02:34.000000000 +0000 @@ -27,26 +27,26 @@ @@ -74,7 +74,7 @@



        -SourceFire 2013-04-16 +Sourcefire 2013-12-24
        diff -Nru clamav-0.97.8+dfsg/docs/html/node16.html clamav-0.98.1+dfsg/docs/html/node16.html --- clamav-0.97.8+dfsg/docs/html/node16.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node16.html 2014-01-13 17:02:34.000000000 +0000 @@ -27,26 +27,26 @@ @@ -60,11 +60,12 @@
         	$ ./configure --enable-milter
         
        + See section /refsec:clamavmilter for more details on clamav-milter.



        -SourceFire 2013-04-16 +Sourcefire 2013-12-24
        diff -Nru clamav-0.97.8+dfsg/docs/html/node17.html clamav-0.98.1+dfsg/docs/html/node17.html --- clamav-0.97.8+dfsg/docs/html/node17.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node17.html 2014-01-13 17:02:34.000000000 +0000 @@ -27,26 +27,26 @@ @@ -57,37 +57,39 @@ Running unit tests ClamAV includes unit tests that allow you to test that the compiled binaries work correctly on your platform. - -

        + +
        +
        The first step is to use your OS's package manager to install the check package. If your OS doesn't have that package, you can download it from http://check.sourceforge.net/, build it and install it. - -

        + +
        +
        To help clamav's configure script locate check, it is recommended that you install pkg-config, preferably using your OS's package manager, or from http://pkg-config.freedesktop.org. - -

        + +
        +
        The recommended way to run unit-tests is the following, which ensures you will get an error if unit tests cannot be built: 7

        +  HREF="footnode.html#foot167">7	
         	 $ ./configure --enable-check
         	 $ make
         	 $ make check
         
        - -

        -When make check is finished, you should get a message similar to this: + When make check is finished, you should get a message similar to this:

         ==================
         All 8 tests passed
         ==================
         
        - -

        -If a unit test fails, you get a message similar to the following. + If a unit test fails, you get a message similar to the following. + Note that in older versions of make check may report failures due to + the absence of optional packages. Please make sure you have the + latest versions of the components noted in section /refsec:components. See the next section on how to report a bug when a unit test fails.

         ========================================
        @@ -95,9 +97,7 @@
         Please report to http://bugs.clamav.net/
         ========================================
         
        - -

        -If unit tests are disabled (and you didn't use -enable-check), you will get this message: + If unit tests are disabled (and you didn't use -enable-check), you will get this message:

         *** Unit tests disabled in this build
         *** Use ./configure --enable-check to enable them
        @@ -118,30 +118,30 @@
         
         
         
         
        -SourceFire 2013-04-16 +Sourcefire 2013-12-24
        diff -Nru clamav-0.97.8+dfsg/docs/html/node18.html clamav-0.98.1+dfsg/docs/html/node18.html --- clamav-0.97.8+dfsg/docs/html/node18.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node18.html 2014-01-13 17:02:34.000000000 +0000 @@ -18,6 +18,7 @@ + @@ -26,26 +27,26 @@ @@ -95,7 +96,7 @@



        -SourceFire 2013-04-16 +Sourcefire 2013-12-24
        diff -Nru clamav-0.97.8+dfsg/docs/html/node19.html clamav-0.98.1+dfsg/docs/html/node19.html --- clamav-0.97.8+dfsg/docs/html/node19.html 2013-04-17 15:25:09.000000000 +0000 +++ clamav-0.98.1+dfsg/docs/html/node19.html 2014-01-13 17:02:34.000000000 +0000 @@ -7,8 +7,8 @@ Jens Lippmann, Marek Rouchal, Martin Wilck and others --> -Configuration - +Obtain Latest ClamAV anti-virus signature databases + @@ -18,75 +18,75 @@ - - - + + -

        -Configuration -

        - -

        -


        - -Subsections - -