Browse code

merge backport fixes for 0.84rc2

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

Sven Strickroth authored on 2007/02/18 23:17:23
Showing 209 changed files
1 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-Makefile
2
-autom4te.cache
3
-clamav-config.h
4
-clamav-config
5
-config.log
6
-config.status
7
-libclamav.pc
8
-libtool
9
-stamp-h1
10
-target.h
... ...
@@ -48,22 +48,30 @@ Database maintainers:
48 48
 
49 49
 aCaB <acab*clamav.net>
50 50
 
51
-Christoph Cordes <cc*clamav.net>
52
-gpg key   : http://www.clamav.net/gpg/ccordes.gpg
51
+Christoph Cordes <ccordes*clamav.net>
52
+gpg key: http://www.clamav.net/gpg/ccordes.gpg
53 53
 GPG fingerprint = 4C6F F6A5 6034 04B1 1006  A7E1 1F1B 78CE C6DA 0F00
54 54
 
55 55
 Diego D'Ambra <diego*clamav.net>
56
-Jason Englander <jason*clamav.net>
56
+
57
+Arnaud Jacques <arnaud*clamav.net>
58
+gpg key: http://www.clamav.net/gpg/arnaud.gpg
59
+GPG fingerprint = FA30 DAA4 FF52 5C17 8790  E718 9B1C 7189 3B16 A457
60
+
57 61
 Tomasz Kojm <tkojm*clamav.net>
58 62
 
59 63
 Denis De Messemacker <ddm*clamav.net>
60
-gpg key   : http://www.clamav.net/gpg/ddm.gpg
64
+gpg key: http://www.clamav.net/gpg/ddm.gpg
61 65
 GPG fingerprint = E697 81BD A912 3F5A 737E  C254 B3B1 F81A 0278 7880
62 66
 
63 67
 Tomasz Papszun <tomek*clamav.net>
64
-gpg key	  : http://www.clamav.net/gpg/tomek.gpg
68
+gpg key: http://www.clamav.net/gpg/tomek.gpg
65 69
 GPG fingerprint = F115 0CA4 775D 9898 6F32  0F98 C0C2 2079 C1CA 59EE
66 70
 
71
+Sven Strickroth <sven*clamav.net>
72
+gpg key: http://www.clamav.net/gpg/sven.gpg
73
+GPG fingerprint = 70AA EA5A AE06 AB3A 05B6  418D 1646 67A4 F5A9 D4C4
74
+
67 75
 Trog <trog*clamav.net> (macro viruses)
68 76
 
69 77
 
... ...
@@ -1,3 +1,68 @@
1
+Wed Apr 20 02:09:55 CEST 2005
2
+-----------------------------
3
+  V 0.84rc2
4
+  * Fixes backported from CVS:
5
+    - libclamav/pe.c: Added more machine types (thanks to Christoph) (tk)
6
+    - libclamav/pe.c: Fixed a typo in FSG detection (reported by Didi Rieder
7
+		      <adrieder*sbox.tugraz.at>) (acab)
8
+    - libclamav/mbox.c: Some Sober.N were getting through, thanks to
9
+			Christoph for pointing this out (njh)
10
+    - clamav-milter: Fixed a multi-threading problem relating to updating
11
+                     the database when in internal mode;
12
+		     Use HAVE_CTIME_R_[23] (njh)
13
+    - freshclam/manager.c: Pass proper argument to OnErrorExecute (patch by
14
+                           Alexandre Biancalana <ale*seudns.net>) (tk)
15
+
16
+Thu Apr  7 20:00:23 CEST 2005 (tk)
17
+----------------------------------
18
+  V 0.84rc1
19
+
20
+Thu Apr  7 19:41:09 CEST 2005 (tk)
21
+----------------------------------
22
+  * docs: update
23
+
24
+Thu Apr  7 17:38:53 BST 2005 (njh)
25
+----------------------------------
26
+  * clamav-milter:	Added installation notes about Solaris 10
27
+			Internal mode: print virus and error information on
28
+				stdout. This goes to LogFile when not in debug
29
+				mode.
30
+			Included patch by Andy Feldt <feldt at nhn.ou.edu> for
31
+				AIX 5.2. I do not have access to such a machine
32
+				so any feedback would be helpful
33
+
34
+Thu Apr  7 00:46:14 CEST 2005 (tk)
35
+----------------------------------
36
+  * libclamav/scanners.c: support ArchiveBlockMax in scan(g|b)zip()
37
+			  (reported by Rudolph Pereira <rudolph*usyd.edu.au>)
38
+
39
+Wed Apr  6 23:58:29 CEST 2005 (tk)
40
+----------------------------------
41
+  * clamd/scanner.c: fix possible crash when MaxStreamLength < FILEBUFF
42
+		     (patch by "Andrey J. Melnikoff (TEMHOTA)" <temnota*kmv.ru>)
43
+
44
+Wed Apr  6 16:11:50 CEST 2005 (tk)
45
+----------------------------------
46
+  * libclamav/readdb.c: initialise refcount in cli_loadmd()
47
+
48
+Tue Apr  5 14:27:32 BST 2005 (trog)
49
+-----------------------------------
50
+  * libclamav/vba_extract.c: fix possible crash
51
+
52
+Sat Apr  2 22:19:12 BST 2005 (njh)
53
+----------------------------------
54
+  * libclamav/tnef.c:	Handle attachments where the data are before the title
55
+				(bug report and samples thanks to Stefan
56
+				Kaltenbrunner <stefan at kaltenbrunner.cc>
57
+
58
+Tue Mar 29 02:50:30 CEST 2005 (tk)
59
+----------------------------------
60
+  * libclamav/filetypes.c: try to detect international text data
61
+
62
+Tue Mar 29 02:02:05 CEST 2005 (tk)
63
+----------------------------------
64
+  * libclamav/filetypes.c: detect and ignore ISO 9660/High Sierra CD-ROM data
65
+
1 66
 Mon Mar 28 12:05:17 BST 2005 (njh)
2 67
 ----------------------------------
3 68
  * libclamav:	Added fast track visa technology to files that are not mboxs
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.8.5 from Makefile.am.
1
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -88,6 +88,12 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
88 88
 	install-recursive installcheck-recursive installdirs-recursive \
89 89
 	pdf-recursive ps-recursive uninstall-info-recursive \
90 90
 	uninstall-recursive
91
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
92
+am__vpath_adj = case $$p in \
93
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
94
+    *) f=$$p;; \
95
+  esac;
96
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
91 97
 pkgconfigDATA_INSTALL = $(INSTALL_DATA)
92 98
 DATA = $(pkgconfig_DATA)
93 99
 ETAGS = etags
... ...
@@ -178,6 +184,8 @@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
178 178
 am__include = @am__include@
179 179
 am__leading_dot = @am__leading_dot@
180 180
 am__quote = @am__quote@
181
+am__tar = @am__tar@
182
+am__untar = @am__untar@
181 183
 bindir = @bindir@
182 184
 build = @build@
183 185
 build_alias = @build_alias@
... ...
@@ -315,7 +323,7 @@ install-pkgconfigDATA: $(pkgconfig_DATA)
315 315
 	test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
316 316
 	@list='$(pkgconfig_DATA)'; for p in $$list; do \
317 317
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
318
-	  f="`echo $$p | sed -e 's|^.*/||'`"; \
318
+	  f=$(am__strip_dir) \
319 319
 	  echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
320 320
 	  $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
321 321
 	done
... ...
@@ -323,7 +331,7 @@ install-pkgconfigDATA: $(pkgconfig_DATA)
323 323
 uninstall-pkgconfigDATA:
324 324
 	@$(NORMAL_UNINSTALL)
325 325
 	@list='$(pkgconfig_DATA)'; for p in $$list; do \
326
-	  f="`echo $$p | sed -e 's|^.*/||'`"; \
326
+	  f=$(am__strip_dir) \
327 327
 	  echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
328 328
 	  rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
329 329
 	done
... ...
@@ -335,7 +343,13 @@ uninstall-pkgconfigDATA:
335 335
 #     (which will cause the Makefiles to be regenerated when you run `make');
336 336
 # (2) otherwise, pass the desired values on the `make' command line.
337 337
 $(RECURSIVE_TARGETS):
338
-	@set fnord $$MAKEFLAGS; amf=$$2; \
338
+	@failcom='exit 1'; \
339
+	for f in x $$MAKEFLAGS; do \
340
+	  case $$f in \
341
+	    *=* | --[!k]*);; \
342
+	    *k*) failcom='fail=yes';; \
343
+	  esac; \
344
+	done; \
339 345
 	dot_seen=no; \
340 346
 	target=`echo $@ | sed s/-recursive//`; \
341 347
 	list='$(SUBDIRS)'; for subdir in $$list; do \
... ...
@@ -347,7 +361,7 @@ $(RECURSIVE_TARGETS):
347 347
 	    local_target="$$target"; \
348 348
 	  fi; \
349 349
 	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
350
-	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
350
+	  || eval $$failcom; \
351 351
 	done; \
352 352
 	if test "$$dot_seen" = "no"; then \
353 353
 	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
... ...
@@ -355,7 +369,13 @@ $(RECURSIVE_TARGETS):
355 355
 
356 356
 mostlyclean-recursive clean-recursive distclean-recursive \
357 357
 maintainer-clean-recursive:
358
-	@set fnord $$MAKEFLAGS; amf=$$2; \
358
+	@failcom='exit 1'; \
359
+	for f in x $$MAKEFLAGS; do \
360
+	  case $$f in \
361
+	    *=* | --[!k]*);; \
362
+	    *k*) failcom='fail=yes';; \
363
+	  esac; \
364
+	done; \
359 365
 	dot_seen=no; \
360 366
 	case "$@" in \
361 367
 	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
... ...
@@ -376,7 +396,7 @@ maintainer-clean-recursive:
376 376
 	    local_target="$$target"; \
377 377
 	  fi; \
378 378
 	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
379
-	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
379
+	  || eval $$failcom; \
380 380
 	done && test -z "$$fail"
381 381
 tags-recursive:
382 382
 	list='$(SUBDIRS)'; for subdir in $$list; do \
... ...
@@ -478,15 +498,17 @@ distdir: $(DISTFILES)
478 478
 	    || exit 1; \
479 479
 	  fi; \
480 480
 	done
481
-	list='$(SUBDIRS)'; for subdir in $$list; do \
481
+	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
482 482
 	  if test "$$subdir" = .; then :; else \
483 483
 	    test -d "$(distdir)/$$subdir" \
484
-	    || mkdir "$(distdir)/$$subdir" \
484
+	    || $(mkdir_p) "$(distdir)/$$subdir" \
485 485
 	    || exit 1; \
486
+	    distdir=`$(am__cd) $(distdir) && pwd`; \
487
+	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
486 488
 	    (cd $$subdir && \
487 489
 	      $(MAKE) $(AM_MAKEFLAGS) \
488
-	        top_distdir="../$(top_distdir)" \
489
-	        distdir="../$(distdir)/$$subdir" \
490
+	        top_distdir="$$top_distdir" \
491
+	        distdir="$$distdir/$$subdir" \
490 492
 	        distdir) \
491 493
 	      || exit 1; \
492 494
 	  fi; \
... ...
@@ -497,15 +519,15 @@ distdir: $(DISTFILES)
497 497
 	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
498 498
 	|| chmod -R a+r $(distdir)
499 499
 dist-gzip: distdir
500
-	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
500
+	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
501 501
 	$(am__remove_distdir)
502 502
 
503 503
 dist-bzip2: distdir
504
-	$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
504
+	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
505 505
 	$(am__remove_distdir)
506 506
 
507 507
 dist-tarZ: distdir
508
-	$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
508
+	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
509 509
 	$(am__remove_distdir)
510 510
 
511 511
 dist-shar: distdir
... ...
@@ -518,7 +540,7 @@ dist-zip: distdir
518 518
 	$(am__remove_distdir)
519 519
 
520 520
 dist dist-all: distdir
521
-	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
521
+	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
522 522
 	$(am__remove_distdir)
523 523
 
524 524
 # This target untars the dist file and tries a VPATH configuration.  Then
... ...
@@ -527,11 +549,11 @@ dist dist-all: distdir
527 527
 distcheck: dist
528 528
 	case '$(DIST_ARCHIVES)' in \
529 529
 	*.tar.gz*) \
530
-	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
530
+	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
531 531
 	*.tar.bz2*) \
532
-	  bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
532
+	  bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
533 533
 	*.tar.Z*) \
534
-	  uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
534
+	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
535 535
 	*.shar.gz*) \
536 536
 	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
537 537
 	*.zip*) \
... ...
@@ -615,7 +637,7 @@ mostlyclean-generic:
615 615
 clean-generic:
616 616
 
617 617
 distclean-generic:
618
-	-rm -f $(CONFIG_CLEAN_FILES)
618
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
619 619
 
620 620
 maintainer-clean-generic:
621 621
 	@echo "This command is intended for maintainers to use"
... ...
@@ -1,9 +1,80 @@
1
-0.83
1
+0.84rc2
2
+-------
2 3
 
3
-Due to a high number of bad files produced by broken software, the MS05-002
4
-exploit detector now only checks specific RIFF files. This version also fixes
5
-a stability problem of clamav-milter/clamd and improves e-mail scanning.
4
+This version improves detection of JPEG (MS04-028) based exploits, introduces
5
+support for TNEF files and new detection mechanisms. Various bugfixes
6
+(including problems with scanning of digest mail files) and improvements
7
+have been made.
8
+
9
+
10
+-) libclamav:
11
+    + JPEG exploit detector now also checks embedded Photoshop thumbnail images
12
+    + archive meta-data scanner (improves malware detection within encrypted
13
+      archives)
14
+    + support for TNEF (winmail.dat) decoding
15
+    + support for all tar archive formats
16
+    + MD5 implementation replaced with a slightly faster one
17
+    + improved database reloading with reference counter
18
+    + database updateable false positive eliminator
19
+    + speed improvements
20
+    + various bugfixes
21
+
22
+-) clamd:
23
+    + VirusEvent now sets CLAM_VIRUSEVENT_FILENAME and CLAM_VIRUSEVENT_VIRUSNAME
24
+      environment variables
25
+
26
+-) clamav-milter:
27
+    + improved database update detection when not --external
28
+
29
+-) clamscan:
30
+    + new options --include-dir and exclude-dir
31
+    + new option --max-dir-recursion
32
+
33
+-) freshclam:
34
+    + new directive LocalIPAddress
35
+
36
+-) contrib:
37
+    + clamdmon 1.0 - clamdwatch replacement written in C
38
+
39
+-) 3rd party software:
40
+    + hMailServer - open source e-mail server for Microsoft Window
41
+    + pop3.proxy - proxy server for the POP3 protocol
42
+    + HTTP Anti Virus Proxy
43
+    + Squidclam - replacement for SquidClamAV-Redirector.py written in C
44
+    + QtClamAVclient - remote clamd client based on the Qt Toolkit
45
+    + qpsmtp - flexible smtpd daemon written in Perl
46
+
47
+
48
+News:
49
+
50
+Palo Alto, Calif. March 31st 2005 - Clam AntiVirus, the leading Open Source
51
+antivirus toolkit, and Sensory Networks, the leading provider of hardware
52
+acceleration for network security applications, announced a partnership
53
+to provide hardware acceleration support for the Clam AntiVirus suite.
54
+[...]
55
+Support for Sensory Networks' NodalCore acceleration in ClamAV will be
56
+available in version 0.90 of the software suite in Q3 2005. For more
57
+information please visit:
58
+http://www.clamav.net/partners/partner-sn.html
59
+http://www.sensorynetworks.com/
60
+
61
+
62
+The ClamAV project announces the opening of the official merchandise store:
63
+
64
+http://www.cafepress.com/clamav/
65
+
66
+A big thank you to Finndesign (http://www.finndesign.fi) which
67
+volunteered to design the whole line of products, including:
68
+
69
+- t-shirts (for women and men)
70
+- golf shirt
71
+- sweatshirt
72
+- coffee mug
73
+- mousepad
74
+- stickers
75
+- scrapbook
76
+
77
+By purchasing our merchandise, you contribute to the development of ClamAV.
6 78
 
7 79
 --
8 80
 The ClamAV team (http://www.clamav.net/team.html)
... ...
@@ -2,6 +2,88 @@ Note: This README/NEWS file refers to the source tarball. Some things described
2 2
 here may not be available in binary packages.
3 3
 --
4 4
 
5
+0.84rc2
6
+-------
7
+
8
+This version improves detection of JPEG (MS04-028) based exploits, introduces
9
+support for TNEF files and new detection mechanisms. Various bugfixes
10
+(including problems with scanning of digest mail files) and improvements
11
+have been made.
12
+
13
+
14
+-) libclamav:
15
+    + JPEG exploit detector now also checks embedded Photoshop thumbnail images
16
+    + archive meta-data scanner (improves malware detection within encrypted
17
+      archives)
18
+    + support for TNEF (winmail.dat) decoding
19
+    + support for all tar archive formats
20
+    + MD5 implementation replaced with a slightly faster one
21
+    + improved database reloading with reference counter
22
+    + database updateable false positive eliminator
23
+    + speed improvements
24
+    + various bugfixes
25
+
26
+-) clamd:
27
+    + VirusEvent now sets CLAM_VIRUSEVENT_FILENAME and CLAM_VIRUSEVENT_VIRUSNAME
28
+      environment variables
29
+
30
+-) clamav-milter:
31
+    + improved database update detection when not --external
32
+
33
+-) clamscan:
34
+    + new options --include-dir and exclude-dir
35
+    + new option --max-dir-recursion
36
+
37
+-) freshclam:
38
+    + new directive LocalIPAddress
39
+
40
+-) contrib:
41
+    + clamdmon 1.0 - clamdwatch replacement written in C
42
+
43
+-) 3rd party software:
44
+    + hMailServer - open source e-mail server for Microsoft Window
45
+    + pop3.proxy - proxy server for the POP3 protocol
46
+    + HTTP Anti Virus Proxy
47
+    + Squidclam - replacement for SquidClamAV-Redirector.py written in C
48
+    + QtClamAVclient - remote clamd client based on the Qt Toolkit
49
+    + qpsmtp - flexible smtpd daemon written in Perl
50
+
51
+
52
+News:
53
+
54
+Palo Alto, Calif. March 31st 2005 - Clam AntiVirus, the leading Open Source
55
+antivirus toolkit, and Sensory Networks, the leading provider of hardware
56
+acceleration for network security applications, announced a partnership
57
+to provide hardware acceleration support for the Clam AntiVirus suite.
58
+[...]
59
+Support for Sensory Networks' NodalCore acceleration in ClamAV will be
60
+available in version 0.90 of the software suite in Q3 2005. For more
61
+information please visit:
62
+http://www.clamav.net/partners/partner-sn.html
63
+http://www.sensorynetworks.com/
64
+
65
+
66
+The ClamAV project announces the opening of the official merchandise store:
67
+
68
+http://www.cafepress.com/clamav/
69
+
70
+A big thank you to Finndesign (http://www.finndesign.fi) which
71
+volunteered to design the whole line of products, including:
72
+
73
+- t-shirts (for women and men)
74
+- golf shirt
75
+- sweatshirt
76
+- coffee mug
77
+- mousepad
78
+- stickers
79
+- scrapbook
80
+
81
+By purchasing our merchandise, you contribute to the development of ClamAV.
82
+
83
+--
84
+The ClamAV team (http://www.clamav.net/team.html)
85
+
86
+
5 87
 0.83
6 88
 ----
7 89
 
... ...
@@ -18,7 +100,7 @@ The ClamAV team (http://www.clamav.net/team.html)
18 18
 This release adds generic detection of MS05-002 ("Vulnerability in Cursor and
19 19
 Icon Format Handling Could Allow Remote Code Execution") based exploits.
20 20
 Fixes include correct attachment scanning in e-mails generated by some
21
-Internet worms (broken in 0.81), removed false positive "Suspected.Zip"
21
+Internet worms (broken in 0.81), removed false positive "Suspect.Zip"
22 22
 warning on non-standard zip archives created by ICEOWS, better proxy support
23 23
 in freshclam, and speed improvements.
24 24
 
... ...
@@ -1,7 +1,7 @@
1
-# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
1
+# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
2 2
 
3
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4
-# Free Software Foundation, Inc.
3
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
+# 2005  Free Software Foundation, Inc.
5 5
 # This file is free software; the Free Software Foundation
6 6
 # gives unlimited permission to copy and/or distribute it,
7 7
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -11,5971 +11,32 @@
11 11
 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 12
 # PARTICULAR PURPOSE.
13 13
 
14
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
-
16
-# serial 47 AC_PROG_LIBTOOL
17
-# Debian $Rev: 214 $
18
-
19
-
20
-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
21
-# -----------------------------------------------------------
22
-# If this macro is not defined by Autoconf, define it here.
23
-m4_ifdef([AC_PROVIDE_IFELSE],
24
-         [],
25
-         [m4_define([AC_PROVIDE_IFELSE],
26
-	         [m4_ifdef([AC_PROVIDE_$1],
27
-		           [$2], [$3])])])
28
-
29
-
30
-# AC_PROG_LIBTOOL
31
-# ---------------
32
-AC_DEFUN([AC_PROG_LIBTOOL],
33
-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
34
-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
35
-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
36
-  AC_PROVIDE_IFELSE([AC_PROG_CXX],
37
-    [AC_LIBTOOL_CXX],
38
-    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
39
-  ])])
40
-dnl And a similar setup for Fortran 77 support
41
-  AC_PROVIDE_IFELSE([AC_PROG_F77],
42
-    [AC_LIBTOOL_F77],
43
-    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
44
-])])
45
-
46
-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
47
-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
48
-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
49
-  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
50
-    [AC_LIBTOOL_GCJ],
51
-    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
52
-      [AC_LIBTOOL_GCJ],
53
-      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
54
-	[AC_LIBTOOL_GCJ],
55
-      [ifdef([AC_PROG_GCJ],
56
-	     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
57
-       ifdef([A][M_PROG_GCJ],
58
-	     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
59
-       ifdef([LT_AC_PROG_GCJ],
60
-	     [define([LT_AC_PROG_GCJ],
61
-		defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
62
-])])# AC_PROG_LIBTOOL
63
-
64
-
65
-# _AC_PROG_LIBTOOL
66
-# ----------------
67
-AC_DEFUN([_AC_PROG_LIBTOOL],
68
-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
69
-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
70
-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
71
-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
72
-
73
-# This can be used to rebuild libtool when needed
74
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
75
-
76
-# Always use our own libtool.
77
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
78
-AC_SUBST(LIBTOOL)dnl
79
-
80
-# Prevent multiple expansion
81
-define([AC_PROG_LIBTOOL], [])
82
-])# _AC_PROG_LIBTOOL
83
-
84
-
85
-# AC_LIBTOOL_SETUP
86
-# ----------------
87
-AC_DEFUN([AC_LIBTOOL_SETUP],
88
-[AC_PREREQ(2.50)dnl
89
-AC_REQUIRE([AC_ENABLE_SHARED])dnl
90
-AC_REQUIRE([AC_ENABLE_STATIC])dnl
91
-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
92
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
93
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
94
-AC_REQUIRE([AC_PROG_CC])dnl
95
-AC_REQUIRE([AC_PROG_LD])dnl
96
-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
97
-AC_REQUIRE([AC_PROG_NM])dnl
98
-
99
-AC_REQUIRE([AC_PROG_LN_S])dnl
100
-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
101
-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
102
-AC_REQUIRE([AC_OBJEXT])dnl
103
-AC_REQUIRE([AC_EXEEXT])dnl
104
-dnl
105
-
106
-AC_LIBTOOL_SYS_MAX_CMD_LEN
107
-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
108
-AC_LIBTOOL_OBJDIR
109
-
110
-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
111
-_LT_AC_PROG_ECHO_BACKSLASH
112
-
113
-case $host_os in
114
-aix3*)
115
-  # AIX sometimes has problems with the GCC collect2 program.  For some
116
-  # reason, if we set the COLLECT_NAMES environment variable, the problems
117
-  # vanish in a puff of smoke.
118
-  if test "X${COLLECT_NAMES+set}" != Xset; then
119
-    COLLECT_NAMES=
120
-    export COLLECT_NAMES
121
-  fi
122
-  ;;
123
-esac
124
-
125
-# Sed substitution that helps us do robust quoting.  It backslashifies
126
-# metacharacters that are still active within double-quoted strings.
127
-Xsed='sed -e s/^X//'
128
-[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
129
-
130
-# Same as above, but do not quote variable references.
131
-[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
132
-
133
-# Sed substitution to delay expansion of an escaped shell variable in a
134
-# double_quote_subst'ed string.
135
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
136
-
137
-# Sed substitution to avoid accidental globbing in evaled expressions
138
-no_glob_subst='s/\*/\\\*/g'
139
-
140
-# Constants:
141
-rm="rm -f"
142
-
143
-# Global variables:
144
-default_ofile=libtool
145
-can_build_shared=yes
146
-
147
-# All known linkers require a `.a' archive for static linking (except M$VC,
148
-# which needs '.lib').
149
-libext=a
150
-ltmain="$ac_aux_dir/ltmain.sh"
151
-ofile="$default_ofile"
152
-with_gnu_ld="$lt_cv_prog_gnu_ld"
153
-
154
-AC_CHECK_TOOL(AR, ar, false)
155
-AC_CHECK_TOOL(RANLIB, ranlib, :)
156
-AC_CHECK_TOOL(STRIP, strip, :)
157
-
158
-old_CC="$CC"
159
-old_CFLAGS="$CFLAGS"
160
-
161
-# Set sane defaults for various variables
162
-test -z "$AR" && AR=ar
163
-test -z "$AR_FLAGS" && AR_FLAGS=cru
164
-test -z "$AS" && AS=as
165
-test -z "$CC" && CC=cc
166
-test -z "$LTCC" && LTCC=$CC
167
-test -z "$DLLTOOL" && DLLTOOL=dlltool
168
-test -z "$LD" && LD=ld
169
-test -z "$LN_S" && LN_S="ln -s"
170
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
171
-test -z "$NM" && NM=nm
172
-test -z "$SED" && SED=sed
173
-test -z "$OBJDUMP" && OBJDUMP=objdump
174
-test -z "$RANLIB" && RANLIB=:
175
-test -z "$STRIP" && STRIP=:
176
-test -z "$ac_objext" && ac_objext=o
177
-
178
-# Determine commands to create old-style static archives.
179
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
180
-old_postinstall_cmds='chmod 644 $oldlib'
181
-old_postuninstall_cmds=
182
-
183
-if test -n "$RANLIB"; then
184
-  case $host_os in
185
-  openbsd*)
186
-    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
187
-    ;;
188
-  *)
189
-    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
190
-    ;;
191
-  esac
192
-  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
193
-fi
194
-
195
-# Only perform the check for file, if the check method requires it
196
-case $deplibs_check_method in
197
-file_magic*)
198
-  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
199
-    AC_PATH_MAGIC
200
-  fi
201
-  ;;
202
-esac
203
-
204
-AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
205
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
206
-enable_win32_dll=yes, enable_win32_dll=no)
207
-
208
-AC_ARG_ENABLE([libtool-lock],
209
-    [AC_HELP_STRING([--disable-libtool-lock],
210
-	[avoid locking (might break parallel builds)])])
211
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
212
-
213
-AC_ARG_WITH([pic],
214
-    [AC_HELP_STRING([--with-pic],
215
-	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
216
-    [pic_mode="$withval"],
217
-    [pic_mode=default])
218
-test -z "$pic_mode" && pic_mode=default
219
-
220
-# Use C for the default configuration in the libtool script
221
-tagname=
222
-AC_LIBTOOL_LANG_C_CONFIG
223
-_LT_AC_TAGCONFIG
224
-])# AC_LIBTOOL_SETUP
225
-
226
-
227
-# _LT_AC_SYS_COMPILER
228
-# -------------------
229
-AC_DEFUN([_LT_AC_SYS_COMPILER],
230
-[AC_REQUIRE([AC_PROG_CC])dnl
231
-
232
-# If no C compiler was specified, use CC.
233
-LTCC=${LTCC-"$CC"}
234
-
235
-# Allow CC to be a program name with arguments.
236
-compiler=$CC
237
-])# _LT_AC_SYS_COMPILER
238
-
239
-
240
-# _LT_AC_SYS_LIBPATH_AIX
241
-# ----------------------
242
-# Links a minimal program and checks the executable
243
-# for the system default hardcoded library path. In most cases,
244
-# this is /usr/lib:/lib, but when the MPI compilers are used
245
-# the location of the communication and MPI libs are included too.
246
-# If we don't find anything, use the default library path according
247
-# to the aix ld manual.
248
-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
249
-[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
250
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
251
-}'`
252
-# Check for a 64-bit object if we didn't find anything.
253
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
254
-}'`; fi],[])
255
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
256
-])# _LT_AC_SYS_LIBPATH_AIX
257
-
258
-
259
-# _LT_AC_SHELL_INIT(ARG)
260
-# ----------------------
261
-AC_DEFUN([_LT_AC_SHELL_INIT],
262
-[ifdef([AC_DIVERSION_NOTICE],
263
-	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
264
-	 [AC_DIVERT_PUSH(NOTICE)])
265
-$1
266
-AC_DIVERT_POP
267
-])# _LT_AC_SHELL_INIT
268
-
269
-
270
-# _LT_AC_PROG_ECHO_BACKSLASH
271
-# --------------------------
272
-# Add some code to the start of the generated configure script which
273
-# will find an echo command which doesn't interpret backslashes.
274
-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
275
-[_LT_AC_SHELL_INIT([
276
-# Check that we are running under the correct shell.
277
-SHELL=${CONFIG_SHELL-/bin/sh}
278
-
279
-case X$ECHO in
280
-X*--fallback-echo)
281
-  # Remove one level of quotation (which was required for Make).
282
-  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
283
-  ;;
284
-esac
285
-
286
-echo=${ECHO-echo}
287
-if test "X[$]1" = X--no-reexec; then
288
-  # Discard the --no-reexec flag, and continue.
289
-  shift
290
-elif test "X[$]1" = X--fallback-echo; then
291
-  # Avoid inline document here, it may be left over
292
-  :
293
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
294
-  # Yippee, $echo works!
295
-  :
296
-else
297
-  # Restart under the correct shell.
298
-  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
299
-fi
300
-
301
-if test "X[$]1" = X--fallback-echo; then
302
-  # used as fallback echo
303
-  shift
304
-  cat <<EOF
305
-[$]*
306
-EOF
307
-  exit 0
308
-fi
309
-
310
-# The HP-UX ksh and POSIX shell print the target directory to stdout
311
-# if CDPATH is set.
312
-if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
313
-
314
-if test -z "$ECHO"; then
315
-if test "X${echo_test_string+set}" != Xset; then
316
-# find a string as large as possible, as long as the shell can cope with it
317
-  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
318
-    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
319
-    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
320
-       echo_test_string="`eval $cmd`" &&
321
-       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
322
-    then
323
-      break
324
-    fi
325
-  done
326
-fi
327
-
328
-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
329
-   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
330
-   test "X$echo_testing_string" = "X$echo_test_string"; then
331
-  :
332
-else
333
-  # The Solaris, AIX, and Digital Unix default echo programs unquote
334
-  # backslashes.  This makes it impossible to quote backslashes using
335
-  #   echo "$something" | sed 's/\\/\\\\/g'
336
-  #
337
-  # So, first we look for a working echo in the user's PATH.
338
-
339
-  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
340
-  for dir in $PATH /usr/ucb; do
341
-    IFS="$lt_save_ifs"
342
-    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
343
-       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
344
-       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
345
-       test "X$echo_testing_string" = "X$echo_test_string"; then
346
-      echo="$dir/echo"
347
-      break
348
-    fi
349
-  done
350
-  IFS="$lt_save_ifs"
351
-
352
-  if test "X$echo" = Xecho; then
353
-    # We didn't find a better echo, so look for alternatives.
354
-    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
355
-       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
356
-       test "X$echo_testing_string" = "X$echo_test_string"; then
357
-      # This shell has a builtin print -r that does the trick.
358
-      echo='print -r'
359
-    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
360
-	 test "X$CONFIG_SHELL" != X/bin/ksh; then
361
-      # If we have ksh, try running configure again with it.
362
-      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
363
-      export ORIGINAL_CONFIG_SHELL
364
-      CONFIG_SHELL=/bin/ksh
365
-      export CONFIG_SHELL
366
-      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
367
-    else
368
-      # Try using printf.
369
-      echo='printf %s\n'
370
-      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
371
-	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
372
-	 test "X$echo_testing_string" = "X$echo_test_string"; then
373
-	# Cool, printf works
374
-	:
375
-      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
376
-	   test "X$echo_testing_string" = 'X\t' &&
377
-	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
378
-	   test "X$echo_testing_string" = "X$echo_test_string"; then
379
-	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
380
-	export CONFIG_SHELL
381
-	SHELL="$CONFIG_SHELL"
382
-	export SHELL
383
-	echo="$CONFIG_SHELL [$]0 --fallback-echo"
384
-      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
385
-	   test "X$echo_testing_string" = 'X\t' &&
386
-	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
387
-	   test "X$echo_testing_string" = "X$echo_test_string"; then
388
-	echo="$CONFIG_SHELL [$]0 --fallback-echo"
389
-      else
390
-	# maybe with a smaller string...
391
-	prev=:
392
-
393
-	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
394
-	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
395
-	  then
396
-	    break
397
-	  fi
398
-	  prev="$cmd"
399
-	done
400
-
401
-	if test "$prev" != 'sed 50q "[$]0"'; then
402
-	  echo_test_string=`eval $prev`
403
-	  export echo_test_string
404
-	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
405
-	else
406
-	  # Oops.  We lost completely, so just stick with echo.
407
-	  echo=echo
408
-	fi
409
-      fi
410
-    fi
411
-  fi
412
-fi
413
-fi
414
-
415
-# Copy echo and quote the copy suitably for passing to libtool from
416
-# the Makefile, instead of quoting the original, which is used later.
417
-ECHO=$echo
418
-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
419
-   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
420
-fi
421
-
422
-AC_SUBST(ECHO)
423
-])])# _LT_AC_PROG_ECHO_BACKSLASH
424
-
425
-
426
-# _LT_AC_LOCK
427
-# -----------
428
-AC_DEFUN([_LT_AC_LOCK],
429
-[AC_ARG_ENABLE([libtool-lock],
430
-    [AC_HELP_STRING([--disable-libtool-lock],
431
-	[avoid locking (might break parallel builds)])])
432
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
433
-
434
-# Some flags need to be propagated to the compiler or linker for good
435
-# libtool support.
436
-case $host in
437
-ia64-*-hpux*)
438
-  # Find out which ABI we are using.
439
-  echo 'int i;' > conftest.$ac_ext
440
-  if AC_TRY_EVAL(ac_compile); then
441
-    case `/usr/bin/file conftest.$ac_objext` in
442
-    *ELF-32*)
443
-      HPUX_IA64_MODE="32"
444
-      ;;
445
-    *ELF-64*)
446
-      HPUX_IA64_MODE="64"
447
-      ;;
448
-    esac
449
-  fi
450
-  rm -rf conftest*
451
-  ;;
452
-*-*-irix6*)
453
-  # Find out which ABI we are using.
454
-  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
455
-  if AC_TRY_EVAL(ac_compile); then
456
-   if test "$lt_cv_prog_gnu_ld" = yes; then
457
-    case `/usr/bin/file conftest.$ac_objext` in
458
-    *32-bit*)
459
-      LD="${LD-ld} -melf32bsmip"
460
-      ;;
461
-    *N32*)
462
-      LD="${LD-ld} -melf32bmipn32"
463
-      ;;
464
-    *64-bit*)
465
-      LD="${LD-ld} -melf64bmip"
466
-      ;;
467
-    esac
468
-   else
469
-    case `/usr/bin/file conftest.$ac_objext` in
470
-    *32-bit*)
471
-      LD="${LD-ld} -32"
472
-      ;;
473
-    *N32*)
474
-      LD="${LD-ld} -n32"
475
-      ;;
476
-    *64-bit*)
477
-      LD="${LD-ld} -64"
478
-      ;;
479
-    esac
480
-   fi
481
-  fi
482
-  rm -rf conftest*
483
-  ;;
484
-
485
-x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
486
-  # Find out which ABI we are using.
487
-  echo 'int i;' > conftest.$ac_ext
488
-  if AC_TRY_EVAL(ac_compile); then
489
-    case "`/usr/bin/file conftest.o`" in
490
-    *32-bit*)
491
-      case $host in
492
-        x86_64-*linux*)
493
-          LD="${LD-ld} -m elf_i386"
494
-          ;;
495
-        ppc64-*linux*|powerpc64-*linux*)
496
-          LD="${LD-ld} -m elf32ppclinux"
497
-          ;;
498
-        s390x-*linux*)
499
-          LD="${LD-ld} -m elf_s390"
500
-          ;;
501
-        sparc64-*linux*)
502
-          LD="${LD-ld} -m elf32_sparc"
503
-          ;;
504
-      esac
505
-      ;;
506
-    *64-bit*)
507
-      case $host in
508
-        x86_64-*linux*)
509
-          LD="${LD-ld} -m elf_x86_64"
510
-          ;;
511
-        ppc*-*linux*|powerpc*-*linux*)
512
-          LD="${LD-ld} -m elf64ppc"
513
-          ;;
514
-        s390*-*linux*)
515
-          LD="${LD-ld} -m elf64_s390"
516
-          ;;
517
-        sparc*-*linux*)
518
-          LD="${LD-ld} -m elf64_sparc"
519
-          ;;
520
-      esac
521
-      ;;
522
-    esac
523
-  fi
524
-  rm -rf conftest*
525
-  ;;
526
-
527
-*-*-sco3.2v5*)
528
-  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
529
-  SAVE_CFLAGS="$CFLAGS"
530
-  CFLAGS="$CFLAGS -belf"
531
-  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
532
-    [AC_LANG_PUSH(C)
533
-     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
534
-     AC_LANG_POP])
535
-  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
536
-    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
537
-    CFLAGS="$SAVE_CFLAGS"
538
-  fi
539
-  ;;
540
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
541
-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
542
-  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
543
-  AC_CHECK_TOOL(AS, as, false)
544
-  AC_CHECK_TOOL(OBJDUMP, objdump, false)
545
-  ;;
546
-  ])
547
-esac
548
-
549
-need_locks="$enable_libtool_lock"
550
-
551
-])# _LT_AC_LOCK
552
-
553
-
554
-# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
555
-#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
556
-# ----------------------------------------------------------------
557
-# Check whether the given compiler option works
558
-AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
559
-[AC_REQUIRE([LT_AC_PROG_SED])
560
-AC_CACHE_CHECK([$1], [$2],
561
-  [$2=no
562
-  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
563
-   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
564
-   lt_compiler_flag="$3"
565
-   # Insert the option either (1) after the last *FLAGS variable, or
566
-   # (2) before a word containing "conftest.", or (3) at the end.
567
-   # Note that $ac_compile itself does not contain backslashes and begins
568
-   # with a dollar sign (not a hyphen), so the echo should work correctly.
569
-   # The option is referenced via a variable to avoid confusing sed.
570
-   lt_compile=`echo "$ac_compile" | $SED \
571
-   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
572
-   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
573
-   -e 's:$: $lt_compiler_flag:'`
574
-   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
575
-   (eval "$lt_compile" 2>conftest.err)
576
-   ac_status=$?
577
-   cat conftest.err >&AS_MESSAGE_LOG_FD
578
-   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
579
-   if (exit $ac_status) && test -s "$ac_outfile"; then
580
-     # The compiler can only warn and ignore the option if not recognized
581
-     # So say no if there are warnings
582
-     if test ! -s conftest.err; then
583
-       $2=yes
584
-     fi
585
-   fi
586
-   $rm conftest*
587
-])
588
-
589
-if test x"[$]$2" = xyes; then
590
-    ifelse([$5], , :, [$5])
591
-else
592
-    ifelse([$6], , :, [$6])
593
-fi
594
-])# AC_LIBTOOL_COMPILER_OPTION
595
-
596
-
597
-# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
598
-#                          [ACTION-SUCCESS], [ACTION-FAILURE])
599
-# ------------------------------------------------------------
600
-# Check whether the given compiler option works
601
-AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
602
-[AC_CACHE_CHECK([$1], [$2],
603
-  [$2=no
604
-   save_LDFLAGS="$LDFLAGS"
605
-   LDFLAGS="$LDFLAGS $3"
606
-   printf "$lt_simple_link_test_code" > conftest.$ac_ext
607
-   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
608
-     # The compiler can only warn and ignore the option if not recognized
609
-     # So say no if there are warnings
610
-     if test -s conftest.err; then
611
-       # Append any errors to the config.log.
612
-       cat conftest.err 1>&AS_MESSAGE_LOG_FD
613
-     else
614
-       $2=yes
615
-     fi
616
-   fi
617
-   $rm conftest*
618
-   LDFLAGS="$save_LDFLAGS"
619
-])
620
-
621
-if test x"[$]$2" = xyes; then
622
-    ifelse([$4], , :, [$4])
623
-else
624
-    ifelse([$5], , :, [$5])
625
-fi
626
-])# AC_LIBTOOL_LINKER_OPTION
627
-
628
-
629
-# AC_LIBTOOL_SYS_MAX_CMD_LEN
630
-# --------------------------
631
-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
632
-[# find the maximum length of command line arguments
633
-AC_MSG_CHECKING([the maximum length of command line arguments])
634
-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
635
-  i=0
636
-  teststring="ABCD"
637
-
638
-  case $build_os in
639
-  msdosdjgpp*)
640
-    # On DJGPP, this test can blow up pretty badly due to problems in libc
641
-    # (any single argument exceeding 2000 bytes causes a buffer overrun
642
-    # during glob expansion).  Even if it were fixed, the result of this
643
-    # check would be larger than it should be.
644
-    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
645
-    ;;
646
-
647
-  gnu*)
648
-    # Under GNU Hurd, this test is not required because there is
649
-    # no limit to the length of command line arguments.
650
-    # Libtool will interpret -1 as no limit whatsoever
651
-    lt_cv_sys_max_cmd_len=-1;
652
-    ;;
653
-
654
-  cygwin* | mingw*)
655
-    # On Win9x/ME, this test blows up -- it succeeds, but takes
656
-    # about 5 minutes as the teststring grows exponentially.
657
-    # Worse, since 9x/ME are not pre-emptively multitasking,
658
-    # you end up with a "frozen" computer, even though with patience
659
-    # the test eventually succeeds (with a max line length of 256k).
660
-    # Instead, let's just punt: use the minimum linelength reported by
661
-    # all of the supported platforms: 8192 (on NT/2K/XP).
662
-    lt_cv_sys_max_cmd_len=8192;
663
-    ;;
664
-
665
-  amigaos*)
666
-    # On AmigaOS with pdksh, this test takes hours, literally.
667
-    # So we just punt and use a minimum line length of 8192.
668
-    lt_cv_sys_max_cmd_len=8192;
669
-    ;;
670
-
671
- *)
672
-    # If test is not a shell built-in, we'll probably end up computing a
673
-    # maximum length that is only half of the actual maximum length, but
674
-    # we can't tell.
675
-    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
676
-	       = "XX$teststring") >/dev/null 2>&1 &&
677
-	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
678
-	    lt_cv_sys_max_cmd_len=$new_result &&
679
-	    test $i != 17 # 1/2 MB should be enough
680
-    do
681
-      i=`expr $i + 1`
682
-      teststring=$teststring$teststring
683
-    done
684
-    teststring=
685
-    # Add a significant safety factor because C++ compilers can tack on massive
686
-    # amounts of additional arguments before passing them to the linker.
687
-    # It appears as though 1/2 is a usable value.
688
-    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
689
-    ;;
690
-  esac
691
-])
692
-if test -n $lt_cv_sys_max_cmd_len ; then
693
-  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
694
-else
695
-  AC_MSG_RESULT(none)
696
-fi
697
-])# AC_LIBTOOL_SYS_MAX_CMD_LEN
698
-
699
-
700
-# _LT_AC_CHECK_DLFCN
701
-# --------------------
702
-AC_DEFUN([_LT_AC_CHECK_DLFCN],
703
-[AC_CHECK_HEADERS(dlfcn.h)dnl
704
-])# _LT_AC_CHECK_DLFCN
705
-
706
-
707
-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
708
-#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
709
-# ------------------------------------------------------------------
710
-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
711
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
712
-if test "$cross_compiling" = yes; then :
713
-  [$4]
714
-else
715
-  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
716
-  lt_status=$lt_dlunknown
717
-  cat > conftest.$ac_ext <<EOF
718
-[#line __oline__ "configure"
719
-#include "confdefs.h"
720
-
721
-#if HAVE_DLFCN_H
722
-#include <dlfcn.h>
723
-#endif
724
-
725
-#include <stdio.h>
726
-
727
-#ifdef RTLD_GLOBAL
728
-#  define LT_DLGLOBAL		RTLD_GLOBAL
729
-#else
730
-#  ifdef DL_GLOBAL
731
-#    define LT_DLGLOBAL		DL_GLOBAL
732
-#  else
733
-#    define LT_DLGLOBAL		0
734
-#  endif
735
-#endif
736
-
737
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
738
-   find out it does not work in some platform. */
739
-#ifndef LT_DLLAZY_OR_NOW
740
-#  ifdef RTLD_LAZY
741
-#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
742
-#  else
743
-#    ifdef DL_LAZY
744
-#      define LT_DLLAZY_OR_NOW		DL_LAZY
745
-#    else
746
-#      ifdef RTLD_NOW
747
-#        define LT_DLLAZY_OR_NOW	RTLD_NOW
748
-#      else
749
-#        ifdef DL_NOW
750
-#          define LT_DLLAZY_OR_NOW	DL_NOW
751
-#        else
752
-#          define LT_DLLAZY_OR_NOW	0
753
-#        endif
754
-#      endif
755
-#    endif
756
-#  endif
757
-#endif
758
-
759
-#ifdef __cplusplus
760
-extern "C" void exit (int);
761
-#endif
762
-
763
-void fnord() { int i=42;}
764
-int main ()
765
-{
766
-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
767
-  int status = $lt_dlunknown;
768
-
769
-  if (self)
770
-    {
771
-      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
772
-      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
773
-      /* dlclose (self); */
774
-    }
775
-
776
-    exit (status);
777
-}]
778
-EOF
779
-  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
780
-    (./conftest; exit; ) 2>/dev/null
781
-    lt_status=$?
782
-    case x$lt_status in
783
-      x$lt_dlno_uscore) $1 ;;
784
-      x$lt_dlneed_uscore) $2 ;;
785
-      x$lt_unknown|x*) $3 ;;
786
-    esac
787
-  else :
788
-    # compilation failed
789
-    $3
790
-  fi
791
-fi
792
-rm -fr conftest*
793
-])# _LT_AC_TRY_DLOPEN_SELF
794
-
795
-
796
-# AC_LIBTOOL_DLOPEN_SELF
797
-# -------------------
798
-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
799
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
800
-if test "x$enable_dlopen" != xyes; then
801
-  enable_dlopen=unknown
802
-  enable_dlopen_self=unknown
803
-  enable_dlopen_self_static=unknown
804
-else
805
-  lt_cv_dlopen=no
806
-  lt_cv_dlopen_libs=
807
-
808
-  case $host_os in
809
-  beos*)
810
-    lt_cv_dlopen="load_add_on"
811
-    lt_cv_dlopen_libs=
812
-    lt_cv_dlopen_self=yes
813
-    ;;
814
-
815
-  mingw* | pw32*)
816
-    lt_cv_dlopen="LoadLibrary"
817
-    lt_cv_dlopen_libs=
818
-   ;;
819
-
820
-  cygwin*)
821
-    lt_cv_dlopen="dlopen"
822
-    lt_cv_dlopen_libs=
823
-   ;;
824
-
825
-  darwin*)
826
-  # if libdl is installed we need to link against it
827
-    AC_CHECK_LIB([dl], [dlopen],
828
-		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
829
-    lt_cv_dlopen="dyld"
830
-    lt_cv_dlopen_libs=
831
-    lt_cv_dlopen_self=yes
832
-    ])
833
-   ;;
834
-
835
-  *)
836
-    AC_CHECK_FUNC([shl_load],
837
-	  [lt_cv_dlopen="shl_load"],
838
-      [AC_CHECK_LIB([dld], [shl_load],
839
-	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
840
-	[AC_CHECK_FUNC([dlopen],
841
-	      [lt_cv_dlopen="dlopen"],
842
-	  [AC_CHECK_LIB([dl], [dlopen],
843
-		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
844
-	    [AC_CHECK_LIB([svld], [dlopen],
845
-		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
846
-	      [AC_CHECK_LIB([dld], [dld_link],
847
-		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
848
-	      ])
849
-	    ])
850
-	  ])
851
-	])
852
-      ])
853
-    ;;
854
-  esac
855
-
856
-  if test "x$lt_cv_dlopen" != xno; then
857
-    enable_dlopen=yes
858
-  else
859
-    enable_dlopen=no
860
-  fi
861
-
862
-  case $lt_cv_dlopen in
863
-  dlopen)
864
-    save_CPPFLAGS="$CPPFLAGS"
865
-    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
866
-
867
-    save_LDFLAGS="$LDFLAGS"
868
-    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
869
-
870
-    save_LIBS="$LIBS"
871
-    LIBS="$lt_cv_dlopen_libs $LIBS"
872
-
873
-    AC_CACHE_CHECK([whether a program can dlopen itself],
874
-	  lt_cv_dlopen_self, [dnl
875
-	  _LT_AC_TRY_DLOPEN_SELF(
876
-	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
877
-	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
878
-    ])
879
-
880
-    if test "x$lt_cv_dlopen_self" = xyes; then
881
-      LDFLAGS="$LDFLAGS $link_static_flag"
882
-      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
883
-    	  lt_cv_dlopen_self_static, [dnl
884
-	  _LT_AC_TRY_DLOPEN_SELF(
885
-	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
886
-	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
887
-      ])
888
-    fi
889
-
890
-    CPPFLAGS="$save_CPPFLAGS"
891
-    LDFLAGS="$save_LDFLAGS"
892
-    LIBS="$save_LIBS"
893
-    ;;
894
-  esac
895
-