Browse code

merge r3804 for #935

git-svn-id: file:///var/lib/svn/clamav-devel/branches/0.93@3805 77e5149b-7576-45b1-b177-96237e5ba77b

Török Edvin authored on 2008/04/22 00:12:41
Showing 7 changed files
... ...
@@ -132,7 +132,7 @@ AC_LIB_PROG_LD_GNU
132 132
 
133 133
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
134 134
 
135
-# serial 52 Debian 1.5.26-1 AC_PROG_LIBTOOL
135
+# serial 52 Debian 1.5.26-3 AC_PROG_LIBTOOL
136 136
 
137 137
 
138 138
 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
... ...
@@ -165,6 +165,9 @@
165 165
 /* Define to 1 if you have the <libmilter/mfapi.h> header file. */
166 166
 #undef HAVE_LIBMILTER_MFAPI_H
167 167
 
168
+/* Define to 1 if you have the `z' library (-lz). */
169
+#undef HAVE_LIBZ
170
+
168 171
 /* Define to 1 if you have the <limits.h> header file. */
169 172
 #undef HAVE_LIMITS_H
170 173
 
... ...
@@ -1,10 +1,10 @@
1 1
 #! /bin/sh
2 2
 # Attempt to guess a canonical system name.
3 3
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5
-#   Inc.
4
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5
+#   Free Software Foundation, Inc.
6 6
 
7
-timestamp='2007-07-22'
7
+timestamp='2008-01-23'
8 8
 
9 9
 # This file is free software; you can redistribute it and/or modify it
10 10
 # under the terms of the GNU General Public License as published by
... ...
@@ -56,8 +56,8 @@ version="\
56 56
 GNU config.guess ($timestamp)
57 57
 
58 58
 Originally written by Per Bothner.
59
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
60
-Free Software Foundation, Inc.
59
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
60
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
61 61
 
62 62
 This is free software; see the source for copying conditions.  There is NO
63 63
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
... ...
@@ -532,7 +532,7 @@ EOF
532 532
 		echo rs6000-ibm-aix3.2
533 533
 	fi
534 534
 	exit ;;
535
-    *:AIX:*:[45])
535
+    *:AIX:*:[456])
536 536
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537 537
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538 538
 		IBM_ARCH=rs6000
... ...
@@ -799,6 +799,9 @@ EOF
799 799
 	    EM64T | authenticamd)
800 800
 		echo x86_64-unknown-interix${UNAME_RELEASE}
801 801
 		exit ;;
802
+	    IA64)
803
+		echo ia64-unknown-interix${UNAME_RELEASE}
804
+		exit ;;
802 805
 	esac ;;
803 806
     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
804 807
 	echo i${UNAME_MACHINE}-pc-mks
... ...
@@ -833,7 +836,14 @@ EOF
833 833
 	echo ${UNAME_MACHINE}-pc-minix
834 834
 	exit ;;
835 835
     arm*:Linux:*:*)
836
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
836
+	eval $set_cc_for_build
837
+	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
838
+	    | grep -q __ARM_EABI__
839
+	then
840
+	    echo ${UNAME_MACHINE}-unknown-linux-gnu
841
+	else
842
+	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
843
+	fi
837 844
 	exit ;;
838 845
     avr32*:Linux:*:*)
839 846
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
... ...
@@ -954,8 +964,8 @@ EOF
954 954
     x86_64:Linux:*:*)
955 955
 	echo x86_64-unknown-linux-gnu
956 956
 	exit ;;
957
-    xtensa:Linux:*:*)
958
-    	echo xtensa-unknown-linux-gnu
957
+    xtensa*:Linux:*:*)
958
+    	echo ${UNAME_MACHINE}-unknown-linux-gnu
959 959
 	exit ;;
960 960
     i*86:Linux:*:*)
961 961
 	# The BFD linker knows what the default object file format is, so
... ...
@@ -1474,9 +1484,9 @@ This script, last modified $timestamp, has failed to recognize
1474 1474
 the operating system you are using. It is advised that you
1475 1475
 download the most up to date version of the config scripts from
1476 1476
 
1477
-  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1477
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1478 1478
 and
1479
-  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1479
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1480 1480
 
1481 1481
 If the version you run ($0) is already up to date, please
1482 1482
 send the following data and any information you think might be
... ...
@@ -1,10 +1,10 @@
1 1
 #! /bin/sh
2 2
 # Configuration validation subroutine script.
3 3
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5
-#   Inc.
4
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5
+#   Free Software Foundation, Inc.
6 6
 
7
-timestamp='2007-06-28'
7
+timestamp='2008-01-16'
8 8
 
9 9
 # This file is (in principle) common to ALL GNU software.
10 10
 # The presence of a machine in this file suggests that SOME GNU software
... ...
@@ -72,8 +72,8 @@ Report bugs and patches to <config-patches@gnu.org>."
72 72
 version="\
73 73
 GNU config.sub ($timestamp)
74 74
 
75
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
76
-Free Software Foundation, Inc.
75
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
76
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
77 77
 
78 78
 This is free software; see the source for copying conditions.  There is NO
79 79
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
... ...
@@ -369,10 +369,14 @@ case $basic_machine in
369 369
 	| v850-* | v850e-* | vax-* \
370 370
 	| we32k-* \
371 371
 	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372
-	| xstormy16-* | xtensa-* \
372
+	| xstormy16-* | xtensa*-* \
373 373
 	| ymp-* \
374 374
 	| z8k-*)
375 375
 		;;
376
+	# Recognize the basic CPU types without company name, with glob match.
377
+	xtensa*)
378
+		basic_machine=$basic_machine-unknown
379
+		;;
376 380
 	# Recognize the various machine names and aliases which stand
377 381
 	# for a CPU type and a company and sometimes even an OS.
378 382
 	386bsd)
... ...
@@ -443,6 +447,14 @@ case $basic_machine in
443 443
 		basic_machine=ns32k-sequent
444 444
 		os=-dynix
445 445
 		;;
446
+	blackfin)
447
+		basic_machine=bfin-unknown
448
+		os=-linux
449
+		;;
450
+	blackfin-*)
451
+		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
452
+		os=-linux
453
+		;;
446 454
 	c90)
447 455
 		basic_machine=c90-cray
448 456
 		os=-unicos
... ...
@@ -668,6 +680,14 @@ case $basic_machine in
668 668
 		basic_machine=m68k-isi
669 669
 		os=-sysv
670 670
 		;;
671
+	m68knommu)
672
+		basic_machine=m68k-unknown
673
+		os=-linux
674
+		;;
675
+	m68knommu-*)
676
+		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
677
+		os=-linux
678
+		;;
671 679
 	m88k-omron*)
672 680
 		basic_machine=m88k-omron
673 681
 		;;
... ...
@@ -813,6 +833,14 @@ case $basic_machine in
813 813
 		basic_machine=i860-intel
814 814
 		os=-osf
815 815
 		;;
816
+	parisc)
817
+		basic_machine=hppa-unknown
818
+		os=-linux
819
+		;;
820
+	parisc-*)
821
+		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
822
+		os=-linux
823
+		;;
816 824
 	pbd)
817 825
 		basic_machine=sparc-tti
818 826
 		;;
... ...
@@ -1021,6 +1049,10 @@ case $basic_machine in
1021 1021
 		basic_machine=tic6x-unknown
1022 1022
 		os=-coff
1023 1023
 		;;
1024
+	tile*)
1025
+		basic_machine=tile-unknown
1026
+		os=-linux-gnu
1027
+		;;
1024 1028
 	tx39)
1025 1029
 		basic_machine=mipstx39-unknown
1026 1030
 		;;
... ...
@@ -43,7 +43,7 @@ EXIT_FAILURE=1
43 43
 
44 44
 PROGRAM=ltmain.sh
45 45
 PACKAGE=libtool
46
-VERSION="1.5.26 Debian 1.5.26-1"
46
+VERSION="1.5.26 Debian 1.5.26-3"
47 47
 TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
48 48
 
49 49
 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
... ...
@@ -13319,7 +13319,7 @@ fi
13319 13319
 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
13320 13320
 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
13321 13321
 if test $ac_cv_lib_z_inflateEnd = yes; then
13322
-  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz";
13322
+  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz";FRESHCLAM_LIBS="$FRESHCLAM_LIBS -L$ZLIB_HOME/lib -lz";
13323 13323
 cat >>confdefs.h <<\_ACEOF
13324 13324
 #define HAVE_ZLIB_H 1
13325 13325
 _ACEOF
... ...
@@ -13330,6 +13330,81 @@ echo "$as_me: error: Please install zlib and zlib-devel packages" >&2;}
13330 13330
    { (exit 1); exit 1; }; }
13331 13331
 fi
13332 13332
 
13333
+
13334
+{ echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
13335
+echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
13336
+if test "${ac_cv_lib_z_gzopen+set}" = set; then
13337
+  echo $ECHO_N "(cached) $ECHO_C" >&6
13338
+else
13339
+  ac_check_lib_save_LIBS=$LIBS
13340
+LIBS="-lz  $LIBS"
13341
+cat >conftest.$ac_ext <<_ACEOF
13342
+/* confdefs.h.  */
13343
+_ACEOF
13344
+cat confdefs.h >>conftest.$ac_ext
13345
+cat >>conftest.$ac_ext <<_ACEOF
13346
+/* end confdefs.h.  */
13347
+
13348
+/* Override any GCC internal prototype to avoid an error.
13349
+   Use char because int might match the return type of a GCC
13350
+   builtin and then its argument prototype would still apply.  */
13351
+#ifdef __cplusplus
13352
+extern "C"
13353
+#endif
13354
+char gzopen ();
13355
+int
13356
+main ()
13357
+{
13358
+return gzopen ();
13359
+  ;
13360
+  return 0;
13361
+}
13362
+_ACEOF
13363
+rm -f conftest.$ac_objext conftest$ac_exeext
13364
+if { (ac_try="$ac_link"
13365
+case "(($ac_try" in
13366
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367
+  *) ac_try_echo=$ac_try;;
13368
+esac
13369
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370
+  (eval "$ac_link") 2>conftest.er1
13371
+  ac_status=$?
13372
+  grep -v '^ *+' conftest.er1 >conftest.err
13373
+  rm -f conftest.er1
13374
+  cat conftest.err >&5
13375
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376
+  (exit $ac_status); } && {
13377
+	 test -z "$ac_c_werror_flag" ||
13378
+	 test ! -s conftest.err
13379
+       } && test -s conftest$ac_exeext &&
13380
+       $as_test_x conftest$ac_exeext; then
13381
+  ac_cv_lib_z_gzopen=yes
13382
+else
13383
+  echo "$as_me: failed program was:" >&5
13384
+sed 's/^/| /' conftest.$ac_ext >&5
13385
+
13386
+	ac_cv_lib_z_gzopen=no
13387
+fi
13388
+
13389
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13390
+      conftest$ac_exeext conftest.$ac_ext
13391
+LIBS=$ac_check_lib_save_LIBS
13392
+fi
13393
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
13394
+echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
13395
+if test $ac_cv_lib_z_gzopen = yes; then
13396
+  cat >>confdefs.h <<_ACEOF
13397
+#define HAVE_LIBZ 1
13398
+_ACEOF
13399
+
13400
+  LIBS="-lz $LIBS"
13401
+
13402
+else
13403
+  { { echo "$as_me:$LINENO: error: Your zlib is missing gzopen()" >&5
13404
+echo "$as_me: error: Your zlib is missing gzopen()" >&2;}
13405
+   { (exit 1); exit 1; }; }
13406
+fi
13407
+
13333 13408
 	LDFLAGS="$save_LDFLAGS"
13334 13409
     else
13335 13410
 	{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
... ...
@@ -13394,7 +13469,7 @@ fi
13394 13394
 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
13395 13395
 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
13396 13396
 if test $ac_cv_lib_z_inflateEnd = yes; then
13397
-  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz";
13397
+  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz";FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lz";
13398 13398
 cat >>confdefs.h <<\_ACEOF
13399 13399
 #define HAVE_ZLIB_H 1
13400 13400
 _ACEOF
... ...
@@ -13405,6 +13480,81 @@ echo "$as_me: error: Please install zlib and zlib-devel packages" >&2;}
13405 13405
    { (exit 1); exit 1; }; }
13406 13406
 fi
13407 13407
 
13408
+
13409
+{ echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
13410
+echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
13411
+if test "${ac_cv_lib_z_gzopen+set}" = set; then
13412
+  echo $ECHO_N "(cached) $ECHO_C" >&6
13413
+else
13414
+  ac_check_lib_save_LIBS=$LIBS
13415
+LIBS="-lz  $LIBS"
13416
+cat >conftest.$ac_ext <<_ACEOF
13417
+/* confdefs.h.  */
13418
+_ACEOF
13419
+cat confdefs.h >>conftest.$ac_ext
13420
+cat >>conftest.$ac_ext <<_ACEOF
13421
+/* end confdefs.h.  */
13422
+
13423
+/* Override any GCC internal prototype to avoid an error.
13424
+   Use char because int might match the return type of a GCC
13425
+   builtin and then its argument prototype would still apply.  */
13426
+#ifdef __cplusplus
13427
+extern "C"
13428
+#endif
13429
+char gzopen ();
13430
+int
13431
+main ()
13432
+{
13433
+return gzopen ();
13434
+  ;
13435
+  return 0;
13436
+}
13437
+_ACEOF
13438
+rm -f conftest.$ac_objext conftest$ac_exeext
13439
+if { (ac_try="$ac_link"
13440
+case "(($ac_try" in
13441
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442
+  *) ac_try_echo=$ac_try;;
13443
+esac
13444
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445
+  (eval "$ac_link") 2>conftest.er1
13446
+  ac_status=$?
13447
+  grep -v '^ *+' conftest.er1 >conftest.err
13448
+  rm -f conftest.er1
13449
+  cat conftest.err >&5
13450
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451
+  (exit $ac_status); } && {
13452
+	 test -z "$ac_c_werror_flag" ||
13453
+	 test ! -s conftest.err
13454
+       } && test -s conftest$ac_exeext &&
13455
+       $as_test_x conftest$ac_exeext; then
13456
+  ac_cv_lib_z_gzopen=yes
13457
+else
13458
+  echo "$as_me: failed program was:" >&5
13459
+sed 's/^/| /' conftest.$ac_ext >&5
13460
+
13461
+	ac_cv_lib_z_gzopen=no
13462
+fi
13463
+
13464
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13465
+      conftest$ac_exeext conftest.$ac_ext
13466
+LIBS=$ac_check_lib_save_LIBS
13467
+fi
13468
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
13469
+echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
13470
+if test $ac_cv_lib_z_gzopen = yes; then
13471
+  cat >>confdefs.h <<_ACEOF
13472
+#define HAVE_LIBZ 1
13473
+_ACEOF
13474
+
13475
+  LIBS="-lz $LIBS"
13476
+
13477
+else
13478
+  { { echo "$as_me:$LINENO: error: Your zlib is missing gzopen()" >&5
13479
+echo "$as_me: error: Your zlib is missing gzopen()" >&2;}
13480
+   { (exit 1); exit 1; }; }
13481
+fi
13482
+
13408 13483
     fi
13409 13484
 fi
13410 13485
 
... ...
@@ -365,10 +365,12 @@ else
365 365
 	CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include"
366 366
 	save_LDFLAGS="$LDFLAGS"
367 367
 	LDFLAGS="$LIBS -L$ZLIB_HOME/lib"
368
-	AC_CHECK_LIB([z], [inflateEnd], [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz"; AC_DEFINE([HAVE_ZLIB_H],1,zlib installed)], AC_MSG_ERROR([Please install zlib and zlib-devel packages]))
368
+	AC_CHECK_LIB([z], [inflateEnd], [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz";FRESHCLAM_LIBS="$FRESHCLAM_LIBS -L$ZLIB_HOME/lib -lz"; AC_DEFINE([HAVE_ZLIB_H],1,zlib installed)], AC_MSG_ERROR([Please install zlib and zlib-devel packages]))
369
+	AC_CHECK_LIB([z], [gzopen], [], AC_MSG_ERROR([Your zlib is missing gzopen()]))
369 370
 	LDFLAGS="$save_LDFLAGS"
370 371
     else
371
-	AC_CHECK_LIB([z], [inflateEnd], [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz"; AC_DEFINE([HAVE_ZLIB_H],1,zlib installed)], AC_MSG_ERROR([Please install zlib and zlib-devel packages]))
372
+	AC_CHECK_LIB([z], [inflateEnd], [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz";FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lz"; AC_DEFINE([HAVE_ZLIB_H],1,zlib installed)], AC_MSG_ERROR([Please install zlib and zlib-devel packages]))
373
+	AC_CHECK_LIB([z], [gzopen],[], AC_MSG_ERROR([Your zlib is missing gzopen()]))
372 374
     fi
373 375
 fi
374 376