~ubuntu-branches/ubuntu/saucy/clamav/saucy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2007-12-18 15:18:53 UTC
  • mfrom: (0.25.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218151853-ag6bdjbq6budh353
Tags: 0.92~dfsg-0build1
Fake sync to get the new clamav into the NEW queue

Show diffs side-by-side

added added

removed removed

Lines of Context:
819
819
INSTALL_PROGRAM
820
820
INSTALL_SCRIPT
821
821
INSTALL_DATA
 
822
am__isrc
822
823
CYGPATH_W
823
824
PACKAGE
824
825
VERSION
889
890
BUILD_CLAMD_FALSE
890
891
HAVE_MILTER_TRUE
891
892
HAVE_MILTER_FALSE
 
893
ENABLE_UNRAR_TRUE
 
894
ENABLE_UNRAR_FALSE
892
895
GETENT
893
896
CLAMAVUSER
894
897
CLAMAVGROUP
1495
1498
  --enable-fast-install[=PKGS]
1496
1499
                          optimize for fast installation [default=yes]
1497
1500
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1501
  --disable-gcc-vcheck    do not check for buggy gcc version
1498
1502
  --enable-experimental enable experimental code
1499
1503
  --enable-maintainer-mode enable make rules and dependencies not useful
1500
1504
                          (and sometimes confusing) to the casual installer
1501
1505
  --disable-zlib-vcheck   do not check for buggy zlib version
1502
1506
  --disable-bzip2         disable bzip2 support
1503
 
  --disable-ncore         disable support for NodalCore acceleration (default=auto)
 
1507
  --disable-unrar         don't build libclamunrar and libclamunrar_iface
1504
1508
  --disable-dns           disable support for database verification through
1505
1509
                          DNS
1506
1510
  --disable-clamuko       disable clamuko support (Linux, DragonFly and FreeBSD only)
2314
2318
done
2315
2319
 
2316
2320
 
2317
 
am__api_version="1.9"
 
2321
am__api_version='1.10'
 
2322
 
2318
2323
# Find a good install program.  We prefer a C program (faster),
2319
2324
# so one script is as good as another.  But avoid the broken or
2320
2325
# incompatible versions:
2466
2471
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2467
2472
fi
2468
2473
 
2469
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2470
 
  # We used to keeping the `.' as first argument, in order to
2471
 
  # allow $(mkdir_p) to be used without argument.  As in
2472
 
  #   $(mkdir_p) $(somedir)
2473
 
  # where $(somedir) is conditionally defined.  However this is wrong
2474
 
  # for two reasons:
2475
 
  #  1. if the package is installed by a user who cannot write `.'
2476
 
  #     make install will fail,
2477
 
  #  2. the above comment should most certainly read
2478
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2479
 
  #     so it does not work when $(somedir) is undefined and
2480
 
  #     $(DESTDIR) is not.
2481
 
  #  To support the latter case, we have to write
2482
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2483
 
  #  so the `.' trick is pointless.
2484
 
  mkdir_p='mkdir -p --'
 
2474
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2475
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2476
if test -z "$MKDIR_P"; then
 
2477
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2478
  echo $ECHO_N "(cached) $ECHO_C" >&6
2485
2479
else
2486
 
  # On NextStep and OpenStep, the `mkdir' command does not
2487
 
  # recognize any option.  It will interpret all options as
2488
 
  # directories to create, and then abort because `.' already
2489
 
  # exists.
2490
 
  for d in ./-p ./--version;
2491
 
  do
2492
 
    test -d $d && rmdir $d
2493
 
  done
2494
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2495
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2496
 
    mkdir_p='$(mkinstalldirs)'
 
2480
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2481
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2482
do
 
2483
  IFS=$as_save_IFS
 
2484
  test -z "$as_dir" && as_dir=.
 
2485
  for ac_prog in mkdir gmkdir; do
 
2486
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2487
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2488
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2489
             'mkdir (GNU coreutils) '* | \
 
2490
             'mkdir (coreutils) '* | \
 
2491
             'mkdir (fileutils) '4.1*)
 
2492
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2493
               break 3;;
 
2494
           esac
 
2495
         done
 
2496
       done
 
2497
done
 
2498
IFS=$as_save_IFS
 
2499
 
 
2500
fi
 
2501
 
 
2502
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2503
    MKDIR_P="$ac_cv_path_mkdir -p"
2497
2504
  else
2498
 
    mkdir_p='$(install_sh) -d'
 
2505
    # As a last resort, use the slow shell script.  Don't cache a
 
2506
    # value for MKDIR_P within a source directory, because that will
 
2507
    # break other packages using the cache if that directory is
 
2508
    # removed, or if the value is a relative name.
 
2509
    test -d ./--version && rmdir ./--version
 
2510
    MKDIR_P="$ac_install_sh -d"
2499
2511
  fi
2500
2512
fi
 
2513
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2514
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2515
 
 
2516
mkdir_p="$MKDIR_P"
 
2517
case $mkdir_p in
 
2518
  [\\/$]* | ?:[\\/]*) ;;
 
2519
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2520
esac
2501
2521
 
2502
2522
for ac_prog in gawk mawk nawk awk
2503
2523
do
2580
2600
fi
2581
2601
rmdir .tst 2>/dev/null
2582
2602
 
2583
 
# test to see if srcdir already configured
2584
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2585
 
   test -f $srcdir/config.status; then
2586
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2603
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2604
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2605
  # is not polluted with repeated "-I."
 
2606
  am__isrc=' -I$(srcdir)'
 
2607
  # test to see if srcdir already configured
 
2608
  if test -f $srcdir/config.status; then
 
2609
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2587
2610
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2588
2611
   { (exit 1); exit 1; }; }
 
2612
  fi
2589
2613
fi
2590
2614
 
2591
2615
# test whether we have cygpath
2600
2624
 
2601
2625
# Define the identity of the package.
2602
2626
 PACKAGE=clamav
2603
 
 VERSION="0.91.2"
 
2627
 VERSION="0.92"
2604
2628
 
2605
2629
 
2606
2630
cat >>confdefs.h <<_ACEOF
2628
2652
 
2629
2653
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2630
2654
 
2631
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2655
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2632
2656
 
2633
2657
# Installed binaries are usually stripped using `strip' when the user
2634
2658
# run `make install-strip'.  However `strip' might not be the right
2732
2756
fi
2733
2757
 
2734
2758
fi
2735
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2759
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2736
2760
 
2737
2761
# We need awk for the "check" target.  The system "awk" is bad on
2738
2762
# some platforms.
2749
2773
ac_config_headers="$ac_config_headers clamav-config.h"
2750
2774
 
2751
2775
 
2752
 
LC_CURRENT=2
2753
 
LC_REVISION=8
 
2776
LC_CURRENT=3
 
2777
LC_REVISION=3
2754
2778
LC_AGE=0
2755
2779
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
2756
2780
 
3768
3792
  am_depcomp="$ac_aux_dir/depcomp"
3769
3793
  AMDEPBACKSLASH='\'
3770
3794
fi
3771
 
 
3772
 
 
3773
 
if test "x$enable_dependency_tracking" != xno; then
 
3795
 if test "x$enable_dependency_tracking" != xno; then
3774
3796
  AMDEP_TRUE=
3775
3797
  AMDEP_FALSE='#'
3776
3798
else
3780
3802
 
3781
3803
 
3782
3804
 
3783
 
 
3784
3805
depcc="$CC"   am_compiler_list=
3785
3806
 
3786
3807
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3848
3869
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3849
3870
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3850
3871
         >/dev/null 2>conftest.err &&
 
3872
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3851
3873
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3852
3874
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3853
3875
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3877
3899
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3878
3900
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3879
3901
 
3880
 
 
3881
 
 
3882
 
if
 
3902
 if
3883
3903
  test "x$enable_dependency_tracking" != xno \
3884
3904
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3885
3905
  am__fastdepCC_TRUE=
4725
4745
  ;;
4726
4746
*-*-irix6*)
4727
4747
  # Find out which ABI we are using.
4728
 
  echo '#line 4728 "configure"' > conftest.$ac_ext
 
4748
  echo '#line 4748 "configure"' > conftest.$ac_ext
4729
4749
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730
4750
  (eval $ac_compile) 2>&5
4731
4751
  ac_status=$?
5956
5976
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5957
5977
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5958
5978
         >/dev/null 2>conftest.err &&
 
5979
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5959
5980
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5960
5981
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5961
5982
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5985
6006
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5986
6007
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5987
6008
 
5988
 
 
5989
 
 
5990
 
if
 
6009
 if
5991
6010
  test "x$enable_dependency_tracking" != xno \
5992
6011
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5993
6012
  am__fastdepCXX_TRUE=
7463
7482
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7464
7483
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7465
7484
   -e 's:$: $lt_compiler_flag:'`
7466
 
   (eval echo "\"\$as_me:7466: $lt_compile\"" >&5)
 
7485
   (eval echo "\"\$as_me:7485: $lt_compile\"" >&5)
7467
7486
   (eval "$lt_compile" 2>conftest.err)
7468
7487
   ac_status=$?
7469
7488
   cat conftest.err >&5
7470
 
   echo "$as_me:7470: \$? = $ac_status" >&5
 
7489
   echo "$as_me:7489: \$? = $ac_status" >&5
7471
7490
   if (exit $ac_status) && test -s "$ac_outfile"; then
7472
7491
     # The compiler can only warn and ignore the option if not recognized
7473
7492
     # So say no if there are warnings other than the usual output.
7753
7772
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7754
7773
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7755
7774
   -e 's:$: $lt_compiler_flag:'`
7756
 
   (eval echo "\"\$as_me:7756: $lt_compile\"" >&5)
 
7775
   (eval echo "\"\$as_me:7775: $lt_compile\"" >&5)
7757
7776
   (eval "$lt_compile" 2>conftest.err)
7758
7777
   ac_status=$?
7759
7778
   cat conftest.err >&5
7760
 
   echo "$as_me:7760: \$? = $ac_status" >&5
 
7779
   echo "$as_me:7779: \$? = $ac_status" >&5
7761
7780
   if (exit $ac_status) && test -s "$ac_outfile"; then
7762
7781
     # The compiler can only warn and ignore the option if not recognized
7763
7782
     # So say no if there are warnings other than the usual output.
7857
7876
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7858
7877
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7859
7878
   -e 's:$: $lt_compiler_flag:'`
7860
 
   (eval echo "\"\$as_me:7860: $lt_compile\"" >&5)
 
7879
   (eval echo "\"\$as_me:7879: $lt_compile\"" >&5)
7861
7880
   (eval "$lt_compile" 2>out/conftest.err)
7862
7881
   ac_status=$?
7863
7882
   cat out/conftest.err >&5
7864
 
   echo "$as_me:7864: \$? = $ac_status" >&5
 
7883
   echo "$as_me:7883: \$? = $ac_status" >&5
7865
7884
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7866
7885
   then
7867
7886
     # The compiler can only warn and ignore the option if not recognized
10219
10238
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10220
10239
  lt_status=$lt_dlunknown
10221
10240
  cat > conftest.$ac_ext <<EOF
10222
 
#line 10222 "configure"
 
10241
#line 10241 "configure"
10223
10242
#include "confdefs.h"
10224
10243
 
10225
10244
#if HAVE_DLFCN_H
10319
10338
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10320
10339
  lt_status=$lt_dlunknown
10321
10340
  cat > conftest.$ac_ext <<EOF
10322
 
#line 10322 "configure"
 
10341
#line 10341 "configure"
10323
10342
#include "confdefs.h"
10324
10343
 
10325
10344
#if HAVE_DLFCN_H
12739
12758
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12740
12759
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12741
12760
   -e 's:$: $lt_compiler_flag:'`
12742
 
   (eval echo "\"\$as_me:12742: $lt_compile\"" >&5)
 
12761
   (eval echo "\"\$as_me:12761: $lt_compile\"" >&5)
12743
12762
   (eval "$lt_compile" 2>conftest.err)
12744
12763
   ac_status=$?
12745
12764
   cat conftest.err >&5
12746
 
   echo "$as_me:12746: \$? = $ac_status" >&5
 
12765
   echo "$as_me:12765: \$? = $ac_status" >&5
12747
12766
   if (exit $ac_status) && test -s "$ac_outfile"; then
12748
12767
     # The compiler can only warn and ignore the option if not recognized
12749
12768
     # So say no if there are warnings other than the usual output.
12843
12862
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12844
12863
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12845
12864
   -e 's:$: $lt_compiler_flag:'`
12846
 
   (eval echo "\"\$as_me:12846: $lt_compile\"" >&5)
 
12865
   (eval echo "\"\$as_me:12865: $lt_compile\"" >&5)
12847
12866
   (eval "$lt_compile" 2>out/conftest.err)
12848
12867
   ac_status=$?
12849
12868
   cat out/conftest.err >&5
12850
 
   echo "$as_me:12850: \$? = $ac_status" >&5
 
12869
   echo "$as_me:12869: \$? = $ac_status" >&5
12851
12870
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12852
12871
   then
12853
12872
     # The compiler can only warn and ignore the option if not recognized
14420
14439
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14421
14440
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14422
14441
   -e 's:$: $lt_compiler_flag:'`
14423
 
   (eval echo "\"\$as_me:14423: $lt_compile\"" >&5)
 
14442
   (eval echo "\"\$as_me:14442: $lt_compile\"" >&5)
14424
14443
   (eval "$lt_compile" 2>conftest.err)
14425
14444
   ac_status=$?
14426
14445
   cat conftest.err >&5
14427
 
   echo "$as_me:14427: \$? = $ac_status" >&5
 
14446
   echo "$as_me:14446: \$? = $ac_status" >&5
14428
14447
   if (exit $ac_status) && test -s "$ac_outfile"; then
14429
14448
     # The compiler can only warn and ignore the option if not recognized
14430
14449
     # So say no if there are warnings other than the usual output.
14524
14543
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14525
14544
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14526
14545
   -e 's:$: $lt_compiler_flag:'`
14527
 
   (eval echo "\"\$as_me:14527: $lt_compile\"" >&5)
 
14546
   (eval echo "\"\$as_me:14546: $lt_compile\"" >&5)
14528
14547
   (eval "$lt_compile" 2>out/conftest.err)
14529
14548
   ac_status=$?
14530
14549
   cat out/conftest.err >&5
14531
 
   echo "$as_me:14531: \$? = $ac_status" >&5
 
14550
   echo "$as_me:14550: \$? = $ac_status" >&5
14532
14551
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14533
14552
   then
14534
14553
     # The compiler can only warn and ignore the option if not recognized
16724
16743
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16725
16744
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16726
16745
   -e 's:$: $lt_compiler_flag:'`
16727
 
   (eval echo "\"\$as_me:16727: $lt_compile\"" >&5)
 
16746
   (eval echo "\"\$as_me:16746: $lt_compile\"" >&5)
16728
16747
   (eval "$lt_compile" 2>conftest.err)
16729
16748
   ac_status=$?
16730
16749
   cat conftest.err >&5
16731
 
   echo "$as_me:16731: \$? = $ac_status" >&5
 
16750
   echo "$as_me:16750: \$? = $ac_status" >&5
16732
16751
   if (exit $ac_status) && test -s "$ac_outfile"; then
16733
16752
     # The compiler can only warn and ignore the option if not recognized
16734
16753
     # So say no if there are warnings other than the usual output.
17014
17033
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17015
17034
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17016
17035
   -e 's:$: $lt_compiler_flag:'`
17017
 
   (eval echo "\"\$as_me:17017: $lt_compile\"" >&5)
 
17036
   (eval echo "\"\$as_me:17036: $lt_compile\"" >&5)
17018
17037
   (eval "$lt_compile" 2>conftest.err)
17019
17038
   ac_status=$?
17020
17039
   cat conftest.err >&5
17021
 
   echo "$as_me:17021: \$? = $ac_status" >&5
 
17040
   echo "$as_me:17040: \$? = $ac_status" >&5
17022
17041
   if (exit $ac_status) && test -s "$ac_outfile"; then
17023
17042
     # The compiler can only warn and ignore the option if not recognized
17024
17043
     # So say no if there are warnings other than the usual output.
17118
17137
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17119
17138
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17120
17139
   -e 's:$: $lt_compiler_flag:'`
17121
 
   (eval echo "\"\$as_me:17121: $lt_compile\"" >&5)
 
17140
   (eval echo "\"\$as_me:17140: $lt_compile\"" >&5)
17122
17141
   (eval "$lt_compile" 2>out/conftest.err)
17123
17142
   ac_status=$?
17124
17143
   cat out/conftest.err >&5
17125
 
   echo "$as_me:17125: \$? = $ac_status" >&5
 
17144
   echo "$as_me:17144: \$? = $ac_status" >&5
17126
17145
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17127
17146
   then
17128
17147
     # The compiler can only warn and ignore the option if not recognized
19970
19989
fi
19971
19990
 
19972
19991
 
19973
 
 
19974
 
 
19975
 
 
19976
 
 
19977
 
 
19978
 
 
19979
 
 
19980
 
 
19981
 
 
19982
 
 
19983
 
 
19984
 
 
19985
 
 
19986
 
 
19987
 
 
19988
 
 
19989
 
 
19990
 
 
19991
 
 
19992
 
 
19993
 
 
19994
 
 
19995
 
 
19996
 
 
19997
 
 
19998
 
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 regex.h limits.h sys/filio.h sys/uio.h termios.h iconv.h stdbool.h pwd.h grp.h
 
19992
# Check whether --enable-gcc-vcheck was given.
 
19993
if test "${enable_gcc_vcheck+set}" = set; then
 
19994
  enableval=$enable_gcc_vcheck; gcc_check=$enableval
 
19995
else
 
19996
  gcc_check="yes"
 
19997
fi
 
19998
 
 
19999
 
 
20000
msg_gcc_check="use --disable-gcc-vcheck to disable this check. Before reporting any bugs check with a supported version of gcc"
 
20001
 
 
20002
if test "$gcc_check" = "yes"; then
 
20003
        if test "x$ac_compiler_gnu" = "xyes"; then
 
20004
                { echo "$as_me:$LINENO: checking for a supported version of gcc" >&5
 
20005
echo $ECHO_N "checking for a supported version of gcc... $ECHO_C" >&6; }
 
20006
                gcc_version=`${CC} -dumpversion`
 
20007
                case "${gcc_version}" in
 
20008
                        4.1.0*)
 
20009
                                { echo "$as_me:$LINENO: result: no (${gcc_version})" >&5
 
20010
echo "${ECHO_T}no (${gcc_version})" >&6; }
 
20011
                                { { 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
 
20012
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;}
 
20013
   { (exit 1); exit 1; }; }
 
20014
                                ;;
 
20015
                        *)
 
20016
                                { echo "$as_me:$LINENO: result: ok (${gcc_version})" >&5
 
20017
echo "${ECHO_T}ok (${gcc_version})" >&6; }
 
20018
                                ;;
 
20019
        esac
 
20020
        fi
 
20021
fi
 
20022
 
 
20023
 
 
20024
{ echo "$as_me:$LINENO: checking for gcc bug PR27603" >&5
 
20025
echo $ECHO_N "checking for gcc bug PR27603... $ECHO_C" >&6; }
 
20026
if test "$cross_compiling" = yes; then
 
20027
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
20028
See \`config.log' for more details." >&5
 
20029
echo "$as_me: error: cannot run test program while cross compiling
 
20030
See \`config.log' for more details." >&2;}
 
20031
   { (exit 1); exit 1; }; }
 
20032
else
 
20033
  cat >conftest.$ac_ext <<_ACEOF
 
20034
/* confdefs.h.  */
 
20035
_ACEOF
 
20036
cat confdefs.h >>conftest.$ac_ext
 
20037
cat >>conftest.$ac_ext <<_ACEOF
 
20038
/* end confdefs.h.  */
 
20039
 
 
20040
/* (C) Richard Guenther */
 
20041
void exit (int);
 
20042
void abort (void);
 
20043
int a;
 
20044
int main()
 
20045
{
 
20046
  int j;
 
20047
  for (j = 0; j < 6; j++)
 
20048
  {
 
20049
    if ((unsigned)j - 3 <= 1)
 
20050
      exit (0);
 
20051
    a = 1000 * (6 - j);
 
20052
  }
 
20053
  abort ();
 
20054
}
 
20055
 
 
20056
_ACEOF
 
20057
rm -f conftest$ac_exeext
 
20058
if { (ac_try="$ac_link"
 
20059
case "(($ac_try" in
 
20060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20061
  *) ac_try_echo=$ac_try;;
 
20062
esac
 
20063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20064
  (eval "$ac_link") 2>&5
 
20065
  ac_status=$?
 
20066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20067
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20068
  { (case "(($ac_try" in
 
20069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20070
  *) ac_try_echo=$ac_try;;
 
20071
esac
 
20072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20073
  (eval "$ac_try") 2>&5
 
20074
  ac_status=$?
 
20075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20076
  (exit $ac_status); }; }; then
 
20077
  { echo "$as_me:$LINENO: result: ok, bug not present" >&5
 
20078
echo "${ECHO_T}ok, bug not present" >&6; }
 
20079
else
 
20080
  echo "$as_me: program exited with status $ac_status" >&5
 
20081
echo "$as_me: failed program was:" >&5
 
20082
sed 's/^/| /' conftest.$ac_ext >&5
 
20083
 
 
20084
( exit $ac_status )
 
20085
{ { 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
 
20086
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;}
 
20087
   { (exit 1); exit 1; }; }
 
20088
fi
 
20089
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20090
fi
 
20091
 
 
20092
 
 
20093
 
 
20094
{ echo "$as_me:$LINENO: checking for gcc bug PR28045" >&5
 
20095
echo $ECHO_N "checking for gcc bug PR28045... $ECHO_C" >&6; }
 
20096
if test "$cross_compiling" = yes; then
 
20097
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
20098
See \`config.log' for more details." >&5
 
20099
echo "$as_me: error: cannot run test program while cross compiling
 
20100
See \`config.log' for more details." >&2;}
 
20101
   { (exit 1); exit 1; }; }
 
20102
else
 
20103
  cat >conftest.$ac_ext <<_ACEOF
 
20104
/* confdefs.h.  */
 
20105
_ACEOF
 
20106
cat confdefs.h >>conftest.$ac_ext
 
20107
cat >>conftest.$ac_ext <<_ACEOF
 
20108
/* end confdefs.h.  */
 
20109
 
 
20110
/* (C) Andrew Pinski */
 
20111
extern void abort(void);
 
20112
struct a
 
20113
{
 
20114
   unsigned int bits : 1;
 
20115
   signed long val : ((sizeof(long) * 8) - 1);
 
20116
};
 
20117
int Fnegate (struct a b)
 
20118
{
 
20119
  if ((-((long)b.val)) <= ((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL))
 
20120
      && (-((long)b.val)) >= (-(((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL))) - 1))
 
20121
     return 0 ;
 
20122
  abort ();
 
20123
}
 
20124
int main ()
 
20125
{
 
20126
  struct a b = {1, 1};
 
20127
  Fnegate (b);
 
20128
  return 0;
 
20129
}
 
20130
 
 
20131
_ACEOF
 
20132
rm -f conftest$ac_exeext
 
20133
if { (ac_try="$ac_link"
 
20134
case "(($ac_try" in
 
20135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20136
  *) ac_try_echo=$ac_try;;
 
20137
esac
 
20138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20139
  (eval "$ac_link") 2>&5
 
20140
  ac_status=$?
 
20141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20142
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20143
  { (case "(($ac_try" in
 
20144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20145
  *) ac_try_echo=$ac_try;;
 
20146
esac
 
20147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20148
  (eval "$ac_try") 2>&5
 
20149
  ac_status=$?
 
20150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20151
  (exit $ac_status); }; }; then
 
20152
  { echo "$as_me:$LINENO: result: ok, bug not present" >&5
 
20153
echo "${ECHO_T}ok, bug not present" >&6; }
 
20154
else
 
20155
  echo "$as_me: program exited with status $ac_status" >&5
 
20156
echo "$as_me: failed program was:" >&5
 
20157
sed 's/^/| /' conftest.$ac_ext >&5
 
20158
 
 
20159
( exit $ac_status )
 
20160
{ { 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
 
20161
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;}
 
20162
   { (exit 1); exit 1; }; }
 
20163
fi
 
20164
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20165
fi
 
20166
 
 
20167
 
 
20168
 
 
20169
{ echo "$as_me:$LINENO: checking for gcc bug PR26763-2" >&5
 
20170
echo $ECHO_N "checking for gcc bug PR26763-2... $ECHO_C" >&6; }
 
20171
if test "$cross_compiling" = yes; then
 
20172
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
20173
See \`config.log' for more details." >&5
 
20174
echo "$as_me: error: cannot run test program while cross compiling
 
20175
See \`config.log' for more details." >&2;}
 
20176
   { (exit 1); exit 1; }; }
 
20177
else
 
20178
  cat >conftest.$ac_ext <<_ACEOF
 
20179
/* confdefs.h.  */
 
20180
_ACEOF
 
20181
cat confdefs.h >>conftest.$ac_ext
 
20182
cat >>conftest.$ac_ext <<_ACEOF
 
20183
/* end confdefs.h.  */
 
20184
 
 
20185
/* (C) Richard Guenther */
 
20186
extern void abort(void);
 
20187
 
 
20188
int try (char *a, int d)
 
20189
{
 
20190
  return a + d > a;
 
20191
}
 
20192
 
 
20193
int main(void)
 
20194
{
 
20195
  char bla[100];
 
20196
 
 
20197
  if (try (bla + 50, -1))
 
20198
    abort ();
 
20199
 
 
20200
  return 0;
 
20201
}
 
20202
 
 
20203
_ACEOF
 
20204
rm -f conftest$ac_exeext
 
20205
if { (ac_try="$ac_link"
 
20206
case "(($ac_try" in
 
20207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20208
  *) ac_try_echo=$ac_try;;
 
20209
esac
 
20210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20211
  (eval "$ac_link") 2>&5
 
20212
  ac_status=$?
 
20213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20214
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20215
  { (case "(($ac_try" in
 
20216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20217
  *) ac_try_echo=$ac_try;;
 
20218
esac
 
20219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20220
  (eval "$ac_try") 2>&5
 
20221
  ac_status=$?
 
20222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20223
  (exit $ac_status); }; }; then
 
20224
  { echo "$as_me:$LINENO: result: ok, bug not present" >&5
 
20225
echo "${ECHO_T}ok, bug not present" >&6; }
 
20226
else
 
20227
  echo "$as_me: program exited with status $ac_status" >&5
 
20228
echo "$as_me: failed program was:" >&5
 
20229
sed 's/^/| /' conftest.$ac_ext >&5
 
20230
 
 
20231
( exit $ac_status )
 
20232
{ { 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
 
20233
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;}
 
20234
   { (exit 1); exit 1; }; }
 
20235
fi
 
20236
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20237
fi
 
20238
 
 
20239
 
 
20240
 
 
20241
{ echo "$as_me:$LINENO: checking for valid code generation of CLI_ISCONTAINED" >&5
 
20242
echo $ECHO_N "checking for valid code generation of CLI_ISCONTAINED... $ECHO_C" >&6; }
 
20243
if test "$cross_compiling" = yes; then
 
20244
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
20245
See \`config.log' for more details." >&5
 
20246
echo "$as_me: error: cannot run test program while cross compiling
 
20247
See \`config.log' for more details." >&2;}
 
20248
   { (exit 1); exit 1; }; }
 
20249
else
 
20250
  cat >conftest.$ac_ext <<_ACEOF
 
20251
/* confdefs.h.  */
 
20252
_ACEOF
 
20253
cat confdefs.h >>conftest.$ac_ext
 
20254
cat >>conftest.$ac_ext <<_ACEOF
 
20255
/* end confdefs.h.  */
 
20256
 
 
20257
#include <stdio.h>
 
20258
static struct v{
 
20259
        char* dst;
 
20260
        unsigned long dsize;
 
20261
        unsigned long dcur;
 
20262
        unsigned long backsize;
 
20263
        signed long unp_offset;
 
20264
} values[] = {
 
20265
        {(char*)0xf78ab008, 0x2e000, 1, 4, 0xfffff9f3},
 
20266
        {(char*)0xb7af1008, 0x2e000, 1, 4, 0xfffff9f3}
 
20267
 
 
20268
};
 
20269
extern void abort(void);
 
20270
 
 
20271
#define CLI_ISCONTAINED(bb, bb_size, sb, sb_size)       \
 
20272
    (bb_size > 0 && sb_size > 0 && sb_size <= bb_size   \
 
20273
     && sb >= bb && sb + sb_size <= bb + bb_size && sb + sb_size > bb)
 
20274
 
 
20275
int main()
 
20276
{
 
20277
        int i;
 
20278
        for(i=0;i<sizeof(values)/sizeof(values[0]);i++) {
 
20279
                struct v* v= &values[i];
 
20280
                char* dst = v->dst;
 
20281
                unsigned long* dsize = &v->dsize;
 
20282
                unsigned long dcur = v->dcur;
 
20283
                unsigned long backsize = v->backsize-1;
 
20284
                signed long  unp_offset = v->unp_offset;
 
20285
 
 
20286
                if(!CLI_ISCONTAINED(dst, *dsize, dst+dcur+unp_offset, backsize) ||
 
20287
                                !CLI_ISCONTAINED(dst, *dsize,dst+dcur,backsize) || unp_offset >= 0)  {
 
20288
                        continue;
 
20289
                }
 
20290
                abort();
 
20291
        }
 
20292
        return 0;
 
20293
}
 
20294
 
 
20295
_ACEOF
 
20296
rm -f conftest$ac_exeext
 
20297
if { (ac_try="$ac_link"
 
20298
case "(($ac_try" in
 
20299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20300
  *) ac_try_echo=$ac_try;;
 
20301
esac
 
20302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20303
  (eval "$ac_link") 2>&5
 
20304
  ac_status=$?
 
20305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20306
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20307
  { (case "(($ac_try" in
 
20308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20309
  *) ac_try_echo=$ac_try;;
 
20310
esac
 
20311
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20312
  (eval "$ac_try") 2>&5
 
20313
  ac_status=$?
 
20314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20315
  (exit $ac_status); }; }; then
 
20316
  { echo "$as_me:$LINENO: result: ok, bug not present" >&5
 
20317
echo "${ECHO_T}ok, bug not present" >&6; }
 
20318
else
 
20319
  echo "$as_me: program exited with status $ac_status" >&5
 
20320
echo "$as_me: failed program was:" >&5
 
20321
sed 's/^/| /' conftest.$ac_ext >&5
 
20322
 
 
20323
( exit $ac_status )
 
20324
{ { echo "$as_me:$LINENO: error: your compiler has a bug that causes clamav 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670" >&5
 
20325
echo "$as_me: error: your compiler has a bug that causes clamav 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670" >&2;}
 
20326
   { (exit 1); exit 1; }; }
 
20327
fi
 
20328
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20329
fi
 
20330
 
 
20331
 
 
20332
 
 
20333
 
 
20334
 
 
20335
 
 
20336
 
 
20337
 
 
20338
 
 
20339
 
 
20340
 
 
20341
 
 
20342
 
 
20343
 
 
20344
 
 
20345
 
 
20346
 
 
20347
 
 
20348
 
 
20349
 
 
20350
 
 
20351
 
 
20352
 
 
20353
 
 
20354
 
 
20355
 
 
20356
 
 
20357
 
 
20358
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 iconv.h stdbool.h pwd.h grp.h
19999
20359
do
20000
20360
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20001
20361
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21681
22041
 
21682
22042
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21683
22043
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
21684
 
 
21685
 
 
21686
 
if test $USE_MAINTAINER_MODE = yes; then
 
22044
   if test $USE_MAINTAINER_MODE = yes; then
21687
22045
  MAINTAINER_MODE_TRUE=
21688
22046
  MAINTAINER_MODE_FALSE='#'
21689
22047
else
22127
22485
 
22128
22486
fi
22129
22487
 
22130
 
# Check whether --enable-ncore was given.
22131
 
if test "${enable_ncore+set}" = set; then
22132
 
  enableval=$enable_ncore; want_ncore=$enableval
22133
 
else
22134
 
  want_ncore="auto"
22135
 
fi
22136
 
 
22137
 
 
22138
 
if test "$want_ncore" = "auto"
22139
 
then
22140
 
    { echo "$as_me:$LINENO: checking for sn_sigscan_initdb in -lsn_sigscan" >&5
22141
 
echo $ECHO_N "checking for sn_sigscan_initdb in -lsn_sigscan... $ECHO_C" >&6; }
22142
 
if test "${ac_cv_lib_sn_sigscan_sn_sigscan_initdb+set}" = set; then
22143
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22144
 
else
22145
 
  ac_check_lib_save_LIBS=$LIBS
22146
 
LIBS="-lsn_sigscan  $LIBS"
22147
 
cat >conftest.$ac_ext <<_ACEOF
22148
 
/* confdefs.h.  */
22149
 
_ACEOF
22150
 
cat confdefs.h >>conftest.$ac_ext
22151
 
cat >>conftest.$ac_ext <<_ACEOF
22152
 
/* end confdefs.h.  */
22153
 
 
22154
 
/* Override any GCC internal prototype to avoid an error.
22155
 
   Use char because int might match the return type of a GCC
22156
 
   builtin and then its argument prototype would still apply.  */
22157
 
#ifdef __cplusplus
22158
 
extern "C"
22159
 
#endif
22160
 
char sn_sigscan_initdb ();
22161
 
int
22162
 
main ()
22163
 
{
22164
 
return sn_sigscan_initdb ();
22165
 
  ;
22166
 
  return 0;
22167
 
}
22168
 
_ACEOF
22169
 
rm -f conftest.$ac_objext conftest$ac_exeext
22170
 
if { (ac_try="$ac_link"
22171
 
case "(($ac_try" in
22172
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173
 
  *) ac_try_echo=$ac_try;;
22174
 
esac
22175
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176
 
  (eval "$ac_link") 2>conftest.er1
22177
 
  ac_status=$?
22178
 
  grep -v '^ *+' conftest.er1 >conftest.err
22179
 
  rm -f conftest.er1
22180
 
  cat conftest.err >&5
22181
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182
 
  (exit $ac_status); } && {
22183
 
         test -z "$ac_c_werror_flag" ||
22184
 
         test ! -s conftest.err
22185
 
       } && test -s conftest$ac_exeext &&
22186
 
       $as_test_x conftest$ac_exeext; then
22187
 
  ac_cv_lib_sn_sigscan_sn_sigscan_initdb=yes
22188
 
else
22189
 
  echo "$as_me: failed program was:" >&5
22190
 
sed 's/^/| /' conftest.$ac_ext >&5
22191
 
 
22192
 
        ac_cv_lib_sn_sigscan_sn_sigscan_initdb=no
22193
 
fi
22194
 
 
22195
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22196
 
      conftest$ac_exeext conftest.$ac_ext
22197
 
LIBS=$ac_check_lib_save_LIBS
22198
 
fi
22199
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_sn_sigscan_sn_sigscan_initdb" >&5
22200
 
echo "${ECHO_T}$ac_cv_lib_sn_sigscan_sn_sigscan_initdb" >&6; }
22201
 
if test $ac_cv_lib_sn_sigscan_sn_sigscan_initdb = yes; then
22202
 
  have_sigscan=yes
22203
 
fi
22204
 
 
22205
 
    if test "$have_sigscan" = "yes"; then
22206
 
        want_ncore="yes"
22207
 
    fi
22208
 
fi
22209
 
 
22210
 
if test "$want_ncore" = "yes"
22211
 
then
22212
 
    if test "${ac_cv_header_dlfcn_h+set}" = set; then
22213
 
  { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
22214
 
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
22215
 
if test "${ac_cv_header_dlfcn_h+set}" = set; then
22216
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22217
 
fi
22218
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
22219
 
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
22220
 
else
22221
 
  # Is the header compilable?
22222
 
{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
22223
 
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
22224
 
cat >conftest.$ac_ext <<_ACEOF
22225
 
/* confdefs.h.  */
22226
 
_ACEOF
22227
 
cat confdefs.h >>conftest.$ac_ext
22228
 
cat >>conftest.$ac_ext <<_ACEOF
22229
 
/* end confdefs.h.  */
22230
 
$ac_includes_default
22231
 
#include <dlfcn.h>
22232
 
_ACEOF
22233
 
rm -f conftest.$ac_objext
22234
 
if { (ac_try="$ac_compile"
22235
 
case "(($ac_try" in
22236
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237
 
  *) ac_try_echo=$ac_try;;
22238
 
esac
22239
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22240
 
  (eval "$ac_compile") 2>conftest.er1
22241
 
  ac_status=$?
22242
 
  grep -v '^ *+' conftest.er1 >conftest.err
22243
 
  rm -f conftest.er1
22244
 
  cat conftest.err >&5
22245
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246
 
  (exit $ac_status); } && {
22247
 
         test -z "$ac_c_werror_flag" ||
22248
 
         test ! -s conftest.err
22249
 
       } && test -s conftest.$ac_objext; then
22250
 
  ac_header_compiler=yes
22251
 
else
22252
 
  echo "$as_me: failed program was:" >&5
22253
 
sed 's/^/| /' conftest.$ac_ext >&5
22254
 
 
22255
 
        ac_header_compiler=no
22256
 
fi
22257
 
 
22258
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22260
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22261
 
 
22262
 
# Is the header present?
22263
 
{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
22264
 
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
22265
 
cat >conftest.$ac_ext <<_ACEOF
22266
 
/* confdefs.h.  */
22267
 
_ACEOF
22268
 
cat confdefs.h >>conftest.$ac_ext
22269
 
cat >>conftest.$ac_ext <<_ACEOF
22270
 
/* end confdefs.h.  */
22271
 
#include <dlfcn.h>
22272
 
_ACEOF
22273
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22274
 
case "(($ac_try" in
22275
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276
 
  *) ac_try_echo=$ac_try;;
22277
 
esac
22278
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22280
 
  ac_status=$?
22281
 
  grep -v '^ *+' conftest.er1 >conftest.err
22282
 
  rm -f conftest.er1
22283
 
  cat conftest.err >&5
22284
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285
 
  (exit $ac_status); } >/dev/null && {
22286
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22287
 
         test ! -s conftest.err
22288
 
       }; then
22289
 
  ac_header_preproc=yes
22290
 
else
22291
 
  echo "$as_me: failed program was:" >&5
22292
 
sed 's/^/| /' conftest.$ac_ext >&5
22293
 
 
22294
 
  ac_header_preproc=no
22295
 
fi
22296
 
 
22297
 
rm -f conftest.err conftest.$ac_ext
22298
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22299
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22300
 
 
22301
 
# So?  What about this header?
22302
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22303
 
  yes:no: )
22304
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
22305
 
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22306
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
22307
 
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
22308
 
    ac_header_preproc=yes
22309
 
    ;;
22310
 
  no:yes:* )
22311
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
22312
 
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
22313
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
22314
 
echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
22315
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
22316
 
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
22317
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
22318
 
echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22319
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
22320
 
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
22321
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
22322
 
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
22323
 
 
22324
 
    ;;
22325
 
esac
22326
 
{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
22327
 
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
22328
 
if test "${ac_cv_header_dlfcn_h+set}" = set; then
22329
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22330
 
else
22331
 
  ac_cv_header_dlfcn_h=$ac_header_preproc
22332
 
fi
22333
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
22334
 
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
22335
 
 
22336
 
fi
22337
 
if test $ac_cv_header_dlfcn_h = yes; then
22338
 
  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -ldl" ;
22339
 
cat >>confdefs.h <<\_ACEOF
22340
 
#define HAVE_NCORE 1
22341
 
_ACEOF
22342
 
 
22343
 
else
22344
 
  { echo "$as_me:$LINENO: WARNING: ****** NodalCore support disabled (no support for dlopen)" >&5
22345
 
echo "$as_me: WARNING: ****** NodalCore support disabled (no support for dlopen)" >&2;}
22346
 
fi
22347
 
 
22348
 
 
22349
 
fi
 
22488
# Check whether --enable-unrar was given.
 
22489
if test "${enable_unrar+set}" = set; then
 
22490
  enableval=$enable_unrar; want_unrar=$enableval
 
22491
else
 
22492
  want_unrar="yes"
 
22493
fi
 
22494
 
22350
22495
 
22351
22496
# Check whether --enable-dns was given.
22352
22497
if test "${enable_dns+set}" = set; then
24061
24206
 
24062
24207
fi
24063
24208
 
24064
 
 
24065
 
 
24066
 
if test "$have_pthreads" = "yes"; then
 
24209
 if test "$have_pthreads" = "yes"; then
24067
24210
  BUILD_CLAMD_TRUE=
24068
24211
  BUILD_CLAMD_FALSE='#'
24069
24212
else
24071
24214
  BUILD_CLAMD_FALSE=
24072
24215
fi
24073
24216
 
24074
 
 
24075
 
 
24076
 
if test "$have_milter" = "yes"; then
 
24217
 if test "$have_milter" = "yes"; then
24077
24218
  HAVE_MILTER_TRUE=
24078
24219
  HAVE_MILTER_FALSE='#'
24079
24220
else
24081
24222
  HAVE_MILTER_FALSE=
24082
24223
fi
24083
24224
 
 
24225
 if test "$want_unrar" = "yes"; then
 
24226
  ENABLE_UNRAR_TRUE=
 
24227
  ENABLE_UNRAR_FALSE='#'
 
24228
else
 
24229
  ENABLE_UNRAR_TRUE='#'
 
24230
  ENABLE_UNRAR_FALSE=
 
24231
fi
 
24232
 
24084
24233
 
24085
24234
if test "$have_pthreads" = "yes"
24086
24235
then
24091
24240
 
24092
24241
fi
24093
24242
 
 
24243
if test "$want_unrar" = "yes"
 
24244
then
 
24245
 
 
24246
cat >>confdefs.h <<\_ACEOF
 
24247
#define ENABLE_UNRAR 1
 
24248
_ACEOF
 
24249
 
 
24250
fi
 
24251
 
24094
24252
 
24095
24253
 
24096
24254
for ac_func in recvmsg sendmsg
26168
26326
{ echo "$as_me:$LINENO: result: $have_signed_rightshift_extended" >&5
26169
26327
echo "${ECHO_T}$have_signed_rightshift_extended" >&6; };
26170
26328
 
26171
 
 
26172
 
ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 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"
 
26329
{ echo "$as_me:$LINENO: checking whether FPU byte ordering is bigendian" >&5
 
26330
echo $ECHO_N "checking whether FPU byte ordering is bigendian... $ECHO_C" >&6; }
 
26331
if test "${ac_cv_c_fpu_bigendian+set}" = set; then
 
26332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26333
else
 
26334
  ac_cv_c_fpu_bigendian=unknown
 
26335
cat >conftest.$ac_ext <<_ACEOF
 
26336
/* confdefs.h.  */
 
26337
_ACEOF
 
26338
cat confdefs.h >>conftest.$ac_ext
 
26339
cat >>conftest.$ac_ext <<_ACEOF
 
26340
/* end confdefs.h.  */
 
26341
double d = 3815911171354501045744583353695226502220105394563506259449467213186125718792664588210662403287568710818873279842508553551908601408568128557088985172985437412593385138085986771664896.0;
 
26342
_ACEOF
 
26343
rm -f conftest.$ac_objext
 
26344
if { (ac_try="$ac_compile"
 
26345
case "(($ac_try" in
 
26346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26347
  *) ac_try_echo=$ac_try;;
 
26348
esac
 
26349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26350
  (eval "$ac_compile") 2>conftest.er1
 
26351
  ac_status=$?
 
26352
  grep -v '^ *+' conftest.er1 >conftest.err
 
26353
  rm -f conftest.er1
 
26354
  cat conftest.err >&5
 
26355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26356
  (exit $ac_status); } && {
 
26357
         test -z "$ac_c_werror_flag" ||
 
26358
         test ! -s conftest.err
 
26359
       } && test -s conftest.$ac_objext; then
 
26360
 
 
26361
if grep emmeelle conftest.$ac_objext >/dev/null 2>&1 ; then
 
26362
        ac_cv_c_fpu_bigendian=yes
 
26363
fi
 
26364
if grep elleemme conftest.$ac_objext >/dev/null 2>&1 ; then
 
26365
        ac_cv_c_fpu_bigendian=no
 
26366
fi
 
26367
 
 
26368
else
 
26369
  echo "$as_me: failed program was:" >&5
 
26370
sed 's/^/| /' conftest.$ac_ext >&5
 
26371
 
 
26372
 
 
26373
fi
 
26374
 
 
26375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26376
fi
 
26377
{ echo "$as_me:$LINENO: result: $ac_cv_c_fpu_bigendian" >&5
 
26378
echo "${ECHO_T}$ac_cv_c_fpu_bigendian" >&6; }
 
26379
case $ac_cv_c_fpu_bigendian in
 
26380
        yes)
 
26381
 
 
26382
cat >>confdefs.h <<\_ACEOF
 
26383
#define FPU_WORDS_BIGENDIAN 1
 
26384
_ACEOF
 
26385
 
 
26386
                ;;
 
26387
        no)
 
26388
 
 
26389
cat >>confdefs.h <<\_ACEOF
 
26390
#define FPU_WORDS_BIGENDIAN 0
 
26391
_ACEOF
 
26392
 
 
26393
                ;;
 
26394
        *)
 
26395
                { echo "$as_me:$LINENO: WARNING: Unable to determine FPU endianess, some features may not be available in this build" >&5
 
26396
echo "$as_me: WARNING: Unable to determine FPU endianess, some features may not be available in this build" >&2;}
 
26397
esac
 
26398
 
 
26399
 
 
26400
ac_config_files="$ac_config_files libclamunrar/Makefile libclamunrar_iface/Makefile libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 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"
26173
26401
 
26174
26402
cat >confcache <<\_ACEOF
26175
26403
# This file is a shell script that caches the results of configure
26309
26537
Usually this means the macro was only invoked conditionally." >&2;}
26310
26538
   { (exit 1); exit 1; }; }
26311
26539
fi
 
26540
if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then
 
26541
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNRAR\" was never defined.
 
26542
Usually this means the macro was only invoked conditionally." >&5
 
26543
echo "$as_me: error: conditional \"ENABLE_UNRAR\" was never defined.
 
26544
Usually this means the macro was only invoked conditionally." >&2;}
 
26545
   { (exit 1); exit 1; }; }
 
26546
fi
26312
26547
 
26313
26548
: ${CONFIG_STATUS=./config.status}
26314
26549
ac_clean_files_save=$ac_clean_files
26673
26908
ac_pwd='$ac_pwd'
26674
26909
srcdir='$srcdir'
26675
26910
INSTALL='$INSTALL'
 
26911
MKDIR_P='$MKDIR_P'
26676
26912
_ACEOF
26677
26913
 
26678
26914
cat >>$CONFIG_STATUS <<\_ACEOF
26777
27013
  case $ac_config_target in
26778
27014
    "clamav-config.h") CONFIG_HEADERS="$CONFIG_HEADERS clamav-config.h" ;;
26779
27015
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
27016
    "libclamunrar/Makefile") CONFIG_FILES="$CONFIG_FILES libclamunrar/Makefile" ;;
 
27017
    "libclamunrar_iface/Makefile") CONFIG_FILES="$CONFIG_FILES libclamunrar_iface/Makefile" ;;
26780
27018
    "libclamav/Makefile") CONFIG_FILES="$CONFIG_FILES libclamav/Makefile" ;;
26781
27019
    "clamscan/Makefile") CONFIG_FILES="$CONFIG_FILES clamscan/Makefile" ;;
26782
27020
    "database/Makefile") CONFIG_FILES="$CONFIG_FILES database/Makefile" ;;
26914
27152
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26915
27153
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26916
27154
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
27155
am__isrc!$am__isrc$ac_delim
26917
27156
CYGPATH_W!$CYGPATH_W$ac_delim
26918
27157
PACKAGE!$PACKAGE$ac_delim
26919
27158
VERSION!$VERSION$ac_delim
26958
27197
RANLIB!$RANLIB$ac_delim
26959
27198
CPP!$CPP$ac_delim
26960
27199
CXX!$CXX$ac_delim
26961
 
CXXFLAGS!$CXXFLAGS$ac_delim
26962
27200
_ACEOF
26963
27201
 
26964
27202
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27000
27238
ac_delim='%!_!# '
27001
27239
for ac_last_try in false false false false false :; do
27002
27240
  cat >conf$$subs.sed <<_ACEOF
 
27241
CXXFLAGS!$CXXFLAGS$ac_delim
27003
27242
ac_ct_CXX!$ac_ct_CXX$ac_delim
27004
27243
CXXDEPMODE!$CXXDEPMODE$ac_delim
27005
27244
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27025
27264
BUILD_CLAMD_FALSE!$BUILD_CLAMD_FALSE$ac_delim
27026
27265
HAVE_MILTER_TRUE!$HAVE_MILTER_TRUE$ac_delim
27027
27266
HAVE_MILTER_FALSE!$HAVE_MILTER_FALSE$ac_delim
 
27267
ENABLE_UNRAR_TRUE!$ENABLE_UNRAR_TRUE$ac_delim
 
27268
ENABLE_UNRAR_FALSE!$ENABLE_UNRAR_FALSE$ac_delim
27028
27269
GETENT!$GETENT$ac_delim
27029
27270
CLAMAVUSER!$CLAMAVUSER$ac_delim
27030
27271
CLAMAVGROUP!$CLAMAVGROUP$ac_delim
27032
27273
LTLIBOBJS!$LTLIBOBJS$ac_delim
27033
27274
_ACEOF
27034
27275
 
27035
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
 
27276
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
27036
27277
    break
27037
27278
  elif $ac_last_try; then
27038
27279
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27259
27500
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27260
27501
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27261
27502
  esac
 
27503
  ac_MKDIR_P=$MKDIR_P
 
27504
  case $MKDIR_P in
 
27505
  [\\/$]* | ?:[\\/]* ) ;;
 
27506
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
27507
  esac
27262
27508
_ACEOF
27263
27509
 
27264
27510
cat >>$CONFIG_STATUS <<\_ACEOF
27312
27558
s&@abs_builddir@&$ac_abs_builddir&;t t
27313
27559
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27314
27560
s&@INSTALL@&$ac_INSTALL&;t t
 
27561
s&@MKDIR_P@&$ac_MKDIR_P&;t t
27315
27562
$ac_datarootdir_hack
27316
27563
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27317
27564
 
27476
27723
  # some people rename them; so instead we look at the file content.
27477
27724
  # Grep'ing the first line is not enough: some people post-process
27478
27725
  # each Makefile.in and add a new line on top of each file to say so.
27479
 
  # So let's grep whole file.
27480
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
27726
  # Grep'ing the whole file is not good either: AIX grep has a line
 
27727
  # limit of 2048, but all sed's we know have understand at least 4000.
 
27728
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27481
27729
    dirpart=`$as_dirname -- "$mf" ||
27482
27730
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27483
27731
         X"$mf" : 'X\(//\)[^/]' \| \