4594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4595
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4596
if ${ac_cv_path_SED+:} false; then :
4426
ac_cpp='$CPP $CPPFLAGS'
4427
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4431
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4432
# On Suns, sometimes $CPP names a directory.
4433
if test -n "$CPP" && test -d "$CPP"; then
4436
if test -z "$CPP"; then
4437
if ${ac_cv_prog_CPP+:} false; then :
4597
4438
$as_echo_n "(cached) " >&6
4599
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4600
for ac_i in 1 2 3 4 5 6 7; do
4601
ac_script="$ac_script$as_nl$ac_script"
4603
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4604
{ ac_script=; unset ac_script;}
4605
if test -z "$SED"; then
4606
ac_path_SED_found=false
4607
# Loop through the user's path and test for each of PROGNAME-LIST
4608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440
# Double quotes because CPP needs to be expanded
4441
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4444
for ac_c_preproc_warn_flag in '' yes
4612
test -z "$as_dir" && as_dir=.
4613
for ac_prog in sed gsed; do
4614
for ac_exec_ext in '' $ac_executable_extensions; do
4615
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4616
as_fn_executable_p "$ac_path_SED" || continue
4617
# Check for GNU ac_path_SED and select it if it is found.
4618
# Check for GNU $ac_path_SED
4619
case `"$ac_path_SED" --version 2>&1` in
4621
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4624
$as_echo_n 0123456789 >"conftest.in"
4627
cat "conftest.in" "conftest.in" >"conftest.tmp"
4628
mv "conftest.tmp" "conftest.in"
4629
cp "conftest.in" "conftest.nl"
4630
$as_echo '' >> "conftest.nl"
4631
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633
as_fn_arith $ac_count + 1 && ac_count=$as_val
4634
if test $ac_count -gt ${ac_path_SED_max-0}; then
4635
# Best one so far, save it but keep looking for a better one
4636
ac_cv_path_SED="$ac_path_SED"
4637
ac_path_SED_max=$ac_count
4639
# 10*(2^10) chars as input seems more than enough
4640
test $ac_count -gt 10 && break
4642
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645
$ac_path_SED_found && break 3
4446
# Use a header file that comes with gcc, so configuring glibc
4447
# with a fresh cross-compiler works.
4448
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4449
# <limits.h> exists even on freestanding compilers.
4450
# On the NeXT, cc -E runs the code through the compiler's parser,
4451
# not just through cpp. "Syntax error" is here to catch this case.
4452
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453
/* end confdefs.h. */
4455
# include <limits.h>
4457
# include <assert.h>
4461
if ac_fn_c_try_cpp "$LINENO"; then :
4464
# Broken: fails on valid input.
4467
rm -f conftest.err conftest.i conftest.$ac_ext
4469
# OK, works on sane cases. Now check whether nonexistent headers
4470
# can be detected and how.
4471
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472
/* end confdefs.h. */
4473
#include <ac_nonexistent.h>
4475
if ac_fn_c_try_cpp "$LINENO"; then :
4476
# Broken: success on invalid input.
4479
# Passes both tests.
4483
rm -f conftest.err conftest.i conftest.$ac_ext
4486
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487
rm -f conftest.i conftest.err conftest.$ac_ext
4488
if $ac_preproc_ok; then :
4650
if test -z "$ac_cv_path_SED"; then
4651
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4659
$as_echo "$ac_cv_path_SED" >&6; }
4660
SED="$ac_cv_path_SED"
4663
test -z "$SED" && SED=sed
4664
Xsed="$SED -e 1s/^X//"
4500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4501
$as_echo "$CPP" >&6; }
4503
for ac_c_preproc_warn_flag in '' yes
4505
# Use a header file that comes with gcc, so configuring glibc
4506
# with a fresh cross-compiler works.
4507
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508
# <limits.h> exists even on freestanding compilers.
4509
# On the NeXT, cc -E runs the code through the compiler's parser,
4510
# not just through cpp. "Syntax error" is here to catch this case.
4511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512
/* end confdefs.h. */
4514
# include <limits.h>
4516
# include <assert.h>
4520
if ac_fn_c_try_cpp "$LINENO"; then :
4523
# Broken: fails on valid input.
4526
rm -f conftest.err conftest.i conftest.$ac_ext
4528
# OK, works on sane cases. Now check whether nonexistent headers
4529
# can be detected and how.
4530
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531
/* end confdefs.h. */
4532
#include <ac_nonexistent.h>
4534
if ac_fn_c_try_cpp "$LINENO"; then :
4535
# Broken: success on invalid input.
4538
# Passes both tests.
4542
rm -f conftest.err conftest.i conftest.$ac_ext
4545
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546
rm -f conftest.i conftest.err conftest.$ac_ext
4547
if $ac_preproc_ok; then :
4550
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4553
See \`config.log' for more details" "$LINENO" 5; }
4557
ac_cpp='$CPP $CPPFLAGS'
4558
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676
4563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4803
4690
EGREP="$ac_cv_path_EGREP"
4693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4694
$as_echo_n "checking for ANSI C header files... " >&6; }
4695
if ${ac_cv_header_stdc+:} false; then :
4696
$as_echo_n "(cached) " >&6
4698
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699
/* end confdefs.h. */
4713
if ac_fn_c_try_compile "$LINENO"; then :
4714
ac_cv_header_stdc=yes
4716
ac_cv_header_stdc=no
4718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720
if test $ac_cv_header_stdc = yes; then
4721
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723
/* end confdefs.h. */
4727
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728
$EGREP "memchr" >/dev/null 2>&1; then :
4731
ac_cv_header_stdc=no
4737
if test $ac_cv_header_stdc = yes; then
4738
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740
/* end confdefs.h. */
4744
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745
$EGREP "free" >/dev/null 2>&1; then :
4748
ac_cv_header_stdc=no
4754
if test $ac_cv_header_stdc = yes; then
4755
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4756
if test "$cross_compiling" = yes; then :
4759
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760
/* end confdefs.h. */
4763
#if ((' ' & 0x0FF) == 0x020)
4764
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4765
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4767
# define ISLOWER(c) \
4768
(('a' <= (c) && (c) <= 'i') \
4769
|| ('j' <= (c) && (c) <= 'r') \
4770
|| ('s' <= (c) && (c) <= 'z'))
4771
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4774
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4779
for (i = 0; i < 256; i++)
4780
if (XOR (islower (i), ISLOWER (i))
4781
|| toupper (i) != TOUPPER (i))
4786
if ac_fn_c_try_run "$LINENO"; then :
4789
ac_cv_header_stdc=no
4791
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4792
conftest.$ac_objext conftest.beam conftest.$ac_ext
4797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4798
$as_echo "$ac_cv_header_stdc" >&6; }
4799
if test $ac_cv_header_stdc = yes; then
4801
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4805
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4806
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4807
inttypes.h stdint.h unistd.h
4809
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4810
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4812
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4813
cat >>confdefs.h <<_ACEOF
4814
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4823
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4824
if test "x$ac_cv_header_minix_config_h" = xyes; then :
4831
if test "$MINIX" = yes; then
4833
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4836
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4839
$as_echo "#define _MINIX 1" >>confdefs.h
4844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4845
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4846
if ${ac_cv_safe_to_define___extensions__+:} false; then :
4847
$as_echo_n "(cached) " >&6
4849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850
/* end confdefs.h. */
4852
# define __EXTENSIONS__ 1
4853
$ac_includes_default
4862
if ac_fn_c_try_compile "$LINENO"; then :
4863
ac_cv_safe_to_define___extensions__=yes
4865
ac_cv_safe_to_define___extensions__=no
4867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4870
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4871
test $ac_cv_safe_to_define___extensions__ = yes &&
4872
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4874
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4876
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4878
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4880
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4889
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
4892
major=`expr $LC_CURRENT - $LC_AGE`
4895
cat >>confdefs.h <<_ACEOF
4896
#define LIBCLAMAV_FULLVER "$major.$LC_AGE.$LC_REVISION"
4901
cat >>confdefs.h <<_ACEOF
4902
#define LIBCLAMAV_MAJORVER $major
4907
cat >>confdefs.h <<_ACEOF
4908
#define VERSION "$VERSION"
4912
cat >>confdefs.h <<_ACEOF
4913
#define VERSION_SUFFIX "$VERSION_SUFFIX"
4927
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4928
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4933
macro_version='2.4.2'
4934
macro_revision='1.3337'
4948
ltmain="$ac_aux_dir/ltmain.sh"
4950
# Backslashify metacharacters that are still active within
4951
# double-quoted strings.
4952
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4954
# Same as above, but do not quote variable references.
4955
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4957
# Sed substitution to delay expansion of an escaped shell variable in a
4958
# double_quote_subst'ed string.
4959
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4961
# Sed substitution to delay expansion of an escaped single quote.
4962
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4964
# Sed substitution to avoid accidental globbing in evaled expressions
4965
no_glob_subst='s/\*/\\\*/g'
4967
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4968
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4969
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4972
$as_echo_n "checking how to print strings... " >&6; }
4973
# Test print first, because it will be a builtin if present.
4974
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4975
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4977
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4980
# Use this function as a fallback that always works.
4981
func_fallback_echo ()
4983
eval 'cat <<_LTECHO_EOF
4987
ECHO='func_fallback_echo'
4990
# func_echo_all arg...
4991
# Invoke $ECHO with all args, space-separated.
4998
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4999
$as_echo "printf" >&6; } ;;
5000
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5001
$as_echo "print -r" >&6; } ;;
5002
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5003
$as_echo "cat" >&6; } ;;
5019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5020
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5021
if ${ac_cv_path_SED+:} false; then :
5022
$as_echo_n "(cached) " >&6
5024
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5025
for ac_i in 1 2 3 4 5 6 7; do
5026
ac_script="$ac_script$as_nl$ac_script"
5028
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5029
{ ac_script=; unset ac_script;}
5030
if test -z "$SED"; then
5031
ac_path_SED_found=false
5032
# Loop through the user's path and test for each of PROGNAME-LIST
5033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037
test -z "$as_dir" && as_dir=.
5038
for ac_prog in sed gsed; do
5039
for ac_exec_ext in '' $ac_executable_extensions; do
5040
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5041
as_fn_executable_p "$ac_path_SED" || continue
5042
# Check for GNU ac_path_SED and select it if it is found.
5043
# Check for GNU $ac_path_SED
5044
case `"$ac_path_SED" --version 2>&1` in
5046
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5049
$as_echo_n 0123456789 >"conftest.in"
5052
cat "conftest.in" "conftest.in" >"conftest.tmp"
5053
mv "conftest.tmp" "conftest.in"
5054
cp "conftest.in" "conftest.nl"
5055
$as_echo '' >> "conftest.nl"
5056
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5057
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5058
as_fn_arith $ac_count + 1 && ac_count=$as_val
5059
if test $ac_count -gt ${ac_path_SED_max-0}; then
5060
# Best one so far, save it but keep looking for a better one
5061
ac_cv_path_SED="$ac_path_SED"
5062
ac_path_SED_max=$ac_count
5064
# 10*(2^10) chars as input seems more than enough
5065
test $ac_count -gt 10 && break
5067
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5070
$ac_path_SED_found && break 3
5075
if test -z "$ac_cv_path_SED"; then
5076
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5084
$as_echo "$ac_cv_path_SED" >&6; }
5085
SED="$ac_cv_path_SED"
5088
test -z "$SED" && SED=sed
5089
Xsed="$SED -e 1s/^X//"
4806
5101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4807
5102
$as_echo_n "checking for fgrep... " >&6; }
4808
5103
if ${ac_cv_path_FGREP+:} false; then :
7713
ac_cpp='$CPP $CPPFLAGS'
7714
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7715
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7716
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7718
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7719
# On Suns, sometimes $CPP names a directory.
7720
if test -n "$CPP" && test -d "$CPP"; then
7723
if test -z "$CPP"; then
7724
if ${ac_cv_prog_CPP+:} false; then :
7725
$as_echo_n "(cached) " >&6
7727
# Double quotes because CPP needs to be expanded
7728
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7731
for ac_c_preproc_warn_flag in '' yes
7733
# Use a header file that comes with gcc, so configuring glibc
7734
# with a fresh cross-compiler works.
7735
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7736
# <limits.h> exists even on freestanding compilers.
7737
# On the NeXT, cc -E runs the code through the compiler's parser,
7738
# not just through cpp. "Syntax error" is here to catch this case.
7739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740
/* end confdefs.h. */
7742
# include <limits.h>
7744
# include <assert.h>
7748
if ac_fn_c_try_cpp "$LINENO"; then :
7751
# Broken: fails on valid input.
7754
rm -f conftest.err conftest.i conftest.$ac_ext
7756
# OK, works on sane cases. Now check whether nonexistent headers
7757
# can be detected and how.
7758
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759
/* end confdefs.h. */
7760
#include <ac_nonexistent.h>
7762
if ac_fn_c_try_cpp "$LINENO"; then :
7763
# Broken: success on invalid input.
7766
# Passes both tests.
7770
rm -f conftest.err conftest.i conftest.$ac_ext
7773
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7774
rm -f conftest.i conftest.err conftest.$ac_ext
7775
if $ac_preproc_ok; then :
7787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7788
$as_echo "$CPP" >&6; }
7790
for ac_c_preproc_warn_flag in '' yes
7792
# Use a header file that comes with gcc, so configuring glibc
7793
# with a fresh cross-compiler works.
7794
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7795
# <limits.h> exists even on freestanding compilers.
7796
# On the NeXT, cc -E runs the code through the compiler's parser,
7797
# not just through cpp. "Syntax error" is here to catch this case.
7798
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799
/* end confdefs.h. */
7801
# include <limits.h>
7803
# include <assert.h>
7807
if ac_fn_c_try_cpp "$LINENO"; then :
7810
# Broken: fails on valid input.
7813
rm -f conftest.err conftest.i conftest.$ac_ext
7815
# OK, works on sane cases. Now check whether nonexistent headers
7816
# can be detected and how.
7817
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818
/* end confdefs.h. */
7819
#include <ac_nonexistent.h>
7821
if ac_fn_c_try_cpp "$LINENO"; then :
7822
# Broken: success on invalid input.
7825
# Passes both tests.
7829
rm -f conftest.err conftest.i conftest.$ac_ext
7832
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7833
rm -f conftest.i conftest.err conftest.$ac_ext
7834
if $ac_preproc_ok; then :
7837
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7838
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7839
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7840
See \`config.log' for more details" "$LINENO" 5; }
7844
ac_cpp='$CPP $CPPFLAGS'
7845
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7851
$as_echo_n "checking for ANSI C header files... " >&6; }
7852
if ${ac_cv_header_stdc+:} false; then :
7853
$as_echo_n "(cached) " >&6
7855
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856
/* end confdefs.h. */
7870
if ac_fn_c_try_compile "$LINENO"; then :
7871
ac_cv_header_stdc=yes
7873
ac_cv_header_stdc=no
7875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877
if test $ac_cv_header_stdc = yes; then
7878
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7879
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880
/* end confdefs.h. */
7884
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7885
$EGREP "memchr" >/dev/null 2>&1; then :
7888
ac_cv_header_stdc=no
7894
if test $ac_cv_header_stdc = yes; then
7895
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7896
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897
/* end confdefs.h. */
7901
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7902
$EGREP "free" >/dev/null 2>&1; then :
7905
ac_cv_header_stdc=no
7911
if test $ac_cv_header_stdc = yes; then
7912
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7913
if test "$cross_compiling" = yes; then :
7916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917
/* end confdefs.h. */
7920
#if ((' ' & 0x0FF) == 0x020)
7921
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7922
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7924
# define ISLOWER(c) \
7925
(('a' <= (c) && (c) <= 'i') \
7926
|| ('j' <= (c) && (c) <= 'r') \
7927
|| ('s' <= (c) && (c) <= 'z'))
7928
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7931
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7936
for (i = 0; i < 256; i++)
7937
if (XOR (islower (i), ISLOWER (i))
7938
|| toupper (i) != TOUPPER (i))
7943
if ac_fn_c_try_run "$LINENO"; then :
7946
ac_cv_header_stdc=no
7948
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7949
conftest.$ac_objext conftest.beam conftest.$ac_ext
7954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7955
$as_echo "$ac_cv_header_stdc" >&6; }
7956
if test $ac_cv_header_stdc = yes; then
7958
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7962
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7963
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7964
inttypes.h stdint.h unistd.h
7966
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7967
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7969
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7970
cat >>confdefs.h <<_ACEOF
7971
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7979
8013
for ac_header in dlfcn.h
7981
8015
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13081
13104
# Only expand once:
13109
ac_cpp='$CPP $CPPFLAGS'
13110
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13111
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13112
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13113
if test -n "$ac_tool_prefix"; then
13114
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13115
set dummy ${ac_tool_prefix}gcc; ac_word=$2
13116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117
$as_echo_n "checking for $ac_word... " >&6; }
13118
if ${ac_cv_prog_CC+:} false; then :
13119
$as_echo_n "(cached) " >&6
13121
if test -n "$CC"; then
13122
ac_cv_prog_CC="$CC" # Let the user override the test.
13124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125
for as_dir in $PATH
13128
test -z "$as_dir" && as_dir=.
13129
for ac_exec_ext in '' $ac_executable_extensions; do
13130
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13131
ac_cv_prog_CC="${ac_tool_prefix}gcc"
13132
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142
if test -n "$CC"; then
13143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13144
$as_echo "$CC" >&6; }
13146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147
$as_echo "no" >&6; }
13152
if test -z "$ac_cv_prog_CC"; then
13154
# Extract the first word of "gcc", so it can be a program name with args.
13155
set dummy gcc; ac_word=$2
13156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157
$as_echo_n "checking for $ac_word... " >&6; }
13158
if ${ac_cv_prog_ac_ct_CC+:} false; then :
13159
$as_echo_n "(cached) " >&6
13161
if test -n "$ac_ct_CC"; then
13162
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165
for as_dir in $PATH
13168
test -z "$as_dir" && as_dir=.
13169
for ac_exec_ext in '' $ac_executable_extensions; do
13170
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13171
ac_cv_prog_ac_ct_CC="gcc"
13172
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13181
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13182
if test -n "$ac_ct_CC"; then
13183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13184
$as_echo "$ac_ct_CC" >&6; }
13186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187
$as_echo "no" >&6; }
13190
if test "x$ac_ct_CC" = x; then
13193
case $cross_compiling:$ac_tool_warned in
13195
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13196
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13197
ac_tool_warned=yes ;;
13202
CC="$ac_cv_prog_CC"
13205
if test -z "$CC"; then
13206
if test -n "$ac_tool_prefix"; then
13207
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13208
set dummy ${ac_tool_prefix}cc; ac_word=$2
13209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13210
$as_echo_n "checking for $ac_word... " >&6; }
13211
if ${ac_cv_prog_CC+:} false; then :
13212
$as_echo_n "(cached) " >&6
13214
if test -n "$CC"; then
13215
ac_cv_prog_CC="$CC" # Let the user override the test.
13217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218
for as_dir in $PATH
13221
test -z "$as_dir" && as_dir=.
13222
for ac_exec_ext in '' $ac_executable_extensions; do
13223
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13224
ac_cv_prog_CC="${ac_tool_prefix}cc"
13225
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235
if test -n "$CC"; then
13236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13237
$as_echo "$CC" >&6; }
13239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240
$as_echo "no" >&6; }
13246
if test -z "$CC"; then
13247
# Extract the first word of "cc", so it can be a program name with args.
13248
set dummy cc; ac_word=$2
13249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250
$as_echo_n "checking for $ac_word... " >&6; }
13251
if ${ac_cv_prog_CC+:} false; then :
13252
$as_echo_n "(cached) " >&6
13254
if test -n "$CC"; then
13255
ac_cv_prog_CC="$CC" # Let the user override the test.
13257
ac_prog_rejected=no
13258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259
for as_dir in $PATH
13262
test -z "$as_dir" && as_dir=.
13263
for ac_exec_ext in '' $ac_executable_extensions; do
13264
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13265
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13266
ac_prog_rejected=yes
13270
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277
if test $ac_prog_rejected = yes; then
13278
# We found a bogon in the path, so make sure we never use it.
13279
set dummy $ac_cv_prog_CC
13281
if test $# != 0; then
13282
# We chose a different compiler from the bogus one.
13283
# However, it has the same basename, so the bogon will be chosen
13284
# first if we set CC to just the basename; use the full file name.
13286
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13292
if test -n "$CC"; then
13293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13294
$as_echo "$CC" >&6; }
13296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297
$as_echo "no" >&6; }
13302
if test -z "$CC"; then
13303
if test -n "$ac_tool_prefix"; then
13304
for ac_prog in cl.exe
13306
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13307
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309
$as_echo_n "checking for $ac_word... " >&6; }
13310
if ${ac_cv_prog_CC+:} false; then :
13311
$as_echo_n "(cached) " >&6
13313
if test -n "$CC"; then
13314
ac_cv_prog_CC="$CC" # Let the user override the test.
13316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317
for as_dir in $PATH
13320
test -z "$as_dir" && as_dir=.
13321
for ac_exec_ext in '' $ac_executable_extensions; do
13322
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13323
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13324
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334
if test -n "$CC"; then
13335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13336
$as_echo "$CC" >&6; }
13338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339
$as_echo "no" >&6; }
13343
test -n "$CC" && break
13346
if test -z "$CC"; then
13348
for ac_prog in cl.exe
13350
# Extract the first word of "$ac_prog", so it can be a program name with args.
13351
set dummy $ac_prog; ac_word=$2
13352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353
$as_echo_n "checking for $ac_word... " >&6; }
13354
if ${ac_cv_prog_ac_ct_CC+:} false; then :
13355
$as_echo_n "(cached) " >&6
13357
if test -n "$ac_ct_CC"; then
13358
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361
for as_dir in $PATH
13364
test -z "$as_dir" && as_dir=.
13365
for ac_exec_ext in '' $ac_executable_extensions; do
13366
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13367
ac_cv_prog_ac_ct_CC="$ac_prog"
13368
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13377
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13378
if test -n "$ac_ct_CC"; then
13379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13380
$as_echo "$ac_ct_CC" >&6; }
13382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383
$as_echo "no" >&6; }
13387
test -n "$ac_ct_CC" && break
13390
if test "x$ac_ct_CC" = x; then
13393
case $cross_compiling:$ac_tool_warned in
13395
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13396
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13397
ac_tool_warned=yes ;;
13406
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13407
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13408
as_fn_error $? "no acceptable C compiler found in \$PATH
13409
See \`config.log' for more details" "$LINENO" 5; }
13411
# Provide some information about the compiler.
13412
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13415
for ac_option in --version -v -V -qversion; do
13416
{ { ac_try="$ac_compiler $ac_option >&5"
13417
case "(($ac_try" in
13418
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419
*) ac_try_echo=$ac_try;;
13421
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13422
$as_echo "$ac_try_echo"; } >&5
13423
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
13425
if test -s conftest.err; then
13427
... rest of stderr output deleted ...
13428
10q' conftest.err >conftest.er1
13429
cat conftest.er1 >&5
13431
rm -f conftest.er1 conftest.err
13432
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13433
test $ac_status = 0; }
13436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13437
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13438
if ${ac_cv_c_compiler_gnu+:} false; then :
13439
$as_echo_n "(cached) " >&6
13441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442
/* end confdefs.h. */
13455
if ac_fn_c_try_compile "$LINENO"; then :
13456
ac_compiler_gnu=yes
13460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461
ac_cv_c_compiler_gnu=$ac_compiler_gnu
13464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13465
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13466
if test $ac_compiler_gnu = yes; then
13471
ac_test_CFLAGS=${CFLAGS+set}
13472
ac_save_CFLAGS=$CFLAGS
13473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13474
$as_echo_n "checking whether $CC accepts -g... " >&6; }
13475
if ${ac_cv_prog_cc_g+:} false; then :
13476
$as_echo_n "(cached) " >&6
13478
ac_save_c_werror_flag=$ac_c_werror_flag
13479
ac_c_werror_flag=yes
13482
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483
/* end confdefs.h. */
13493
if ac_fn_c_try_compile "$LINENO"; then :
13494
ac_cv_prog_cc_g=yes
13497
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498
/* end confdefs.h. */
13508
if ac_fn_c_try_compile "$LINENO"; then :
13511
ac_c_werror_flag=$ac_save_c_werror_flag
13513
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514
/* end confdefs.h. */
13524
if ac_fn_c_try_compile "$LINENO"; then :
13525
ac_cv_prog_cc_g=yes
13527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532
ac_c_werror_flag=$ac_save_c_werror_flag
13534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13535
$as_echo "$ac_cv_prog_cc_g" >&6; }
13536
if test "$ac_test_CFLAGS" = set; then
13537
CFLAGS=$ac_save_CFLAGS
13538
elif test $ac_cv_prog_cc_g = yes; then
13539
if test "$GCC" = yes; then
13545
if test "$GCC" = yes; then
13551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13552
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13553
if ${ac_cv_prog_cc_c89+:} false; then :
13554
$as_echo_n "(cached) " >&6
13556
ac_cv_prog_cc_c89=no
13558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559
/* end confdefs.h. */
13560
#include <stdarg.h>
13563
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13564
struct buf { int x; };
13565
FILE * (*rcsopen) (struct buf *, struct stat *, int);
13566
static char *e (p, i)
13572
static char *f (char * (*g) (char **, int), char **p, ...)
13577
s = g (p, va_arg (v,int));
13582
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13583
function prototypes and stuff, but not '\xHH' hex character constants.
13584
These don't provoke an error unfortunately, instead are silently treated
13585
as 'x'. The following induces an error, until -std is added to get
13586
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13587
array size at least. It's necessary to write '\x00'==0 to get something
13588
that's true only with -std. */
13589
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13591
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13592
inside strings and character constants. */
13594
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13596
int test (int i, double x);
13597
struct s1 {int (*f) (int a);};
13598
struct s2 {int (*f) (double a);};
13599
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13605
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13610
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13611
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13613
CC="$ac_save_CC $ac_arg"
13614
if ac_fn_c_try_compile "$LINENO"; then :
13615
ac_cv_prog_cc_c89=$ac_arg
13617
rm -f core conftest.err conftest.$ac_objext
13618
test "x$ac_cv_prog_cc_c89" != "xno" && break
13620
rm -f conftest.$ac_ext
13625
case "x$ac_cv_prog_cc_c89" in
13627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13628
$as_echo "none needed" >&6; } ;;
13630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13631
$as_echo "unsupported" >&6; } ;;
13633
CC="$CC $ac_cv_prog_cc_c89"
13634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13635
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13637
if test "x$ac_cv_prog_cc_c89" != xno; then :
13642
ac_cpp='$CPP $CPPFLAGS'
13643
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13647
depcc="$CC" am_compiler_list=
13649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13650
$as_echo_n "checking dependency style of $depcc... " >&6; }
13651
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13652
$as_echo_n "(cached) " >&6
13654
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13655
# We make a subdir and do the tests there. Otherwise we can end up
13656
# making bogus files that we don't know about and never remove. For
13657
# instance it was reported that on HP-UX the gcc test will end up
13658
# making a dummy file named `D' -- because `-MD' means `put the output
13660
rm -rf conftest.dir
13662
# Copy depcomp to subdir because otherwise we won't find it if we're
13663
# using a relative directory.
13664
cp "$am_depcomp" conftest.dir
13666
# We will build objects and dependencies in a subdirectory because
13667
# it helps to detect inapplicable dependency modes. For instance
13668
# both Tru64's cc and ICC support -MD to output dependencies as a
13669
# side effect of compilation, but ICC will put the dependencies in
13670
# the current directory while Tru64 will put them in the object
13674
am_cv_CC_dependencies_compiler_type=none
13675
if test "$am_compiler_list" = ""; then
13676
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13678
am__universal=false
13679
case " $depcc " in #(
13680
*\ -arch\ *\ -arch\ *) am__universal=true ;;
13683
for depmode in $am_compiler_list; do
13684
# Setup a source with many dependencies, because some compilers
13685
# like to wrap large dependency lists on column 80 (with \), and
13686
# we should not choose a depcomp mode which is confused by this.
13688
# We need to recreate these files for each test, as the compiler may
13689
# overwrite some of them when testing with obscure command lines.
13690
# This happens at least with the AIX C compiler.
13692
for i in 1 2 3 4 5 6; do
13693
echo '#include "conftst'$i'.h"' >> sub/conftest.c
13694
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13695
# Solaris 8's {/usr,}/bin/sh.
13696
touch sub/conftst$i.h
13698
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13700
# We check with `-c' and `-o' for the sake of the "dashmstdout"
13701
# mode. It turns out that the SunPro C++ compiler does not properly
13702
# handle `-M -o', and we need to detect this. Also, some Intel
13703
# versions had trouble with output in subdirs
13704
am__obj=sub/conftest.${OBJEXT-o}
13705
am__minus_obj="-o $am__obj"
13708
# This depmode causes a compiler race in universal mode.
13709
test "$am__universal" = false || continue
13712
# after this tag, mechanisms are not by side-effect, so they'll
13713
# only be used when explicitly requested
13714
if test "x$enable_dependency_tracking" = xyes; then
13720
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13721
# This compiler won't grok `-c -o', but also, the minuso test has
13722
# not run yet. These depmodes are late enough in the game, and
13723
# so weak that their functioning should not be impacted.
13724
am__obj=conftest.${OBJEXT-o}
13729
if depmode=$depmode \
13730
source=sub/conftest.c object=$am__obj \
13731
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13732
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13733
>/dev/null 2>conftest.err &&
13734
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13735
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13736
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13737
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13738
# icc doesn't choke on unknown options, it will just issue warnings
13739
# or remarks (even with -Werror). So we grep stderr for any message
13740
# that says an option was ignored or not supported.
13741
# When given -MP, icc 7.0 and 7.1 complain thusly:
13742
# icc: Command line warning: ignoring option '-M'; no argument required
13743
# The diagnosis changed in icc 8.0:
13744
# icc: Command line remark: option '-MP' not supported
13745
if (grep 'ignoring option' conftest.err ||
13746
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13747
am_cv_CC_dependencies_compiler_type=$depmode
13754
rm -rf conftest.dir
13756
am_cv_CC_dependencies_compiler_type=none
13760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13761
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13762
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13765
test "x$enable_dependency_tracking" != xno \
13766
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13767
am__fastdepCC_TRUE=
13768
am__fastdepCC_FALSE='#'
13770
am__fastdepCC_TRUE='#'
13771
am__fastdepCC_FALSE=
13776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13777
$as_echo_n "checking whether ln -s works... " >&6; }
13779
if test "$LN_S" = "ln -s"; then
13780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13781
$as_echo "yes" >&6; }
13783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13784
$as_echo "no, using $LN_S" >&6; }
13787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13788
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13790
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13791
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13792
$as_echo_n "(cached) " >&6
13794
cat >conftest.make <<\_ACEOF
13797
@echo '@@@%%%=$(MAKE)=@@@%%%'
13799
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13800
case `${MAKE-make} -f conftest.make 2>/dev/null` in
13801
*@@@%%%=?*=@@@%%%*)
13802
eval ac_cv_prog_make_${ac_make}_set=yes;;
13804
eval ac_cv_prog_make_${ac_make}_set=no;;
13806
rm -f conftest.make
13808
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13810
$as_echo "yes" >&6; }
13813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814
$as_echo "no" >&6; }
13815
SET_MAKE="MAKE=${MAKE-make}"
13822
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13823
# These system don't have libm, or don't need it
13826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13827
$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13828
if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13829
$as_echo_n "(cached) " >&6
13831
ac_check_lib_save_LIBS=$LIBS
13833
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834
/* end confdefs.h. */
13836
/* Override any GCC internal prototype to avoid an error.
13837
Use char because int might match the return type of a GCC
13838
builtin and then its argument prototype would still apply. */
13842
char _mwvalidcheckl ();
13846
return _mwvalidcheckl ();
13851
if ac_fn_c_try_link "$LINENO"; then :
13852
ac_cv_lib_mw__mwvalidcheckl=yes
13854
ac_cv_lib_mw__mwvalidcheckl=no
13856
rm -f core conftest.err conftest.$ac_objext \
13857
conftest$ac_exeext conftest.$ac_ext
13858
LIBS=$ac_check_lib_save_LIBS
13860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13861
$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13862
if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13867
$as_echo_n "checking for cos in -lm... " >&6; }
13868
if ${ac_cv_lib_m_cos+:} false; then :
13869
$as_echo_n "(cached) " >&6
13871
ac_check_lib_save_LIBS=$LIBS
13873
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874
/* end confdefs.h. */
13876
/* Override any GCC internal prototype to avoid an error.
13877
Use char because int might match the return type of a GCC
13878
builtin and then its argument prototype would still apply. */
13891
if ac_fn_c_try_link "$LINENO"; then :
13892
ac_cv_lib_m_cos=yes
13896
rm -f core conftest.err conftest.$ac_objext \
13897
conftest$ac_exeext conftest.$ac_ext
13898
LIBS=$ac_check_lib_save_LIBS
13900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13901
$as_echo "$ac_cv_lib_m_cos" >&6; }
13902
if test "x$ac_cv_lib_m_cos" = xyes; then :
13908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13909
$as_echo_n "checking for cos in -lm... " >&6; }
13910
if ${ac_cv_lib_m_cos+:} false; then :
13911
$as_echo_n "(cached) " >&6
13913
ac_check_lib_save_LIBS=$LIBS
13915
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916
/* end confdefs.h. */
13918
/* Override any GCC internal prototype to avoid an error.
13919
Use char because int might match the return type of a GCC
13920
builtin and then its argument prototype would still apply. */
13933
if ac_fn_c_try_link "$LINENO"; then :
13934
ac_cv_lib_m_cos=yes
13938
rm -f core conftest.err conftest.$ac_objext \
13939
conftest$ac_exeext conftest.$ac_ext
13940
LIBS=$ac_check_lib_save_LIBS
13942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13943
$as_echo "$ac_cv_lib_m_cos" >&6; }
13944
if test "x$ac_cv_lib_m_cos" = xyes; then :
13953
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
13955
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13956
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13957
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13958
cat >>confdefs.h <<_ACEOF
13959
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13966
ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
13967
if test "x$ac_cv_header_syslog_h" = xyes; then :
13969
$as_echo "#define USE_SYSLOG 1" >>confdefs.h
13976
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13977
if test "x$ac_cv_header_pthread_h" = xyes; then :
13982
if test "$have_pthreads" = "yes"; then
13984
$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
13084
13989
ac_config_files="$ac_config_files libltdl/Makefile"
13087
major=`expr $LC_CURRENT - $LC_AGE`
13089
cat >>confdefs.h <<_ACEOF
13090
#define LIBCLAMAV_FULLVER "$major.$LC_AGE.$LC_REVISION"
13094
cat >>confdefs.h <<_ACEOF
13095
#define LIBCLAMAV_MAJORVER $major
13099
13993
$as_echo "#define SCANBUFF 131072" >>confdefs.h
15873
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15874
if test "x$ac_cv_header_pthread_h" = xyes; then :
16488
# Check whether --enable-xml was given.
16489
if test "${enable_xml+set}" = set; then :
16490
enableval=$enable_xml; want_xml=$enableval
16497
if test "X$want_xml" != "Xno"; then
16498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 installation" >&5
16499
$as_echo_n "checking for libxml2 installation... " >&6; }
16501
# Check whether --with-xml was given.
16502
if test "${with_xml+set}" = set; then :
16506
XML_HOME="$withval"
16507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $XML_HOME" >&5
16508
$as_echo "using $XML_HOME" >&6; }
16510
as_fn_error $? "cannot assign blank value to --with-xml" "$LINENO" 5
16515
XML_HOME=/usr/local
16516
if test ! -x "$XML_HOME/bin/xml2-config"
16519
if test ! -x "$XML_HOME/bin/xml2-config"
16524
if test "x$XML_HOME" != "x"; then
16525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_HOME" >&5
16526
$as_echo "$XML_HOME" >&6; }
16528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16529
$as_echo "not found" >&6; }
16540
if test "x$XML_HOME" != "x"; then
16541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking xml2-config version" >&5
16542
$as_echo_n "checking xml2-config version... " >&6; }
16543
XMLCONF_VERSION="`$XML_HOME/bin/xml2-config --version`"
16544
if test "x%XMLCONF_VERSION" != "x"; then
16545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCONF_VERSION" >&5
16546
$as_echo "$XMLCONF_VERSION" >&6; }
16548
XML_CPPFLAGS="`$XML_HOME/bin/xml2-config --cflags`"
16549
XML_LIBS="`$XML_HOME/bin/xml2-config --libs`"
16551
as_fn_error $? "xml2-config failed" "$LINENO" 5
16556
if test "X$found_xml" != "Xno"; then
16557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlreader.h in $XML_HOME" >&5
16558
$as_echo_n "checking for xmlreader.h in $XML_HOME... " >&6; }
16560
if test ! -f "$XML_HOME/include/libxml2/libxml/xmlreader.h"; then
16561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16562
$as_echo "not found" >&6; }
16564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16565
$as_echo "found" >&6; }
16567
save_CPPFLAGS="$CPPFLAGS"
16568
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
16569
save_LDFLAGS="$LDFLAGS"
16570
LDFLAGS="$LDFLAGS $XML_LIBS"
16572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlTextReaderRead in -lxml2" >&5
16573
$as_echo_n "checking for xmlTextReaderRead in -lxml2... " >&6; }
16574
if ${ac_cv_lib_xml2_xmlTextReaderRead+:} false; then :
16575
$as_echo_n "(cached) " >&6
16577
ac_check_lib_save_LIBS=$LIBS
16578
LIBS="-lxml2 $LIBS"
16579
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580
/* end confdefs.h. */
16582
/* Override any GCC internal prototype to avoid an error.
16583
Use char because int might match the return type of a GCC
16584
builtin and then its argument prototype would still apply. */
16588
char xmlTextReaderRead ();
16592
return xmlTextReaderRead ();
16597
if ac_fn_c_try_link "$LINENO"; then :
16598
ac_cv_lib_xml2_xmlTextReaderRead=yes
16600
ac_cv_lib_xml2_xmlTextReaderRead=no
16602
rm -f core conftest.err conftest.$ac_objext \
16603
conftest$ac_exeext conftest.$ac_ext
16604
LIBS=$ac_check_lib_save_LIBS
16606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlTextReaderRead" >&5
16607
$as_echo "$ac_cv_lib_xml2_xmlTextReaderRead" >&6; }
16608
if test "x$ac_cv_lib_xml2_xmlTextReaderRead" = xyes; then :
16615
CPPFLAGS="$save_CPPFLAGS"
16616
LDFLAGS="$save_LDFLAGS"
16621
if test "$working_xml" = "yes"; then
16623
$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
16627
{ $as_echo "$as_me:${as_lineno-$LINENO}: Compiling and linking with libxml2 from $XML_HOME" >&5
16628
$as_echo "$as_me: Compiling and linking with libxml2 from $XML_HOME" >&6;}
16630
if test "$want_xml" = "yes"; then
16631
as_fn_error $? "****** Please install libxml2 packages!" "$LINENO" 5
16633
if test "$want_xml" != "no"; then
16634
{ $as_echo "$as_me:${as_lineno-$LINENO}: ****** libxml2 support unavailable" >&5
16635
$as_echo "$as_me: ****** libxml2 support unavailable" >&6;}
16644
if test "x$HAVE_LIBXML2" = "xyes"; then
16646
HAVE_LIBXML2_FALSE='#'
16648
HAVE_LIBXML2_TRUE='#'
16649
HAVE_LIBXML2_FALSE=
16653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL installation" >&5
16654
$as_echo_n "checking for OpenSSL installation... " >&6; }
16657
# Check whether --with-openssl was given.
16658
if test "${with_openssl+set}" = set; then :
16659
withval=$with_openssl;
16660
if test "$withval"; then
16661
LIBSSL_HOME="$withval"
16666
LIBSSL_HOME=/usr/local
16667
if test ! -f "$LIBSSL_HOME/include/openssl/ssl.h"
16671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSSL_HOME" >&5
16672
$as_echo "$LIBSSL_HOME" >&6; }
16677
if test ! -f "$LIBSSL_HOME/include/openssl/ssl.h"
16679
as_fn_error $? "OpenSSL not found." "$LINENO" 5
16682
save_LDFLAGS="$LDFLAGS"
16683
save_CFLAGS="$CFLAGS"
16686
SSL_LIBS="-lssl -lcrypto"
16688
if test "$LIBSSL_HOME" != "/usr"; then
16689
SSL_LDFLAGS="-L$LIBSSL_HOME/lib"
16690
SSL_CPPFLAGS="-I$LIBSSL_HOME/include"
16691
LDFLAGS="-L$LIBSSL_HOME/lib $SSL_LIBS"
16692
CFLAGS="$SSL_CPPFLAGS"
16701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
16702
$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
16703
if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
16704
$as_echo_n "(cached) " >&6
16706
ac_check_lib_save_LIBS=$LIBS
16707
LIBS="-lssl -lcrypto $LIBS"
16708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709
/* end confdefs.h. */
16711
/* Override any GCC internal prototype to avoid an error.
16712
Use char because int might match the return type of a GCC
16713
builtin and then its argument prototype would still apply. */
16717
char SSL_library_init ();
16721
return SSL_library_init ();
16726
if ac_fn_c_try_link "$LINENO"; then :
16727
ac_cv_lib_ssl_SSL_library_init=yes
16729
ac_cv_lib_ssl_SSL_library_init=no
16731
rm -f core conftest.err conftest.$ac_objext \
16732
conftest$ac_exeext conftest.$ac_ext
16733
LIBS=$ac_check_lib_save_LIBS
16735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
16736
$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
16737
if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
16740
as_fn_error $? "Your OpenSSL installation is misconfigured or missing" "$LINENO" 5
16744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
16745
$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
16746
if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
16747
$as_echo_n "(cached) " >&6
16749
ac_check_lib_save_LIBS=$LIBS
16750
LIBS="-lcrypto $LIBS"
16751
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752
/* end confdefs.h. */
16754
/* Override any GCC internal prototype to avoid an error.
16755
Use char because int might match the return type of a GCC
16756
builtin and then its argument prototype would still apply. */
16760
char EVP_EncryptInit ();
16764
return EVP_EncryptInit ();
16769
if ac_fn_c_try_link "$LINENO"; then :
16770
ac_cv_lib_crypto_EVP_EncryptInit=yes
16772
ac_cv_lib_crypto_EVP_EncryptInit=no
16774
rm -f core conftest.err conftest.$ac_objext \
16775
conftest$ac_exeext conftest.$ac_ext
16776
LIBS=$ac_check_lib_save_LIBS
16778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
16779
$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
16780
if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
16783
as_fn_error $? "Your OpenSSL installation is misconfigured or missing" "$LINENO" 5
16787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_new in -lssl" >&5
16788
$as_echo_n "checking for X509_VERIFY_PARAM_new in -lssl... " >&6; }
16789
if ${ac_cv_lib_ssl_X509_VERIFY_PARAM_new+:} false; then :
16790
$as_echo_n "(cached) " >&6
16792
ac_check_lib_save_LIBS=$LIBS
16793
LIBS="-lssl -lcrypto $LIBS"
16794
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795
/* end confdefs.h. */
16797
/* Override any GCC internal prototype to avoid an error.
16798
Use char because int might match the return type of a GCC
16799
builtin and then its argument prototype would still apply. */
16803
char X509_VERIFY_PARAM_new ();
16807
return X509_VERIFY_PARAM_new ();
16812
if ac_fn_c_try_link "$LINENO"; then :
16813
ac_cv_lib_ssl_X509_VERIFY_PARAM_new=yes
16815
ac_cv_lib_ssl_X509_VERIFY_PARAM_new=no
16817
rm -f core conftest.err conftest.$ac_objext \
16818
conftest$ac_exeext conftest.$ac_ext
16819
LIBS=$ac_check_lib_save_LIBS
16821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_X509_VERIFY_PARAM_new" >&5
16822
$as_echo "$ac_cv_lib_ssl_X509_VERIFY_PARAM_new" >&6; }
16823
if test "x$ac_cv_lib_ssl_X509_VERIFY_PARAM_new" = xyes; then :
16824
cat >>confdefs.h <<_ACEOF
16825
#define HAVE_LIBSSL 1
16831
as_fn_error $? "Your OpenSSL installation is missing the X509_VERIFY_PARAM function. Please upgrade to a more recent version of OpenSSL." "$LINENO" 5
16835
LDFLAGS="$save_LDFLAGS"
16836
CFLAGS="$save_CFLAGS"
15880
16840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5