Merge lp:~chrisccoulson/totem/ubuntu into lp:~ubuntu-desktop/totem/ubuntu

Proposed by Chris Coulson
Status: Merged
Merged at revision: not available
Proposed branch: lp:~chrisccoulson/totem/ubuntu
Merge into: lp:~ubuntu-desktop/totem/ubuntu
Diff against target: None lines
To merge this branch: bzr merge lp:~chrisccoulson/totem/ubuntu
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2009-03-12 23:04:47 +0000
+++ debian/changelog 2009-03-16 19:39:22 +0000
@@ -1,3 +1,13 @@
1totem (2.26.0-0ubuntu1) jaunty; urgency=low
2
3 * New upstream release (LP: #343843):
4 - Make sure all the Python plugins are translated.
5 - Fix the language selection in the OpenSubtitles plugin.
6 * debian/patches/70_autotools.patch:
7 - New version update.
8
9 -- Chris Coulson <chrisccoulson@googlemail.com> Mon, 16 Mar 2009 17:25:46 +0000
10
1totem (2.25.92-0ubuntu2) jaunty; urgency=low11totem (2.25.92-0ubuntu2) jaunty; urgency=low
212
3 * Reapply revisions dropped by error13 * Reapply revisions dropped by error
414
=== modified file 'debian/control'
--- debian/control 2009-03-09 17:02:51 +0000
+++ debian/control 2009-03-16 19:39:22 +0000
@@ -211,6 +211,7 @@
211 python-apt,211 python-apt,
212 python-gdbm,212 python-gdbm,
213 python-gobject (>= 2.15.3),213 python-gobject (>= 2.15.3),
214 python-gconf,
214 python-gtk2 (>= 2.13.0),215 python-gtk2 (>= 2.13.0),
215 python-gst0.10 (>= 0.10.12)216 python-gst0.10 (>= 0.10.12)
216Replaces: totem-xine (<< 2.20.0-3), totem-gstreamer (<< 2.20.0-3)217Replaces: totem-xine (<< 2.20.0-3), totem-gstreamer (<< 2.20.0-3)
217218
=== modified file 'debian/patches/70_autotools.patch'
--- debian/patches/70_autotools.patch 2009-03-09 17:02:51 +0000
+++ debian/patches/70_autotools.patch 2009-03-16 19:39:22 +0000
@@ -1,30 +1,190 @@
1Index: totem-2.25.92/INSTALL1Index: totem-2.26.0/INSTALL
2===================================================================2===================================================================
3--- totem-2.25.92.orig/INSTALL 2008-01-21 16:06:23.000000000 +01003--- totem-2.26.0.orig/INSTALL 2009-03-16 10:43:33.000000000 +0000
4+++ totem-2.25.92/INSTALL 2009-03-09 17:29:29.000000000 +01004+++ totem-2.26.0/INSTALL 2009-03-16 19:11:41.000000000 +0000
5@@ -2,7 +2,7 @@5@@ -2,15 +2,15 @@
6 *************************6 *************************
7 7
8 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,8 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
9-2006 Free Software Foundation, Inc.9-2006, 2007 Free Software Foundation, Inc.
10+2006, 2007 Free Software Foundation, Inc.10+2006, 2007, 2008 Free Software Foundation, Inc.
11 11
12 This file is free documentation; the Free Software Foundation gives12-This file is free documentation; the Free Software Foundation gives
13+ This file is free documentation; the Free Software Foundation gives
13 unlimited permission to copy, distribute and modify it.14 unlimited permission to copy, distribute and modify it.
14@@ -67,6 +67,9 @@15
15 all sorts of other programs in order to regenerate files that came16 Basic Installation
16 with the distribution.17 ==================
17 18
18+ 6. Often, you can also type `make uninstall' to remove the installed19-Briefly, the shell commands `./configure; make; make install' should
19+ files again.20+ Briefly, the shell commands `./configure; make; make install' should
20+21 configure, build, and install this package. The following
22 more-detailed instructions are generic; see the `README' file for
23 instructions specific to this package.
24@@ -73,9 +73,9 @@
21 Compilers and Options25 Compilers and Options
22 =====================26 =====================
23 27
24Index: totem-2.25.92/Makefile.in28-Some systems require unusual options for compilation or linking that the
29-`configure' script does not know about. Run `./configure --help' for
30-details on some of the pertinent environment variables.
31+ Some systems require unusual options for compilation or linking that
32+the `configure' script does not know about. Run `./configure --help'
33+for details on some of the pertinent environment variables.
34
35 You can give `configure' initial values for configuration parameters
36 by setting variables in the command line or in the environment. Here
37@@ -88,7 +88,7 @@
38 Compiling For Multiple Architectures
39 ====================================
40
41-You can compile the package for more than one kind of computer at the
42+ You can compile the package for more than one kind of computer at the
43 same time, by placing the object files for each architecture in their
44 own directory. To do this, you can use GNU `make'. `cd' to the
45 directory where you want the object files and executables to go and run
46@@ -100,10 +100,24 @@
47 installed the package for one architecture, use `make distclean' before
48 reconfiguring for another architecture.
49
50+ On MacOS X 10.5 and later systems, you can create libraries and
51+executables that work on multiple system types--known as "fat" or
52+"universal" binaries--by specifying multiple `-arch' options to the
53+compiler but only a single `-arch' option to the preprocessor. Like
54+this:
55+
56+ ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
57+ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
58+ CPP="gcc -E" CXXCPP="g++ -E"
59+
60+ This is not guaranteed to produce working output in all cases, you
61+may have to build one architecture at a time and combine the results
62+using the `lipo' tool if you have problems.
63+
64 Installation Names
65 ==================
66
67-By default, `make install' installs the package's commands under
68+ By default, `make install' installs the package's commands under
69 `/usr/local/bin', include files under `/usr/local/include', etc. You
70 can specify an installation prefix other than `/usr/local' by giving
71 `configure' the option `--prefix=PREFIX'.
72@@ -126,7 +140,7 @@
73 Optional Features
74 =================
75
76-Some packages pay attention to `--enable-FEATURE' options to
77+ Some packages pay attention to `--enable-FEATURE' options to
78 `configure', where FEATURE indicates an optional part of the package.
79 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
80 is something like `gnu-as' or `x' (for the X Window System). The
81@@ -138,14 +152,36 @@
82 you can use the `configure' options `--x-includes=DIR' and
83 `--x-libraries=DIR' to specify their locations.
84
85+Particular systems
86+==================
87+
88+ On HP-UX, the default C compiler is not ANSI C compatible. If GNU
89+CC is not installed, it is recommended to use the following options in
90+order to use an ANSI C compiler:
91+
92+ ./configure CC="cc -Ae"
93+
94+and if that doesn't work, install pre-built binaries of GCC for HP-UX.
95+
96+ On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
97+parse its `<wchar.h>' header file. The option `-nodtk' can be used as
98+a workaround. If GNU CC is not installed, it is therefore recommended
99+to try
100+
101+ ./configure CC="cc"
102+
103+and if that doesn't work, try
104+
105+ ./configure CC="cc -nodtk"
106+
107 Specifying the System Type
108 ==========================
109
110-There may be some features `configure' cannot figure out automatically,
111-but needs to determine by the type of machine the package will run on.
112-Usually, assuming the package is built to be run on the _same_
113-architectures, `configure' can figure that out, but if it prints a
114-message saying it cannot guess the machine type, give it the
115+ There may be some features `configure' cannot figure out
116+automatically, but needs to determine by the type of machine the package
117+will run on. Usually, assuming the package is built to be run on the
118+_same_ architectures, `configure' can figure that out, but if it prints
119+a message saying it cannot guess the machine type, give it the
120 `--build=TYPE' option. TYPE can either be a short name for the system
121 type, such as `sun4', or a canonical name which has the form:
122
123@@ -171,9 +207,9 @@
124 Sharing Defaults
125 ================
126
127-If you want to set default values for `configure' scripts to share, you
128-can create a site shell script called `config.site' that gives default
129-values for variables like `CC', `cache_file', and `prefix'.
130+ If you want to set default values for `configure' scripts to share,
131+you can create a site shell script called `config.site' that gives
132+default values for variables like `CC', `cache_file', and `prefix'.
133 `configure' looks for `PREFIX/share/config.site' if it exists, then
134 `PREFIX/etc/config.site' if it exists. Or, you can set the
135 `CONFIG_SITE' environment variable to the location of the site script.
136@@ -182,7 +218,7 @@
137 Defining Variables
138 ==================
139
140-Variables not defined in a site shell script can be set in the
141+ Variables not defined in a site shell script can be set in the
142 environment passed to `configure'. However, some packages may run
143 configure again during the build, and the customized values of these
144 variables may be lost. In order to avoid this problem, you should set
145@@ -201,11 +237,19 @@
146 `configure' Invocation
147 ======================
148
149-`configure' recognizes the following options to control how it operates.
150+ `configure' recognizes the following options to control how it
151+operates.
152
153 `--help'
154 `-h'
155- Print a summary of the options to `configure', and exit.
156+ Print a summary of all of the options to `configure', and exit.
157+
158+`--help=short'
159+`--help=recursive'
160+ Print a summary of the options unique to this package's
161+ `configure', and exit. The `short' variant lists options used
162+ only in the top level, while the `recursive' variant lists options
163+ also present in any nested packages.
164
165 `--version'
166 `-V'
167@@ -232,6 +276,16 @@
168 Look for the package's source code in directory DIR. Usually
169 `configure' can determine that directory automatically.
170
171+`--prefix=DIR'
172+ Use DIR as the installation prefix. *Note Installation Names::
173+ for more details, including other options available for fine-tuning
174+ the installation locations.
175+
176+`--no-create'
177+`-n'
178+ Run the configure checks, but stop before creating any output
179+ files.
180+
181 `configure' also accepts some other, not widely useful, options. Run
182 `configure --help' for more details.
183
184Index: totem-2.26.0/Makefile.in
25===================================================================185===================================================================
26--- totem-2.25.92.orig/Makefile.in 2009-03-03 13:02:19.000000000 +0100186--- totem-2.26.0.orig/Makefile.in 2009-03-16 10:43:33.000000000 +0000
27+++ totem-2.25.92/Makefile.in 2009-03-09 17:29:49.000000000 +0100187+++ totem-2.26.0/Makefile.in 2009-03-16 19:11:41.000000000 +0000
28@@ -1,4 +1,4 @@188@@ -1,4 +1,4 @@
29-# Makefile.in generated by automake 1.10.1 from Makefile.am.189-# Makefile.in generated by automake 1.10.1 from Makefile.am.
30+# Makefile.in generated by automake 1.10.2 from Makefile.am.190+# Makefile.in generated by automake 1.10.2 from Makefile.am.
@@ -66,15 +226,38 @@
66 GTK_CFLAGS = @GTK_CFLAGS@226 GTK_CFLAGS = @GTK_CFLAGS@
67 GTK_LIBS = @GTK_LIBS@227 GTK_LIBS = @GTK_LIBS@
68 HELP_DIR = @HELP_DIR@228 HELP_DIR = @HELP_DIR@
69@@ -178,6 +178,7 @@229@@ -155,29 +155,11 @@
70 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@230 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
71 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@231 INSTOBJEXT = @INSTOBJEXT@
72 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@232 INTLLIBS = @INTLLIBS@
233-INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
234-INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
235-INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
236 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
237-INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
238-INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
239 INTLTOOL_MERGE = @INTLTOOL_MERGE@
240-INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
241 INTLTOOL_PERL = @INTLTOOL_PERL@
242-INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
243-INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
244-INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
245-INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
246-INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
247-INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
248-INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
249-INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
250-INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
251-INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
252 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
253-INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
254-INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
255-INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
73+LD = @LD@256+LD = @LD@
74 LDFLAGS = @LDFLAGS@257 LDFLAGS = @LDFLAGS@
75 LIBEPC_CFLAGS = @LIBEPC_CFLAGS@258 LIBEPC_CFLAGS = @LIBEPC_CFLAGS@
76 LIBEPC_LIBS = @LIBEPC_LIBS@259 LIBEPC_LIBS = @LIBEPC_LIBS@
77@@ -186,6 +187,7 @@260@@ -186,6 +168,7 @@
78 LIBOBJS = @LIBOBJS@261 LIBOBJS = @LIBOBJS@
79 LIBS = @LIBS@262 LIBS = @LIBS@
80 LIBTOOL = @LIBTOOL@263 LIBTOOL = @LIBTOOL@
@@ -82,7 +265,7 @@
82 LIRC_LIBS = @LIRC_LIBS@265 LIRC_LIBS = @LIRC_LIBS@
83 LN_S = @LN_S@266 LN_S = @LN_S@
84 LTLIBOBJS = @LTLIBOBJS@267 LTLIBOBJS = @LTLIBOBJS@
85@@ -205,10 +207,14 @@268@@ -205,10 +188,14 @@
86 NAUTILUSDIR = @NAUTILUSDIR@269 NAUTILUSDIR = @NAUTILUSDIR@
87 NAUTILUS_CFLAGS = @NAUTILUS_CFLAGS@270 NAUTILUS_CFLAGS = @NAUTILUS_CFLAGS@
88 NAUTILUS_LIBS = @NAUTILUS_LIBS@271 NAUTILUS_LIBS = @NAUTILUS_LIBS@
@@ -97,7 +280,7 @@
97 PACKAGE = @PACKAGE@280 PACKAGE = @PACKAGE@
98 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@281 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
99 PACKAGE_NAME = @PACKAGE_NAME@282 PACKAGE_NAME = @PACKAGE_NAME@
100@@ -272,7 +278,7 @@283@@ -272,7 +259,7 @@
101 abs_top_srcdir = @abs_top_srcdir@284 abs_top_srcdir = @abs_top_srcdir@
102 ac_ct_CC = @ac_ct_CC@285 ac_ct_CC = @ac_ct_CC@
103 ac_ct_CXX = @ac_ct_CXX@286 ac_ct_CXX = @ac_ct_CXX@
@@ -106,7 +289,7 @@
106 am__include = @am__include@289 am__include = @am__include@
107 am__leading_dot = @am__leading_dot@290 am__leading_dot = @am__leading_dot@
108 am__quote = @am__quote@291 am__quote = @am__quote@
109@@ -303,6 +309,7 @@292@@ -303,6 +290,7 @@
110 libexecdir = @libexecdir@293 libexecdir = @libexecdir@
111 localedir = @localedir@294 localedir = @localedir@
112 localstatedir = @localstatedir@295 localstatedir = @localstatedir@
@@ -114,7 +297,7 @@
114 mandir = @mandir@297 mandir = @mandir@
115 mkdir_p = @mkdir_p@298 mkdir_p = @mkdir_p@
116 oldincludedir = @oldincludedir@299 oldincludedir = @oldincludedir@
117@@ -405,7 +412,7 @@300@@ -405,7 +393,7 @@
118 -rm -rf .libs _libs301 -rm -rf .libs _libs
119 302
120 distclean-libtool:303 distclean-libtool:
@@ -123,7 +306,7 @@
123 306
124 # This directory's subdirectories are mostly independent; you can cd307 # This directory's subdirectories are mostly independent; you can cd
125 # into them and run `make' without going through this Makefile.308 # into them and run `make' without going through this Makefile.
126@@ -482,7 +489,7 @@309@@ -482,7 +470,7 @@
127 unique=`for i in $$list; do \310 unique=`for i in $$list; do \
128 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \311 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
129 done | \312 done | \
@@ -132,10 +315,10 @@
132 END { if (nonempty) { for (i in files) print i; }; }'`; \315 END { if (nonempty) { for (i in files) print i; }; }'`; \
133 mkid -fID $$unique316 mkid -fID $$unique
134 tags: TAGS317 tags: TAGS
135Index: totem-2.25.92/aclocal.m4318Index: totem-2.26.0/aclocal.m4
136===================================================================319===================================================================
137--- totem-2.25.92.orig/aclocal.m4 2009-03-03 12:55:11.000000000 +0100320--- totem-2.26.0.orig/aclocal.m4 2009-03-16 10:43:18.000000000 +0000
138+++ totem-2.25.92/aclocal.m4 2009-03-09 17:29:39.000000000 +0100321+++ totem-2.26.0/aclocal.m4 2009-03-16 19:11:29.000000000 +0000
139@@ -1,4 +1,4 @@322@@ -1,4 +1,4 @@
140-# generated automatically by aclocal 1.10.1 -*- Autoconf -*-323-# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
141+# generated automatically by aclocal 1.10.2 -*- Autoconf -*-324+# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
@@ -200,7 +383,101 @@
200 ])383 ])
201 384
202 385
203@@ -962,101 +959,187 @@386@@ -837,25 +834,25 @@
387 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
388 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
389
390-AC_SUBST(INTLTOOL_DESKTOP_RULE)
391-AC_SUBST(INTLTOOL_DIRECTORY_RULE)
392-AC_SUBST(INTLTOOL_KEYS_RULE)
393-AC_SUBST(INTLTOOL_PROP_RULE)
394-AC_SUBST(INTLTOOL_OAF_RULE)
395-AC_SUBST(INTLTOOL_PONG_RULE)
396-AC_SUBST(INTLTOOL_SERVER_RULE)
397-AC_SUBST(INTLTOOL_SHEET_RULE)
398-AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
399-AC_SUBST(INTLTOOL_UI_RULE)
400-AC_SUBST(INTLTOOL_XAM_RULE)
401-AC_SUBST(INTLTOOL_KBD_RULE)
402-AC_SUBST(INTLTOOL_XML_RULE)
403-AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
404-AC_SUBST(INTLTOOL_CAVES_RULE)
405-AC_SUBST(INTLTOOL_SCHEMAS_RULE)
406-AC_SUBST(INTLTOOL_THEME_RULE)
407-AC_SUBST(INTLTOOL_SERVICE_RULE)
408-AC_SUBST(INTLTOOL_POLICY_RULE)
409+_IT_SUBST(INTLTOOL_DESKTOP_RULE)
410+_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
411+_IT_SUBST(INTLTOOL_KEYS_RULE)
412+_IT_SUBST(INTLTOOL_PROP_RULE)
413+_IT_SUBST(INTLTOOL_OAF_RULE)
414+_IT_SUBST(INTLTOOL_PONG_RULE)
415+_IT_SUBST(INTLTOOL_SERVER_RULE)
416+_IT_SUBST(INTLTOOL_SHEET_RULE)
417+_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
418+_IT_SUBST(INTLTOOL_UI_RULE)
419+_IT_SUBST(INTLTOOL_XAM_RULE)
420+_IT_SUBST(INTLTOOL_KBD_RULE)
421+_IT_SUBST(INTLTOOL_XML_RULE)
422+_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
423+_IT_SUBST(INTLTOOL_CAVES_RULE)
424+_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
425+_IT_SUBST(INTLTOOL_THEME_RULE)
426+_IT_SUBST(INTLTOOL_SERVICE_RULE)
427+_IT_SUBST(INTLTOOL_POLICY_RULE)
428
429 # Check the gettext tools to make sure they are GNU
430 AC_PATH_PROG(XGETTEXT, xgettext)
431@@ -872,12 +869,17 @@
432 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
433 fi
434
435-AC_PATH_PROG(INTLTOOL_PERL, [perl])
436+AC_PATH_PROG(INTLTOOL_PERL, perl)
437 if test -z "$INTLTOOL_PERL"; then
438- AC_MSG_ERROR([perl not found; required for intltool])
439+ AC_MSG_ERROR([perl not found])
440 fi
441-if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
442- AC_MSG_ERROR([perl 5.x required for intltool])
443+AC_MSG_CHECKING([for perl >= 5.8.1])
444+$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
445+if test $? -ne 0; then
446+ AC_MSG_ERROR([perl 5.8.1 is required for intltool])
447+else
448+ IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
449+ AC_MSG_RESULT([$IT_PERL_VERSION])
450 fi
451 if test "x$2" != "xno-xml"; then
452 AC_MSG_CHECKING([for XML::Parser])
453@@ -933,7 +935,7 @@
454 dnl of config.status.
455 AC_CONFIG_COMMANDS_PRE([
456 AC_CONFIG_COMMANDS([$1/stamp-it], [
457- if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
458+ if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
459 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
460 fi
461 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
462@@ -955,6 +957,17 @@
463 ])dnl
464 ])
465
466+# _IT_SUBST(VARIABLE)
467+# -------------------
468+# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
469+#
470+AC_DEFUN([_IT_SUBST],
471+[
472+AC_SUBST([$1])
473+m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
474+]
475+)
476+
477 # deprecated macros
478 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
479 # A hint is needed for aclocal from Automake <= 1.9.4:
480@@ -962,101 +975,187 @@
204 481
205 482
206 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-483 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
@@ -241,11 +518,19 @@
241+# obtained by writing to the Free Software Foundation, Inc.,518+# obtained by writing to the Free Software Foundation, Inc.,
242+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.519+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
243+])520+])
244+521
522-# serial 52 AC_PROG_LIBTOOL
245+# serial 56 LT_INIT523+# serial 56 LT_INIT
246 524
247-# serial 52 AC_PROG_LIBTOOL
248 525
526-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
527-# -----------------------------------------------------------
528-# If this macro is not defined by Autoconf, define it here.
529-m4_ifdef([AC_PROVIDE_IFELSE],
530- [],
531- [m4_define([AC_PROVIDE_IFELSE],
532- [m4_ifdef([AC_PROVIDE_$1],
533- [$2], [$3])])])
249+# LT_PREREQ(VERSION)534+# LT_PREREQ(VERSION)
250+# ------------------535+# ------------------
251+# Complain and exit if this libtool version is less that VERSION.536+# Complain and exit if this libtool version is less that VERSION.
@@ -256,24 +541,6 @@
256+ 63)])],541+ 63)])],
257+ [$2])])542+ [$2])])
258 543
259-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
260-# -----------------------------------------------------------
261-# If this macro is not defined by Autoconf, define it here.
262-m4_ifdef([AC_PROVIDE_IFELSE],
263- [],
264- [m4_define([AC_PROVIDE_IFELSE],
265- [m4_ifdef([AC_PROVIDE_$1],
266- [$2], [$3])])])
267
268+# _LT_CHECK_BUILDDIR
269+# ------------------
270+# Complain if the absolute build directory name contains unusual characters
271+m4_defun([_LT_CHECK_BUILDDIR],
272+[case `pwd` in
273+ *\ * | *\ *)
274+ AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
275+esac
276+])
277 544
278-# AC_PROG_LIBTOOL545-# AC_PROG_LIBTOOL
279-# ---------------546-# ---------------
@@ -308,7 +575,24 @@
308- [define([LT_AC_PROG_GCJ],575- [define([LT_AC_PROG_GCJ],
309- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])576- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
310-])])# AC_PROG_LIBTOOL577-])])# AC_PROG_LIBTOOL
311 578+# _LT_CHECK_BUILDDIR
579+# ------------------
580+# Complain if the absolute build directory name contains unusual characters
581+m4_defun([_LT_CHECK_BUILDDIR],
582+[case `pwd` in
583+ *\ * | *\ *)
584+ AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
585+esac
586+])
587
588
589-# _AC_PROG_LIBTOOL
590-# ----------------
591-AC_DEFUN([_AC_PROG_LIBTOOL],
592-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
593-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
594-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
595-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
312+# LT_INIT([OPTIONS])596+# LT_INIT([OPTIONS])
313+# ------------------597+# ------------------
314+AC_DEFUN([LT_INIT],598+AC_DEFUN([LT_INIT],
@@ -328,14 +612,7 @@
328+AC_REQUIRE([LTVERSION_VERSION])dnl612+AC_REQUIRE([LTVERSION_VERSION])dnl
329+AC_REQUIRE([LTOBSOLETE_VERSION])dnl613+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
330+m4_require([_LT_PROG_LTMAIN])dnl614+m4_require([_LT_PROG_LTMAIN])dnl
331 615+
332-# _AC_PROG_LIBTOOL
333-# ----------------
334-AC_DEFUN([_AC_PROG_LIBTOOL],
335-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
336-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
337-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
338-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
339+dnl Parse OPTIONS616+dnl Parse OPTIONS
340+_LT_SET_OPTIONS([$0], [$1])617+_LT_SET_OPTIONS([$0], [$1])
341 618
@@ -427,14 +704,14 @@
427-AC_REQUIRE([AC_EXEEXT])dnl704-AC_REQUIRE([AC_EXEEXT])dnl
428+test -z "$LN_S" && LN_S="ln -s"705+test -z "$LN_S" && LN_S="ln -s"
429+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl706+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
430+dnl
431+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
432+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
433+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
434 dnl707 dnl
435-AC_LIBTOOL_SYS_MAX_CMD_LEN708-AC_LIBTOOL_SYS_MAX_CMD_LEN
436-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE709-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
437-AC_LIBTOOL_OBJDIR710-AC_LIBTOOL_OBJDIR
711+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
712+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
713+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
714+dnl
438+m4_require([_LT_FILEUTILS_DEFAULTS])dnl715+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
439+m4_require([_LT_CHECK_SHELL_FEATURES])dnl716+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
440+m4_require([_LT_CMD_RELOAD])dnl717+m4_require([_LT_CMD_RELOAD])dnl
@@ -452,17 +729,17 @@
452+if test -n "${ZSH_VERSION+set}" ; then729+if test -n "${ZSH_VERSION+set}" ; then
453+ setopt NO_GLOB_SUBST730+ setopt NO_GLOB_SUBST
454+fi731+fi
732+
733+_LT_CHECK_OBJDIR
455 734
456-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl735-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
457-_LT_AC_PROG_ECHO_BACKSLASH736-_LT_AC_PROG_ECHO_BACKSLASH
458+_LT_CHECK_OBJDIR
459+
460+m4_require([_LT_TAG_COMPILER])dnl737+m4_require([_LT_TAG_COMPILER])dnl
461+_LT_PROG_ECHO_BACKSLASH738+_LT_PROG_ECHO_BACKSLASH
462 739
463 case $host_os in740 case $host_os in
464 aix3*)741 aix3*)
465@@ -1072,6533 +1155,7770 @@742@@ -1072,6533 +1171,7770 @@
466 743
467 # Sed substitution that helps us do robust quoting. It backslashifies744 # Sed substitution that helps us do robust quoting. It backslashifies
468 # metacharacters that are still active within double-quoted strings.745 # metacharacters that are still active within double-quoted strings.
@@ -767,33 +1044,7 @@
767- fi1044- fi
768- ;;1045- ;;
769- esac1046- esac
770-])1047+
771
772-# _LT_AC_SYS_LIBPATH_AIX
773-# ----------------------
774-# Links a minimal program and checks the executable
775-# for the system default hardcoded library path. In most cases,
776-# this is /usr/lib:/lib, but when the MPI compilers are used
777-# the location of the communication and MPI libs are included too.
778-# If we don't find anything, use the default library path according
779-# to the aix ld manual.
780-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
781-[AC_REQUIRE([LT_AC_PROG_SED])dnl
782-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
783-lt_aix_libpath_sed='
784- /Import File Strings/,/^$/ {
785- /^0/ {
786- s/^0 *\(.*\)$/\1/
787- p
788- }
789- }'
790-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
791-# Check for a 64-bit object if we didn't find anything.
792-if test -z "$aix_libpath"; then
793- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
794-fi],[])
795-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
796-])# _LT_AC_SYS_LIBPATH_AIX
797+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])1048+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
798+# -------------------------------------------------------------------1049+# -------------------------------------------------------------------
799+# CONFIGNAME is the name given to the value in the libtool script.1050+# CONFIGNAME is the name given to the value in the libtool script.
@@ -809,8 +1060,37 @@
809+ [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])1060+ [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
810+ lt_dict_add_subkey([lt_decl_dict], [$2],1061+ lt_dict_add_subkey([lt_decl_dict], [$2],
811+ [tagged?], [m4_ifval([$5], [yes], [no])])])1062+ [tagged?], [m4_ifval([$5], [yes], [no])])])
812+])1063 ])
813 1064
1065-# _LT_AC_SYS_LIBPATH_AIX
1066-# ----------------------
1067-# Links a minimal program and checks the executable
1068-# for the system default hardcoded library path. In most cases,
1069-# this is /usr/lib:/lib, but when the MPI compilers are used
1070-# the location of the communication and MPI libs are included too.
1071-# If we don't find anything, use the default library path according
1072-# to the aix ld manual.
1073-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1074-[AC_REQUIRE([LT_AC_PROG_SED])dnl
1075-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1076-lt_aix_libpath_sed='
1077- /Import File Strings/,/^$/ {
1078- /^0/ {
1079- s/^0 *\(.*\)$/\1/
1080- p
1081- }
1082- }'
1083-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1084-# Check for a 64-bit object if we didn't find anything.
1085-if test -z "$aix_libpath"; then
1086- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1087-fi],[])
1088-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1089-])# _LT_AC_SYS_LIBPATH_AIX
1090
1091+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1092+# --------------------------------------------------------
1093+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
814 1094
815-# _LT_AC_SHELL_INIT(ARG)1095-# _LT_AC_SHELL_INIT(ARG)
816-# ----------------------1096-# ----------------------
@@ -821,10 +1101,11 @@
821-$11101-$1
822-AC_DIVERT_POP1102-AC_DIVERT_POP
823-])# _LT_AC_SHELL_INIT1103-])# _LT_AC_SHELL_INIT
824+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
825+# --------------------------------------------------------
826+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
827 1104
1105+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1106+# ------------------------------------------------
1107+m4_define([lt_decl_tag_varnames],
1108+[_lt_decl_filter([tagged?], [yes], $@)])
828 1109
829-# _LT_AC_PROG_ECHO_BACKSLASH1110-# _LT_AC_PROG_ECHO_BACKSLASH
830-# --------------------------1111-# --------------------------
@@ -834,10 +1115,6 @@
834-[_LT_AC_SHELL_INIT([1115-[_LT_AC_SHELL_INIT([
835-# Check that we are running under the correct shell.1116-# Check that we are running under the correct shell.
836-SHELL=${CONFIG_SHELL-/bin/sh}1117-SHELL=${CONFIG_SHELL-/bin/sh}
837+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
838+# ------------------------------------------------
839+m4_define([lt_decl_tag_varnames],
840+[_lt_decl_filter([tagged?], [yes], $@)])
841 1118
842-case X$ECHO in1119-case X$ECHO in
843-X*--fallback-echo)1120-X*--fallback-echo)
@@ -845,21 +1122,6 @@
845- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`1122- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
846- ;;1123- ;;
847-esac1124-esac
848
849-echo=${ECHO-echo}
850-if test "X[$]1" = X--no-reexec; then
851- # Discard the --no-reexec flag, and continue.
852- shift
853-elif test "X[$]1" = X--fallback-echo; then
854- # Avoid inline document here, it may be left over
855- :
856-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
857- # Yippee, $echo works!
858- :
859-else
860- # Restart under the correct shell.
861- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
862-fi
863+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])1125+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
864+# ---------------------------------------------------------1126+# ---------------------------------------------------------
865+m4_define([_lt_decl_filter],1127+m4_define([_lt_decl_filter],
@@ -871,6 +1133,21 @@
871+ [lt_dict_filter([lt_decl_dict], $@)])[]dnl1133+ [lt_dict_filter([lt_decl_dict], $@)])[]dnl
872+])1134+])
873 1135
1136-echo=${ECHO-echo}
1137-if test "X[$]1" = X--no-reexec; then
1138- # Discard the --no-reexec flag, and continue.
1139- shift
1140-elif test "X[$]1" = X--fallback-echo; then
1141- # Avoid inline document here, it may be left over
1142- :
1143-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1144- # Yippee, $echo works!
1145- :
1146-else
1147- # Restart under the correct shell.
1148- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1149-fi
1150
874-if test "X[$]1" = X--fallback-echo; then1151-if test "X[$]1" = X--fallback-echo; then
875- # used as fallback echo1152- # used as fallback echo
876- shift1153- shift
@@ -879,15 +1156,15 @@
879-EOF1156-EOF
880- exit 01157- exit 0
881-fi1158-fi
882
883-# The HP-UX ksh and POSIX shell print the target directory to stdout
884-# if CDPATH is set.
885-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
886+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])1159+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
887+# --------------------------------------------------1160+# --------------------------------------------------
888+m4_define([lt_decl_quote_varnames],1161+m4_define([lt_decl_quote_varnames],
889+[_lt_decl_filter([value], [1], $@)])1162+[_lt_decl_filter([value], [1], $@)])
890 1163
1164-# The HP-UX ksh and POSIX shell print the target directory to stdout
1165-# if CDPATH is set.
1166-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1167
891-if test -z "$ECHO"; then1168-if test -z "$ECHO"; then
892-if test "X${echo_test_string+set}" != Xset; then1169-if test "X${echo_test_string+set}" != Xset; then
893-# find a string as large as possible, as long as the shell can cope with it1170-# find a string as large as possible, as long as the shell can cope with it
@@ -901,22 +1178,22 @@
901- fi1178- fi
902- done1179- done
903-fi1180-fi
904
905-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
906- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
907- test "X$echo_testing_string" = "X$echo_test_string"; then
908- :
909-else
910- # The Solaris, AIX, and Digital Unix default echo programs unquote
911- # backslashes. This makes it impossible to quote backslashes using
912- # echo "$something" | sed 's/\\/\\\\/g'
913- #
914- # So, first we look for a working echo in the user's PATH.
915+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])1181+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
916+# ---------------------------------------------------1182+# ---------------------------------------------------
917+m4_define([lt_decl_dquote_varnames],1183+m4_define([lt_decl_dquote_varnames],
918+[_lt_decl_filter([value], [2], $@)])1184+[_lt_decl_filter([value], [2], $@)])
919 1185
1186-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1187- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1188- test "X$echo_testing_string" = "X$echo_test_string"; then
1189- :
1190-else
1191- # The Solaris, AIX, and Digital Unix default echo programs unquote
1192- # backslashes. This makes it impossible to quote backslashes using
1193- # echo "$something" | sed 's/\\/\\\\/g'
1194- #
1195- # So, first we look for a working echo in the user's PATH.
1196
920- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR1197- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
921- for dir in $PATH /usr/ucb; do1198- for dir in $PATH /usr/ucb; do
922- IFS="$lt_save_ifs"1199- IFS="$lt_save_ifs"
@@ -929,47 +1206,6 @@
929- fi1206- fi
930- done1207- done
931- IFS="$lt_save_ifs"1208- IFS="$lt_save_ifs"
932
933- if test "X$echo" = Xecho; then
934- # We didn't find a better echo, so look for alternatives.
935- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
936- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
937- test "X$echo_testing_string" = "X$echo_test_string"; then
938- # This shell has a builtin print -r that does the trick.
939- echo='print -r'
940- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
941- test "X$CONFIG_SHELL" != X/bin/ksh; then
942- # If we have ksh, try running configure again with it.
943- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
944- export ORIGINAL_CONFIG_SHELL
945- CONFIG_SHELL=/bin/ksh
946- export CONFIG_SHELL
947- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
948- else
949- # Try using printf.
950- echo='printf %s\n'
951- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
952- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
953- test "X$echo_testing_string" = "X$echo_test_string"; then
954- # Cool, printf works
955- :
956- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
957- test "X$echo_testing_string" = 'X\t' &&
958- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
959- test "X$echo_testing_string" = "X$echo_test_string"; then
960- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
961- export CONFIG_SHELL
962- SHELL="$CONFIG_SHELL"
963- export SHELL
964- echo="$CONFIG_SHELL [$]0 --fallback-echo"
965- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
966- test "X$echo_testing_string" = 'X\t' &&
967- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
968- test "X$echo_testing_string" = "X$echo_test_string"; then
969- echo="$CONFIG_SHELL [$]0 --fallback-echo"
970- else
971- # maybe with a smaller string...
972- prev=:
973+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])1209+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
974+# ---------------------------------------------------1210+# ---------------------------------------------------
975+m4_define([lt_decl_varnames_tagged],1211+m4_define([lt_decl_varnames_tagged],
@@ -980,6 +1216,47 @@
980+m4_define([_lt_decl_varnames_tagged],1216+m4_define([_lt_decl_varnames_tagged],
981+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])1217+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
982 1218
1219- if test "X$echo" = Xecho; then
1220- # We didn't find a better echo, so look for alternatives.
1221- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1222- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1223- test "X$echo_testing_string" = "X$echo_test_string"; then
1224- # This shell has a builtin print -r that does the trick.
1225- echo='print -r'
1226- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1227- test "X$CONFIG_SHELL" != X/bin/ksh; then
1228- # If we have ksh, try running configure again with it.
1229- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1230- export ORIGINAL_CONFIG_SHELL
1231- CONFIG_SHELL=/bin/ksh
1232- export CONFIG_SHELL
1233- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1234- else
1235- # Try using printf.
1236- echo='printf %s\n'
1237- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1238- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1239- test "X$echo_testing_string" = "X$echo_test_string"; then
1240- # Cool, printf works
1241- :
1242- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1243- test "X$echo_testing_string" = 'X\t' &&
1244- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1245- test "X$echo_testing_string" = "X$echo_test_string"; then
1246- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1247- export CONFIG_SHELL
1248- SHELL="$CONFIG_SHELL"
1249- export SHELL
1250- echo="$CONFIG_SHELL [$]0 --fallback-echo"
1251- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1252- test "X$echo_testing_string" = 'X\t' &&
1253- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1254- test "X$echo_testing_string" = "X$echo_test_string"; then
1255- echo="$CONFIG_SHELL [$]0 --fallback-echo"
1256- else
1257- # maybe with a smaller string...
1258- prev=:
1259
983- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do1260- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
984- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null1261- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
985- then1262- then
@@ -987,20 +1264,6 @@
987- fi1264- fi
988- prev="$cmd"1265- prev="$cmd"
989- done1266- done
990
991- if test "$prev" != 'sed 50q "[$]0"'; then
992- echo_test_string=`eval $prev`
993- export echo_test_string
994- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
995- else
996- # Oops. We lost completely, so just stick with echo.
997- echo=echo
998- fi
999- fi
1000- fi
1001- fi
1002-fi
1003-fi
1004+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])1267+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1005+# ------------------------------------------------1268+# ------------------------------------------------
1006+m4_define([lt_decl_all_varnames],1269+m4_define([lt_decl_all_varnames],
@@ -1014,15 +1277,26 @@
1014+ lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl1277+ lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1015+])1278+])
1016 1279
1280- if test "$prev" != 'sed 50q "[$]0"'; then
1281- echo_test_string=`eval $prev`
1282- export echo_test_string
1283- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1284- else
1285- # Oops. We lost completely, so just stick with echo.
1286- echo=echo
1287- fi
1288- fi
1289- fi
1290- fi
1291-fi
1292-fi
1293
1017-# Copy echo and quote the copy suitably for passing to libtool from1294-# Copy echo and quote the copy suitably for passing to libtool from
1018-# the Makefile, instead of quoting the original, which is used later.1295-# the Makefile, instead of quoting the original, which is used later.
1019-ECHO=$echo1296-ECHO=$echo
1020-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then1297-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1021- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"1298- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1022-fi1299-fi
1023
1024-AC_SUBST(ECHO)
1025-])])# _LT_AC_PROG_ECHO_BACKSLASH
1026+# _LT_CONFIG_STATUS_DECLARE([VARNAME])1300+# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1027+# ------------------------------------1301+# ------------------------------------
1028+# Quote a variable value, and forward it to `config.status' so that its1302+# Quote a variable value, and forward it to `config.status' so that its
@@ -1031,14 +1305,9 @@
1031+m4_define([_LT_CONFIG_STATUS_DECLARE],1305+m4_define([_LT_CONFIG_STATUS_DECLARE],
1032+[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])1306+[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1033 1307
1308-AC_SUBST(ECHO)
1309-])])# _LT_AC_PROG_ECHO_BACKSLASH
1034 1310
1035-# _LT_AC_LOCK
1036-# -----------
1037-AC_DEFUN([_LT_AC_LOCK],
1038-[AC_ARG_ENABLE([libtool-lock],
1039- [AC_HELP_STRING([--disable-libtool-lock],
1040- [avoid locking (might break parallel builds)])])
1041-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1042+# _LT_CONFIG_STATUS_DECLARATIONS1311+# _LT_CONFIG_STATUS_DECLARATIONS
1043+# ------------------------------1312+# ------------------------------
1044+# We delimit libtool config variables with single quotes, so when1313+# We delimit libtool config variables with single quotes, so when
@@ -1051,6 +1320,14 @@
1051+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),1320+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1052+ [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])1321+ [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1053 1322
1323-# _LT_AC_LOCK
1324-# -----------
1325-AC_DEFUN([_LT_AC_LOCK],
1326-[AC_ARG_ENABLE([libtool-lock],
1327- [AC_HELP_STRING([--disable-libtool-lock],
1328- [avoid locking (might break parallel builds)])])
1329-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1330
1054-# Some flags need to be propagated to the compiler or linker for good1331-# Some flags need to be propagated to the compiler or linker for good
1055-# libtool support.1332-# libtool support.
1056-case $host in1333-case $host in
@@ -1101,31 +1378,6 @@
1101- fi1378- fi
1102- rm -rf conftest*1379- rm -rf conftest*
1103- ;;1380- ;;
1104
1105-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1106-s390*-*linux*|sparc*-*linux*)
1107- # Find out which ABI we are using.
1108- echo 'int i;' > conftest.$ac_ext
1109- if AC_TRY_EVAL(ac_compile); then
1110- case `/usr/bin/file conftest.o` in
1111- *32-bit*)
1112- case $host in
1113- x86_64-*kfreebsd*-gnu)
1114- LD="${LD-ld} -m elf_i386_fbsd"
1115- ;;
1116- x86_64-*linux*)
1117- LD="${LD-ld} -m elf_i386"
1118- ;;
1119- ppc64-*linux*|powerpc64-*linux*)
1120- LD="${LD-ld} -m elf32ppclinux"
1121- ;;
1122- s390x-*linux*)
1123- LD="${LD-ld} -m elf_s390"
1124- ;;
1125- sparc64-*linux*)
1126- LD="${LD-ld} -m elf32_sparc"
1127- ;;
1128- esac
1129+# _LT_LIBTOOL_TAGS1381+# _LT_LIBTOOL_TAGS
1130+# ----------------1382+# ----------------
1131+# Output comment and list of tags supported by the script1383+# Output comment and list of tags supported by the script
@@ -1133,7 +1385,31 @@
1133+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl1385+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1134+available_tags="_LT_TAGS"dnl1386+available_tags="_LT_TAGS"dnl
1135+])1387+])
1136+1388
1389-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1390-s390*-*linux*|sparc*-*linux*)
1391- # Find out which ABI we are using.
1392- echo 'int i;' > conftest.$ac_ext
1393- if AC_TRY_EVAL(ac_compile); then
1394- case `/usr/bin/file conftest.o` in
1395- *32-bit*)
1396- case $host in
1397- x86_64-*kfreebsd*-gnu)
1398- LD="${LD-ld} -m elf_i386_fbsd"
1399- ;;
1400- x86_64-*linux*)
1401- LD="${LD-ld} -m elf_i386"
1402- ;;
1403- ppc64-*linux*|powerpc64-*linux*)
1404- LD="${LD-ld} -m elf32ppclinux"
1405- ;;
1406- s390x-*linux*)
1407- LD="${LD-ld} -m elf_s390"
1408- ;;
1409- sparc64-*linux*)
1410- LD="${LD-ld} -m elf32_sparc"
1411- ;;
1412- esac
1137+1413+
1138+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])1414+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1139+# -----------------------------------1415+# -----------------------------------
@@ -1467,8 +1743,17 @@
1467+ exec AS_MESSAGE_FD>/dev/null1743+ exec AS_MESSAGE_FD>/dev/null
1468 fi1744 fi
1469-])# AC_LIBTOOL_LINKER_OPTION1745-])# AC_LIBTOOL_LINKER_OPTION
1746-
1470+_LTEOF1747+_LTEOF
1471 1748
1749-# AC_LIBTOOL_SYS_MAX_CMD_LEN
1750-# --------------------------
1751-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1752-[# find the maximum length of command line arguments
1753-AC_MSG_CHECKING([the maximum length of command line arguments])
1754-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1755- i=0
1756- teststring="ABCD"
1472+cat >>"$CONFIG_LT" <<_LTEOF1757+cat >>"$CONFIG_LT" <<_LTEOF
1473+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT1758+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1474+_LTEOF1759+_LTEOF
@@ -1495,15 +1780,6 @@
1495+fi1780+fi
1496+])# LT_OUTPUT1781+])# LT_OUTPUT
1497 1782
1498-# AC_LIBTOOL_SYS_MAX_CMD_LEN
1499-# --------------------------
1500-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1501-[# find the maximum length of command line arguments
1502-AC_MSG_CHECKING([the maximum length of command line arguments])
1503-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1504- i=0
1505- teststring="ABCD"
1506-
1507- case $build_os in1783- case $build_os in
1508- msdosdjgpp*)1784- msdosdjgpp*)
1509- # On DJGPP, this test can blow up pretty badly due to problems in libc1785- # On DJGPP, this test can blow up pretty badly due to problems in libc
@@ -1656,15 +1932,22 @@
1656- AC_MSG_RESULT(none)1932- AC_MSG_RESULT(none)
1657-fi1933-fi
1658-])# AC_LIBTOOL_SYS_MAX_CMD_LEN1934-])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1659-1935
1660-1936+ _LT_PROG_LTMAIN
1937
1661-# _LT_AC_CHECK_DLFCN1938-# _LT_AC_CHECK_DLFCN
1662-# ------------------1939-# ------------------
1663-AC_DEFUN([_LT_AC_CHECK_DLFCN],1940-AC_DEFUN([_LT_AC_CHECK_DLFCN],
1664-[AC_CHECK_HEADERS(dlfcn.h)dnl1941-[AC_CHECK_HEADERS(dlfcn.h)dnl
1665-])# _LT_AC_CHECK_DLFCN1942-])# _LT_AC_CHECK_DLFCN
1943+ # We use sed instead of cat because bash on DJGPP gets confused if
1944+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
1945+ # text mode, it properly converts lines to CR/LF. This bash problem
1946+ # is reportedly fixed, but why not run on old versions too?
1947+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1948+ || (rm -f "$cfgfile"; exit 1)
1666 1949
1667+ _LT_PROG_LTMAIN1950+ _LT_PROG_XSI_SHELLFNS
1668 1951
1669-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,1952-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1670-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)1953-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
@@ -1679,58 +1962,19 @@
1679- cat > conftest.$ac_ext <<EOF1962- cat > conftest.$ac_ext <<EOF
1680-[#line __oline__ "configure"1963-[#line __oline__ "configure"
1681-#include "confdefs.h"1964-#include "confdefs.h"
1682+ # We use sed instead of cat because bash on DJGPP gets confused if1965+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1683+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
1684+ # text mode, it properly converts lines to CR/LF. This bash problem
1685+ # is reportedly fixed, but why not run on old versions too?
1686+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1687+ || (rm -f "$cfgfile"; exit 1)1966+ || (rm -f "$cfgfile"; exit 1)
1688 1967
1689-#if HAVE_DLFCN_H1968-#if HAVE_DLFCN_H
1690-#include <dlfcn.h>1969-#include <dlfcn.h>
1691-#endif1970-#endif
1692+ _LT_PROG_XSI_SHELLFNS
1693
1694-#include <stdio.h>
1695+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1696+ || (rm -f "$cfgfile"; exit 1)
1697
1698-#ifdef RTLD_GLOBAL
1699-# define LT_DLGLOBAL RTLD_GLOBAL
1700-#else
1701-# ifdef DL_GLOBAL
1702-# define LT_DLGLOBAL DL_GLOBAL
1703-# else
1704-# define LT_DLGLOBAL 0
1705-# endif
1706-#endif
1707+ mv -f "$cfgfile" "$ofile" ||1971+ mv -f "$cfgfile" "$ofile" ||
1708+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")1972+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1709+ chmod +x "$ofile"1973+ chmod +x "$ofile"
1710+],1974+],
1711+[cat <<_LT_EOF >> "$ofile"1975+[cat <<_LT_EOF >> "$ofile"
1712 1976
1713-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we1977-#include <stdio.h>
1714- find out it does not work in some platform. */
1715-#ifndef LT_DLLAZY_OR_NOW
1716-# ifdef RTLD_LAZY
1717-# define LT_DLLAZY_OR_NOW RTLD_LAZY
1718-# else
1719-# ifdef DL_LAZY
1720-# define LT_DLLAZY_OR_NOW DL_LAZY
1721-# else
1722-# ifdef RTLD_NOW
1723-# define LT_DLLAZY_OR_NOW RTLD_NOW
1724-# else
1725-# ifdef DL_NOW
1726-# define LT_DLLAZY_OR_NOW DL_NOW
1727-# else
1728-# define LT_DLLAZY_OR_NOW 0
1729-# endif
1730-# endif
1731-# endif
1732-# endif
1733-#endif
1734+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded1978+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1735+dnl in a comment (ie after a #).1979+dnl in a comment (ie after a #).
1736+# ### BEGIN LIBTOOL TAG CONFIG: $11980+# ### BEGIN LIBTOOL TAG CONFIG: $1
@@ -1748,15 +1992,37 @@
1748+])dnl /_LT_CONFIG_SAVE_COMMANDS1992+])dnl /_LT_CONFIG_SAVE_COMMANDS
1749+])# _LT_CONFIG1993+])# _LT_CONFIG
1750 1994
1751-#ifdef __cplusplus1995-#ifdef RTLD_GLOBAL
1752-extern "C" void exit (int);1996-# define LT_DLGLOBAL RTLD_GLOBAL
1997-#else
1998-# ifdef DL_GLOBAL
1999-# define LT_DLGLOBAL DL_GLOBAL
2000-# else
2001-# define LT_DLGLOBAL 0
2002-# endif
1753-#endif2003-#endif
1754 2004
1755-void fnord() { int i=42;}2005-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1756-int main ()2006- find out it does not work in some platform. */
1757-{2007-#ifndef LT_DLLAZY_OR_NOW
1758- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);2008-# ifdef RTLD_LAZY
1759- int status = $lt_dlunknown;2009-# define LT_DLLAZY_OR_NOW RTLD_LAZY
2010-# else
2011-# ifdef DL_LAZY
2012-# define LT_DLLAZY_OR_NOW DL_LAZY
2013-# else
2014-# ifdef RTLD_NOW
2015-# define LT_DLLAZY_OR_NOW RTLD_NOW
2016-# else
2017-# ifdef DL_NOW
2018-# define LT_DLLAZY_OR_NOW DL_NOW
2019-# else
2020-# define LT_DLLAZY_OR_NOW 0
2021-# endif
2022-# endif
2023-# endif
2024-# endif
2025-#endif
1760+# LT_SUPPORTED_TAG(TAG)2026+# LT_SUPPORTED_TAG(TAG)
1761+# ---------------------2027+# ---------------------
1762+# Trace this macro to discover what tags are supported by the libtool2028+# Trace this macro to discover what tags are supported by the libtool
@@ -1764,6 +2030,19 @@
1764+# autoconf --trace 'LT_SUPPORTED_TAG:$1'2030+# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1765+AC_DEFUN([LT_SUPPORTED_TAG], [])2031+AC_DEFUN([LT_SUPPORTED_TAG], [])
1766 2032
2033-#ifdef __cplusplus
2034-extern "C" void exit (int);
2035-#endif
2036
2037-void fnord() { int i=42;}
2038-int main ()
2039-{
2040- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2041- int status = $lt_dlunknown;
2042+# C support is built-in for now
2043+m4_define([_LT_LANG_C_enabled], [])
2044+m4_define([_LT_TAGS], [])
2045
1767- if (self)2046- if (self)
1768- {2047- {
1769- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;2048- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
@@ -1791,22 +2070,6 @@
1791-fi2070-fi
1792-rm -fr conftest*2071-rm -fr conftest*
1793-])# _LT_AC_TRY_DLOPEN_SELF2072-])# _LT_AC_TRY_DLOPEN_SELF
1794+# C support is built-in for now
1795+m4_define([_LT_LANG_C_enabled], [])
1796+m4_define([_LT_TAGS], [])
1797
1798
1799-# AC_LIBTOOL_DLOPEN_SELF
1800-# ----------------------
1801-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1802-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1803-if test "x$enable_dlopen" != xyes; then
1804- enable_dlopen=unknown
1805- enable_dlopen_self=unknown
1806- enable_dlopen_self_static=unknown
1807-else
1808- lt_cv_dlopen=no
1809- lt_cv_dlopen_libs=
1810+# LT_LANG(LANG)2073+# LT_LANG(LANG)
1811+# -------------2074+# -------------
1812+# Enable libtool support for the given language if not already enabled.2075+# Enable libtool support for the given language if not already enabled.
@@ -1824,17 +2087,18 @@
1824+ [m4_fatal([$0: unsupported language: "$1"])])])dnl2087+ [m4_fatal([$0: unsupported language: "$1"])])])dnl
1825+])# LT_LANG2088+])# LT_LANG
1826 2089
1827- case $host_os in
1828- beos*)
1829- lt_cv_dlopen="load_add_on"
1830- lt_cv_dlopen_libs=
1831- lt_cv_dlopen_self=yes
1832- ;;
1833 2090
1834- mingw* | pw32*)2091-# AC_LIBTOOL_DLOPEN_SELF
1835- lt_cv_dlopen="LoadLibrary"2092-# ----------------------
1836- lt_cv_dlopen_libs=2093-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1837- ;;2094-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2095-if test "x$enable_dlopen" != xyes; then
2096- enable_dlopen=unknown
2097- enable_dlopen_self=unknown
2098- enable_dlopen_self_static=unknown
2099-else
2100- lt_cv_dlopen=no
2101- lt_cv_dlopen_libs=
1838+# _LT_LANG(LANGNAME)2102+# _LT_LANG(LANGNAME)
1839+# ------------------2103+# ------------------
1840+m4_defun([_LT_LANG],2104+m4_defun([_LT_LANG],
@@ -1845,19 +2109,16 @@
1845+ _LT_LANG_$1_CONFIG($1)])dnl2109+ _LT_LANG_$1_CONFIG($1)])dnl
1846+])# _LT_LANG2110+])# _LT_LANG
1847 2111
1848- cygwin*)2112- case $host_os in
1849- lt_cv_dlopen="dlopen"2113- beos*)
1850- lt_cv_dlopen_libs=2114- lt_cv_dlopen="load_add_on"
1851- ;;
1852
1853- darwin*)
1854- # if libdl is installed we need to link against it
1855- AC_CHECK_LIB([dl], [dlopen],
1856- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1857- lt_cv_dlopen="dyld"
1858- lt_cv_dlopen_libs=2115- lt_cv_dlopen_libs=
1859- lt_cv_dlopen_self=yes2116- lt_cv_dlopen_self=yes
1860- ])2117- ;;
2118
2119- mingw* | pw32*)
2120- lt_cv_dlopen="LoadLibrary"
2121- lt_cv_dlopen_libs=
1861- ;;2122- ;;
1862+# _LT_LANG_DEFAULT_CONFIG2123+# _LT_LANG_DEFAULT_CONFIG
1863+# -----------------------2124+# -----------------------
@@ -1905,6 +2166,25 @@
1905+dnl AC_DEFUN([AC_LIBTOOL_FC], [])2166+dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1906+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])2167+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1907 2168
2169- cygwin*)
2170- lt_cv_dlopen="dlopen"
2171- lt_cv_dlopen_libs=
2172- ;;
2173
2174- darwin*)
2175- # if libdl is installed we need to link against it
2176- AC_CHECK_LIB([dl], [dlopen],
2177- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2178- lt_cv_dlopen="dyld"
2179- lt_cv_dlopen_libs=
2180- lt_cv_dlopen_self=yes
2181- ])
2182- ;;
2183+# _LT_TAG_COMPILER
2184+# ----------------
2185+m4_defun([_LT_TAG_COMPILER],
2186+[AC_REQUIRE([AC_PROG_CC])dnl
2187
1908- *)2188- *)
1909- AC_CHECK_FUNC([shl_load],2189- AC_CHECK_FUNC([shl_load],
1910- [lt_cv_dlopen="shl_load"],2190- [lt_cv_dlopen="shl_load"],
@@ -1925,35 +2205,34 @@
1925- ])2205- ])
1926- ;;2206- ;;
1927- esac2207- esac
1928
1929- if test "x$lt_cv_dlopen" != xno; then
1930- enable_dlopen=yes
1931- else
1932- enable_dlopen=no
1933- fi
1934+# _LT_TAG_COMPILER
1935+# ----------------
1936+m4_defun([_LT_TAG_COMPILER],
1937+[AC_REQUIRE([AC_PROG_CC])dnl
1938
1939- case $lt_cv_dlopen in
1940- dlopen)
1941- save_CPPFLAGS="$CPPFLAGS"
1942- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1943+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl2208+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1944+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl2209+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1945+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl2210+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1946+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl2211+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1947 2212
2213- if test "x$lt_cv_dlopen" != xno; then
2214- enable_dlopen=yes
2215- else
2216- enable_dlopen=no
2217- fi
2218+# If no C compiler was specified, use CC.
2219+LTCC=${LTCC-"$CC"}
2220
2221- case $lt_cv_dlopen in
2222- dlopen)
2223- save_CPPFLAGS="$CPPFLAGS"
2224- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2225+# If no C compiler flags were specified, use CFLAGS.
2226+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2227
1948- save_LDFLAGS="$LDFLAGS"2228- save_LDFLAGS="$LDFLAGS"
1949- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"2229- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1950+# If no C compiler was specified, use CC.2230+# Allow CC to be a program name with arguments.
1951+LTCC=${LTCC-"$CC"}2231+compiler=$CC
2232+])# _LT_TAG_COMPILER
1952 2233
1953- save_LIBS="$LIBS"2234- save_LIBS="$LIBS"
1954- LIBS="$lt_cv_dlopen_libs $LIBS"2235- LIBS="$lt_cv_dlopen_libs $LIBS"
1955+# If no C compiler flags were specified, use CFLAGS.
1956+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1957 2236
1958- AC_CACHE_CHECK([whether a program can dlopen itself],2237- AC_CACHE_CHECK([whether a program can dlopen itself],
1959- lt_cv_dlopen_self, [dnl2238- lt_cv_dlopen_self, [dnl
@@ -1961,25 +2240,6 @@
1961- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,2240- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1962- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)2241- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1963- ])2242- ])
1964+# Allow CC to be a program name with arguments.
1965+compiler=$CC
1966+])# _LT_TAG_COMPILER
1967
1968- if test "x$lt_cv_dlopen_self" = xyes; then
1969- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1970- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1971- lt_cv_dlopen_self_static, [dnl
1972- _LT_AC_TRY_DLOPEN_SELF(
1973- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1974- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1975- ])
1976- fi
1977
1978- CPPFLAGS="$save_CPPFLAGS"
1979- LDFLAGS="$save_LDFLAGS"
1980- LIBS="$save_LIBS"
1981- ;;
1982- esac
1983+# _LT_COMPILER_BOILERPLATE2243+# _LT_COMPILER_BOILERPLATE
1984+# ------------------------2244+# ------------------------
1985+# Check for compiler boilerplate output or warnings with2245+# Check for compiler boilerplate output or warnings with
@@ -1993,17 +2253,21 @@
1993+$RM conftest*2253+$RM conftest*
1994+])# _LT_COMPILER_BOILERPLATE2254+])# _LT_COMPILER_BOILERPLATE
1995 2255
1996- case $lt_cv_dlopen_self in2256- if test "x$lt_cv_dlopen_self" = xyes; then
1997- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;2257- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1998- *) enable_dlopen_self=unknown ;;2258- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1999- esac2259- lt_cv_dlopen_self_static, [dnl
2260- _LT_AC_TRY_DLOPEN_SELF(
2261- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2262- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2263- ])
2264- fi
2000 2265
2001- case $lt_cv_dlopen_self_static in2266- CPPFLAGS="$save_CPPFLAGS"
2002- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;2267- LDFLAGS="$save_LDFLAGS"
2003- *) enable_dlopen_self_static=unknown ;;2268- LIBS="$save_LIBS"
2269- ;;
2004- esac2270- esac
2005-fi
2006-])# AC_LIBTOOL_DLOPEN_SELF
2007+# _LT_LINKER_BOILERPLATE2271+# _LT_LINKER_BOILERPLATE
2008+# ----------------------2272+# ----------------------
2009+# Check for linker boilerplate output or warnings with2273+# Check for linker boilerplate output or warnings with
@@ -2017,6 +2281,17 @@
2017+$RM -r conftest*2281+$RM -r conftest*
2018+])# _LT_LINKER_BOILERPLATE2282+])# _LT_LINKER_BOILERPLATE
2019 2283
2284- case $lt_cv_dlopen_self in
2285- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2286- *) enable_dlopen_self=unknown ;;
2287- esac
2288-
2289- case $lt_cv_dlopen_self_static in
2290- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2291- *) enable_dlopen_self_static=unknown ;;
2292- esac
2293-fi
2294-])# AC_LIBTOOL_DLOPEN_SELF
2020+# _LT_REQUIRED_DARWIN_CHECKS2295+# _LT_REQUIRED_DARWIN_CHECKS
2021+# -------------------------2296+# -------------------------
2022+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[2297+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
@@ -2038,20 +2313,6 @@
2038+ _LT_DECL([], [OTOOL64], [1],2313+ _LT_DECL([], [OTOOL64], [1],
2039+ [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])2314+ [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
2040 2315
2041-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2042-# ---------------------------------
2043-# Check to see if options -c and -o are simultaneously supported by compiler
2044-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2045-[AC_REQUIRE([LT_AC_PROG_SED])dnl
2046-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2047-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2048- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2049- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2050- $rm -r conftest 2>/dev/null
2051- mkdir conftest
2052- cd conftest
2053- mkdir out
2054- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2055+ AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],2316+ AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
2056+ [lt_cv_apple_cc_single_mod=no2317+ [lt_cv_apple_cc_single_mod=no
2057+ if test -z "${LT_MULTI_MODULE}"; then2318+ if test -z "${LT_MULTI_MODULE}"; then
@@ -2121,6 +2382,21 @@
2121+ esac2382+ esac
2122+])2383+])
2123 2384
2385-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2386-# ---------------------------------
2387-# Check to see if options -c and -o are simultaneously supported by compiler
2388-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2389-[AC_REQUIRE([LT_AC_PROG_SED])dnl
2390-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2391-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2392- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2393- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2394- $rm -r conftest 2>/dev/null
2395- mkdir conftest
2396- cd conftest
2397- mkdir out
2398- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2399
2124- lt_compiler_flag="-o out/conftest2.$ac_objext"2400- lt_compiler_flag="-o out/conftest2.$ac_objext"
2125- # Insert the option either (1) after the last *FLAGS variable, or2401- # Insert the option either (1) after the last *FLAGS variable, or
2126- # (2) before a word containing "conftest.", or (3) at the end.2402- # (2) before a word containing "conftest.", or (3) at the end.
@@ -2154,7 +2430,6 @@
2154- cd ..2430- cd ..
2155- rmdir conftest2431- rmdir conftest
2156- $rm conftest*2432- $rm conftest*
2157+
2158+# _LT_DARWIN_LINKER_FEATURES2433+# _LT_DARWIN_LINKER_FEATURES
2159+# --------------------------2434+# --------------------------
2160+# Checks for linker and compiler features on darwin2435+# Checks for linker and compiler features on darwin
@@ -2291,11 +2566,8 @@
2291- lt_cv_objdir=_libs2566- lt_cv_objdir=_libs
2292+ # Restart under the correct shell.2567+ # Restart under the correct shell.
2293+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}2568+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2294 fi2569+fi
2295-rmdir .libs 2>/dev/null])2570+
2296-objdir=$lt_cv_objdir
2297-])# AC_LIBTOOL_OBJDIR
2298
2299+if test "X[$]1" = X--fallback-echo; then2571+if test "X[$]1" = X--fallback-echo; then
2300+ # used as fallback echo2572+ # used as fallback echo
2301+ shift2573+ shift
@@ -2303,7 +2575,14 @@
2303+[$]*2575+[$]*
2304+_LT_EOF2576+_LT_EOF
2305+ exit 02577+ exit 0
2306+fi2578 fi
2579-rmdir .libs 2>/dev/null])
2580-objdir=$lt_cv_objdir
2581-])# AC_LIBTOOL_OBJDIR
2582
2583+# The HP-UX ksh and POSIX shell print the target directory to stdout
2584+# if CDPATH is set.
2585+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2307 2586
2308-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])2587-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2309-# ----------------------------------------------2588-# ----------------------------------------------
@@ -2314,9 +2593,18 @@
2314-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \2593-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2315- test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \2594- test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2316- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then2595- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2317+# The HP-UX ksh and POSIX shell print the target directory to stdout2596+if test -z "$lt_ECHO"; then
2318+# if CDPATH is set.2597+ if test "X${echo_test_string+set}" != Xset; then
2319+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH2598+ # find a string as large as possible, as long as the shell can cope with it
2599+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2600+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2601+ if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2602+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2603+ then
2604+ break
2605+ fi
2606+ done
2607+ fi
2320 2608
2321- # We can hardcode non-existant directories.2609- # We can hardcode non-existant directories.
2322- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&2610- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
@@ -2327,19 +2615,6 @@
2327- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then2615- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2328- # Linking always hardcodes the temporary library directory.2616- # Linking always hardcodes the temporary library directory.
2329- _LT_AC_TAGVAR(hardcode_action, $1)=relink2617- _LT_AC_TAGVAR(hardcode_action, $1)=relink
2330+if test -z "$lt_ECHO"; then
2331+ if test "X${echo_test_string+set}" != Xset; then
2332+ # find a string as large as possible, as long as the shell can cope with it
2333+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2334+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2335+ if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2336+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2337+ then
2338+ break
2339+ fi
2340+ done
2341+ fi
2342+
2343+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&2618+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2344+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&2619+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2345+ test "X$echo_testing_string" = "X$echo_test_string"; then2620+ test "X$echo_testing_string" = "X$echo_test_string"; then
@@ -3677,10 +3952,15 @@
3677- if test -z "$LTCFLAGS"; then3952- if test -z "$LTCFLAGS"; then
3678- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"3953- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3679- fi3954- fi
3680-3955
3681- # Extract list of available tagged configurations in $ofile.3956- # Extract list of available tagged configurations in $ofile.
3682- # Note that this assumes the entire list is on one line.3957- # Note that this assumes the entire list is on one line.
3683- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`3958- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3959+ CPPFLAGS="$save_CPPFLAGS"
3960+ LDFLAGS="$save_LDFLAGS"
3961+ LIBS="$save_LIBS"
3962+ ;;
3963+ esac
3684 3964
3685- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"3965- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3686- for tagname in $tagnames; do3966- for tagname in $tagnames; do
@@ -3691,35 +3971,15 @@
3691- *) AC_MSG_ERROR([invalid tag name: $tagname])3971- *) AC_MSG_ERROR([invalid tag name: $tagname])
3692- ;;3972- ;;
3693- esac3973- esac
3694+ CPPFLAGS="$save_CPPFLAGS"3974+ case $lt_cv_dlopen_self in
3695+ LDFLAGS="$save_LDFLAGS"3975+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3696+ LIBS="$save_LIBS"3976+ *) enable_dlopen_self=unknown ;;
3697+ ;;
3698+ esac3977+ esac
3699 3978
3700- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null3979- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3701- then3980- then
3702- AC_MSG_ERROR([tag name \"$tagname\" already exists])3981- AC_MSG_ERROR([tag name \"$tagname\" already exists])
3703- fi3982- fi
3704+ case $lt_cv_dlopen_self in
3705+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3706+ *) enable_dlopen_self=unknown ;;
3707+ esac
3708
3709- # Update the list of available tags.
3710- if test -n "$tagname"; then
3711- echo appending configuration tag \"$tagname\" to $ofile
3712-
3713- case $tagname in
3714- CXX)
3715- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3716- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3717- (test "X$CXX" != "Xg++"))) ; then
3718- AC_LIBTOOL_LANG_CXX_CONFIG
3719- else
3720- tagname=""
3721- fi
3722- ;;
3723+ case $lt_cv_dlopen_self_static in3983+ case $lt_cv_dlopen_self_static in
3724+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;3984+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3725+ *) enable_dlopen_self_static=unknown ;;3985+ *) enable_dlopen_self_static=unknown ;;
@@ -3738,6 +3998,21 @@
3738+dnl aclocal-1.4 backwards compatibility:3998+dnl aclocal-1.4 backwards compatibility:
3739+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])3999+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
3740 4000
4001- # Update the list of available tags.
4002- if test -n "$tagname"; then
4003- echo appending configuration tag \"$tagname\" to $ofile
4004-
4005- case $tagname in
4006- CXX)
4007- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4008- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4009- (test "X$CXX" != "Xg++"))) ; then
4010- AC_LIBTOOL_LANG_CXX_CONFIG
4011- else
4012- tagname=""
4013- fi
4014- ;;
4015
3741- F77)4016- F77)
3742- if test -n "$F77" && test "X$F77" != "Xno"; then4017- if test -n "$F77" && test "X$F77" != "Xno"; then
3743- AC_LIBTOOL_LANG_F77_CONFIG4018- AC_LIBTOOL_LANG_F77_CONFIG
@@ -3745,14 +4020,6 @@
3745- tagname=""4020- tagname=""
3746- fi4021- fi
3747- ;;4022- ;;
3748
3749- GCJ)
3750- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3751- AC_LIBTOOL_LANG_GCJ_CONFIG
3752- else
3753- tagname=""
3754- fi
3755- ;;
3756+# _LT_COMPILER_C_O([TAGNAME])4023+# _LT_COMPILER_C_O([TAGNAME])
3757+# ---------------------------4024+# ---------------------------
3758+# Check to see if options -c and -o are simultaneously supported by compiler.4025+# Check to see if options -c and -o are simultaneously supported by compiler.
@@ -3770,8 +4037,12 @@
3770+ mkdir out4037+ mkdir out
3771+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext4038+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3772 4039
3773- RC)4040- GCJ)
3774- AC_LIBTOOL_LANG_RC_CONFIG4041- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
4042- AC_LIBTOOL_LANG_GCJ_CONFIG
4043- else
4044- tagname=""
4045- fi
3775- ;;4046- ;;
3776+ lt_compiler_flag="-o out/conftest2.$ac_objext"4047+ lt_compiler_flag="-o out/conftest2.$ac_objext"
3777+ # Insert the option either (1) after the last *FLAGS variable, or4048+ # Insert the option either (1) after the last *FLAGS variable, or
@@ -3811,18 +4082,14 @@
3811+ [Does compiler simultaneously support -c and -o options?])4082+ [Does compiler simultaneously support -c and -o options?])
3812+])# _LT_COMPILER_C_O4083+])# _LT_COMPILER_C_O
3813 4084
4085- RC)
4086- AC_LIBTOOL_LANG_RC_CONFIG
4087- ;;
4088
3814- *)4089- *)
3815- AC_MSG_ERROR([Unsupported tag name: $tagname])4090- AC_MSG_ERROR([Unsupported tag name: $tagname])
3816- ;;4091- ;;
3817- esac4092- esac
3818
3819- # Append the new tag name to the list of available tags.
3820- if test -n "$tagname" ; then
3821- available_tags="$available_tags $tagname"
3822- fi
3823- fi
3824- done
3825- IFS="$lt_save_ifs"
3826+# _LT_COMPILER_FILE_LOCKS([TAGNAME])4093+# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3827+# ----------------------------------4094+# ----------------------------------
3828+# Check to see if we can do hard links to lock some files if needed4095+# Check to see if we can do hard links to lock some files if needed
@@ -3831,13 +4098,13 @@
3831+m4_require([_LT_FILEUTILS_DEFAULTS])dnl4098+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3832+_LT_COMPILER_C_O([$1])4099+_LT_COMPILER_C_O([$1])
3833 4100
3834- # Now substitute the updated list of available tags.4101- # Append the new tag name to the list of available tags.
3835- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then4102- if test -n "$tagname" ; then
3836- mv "${ofile}T" "$ofile"4103- available_tags="$available_tags $tagname"
3837- chmod +x "$ofile"4104- fi
3838- else4105- fi
3839- rm -f "${ofile}T"4106- done
3840- AC_MSG_ERROR([unable to update list of available tagged configurations.])4107- IFS="$lt_save_ifs"
3841+hard_links="nottested"4108+hard_links="nottested"
3842+if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then4109+if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3843+ # do not overwrite the value of need_locks provided by the user4110+ # do not overwrite the value of need_locks provided by the user
@@ -3852,21 +4119,14 @@
3852+ if test "$hard_links" = no; then4119+ if test "$hard_links" = no; then
3853+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])4120+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3854+ need_locks=warn4121+ need_locks=warn
3855 fi4122+ fi
3856+else4123+else
3857+ need_locks=no4124+ need_locks=no
3858 fi4125+fi
3859-])# _LT_AC_TAGCONFIG
3860+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])4126+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3861+])# _LT_COMPILER_FILE_LOCKS4127+])# _LT_COMPILER_FILE_LOCKS
3862 4128+
3863 4129+
3864-# AC_LIBTOOL_DLOPEN
3865-# -----------------
3866-# enable checks for dlopen support
3867-AC_DEFUN([AC_LIBTOOL_DLOPEN],
3868- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3869-])# AC_LIBTOOL_DLOPEN
3870+# _LT_CHECK_OBJDIR4130+# _LT_CHECK_OBJDIR
3871+# ----------------4131+# ----------------
3872+m4_defun([_LT_CHECK_OBJDIR],4132+m4_defun([_LT_CHECK_OBJDIR],
@@ -3887,14 +4147,8 @@
3887+AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",4147+AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3888+ [Define to the sub-directory in which libtool stores uninstalled libraries.])4148+ [Define to the sub-directory in which libtool stores uninstalled libraries.])
3889+])# _LT_CHECK_OBJDIR4149+])# _LT_CHECK_OBJDIR
3890 4150+
3891 4151+
3892-# AC_LIBTOOL_WIN32_DLL
3893-# --------------------
3894-# declare package support for building win32 DLLs
3895-AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3896-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3897-])# AC_LIBTOOL_WIN32_DLL
3898+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])4152+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3899+# --------------------------------------4153+# --------------------------------------
3900+# Check hardcoding attributes.4154+# Check hardcoding attributes.
@@ -3905,6 +4159,10 @@
3905+ test -n "$_LT_TAGVAR(runpath_var, $1)" ||4159+ test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3906+ test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then4160+ test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3907 4161
4162- # Now substitute the updated list of available tags.
4163- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
4164- mv "${ofile}T" "$ofile"
4165- chmod +x "$ofile"
3908+ # We can hardcode non-existent directories.4166+ # We can hardcode non-existent directories.
3909+ if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&4167+ if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3910+ # If the only mechanism to avoid hardcoding is shlibpath_var, we4168+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
@@ -3914,45 +4172,20 @@
3914+ test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then4172+ test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3915+ # Linking always hardcodes the temporary library directory.4173+ # Linking always hardcodes the temporary library directory.
3916+ _LT_TAGVAR(hardcode_action, $1)=relink4174+ _LT_TAGVAR(hardcode_action, $1)=relink
3917+ else4175 else
4176- rm -f "${ofile}T"
4177- AC_MSG_ERROR([unable to update list of available tagged configurations.])
3918+ # We can link without hardcoding, and we can hardcode nonexisting dirs.4178+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
3919+ _LT_TAGVAR(hardcode_action, $1)=immediate4179+ _LT_TAGVAR(hardcode_action, $1)=immediate
3920+ fi4180 fi
3921+else4181+else
3922+ # We cannot hardcode anything, or else we can only hardcode existing4182+ # We cannot hardcode anything, or else we can only hardcode existing
3923+ # directories.4183+ # directories.
3924+ _LT_TAGVAR(hardcode_action, $1)=unsupported4184+ _LT_TAGVAR(hardcode_action, $1)=unsupported
3925+fi4185 fi
4186-])# _LT_AC_TAGCONFIG
3926+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])4187+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3927 4188
3928-# AC_ENABLE_SHARED([DEFAULT])
3929-# ---------------------------
3930-# implement the --enable-shared flag
3931-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3932-AC_DEFUN([AC_ENABLE_SHARED],
3933-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3934-AC_ARG_ENABLE([shared],
3935- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3936- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3937- [p=${PACKAGE-default}
3938- case $enableval in
3939- yes) enable_shared=yes ;;
3940- no) enable_shared=no ;;
3941- *)
3942- enable_shared=no
3943- # Look at the argument we got. We use all the common list separators.
3944- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3945- for pkg in $enableval; do
3946- IFS="$lt_save_ifs"
3947- if test "X$pkg" = "X$p"; then
3948- enable_shared=yes
3949- fi
3950- done
3951- IFS="$lt_save_ifs"
3952- ;;
3953- esac],
3954- [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3955-])# AC_ENABLE_SHARED
3956+if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||4189+if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3957+ test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then4190+ test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3958+ # Fast installation is not supported4191+ # Fast installation is not supported
@@ -3966,14 +4199,13 @@
3966+ [How to hardcode a shared library path into an executable])4199+ [How to hardcode a shared library path into an executable])
3967+])# _LT_LINKER_HARDCODE_LIBPATH4200+])# _LT_LINKER_HARDCODE_LIBPATH
3968 4201
3969 4202-# AC_LIBTOOL_DLOPEN
3970-# AC_DISABLE_SHARED
3971-# -----------------4203-# -----------------
3972-# set the default shared flag to --disable-shared4204-# enable checks for dlopen support
3973-AC_DEFUN([AC_DISABLE_SHARED],4205-AC_DEFUN([AC_LIBTOOL_DLOPEN],
3974-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl4206- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3975-AC_ENABLE_SHARED(no)4207-])# AC_LIBTOOL_DLOPEN
3976-])# AC_DISABLE_SHARED4208
3977+# _LT_CMD_STRIPLIB4209+# _LT_CMD_STRIPLIB
3978+# ----------------4210+# ----------------
3979+m4_defun([_LT_CMD_STRIPLIB],4211+m4_defun([_LT_CMD_STRIPLIB],
@@ -4006,6 +4238,141 @@
4006+_LT_DECL([], [striplib], [1])4238+_LT_DECL([], [striplib], [1])
4007+])# _LT_CMD_STRIPLIB4239+])# _LT_CMD_STRIPLIB
4008 4240
4241-# AC_LIBTOOL_WIN32_DLL
4242-# --------------------
4243-# declare package support for building win32 DLLs
4244-AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
4245-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
4246-])# AC_LIBTOOL_WIN32_DLL
4247
4248+# _LT_SYS_DYNAMIC_LINKER([TAG])
4249+# -----------------------------
4250+# PORTME Fill in your ld.so characteristics
4251+m4_defun([_LT_SYS_DYNAMIC_LINKER],
4252+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4253+m4_require([_LT_DECL_EGREP])dnl
4254+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4255+m4_require([_LT_DECL_OBJDUMP])dnl
4256+m4_require([_LT_DECL_SED])dnl
4257+AC_MSG_CHECKING([dynamic linker characteristics])
4258+m4_if([$1],
4259+ [], [
4260+if test "$GCC" = yes; then
4261+ case $host_os in
4262+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4263+ *) lt_awk_arg="/^libraries:/" ;;
4264+ esac
4265+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4266+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
4267+ # if the path contains ";" then we assume it to be the separator
4268+ # otherwise default to the standard path separator (i.e. ":") - it is
4269+ # assumed that no part of a normal pathname contains ";" but that should
4270+ # okay in the real world where ";" in dirpaths is itself problematic.
4271+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4272+ else
4273+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4274+ fi
4275+ # Ok, now we have the path, separated by spaces, we can step through it
4276+ # and add multilib dir if necessary.
4277+ lt_tmp_lt_search_path_spec=
4278+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4279+ for lt_sys_path in $lt_search_path_spec; do
4280+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
4281+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
4282+ else
4283+ test -d "$lt_sys_path" && \
4284+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
4285+ fi
4286+ done
4287+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
4288+BEGIN {RS=" "; FS="/|\n";} {
4289+ lt_foo="";
4290+ lt_count=0;
4291+ for (lt_i = NF; lt_i > 0; lt_i--) {
4292+ if ($lt_i != "" && $lt_i != ".") {
4293+ if ($lt_i == "..") {
4294+ lt_count++;
4295+ } else {
4296+ if (lt_count == 0) {
4297+ lt_foo="/" $lt_i lt_foo;
4298+ } else {
4299+ lt_count--;
4300+ }
4301+ }
4302+ }
4303+ }
4304+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4305+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4306+}'`
4307+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
4308+else
4309+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4310+fi])
4311+library_names_spec=
4312+libname_spec='lib$name'
4313+soname_spec=
4314+shrext_cmds=".so"
4315+postinstall_cmds=
4316+postuninstall_cmds=
4317+finish_cmds=
4318+finish_eval=
4319+shlibpath_var=
4320+shlibpath_overrides_runpath=unknown
4321+version_type=none
4322+dynamic_linker="$host_os ld.so"
4323+sys_lib_dlsearch_path_spec="/lib /usr/lib"
4324+need_lib_prefix=unknown
4325+hardcode_into_libs=no
4326
4327-# AC_ENABLE_SHARED([DEFAULT])
4328-# ---------------------------
4329-# implement the --enable-shared flag
4330-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4331-AC_DEFUN([AC_ENABLE_SHARED],
4332-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
4333-AC_ARG_ENABLE([shared],
4334- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
4335- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
4336- [p=${PACKAGE-default}
4337- case $enableval in
4338- yes) enable_shared=yes ;;
4339- no) enable_shared=no ;;
4340- *)
4341- enable_shared=no
4342- # Look at the argument we got. We use all the common list separators.
4343- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4344- for pkg in $enableval; do
4345- IFS="$lt_save_ifs"
4346- if test "X$pkg" = "X$p"; then
4347- enable_shared=yes
4348- fi
4349- done
4350- IFS="$lt_save_ifs"
4351- ;;
4352- esac],
4353- [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
4354-])# AC_ENABLE_SHARED
4355-
4356+# when you set need_version to no, make sure it does not cause -set_version
4357+# flags to be left without arguments
4358+need_version=unknown
4359
4360-# AC_DISABLE_SHARED
4361-# -----------------
4362-# set the default shared flag to --disable-shared
4363-AC_DEFUN([AC_DISABLE_SHARED],
4364-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4365-AC_ENABLE_SHARED(no)
4366-])# AC_DISABLE_SHARED
4367+case $host_os in
4368+aix3*)
4369+ version_type=linux
4370+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4371+ shlibpath_var=LIBPATH
4372
4373+ # AIX 3 has no versioning support, so we append a major version to the name.
4374+ soname_spec='${libname}${release}${shared_ext}$major'
4375+ ;;
4009 4376
4010-# AC_ENABLE_STATIC([DEFAULT])4377-# AC_ENABLE_STATIC([DEFAULT])
4011-# ---------------------------4378-# ---------------------------
@@ -4031,92 +4398,67 @@
4031- fi4398- fi
4032- done4399- done
4033- IFS="$lt_save_ifs"4400- IFS="$lt_save_ifs"
4034- ;;4401+aix[[4-9]]*)
4402+ version_type=linux
4403+ need_lib_prefix=no
4404+ need_version=no
4405+ hardcode_into_libs=yes
4406+ if test "$host_cpu" = ia64; then
4407+ # AIX 5 supports IA64
4408+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4409+ shlibpath_var=LD_LIBRARY_PATH
4410+ else
4411+ # With GCC up to 2.95.x, collect2 would create an import file
4412+ # for dependence libraries. The import file would start with
4413+ # the line `#! .'. This would cause the generated library to
4414+ # depend on `.', always an invalid library. This was fixed in
4415+ # development snapshots of GCC prior to 3.0.
4416+ case $host_os in
4417+ aix4 | aix4.[[01]] | aix4.[[01]].*)
4418+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4419+ echo ' yes '
4420+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
4421+ :
4422+ else
4423+ can_build_shared=no
4424+ fi
4425 ;;
4035- esac],4426- esac],
4036- [enable_static=]AC_ENABLE_STATIC_DEFAULT)4427- [enable_static=]AC_ENABLE_STATIC_DEFAULT)
4037-])# AC_ENABLE_STATIC4428-])# AC_ENABLE_STATIC
4038+# _LT_SYS_DYNAMIC_LINKER([TAG])4429+ esac
4039+# -----------------------------4430+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4040+# PORTME Fill in your ld.so characteristics4431+ # soname into executable. Probably we can add versioning support to
4041+m4_defun([_LT_SYS_DYNAMIC_LINKER],4432+ # collect2, so additional links can be useful in future.
4042+[AC_REQUIRE([AC_CANONICAL_HOST])dnl4433+ if test "$aix_use_runtimelinking" = yes; then
4043+m4_require([_LT_DECL_EGREP])dnl4434+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4044+m4_require([_LT_FILEUTILS_DEFAULTS])dnl4435+ # instead of lib<name>.a to let people know that these are not
4045+m4_require([_LT_DECL_OBJDUMP])dnl4436+ # typical AIX shared libraries.
4046+m4_require([_LT_DECL_SED])dnl4437+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4047+AC_MSG_CHECKING([dynamic linker characteristics])
4048+m4_if([$1],
4049+ [], [
4050+if test "$GCC" = yes; then
4051+ case $host_os in
4052+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4053+ *) lt_awk_arg="/^libraries:/" ;;
4054+ esac
4055+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4056+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
4057+ # if the path contains ";" then we assume it to be the separator
4058+ # otherwise default to the standard path separator (i.e. ":") - it is
4059+ # assumed that no part of a normal pathname contains ";" but that should
4060+ # okay in the real world where ";" in dirpaths is itself problematic.
4061+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4062+ else
4063+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4064+ fi
4065+ # Ok, now we have the path, separated by spaces, we can step through it
4066+ # and add multilib dir if necessary.
4067+ lt_tmp_lt_search_path_spec=
4068+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4069+ for lt_sys_path in $lt_search_path_spec; do
4070+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
4071+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
4072+ else4438+ else
4073+ test -d "$lt_sys_path" && \4439+ # We preserve .a as extension for shared libraries through AIX4.2
4074+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"4440+ # and later when we are not doing run time linking.
4441+ library_names_spec='${libname}${release}.a $libname.a'
4442+ soname_spec='${libname}${release}${shared_ext}$major'
4075+ fi4443+ fi
4076+ done4444+ shlibpath_var=LIBPATH
4077+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '4445+ fi
4078+BEGIN {RS=" "; FS="/|\n";} {4446+ ;;
4079+ lt_foo="";
4080+ lt_count=0;
4081+ for (lt_i = NF; lt_i > 0; lt_i--) {
4082+ if ($lt_i != "" && $lt_i != ".") {
4083+ if ($lt_i == "..") {
4084+ lt_count++;
4085+ } else {
4086+ if (lt_count == 0) {
4087+ lt_foo="/" $lt_i lt_foo;
4088+ } else {
4089+ lt_count--;
4090+ }
4091+ }
4092+ }
4093+ }
4094+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4095+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4096+}'`
4097+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
4098+else
4099+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4100+fi])
4101+library_names_spec=
4102+libname_spec='lib$name'
4103+soname_spec=
4104+shrext_cmds=".so"
4105+postinstall_cmds=
4106+postuninstall_cmds=
4107+finish_cmds=
4108+finish_eval=
4109+shlibpath_var=
4110+shlibpath_overrides_runpath=unknown
4111+version_type=none
4112+dynamic_linker="$host_os ld.so"
4113+sys_lib_dlsearch_path_spec="/lib /usr/lib"
4114+need_lib_prefix=unknown
4115+hardcode_into_libs=no
4116 4447
4117+# when you set need_version to no, make sure it does not cause -set_version4448+amigaos*)
4118+# flags to be left without arguments4449+ case $host_cpu in
4119+need_version=unknown4450+ powerpc)
4451+ # Since July 2007 AmigaOS4 officially supports .so libraries.
4452+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
4453+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4454+ ;;
4455+ m68k)
4456+ library_names_spec='$libname.ixlibrary $libname.a'
4457+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
4458+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
4459+ ;;
4460+ esac
4461+ ;;
4120 4462
4121-# AC_DISABLE_STATIC4463-# AC_DISABLE_STATIC
4122-# -----------------4464-# -----------------
@@ -4125,14 +4467,24 @@
4125-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl4467-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4126-AC_ENABLE_STATIC(no)4468-AC_ENABLE_STATIC(no)
4127-])# AC_DISABLE_STATIC4469-])# AC_DISABLE_STATIC
4128+case $host_os in4470+beos*)
4129+aix3*)4471+ library_names_spec='${libname}${shared_ext}'
4472+ dynamic_linker="$host_os ld.so"
4473+ shlibpath_var=LIBRARY_PATH
4474+ ;;
4475
4476+bsdi[[45]]*)
4130+ version_type=linux4477+ version_type=linux
4131+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'4478+ need_version=no
4132+ shlibpath_var=LIBPATH4479+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4133
4134+ # AIX 3 has no versioning support, so we append a major version to the name.
4135+ soname_spec='${libname}${release}${shared_ext}$major'4480+ soname_spec='${libname}${release}${shared_ext}$major'
4481+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4482+ shlibpath_var=LD_LIBRARY_PATH
4483+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4484+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4485+ # the default ld.so.conf also contains /usr/contrib/lib and
4486+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4487+ # libtool to hard-code these into programs
4136+ ;;4488+ ;;
4137 4489
4138-# AC_ENABLE_FAST_INSTALL([DEFAULT])4490-# AC_ENABLE_FAST_INSTALL([DEFAULT])
@@ -4159,67 +4511,33 @@
4159- fi4511- fi
4160- done4512- done
4161- IFS="$lt_save_ifs"4513- IFS="$lt_save_ifs"
4162+aix[[4-9]]*)4514- ;;
4163+ version_type=linux
4164+ need_lib_prefix=no
4165+ need_version=no
4166+ hardcode_into_libs=yes
4167+ if test "$host_cpu" = ia64; then
4168+ # AIX 5 supports IA64
4169+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4170+ shlibpath_var=LD_LIBRARY_PATH
4171+ else
4172+ # With GCC up to 2.95.x, collect2 would create an import file
4173+ # for dependence libraries. The import file would start with
4174+ # the line `#! .'. This would cause the generated library to
4175+ # depend on `.', always an invalid library. This was fixed in
4176+ # development snapshots of GCC prior to 3.0.
4177+ case $host_os in
4178+ aix4 | aix4.[[01]] | aix4.[[01]].*)
4179+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4180+ echo ' yes '
4181+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
4182+ :
4183+ else
4184+ can_build_shared=no
4185+ fi
4186 ;;
4187- esac],4515- esac],
4188- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)4516- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
4189-])# AC_ENABLE_FAST_INSTALL4517-])# AC_ENABLE_FAST_INSTALL
4190+ esac4518+cygwin* | mingw* | pw32* | cegcc*)
4191+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct4519+ version_type=windows
4192+ # soname into executable. Probably we can add versioning support to4520+ shrext_cmds=".dll"
4193+ # collect2, so additional links can be useful in future.4521+ need_version=no
4194+ if test "$aix_use_runtimelinking" = yes; then4522+ need_lib_prefix=no
4195+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4196+ # instead of lib<name>.a to let people know that these are not
4197+ # typical AIX shared libraries.
4198+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4199+ else
4200+ # We preserve .a as extension for shared libraries through AIX4.2
4201+ # and later when we are not doing run time linking.
4202+ library_names_spec='${libname}${release}.a $libname.a'
4203+ soname_spec='${libname}${release}${shared_ext}$major'
4204+ fi
4205+ shlibpath_var=LIBPATH
4206+ fi
4207+ ;;
4208 4523
4209+amigaos*)4524+ case $GCC,$host_os in
4210+ case $host_cpu in4525+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
4211+ powerpc)4526+ library_names_spec='$libname.dll.a'
4212+ # Since July 2007 AmigaOS4 officially supports .so libraries.4527+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
4213+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.4528+ postinstall_cmds='base_file=`basename \${file}`~
4214+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'4529+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4215+ ;;4530+ dldir=$destdir/`dirname \$dlpath`~
4216+ m68k)4531+ test -d \$dldir || mkdir -p \$dldir~
4217+ library_names_spec='$libname.ixlibrary $libname.a'4532+ $install_prog $dir/$dlname \$dldir/$dlname~
4218+ # Create ${libname}_ixlibrary.a entries in /sys/libs.4533+ chmod a+x \$dldir/$dlname~
4219+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'4534+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4220+ ;;4535+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4221+ esac4536+ fi'
4222+ ;;4537+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4538+ dlpath=$dir/\$dldll~
4539+ $RM \$dlpath'
4540+ shlibpath_overrides_runpath=yes
4223 4541
4224-# AC_DISABLE_FAST_INSTALL4542-# AC_DISABLE_FAST_INSTALL
4225-# -----------------------4543-# -----------------------
@@ -4228,24 +4546,42 @@
4228-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl4546-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4229-AC_ENABLE_FAST_INSTALL(no)4547-AC_ENABLE_FAST_INSTALL(no)
4230-])# AC_DISABLE_FAST_INSTALL4548-])# AC_DISABLE_FAST_INSTALL
4231+beos*)4549+ case $host_os in
4232+ library_names_spec='${libname}${shared_ext}'4550+ cygwin*)
4233+ dynamic_linker="$host_os ld.so"4551+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4234+ shlibpath_var=LIBRARY_PATH4552+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4235+ ;;4553+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4554+ ;;
4555+ mingw* | cegcc*)
4556+ # MinGW DLLs use traditional 'lib' prefix
4557+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4558+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4559+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4560+ # It is most probably a Windows format PATH printed by
4561+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
4562+ # path with ; separators, and with drive letters. We can handle the
4563+ # drive letters (cygwin fileutils understands them), so leave them,
4564+ # especially as we might pass files found there to a mingw objdump,
4565+ # which wouldn't understand a cygwinified path. Ahh.
4566+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4567+ else
4568+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4569+ fi
4570+ ;;
4571+ pw32*)
4572+ # pw32 DLLs use 'pw' prefix rather than 'lib'
4573+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4574+ ;;
4575+ esac
4576+ ;;
4236 4577
4237+bsdi[[45]]*)4578+ *)
4238+ version_type=linux4579+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4239+ need_version=no4580+ ;;
4240+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'4581+ esac
4241+ soname_spec='${libname}${release}${shared_ext}$major'4582+ dynamic_linker='Win32 ld.exe'
4242+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'4583+ # FIXME: first we should search . and the directory the executable is in
4243+ shlibpath_var=LD_LIBRARY_PATH4584+ shlibpath_var=PATH
4244+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4245+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4246+ # the default ld.so.conf also contains /usr/contrib/lib and
4247+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4248+ # libtool to hard-code these into programs
4249+ ;;4585+ ;;
4250 4586
4251-# AC_LIBTOOL_PICMODE([MODE])4587-# AC_LIBTOOL_PICMODE([MODE])
@@ -4256,30 +4592,8 @@
4256-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl4592-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4257-pic_mode=ifelse($#,1,$1,default)4593-pic_mode=ifelse($#,1,$1,default)
4258-])# AC_LIBTOOL_PICMODE4594-])# AC_LIBTOOL_PICMODE
4259+cygwin* | mingw* | pw32* | cegcc*)4595-
4260+ version_type=windows4596-
4261+ shrext_cmds=".dll"
4262+ need_version=no
4263+ need_lib_prefix=no
4264
4265+ case $GCC,$host_os in
4266+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
4267+ library_names_spec='$libname.dll.a'
4268+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
4269+ postinstall_cmds='base_file=`basename \${file}`~
4270+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4271+ dldir=$destdir/`dirname \$dlpath`~
4272+ test -d \$dldir || mkdir -p \$dldir~
4273+ $install_prog $dir/$dlname \$dldir/$dlname~
4274+ chmod a+x \$dldir/$dlname~
4275+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4276+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4277+ fi'
4278+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4279+ dlpath=$dir/\$dldll~
4280+ $RM \$dlpath'
4281+ shlibpath_overrides_runpath=yes
4282
4283-# AC_PROG_EGREP4597-# AC_PROG_EGREP
4284-# -------------4598-# -------------
4285-# This is predefined starting with Autoconf 2.54, so this conditional4599-# This is predefined starting with Autoconf 2.54, so this conditional
@@ -4293,44 +4607,8 @@
4293- EGREP=$ac_cv_prog_egrep4607- EGREP=$ac_cv_prog_egrep
4294- AC_SUBST([EGREP])4608- AC_SUBST([EGREP])
4295-])])4609-])])
4296+ case $host_os in4610-
4297+ cygwin*)4611-
4298+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4299+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4300+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4301+ ;;
4302+ mingw* | cegcc*)
4303+ # MinGW DLLs use traditional 'lib' prefix
4304+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4305+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4306+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4307+ # It is most probably a Windows format PATH printed by
4308+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
4309+ # path with ; separators, and with drive letters. We can handle the
4310+ # drive letters (cygwin fileutils understands them), so leave them,
4311+ # especially as we might pass files found there to a mingw objdump,
4312+ # which wouldn't understand a cygwinified path. Ahh.
4313+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4314+ else
4315+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4316+ fi
4317+ ;;
4318+ pw32*)
4319+ # pw32 DLLs use 'pw' prefix rather than 'lib'
4320+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4321+ ;;
4322+ esac
4323+ ;;
4324
4325+ *)
4326+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4327+ ;;
4328+ esac
4329+ dynamic_linker='Win32 ld.exe'
4330+ # FIXME: first we should search . and the directory the executable is in
4331+ shlibpath_var=PATH
4332+ ;;
4333
4334-# AC_PATH_TOOL_PREFIX4612-# AC_PATH_TOOL_PREFIX
4335-# -------------------4613-# -------------------
4336-# find a file program which can recognize shared library4614-# find a file program which can recognize shared library
@@ -4562,10 +4840,10 @@
4562-case `$LD -v 2>&1 </dev/null` in4840-case `$LD -v 2>&1 </dev/null` in
4563-*GNU* | *'with BFD'*)4841-*GNU* | *'with BFD'*)
4564- lt_cv_prog_gnu_ld=yes4842- lt_cv_prog_gnu_ld=yes
4565 ;;4843- ;;
4566-*)4844-*)
4567- lt_cv_prog_gnu_ld=no4845- lt_cv_prog_gnu_ld=no
4568- ;;4846 ;;
4569-esac])4847-esac])
4570-with_gnu_ld=$lt_cv_prog_gnu_ld4848-with_gnu_ld=$lt_cv_prog_gnu_ld
4571-])# AC_PROG_LD_GNU4849-])# AC_PROG_LD_GNU
@@ -4958,10 +5236,36 @@
4958 5236
4959 solaris*)5237 solaris*)
4960- lt_cv_deplibs_check_method=pass_all5238- lt_cv_deplibs_check_method=pass_all
4961- ;;5239+ version_type=linux
4962-5240+ need_lib_prefix=no
4963-sysv4 | sysv4.3*)5241+ need_version=no
4964- case $host_vendor in5242+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5243+ soname_spec='${libname}${release}${shared_ext}$major'
5244+ shlibpath_var=LD_LIBRARY_PATH
5245+ shlibpath_overrides_runpath=yes
5246+ hardcode_into_libs=yes
5247+ # ldd complains unless libraries are executable
5248+ postinstall_cmds='chmod +x $lib'
5249+ ;;
5250+
5251+sunos4*)
5252+ version_type=sunos
5253+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5254+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5255+ shlibpath_var=LD_LIBRARY_PATH
5256+ shlibpath_overrides_runpath=yes
5257+ if test "$with_gnu_ld" = yes; then
5258+ need_lib_prefix=no
5259+ fi
5260+ need_version=yes
5261 ;;
5262
5263 sysv4 | sysv4.3*)
5264+ version_type=linux
5265+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5266+ soname_spec='${libname}${release}${shared_ext}$major'
5267+ shlibpath_var=LD_LIBRARY_PATH
5268 case $host_vendor in
4965- motorola)5269- motorola)
4966- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'5270- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
4967- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`5271- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
@@ -4984,31 +5288,32 @@
4984- pc)5288- pc)
4985- lt_cv_deplibs_check_method=pass_all5289- lt_cv_deplibs_check_method=pass_all
4986- ;;5290- ;;
4987- esac5291+ sni)
4988+ version_type=linux5292+ shlibpath_overrides_runpath=no
4989+ need_lib_prefix=no5293+ need_lib_prefix=no
4990+ need_version=no5294+ runpath_var=LD_RUN_PATH
4991+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'5295+ ;;
4992+ soname_spec='${libname}${release}${shared_ext}$major'5296+ siemens)
4993+ shlibpath_var=LD_LIBRARY_PATH5297+ need_lib_prefix=no
4994+ shlibpath_overrides_runpath=yes5298+ ;;
4995+ hardcode_into_libs=yes5299+ motorola)
4996+ # ldd complains unless libraries are executable5300+ need_lib_prefix=no
4997+ postinstall_cmds='chmod +x $lib'5301+ need_version=no
5302+ shlibpath_overrides_runpath=no
5303+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5304+ ;;
5305 esac
4998 ;;5306 ;;
4999 5307
5000-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)5308-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5001- lt_cv_deplibs_check_method=pass_all5309- lt_cv_deplibs_check_method=pass_all
5002+sunos4*)5310+sysv4*MP*)
5003+ version_type=sunos5311+ if test -d /usr/nec ;then
5004+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'5312+ version_type=linux
5005+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'5313+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5006+ shlibpath_var=LD_LIBRARY_PATH5314+ soname_spec='$libname${shared_ext}.$major'
5007+ shlibpath_overrides_runpath=yes5315+ shlibpath_var=LD_LIBRARY_PATH
5008+ if test "$with_gnu_ld" = yes; then
5009+ need_lib_prefix=no
5010+ fi5316+ fi
5011+ need_version=yes
5012 ;;5317 ;;
5013-esac5318-esac
5014-])5319-])
@@ -5016,29 +5321,7 @@
5016-deplibs_check_method=$lt_cv_deplibs_check_method5321-deplibs_check_method=$lt_cv_deplibs_check_method
5017-test -z "$deplibs_check_method" && deplibs_check_method=unknown5322-test -z "$deplibs_check_method" && deplibs_check_method=unknown
5018-])# AC_DEPLIBS_CHECK_METHOD5323-])# AC_DEPLIBS_CHECK_METHOD
5019 5324-
5020+sysv4 | sysv4.3*)
5021+ version_type=linux
5022+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5023+ soname_spec='${libname}${release}${shared_ext}$major'
5024+ shlibpath_var=LD_LIBRARY_PATH
5025+ case $host_vendor in
5026+ sni)
5027+ shlibpath_overrides_runpath=no
5028+ need_lib_prefix=no
5029+ runpath_var=LD_RUN_PATH
5030+ ;;
5031+ siemens)
5032+ need_lib_prefix=no
5033+ ;;
5034+ motorola)
5035+ need_lib_prefix=no
5036+ need_version=no
5037+ shlibpath_overrides_runpath=no
5038+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5039+ ;;
5040+ esac
5041+ ;;
5042 5325
5043-# AC_PROG_NM5326-# AC_PROG_NM
5044-# ----------5327-# ----------
@@ -5052,12 +5335,24 @@
5052- lt_nm_to_check="${ac_tool_prefix}nm"5335- lt_nm_to_check="${ac_tool_prefix}nm"
5053- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then5336- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5054- lt_nm_to_check="$lt_nm_to_check nm"5337- lt_nm_to_check="$lt_nm_to_check nm"
5055+sysv4*MP*)5338+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5056+ if test -d /usr/nec ;then5339+ version_type=freebsd-elf
5057+ version_type=linux5340+ need_lib_prefix=no
5058+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'5341+ need_version=no
5059+ soname_spec='$libname${shared_ext}.$major'5342+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5060+ shlibpath_var=LD_LIBRARY_PATH5343+ soname_spec='${libname}${release}${shared_ext}$major'
5344+ shlibpath_var=LD_LIBRARY_PATH
5345+ shlibpath_overrides_runpath=yes
5346+ hardcode_into_libs=yes
5347+ if test "$with_gnu_ld" = yes; then
5348+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5349+ else
5350+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
5351+ case $host_os in
5352+ sco3.2v5*)
5353+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
5354+ ;;
5355+ esac
5061 fi5356 fi
5062- for lt_tmp_nm in $lt_nm_to_check; do5357- for lt_tmp_nm in $lt_nm_to_check; do
5063- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR5358- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
@@ -5096,27 +5391,7 @@
5096-fi])5391-fi])
5097-NM="$lt_cv_path_NM"5392-NM="$lt_cv_path_NM"
5098-])# AC_PROG_NM5393-])# AC_PROG_NM
5099+ ;;5394-
5100
5101+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5102+ version_type=freebsd-elf
5103+ need_lib_prefix=no
5104+ need_version=no
5105+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5106+ soname_spec='${libname}${release}${shared_ext}$major'
5107+ shlibpath_var=LD_LIBRARY_PATH
5108+ shlibpath_overrides_runpath=yes
5109+ hardcode_into_libs=yes
5110+ if test "$with_gnu_ld" = yes; then
5111+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5112+ else
5113+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
5114+ case $host_os in
5115+ sco3.2v5*)
5116+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
5117+ ;;
5118+ esac
5119+ fi
5120+ sys_lib_dlsearch_path_spec='/usr/lib'5395+ sys_lib_dlsearch_path_spec='/usr/lib'
5121+ ;;5396+ ;;
5122 5397
@@ -5355,11 +5630,11 @@
5355-AC_DEFUN([AC_LIBTOOL_F77],5630-AC_DEFUN([AC_LIBTOOL_F77],
5356-[AC_REQUIRE([_LT_AC_LANG_F77])5631-[AC_REQUIRE([_LT_AC_LANG_F77])
5357-])# AC_LIBTOOL_F775632-])# AC_LIBTOOL_F77
5633-
5358+_LT_DECL([], [MAGIC_CMD], [0],5634+_LT_DECL([], [MAGIC_CMD], [0],
5359+ [Used to examine libraries when file_magic_cmd begins with "file"])dnl5635+ [Used to examine libraries when file_magic_cmd begins with "file"])dnl
5360+])# _LT_PATH_TOOL_PREFIX5636+])# _LT_PATH_TOOL_PREFIX
5361 5637
5362-
5363-# _LT_AC_LANG_F775638-# _LT_AC_LANG_F77
5364-# ---------------5639-# ---------------
5365-AC_DEFUN([_LT_AC_LANG_F77],5640-AC_DEFUN([_LT_AC_LANG_F77],
@@ -5379,8 +5654,19 @@
5379-AC_DEFUN([AC_LIBTOOL_GCJ],5654-AC_DEFUN([AC_LIBTOOL_GCJ],
5380-[AC_REQUIRE([_LT_AC_LANG_GCJ])5655-[AC_REQUIRE([_LT_AC_LANG_GCJ])
5381-])# AC_LIBTOOL_GCJ5656-])# AC_LIBTOOL_GCJ
5382-5657+# find a file program which can recognize a shared library
5383-5658+m4_defun([_LT_PATH_MAGIC],
5659+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
5660+if test -z "$lt_cv_path_MAGIC_CMD"; then
5661+ if test -n "$ac_tool_prefix"; then
5662+ _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
5663+ else
5664+ MAGIC_CMD=:
5665+ fi
5666+fi
5667+])# _LT_PATH_MAGIC
5668
5669
5384-# _LT_AC_LANG_GCJ5670-# _LT_AC_LANG_GCJ
5385-# ---------------5671-# ---------------
5386-AC_DEFUN([_LT_AC_LANG_GCJ],5672-AC_DEFUN([_LT_AC_LANG_GCJ],
@@ -5392,26 +5678,6 @@
5392- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])5678- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
5393-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])5679-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
5394-])# _LT_AC_LANG_GCJ5680-])# _LT_AC_LANG_GCJ
5395+# find a file program which can recognize a shared library
5396+m4_defun([_LT_PATH_MAGIC],
5397+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
5398+if test -z "$lt_cv_path_MAGIC_CMD"; then
5399+ if test -n "$ac_tool_prefix"; then
5400+ _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
5401+ else
5402+ MAGIC_CMD=:
5403+ fi
5404+fi
5405+])# _LT_PATH_MAGIC
5406
5407
5408-# AC_LIBTOOL_RC
5409-# -------------
5410-# enable support for Windows resource files
5411-AC_DEFUN([AC_LIBTOOL_RC],
5412-[AC_REQUIRE([LT_AC_PROG_RC])
5413-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
5414-])# AC_LIBTOOL_RC
5415+# LT_PATH_LD5681+# LT_PATH_LD
5416+# ----------5682+# ----------
5417+# find the pathname to the GNU or non-GNU linker5683+# find the pathname to the GNU or non-GNU linker
@@ -5428,15 +5694,13 @@
5428+ [test "$withval" = no || with_gnu_ld=yes],5694+ [test "$withval" = no || with_gnu_ld=yes],
5429+ [with_gnu_ld=no])dnl5695+ [with_gnu_ld=no])dnl
5430 5696
5431-# AC_LIBTOOL_LANG_C_CONFIG5697-# AC_LIBTOOL_RC
5432-# ------------------------5698-# -------------
5433-# Ensure that the configuration vars for the C compiler are5699-# enable support for Windows resource files
5434-# suitably defined. Those variables are subsequently used by5700-AC_DEFUN([AC_LIBTOOL_RC],
5435-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.5701-[AC_REQUIRE([LT_AC_PROG_RC])
5436-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])5702-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
5437-AC_DEFUN([_LT_AC_LANG_C_CONFIG],5703-])# AC_LIBTOOL_RC
5438-[lt_save_CC="$CC"
5439-AC_LANG_PUSH(C)
5440+ac_prog=ld5704+ac_prog=ld
5441+if test "$GCC" = yes; then5705+if test "$GCC" = yes; then
5442+ # Check if gcc -print-prog-name=ld gives a path.5706+ # Check if gcc -print-prog-name=ld gives a path.
@@ -5508,14 +5772,18 @@
5508+_LT_PATH_LD_GNU5772+_LT_PATH_LD_GNU
5509+AC_SUBST([LD])5773+AC_SUBST([LD])
5510 5774
5511-# Source file extension for C test sources.
5512-ac_ext=c
5513+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])5775+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
5514+])# LT_PATH_LD5776+])# LT_PATH_LD
5515 5777
5516-# Object file extension for compiled C test sources.5778-# AC_LIBTOOL_LANG_C_CONFIG
5517-objext=o5779-# ------------------------
5518-_LT_AC_TAGVAR(objext, $1)=$objext5780-# Ensure that the configuration vars for the C compiler are
5781-# suitably defined. Those variables are subsequently used by
5782-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5783-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
5784-AC_DEFUN([_LT_AC_LANG_C_CONFIG],
5785-[lt_save_CC="$CC"
5786-AC_LANG_PUSH(C)
5519+# Old names:5787+# Old names:
5520+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])5788+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
5521+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])5789+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
@@ -5540,11 +5808,12 @@
5540+with_gnu_ld=$lt_cv_prog_gnu_ld5808+with_gnu_ld=$lt_cv_prog_gnu_ld
5541+])# _LT_PATH_LD_GNU5809+])# _LT_PATH_LD_GNU
5542 5810
5543-# Code to be used in simple compile tests5811-# Source file extension for C test sources.
5544-lt_simple_compile_test_code="int some_variable = 0;"5812-ac_ext=c
5545 5813
5546-# Code to be used in simple link tests5814-# Object file extension for compiled C test sources.
5547-lt_simple_link_test_code='int main(){return(0);}'5815-objext=o
5816-_LT_AC_TAGVAR(objext, $1)=$objext
5548+# _LT_CMD_RELOAD5817+# _LT_CMD_RELOAD
5549+# --------------5818+# --------------
5550+# find reload flag for linker5819+# find reload flag for linker
@@ -5572,11 +5841,11 @@
5572+_LT_DECL([], [reload_cmds], [2])dnl5841+_LT_DECL([], [reload_cmds], [2])dnl
5573+])# _LT_CMD_RELOAD5842+])# _LT_CMD_RELOAD
5574 5843
5575-_LT_AC_SYS_COMPILER5844-# Code to be used in simple compile tests
5845-lt_simple_compile_test_code="int some_variable = 0;"
5576 5846
5577-# save warnings/boilerplate of simple test code5847-# Code to be used in simple link tests
5578-_LT_COMPILER_BOILERPLATE5848-lt_simple_link_test_code='int main(){return(0);}'
5579-_LT_LINKER_BOILERPLATE
5580+# _LT_CHECK_MAGIC_METHOD5849+# _LT_CHECK_MAGIC_METHOD
5581+# ----------------------5850+# ----------------------
5582+# how to check for library dependencies5851+# how to check for library dependencies
@@ -5600,6 +5869,19 @@
5600+# If you have `file' or equivalent on your system and you're not sure5869+# If you have `file' or equivalent on your system and you're not sure
5601+# whether `pass_all' will *always* work, you probably want this one.5870+# whether `pass_all' will *always* work, you probably want this one.
5602 5871
5872-_LT_AC_SYS_COMPILER
5873+case $host_os in
5874+aix[[4-9]]*)
5875+ lt_cv_deplibs_check_method=pass_all
5876+ ;;
5877
5878-# save warnings/boilerplate of simple test code
5879-_LT_COMPILER_BOILERPLATE
5880-_LT_LINKER_BOILERPLATE
5881+beos*)
5882+ lt_cv_deplibs_check_method=pass_all
5883+ ;;
5884
5603-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)5885-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5604-AC_LIBTOOL_PROG_COMPILER_PIC($1)5886-AC_LIBTOOL_PROG_COMPILER_PIC($1)
5605-AC_LIBTOOL_PROG_CC_C_O($1)5887-AC_LIBTOOL_PROG_CC_C_O($1)
@@ -5613,49 +5895,28 @@
5613-# Report which library types will actually be built5895-# Report which library types will actually be built
5614-AC_MSG_CHECKING([if libtool supports shared libraries])5896-AC_MSG_CHECKING([if libtool supports shared libraries])
5615-AC_MSG_RESULT([$can_build_shared])5897-AC_MSG_RESULT([$can_build_shared])
5616+case $host_os in
5617+aix[[4-9]]*)
5618+ lt_cv_deplibs_check_method=pass_all
5619+ ;;
5620
5621-AC_MSG_CHECKING([whether to build shared libraries])
5622-test "$can_build_shared" = "no" && enable_shared=no
5623+beos*)
5624+ lt_cv_deplibs_check_method=pass_all
5625+ ;;
5626
5627-# On AIX, shared libraries and static libraries use the same namespace, and
5628-# are all built from PIC.
5629-case $host_os in
5630-aix3*)
5631- test "$enable_shared" = yes && enable_static=no
5632- if test -n "$RANLIB"; then
5633- archive_cmds="$archive_cmds~\$RANLIB \$lib"
5634- postinstall_cmds='$RANLIB $lib'
5635- fi
5636+bsdi[[45]]*)5898+bsdi[[45]]*)
5637+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'5899+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
5638+ lt_cv_file_magic_cmd='/usr/bin/file -L'5900+ lt_cv_file_magic_cmd='/usr/bin/file -L'
5639+ lt_cv_file_magic_test_file=/shlib/libc.so5901+ lt_cv_file_magic_test_file=/shlib/libc.so
5640 ;;5902+ ;;
5641 5903
5642-aix[[4-9]]*)5904-AC_MSG_CHECKING([whether to build shared libraries])
5643- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then5905-test "$can_build_shared" = "no" && enable_shared=no
5644- test "$enable_shared" = yes && enable_static=no
5645- fi
5646- ;;
5647-esac
5648-AC_MSG_RESULT([$enable_shared])
5649+cygwin*)5906+cygwin*)
5650+ # func_win32_libid is a shell function defined in ltmain.sh5907+ # func_win32_libid is a shell function defined in ltmain.sh
5651+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'5908+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5652+ lt_cv_file_magic_cmd='func_win32_libid'5909+ lt_cv_file_magic_cmd='func_win32_libid'
5653+ ;;5910+ ;;
5654 5911
5655-AC_MSG_CHECKING([whether to build static libraries])5912-# On AIX, shared libraries and static libraries use the same namespace, and
5656-# Make sure either enable_shared or enable_static is yes.5913-# are all built from PIC.
5657-test "$enable_shared" = yes || enable_static=yes5914-case $host_os in
5658-AC_MSG_RESULT([$enable_static])5915-aix3*)
5916- test "$enable_shared" = yes && enable_static=no
5917- if test -n "$RANLIB"; then
5918- archive_cmds="$archive_cmds~\$RANLIB \$lib"
5919- postinstall_cmds='$RANLIB $lib'
5659+mingw* | pw32*)5920+mingw* | pw32*)
5660+ # Base MSYS/MinGW do not provide the 'file' command needed by5921+ # Base MSYS/MinGW do not provide the 'file' command needed by
5661+ # func_win32_libid shell function, so use a weaker test based on 'objdump',5922+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
@@ -5666,37 +5927,70 @@
5666+ else5927+ else
5667+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'5928+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5668+ lt_cv_file_magic_cmd='$OBJDUMP -f'5929+ lt_cv_file_magic_cmd='$OBJDUMP -f'
5669+ fi5930 fi
5670+ ;;5931 ;;
5671 5932
5672-AC_LIBTOOL_CONFIG($1)5933-aix[[4-9]]*)
5934- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5935- test "$enable_shared" = yes && enable_static=no
5936- fi
5937- ;;
5938-esac
5939-AC_MSG_RESULT([$enable_shared])
5673+cegcc)5940+cegcc)
5674+ # use the weaker test based on 'objdump'. See mingw*.5941+ # use the weaker test based on 'objdump'. See mingw*.
5675+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'5942+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5676+ lt_cv_file_magic_cmd='$OBJDUMP -f'5943+ lt_cv_file_magic_cmd='$OBJDUMP -f'
5677+ ;;5944+ ;;
5678 5945
5946-AC_MSG_CHECKING([whether to build static libraries])
5947-# Make sure either enable_shared or enable_static is yes.
5948-test "$enable_shared" = yes || enable_static=yes
5949-AC_MSG_RESULT([$enable_static])
5950+darwin* | rhapsody*)
5951+ lt_cv_deplibs_check_method=pass_all
5952+ ;;
5953
5954-AC_LIBTOOL_CONFIG($1)
5955+freebsd* | dragonfly*)
5956+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5957+ case $host_cpu in
5958+ i*86 )
5959+ # Not sure whether the presence of OpenBSD here was a mistake.
5960+ # Let's accept both of them until this is cleared up.
5961+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
5962+ lt_cv_file_magic_cmd=/usr/bin/file
5963+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5964+ ;;
5965+ esac
5966+ else
5967+ lt_cv_deplibs_check_method=pass_all
5968+ fi
5969+ ;;
5970
5679-AC_LANG_POP5971-AC_LANG_POP
5680-CC="$lt_save_CC"5972-CC="$lt_save_CC"
5681-])# AC_LIBTOOL_LANG_C_CONFIG5973-])# AC_LIBTOOL_LANG_C_CONFIG
5682+darwin* | rhapsody*)5974+gnu*)
5683+ lt_cv_deplibs_check_method=pass_all5975+ lt_cv_deplibs_check_method=pass_all
5684+ ;;5976+ ;;
5685 5977
5686+freebsd* | dragonfly*)5978+hpux10.20* | hpux11*)
5687+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then5979+ lt_cv_file_magic_cmd=/usr/bin/file
5688+ case $host_cpu in5980+ case $host_cpu in
5689+ i*86 )5981+ ia64*)
5690+ # Not sure whether the presence of OpenBSD here was a mistake.5982+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
5691+ # Let's accept both of them until this is cleared up.5983+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5692+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'5984+ ;;
5693+ lt_cv_file_magic_cmd=/usr/bin/file5985+ hppa*64*)
5694+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`5986+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
5695+ ;;5987+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5696+ esac5988+ ;;
5697+ else5989+ *)
5698+ lt_cv_deplibs_check_method=pass_all5990+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
5699+ fi5991+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
5992+ ;;
5993+ esac
5700+ ;;5994+ ;;
5701 5995
5702-# AC_LIBTOOL_LANG_CXX_CONFIG5996-# AC_LIBTOOL_LANG_CXX_CONFIG
@@ -5729,8 +6023,9 @@
5729-_LT_AC_TAGVAR(no_undefined_flag, $1)=6023-_LT_AC_TAGVAR(no_undefined_flag, $1)=
5730-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=6024-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5731-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no6025-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5732+gnu*)6026+interix[[3-9]]*)
5733+ lt_cv_deplibs_check_method=pass_all6027+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6028+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
5734+ ;;6029+ ;;
5735 6030
5736-# Dependencies to place before and after the object being linked:6031-# Dependencies to place before and after the object being linked:
@@ -5740,34 +6035,6 @@
5740-_LT_AC_TAGVAR(postdeps, $1)=6035-_LT_AC_TAGVAR(postdeps, $1)=
5741-_LT_AC_TAGVAR(compiler_lib_search_path, $1)=6036-_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
5742-_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=6037-_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
5743+hpux10.20* | hpux11*)
5744+ lt_cv_file_magic_cmd=/usr/bin/file
5745+ case $host_cpu in
5746+ ia64*)
5747+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
5748+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5749+ ;;
5750+ hppa*64*)
5751+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
5752+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5753+ ;;
5754+ *)
5755+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
5756+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
5757+ ;;
5758+ esac
5759+ ;;
5760
5761-# Source file extension for C++ test sources.
5762-ac_ext=cpp
5763+interix[[3-9]]*)
5764+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5765+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
5766+ ;;
5767
5768-# Object file extension for compiled C++ test sources.
5769-objext=o
5770-_LT_AC_TAGVAR(objext, $1)=$objext
5771+irix5* | irix6* | nonstopux*)6038+irix5* | irix6* | nonstopux*)
5772+ case $LD in6039+ case $LD in
5773+ *-32|*"-32 ") libmagic=32-bit;;6040+ *-32|*"-32 ") libmagic=32-bit;;
@@ -5778,15 +6045,16 @@
5778+ lt_cv_deplibs_check_method=pass_all6045+ lt_cv_deplibs_check_method=pass_all
5779+ ;;6046+ ;;
5780 6047
5781-# Code to be used in simple compile tests6048-# Source file extension for C++ test sources.
5782-lt_simple_compile_test_code="int some_variable = 0;"6049-ac_ext=cpp
5783+# This must be Linux ELF.6050+# This must be Linux ELF.
5784+linux* | k*bsd*-gnu)6051+linux* | k*bsd*-gnu)
5785+ lt_cv_deplibs_check_method=pass_all6052+ lt_cv_deplibs_check_method=pass_all
5786+ ;;6053+ ;;
5787 6054
5788-# Code to be used in simple link tests6055-# Object file extension for compiled C++ test sources.
5789-lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'6056-objext=o
6057-_LT_AC_TAGVAR(objext, $1)=$objext
5790+netbsd* | netbsdelf*-gnu)6058+netbsd* | netbsdelf*-gnu)
5791+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then6059+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5792+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'6060+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
@@ -5795,51 +6063,22 @@
5795+ fi6063+ fi
5796+ ;;6064+ ;;
5797 6065
5798-# ltmain only uses $CC for tagged configurations so make sure $CC is set.6066-# Code to be used in simple compile tests
5799-_LT_AC_SYS_COMPILER6067-lt_simple_compile_test_code="int some_variable = 0;"
5800+newos6*)6068+newos6*)
5801+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'6069+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
5802+ lt_cv_file_magic_cmd=/usr/bin/file6070+ lt_cv_file_magic_cmd=/usr/bin/file
5803+ lt_cv_file_magic_test_file=/usr/lib/libnls.so6071+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
5804+ ;;6072+ ;;
5805 6073
5806-# save warnings/boilerplate of simple test code6074-# Code to be used in simple link tests
5807-_LT_COMPILER_BOILERPLATE6075-lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5808-_LT_LINKER_BOILERPLATE
5809+*nto* | *qnx*)6076+*nto* | *qnx*)
5810+ lt_cv_deplibs_check_method=pass_all6077+ lt_cv_deplibs_check_method=pass_all
5811+ ;;6078+ ;;
5812 6079
5813-# Allow CC to be a program name with arguments.6080-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5814-lt_save_CC=$CC6081-_LT_AC_SYS_COMPILER
5815-lt_save_LD=$LD
5816-lt_save_GCC=$GCC
5817-GCC=$GXX
5818-lt_save_with_gnu_ld=$with_gnu_ld
5819-lt_save_path_LD=$lt_cv_path_LD
5820-if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5821- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5822-else
5823- $as_unset lt_cv_prog_gnu_ld
5824-fi
5825-if test -n "${lt_cv_path_LDCXX+set}"; then
5826- lt_cv_path_LD=$lt_cv_path_LDCXX
5827-else
5828- $as_unset lt_cv_path_LD
5829-fi
5830-test -z "${LDCXX+set}" || LD=$LDCXX
5831-CC=${CXX-"c++"}
5832-compiler=$CC
5833-_LT_AC_TAGVAR(compiler, $1)=$CC
5834-_LT_CC_BASENAME([$compiler])
5835-
5836-# We don't want -fno-exception wen compiling C++ code, so set the
5837-# no_builtin_flag separately
5838-if test "$GXX" = yes; then
5839- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5840-else
5841- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5842-fi
5843+openbsd*)6082+openbsd*)
5844+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then6083+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5845+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'6084+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
@@ -5848,36 +6087,25 @@
5848+ fi6087+ fi
5849+ ;;6088+ ;;
5850 6089
5851-if test "$GXX" = yes; then6090-# save warnings/boilerplate of simple test code
5852- # Set up default GNU C++ configuration6091-_LT_COMPILER_BOILERPLATE
6092-_LT_LINKER_BOILERPLATE
5853+osf3* | osf4* | osf5*)6093+osf3* | osf4* | osf5*)
5854+ lt_cv_deplibs_check_method=pass_all6094+ lt_cv_deplibs_check_method=pass_all
5855+ ;;6095+ ;;
5856 6096+
5857- AC_PROG_LD
5858+rdos*)6097+rdos*)
5859+ lt_cv_deplibs_check_method=pass_all6098+ lt_cv_deplibs_check_method=pass_all
5860+ ;;6099+ ;;
5861 6100+
5862- # Check if GNU C++ uses GNU ld as the underlying linker, since the
5863- # archiving commands below assume that GNU ld is being used.
5864- if test "$with_gnu_ld" = yes; then
5865- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5866- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5867+solaris*)6101+solaris*)
5868+ lt_cv_deplibs_check_method=pass_all6102+ lt_cv_deplibs_check_method=pass_all
5869+ ;;6103+ ;;
5870 6104+
5871- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5872- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5873+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)6105+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5874+ lt_cv_deplibs_check_method=pass_all6106+ lt_cv_deplibs_check_method=pass_all
5875+ ;;6107+ ;;
5876 6108+
5877- # If archive_cmds runs LD, not CC, wlarc should be empty
5878- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5879- # investigate it a little bit more. (MM)
5880- wlarc='${wl}'
5881+sysv4 | sysv4.3*)6109+sysv4 | sysv4.3*)
5882+ case $host_vendor in6110+ case $host_vendor in
5883+ motorola)6111+ motorola)
@@ -5904,17 +6132,7 @@
5904+ ;;6132+ ;;
5905+ esac6133+ esac
5906+ ;;6134+ ;;
5907 6135+
5908- # ancient GNU ld didn't support --whole-archive et. al.
5909- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5910- grep 'no-whole-archive' > /dev/null; then
5911- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5912- else
5913- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5914- fi
5915- else
5916- with_gnu_ld=no
5917- wlarc=
5918+tpf*)6136+tpf*)
5919+ lt_cv_deplibs_check_method=pass_all6137+ lt_cv_deplibs_check_method=pass_all
5920+ ;;6138+ ;;
@@ -5923,25 +6141,40 @@
5923+file_magic_cmd=$lt_cv_file_magic_cmd6141+file_magic_cmd=$lt_cv_file_magic_cmd
5924+deplibs_check_method=$lt_cv_deplibs_check_method6142+deplibs_check_method=$lt_cv_deplibs_check_method
5925+test -z "$deplibs_check_method" && deplibs_check_method=unknown6143+test -z "$deplibs_check_method" && deplibs_check_method=unknown
5926 6144+
5927- # A generic and very simple default shared library creation
5928- # command for GNU C++ for the case where it uses the native
5929- # linker, instead of GNU ld. If possible, this setting should
5930- # overridden to take advantage of the native linker features on
5931- # the platform it is being used on.
5932- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5933- fi
5934+_LT_DECL([], [deplibs_check_method], [1],6145+_LT_DECL([], [deplibs_check_method], [1],
5935+ [Method to check whether dependent libraries are shared objects])6146+ [Method to check whether dependent libraries are shared objects])
5936+_LT_DECL([], [file_magic_cmd], [1],6147+_LT_DECL([], [file_magic_cmd], [1],
5937+ [Command to use when deplibs_check_method == "file_magic"])6148+ [Command to use when deplibs_check_method == "file_magic"])
5938+])# _LT_CHECK_MAGIC_METHOD6149+])# _LT_CHECK_MAGIC_METHOD
5939 6150
5940- # Commands to make compiler produce verbose output that lists6151-# Allow CC to be a program name with arguments.
5941- # what "hidden" libraries, object files and flags are used when6152-lt_save_CC=$CC
5942- # linking a shared library.6153-lt_save_LD=$LD
5943- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'6154-lt_save_GCC=$GCC
6155-GCC=$GXX
6156-lt_save_with_gnu_ld=$with_gnu_ld
6157-lt_save_path_LD=$lt_cv_path_LD
6158-if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6159- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6160-else
6161- $as_unset lt_cv_prog_gnu_ld
6162-fi
6163-if test -n "${lt_cv_path_LDCXX+set}"; then
6164- lt_cv_path_LD=$lt_cv_path_LDCXX
6165-else
6166- $as_unset lt_cv_path_LD
6167-fi
6168-test -z "${LDCXX+set}" || LD=$LDCXX
6169-CC=${CXX-"c++"}
6170-compiler=$CC
6171-_LT_AC_TAGVAR(compiler, $1)=$CC
6172-_LT_CC_BASENAME([$compiler])
5944 6173
6174-# We don't want -fno-exception wen compiling C++ code, so set the
6175-# no_builtin_flag separately
6176-if test "$GXX" = yes; then
6177- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5945+# LT_PATH_NM6178+# LT_PATH_NM
5946+# ----------6179+# ----------
5947+# find the pathname to a BSD- or MS-compatible name lister6180+# find the pathname to a BSD- or MS-compatible name lister
@@ -5951,38 +6184,7 @@
5951+[if test -n "$NM"; then6184+[if test -n "$NM"; then
5952+ # Let the user override the test.6185+ # Let the user override the test.
5953+ lt_cv_path_NM="$NM"6186+ lt_cv_path_NM="$NM"
5954 else6187+else
5955- GXX=no
5956- with_gnu_ld=no
5957- wlarc=
5958-fi
5959-
5960-# PORTME: fill in a description of your system's C++ link characteristics
5961-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5962-_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5963-case $host_os in
5964- aix3*)
5965- # FIXME: insert proper C++ library support
5966- _LT_AC_TAGVAR(ld_shlibs, $1)=no
5967- ;;
5968- aix[[4-9]]*)
5969- if test "$host_cpu" = ia64; then
5970- # On IA64, the linker does run time linking by default, so we don't
5971- # have to do anything special.
5972- aix_use_runtimelinking=no
5973- exp_sym_flag='-Bexport'
5974- no_entry_flag=""
5975- else
5976- aix_use_runtimelinking=no
5977-
5978- # Test if we are trying to use run time linking or normal
5979- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5980- # need to do runtime linking.
5981- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5982- for ld_flag in $LDFLAGS; do
5983- case $ld_flag in
5984- *-brtl*)
5985- aix_use_runtimelinking=yes
5986+ lt_nm_to_check="${ac_tool_prefix}nm"6188+ lt_nm_to_check="${ac_tool_prefix}nm"
5987+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then6189+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5988+ lt_nm_to_check="$lt_nm_to_check nm"6190+ lt_nm_to_check="$lt_nm_to_check nm"
@@ -6007,16 +6209,13 @@
6007+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in6209+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6008+ */dev/null*)6210+ */dev/null*)
6009+ lt_cv_path_NM="$tmp_nm -p"6211+ lt_cv_path_NM="$tmp_nm -p"
6010 break6212+ break
6011 ;;6213+ ;;
6012+ *)6214+ *)
6013+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but6215+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6014+ continue # so that we can try to find one that supports BSD flags6216+ continue # so that we can try to find one that supports BSD flags
6015+ ;;6217+ ;;
6016 esac6218+ esac
6017- done
6018- ;;
6019- esac
6020+ ;;6219+ ;;
6021+ esac6220+ esac
6022+ fi6221+ fi
@@ -6027,21 +6226,21 @@
6027+fi])6226+fi])
6028+if test "$lt_cv_path_NM" != "no"; then6227+if test "$lt_cv_path_NM" != "no"; then
6029+ NM="$lt_cv_path_NM"6228+ NM="$lt_cv_path_NM"
6030+else6229 else
6230- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6031+ # Didn't find any BSD compatible name lister, look for dumpbin.6231+ # Didn't find any BSD compatible name lister, look for dumpbin.
6032+ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)6232+ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
6033+ AC_SUBST([DUMPBIN])6233+ AC_SUBST([DUMPBIN])
6034+ if test "$DUMPBIN" != ":"; then6234+ if test "$DUMPBIN" != ":"; then
6035+ NM="$DUMPBIN"6235+ NM="$DUMPBIN"
6036+ fi6236+ fi
6037+fi6237 fi
6038+test -z "$NM" && NM=nm6238+test -z "$NM" && NM=nm
6039+AC_SUBST([NM])6239+AC_SUBST([NM])
6040+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl6240+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
6041 6241
6042- exp_sym_flag='-bexport'6242-if test "$GXX" = yes; then
6043- no_entry_flag='-bnoentry'6243- # Set up default GNU C++ configuration
6044- fi
6045+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],6244+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
6046+ [lt_cv_nm_interface="BSD nm"6245+ [lt_cv_nm_interface="BSD nm"
6047+ echo "int some_variable = 0;" > conftest.$ac_ext6246+ echo "int some_variable = 0;" > conftest.$ac_ext
@@ -6066,57 +6265,13 @@
6066+dnl AC_DEFUN([AM_PROG_NM], [])6265+dnl AC_DEFUN([AM_PROG_NM], [])
6067+dnl AC_DEFUN([AC_PROG_NM], [])6266+dnl AC_DEFUN([AC_PROG_NM], [])
6068 6267
6069- # When large executables or shared objects are built, AIX ld can6268- AC_PROG_LD
6070- # have problems creating the table of contents. If linking a library
6071- # or program results in "error TOC overflow" add -mminimal-toc to
6072- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6073- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6074-
6075- _LT_AC_TAGVAR(archive_cmds, $1)=''
6076- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6077- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6078- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6079 6269
6080- if test "$GXX" = yes; then6270- # Check if GNU C++ uses GNU ld as the underlying linker, since the
6081- case $host_os in aix4.[[012]]|aix4.[[012]].*)6271- # archiving commands below assume that GNU ld is being used.
6082- # We only want to do this on AIX 4.2 and lower, the check6272- if test "$with_gnu_ld" = yes; then
6083- # below for broken collect2 doesn't work under 4.3+6273- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6084- collect2name=`${CC} -print-prog-name=collect2`6274- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6085- if test -f "$collect2name" && \
6086- strings "$collect2name" | grep resolve_lib_name >/dev/null
6087- then
6088- # We have reworked collect2
6089- :
6090- else
6091- # We have old collect2
6092- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6093- # It fails to find uninstalled libraries when the uninstalled
6094- # path is not listed in the libpath. Setting hardcode_minus_L
6095- # to unsupported forces relinking
6096- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6097- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6098- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6099- fi
6100- ;;
6101- esac
6102- shared_flag='-shared'
6103- if test "$aix_use_runtimelinking" = yes; then
6104- shared_flag="$shared_flag "'${wl}-G'
6105- fi
6106- else
6107- # not using gcc
6108- if test "$host_cpu" = ia64; then
6109- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6110- # chokes on -Wl,-G. The following line is correct:
6111- shared_flag='-G'
6112- else
6113- if test "$aix_use_runtimelinking" = yes; then
6114- shared_flag='${wl}-G'
6115- else
6116- shared_flag='${wl}-bM:SRE'
6117- fi
6118- fi
6119- fi
6120+# LT_LIB_M6275+# LT_LIB_M
6121+# --------6276+# --------
6122+# check for math library6277+# check for math library
@@ -6138,6 +6293,171 @@
6138+AC_SUBST([LIBM])6293+AC_SUBST([LIBM])
6139+])# LT_LIB_M6294+])# LT_LIB_M
6140 6295
6296- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6297- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6298+# Old name:
6299+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
6300+dnl aclocal-1.4 backwards compatibility:
6301+dnl AC_DEFUN([AC_CHECK_LIBM], [])
6302
6303- # If archive_cmds runs LD, not CC, wlarc should be empty
6304- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6305- # investigate it a little bit more. (MM)
6306- wlarc='${wl}'
6307
6308- # ancient GNU ld didn't support --whole-archive et. al.
6309- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
6310- grep 'no-whole-archive' > /dev/null; then
6311- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6312- else
6313- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6314- fi
6315- else
6316- with_gnu_ld=no
6317- wlarc=
6318+# _LT_COMPILER_NO_RTTI([TAGNAME])
6319+# -------------------------------
6320+m4_defun([_LT_COMPILER_NO_RTTI],
6321+[m4_require([_LT_TAG_COMPILER])dnl
6322
6323- # A generic and very simple default shared library creation
6324- # command for GNU C++ for the case where it uses the native
6325- # linker, instead of GNU ld. If possible, this setting should
6326- # overridden to take advantage of the native linker features on
6327- # the platform it is being used on.
6328- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6329- fi
6330+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6331
6332- # Commands to make compiler produce verbose output that lists
6333- # what "hidden" libraries, object files and flags are used when
6334- # linking a shared library.
6335- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6336+if test "$GCC" = yes; then
6337+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6338
6339-else
6340- GXX=no
6341- with_gnu_ld=no
6342- wlarc=
6343+ _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6344+ lt_cv_prog_compiler_rtti_exceptions,
6345+ [-fno-rtti -fno-exceptions], [],
6346+ [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6347 fi
6348+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
6349+ [Compiler flag to turn off builtin functions])
6350+])# _LT_COMPILER_NO_RTTI
6351
6352-# PORTME: fill in a description of your system's C++ link characteristics
6353-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6354-_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6355-case $host_os in
6356- aix3*)
6357- # FIXME: insert proper C++ library support
6358- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6359- ;;
6360- aix[[4-9]]*)
6361- if test "$host_cpu" = ia64; then
6362- # On IA64, the linker does run time linking by default, so we don't
6363- # have to do anything special.
6364- aix_use_runtimelinking=no
6365- exp_sym_flag='-Bexport'
6366- no_entry_flag=""
6367- else
6368- aix_use_runtimelinking=no
6369
6370- # Test if we are trying to use run time linking or normal
6371- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6372- # need to do runtime linking.
6373- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6374- for ld_flag in $LDFLAGS; do
6375- case $ld_flag in
6376- *-brtl*)
6377- aix_use_runtimelinking=yes
6378- break
6379- ;;
6380- esac
6381- done
6382- ;;
6383- esac
6384+# _LT_CMD_GLOBAL_SYMBOLS
6385+# ----------------------
6386+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
6387+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6388+AC_REQUIRE([AC_PROG_CC])dnl
6389+AC_REQUIRE([LT_PATH_NM])dnl
6390+AC_REQUIRE([LT_PATH_LD])dnl
6391+m4_require([_LT_DECL_SED])dnl
6392+m4_require([_LT_DECL_EGREP])dnl
6393+m4_require([_LT_TAG_COMPILER])dnl
6394
6395- exp_sym_flag='-bexport'
6396- no_entry_flag='-bnoentry'
6397- fi
6398+# Check for command to grab the raw symbol name followed by C symbol from nm.
6399+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6400+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6401+[
6402+# These are sane defaults that work on at least a few old systems.
6403+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6404
6405- # When large executables or shared objects are built, AIX ld can
6406- # have problems creating the table of contents. If linking a library
6407- # or program results in "error TOC overflow" add -mminimal-toc to
6408- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6409- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6410-
6411- _LT_AC_TAGVAR(archive_cmds, $1)=''
6412- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6413- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6414- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6415+# Character class describing NM global symbol codes.
6416+symcode='[[BCDEGRST]]'
6417
6418- if test "$GXX" = yes; then
6419- case $host_os in aix4.[[012]]|aix4.[[012]].*)
6420- # We only want to do this on AIX 4.2 and lower, the check
6421- # below for broken collect2 doesn't work under 4.3+
6422- collect2name=`${CC} -print-prog-name=collect2`
6423- if test -f "$collect2name" && \
6424- strings "$collect2name" | grep resolve_lib_name >/dev/null
6425- then
6426- # We have reworked collect2
6427- :
6428- else
6429- # We have old collect2
6430- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6431- # It fails to find uninstalled libraries when the uninstalled
6432- # path is not listed in the libpath. Setting hardcode_minus_L
6433- # to unsupported forces relinking
6434- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6435- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6436- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6437- fi
6438- ;;
6439- esac
6440- shared_flag='-shared'
6441- if test "$aix_use_runtimelinking" = yes; then
6442- shared_flag="$shared_flag "'${wl}-G'
6443- fi
6444- else
6445- # not using gcc
6446- if test "$host_cpu" = ia64; then
6447- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6448- # chokes on -Wl,-G. The following line is correct:
6449- shared_flag='-G'
6450- else
6451- if test "$aix_use_runtimelinking" = yes; then
6452- shared_flag='${wl}-G'
6453- else
6454- shared_flag='${wl}-bM:SRE'
6455- fi
6456- fi
6457- fi
6458+# Regexp to match symbols that can be accessed directly from C.
6459+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6460
6141- # It seems that -bexpall does not export symbols beginning with6461- # It seems that -bexpall does not export symbols beginning with
6142- # underscore (_), so it is better to generate a list of symbols to export.6462- # underscore (_), so it is better to generate a list of symbols to export.
6143- _LT_AC_TAGVAR(always_export_symbols, $1)=yes6463- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
@@ -6148,10 +6468,41 @@
6148- # Determine the default libpath from the value encoded in an empty executable.6468- # Determine the default libpath from the value encoded in an empty executable.
6149- _LT_AC_SYS_LIBPATH_AIX6469- _LT_AC_SYS_LIBPATH_AIX
6150- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"6470- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6151+# Old name:6471+# Define system-specific variables.
6152+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])6472+case $host_os in
6153+dnl aclocal-1.4 backwards compatibility:6473+aix*)
6154+dnl AC_DEFUN([AC_CHECK_LIBM], [])6474+ symcode='[[BCDT]]'
6475+ ;;
6476+cygwin* | mingw* | pw32* | cegcc*)
6477+ symcode='[[ABCDGISTW]]'
6478+ ;;
6479+hpux*)
6480+ if test "$host_cpu" = ia64; then
6481+ symcode='[[ABCDEGRST]]'
6482+ fi
6483+ ;;
6484+irix* | nonstopux*)
6485+ symcode='[[BCDEGRST]]'
6486+ ;;
6487+osf*)
6488+ symcode='[[BCDEGQRST]]'
6489+ ;;
6490+solaris*)
6491+ symcode='[[BDRT]]'
6492+ ;;
6493+sco3.2v5*)
6494+ symcode='[[DT]]'
6495+ ;;
6496+sysv4.2uw2*)
6497+ symcode='[[DT]]'
6498+ ;;
6499+sysv5* | sco5v6* | unixware* | OpenUNIX*)
6500+ symcode='[[ABDT]]'
6501+ ;;
6502+sysv4)
6503+ symcode='[[DFNSTU]]'
6504+ ;;
6505+esac
6155 6506
6156- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"6507- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6157- else6508- else
@@ -6175,6 +6526,11 @@
6175- fi6526- fi
6176- fi6527- fi
6177- ;;6528- ;;
6529+# If we're using GNU nm, then use its standard symbol codes.
6530+case `$NM -V 2>&1` in
6531+*GNU* | *'with BFD'*)
6532+ symcode='[[ABCDGIRSTW]]' ;;
6533+esac
6178 6534
6179- beos*)6535- beos*)
6180- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then6536- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
@@ -6186,10 +6542,10 @@
6186- _LT_AC_TAGVAR(ld_shlibs, $1)=no6542- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6187- fi6543- fi
6188- ;;6544- ;;
6189+# _LT_COMPILER_NO_RTTI([TAGNAME])6545+# Transform an extracted symbol line into a proper C declaration.
6190+# -------------------------------6546+# Some systems (esp. on ia64) link data and code symbols differently,
6191+m4_defun([_LT_COMPILER_NO_RTTI],6547+# so use this general approach.
6192+[m4_require([_LT_TAG_COMPILER])dnl6548+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6193 6549
6194- chorus*)6550- chorus*)
6195- case $cc_basename in6551- case $cc_basename in
@@ -6199,7 +6555,9 @@
6199- ;;6555- ;;
6200- esac6556- esac
6201- ;;6557- ;;
6202+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=6558+# Transform an extracted symbol line into symbol name and symbol address
6559+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
6560+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6203 6561
6204- cygwin* | mingw* | pw32*)6562- cygwin* | mingw* | pw32*)
6205- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,6563- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
@@ -6223,7 +6581,12 @@
6223- else6581- else
6224- _LT_AC_TAGVAR(ld_shlibs, $1)=no6582- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6225- fi6583- fi
6226- ;;6584+# Handle CRLF in mingw tool chain
6585+opt_cr=
6586+case $build_os in
6587+mingw*)
6588+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6589 ;;
6227- darwin* | rhapsody*)6590- darwin* | rhapsody*)
6228- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no6591- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6229- _LT_AC_TAGVAR(hardcode_direct, $1)=no6592- _LT_AC_TAGVAR(hardcode_direct, $1)=no
@@ -6258,8 +6621,7 @@
6258- esac6621- esac
6259- fi6622- fi
6260- ;;6623- ;;
6261+if test "$GCC" = yes; then6624+esac
6262+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6263 6625
6264- dgux*)6626- dgux*)
6265- case $cc_basename in6627- case $cc_basename in
@@ -6321,51 +6683,281 @@
6321- *)6683- *)
6322- if test "$GXX" = yes; then6684- if test "$GXX" = yes; then
6323- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'6685- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6324- else6686+# Try without a prefix underscore, then with it.
6687+for ac_symprfx in "" "_"; do
6688+
6689+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6690+ symxfrm="\\1 $ac_symprfx\\2 \\2"
6691+
6692+ # Write the raw and C identifiers.
6693+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6694+ # Fake it for dumpbin and say T for any non-static function
6695+ # and D for any global variable.
6696+ # Also find C++ and __fastcall symbols from MSVC++,
6697+ # which start with @ or ?.
6698+ lt_cv_sys_global_symbol_pipe="$AWK ['"\
6699+" {last_section=section; section=\$ 3};"\
6700+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6701+" \$ 0!~/External *\|/{next};"\
6702+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6703+" {if(hide[section]) next};"\
6704+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6705+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6706+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6707+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6708+" ' prfx=^$ac_symprfx]"
6709+ else
6710+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6711+ fi
6712+
6713+ # Check to see that the pipe works correctly.
6714+ pipe_works=no
6715+
6716+ rm -f conftest*
6717+ cat > conftest.$ac_ext <<_LT_EOF
6718+#ifdef __cplusplus
6719+extern "C" {
6720+#endif
6721+char nm_test_var;
6722+void nm_test_func(void);
6723+void nm_test_func(void){}
6724+#ifdef __cplusplus
6725+}
6726+#endif
6727+int main(){nm_test_var='a';nm_test_func();return(0);}
6728+_LT_EOF
6729+
6730+ if AC_TRY_EVAL(ac_compile); then
6731+ # Now try to grab the symbols.
6732+ nlist=conftest.nm
6733+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6734+ # Try sorting and uniquifying the output.
6735+ if sort "$nlist" | uniq > "$nlist"T; then
6736+ mv -f "$nlist"T "$nlist"
6737 else
6325- # FIXME: insert proper C++ library support6738- # FIXME: insert proper C++ library support
6326- _LT_AC_TAGVAR(ld_shlibs, $1)=no6739- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6327- fi6740+ rm -f "$nlist"T
6328- ;;6741+ fi
6742+
6743+ # Make sure that we snagged all the symbols we need.
6744+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6745+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6746+ cat <<_LT_EOF > conftest.$ac_ext
6747+#ifdef __cplusplus
6748+extern "C" {
6749+#endif
6750+
6751+_LT_EOF
6752+ # Now generate the symbol file.
6753+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6754+
6755+ cat <<_LT_EOF >> conftest.$ac_ext
6756+
6757+/* The mapping between symbol names and symbols. */
6758+const struct {
6759+ const char *name;
6760+ void *address;
6761+}
6762+lt__PROGRAM__LTX_preloaded_symbols[[]] =
6763+{
6764+ { "@PROGRAM@", (void *) 0 },
6765+_LT_EOF
6766+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6767+ cat <<\_LT_EOF >> conftest.$ac_ext
6768+ {0, (void *) 0}
6769+};
6770+
6771+/* This works around a problem in FreeBSD linker */
6772+#ifdef FREEBSD_WORKAROUND
6773+static const void *lt_preloaded_setup() {
6774+ return lt__PROGRAM__LTX_preloaded_symbols;
6775+}
6776+#endif
6777+
6778+#ifdef __cplusplus
6779+}
6780+#endif
6781+_LT_EOF
6782+ # Now try linking the two files.
6783+ mv conftest.$ac_objext conftstm.$ac_objext
6784+ lt_save_LIBS="$LIBS"
6785+ lt_save_CFLAGS="$CFLAGS"
6786+ LIBS="conftstm.$ac_objext"
6787+ CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6788+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6789+ pipe_works=yes
6790+ fi
6791+ LIBS="$lt_save_LIBS"
6792+ CFLAGS="$lt_save_CFLAGS"
6793+ else
6794+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6795+ fi
6796+ else
6797+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6798+ fi
6799+ else
6800+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6801+ fi
6802+ else
6803+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6804+ cat conftest.$ac_ext >&5
6805+ fi
6806+ rm -rf conftest* conftst*
6807+
6808+ # Do not use the global_symbol_pipe unless it works.
6809+ if test "$pipe_works" = yes; then
6810+ break
6811+ else
6812+ lt_cv_sys_global_symbol_pipe=
6813+ fi
6814+done
6815+])
6816+if test -z "$lt_cv_sys_global_symbol_pipe"; then
6817+ lt_cv_sys_global_symbol_to_cdecl=
6818+fi
6819+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6820+ AC_MSG_RESULT(failed)
6821+else
6822+ AC_MSG_RESULT(ok)
6823+fi
6824+
6825+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
6826+ [Take the output of nm and produce a listing of raw symbols and C names])
6827+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
6828+ [Transform the output of nm in a proper C declaration])
6829+_LT_DECL([global_symbol_to_c_name_address],
6830+ [lt_cv_sys_global_symbol_to_c_name_address], [1],
6831+ [Transform the output of nm in a C name address pair])
6832+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
6833+ [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
6834+ [Transform the output of nm in a C name address pair when lib prefix is needed])
6835+]) # _LT_CMD_GLOBAL_SYMBOLS
6836+
6837+
6838+# _LT_COMPILER_PIC([TAGNAME])
6839+# ---------------------------
6840+m4_defun([_LT_COMPILER_PIC],
6841+[m4_require([_LT_TAG_COMPILER])dnl
6842+_LT_TAGVAR(lt_prog_compiler_wl, $1)=
6843+_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6844+_LT_TAGVAR(lt_prog_compiler_static, $1)=
6845+
6846+AC_MSG_CHECKING([for $compiler option to produce PIC])
6847+m4_if([$1], [CXX], [
6848+ # C++ specific cases for pic, static, wl, etc.
6849+ if test "$GXX" = yes; then
6850+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6851+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6852+
6853+ case $host_os in
6854+ aix*)
6855+ # All AIX code is PIC.
6856+ if test "$host_cpu" = ia64; then
6857+ # AIX 5 now supports IA64 processor
6858+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6859 fi
6860 ;;
6329- esac6861- esac
6330- ;;6862- ;;
6331- hpux10*|hpux11*)6863- hpux10*|hpux11*)
6332- if test $with_gnu_ld = no; then6864- if test $with_gnu_ld = no; then
6333- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'6865- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6334- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:6866- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6335+ _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6336+ lt_cv_prog_compiler_rtti_exceptions,
6337+ [-fno-rtti -fno-exceptions], [],
6338+ [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6339+fi
6340+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
6341+ [Compiler flag to turn off builtin functions])
6342+])# _LT_COMPILER_NO_RTTI
6343 6867
6344- case $host_cpu in6868+ amigaos*)
6869 case $host_cpu in
6345- hppa*64*|ia64*) ;;6870- hppa*64*|ia64*) ;;
6346- *)6871- *)
6347- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'6872- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6348- ;;6873+ powerpc)
6349- esac6874+ # see comment about AmigaOS4 .so support
6875+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6876+ ;;
6877+ m68k)
6878+ # FIXME: we need at least 68020 code to build shared libraries, but
6879+ # adding the `-m68020' flag to GCC prevents building anything better,
6880+ # like `-m68040'.
6881+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6882 ;;
6883 esac
6350- fi6884- fi
6351- case $host_cpu in6885- case $host_cpu in
6352- hppa*64*|ia64*)6886- hppa*64*|ia64*)
6353- _LT_AC_TAGVAR(hardcode_direct, $1)=no6887- _LT_AC_TAGVAR(hardcode_direct, $1)=no
6354- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no6888- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6355- ;;6889+ ;;
6356- *)6890+
6891+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6892+ # PIC is the default for these OSes.
6893+ ;;
6894+ mingw* | cygwin* | os2* | pw32* | cegcc*)
6895+ # This hack is so that the source file can tell whether it is being
6896+ # built for inclusion in a dll (and should export symbols for example).
6897+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
6898+ # (--disable-auto-import) libraries
6899+ m4_if([$1], [GCJ], [],
6900+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6901+ ;;
6902+ darwin* | rhapsody*)
6903+ # PIC is the default on this platform
6904+ # Common symbols not allowed in MH_DYLIB files
6905+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6906+ ;;
6907+ *djgpp*)
6908+ # DJGPP does not support shared libraries at all
6909+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6910+ ;;
6911+ interix[[3-9]]*)
6912+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6913+ # Instead, we relocate shared libraries at runtime.
6914+ ;;
6915+ sysv4*MP*)
6916+ if test -d /usr/nec; then
6917+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6918+ fi
6919+ ;;
6920+ hpux*)
6921+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6922+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6923+ # sets the default TLS model and affects inlining.
6924+ case $host_cpu in
6925+ hppa*64*)
6926+ ;;
6927+ *)
6928+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6929+ ;;
6930+ esac
6931+ ;;
6932+ *qnx* | *nto*)
6933+ # QNX uses GNU C++, but need to define -shared option too, otherwise
6934+ # it will coredump.
6935+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6936 ;;
6937 *)
6357- _LT_AC_TAGVAR(hardcode_direct, $1)=yes6938- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6358- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,6939- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6359- # but as the default6940- # but as the default
6360- # location of the library.6941- # location of the library.
6361- ;;6942+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6362- esac6943 ;;
6363 6944 esac
6945-
6364- case $cc_basename in6946- case $cc_basename in
6365- CC*)6947- CC*)
6366- # FIXME: insert proper C++ library support6948- # FIXME: insert proper C++ library support
6367- _LT_AC_TAGVAR(ld_shlibs, $1)=no6949- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6368- ;;6950+ else
6951+ case $host_os in
6952+ aix[[4-9]]*)
6953+ # All AIX code is PIC.
6954+ if test "$host_cpu" = ia64; then
6955+ # AIX 5 now supports IA64 processor
6956+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6957+ else
6958+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6959+ fi
6960 ;;
6369- aCC*)6961- aCC*)
6370- case $host_cpu in6962- case $host_cpu in
6371- hppa*64*)6963- hppa*64*)
@@ -6376,8 +6968,13 @@
6376- ;;6968- ;;
6377- *)6969- *)
6378- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6970- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6379- ;;6971+ chorus*)
6380- esac6972+ case $cc_basename in
6973+ cxch68*)
6974+ # Green Hills C++ Compiler
6975+ # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
6976 ;;
6977 esac
6381- # Commands to make compiler produce verbose output that lists6978- # Commands to make compiler produce verbose output that lists
6382- # what "hidden" libraries, object files and flags are used when6979- # what "hidden" libraries, object files and flags are used when
6383- # linking a shared library.6980- # linking a shared library.
@@ -6387,21 +6984,52 @@
6387- # from the output so that they don't get included in the library6984- # from the output so that they don't get included in the library
6388- # dependencies.6985- # dependencies.
6389- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'6986- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6390- ;;6987 ;;
6391- *)6988- *)
6392- if test "$GXX" = yes; then6989- if test "$GXX" = yes; then
6393- if test $with_gnu_ld = no; then6990- if test $with_gnu_ld = no; then
6394- case $host_cpu in6991+ dgux*)
6992+ case $cc_basename in
6993+ ec++*)
6994+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6995+ ;;
6996+ ghcx*)
6997+ # Green Hills C++ Compiler
6998+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6999+ ;;
7000+ *)
7001+ ;;
7002+ esac
7003+ ;;
7004+ freebsd* | dragonfly*)
7005+ # FreeBSD uses GNU C++
7006+ ;;
7007+ hpux9* | hpux10* | hpux11*)
7008+ case $cc_basename in
7009+ CC*)
7010+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7011+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7012+ if test "$host_cpu" != ia64; then
7013+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7014+ fi
7015+ ;;
7016+ aCC*)
7017+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7018+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7019 case $host_cpu in
6395- hppa*64*)7020- hppa*64*)
6396- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'7021- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6397- ;;7022- ;;
6398- ia64*)7023- ia64*)
6399- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'7024- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6400- ;;7025+ hppa*64*|ia64*)
6401- *)7026+ # +Z the default
7027 ;;
7028 *)
6402- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'7029- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6403- ;;7030+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6404- esac7031 ;;
7032 esac
6405- fi7033- fi
6406- else7034- else
6407- # FIXME: insert proper C++ library support7035- # FIXME: insert proper C++ library support
@@ -6496,7 +7124,10 @@
6496- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'7124- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6497- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'7125- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6498- ;;7126- ;;
6499- esac7127+ ;;
7128+ *)
7129+ ;;
7130 esac
6500- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no7131- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6501- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'7132- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6502- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'7133- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -6515,27 +7146,11 @@
6515- # Compaq C++7146- # Compaq C++
6516- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'7147- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6517- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'7148- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6518+# _LT_CMD_GLOBAL_SYMBOLS7149-
6519+# ----------------------
6520+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
6521+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6522+AC_REQUIRE([AC_PROG_CC])dnl
6523+AC_REQUIRE([LT_PATH_NM])dnl
6524+AC_REQUIRE([LT_PATH_LD])dnl
6525+m4_require([_LT_DECL_SED])dnl
6526+m4_require([_LT_DECL_EGREP])dnl
6527+m4_require([_LT_TAG_COMPILER])dnl
6528
6529- runpath_var=LD_RUN_PATH7150- runpath_var=LD_RUN_PATH
6530- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'7151- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6531- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:7152- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6532+# Check for command to grab the raw symbol name followed by C symbol from nm.7153-
6533+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6534+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6535+[
6536+# These are sane defaults that work on at least a few old systems.
6537+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6538
6539- # Commands to make compiler produce verbose output that lists7154- # Commands to make compiler produce verbose output that lists
6540- # what "hidden" libraries, object files and flags are used when7155- # what "hidden" libraries, object files and flags are used when
6541- # linking a shared library.7156- # linking a shared library.
@@ -6545,7 +7160,7 @@
6545- # from the output so that they don't get included in the library7160- # from the output so that they don't get included in the library
6546- # dependencies.7161- # dependencies.
6547- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'7162- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6548- ;;7163 ;;
6549- *)7164- *)
6550- case `$CC -V 2>&1 | sed 5q` in7165- case `$CC -V 2>&1 | sed 5q` in
6551- *Sun\ C*)7166- *Sun\ C*)
@@ -6568,7 +7183,10 @@
6568- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'7183- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6569- ;;7184- ;;
6570- esac7185- esac
6571- ;;7186+ interix*)
7187+ # This is c89, which is MS Visual C++ (no shared libs)
7188+ # Anyone wants to do a port?
7189 ;;
6572- esac7190- esac
6573- ;;7191- ;;
6574- lynxos*)7192- lynxos*)
@@ -6584,11 +7202,71 @@
6584- cxx*)7202- cxx*)
6585- # FIXME: insert proper C++ library support7203- # FIXME: insert proper C++ library support
6586- _LT_AC_TAGVAR(ld_shlibs, $1)=no7204- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6587- ;;7205+ irix5* | irix6* | nonstopux*)
7206+ case $cc_basename in
7207+ CC*)
7208+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7209+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7210+ # CC pic flag -KPIC is the default.
7211+ ;;
7212+ *)
7213+ ;;
7214+ esac
7215 ;;
6588- *)7216- *)
6589- # FIXME: insert proper C++ library support7217- # FIXME: insert proper C++ library support
6590- _LT_AC_TAGVAR(ld_shlibs, $1)=no7218- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6591- ;;7219+ linux* | k*bsd*-gnu)
7220+ case $cc_basename in
7221+ KCC*)
7222+ # KAI C++ Compiler
7223+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7224+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7225+ ;;
7226+ ecpc* )
7227+ # old Intel C++ for x86_64 which still supported -KPIC.
7228+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7229+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7230+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7231+ ;;
7232+ icpc* )
7233+ # Intel C++, used to be incompatible with GCC.
7234+ # ICC 10 doesn't accept -KPIC any more.
7235+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7236+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7237+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7238+ ;;
7239+ pgCC* | pgcpp*)
7240+ # Portland Group C++ compiler
7241+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7242+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7243+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7244+ ;;
7245+ cxx*)
7246+ # Compaq C++
7247+ # Make sure the PIC flag is empty. It appears that all Alpha
7248+ # Linux and Compaq Tru64 Unix objects are PIC.
7249+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7250+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7251+ ;;
7252+ xlc* | xlC*)
7253+ # IBM XL 8.0 on PPC
7254+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7255+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
7256+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7257+ ;;
7258+ *)
7259+ case `$CC -V 2>&1 | sed 5q` in
7260+ *Sun\ C*)
7261+ # Sun C++ 5.9
7262+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7263+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7264+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7265+ ;;
7266+ esac
7267+ ;;
7268+ esac
7269 ;;
6592- esac7270- esac
6593- ;;7271- ;;
6594- netbsd*)7272- netbsd*)
@@ -6661,7 +7339,8 @@
6661- # from the output so that they don't get included in the library7339- # from the output so that they don't get included in the library
6662- # dependencies.7340- # dependencies.
6663- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'7341- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6664- ;;7342+ lynxos*)
7343 ;;
6665- *)7344- *)
6666- if test "$GXX" = yes && test "$with_gnu_ld" = no; then7345- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6667- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'7346- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
@@ -6674,14 +7353,13 @@
6674- # what "hidden" libraries, object files and flags are used when7353- # what "hidden" libraries, object files and flags are used when
6675- # linking a shared library.7354- # linking a shared library.
6676- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'7355- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6677+# Character class describing NM global symbol codes.7356-
6678+symcode='[[BCDEGRST]]'
6679
6680- else7357- else
6681- # FIXME: insert proper C++ library support7358- # FIXME: insert proper C++ library support
6682- _LT_AC_TAGVAR(ld_shlibs, $1)=no7359- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6683- fi7360- fi
6684- ;;7361+ m88k*)
7362 ;;
6685- esac7363- esac
6686- ;;7364- ;;
6687- osf4* | osf5*)7365- osf4* | osf5*)
@@ -6726,7 +7404,15 @@
6726- # from the output so that they don't get included in the library7404- # from the output so that they don't get included in the library
6727- # dependencies.7405- # dependencies.
6728- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'7406- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6729- ;;7407+ mvs*)
7408+ case $cc_basename in
7409+ cxx*)
7410+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
7411+ ;;
7412+ *)
7413+ ;;
7414+ esac
7415 ;;
6730- *)7416- *)
6731- if test "$GXX" = yes && test "$with_gnu_ld" = no; then7417- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6732- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'7418- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
@@ -6739,14 +7425,13 @@
6739- # what "hidden" libraries, object files and flags are used when7425- # what "hidden" libraries, object files and flags are used when
6740- # linking a shared library.7426- # linking a shared library.
6741- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'7427- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6742+# Regexp to match symbols that can be accessed directly from C.7428-
6743+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6744
6745- else7429- else
6746- # FIXME: insert proper C++ library support7430- # FIXME: insert proper C++ library support
6747- _LT_AC_TAGVAR(ld_shlibs, $1)=no7431- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6748- fi7432- fi
6749- ;;7433+ netbsd* | netbsdelf*-gnu)
7434 ;;
6750- esac7435- esac
6751- ;;7436- ;;
6752- psos*)7437- psos*)
@@ -6764,11 +7449,37 @@
6764- # Lucid7449- # Lucid
6765- # FIXME: insert proper C++ library support7450- # FIXME: insert proper C++ library support
6766- _LT_AC_TAGVAR(ld_shlibs, $1)=no7451- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6767- ;;7452+ *qnx* | *nto*)
7453+ # QNX uses GNU C++, but need to define -shared option too, otherwise
7454+ # it will coredump.
7455+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7456+ ;;
7457+ osf3* | osf4* | osf5*)
7458+ case $cc_basename in
7459+ KCC*)
7460+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7461+ ;;
7462+ RCC*)
7463+ # Rational C++ 2.4.1
7464+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7465+ ;;
7466+ cxx*)
7467+ # Digital/Compaq C++
7468+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7469+ # Make sure the PIC flag is empty. It appears that all Alpha
7470+ # Linux and Compaq Tru64 Unix objects are PIC.
7471+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7472+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7473+ ;;
7474+ *)
7475+ ;;
7476+ esac
7477 ;;
6768- *)7478- *)
6769- # FIXME: insert proper C++ library support7479- # FIXME: insert proper C++ library support
6770- _LT_AC_TAGVAR(ld_shlibs, $1)=no7480- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6771- ;;7481+ psos*)
7482 ;;
6772- esac7483- esac
6773- ;;7484- ;;
6774- solaris*)7485- solaris*)
@@ -6785,57 +7496,29 @@
6785- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no7496- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6786- case $host_os in7497- case $host_os in
6787- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;7498- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6788- *)7499+ solaris*)
7500+ case $cc_basename in
7501+ CC*)
7502+ # Sun C++ 4.2, 5.x and Centerline C++
7503+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7504+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7505+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7506+ ;;
7507+ gcx*)
7508+ # Green Hills C++ Compiler
7509+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7510+ ;;
7511 *)
6789- # The compiler driver will combine and reorder linker options,7512- # The compiler driver will combine and reorder linker options,
6790- # but understands `-z linker_flag'.7513- # but understands `-z linker_flag'.
6791- # Supported since Solaris 2.6 (maybe 2.5.1?)7514- # Supported since Solaris 2.6 (maybe 2.5.1?)
6792- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'7515- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6793- ;;7516 ;;
6794- esac7517 esac
6795- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes7518- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6796+# Define system-specific variables.7519-
6797+case $host_os in
6798+aix*)
6799+ symcode='[[BCDT]]'
6800+ ;;
6801+cygwin* | mingw* | pw32* | cegcc*)
6802+ symcode='[[ABCDGISTW]]'
6803+ ;;
6804+hpux*)
6805+ if test "$host_cpu" = ia64; then
6806+ symcode='[[ABCDEGRST]]'
6807+ fi
6808+ ;;
6809+irix* | nonstopux*)
6810+ symcode='[[BCDEGRST]]'
6811+ ;;
6812+osf*)
6813+ symcode='[[BCDEGQRST]]'
6814+ ;;
6815+solaris*)
6816+ symcode='[[BDRT]]'
6817+ ;;
6818+sco3.2v5*)
6819+ symcode='[[DT]]'
6820+ ;;
6821+sysv4.2uw2*)
6822+ symcode='[[DT]]'
6823+ ;;
6824+sysv5* | sco5v6* | unixware* | OpenUNIX*)
6825+ symcode='[[ABDT]]'
6826+ ;;
6827+sysv4)
6828+ symcode='[[DFNSTU]]'
6829+ ;;
6830+esac
6831
6832- output_verbose_link_cmd='echo'7520- output_verbose_link_cmd='echo'
6833+# If we're using GNU nm, then use its standard symbol codes.7521-
6834+case `$NM -V 2>&1` in
6835+*GNU* | *'with BFD'*)
6836+ symcode='[[ABCDGIRSTW]]' ;;
6837+esac
6838
6839- # Archives containing C++ object files must be created using7522- # Archives containing C++ object files must be created using
6840- # "CC -xar", where "CC" is the Sun C++ compiler. This is7523- # "CC -xar", where "CC" is the Sun C++ compiler. This is
6841- # necessary to make sure instantiated templates are included7524- # necessary to make sure instantiated templates are included
@@ -6845,14 +7528,10 @@
6845- gcx*)7528- gcx*)
6846- # Green Hills C++ Compiler7529- # Green Hills C++ Compiler
6847- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'7530- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6848+# Transform an extracted symbol line into a proper C declaration.7531-
6849+# Some systems (esp. on ia64) link data and code symbols differently,
6850+# so use this general approach.
6851+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6852
6853- # The C++ compiler must be used to create the archive.7532- # The C++ compiler must be used to create the archive.
6854- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'7533- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6855- ;;7534 ;;
6856- *)7535- *)
6857- # GNU C++ compiler with Solaris linker7536- # GNU C++ compiler with Solaris linker
6858- if test "$GXX" = yes && test "$with_gnu_ld" = no; then7537- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
@@ -6861,10 +7540,7 @@
6861- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'7540- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6862- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~7541- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6863- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'7542- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6864+# Transform an extracted symbol line into symbol name and symbol address7543-
6865+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
6866+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6867
6868- # Commands to make compiler produce verbose output that lists7544- # Commands to make compiler produce verbose output that lists
6869- # what "hidden" libraries, object files and flags are used when7545- # what "hidden" libraries, object files and flags are used when
6870- # linking a shared library.7546- # linking a shared library.
@@ -6875,28 +7551,30 @@
6875- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'7551- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6876- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~7552- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6877- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'7553- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6878+# Handle CRLF in mingw tool chain7554-
6879+opt_cr=
6880+case $build_os in
6881+mingw*)
6882+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6883+ ;;
6884+esac
6885
6886- # Commands to make compiler produce verbose output that lists7555- # Commands to make compiler produce verbose output that lists
6887- # what "hidden" libraries, object files and flags are used when7556- # what "hidden" libraries, object files and flags are used when
6888- # linking a shared library.7557- # linking a shared library.
6889- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""7558- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6890- fi7559- fi
6891+# Try without a prefix underscore, then with it.7560-
6892+for ac_symprfx in "" "_"; do
6893
6894- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'7561- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6895- case $host_os in7562- case $host_os in
6896- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;7563- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6897- *)7564+ sunos4*)
7565+ case $cc_basename in
7566+ CC*)
7567+ # Sun C++ 4.x
7568+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7569+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7570+ ;;
7571+ lcc*)
7572+ # Lucid
7573+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7574+ ;;
7575 *)
6898- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'7576- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6899- ;;7577 ;;
6900- esac7578- esac
6901- fi7579- fi
6902- ;;7580- ;;
@@ -6916,7 +7594,8 @@
6916- *)7594- *)
6917- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7595- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6918- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7596- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6919- ;;7597+ esac
7598 ;;
6920- esac7599- esac
6921- ;;7600- ;;
6922- sysv5* | sco3.2v5* | sco5v6*)7601- sysv5* | sco3.2v5* | sco5v6*)
@@ -6949,11 +7628,28 @@
6949- CC*)7628- CC*)
6950- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'7629- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6951- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'7630- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6952- ;;7631+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7632+ case $cc_basename in
7633+ CC*)
7634+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7635+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7636+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7637+ ;;
7638+ esac
7639 ;;
6953- *)7640- *)
6954- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'7641- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6955- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'7642- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6956- ;;7643+ tandem*)
7644+ case $cc_basename in
7645+ NCC*)
7646+ # NonStop-UX NCC 3.20
7647+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7648+ ;;
7649+ *)
7650+ ;;
7651+ esac
7652 ;;
6957- esac7653- esac
6958- ;;7654- ;;
6959- tandem*)7655- tandem*)
@@ -6962,12 +7658,14 @@
6962- # NonStop-UX NCC 3.207658- # NonStop-UX NCC 3.20
6963- # FIXME: insert proper C++ library support7659- # FIXME: insert proper C++ library support
6964- _LT_AC_TAGVAR(ld_shlibs, $1)=no7660- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6965- ;;7661+ vxworks*)
6966- *)7662 ;;
7663 *)
6967- # FIXME: insert proper C++ library support7664- # FIXME: insert proper C++ library support
6968- _LT_AC_TAGVAR(ld_shlibs, $1)=no7665- _LT_AC_TAGVAR(ld_shlibs, $1)=no
6969- ;;7666+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6970- esac7667 ;;
7668 esac
6971- ;;7669- ;;
6972- vxworks*)7670- vxworks*)
6973- # FIXME: insert proper C++ library support7671- # FIXME: insert proper C++ library support
@@ -6980,31 +7678,15 @@
6980-esac7678-esac
6981-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])7679-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6982-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no7680-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6983+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.7681-
6984+ symxfrm="\\1 $ac_symprfx\\2 \\2"
6985
6986-_LT_AC_TAGVAR(GCC, $1)="$GXX"7682-_LT_AC_TAGVAR(GCC, $1)="$GXX"
6987-_LT_AC_TAGVAR(LD, $1)="$LD"7683-_LT_AC_TAGVAR(LD, $1)="$LD"
6988+ # Write the raw and C identifiers.
6989+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6990+ # Fake it for dumpbin and say T for any non-static function
6991+ # and D for any global variable.
6992+ # Also find C++ and __fastcall symbols from MSVC++,
6993+ # which start with @ or ?.
6994+ lt_cv_sys_global_symbol_pipe="$AWK ['"\
6995+" {last_section=section; section=\$ 3};"\
6996+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6997+" \$ 0!~/External *\|/{next};"\
6998+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6999+" {if(hide[section]) next};"\
7000+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7001+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7002+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7003+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7004+" ' prfx=^$ac_symprfx]"
7005+ else
7006+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7007+ fi7684+ fi
7685+],
7686+[
7687+ if test "$GCC" = yes; then
7688+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7689+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7008 7690
7009-AC_LIBTOOL_POSTDEP_PREDEP($1)7691-AC_LIBTOOL_POSTDEP_PREDEP($1)
7010-AC_LIBTOOL_PROG_COMPILER_PIC($1)7692-AC_LIBTOOL_PROG_COMPILER_PIC($1)
@@ -7013,23 +7695,30 @@
7013-AC_LIBTOOL_PROG_LD_SHLIBS($1)7695-AC_LIBTOOL_PROG_LD_SHLIBS($1)
7014-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)7696-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7015-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)7697-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7016+ # Check to see that the pipe works correctly.7698+ case $host_os in
7017+ pipe_works=no7699+ aix*)
7700+ # All AIX code is PIC.
7701+ if test "$host_cpu" = ia64; then
7702+ # AIX 5 now supports IA64 processor
7703+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7704+ fi
7705+ ;;
7018 7706
7019-AC_LIBTOOL_CONFIG($1)7707-AC_LIBTOOL_CONFIG($1)
7020+ rm -f conftest*7708+ amigaos*)
7021+ cat > conftest.$ac_ext <<_LT_EOF7709+ case $host_cpu in
7022+#ifdef __cplusplus7710+ powerpc)
7023+extern "C" {7711+ # see comment about AmigaOS4 .so support
7024+#endif7712+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7025+char nm_test_var;7713+ ;;
7026+void nm_test_func(void);7714+ m68k)
7027+void nm_test_func(void){}7715+ # FIXME: we need at least 68020 code to build shared libraries, but
7028+#ifdef __cplusplus7716+ # adding the `-m68020' flag to GCC prevents building anything better,
7029+}7717+ # like `-m68040'.
7030+#endif7718+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7031+int main(){nm_test_var='a';nm_test_func();return(0);}7719+ ;;
7032+_LT_EOF7720+ esac
7721+ ;;
7033 7722
7034-AC_LANG_POP7723-AC_LANG_POP
7035-CC=$lt_save_CC7724-CC=$lt_save_CC
@@ -7043,16 +7732,9 @@
7043-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld7732-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7044-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld7733-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7045-])# AC_LIBTOOL_LANG_CXX_CONFIG7734-])# AC_LIBTOOL_LANG_CXX_CONFIG
7046+ if AC_TRY_EVAL(ac_compile); then7735+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7047+ # Now try to grab the symbols.7736+ # PIC is the default for these OSes.
7048+ nlist=conftest.nm7737+ ;;
7049+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
7050+ # Try sorting and uniquifying the output.
7051+ if sort "$nlist" | uniq > "$nlist"T; then
7052+ mv -f "$nlist"T "$nlist"
7053+ else
7054+ rm -f "$nlist"T
7055+ fi
7056 7738
7057-# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])7739-# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
7058-# ------------------------------------7740-# ------------------------------------
@@ -7102,42 +7784,48 @@
7102-if AC_TRY_EVAL(ac_compile); then7784-if AC_TRY_EVAL(ac_compile); then
7103- # Parse the compiler output and extract the necessary7785- # Parse the compiler output and extract the necessary
7104- # objects, libraries and library flags.7786- # objects, libraries and library flags.
7105+ # Make sure that we snagged all the symbols we need.7787+ mingw* | cygwin* | pw32* | os2* | cegcc*)
7106+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then7788+ # This hack is so that the source file can tell whether it is being
7107+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then7789+ # built for inclusion in a dll (and should export symbols for example).
7108+ cat <<_LT_EOF > conftest.$ac_ext7790+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
7109+#ifdef __cplusplus7791+ # (--disable-auto-import) libraries
7110+extern "C" {7792+ m4_if([$1], [GCJ], [],
7111+#endif7793+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7794+ ;;
7112 7795
7113- # Sentinel used to keep track of whether or not we are before7796- # Sentinel used to keep track of whether or not we are before
7114- # the conftest object file.7797- # the conftest object file.
7115- pre_test_object_deps_done=no7798- pre_test_object_deps_done=no
7116+_LT_EOF7799+ darwin* | rhapsody*)
7117+ # Now generate the symbol file.7800+ # PIC is the default on this platform
7118+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'7801+ # Common symbols not allowed in MH_DYLIB files
7802+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7803+ ;;
7119 7804
7120- # The `*' in the case matches for architectures that use `case' in7805- # The `*' in the case matches for architectures that use `case' in
7121- # $output_verbose_cmd can trigger glob expansion during the loop7806- # $output_verbose_cmd can trigger glob expansion during the loop
7122- # eval without this substitution.7807- # eval without this substitution.
7123- output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`7808- output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
7124+ cat <<_LT_EOF >> conftest.$ac_ext7809+ hpux*)
7810+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7811+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7812+ # sets the default TLS model and affects inlining.
7813+ case $host_cpu in
7814+ hppa*64*)
7815+ # +Z the default
7816+ ;;
7817+ *)
7818+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7819+ ;;
7820+ esac
7821+ ;;
7125 7822
7126- for p in `eval $output_verbose_link_cmd`; do7823- for p in `eval $output_verbose_link_cmd`; do
7127- case $p in7824- case $p in
7128+/* The mapping between symbol names and symbols. */7825+ interix[[3-9]]*)
7129+const struct {7826+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7130+ const char *name;7827+ # Instead, we relocate shared libraries at runtime.
7131+ void *address;7828+ ;;
7132+}
7133+lt__PROGRAM__LTX_preloaded_symbols[[]] =
7134+{
7135+ { "@PROGRAM@", (void *) 0 },
7136+_LT_EOF
7137+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7138+ cat <<\_LT_EOF >> conftest.$ac_ext
7139+ {0, (void *) 0}
7140+};
7141 7829
7142- -L* | -R* | -l*)7830- -L* | -R* | -l*)
7143- # Some compilers place space between "-{L,R}" and the path.7831- # Some compilers place space between "-{L,R}" and the path.
@@ -7149,12 +7837,12 @@
7149- else7837- else
7150- prev=7838- prev=
7151- fi7839- fi
7152+/* This works around a problem in FreeBSD linker */7840+ msdosdjgpp*)
7153+#ifdef FREEBSD_WORKAROUND7841+ # Just because we use GCC doesn't mean we suddenly get shared libraries
7154+static const void *lt_preloaded_setup() {7842+ # on systems that don't support them.
7155+ return lt__PROGRAM__LTX_preloaded_symbols;7843+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7156+}7844+ enable_shared=no
7157+#endif7845+ ;;
7158 7846
7159- if test "$pre_test_object_deps_done" = no; then7847- if test "$pre_test_object_deps_done" = no; then
7160- case $p in7848- case $p in
@@ -7179,7 +7867,12 @@
7179- fi7867- fi
7180- fi7868- fi
7181- ;;7869- ;;
7182-7870+ *nto* | *qnx*)
7871+ # QNX uses GNU C++, but need to define -shared option too, otherwise
7872+ # it will coredump.
7873+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7874+ ;;
7875
7183- *.$objext)7876- *.$objext)
7184- # This assumes that the test object file only shows up7877- # This assumes that the test object file only shows up
7185- # once in the compiler output.7878- # once in the compiler output.
@@ -7204,76 +7897,42 @@
7204- ;;7897- ;;
7205-7898-
7206- *) ;; # Ignore the rest.7899- *) ;; # Ignore the rest.
7207-7900+ sysv4*MP*)
7208- esac7901+ if test -d /usr/nec; then
7209- done7902+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7210+#ifdef __cplusplus
7211+}
7212+#endif
7213+_LT_EOF
7214+ # Now try linking the two files.
7215+ mv conftest.$ac_objext conftstm.$ac_objext
7216+ lt_save_LIBS="$LIBS"
7217+ lt_save_CFLAGS="$CFLAGS"
7218+ LIBS="conftstm.$ac_objext"
7219+ CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
7220+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
7221+ pipe_works=yes
7222+ fi
7223+ LIBS="$lt_save_LIBS"
7224+ CFLAGS="$lt_save_CFLAGS"
7225+ else
7226+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
7227+ fi
7228+ else
7229+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
7230+ fi7903+ fi
7231+ else7904+ ;;
7232+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
7233+ fi
7234+ else
7235+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
7236+ cat conftest.$ac_ext >&5
7237+ fi
7238+ rm -rf conftest* conftst*
7239 7905
7906+ *)
7907+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7908+ ;;
7909 esac
7910- done
7911-
7240- # Clean up.7912- # Clean up.
7241- rm -f a.out a.exe7913- rm -f a.out a.exe
7242+ # Do not use the global_symbol_pipe unless it works.7914-else
7243+ if test "$pipe_works" = yes; then
7244+ break
7245+ else
7246+ lt_cv_sys_global_symbol_pipe=
7247+ fi
7248+done
7249+])
7250+if test -z "$lt_cv_sys_global_symbol_pipe"; then
7251+ lt_cv_sys_global_symbol_to_cdecl=
7252+fi
7253+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7254+ AC_MSG_RESULT(failed)
7255 else
7256- echo "libtool.m4: error: problem compiling $1 test program"7915- echo "libtool.m4: error: problem compiling $1 test program"
7257+ AC_MSG_RESULT(ok)7916-fi
7258 fi7917-
7259
7260-$rm -f confest.$objext7918-$rm -f confest.$objext
7261+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],7919-
7262+ [Take the output of nm and produce a listing of raw symbols and C names])
7263+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
7264+ [Transform the output of nm in a proper C declaration])
7265+_LT_DECL([global_symbol_to_c_name_address],
7266+ [lt_cv_sys_global_symbol_to_c_name_address], [1],
7267+ [Transform the output of nm in a C name address pair])
7268+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
7269+ [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
7270+ [Transform the output of nm in a C name address pair when lib prefix is needed])
7271+]) # _LT_CMD_GLOBAL_SYMBOLS
7272
7273-_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=7920-_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
7274-if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then7921-if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
7275- _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`7922- _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7276-fi7923-fi
7924+ else
7925+ # PORTME Check for flag to pass linker flags through the system compiler.
7926+ case $host_os in
7927+ aix*)
7928+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7929+ if test "$host_cpu" = ia64; then
7930+ # AIX 5 now supports IA64 processor
7931+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7932+ else
7933+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7934+ fi
7935+ ;;
7277 7936
7278-# PORTME: override above test on systems where it is broken7937-# PORTME: override above test on systems where it is broken
7279-ifelse([$1],[CXX],7938-ifelse([$1],[CXX],
@@ -7285,13 +7944,12 @@
7285- _LT_AC_TAGVAR(postdep_objects,$1)=7944- _LT_AC_TAGVAR(postdep_objects,$1)=
7286- _LT_AC_TAGVAR(postdeps,$1)=7945- _LT_AC_TAGVAR(postdeps,$1)=
7287- ;;7946- ;;
7288+# _LT_COMPILER_PIC([TAGNAME])7947+ mingw* | cygwin* | pw32* | os2* | cegcc*)
7289+# ---------------------------7948+ # This hack is so that the source file can tell whether it is being
7290+m4_defun([_LT_COMPILER_PIC],7949+ # built for inclusion in a dll (and should export symbols for example).
7291+[m4_require([_LT_TAG_COMPILER])dnl7950+ m4_if([$1], [GCJ], [],
7292+_LT_TAGVAR(lt_prog_compiler_wl, $1)=7951+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7293+_LT_TAGVAR(lt_prog_compiler_pic, $1)=7952+ ;;
7294+_LT_TAGVAR(lt_prog_compiler_static, $1)=
7295 7953
7296-linux*)7954-linux*)
7297- case `$CC -V 2>&1 | sed 5q` in7955- case `$CC -V 2>&1 | sed 5q` in
@@ -7305,7 +7963,21 @@
7305- case " $CXX $CXXFLAGS " in7963- case " $CXX $CXXFLAGS " in
7306- *" -library=stlport4 "*)7964- *" -library=stlport4 "*)
7307- solaris_use_stlport4=yes7965- solaris_use_stlport4=yes
7308- ;;7966+ hpux9* | hpux10* | hpux11*)
7967+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7968+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7969+ # not for PA HP-UX.
7970+ case $host_cpu in
7971+ hppa*64*|ia64*)
7972+ # +Z the default
7973+ ;;
7974+ *)
7975+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7976+ ;;
7977+ esac
7978+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
7979+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7980 ;;
7309- esac7981- esac
7310- if test "$solaris_use_stlport4" != yes; then7982- if test "$solaris_use_stlport4" != yes; then
7311- _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'7983- _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
@@ -7313,12 +7985,6 @@
7313- ;;7985- ;;
7314- esac7986- esac
7315- ;;7987- ;;
7316+AC_MSG_CHECKING([for $compiler option to produce PIC])
7317+m4_if([$1], [CXX], [
7318+ # C++ specific cases for pic, static, wl, etc.
7319+ if test "$GXX" = yes; then
7320+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7321+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7322 7988
7323-solaris*)7989-solaris*)
7324- case $cc_basename in7990- case $cc_basename in
@@ -7330,16 +7996,13 @@
7330- case " $CXX $CXXFLAGS " in7996- case " $CXX $CXXFLAGS " in
7331- *" -library=stlport4 "*)7997- *" -library=stlport4 "*)
7332- solaris_use_stlport4=yes7998- solaris_use_stlport4=yes
7333+ case $host_os in7999+ irix5* | irix6* | nonstopux*)
7334+ aix*)8000+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7335+ # All AIX code is PIC.8001+ # PIC (with -KPIC) is the default.
7336+ if test "$host_cpu" = ia64; then8002+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7337+ # AIX 5 now supports IA64 processor
7338+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7339+ fi
7340 ;;8003 ;;
7341- esac8004- esac
7342-8005
7343- # Adding this requires a known-good setup of shared libraries for8006- # Adding this requires a known-good setup of shared libraries for
7344- # Sun compiler versions before 5.6, else PIC objects from an old8007- # Sun compiler versions before 5.6, else PIC objects from an old
7345- # archive will be linked into the output, leading to subtle bugs.8008- # archive will be linked into the output, leading to subtle bugs.
@@ -7355,730 +8018,6 @@
7355-*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;8018-*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7356-esac8019-esac
7357-])# AC_LIBTOOL_POSTDEP_PREDEP8020-])# AC_LIBTOOL_POSTDEP_PREDEP
7358-
7359-# AC_LIBTOOL_LANG_F77_CONFIG
7360-# --------------------------
7361-# Ensure that the configuration vars for the C compiler are
7362-# suitably defined. Those variables are subsequently used by
7363-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7364-AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
7365-AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
7366-[AC_REQUIRE([AC_PROG_F77])
7367-AC_LANG_PUSH(Fortran 77)
7368-
7369-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7370-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7371-_LT_AC_TAGVAR(always_export_symbols, $1)=no
7372-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7373-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7374-_LT_AC_TAGVAR(hardcode_direct, $1)=no
7375-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7376-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7377-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7378-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7379-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7380-_LT_AC_TAGVAR(module_cmds, $1)=
7381-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7382-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7383-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7384-_LT_AC_TAGVAR(no_undefined_flag, $1)=
7385-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7386-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7387-
7388-# Source file extension for f77 test sources.
7389-ac_ext=f
7390-
7391-# Object file extension for compiled f77 test sources.
7392-objext=o
7393-_LT_AC_TAGVAR(objext, $1)=$objext
7394-
7395-# Code to be used in simple compile tests
7396-lt_simple_compile_test_code="\
7397- subroutine t
7398- return
7399- end
7400-"
7401-
7402-# Code to be used in simple link tests
7403-lt_simple_link_test_code="\
7404- program t
7405- end
7406-"
7407-
7408-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7409-_LT_AC_SYS_COMPILER
7410-
7411-# save warnings/boilerplate of simple test code
7412-_LT_COMPILER_BOILERPLATE
7413-_LT_LINKER_BOILERPLATE
7414-
7415-# Allow CC to be a program name with arguments.
7416-lt_save_CC="$CC"
7417-CC=${F77-"f77"}
7418-compiler=$CC
7419-_LT_AC_TAGVAR(compiler, $1)=$CC
7420-_LT_CC_BASENAME([$compiler])
7421-
7422-AC_MSG_CHECKING([if libtool supports shared libraries])
7423-AC_MSG_RESULT([$can_build_shared])
7424-
7425-AC_MSG_CHECKING([whether to build shared libraries])
7426-test "$can_build_shared" = "no" && enable_shared=no
7427-
7428-# On AIX, shared libraries and static libraries use the same namespace, and
7429-# are all built from PIC.
7430-case $host_os in
7431-aix3*)
7432- test "$enable_shared" = yes && enable_static=no
7433- if test -n "$RANLIB"; then
7434- archive_cmds="$archive_cmds~\$RANLIB \$lib"
7435- postinstall_cmds='$RANLIB $lib'
7436- fi
7437- ;;
7438-aix[[4-9]]*)
7439- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7440- test "$enable_shared" = yes && enable_static=no
7441- fi
7442- ;;
7443-esac
7444-AC_MSG_RESULT([$enable_shared])
7445-
7446-AC_MSG_CHECKING([whether to build static libraries])
7447-# Make sure either enable_shared or enable_static is yes.
7448-test "$enable_shared" = yes || enable_static=yes
7449-AC_MSG_RESULT([$enable_static])
7450-
7451-_LT_AC_TAGVAR(GCC, $1)="$G77"
7452-_LT_AC_TAGVAR(LD, $1)="$LD"
7453-
7454-AC_LIBTOOL_PROG_COMPILER_PIC($1)
7455-AC_LIBTOOL_PROG_CC_C_O($1)
7456-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7457-AC_LIBTOOL_PROG_LD_SHLIBS($1)
7458-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7459-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7460-
7461-AC_LIBTOOL_CONFIG($1)
7462-
7463-AC_LANG_POP
7464-CC="$lt_save_CC"
7465-])# AC_LIBTOOL_LANG_F77_CONFIG
7466-
7467-
7468-# AC_LIBTOOL_LANG_GCJ_CONFIG
7469-# --------------------------
7470-# Ensure that the configuration vars for the C compiler are
7471-# suitably defined. Those variables are subsequently used by
7472-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7473-AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
7474-AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
7475-[AC_LANG_SAVE
7476-
7477-# Source file extension for Java test sources.
7478-ac_ext=java
7479-
7480-# Object file extension for compiled Java test sources.
7481-objext=o
7482-_LT_AC_TAGVAR(objext, $1)=$objext
7483-
7484-# Code to be used in simple compile tests
7485-lt_simple_compile_test_code="class foo {}"
7486-
7487-# Code to be used in simple link tests
7488-lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7489-
7490-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7491-_LT_AC_SYS_COMPILER
7492-
7493-# save warnings/boilerplate of simple test code
7494-_LT_COMPILER_BOILERPLATE
7495-_LT_LINKER_BOILERPLATE
7496-
7497-# Allow CC to be a program name with arguments.
7498-lt_save_CC="$CC"
7499-CC=${GCJ-"gcj"}
7500-compiler=$CC
7501-_LT_AC_TAGVAR(compiler, $1)=$CC
7502-_LT_CC_BASENAME([$compiler])
7503-
7504-# GCJ did not exist at the time GCC didn't implicitly link libc in.
7505-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7506-
7507-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7508-
7509-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7510-AC_LIBTOOL_PROG_COMPILER_PIC($1)
7511-AC_LIBTOOL_PROG_CC_C_O($1)
7512-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7513-AC_LIBTOOL_PROG_LD_SHLIBS($1)
7514-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7515-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7516-
7517-AC_LIBTOOL_CONFIG($1)
7518-
7519-AC_LANG_RESTORE
7520-CC="$lt_save_CC"
7521-])# AC_LIBTOOL_LANG_GCJ_CONFIG
7522-
7523-
7524-# AC_LIBTOOL_LANG_RC_CONFIG
7525-# -------------------------
7526-# Ensure that the configuration vars for the Windows resource compiler are
7527-# suitably defined. Those variables are subsequently used by
7528-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7529-AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
7530-AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
7531-[AC_LANG_SAVE
7532-
7533-# Source file extension for RC test sources.
7534-ac_ext=rc
7535-
7536-# Object file extension for compiled RC test sources.
7537-objext=o
7538-_LT_AC_TAGVAR(objext, $1)=$objext
7539-
7540-# Code to be used in simple compile tests
7541-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7542-
7543-# Code to be used in simple link tests
7544-lt_simple_link_test_code="$lt_simple_compile_test_code"
7545-
7546-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7547-_LT_AC_SYS_COMPILER
7548-
7549-# save warnings/boilerplate of simple test code
7550-_LT_COMPILER_BOILERPLATE
7551-_LT_LINKER_BOILERPLATE
7552-
7553-# Allow CC to be a program name with arguments.
7554-lt_save_CC="$CC"
7555-CC=${RC-"windres"}
7556-compiler=$CC
7557-_LT_AC_TAGVAR(compiler, $1)=$CC
7558-_LT_CC_BASENAME([$compiler])
7559-_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7560-
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: