Merge lp:~clint-fewbar/ubuntu/maverick/libdbi/upstream-0.8.4 into lp:ubuntu/maverick/libdbi
- Maverick (10.10)
- upstream-0.8.4
- Merge into maverick
Status: | Rejected |
---|---|
Rejected by: | Martin Pitt |
Proposed branch: | lp:~clint-fewbar/ubuntu/maverick/libdbi/upstream-0.8.4 |
Merge into: | lp:ubuntu/maverick/libdbi |
Diff against target: |
104941 lines (has conflicts)
Text conflict in ChangeLog Text conflict in configure Text conflict in configure.in Text conflict in debian/changelog Text conflict in debian/compat Text conflict in debian/control Text conflict in debian/libdbi-dev.links Path conflict: debian/libdbi0-dev.docs / debian/libdbi-dev.docs Path conflict: debian/libdbi0-dev.install / debian/libdbi-dev.install Path conflict: debian/libdbi0-dev.links / debian/libdbi-dev.links Path conflict: debian/libdbi0.docs / debian/libdbi1.docs Path conflict: debian/libdbi0.shlibs / debian/libdbi1.shlibs Text conflict in debian/libdbi1.shlibs Text conflict in debian/rules Text conflict in doc/driver-guide.pdf Text conflict in doc/programmers-guide.pdf Contents conflict in doc/programmers-guide/x278.html |
To merge this branch: | bzr merge lp:~clint-fewbar/ubuntu/maverick/libdbi/upstream-0.8.4 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt | Disapprove | ||
Review via email: mp+34365@code.launchpad.net |
Commit message
Description of the change
This imports v0.8.4, released today specifically to address the ABI breakage betwen 0.8.2 and 0.8.3 and nothing more.
There are a number of issues with the package that make an soname bump less smooth than it should. I believe the Breaks/Replaces on libdbi-dev will address these issues for upgrades.
Once this is uploaded, we need to address all of the rdepends by changing them to build-depend on libdbi-dev. See the linked bug for all of the source packages that need attention.
Clint Byrum (clint-fewbar) wrote : | # |
Martin Pitt (pitti) wrote : | # |
Clint,
if this is a sync and a patch on top of that, I think it'd be much easier to just attach a debdiff against the sid version in the bug.
If you really want to use bzr, you could do a MP against the Debian branch instead of the Ubuntu branch (lp:debian/libdbi).
Unmerged revisions
- 7. By Clint Byrum
-
* debian/rules: move .a and .la files to -dev package
* debian/control: libdbi-dev breaks libdbi0, since archives are now in -dev - 6. By Clint Byrum
-
* debian/control: new soname fixes ABI (LP: #625882)
- renaming libdbi0-dev to libdbi-dev
- renaming libdbi0 to libdbi1
- Replaces/conflicts/ provides libdbi0-dev for build-deps - 5. By Clint Byrum
-
New upstream release.
- 4. By Thomas Goirand <email address hidden>
-
* New upstream release (Closes: #592447, #565562).
* Now using my email <email address hidden> on the maintainer field.
* Now depends on debhelper 7.
* Added some missing Depends: ${misc:Depends}.
* Now using Standards-Version 3.9.1.
* Added Vcs-Browser: URL where I'll keep the Debian package source.
* Added debian/source/ format file, using 1.0 with autoreconf to avoid clean
target head akes.
* Not using dh_clean -k but dh_prep in debian/rules.
* Removed the duplicate section fields.
* Reviewed a bit short and long descriptions.
* Now calls ./autogen.sh before ./configure, the package also
Build-Depends on automake and libtool.
* In debian/rules, added rm -rf debian/libdbi0/ usr/lib/ pkgconfig in the
install target.
Preview Diff
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2010-07-28 12:44:39 +0000 | |||
3 | +++ ChangeLog 2010-09-01 23:26:43 +0000 | |||
4 | @@ -1,3 +1,4 @@ | |||
5 | 1 | <<<<<<< TREE | ||
6 | 1 | 2008-02-06 20:36 mhoenicka | 2 | 2008-02-06 20:36 mhoenicka |
7 | 2 | 3 | ||
8 | 3 | * NEWS, configure.in: updated for 0.8.3 | 4 | * NEWS, configure.in: updated for 0.8.3 |
9 | @@ -69,4 +70,56 @@ | |||
10 | 69 | 70 | ||
11 | 70 | * src/dbi_main.c: restore test for Verbosity before logging message | 71 | * src/dbi_main.c: restore test for Verbosity before logging message |
12 | 71 | (reported by Balazs Scheidler) | 72 | (reported by Balazs Scheidler) |
13 | 73 | ======= | ||
14 | 74 | 2008-01-15 15:01 mhoenicka | ||
15 | 75 | |||
16 | 76 | * NEWS (1.6), doc/driver-guide.sgml (1.3), doc/example-program.sgml | ||
17 | 77 | (1.15), doc/libdbi-errorhandling.sgml (1.2), | ||
18 | 78 | doc/libdbi-reference.sgml (1.16): final touches for 0.8.3-pre1 | ||
19 | 79 | |||
20 | 80 | 2008-01-15 14:59 mhoenicka | ||
21 | 81 | |||
22 | 82 | * ChangeLog (1.22): shut up | ||
23 | 83 | |||
24 | 84 | 2008-01-15 01:21 mhoenicka | ||
25 | 85 | |||
26 | 86 | * doc/libdbi-reference.sgml (1.15), include/dbi/dbi-dev.h (1.42), | ||
27 | 87 | include/dbi/dbi.h.in (1.2), src/dbd_helper.c (1.40), src/dbi_main.c | ||
28 | 88 | (1.78), src/dbi_result.c (1.46): overhauled error reporting; | ||
29 | 89 | dbi_conn_error_flags() is now deprecated, use the return value of | ||
30 | 90 | dbi_conn_error() instead; make sure error status is reset before | ||
31 | 91 | each dbi command | ||
32 | 92 | |||
33 | 93 | 2008-01-15 01:18 mhoenicka | ||
34 | 94 | |||
35 | 95 | * doc/: Makefile.am (1.20), libdbi-errorhandling.sgml (1.1), | ||
36 | 96 | programmers-guide.sgml (1.13): added chapter about error handling | ||
37 | 97 | |||
38 | 98 | 2008-01-15 01:15 mhoenicka | ||
39 | 99 | |||
40 | 100 | * configure.in (1.44): bumped up version number to 0.8.3-pre1 | ||
41 | 101 | |||
42 | 102 | 2008-01-02 17:14 mhoenicka | ||
43 | 103 | |||
44 | 104 | * drivers/example/dbd_example.c (1.2): added safe_dlclose cap | ||
45 | 105 | |||
46 | 106 | 2008-01-01 01:12 mhoenicka | ||
47 | 107 | |||
48 | 108 | * doc/driver-guide.sgml (1.2): added driver cap info | ||
49 | 109 | |||
50 | 110 | 2008-01-01 01:11 mhoenicka | ||
51 | 111 | |||
52 | 112 | * src/dbi_main.c (1.77): added _safe_dlclose() to work around crash | ||
53 | 113 | on FreeBSD when using firebird | ||
54 | 114 | |||
55 | 115 | 2007-05-01 21:38 qu1j0t3 | ||
56 | 116 | |||
57 | 117 | * ChangeLog (1.21), README (1.16), README.osx (1.4): minor doc | ||
58 | 118 | updates | ||
59 | 119 | |||
60 | 120 | 2007-04-30 14:40 qu1j0t3 | ||
61 | 121 | |||
62 | 122 | * src/dbi_main.c (1.76): restore test for Verbosity before logging | ||
63 | 123 | message (reported by Balazs Scheidler) | ||
64 | 124 | >>>>>>> MERGE-SOURCE | ||
65 | 72 | 125 | ||
66 | 73 | 126 | ||
67 | === modified file 'Makefile.am' | |||
68 | --- Makefile.am 2007-11-26 05:53:13 +0000 | |||
69 | +++ Makefile.am 2010-09-01 23:26:43 +0000 | |||
70 | @@ -1,6 +1,7 @@ | |||
71 | 1 | ## Process this file with automake to produce Makefile.in | 1 | ## Process this file with automake to produce Makefile.in |
72 | 2 | 2 | ||
73 | 3 | AUTOMAKE_OPTIONS = foreign dist-zip | 3 | AUTOMAKE_OPTIONS = foreign dist-zip |
74 | 4 | ACLOCAL_AMFLAGS = -I m4 | ||
75 | 4 | 5 | ||
76 | 5 | SUBDIRS = src include @docs_subdirs@ | 6 | SUBDIRS = src include @docs_subdirs@ |
77 | 6 | 7 | ||
78 | 7 | 8 | ||
79 | === modified file 'Makefile.in' | |||
80 | --- Makefile.in 2007-11-26 05:53:13 +0000 | |||
81 | +++ Makefile.in 2010-09-01 23:26:43 +0000 | |||
82 | @@ -1,8 +1,8 @@ | |||
84 | 1 | # Makefile.in generated by automake 1.9.6 from Makefile.am. | 1 | # Makefile.in generated by automake 1.10.1 from Makefile.am. |
85 | 2 | # @configure_input@ | 2 | # @configure_input@ |
86 | 3 | 3 | ||
87 | 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
89 | 5 | # 2003, 2004, 2005 Free Software Foundation, Inc. | 5 | # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
90 | 6 | # This Makefile.in is free software; the Free Software Foundation | 6 | # This Makefile.in is free software; the Free Software Foundation |
91 | 7 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
92 | 8 | # with or without modifications, as long as this notice is preserved. | 8 | # with or without modifications, as long as this notice is preserved. |
93 | @@ -13,15 +13,11 @@ | |||
94 | 13 | # PARTICULAR PURPOSE. | 13 | # PARTICULAR PURPOSE. |
95 | 14 | 14 | ||
96 | 15 | @SET_MAKE@ | 15 | @SET_MAKE@ |
97 | 16 | srcdir = @srcdir@ | ||
98 | 17 | top_srcdir = @top_srcdir@ | ||
99 | 18 | VPATH = @srcdir@ | 16 | VPATH = @srcdir@ |
100 | 19 | pkgdatadir = $(datadir)/@PACKAGE@ | 17 | pkgdatadir = $(datadir)/@PACKAGE@ |
101 | 20 | pkglibdir = $(libdir)/@PACKAGE@ | 18 | pkglibdir = $(libdir)/@PACKAGE@ |
102 | 21 | pkgincludedir = $(includedir)/@PACKAGE@ | 19 | pkgincludedir = $(includedir)/@PACKAGE@ |
103 | 22 | top_builddir = . | ||
104 | 23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | 20 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
105 | 24 | INSTALL = @INSTALL@ | ||
106 | 25 | install_sh_DATA = $(install_sh) -c -m 644 | 21 | install_sh_DATA = $(install_sh) -c -m 644 |
107 | 26 | install_sh_PROGRAM = $(install_sh) -c | 22 | install_sh_PROGRAM = $(install_sh) -c |
108 | 27 | install_sh_SCRIPT = $(install_sh) -c | 23 | install_sh_SCRIPT = $(install_sh) -c |
109 | @@ -35,18 +31,21 @@ | |||
110 | 35 | POST_UNINSTALL = : | 31 | POST_UNINSTALL = : |
111 | 36 | build_triplet = @build@ | 32 | build_triplet = @build@ |
112 | 37 | host_triplet = @host@ | 33 | host_triplet = @host@ |
113 | 34 | subdir = . | ||
114 | 38 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | 35 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
115 | 39 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | 36 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ |
116 | 40 | $(srcdir)/libdbi.spec.in $(top_srcdir)/configure AUTHORS \ | 37 | $(srcdir)/libdbi.spec.in $(top_srcdir)/configure AUTHORS \ |
117 | 41 | COPYING ChangeLog INSTALL NEWS TODO config.guess config.sub \ | 38 | COPYING ChangeLog INSTALL NEWS TODO config.guess config.sub \ |
118 | 42 | depcomp install-sh ltmain.sh missing | 39 | depcomp install-sh ltmain.sh missing |
119 | 43 | subdir = . | ||
120 | 44 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 40 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
122 | 45 | am__aclocal_m4_deps = $(top_srcdir)/configure.in | 41 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
123 | 42 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
124 | 43 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
125 | 44 | $(top_srcdir)/configure.in | ||
126 | 46 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 45 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
127 | 47 | $(ACLOCAL_M4) | 46 | $(ACLOCAL_M4) |
128 | 48 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | 47 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
130 | 49 | configure.lineno configure.status.lineno | 48 | configure.lineno config.status.lineno |
131 | 50 | mkinstalldirs = $(install_sh) -d | 49 | mkinstalldirs = $(install_sh) -d |
132 | 51 | CONFIG_HEADER = config.h | 50 | CONFIG_HEADER = config.h |
133 | 52 | CONFIG_CLEAN_FILES = libdbi.spec | 51 | CONFIG_CLEAN_FILES = libdbi.spec |
134 | @@ -54,10 +53,13 @@ | |||
135 | 54 | DIST_SOURCES = | 53 | DIST_SOURCES = |
136 | 55 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | 54 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ |
137 | 56 | html-recursive info-recursive install-data-recursive \ | 55 | html-recursive info-recursive install-data-recursive \ |
142 | 57 | install-exec-recursive install-info-recursive \ | 56 | install-dvi-recursive install-exec-recursive \ |
143 | 58 | install-recursive installcheck-recursive installdirs-recursive \ | 57 | install-html-recursive install-info-recursive \ |
144 | 59 | pdf-recursive ps-recursive uninstall-info-recursive \ | 58 | install-pdf-recursive install-ps-recursive install-recursive \ |
145 | 60 | uninstall-recursive | 59 | installcheck-recursive installdirs-recursive pdf-recursive \ |
146 | 60 | ps-recursive uninstall-recursive | ||
147 | 61 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | ||
148 | 62 | distclean-recursive maintainer-clean-recursive | ||
149 | 61 | ETAGS = etags | 63 | ETAGS = etags |
150 | 62 | CTAGS = ctags | 64 | CTAGS = ctags |
151 | 63 | DIST_SUBDIRS = $(SUBDIRS) | 65 | DIST_SUBDIRS = $(SUBDIRS) |
152 | @@ -73,8 +75,6 @@ | |||
153 | 73 | distuninstallcheck_listfiles = find . -type f -print | 75 | distuninstallcheck_listfiles = find . -type f -print |
154 | 74 | distcleancheck_listfiles = find . -type f -print | 76 | distcleancheck_listfiles = find . -type f -print |
155 | 75 | ACLOCAL = @ACLOCAL@ | 77 | ACLOCAL = @ACLOCAL@ |
156 | 76 | AMDEP_FALSE = @AMDEP_FALSE@ | ||
157 | 77 | AMDEP_TRUE = @AMDEP_TRUE@ | ||
158 | 78 | AMTAR = @AMTAR@ | 78 | AMTAR = @AMTAR@ |
159 | 79 | AR = @AR@ | 79 | AR = @AR@ |
160 | 80 | AUTOCONF = @AUTOCONF@ | 80 | AUTOCONF = @AUTOCONF@ |
161 | @@ -86,26 +86,25 @@ | |||
162 | 86 | CFLAGS = @CFLAGS@ | 86 | CFLAGS = @CFLAGS@ |
163 | 87 | CPP = @CPP@ | 87 | CPP = @CPP@ |
164 | 88 | CPPFLAGS = @CPPFLAGS@ | 88 | CPPFLAGS = @CPPFLAGS@ |
165 | 89 | CXX = @CXX@ | ||
166 | 90 | CXXCPP = @CXXCPP@ | ||
167 | 91 | CXXDEPMODE = @CXXDEPMODE@ | ||
168 | 92 | CXXFLAGS = @CXXFLAGS@ | ||
169 | 93 | CYGPATH_W = @CYGPATH_W@ | 89 | CYGPATH_W = @CYGPATH_W@ |
170 | 94 | DEBUG = @DEBUG@ | 90 | DEBUG = @DEBUG@ |
171 | 95 | DEFS = @DEFS@ | 91 | DEFS = @DEFS@ |
172 | 96 | DEPDIR = @DEPDIR@ | 92 | DEPDIR = @DEPDIR@ |
174 | 97 | ECHO = @ECHO@ | 93 | DSYMUTIL = @DSYMUTIL@ |
175 | 94 | DUMPBIN = @DUMPBIN@ | ||
176 | 98 | ECHO_C = @ECHO_C@ | 95 | ECHO_C = @ECHO_C@ |
177 | 99 | ECHO_N = @ECHO_N@ | 96 | ECHO_N = @ECHO_N@ |
178 | 100 | ECHO_T = @ECHO_T@ | 97 | ECHO_T = @ECHO_T@ |
179 | 101 | EGREP = @EGREP@ | 98 | EGREP = @EGREP@ |
180 | 102 | EXEEXT = @EXEEXT@ | 99 | EXEEXT = @EXEEXT@ |
183 | 103 | F77 = @F77@ | 100 | FGREP = @FGREP@ |
184 | 104 | FFLAGS = @FFLAGS@ | 101 | GREP = @GREP@ |
185 | 102 | INSTALL = @INSTALL@ | ||
186 | 105 | INSTALL_DATA = @INSTALL_DATA@ | 103 | INSTALL_DATA = @INSTALL_DATA@ |
187 | 106 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 104 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
188 | 107 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | 105 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
189 | 108 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | 106 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
190 | 107 | LD = @LD@ | ||
191 | 109 | LDFLAGS = @LDFLAGS@ | 108 | LDFLAGS = @LDFLAGS@ |
192 | 110 | LIBADD_DL = @LIBADD_DL@ | 109 | LIBADD_DL = @LIBADD_DL@ |
193 | 111 | LIBOBJS = @LIBOBJS@ | 110 | LIBOBJS = @LIBOBJS@ |
194 | @@ -114,13 +113,18 @@ | |||
195 | 114 | LIB_AGE = @LIB_AGE@ | 113 | LIB_AGE = @LIB_AGE@ |
196 | 115 | LIB_CURRENT = @LIB_CURRENT@ | 114 | LIB_CURRENT = @LIB_CURRENT@ |
197 | 116 | LIB_REVISION = @LIB_REVISION@ | 115 | LIB_REVISION = @LIB_REVISION@ |
198 | 116 | LIPO = @LIPO@ | ||
199 | 117 | LN_S = @LN_S@ | 117 | LN_S = @LN_S@ |
200 | 118 | LTLIBOBJS = @LTLIBOBJS@ | 118 | LTLIBOBJS = @LTLIBOBJS@ |
201 | 119 | MAINT = @MAINT@ | 119 | MAINT = @MAINT@ |
202 | 120 | MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ | ||
203 | 121 | MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ | ||
204 | 122 | MAKEINFO = @MAKEINFO@ | 120 | MAKEINFO = @MAKEINFO@ |
205 | 121 | MKDIR_P = @MKDIR_P@ | ||
206 | 122 | NM = @NM@ | ||
207 | 123 | NMEDIT = @NMEDIT@ | ||
208 | 124 | OBJDUMP = @OBJDUMP@ | ||
209 | 123 | OBJEXT = @OBJEXT@ | 125 | OBJEXT = @OBJEXT@ |
210 | 126 | OTOOL = @OTOOL@ | ||
211 | 127 | OTOOL64 = @OTOOL64@ | ||
212 | 124 | PACKAGE = @PACKAGE@ | 128 | PACKAGE = @PACKAGE@ |
213 | 125 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 129 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
214 | 126 | PACKAGE_NAME = @PACKAGE_NAME@ | 130 | PACKAGE_NAME = @PACKAGE_NAME@ |
215 | @@ -130,20 +134,17 @@ | |||
216 | 130 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 134 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
217 | 131 | PROFILE = @PROFILE@ | 135 | PROFILE = @PROFILE@ |
218 | 132 | RANLIB = @RANLIB@ | 136 | RANLIB = @RANLIB@ |
219 | 137 | SED = @SED@ | ||
220 | 133 | SET_MAKE = @SET_MAKE@ | 138 | SET_MAKE = @SET_MAKE@ |
221 | 134 | SHELL = @SHELL@ | 139 | SHELL = @SHELL@ |
222 | 135 | STRIP = @STRIP@ | 140 | STRIP = @STRIP@ |
223 | 136 | VERSION = @VERSION@ | 141 | VERSION = @VERSION@ |
225 | 137 | ac_ct_AR = @ac_ct_AR@ | 142 | abs_builddir = @abs_builddir@ |
226 | 143 | abs_srcdir = @abs_srcdir@ | ||
227 | 144 | abs_top_builddir = @abs_top_builddir@ | ||
228 | 145 | abs_top_srcdir = @abs_top_srcdir@ | ||
229 | 138 | ac_ct_CC = @ac_ct_CC@ | 146 | ac_ct_CC = @ac_ct_CC@ |
238 | 139 | ac_ct_CXX = @ac_ct_CXX@ | 147 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
231 | 140 | ac_ct_F77 = @ac_ct_F77@ | ||
232 | 141 | ac_ct_RANLIB = @ac_ct_RANLIB@ | ||
233 | 142 | ac_ct_STRIP = @ac_ct_STRIP@ | ||
234 | 143 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | ||
235 | 144 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | ||
236 | 145 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ | ||
237 | 146 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ | ||
239 | 147 | am__include = @am__include@ | 148 | am__include = @am__include@ |
240 | 148 | am__leading_dot = @am__leading_dot@ | 149 | am__leading_dot = @am__leading_dot@ |
241 | 149 | am__quote = @am__quote@ | 150 | am__quote = @am__quote@ |
242 | @@ -155,31 +156,45 @@ | |||
243 | 155 | build_cpu = @build_cpu@ | 156 | build_cpu = @build_cpu@ |
244 | 156 | build_os = @build_os@ | 157 | build_os = @build_os@ |
245 | 157 | build_vendor = @build_vendor@ | 158 | build_vendor = @build_vendor@ |
246 | 159 | builddir = @builddir@ | ||
247 | 158 | datadir = @datadir@ | 160 | datadir = @datadir@ |
248 | 161 | datarootdir = @datarootdir@ | ||
249 | 162 | docdir = @docdir@ | ||
250 | 159 | docs_subdirs = @docs_subdirs@ | 163 | docs_subdirs = @docs_subdirs@ |
251 | 160 | driverdir = @driverdir@ | 164 | driverdir = @driverdir@ |
252 | 165 | dvidir = @dvidir@ | ||
253 | 161 | exec_prefix = @exec_prefix@ | 166 | exec_prefix = @exec_prefix@ |
254 | 162 | host = @host@ | 167 | host = @host@ |
255 | 163 | host_alias = @host_alias@ | 168 | host_alias = @host_alias@ |
256 | 164 | host_cpu = @host_cpu@ | 169 | host_cpu = @host_cpu@ |
257 | 165 | host_os = @host_os@ | 170 | host_os = @host_os@ |
258 | 166 | host_vendor = @host_vendor@ | 171 | host_vendor = @host_vendor@ |
259 | 172 | htmldir = @htmldir@ | ||
260 | 167 | includedir = @includedir@ | 173 | includedir = @includedir@ |
261 | 168 | infodir = @infodir@ | 174 | infodir = @infodir@ |
262 | 169 | install_sh = @install_sh@ | 175 | install_sh = @install_sh@ |
263 | 170 | libdir = @libdir@ | 176 | libdir = @libdir@ |
264 | 171 | libexecdir = @libexecdir@ | 177 | libexecdir = @libexecdir@ |
265 | 178 | localedir = @localedir@ | ||
266 | 172 | localstatedir = @localstatedir@ | 179 | localstatedir = @localstatedir@ |
267 | 180 | lt_ECHO = @lt_ECHO@ | ||
268 | 173 | mandir = @mandir@ | 181 | mandir = @mandir@ |
269 | 174 | mkdir_p = @mkdir_p@ | 182 | mkdir_p = @mkdir_p@ |
270 | 175 | oldincludedir = @oldincludedir@ | 183 | oldincludedir = @oldincludedir@ |
271 | 184 | pdfdir = @pdfdir@ | ||
272 | 176 | prefix = @prefix@ | 185 | prefix = @prefix@ |
273 | 177 | program_transform_name = @program_transform_name@ | 186 | program_transform_name = @program_transform_name@ |
274 | 187 | psdir = @psdir@ | ||
275 | 178 | sbindir = @sbindir@ | 188 | sbindir = @sbindir@ |
276 | 179 | sharedstatedir = @sharedstatedir@ | 189 | sharedstatedir = @sharedstatedir@ |
277 | 190 | srcdir = @srcdir@ | ||
278 | 180 | sysconfdir = @sysconfdir@ | 191 | sysconfdir = @sysconfdir@ |
279 | 181 | target_alias = @target_alias@ | 192 | target_alias = @target_alias@ |
280 | 193 | top_build_prefix = @top_build_prefix@ | ||
281 | 194 | top_builddir = @top_builddir@ | ||
282 | 195 | top_srcdir = @top_srcdir@ | ||
283 | 182 | AUTOMAKE_OPTIONS = foreign dist-zip | 196 | AUTOMAKE_OPTIONS = foreign dist-zip |
284 | 197 | ACLOCAL_AMFLAGS = -I m4 | ||
285 | 183 | SUBDIRS = src include @docs_subdirs@ | 198 | SUBDIRS = src include @docs_subdirs@ |
286 | 184 | EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README README.win32 README.osx TODO NEWS libdbi.spec.in config.h.in Makefile.w32 autogen.sh drivers/example/AUTHORS drivers/example/Makefile.am drivers/example/README drivers/example/TODO drivers/example/.cvsignore drivers/example/dbd_example.c drivers/example/dbd_example.h drivers/example/dbd_example.sgml | 199 | EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README README.win32 README.osx TODO NEWS libdbi.spec.in config.h.in Makefile.w32 autogen.sh drivers/example/AUTHORS drivers/example/Makefile.am drivers/example/README drivers/example/TODO drivers/example/.cvsignore drivers/example/dbd_example.c drivers/example/dbd_example.h drivers/example/dbd_example.sgml |
287 | 185 | all: config.h | 200 | all: config.h |
288 | @@ -223,7 +238,7 @@ | |||
289 | 223 | config.h: stamp-h1 | 238 | config.h: stamp-h1 |
290 | 224 | @if test ! -f $@; then \ | 239 | @if test ! -f $@; then \ |
291 | 225 | rm -f stamp-h1; \ | 240 | rm -f stamp-h1; \ |
293 | 226 | $(MAKE) stamp-h1; \ | 241 | $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ |
294 | 227 | else :; fi | 242 | else :; fi |
295 | 228 | 243 | ||
296 | 229 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | 244 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
297 | @@ -247,7 +262,6 @@ | |||
298 | 247 | 262 | ||
299 | 248 | distclean-libtool: | 263 | distclean-libtool: |
300 | 249 | -rm -f libtool | 264 | -rm -f libtool |
301 | 250 | uninstall-info-am: | ||
302 | 251 | 265 | ||
303 | 252 | # This directory's subdirectories are mostly independent; you can cd | 266 | # This directory's subdirectories are mostly independent; you can cd |
304 | 253 | # into them and run `make' without going through this Makefile. | 267 | # into them and run `make' without going through this Makefile. |
305 | @@ -280,8 +294,7 @@ | |||
306 | 280 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | 294 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
307 | 281 | fi; test -z "$$fail" | 295 | fi; test -z "$$fail" |
308 | 282 | 296 | ||
311 | 283 | mostlyclean-recursive clean-recursive distclean-recursive \ | 297 | $(RECURSIVE_CLEAN_TARGETS): |
310 | 284 | maintainer-clean-recursive: | ||
312 | 285 | @failcom='exit 1'; \ | 298 | @failcom='exit 1'; \ |
313 | 286 | for f in x $$MAKEFLAGS; do \ | 299 | for f in x $$MAKEFLAGS; do \ |
314 | 287 | case $$f in \ | 300 | case $$f in \ |
315 | @@ -325,8 +338,8 @@ | |||
316 | 325 | unique=`for i in $$list; do \ | 338 | unique=`for i in $$list; do \ |
317 | 326 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | 339 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
318 | 327 | done | \ | 340 | done | \ |
321 | 328 | $(AWK) ' { files[$$0] = 1; } \ | 341 | $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ |
322 | 329 | END { for (i in files) print i; }'`; \ | 342 | END { if (nonempty) { for (i in files) print i; }; }'`; \ |
323 | 330 | mkid -fID $$unique | 343 | mkid -fID $$unique |
324 | 331 | tags: TAGS | 344 | tags: TAGS |
325 | 332 | 345 | ||
326 | @@ -351,8 +364,8 @@ | |||
327 | 351 | unique=`for i in $$list; do \ | 364 | unique=`for i in $$list; do \ |
328 | 352 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | 365 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
329 | 353 | done | \ | 366 | done | \ |
332 | 354 | $(AWK) ' { files[$$0] = 1; } \ | 367 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
333 | 355 | END { for (i in files) print i; }'`; \ | 368 | END { if (nonempty) { for (i in files) print i; }; }'`; \ |
334 | 356 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | 369 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ |
335 | 357 | test -n "$$unique" || unique=$$empty_fix; \ | 370 | test -n "$$unique" || unique=$$empty_fix; \ |
336 | 358 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | 371 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
337 | @@ -362,13 +375,12 @@ | |||
338 | 362 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | 375 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
339 | 363 | $(TAGS_FILES) $(LISP) | 376 | $(TAGS_FILES) $(LISP) |
340 | 364 | tags=; \ | 377 | tags=; \ |
341 | 365 | here=`pwd`; \ | ||
342 | 366 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | 378 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
343 | 367 | unique=`for i in $$list; do \ | 379 | unique=`for i in $$list; do \ |
344 | 368 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | 380 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
345 | 369 | done | \ | 381 | done | \ |
348 | 370 | $(AWK) ' { files[$$0] = 1; } \ | 382 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
349 | 371 | END { for (i in files) print i; }'`; \ | 383 | END { if (nonempty) { for (i in files) print i; }; }'`; \ |
350 | 372 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | 384 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ |
351 | 373 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | 385 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
352 | 374 | $$tags $$unique | 386 | $$tags $$unique |
353 | @@ -383,24 +395,22 @@ | |||
354 | 383 | 395 | ||
355 | 384 | distdir: $(DISTFILES) | 396 | distdir: $(DISTFILES) |
356 | 385 | $(am__remove_distdir) | 397 | $(am__remove_distdir) |
366 | 386 | mkdir $(distdir) | 398 | test -d $(distdir) || mkdir $(distdir) |
367 | 387 | $(mkdir_p) $(distdir)/. $(distdir)/drivers/example $(distdir)/include/dbi | 399 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
368 | 388 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | 400 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
369 | 389 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | 401 | list='$(DISTFILES)'; \ |
370 | 390 | list='$(DISTFILES)'; for file in $$list; do \ | 402 | dist_files=`for file in $$list; do echo $$file; done | \ |
371 | 391 | case $$file in \ | 403 | sed -e "s|^$$srcdirstrip/||;t" \ |
372 | 392 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | 404 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ |
373 | 393 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | 405 | case $$dist_files in \ |
374 | 394 | esac; \ | 406 | */*) $(MKDIR_P) `echo "$$dist_files" | \ |
375 | 407 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
376 | 408 | sort -u` ;; \ | ||
377 | 409 | esac; \ | ||
378 | 410 | for file in $$dist_files; do \ | ||
379 | 395 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | 411 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
380 | 396 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
381 | 397 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | ||
382 | 398 | dir="/$$dir"; \ | ||
383 | 399 | $(mkdir_p) "$(distdir)$$dir"; \ | ||
384 | 400 | else \ | ||
385 | 401 | dir=''; \ | ||
386 | 402 | fi; \ | ||
387 | 403 | if test -d $$d/$$file; then \ | 412 | if test -d $$d/$$file; then \ |
388 | 413 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
389 | 404 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | 414 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ |
390 | 405 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | 415 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ |
391 | 406 | fi; \ | 416 | fi; \ |
392 | @@ -414,7 +424,7 @@ | |||
393 | 414 | list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | 424 | list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
394 | 415 | if test "$$subdir" = .; then :; else \ | 425 | if test "$$subdir" = .; then :; else \ |
395 | 416 | test -d "$(distdir)/$$subdir" \ | 426 | test -d "$(distdir)/$$subdir" \ |
397 | 417 | || $(mkdir_p) "$(distdir)/$$subdir" \ | 427 | || $(MKDIR_P) "$(distdir)/$$subdir" \ |
398 | 418 | || exit 1; \ | 428 | || exit 1; \ |
399 | 419 | distdir=`$(am__cd) $(distdir) && pwd`; \ | 429 | distdir=`$(am__cd) $(distdir) && pwd`; \ |
400 | 420 | top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ | 430 | top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ |
401 | @@ -422,6 +432,8 @@ | |||
402 | 422 | $(MAKE) $(AM_MAKEFLAGS) \ | 432 | $(MAKE) $(AM_MAKEFLAGS) \ |
403 | 423 | top_distdir="$$top_distdir" \ | 433 | top_distdir="$$top_distdir" \ |
404 | 424 | distdir="$$distdir/$$subdir" \ | 434 | distdir="$$distdir/$$subdir" \ |
405 | 435 | am__remove_distdir=: \ | ||
406 | 436 | am__skip_length_check=: \ | ||
407 | 425 | distdir) \ | 437 | distdir) \ |
408 | 426 | || exit 1; \ | 438 | || exit 1; \ |
409 | 427 | fi; \ | 439 | fi; \ |
410 | @@ -429,7 +441,7 @@ | |||
411 | 429 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | 441 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ |
412 | 430 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | 442 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
413 | 431 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | 443 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
415 | 432 | ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ | 444 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
416 | 433 | || chmod -R a+r $(distdir) | 445 | || chmod -R a+r $(distdir) |
417 | 434 | dist-gzip: distdir | 446 | dist-gzip: distdir |
418 | 435 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | 447 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
419 | @@ -439,6 +451,10 @@ | |||
420 | 439 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | 451 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 |
421 | 440 | $(am__remove_distdir) | 452 | $(am__remove_distdir) |
422 | 441 | 453 | ||
423 | 454 | dist-lzma: distdir | ||
424 | 455 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | ||
425 | 456 | $(am__remove_distdir) | ||
426 | 457 | |||
427 | 442 | dist-tarZ: distdir | 458 | dist-tarZ: distdir |
428 | 443 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | 459 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
429 | 444 | $(am__remove_distdir) | 460 | $(am__remove_distdir) |
430 | @@ -466,6 +482,8 @@ | |||
431 | 466 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ | 482 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ |
432 | 467 | *.tar.bz2*) \ | 483 | *.tar.bz2*) \ |
433 | 468 | bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ | 484 | bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ |
434 | 485 | *.tar.lzma*) \ | ||
435 | 486 | unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ | ||
436 | 469 | *.tar.Z*) \ | 487 | *.tar.Z*) \ |
437 | 470 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | 488 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
438 | 471 | *.shar.gz*) \ | 489 | *.shar.gz*) \ |
439 | @@ -505,7 +523,7 @@ | |||
440 | 505 | $(am__remove_distdir) | 523 | $(am__remove_distdir) |
441 | 506 | @(echo "$(distdir) archives ready for distribution: "; \ | 524 | @(echo "$(distdir) archives ready for distribution: "; \ |
442 | 507 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | 525 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
444 | 508 | sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' | 526 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
445 | 509 | distuninstallcheck: | 527 | distuninstallcheck: |
446 | 510 | @cd $(distuninstallcheck_dir) \ | 528 | @cd $(distuninstallcheck_dir) \ |
447 | 511 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | 529 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ |
448 | @@ -575,12 +593,20 @@ | |||
449 | 575 | 593 | ||
450 | 576 | install-data-am: | 594 | install-data-am: |
451 | 577 | 595 | ||
452 | 596 | install-dvi: install-dvi-recursive | ||
453 | 597 | |||
454 | 578 | install-exec-am: | 598 | install-exec-am: |
455 | 579 | 599 | ||
456 | 600 | install-html: install-html-recursive | ||
457 | 601 | |||
458 | 580 | install-info: install-info-recursive | 602 | install-info: install-info-recursive |
459 | 581 | 603 | ||
460 | 582 | install-man: | 604 | install-man: |
461 | 583 | 605 | ||
462 | 606 | install-pdf: install-pdf-recursive | ||
463 | 607 | |||
464 | 608 | install-ps: install-ps-recursive | ||
465 | 609 | |||
466 | 584 | installcheck-am: | 610 | installcheck-am: |
467 | 585 | 611 | ||
468 | 586 | maintainer-clean: maintainer-clean-recursive | 612 | maintainer-clean: maintainer-clean-recursive |
469 | @@ -601,24 +627,26 @@ | |||
470 | 601 | 627 | ||
471 | 602 | ps-am: | 628 | ps-am: |
472 | 603 | 629 | ||
491 | 604 | uninstall-am: uninstall-info-am | 630 | uninstall-am: |
492 | 605 | 631 | ||
493 | 606 | uninstall-info: uninstall-info-recursive | 632 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ |
494 | 607 | 633 | install-strip | |
495 | 608 | .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ | 634 | |
496 | 609 | check-am clean clean-generic clean-libtool clean-recursive \ | 635 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
497 | 610 | ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ | 636 | all all-am am--refresh check check-am clean clean-generic \ |
498 | 611 | dist-shar dist-tarZ dist-zip distcheck distclean \ | 637 | clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ |
499 | 612 | distclean-generic distclean-hdr distclean-libtool \ | 638 | dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \ |
500 | 613 | distclean-recursive distclean-tags distcleancheck distdir \ | 639 | distclean distclean-generic distclean-hdr distclean-libtool \ |
501 | 614 | distuninstallcheck dvi dvi-am html html-am info info-am \ | 640 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ |
502 | 615 | install install-am install-data install-data-am install-exec \ | 641 | dvi-am html html-am info info-am install install-am \ |
503 | 616 | install-exec-am install-info install-info-am install-man \ | 642 | install-data install-data-am install-dvi install-dvi-am \ |
504 | 617 | install-strip installcheck installcheck-am installdirs \ | 643 | install-exec install-exec-am install-html install-html-am \ |
505 | 618 | installdirs-am maintainer-clean maintainer-clean-generic \ | 644 | install-info install-info-am install-man install-pdf \ |
506 | 619 | maintainer-clean-recursive mostlyclean mostlyclean-generic \ | 645 | install-pdf-am install-ps install-ps-am install-strip \ |
507 | 620 | mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ | 646 | installcheck installcheck-am installdirs installdirs-am \ |
508 | 621 | tags tags-recursive uninstall uninstall-am uninstall-info-am | 647 | maintainer-clean maintainer-clean-generic mostlyclean \ |
509 | 648 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
510 | 649 | tags tags-recursive uninstall uninstall-am | ||
511 | 622 | 650 | ||
512 | 623 | 651 | ||
513 | 624 | debug: | 652 | debug: |
514 | 625 | 653 | ||
515 | === modified file 'README' | |||
516 | --- README 2007-11-26 05:53:13 +0000 | |||
517 | +++ README 2010-09-01 23:26:43 +0000 | |||
518 | @@ -93,9 +93,9 @@ | |||
519 | 93 | Windows: 98, NT4, 2000, XP | 93 | Windows: 98, NT4, 2000, XP |
520 | 94 | FreeBSD: 4.3 through 6.2 | 94 | FreeBSD: 4.3 through 6.2 |
521 | 95 | SunOS: 2.8 | 95 | SunOS: 2.8 |
523 | 96 | Solaris: 7 | 96 | Solaris: 7, 10 |
524 | 97 | AIX: 4.2, 4.3 and 5.1 | 97 | AIX: 4.2, 4.3 and 5.1 |
526 | 98 | OSX: 10.2-10.4 | 98 | OS X: 10.2-10.4.9 |
527 | 99 | 99 | ||
528 | 100 | If you are using libdbi on a platform not listed here, please notify the | 100 | If you are using libdbi on a platform not listed here, please notify the |
529 | 101 | mailing list! (see below) | 101 | mailing list! (see below) |
530 | @@ -155,5 +155,5 @@ | |||
531 | 155 | David A. Parker <david@neongoat.com> | 155 | David A. Parker <david@neongoat.com> |
532 | 156 | Mark M. Tobenkin <mark@brentwoodradio.com> | 156 | Mark M. Tobenkin <mark@brentwoodradio.com> |
533 | 157 | 157 | ||
535 | 158 | $Id: README,v 1.15 2007/02/20 00:55:46 mhoenicka Exp $ | 158 | $Id: README,v 1.16 2007/05/01 19:38:10 qu1j0t3 Exp $ |
536 | 159 | 159 | ||
537 | 160 | 160 | ||
538 | === modified file 'README.osx' | |||
539 | --- README.osx 2007-11-26 05:53:13 +0000 | |||
540 | +++ README.osx 2010-09-01 23:26:43 +0000 | |||
541 | @@ -4,17 +4,16 @@ | |||
542 | 4 | http://libdbi.sourceforge.net | 4 | http://libdbi.sourceforge.net |
543 | 5 | 5 | ||
544 | 6 | 6 | ||
550 | 7 | OSX-SPECIFIC INSTALLATION INSTRUCTIONS: | 7 | OS X-SPECIFIC INSTALLATION INSTRUCTIONS: |
551 | 8 | ------------------------------------------- | 8 | ---------------------------------------- |
547 | 9 | |||
548 | 10 | Building libdbi on OSX requires a little more typing compared to other | ||
549 | 11 | Unixes. This is what you need to do: | ||
552 | 12 | 9 | ||
553 | 13 | LIBTOOLIZE=glibtoolize ./autogen.sh | 10 | LIBTOOLIZE=glibtoolize ./autogen.sh |
556 | 14 | ./configure CFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" | 11 | ./configure |
557 | 15 | make CFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" | 12 | make |
558 | 16 | sudo make install | 13 | sudo make install |
559 | 17 | 14 | ||
560 | 15 | If openjade is not available, add '--disable-docs' to configure's options. | ||
561 | 16 | |||
562 | 18 | 17 | ||
563 | 19 | MODIFICATIONS AND REDISTRIBUTION (LGPL): | 18 | MODIFICATIONS AND REDISTRIBUTION (LGPL): |
564 | 20 | ---------------------------------------- | 19 | ---------------------------------------- |
565 | @@ -32,5 +31,5 @@ | |||
566 | 32 | See the file COPYING or http://www.gnu.org for more details. | 31 | See the file COPYING or http://www.gnu.org for more details. |
567 | 33 | 32 | ||
568 | 34 | 33 | ||
570 | 35 | $Id: README.osx,v 1.3 2005/08/28 00:05:17 mhoenicka Exp $ | 34 | $Id: README.osx,v 1.4 2007/05/01 19:38:10 qu1j0t3 Exp $ |
571 | 36 | 35 | ||
572 | 37 | 36 | ||
573 | === modified file 'aclocal.m4' | |||
574 | --- aclocal.m4 2007-11-26 05:53:13 +0000 | |||
575 | +++ aclocal.m4 2010-09-01 23:26:43 +0000 | |||
576 | @@ -1,7 +1,7 @@ | |||
578 | 1 | # generated automatically by aclocal 1.9.6 -*- Autoconf -*- | 1 | # generated automatically by aclocal 1.10.1 -*- Autoconf -*- |
579 | 2 | 2 | ||
580 | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
582 | 4 | # 2005 Free Software Foundation, Inc. | 4 | # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
583 | 5 | # This file is free software; the Free Software Foundation | 5 | # This file is free software; the Free Software Foundation |
584 | 6 | # gives unlimited permission to copy and/or distribute it, | 6 | # gives unlimited permission to copy and/or distribute it, |
585 | 7 | # with or without modifications, as long as this notice is preserved. | 7 | # with or without modifications, as long as this notice is preserved. |
586 | @@ -11,5972 +11,15 @@ | |||
587 | 11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
588 | 12 | # PARTICULAR PURPOSE. | 12 | # PARTICULAR PURPOSE. |
589 | 13 | 13 | ||
590 | 14 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
591 | 15 | |||
592 | 16 | # serial 47 AC_PROG_LIBTOOL | ||
593 | 17 | |||
594 | 18 | |||
595 | 19 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | ||
596 | 20 | # ----------------------------------------------------------- | ||
597 | 21 | # If this macro is not defined by Autoconf, define it here. | ||
598 | 22 | m4_ifdef([AC_PROVIDE_IFELSE], | ||
599 | 23 | [], | ||
600 | 24 | [m4_define([AC_PROVIDE_IFELSE], | ||
601 | 25 | [m4_ifdef([AC_PROVIDE_$1], | ||
602 | 26 | [$2], [$3])])]) | ||
603 | 27 | |||
604 | 28 | |||
605 | 29 | # AC_PROG_LIBTOOL | ||
606 | 30 | # --------------- | ||
607 | 31 | AC_DEFUN([AC_PROG_LIBTOOL], | ||
608 | 32 | [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl | ||
609 | 33 | dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX | ||
610 | 34 | dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. | ||
611 | 35 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
612 | 36 | [AC_LIBTOOL_CXX], | ||
613 | 37 | [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX | ||
614 | 38 | ])]) | ||
615 | 39 | dnl And a similar setup for Fortran 77 support | ||
616 | 40 | AC_PROVIDE_IFELSE([AC_PROG_F77], | ||
617 | 41 | [AC_LIBTOOL_F77], | ||
618 | 42 | [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 | ||
619 | 43 | ])]) | ||
620 | 44 | |||
621 | 45 | dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. | ||
622 | 46 | dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run | ||
623 | 47 | dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. | ||
624 | 48 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], | ||
625 | 49 | [AC_LIBTOOL_GCJ], | ||
626 | 50 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | ||
627 | 51 | [AC_LIBTOOL_GCJ], | ||
628 | 52 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], | ||
629 | 53 | [AC_LIBTOOL_GCJ], | ||
630 | 54 | [ifdef([AC_PROG_GCJ], | ||
631 | 55 | [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
632 | 56 | ifdef([A][M_PROG_GCJ], | ||
633 | 57 | [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
634 | 58 | ifdef([LT_AC_PROG_GCJ], | ||
635 | 59 | [define([LT_AC_PROG_GCJ], | ||
636 | 60 | defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) | ||
637 | 61 | ])])# AC_PROG_LIBTOOL | ||
638 | 62 | |||
639 | 63 | |||
640 | 64 | # _AC_PROG_LIBTOOL | ||
641 | 65 | # ---------------- | ||
642 | 66 | AC_DEFUN([_AC_PROG_LIBTOOL], | ||
643 | 67 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | ||
644 | 68 | AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl | ||
645 | 69 | AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl | ||
646 | 70 | AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl | ||
647 | 71 | |||
648 | 72 | # This can be used to rebuild libtool when needed | ||
649 | 73 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | ||
650 | 74 | |||
651 | 75 | # Always use our own libtool. | ||
652 | 76 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
653 | 77 | AC_SUBST(LIBTOOL)dnl | ||
654 | 78 | |||
655 | 79 | # Prevent multiple expansion | ||
656 | 80 | define([AC_PROG_LIBTOOL], []) | ||
657 | 81 | ])# _AC_PROG_LIBTOOL | ||
658 | 82 | |||
659 | 83 | |||
660 | 84 | # AC_LIBTOOL_SETUP | ||
661 | 85 | # ---------------- | ||
662 | 86 | AC_DEFUN([AC_LIBTOOL_SETUP], | ||
663 | 87 | [AC_PREREQ(2.50)dnl | ||
664 | 88 | AC_REQUIRE([AC_ENABLE_SHARED])dnl | ||
665 | 89 | AC_REQUIRE([AC_ENABLE_STATIC])dnl | ||
666 | 90 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl | ||
667 | 91 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
668 | 92 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
669 | 93 | AC_REQUIRE([AC_PROG_CC])dnl | ||
670 | 94 | AC_REQUIRE([AC_PROG_LD])dnl | ||
671 | 95 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl | ||
672 | 96 | AC_REQUIRE([AC_PROG_NM])dnl | ||
673 | 97 | |||
674 | 98 | AC_REQUIRE([AC_PROG_LN_S])dnl | ||
675 | 99 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl | ||
676 | 100 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | ||
677 | 101 | AC_REQUIRE([AC_OBJEXT])dnl | ||
678 | 102 | AC_REQUIRE([AC_EXEEXT])dnl | ||
679 | 103 | dnl | ||
680 | 104 | |||
681 | 105 | AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
682 | 106 | AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
683 | 107 | AC_LIBTOOL_OBJDIR | ||
684 | 108 | |||
685 | 109 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
686 | 110 | _LT_AC_PROG_ECHO_BACKSLASH | ||
687 | 111 | |||
688 | 112 | case $host_os in | ||
689 | 113 | aix3*) | ||
690 | 114 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
691 | 115 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
692 | 116 | # vanish in a puff of smoke. | ||
693 | 117 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
694 | 118 | COLLECT_NAMES= | ||
695 | 119 | export COLLECT_NAMES | ||
696 | 120 | fi | ||
697 | 121 | ;; | ||
698 | 122 | esac | ||
699 | 123 | |||
700 | 124 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
701 | 125 | # metacharacters that are still active within double-quoted strings. | ||
702 | 126 | Xsed='sed -e s/^X//' | ||
703 | 127 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | ||
704 | 128 | |||
705 | 129 | # Same as above, but do not quote variable references. | ||
706 | 130 | [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] | ||
707 | 131 | |||
708 | 132 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
709 | 133 | # double_quote_subst'ed string. | ||
710 | 134 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
711 | 135 | |||
712 | 136 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
713 | 137 | no_glob_subst='s/\*/\\\*/g' | ||
714 | 138 | |||
715 | 139 | # Constants: | ||
716 | 140 | rm="rm -f" | ||
717 | 141 | |||
718 | 142 | # Global variables: | ||
719 | 143 | default_ofile=libtool | ||
720 | 144 | can_build_shared=yes | ||
721 | 145 | |||
722 | 146 | # All known linkers require a `.a' archive for static linking (except M$VC, | ||
723 | 147 | # which needs '.lib'). | ||
724 | 148 | libext=a | ||
725 | 149 | ltmain="$ac_aux_dir/ltmain.sh" | ||
726 | 150 | ofile="$default_ofile" | ||
727 | 151 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
728 | 152 | |||
729 | 153 | AC_CHECK_TOOL(AR, ar, false) | ||
730 | 154 | AC_CHECK_TOOL(RANLIB, ranlib, :) | ||
731 | 155 | AC_CHECK_TOOL(STRIP, strip, :) | ||
732 | 156 | |||
733 | 157 | old_CC="$CC" | ||
734 | 158 | old_CFLAGS="$CFLAGS" | ||
735 | 159 | |||
736 | 160 | # Set sane defaults for various variables | ||
737 | 161 | test -z "$AR" && AR=ar | ||
738 | 162 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
739 | 163 | test -z "$AS" && AS=as | ||
740 | 164 | test -z "$CC" && CC=cc | ||
741 | 165 | test -z "$LTCC" && LTCC=$CC | ||
742 | 166 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
743 | 167 | test -z "$LD" && LD=ld | ||
744 | 168 | test -z "$LN_S" && LN_S="ln -s" | ||
745 | 169 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
746 | 170 | test -z "$NM" && NM=nm | ||
747 | 171 | test -z "$SED" && SED=sed | ||
748 | 172 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
749 | 173 | test -z "$RANLIB" && RANLIB=: | ||
750 | 174 | test -z "$STRIP" && STRIP=: | ||
751 | 175 | test -z "$ac_objext" && ac_objext=o | ||
752 | 176 | |||
753 | 177 | # Determine commands to create old-style static archives. | ||
754 | 178 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | ||
755 | 179 | old_postinstall_cmds='chmod 644 $oldlib' | ||
756 | 180 | old_postuninstall_cmds= | ||
757 | 181 | |||
758 | 182 | if test -n "$RANLIB"; then | ||
759 | 183 | case $host_os in | ||
760 | 184 | openbsd*) | ||
761 | 185 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | ||
762 | 186 | ;; | ||
763 | 187 | *) | ||
764 | 188 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | ||
765 | 189 | ;; | ||
766 | 190 | esac | ||
767 | 191 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
768 | 192 | fi | ||
769 | 193 | |||
770 | 194 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | ||
771 | 195 | |||
772 | 196 | # Only perform the check for file, if the check method requires it | ||
773 | 197 | case $deplibs_check_method in | ||
774 | 198 | file_magic*) | ||
775 | 199 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
776 | 200 | AC_PATH_MAGIC | ||
777 | 201 | fi | ||
778 | 202 | ;; | ||
779 | 203 | esac | ||
780 | 204 | |||
781 | 205 | AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) | ||
782 | 206 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | ||
783 | 207 | enable_win32_dll=yes, enable_win32_dll=no) | ||
784 | 208 | |||
785 | 209 | AC_ARG_ENABLE([libtool-lock], | ||
786 | 210 | [AC_HELP_STRING([--disable-libtool-lock], | ||
787 | 211 | [avoid locking (might break parallel builds)])]) | ||
788 | 212 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
789 | 213 | |||
790 | 214 | AC_ARG_WITH([pic], | ||
791 | 215 | [AC_HELP_STRING([--with-pic], | ||
792 | 216 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | ||
793 | 217 | [pic_mode="$withval"], | ||
794 | 218 | [pic_mode=default]) | ||
795 | 219 | test -z "$pic_mode" && pic_mode=default | ||
796 | 220 | |||
797 | 221 | # Use C for the default configuration in the libtool script | ||
798 | 222 | tagname= | ||
799 | 223 | AC_LIBTOOL_LANG_C_CONFIG | ||
800 | 224 | _LT_AC_TAGCONFIG | ||
801 | 225 | ])# AC_LIBTOOL_SETUP | ||
802 | 226 | |||
803 | 227 | |||
804 | 228 | # _LT_AC_SYS_COMPILER | ||
805 | 229 | # ------------------- | ||
806 | 230 | AC_DEFUN([_LT_AC_SYS_COMPILER], | ||
807 | 231 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
808 | 232 | |||
809 | 233 | # If no C compiler was specified, use CC. | ||
810 | 234 | LTCC=${LTCC-"$CC"} | ||
811 | 235 | |||
812 | 236 | # Allow CC to be a program name with arguments. | ||
813 | 237 | compiler=$CC | ||
814 | 238 | ])# _LT_AC_SYS_COMPILER | ||
815 | 239 | |||
816 | 240 | |||
817 | 241 | # _LT_AC_SYS_LIBPATH_AIX | ||
818 | 242 | # ---------------------- | ||
819 | 243 | # Links a minimal program and checks the executable | ||
820 | 244 | # for the system default hardcoded library path. In most cases, | ||
821 | 245 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
822 | 246 | # the location of the communication and MPI libs are included too. | ||
823 | 247 | # If we don't find anything, use the default library path according | ||
824 | 248 | # to the aix ld manual. | ||
825 | 249 | AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | ||
826 | 250 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | ||
827 | 251 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
828 | 252 | }'` | ||
829 | 253 | # Check for a 64-bit object if we didn't find anything. | ||
830 | 254 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
831 | 255 | }'`; fi],[]) | ||
832 | 256 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
833 | 257 | ])# _LT_AC_SYS_LIBPATH_AIX | ||
834 | 258 | |||
835 | 259 | |||
836 | 260 | # _LT_AC_SHELL_INIT(ARG) | ||
837 | 261 | # ---------------------- | ||
838 | 262 | AC_DEFUN([_LT_AC_SHELL_INIT], | ||
839 | 263 | [ifdef([AC_DIVERSION_NOTICE], | ||
840 | 264 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | ||
841 | 265 | [AC_DIVERT_PUSH(NOTICE)]) | ||
842 | 266 | $1 | ||
843 | 267 | AC_DIVERT_POP | ||
844 | 268 | ])# _LT_AC_SHELL_INIT | ||
845 | 269 | |||
846 | 270 | |||
847 | 271 | # _LT_AC_PROG_ECHO_BACKSLASH | ||
848 | 272 | # -------------------------- | ||
849 | 273 | # Add some code to the start of the generated configure script which | ||
850 | 274 | # will find an echo command which doesn't interpret backslashes. | ||
851 | 275 | AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], | ||
852 | 276 | [_LT_AC_SHELL_INIT([ | ||
853 | 277 | # Check that we are running under the correct shell. | ||
854 | 278 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
855 | 279 | |||
856 | 280 | case X$ECHO in | ||
857 | 281 | X*--fallback-echo) | ||
858 | 282 | # Remove one level of quotation (which was required for Make). | ||
859 | 283 | ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | ||
860 | 284 | ;; | ||
861 | 285 | esac | ||
862 | 286 | |||
863 | 287 | echo=${ECHO-echo} | ||
864 | 288 | if test "X[$]1" = X--no-reexec; then | ||
865 | 289 | # Discard the --no-reexec flag, and continue. | ||
866 | 290 | shift | ||
867 | 291 | elif test "X[$]1" = X--fallback-echo; then | ||
868 | 292 | # Avoid inline document here, it may be left over | ||
869 | 293 | : | ||
870 | 294 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
871 | 295 | # Yippee, $echo works! | ||
872 | 296 | : | ||
873 | 297 | else | ||
874 | 298 | # Restart under the correct shell. | ||
875 | 299 | exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
876 | 300 | fi | ||
877 | 301 | |||
878 | 302 | if test "X[$]1" = X--fallback-echo; then | ||
879 | 303 | # used as fallback echo | ||
880 | 304 | shift | ||
881 | 305 | cat <<EOF | ||
882 | 306 | [$]* | ||
883 | 307 | EOF | ||
884 | 308 | exit 0 | ||
885 | 309 | fi | ||
886 | 310 | |||
887 | 311 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
888 | 312 | # if CDPATH is set. | ||
889 | 313 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
890 | 314 | |||
891 | 315 | if test -z "$ECHO"; then | ||
892 | 316 | if test "X${echo_test_string+set}" != Xset; then | ||
893 | 317 | # find a string as large as possible, as long as the shell can cope with it | ||
894 | 318 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | ||
895 | 319 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
896 | 320 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | ||
897 | 321 | echo_test_string="`eval $cmd`" && | ||
898 | 322 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
899 | 323 | then | ||
900 | 324 | break | ||
901 | 325 | fi | ||
902 | 326 | done | ||
903 | 327 | fi | ||
904 | 328 | |||
905 | 329 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
906 | 330 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
907 | 331 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
908 | 332 | : | ||
909 | 333 | else | ||
910 | 334 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
911 | 335 | # backslashes. This makes it impossible to quote backslashes using | ||
912 | 336 | # echo "$something" | sed 's/\\/\\\\/g' | ||
913 | 337 | # | ||
914 | 338 | # So, first we look for a working echo in the user's PATH. | ||
915 | 339 | |||
916 | 340 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
917 | 341 | for dir in $PATH /usr/ucb; do | ||
918 | 342 | IFS="$lt_save_ifs" | ||
919 | 343 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
920 | 344 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
921 | 345 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
922 | 346 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
923 | 347 | echo="$dir/echo" | ||
924 | 348 | break | ||
925 | 349 | fi | ||
926 | 350 | done | ||
927 | 351 | IFS="$lt_save_ifs" | ||
928 | 352 | |||
929 | 353 | if test "X$echo" = Xecho; then | ||
930 | 354 | # We didn't find a better echo, so look for alternatives. | ||
931 | 355 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
932 | 356 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
933 | 357 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
934 | 358 | # This shell has a builtin print -r that does the trick. | ||
935 | 359 | echo='print -r' | ||
936 | 360 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
937 | 361 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
938 | 362 | # If we have ksh, try running configure again with it. | ||
939 | 363 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
940 | 364 | export ORIGINAL_CONFIG_SHELL | ||
941 | 365 | CONFIG_SHELL=/bin/ksh | ||
942 | 366 | export CONFIG_SHELL | ||
943 | 367 | exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
944 | 368 | else | ||
945 | 369 | # Try using printf. | ||
946 | 370 | echo='printf %s\n' | ||
947 | 371 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
948 | 372 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
949 | 373 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
950 | 374 | # Cool, printf works | ||
951 | 375 | : | ||
952 | 376 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
953 | 377 | test "X$echo_testing_string" = 'X\t' && | ||
954 | 378 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
955 | 379 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
956 | 380 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
957 | 381 | export CONFIG_SHELL | ||
958 | 382 | SHELL="$CONFIG_SHELL" | ||
959 | 383 | export SHELL | ||
960 | 384 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
961 | 385 | elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
962 | 386 | test "X$echo_testing_string" = 'X\t' && | ||
963 | 387 | echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
964 | 388 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
965 | 389 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
966 | 390 | else | ||
967 | 391 | # maybe with a smaller string... | ||
968 | 392 | prev=: | ||
969 | 393 | |||
970 | 394 | for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | ||
971 | 395 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
972 | 396 | then | ||
973 | 397 | break | ||
974 | 398 | fi | ||
975 | 399 | prev="$cmd" | ||
976 | 400 | done | ||
977 | 401 | |||
978 | 402 | if test "$prev" != 'sed 50q "[$]0"'; then | ||
979 | 403 | echo_test_string=`eval $prev` | ||
980 | 404 | export echo_test_string | ||
981 | 405 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | ||
982 | 406 | else | ||
983 | 407 | # Oops. We lost completely, so just stick with echo. | ||
984 | 408 | echo=echo | ||
985 | 409 | fi | ||
986 | 410 | fi | ||
987 | 411 | fi | ||
988 | 412 | fi | ||
989 | 413 | fi | ||
990 | 414 | fi | ||
991 | 415 | |||
992 | 416 | # Copy echo and quote the copy suitably for passing to libtool from | ||
993 | 417 | # the Makefile, instead of quoting the original, which is used later. | ||
994 | 418 | ECHO=$echo | ||
995 | 419 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | ||
996 | 420 | ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | ||
997 | 421 | fi | ||
998 | 422 | |||
999 | 423 | AC_SUBST(ECHO) | ||
1000 | 424 | ])])# _LT_AC_PROG_ECHO_BACKSLASH | ||
1001 | 425 | |||
1002 | 426 | |||
1003 | 427 | # _LT_AC_LOCK | ||
1004 | 428 | # ----------- | ||
1005 | 429 | AC_DEFUN([_LT_AC_LOCK], | ||
1006 | 430 | [AC_ARG_ENABLE([libtool-lock], | ||
1007 | 431 | [AC_HELP_STRING([--disable-libtool-lock], | ||
1008 | 432 | [avoid locking (might break parallel builds)])]) | ||
1009 | 433 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
1010 | 434 | |||
1011 | 435 | # Some flags need to be propagated to the compiler or linker for good | ||
1012 | 436 | # libtool support. | ||
1013 | 437 | case $host in | ||
1014 | 438 | ia64-*-hpux*) | ||
1015 | 439 | # Find out which ABI we are using. | ||
1016 | 440 | echo 'int i;' > conftest.$ac_ext | ||
1017 | 441 | if AC_TRY_EVAL(ac_compile); then | ||
1018 | 442 | case `/usr/bin/file conftest.$ac_objext` in | ||
1019 | 443 | *ELF-32*) | ||
1020 | 444 | HPUX_IA64_MODE="32" | ||
1021 | 445 | ;; | ||
1022 | 446 | *ELF-64*) | ||
1023 | 447 | HPUX_IA64_MODE="64" | ||
1024 | 448 | ;; | ||
1025 | 449 | esac | ||
1026 | 450 | fi | ||
1027 | 451 | rm -rf conftest* | ||
1028 | 452 | ;; | ||
1029 | 453 | *-*-irix6*) | ||
1030 | 454 | # Find out which ABI we are using. | ||
1031 | 455 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | ||
1032 | 456 | if AC_TRY_EVAL(ac_compile); then | ||
1033 | 457 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
1034 | 458 | case `/usr/bin/file conftest.$ac_objext` in | ||
1035 | 459 | *32-bit*) | ||
1036 | 460 | LD="${LD-ld} -melf32bsmip" | ||
1037 | 461 | ;; | ||
1038 | 462 | *N32*) | ||
1039 | 463 | LD="${LD-ld} -melf32bmipn32" | ||
1040 | 464 | ;; | ||
1041 | 465 | *64-bit*) | ||
1042 | 466 | LD="${LD-ld} -melf64bmip" | ||
1043 | 467 | ;; | ||
1044 | 468 | esac | ||
1045 | 469 | else | ||
1046 | 470 | case `/usr/bin/file conftest.$ac_objext` in | ||
1047 | 471 | *32-bit*) | ||
1048 | 472 | LD="${LD-ld} -32" | ||
1049 | 473 | ;; | ||
1050 | 474 | *N32*) | ||
1051 | 475 | LD="${LD-ld} -n32" | ||
1052 | 476 | ;; | ||
1053 | 477 | *64-bit*) | ||
1054 | 478 | LD="${LD-ld} -64" | ||
1055 | 479 | ;; | ||
1056 | 480 | esac | ||
1057 | 481 | fi | ||
1058 | 482 | fi | ||
1059 | 483 | rm -rf conftest* | ||
1060 | 484 | ;; | ||
1061 | 485 | |||
1062 | 486 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | ||
1063 | 487 | # Find out which ABI we are using. | ||
1064 | 488 | echo 'int i;' > conftest.$ac_ext | ||
1065 | 489 | if AC_TRY_EVAL(ac_compile); then | ||
1066 | 490 | case "`/usr/bin/file conftest.o`" in | ||
1067 | 491 | *32-bit*) | ||
1068 | 492 | case $host in | ||
1069 | 493 | x86_64-*linux*) | ||
1070 | 494 | LD="${LD-ld} -m elf_i386" | ||
1071 | 495 | ;; | ||
1072 | 496 | ppc64-*linux*|powerpc64-*linux*) | ||
1073 | 497 | LD="${LD-ld} -m elf32ppclinux" | ||
1074 | 498 | ;; | ||
1075 | 499 | s390x-*linux*) | ||
1076 | 500 | LD="${LD-ld} -m elf_s390" | ||
1077 | 501 | ;; | ||
1078 | 502 | sparc64-*linux*) | ||
1079 | 503 | LD="${LD-ld} -m elf32_sparc" | ||
1080 | 504 | ;; | ||
1081 | 505 | esac | ||
1082 | 506 | ;; | ||
1083 | 507 | *64-bit*) | ||
1084 | 508 | case $host in | ||
1085 | 509 | x86_64-*linux*) | ||
1086 | 510 | LD="${LD-ld} -m elf_x86_64" | ||
1087 | 511 | ;; | ||
1088 | 512 | ppc*-*linux*|powerpc*-*linux*) | ||
1089 | 513 | LD="${LD-ld} -m elf64ppc" | ||
1090 | 514 | ;; | ||
1091 | 515 | s390*-*linux*) | ||
1092 | 516 | LD="${LD-ld} -m elf64_s390" | ||
1093 | 517 | ;; | ||
1094 | 518 | sparc*-*linux*) | ||
1095 | 519 | LD="${LD-ld} -m elf64_sparc" | ||
1096 | 520 | ;; | ||
1097 | 521 | esac | ||
1098 | 522 | ;; | ||
1099 | 523 | esac | ||
1100 | 524 | fi | ||
1101 | 525 | rm -rf conftest* | ||
1102 | 526 | ;; | ||
1103 | 527 | |||
1104 | 528 | *-*-sco3.2v5*) | ||
1105 | 529 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
1106 | 530 | SAVE_CFLAGS="$CFLAGS" | ||
1107 | 531 | CFLAGS="$CFLAGS -belf" | ||
1108 | 532 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | ||
1109 | 533 | [AC_LANG_PUSH(C) | ||
1110 | 534 | AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | ||
1111 | 535 | AC_LANG_POP]) | ||
1112 | 536 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
1113 | 537 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
1114 | 538 | CFLAGS="$SAVE_CFLAGS" | ||
1115 | 539 | fi | ||
1116 | 540 | ;; | ||
1117 | 541 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | ||
1118 | 542 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
1119 | 543 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | ||
1120 | 544 | AC_CHECK_TOOL(AS, as, false) | ||
1121 | 545 | AC_CHECK_TOOL(OBJDUMP, objdump, false) | ||
1122 | 546 | ;; | ||
1123 | 547 | ]) | ||
1124 | 548 | esac | ||
1125 | 549 | |||
1126 | 550 | need_locks="$enable_libtool_lock" | ||
1127 | 551 | |||
1128 | 552 | ])# _LT_AC_LOCK | ||
1129 | 553 | |||
1130 | 554 | |||
1131 | 555 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
1132 | 556 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
1133 | 557 | # ---------------------------------------------------------------- | ||
1134 | 558 | # Check whether the given compiler option works | ||
1135 | 559 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], | ||
1136 | 560 | [AC_REQUIRE([LT_AC_PROG_SED]) | ||
1137 | 561 | AC_CACHE_CHECK([$1], [$2], | ||
1138 | 562 | [$2=no | ||
1139 | 563 | ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | ||
1140 | 564 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
1141 | 565 | lt_compiler_flag="$3" | ||
1142 | 566 | # Insert the option either (1) after the last *FLAGS variable, or | ||
1143 | 567 | # (2) before a word containing "conftest.", or (3) at the end. | ||
1144 | 568 | # Note that $ac_compile itself does not contain backslashes and begins | ||
1145 | 569 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
1146 | 570 | # The option is referenced via a variable to avoid confusing sed. | ||
1147 | 571 | lt_compile=`echo "$ac_compile" | $SED \ | ||
1148 | 572 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
1149 | 573 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
1150 | 574 | -e 's:$: $lt_compiler_flag:'` | ||
1151 | 575 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
1152 | 576 | (eval "$lt_compile" 2>conftest.err) | ||
1153 | 577 | ac_status=$? | ||
1154 | 578 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1155 | 579 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
1156 | 580 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
1157 | 581 | # The compiler can only warn and ignore the option if not recognized | ||
1158 | 582 | # So say no if there are warnings | ||
1159 | 583 | if test ! -s conftest.err; then | ||
1160 | 584 | $2=yes | ||
1161 | 585 | fi | ||
1162 | 586 | fi | ||
1163 | 587 | $rm conftest* | ||
1164 | 588 | ]) | ||
1165 | 589 | |||
1166 | 590 | if test x"[$]$2" = xyes; then | ||
1167 | 591 | ifelse([$5], , :, [$5]) | ||
1168 | 592 | else | ||
1169 | 593 | ifelse([$6], , :, [$6]) | ||
1170 | 594 | fi | ||
1171 | 595 | ])# AC_LIBTOOL_COMPILER_OPTION | ||
1172 | 596 | |||
1173 | 597 | |||
1174 | 598 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
1175 | 599 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
1176 | 600 | # ------------------------------------------------------------ | ||
1177 | 601 | # Check whether the given compiler option works | ||
1178 | 602 | AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], | ||
1179 | 603 | [AC_CACHE_CHECK([$1], [$2], | ||
1180 | 604 | [$2=no | ||
1181 | 605 | save_LDFLAGS="$LDFLAGS" | ||
1182 | 606 | LDFLAGS="$LDFLAGS $3" | ||
1183 | 607 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
1184 | 608 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
1185 | 609 | # The compiler can only warn and ignore the option if not recognized | ||
1186 | 610 | # So say no if there are warnings | ||
1187 | 611 | if test -s conftest.err; then | ||
1188 | 612 | # Append any errors to the config.log. | ||
1189 | 613 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | ||
1190 | 614 | else | ||
1191 | 615 | $2=yes | ||
1192 | 616 | fi | ||
1193 | 617 | fi | ||
1194 | 618 | $rm conftest* | ||
1195 | 619 | LDFLAGS="$save_LDFLAGS" | ||
1196 | 620 | ]) | ||
1197 | 621 | |||
1198 | 622 | if test x"[$]$2" = xyes; then | ||
1199 | 623 | ifelse([$4], , :, [$4]) | ||
1200 | 624 | else | ||
1201 | 625 | ifelse([$5], , :, [$5]) | ||
1202 | 626 | fi | ||
1203 | 627 | ])# AC_LIBTOOL_LINKER_OPTION | ||
1204 | 628 | |||
1205 | 629 | |||
1206 | 630 | # AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
1207 | 631 | # -------------------------- | ||
1208 | 632 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | ||
1209 | 633 | [# find the maximum length of command line arguments | ||
1210 | 634 | AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
1211 | 635 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
1212 | 636 | i=0 | ||
1213 | 637 | teststring="ABCD" | ||
1214 | 638 | |||
1215 | 639 | case $build_os in | ||
1216 | 640 | msdosdjgpp*) | ||
1217 | 641 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
1218 | 642 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
1219 | 643 | # during glob expansion). Even if it were fixed, the result of this | ||
1220 | 644 | # check would be larger than it should be. | ||
1221 | 645 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
1222 | 646 | ;; | ||
1223 | 647 | |||
1224 | 648 | gnu*) | ||
1225 | 649 | # Under GNU Hurd, this test is not required because there is | ||
1226 | 650 | # no limit to the length of command line arguments. | ||
1227 | 651 | # Libtool will interpret -1 as no limit whatsoever | ||
1228 | 652 | lt_cv_sys_max_cmd_len=-1; | ||
1229 | 653 | ;; | ||
1230 | 654 | |||
1231 | 655 | cygwin* | mingw*) | ||
1232 | 656 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
1233 | 657 | # about 5 minutes as the teststring grows exponentially. | ||
1234 | 658 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
1235 | 659 | # you end up with a "frozen" computer, even though with patience | ||
1236 | 660 | # the test eventually succeeds (with a max line length of 256k). | ||
1237 | 661 | # Instead, let's just punt: use the minimum linelength reported by | ||
1238 | 662 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
1239 | 663 | lt_cv_sys_max_cmd_len=8192; | ||
1240 | 664 | ;; | ||
1241 | 665 | |||
1242 | 666 | amigaos*) | ||
1243 | 667 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
1244 | 668 | # So we just punt and use a minimum line length of 8192. | ||
1245 | 669 | lt_cv_sys_max_cmd_len=8192; | ||
1246 | 670 | ;; | ||
1247 | 671 | |||
1248 | 672 | netbsd* | freebsd* | openbsd* | darwin* ) | ||
1249 | 673 | # This has been around since 386BSD, at least. Likely further. | ||
1250 | 674 | if test -x /sbin/sysctl; then | ||
1251 | 675 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
1252 | 676 | elif test -x /usr/sbin/sysctl; then | ||
1253 | 677 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
1254 | 678 | else | ||
1255 | 679 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | ||
1256 | 680 | fi | ||
1257 | 681 | # And add a safety zone | ||
1258 | 682 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
1259 | 683 | ;; | ||
1260 | 684 | |||
1261 | 685 | *) | ||
1262 | 686 | # If test is not a shell built-in, we'll probably end up computing a | ||
1263 | 687 | # maximum length that is only half of the actual maximum length, but | ||
1264 | 688 | # we can't tell. | ||
1265 | 689 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
1266 | 690 | while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | ||
1267 | 691 | = "XX$teststring") >/dev/null 2>&1 && | ||
1268 | 692 | new_result=`expr "X$teststring" : ".*" 2>&1` && | ||
1269 | 693 | lt_cv_sys_max_cmd_len=$new_result && | ||
1270 | 694 | test $i != 17 # 1/2 MB should be enough | ||
1271 | 695 | do | ||
1272 | 696 | i=`expr $i + 1` | ||
1273 | 697 | teststring=$teststring$teststring | ||
1274 | 698 | done | ||
1275 | 699 | teststring= | ||
1276 | 700 | # Add a significant safety factor because C++ compilers can tack on massive | ||
1277 | 701 | # amounts of additional arguments before passing them to the linker. | ||
1278 | 702 | # It appears as though 1/2 is a usable value. | ||
1279 | 703 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
1280 | 704 | ;; | ||
1281 | 705 | esac | ||
1282 | 706 | ]) | ||
1283 | 707 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
1284 | 708 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | ||
1285 | 709 | else | ||
1286 | 710 | AC_MSG_RESULT(none) | ||
1287 | 711 | fi | ||
1288 | 712 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
1289 | 713 | |||
1290 | 714 | |||
1291 | 715 | # _LT_AC_CHECK_DLFCN | ||
1292 | 716 | # -------------------- | ||
1293 | 717 | AC_DEFUN([_LT_AC_CHECK_DLFCN], | ||
1294 | 718 | [AC_CHECK_HEADERS(dlfcn.h)dnl | ||
1295 | 719 | ])# _LT_AC_CHECK_DLFCN | ||
1296 | 720 | |||
1297 | 721 | |||
1298 | 722 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | ||
1299 | 723 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | ||
1300 | 724 | # ------------------------------------------------------------------ | ||
1301 | 725 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | ||
1302 | 726 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
1303 | 727 | if test "$cross_compiling" = yes; then : | ||
1304 | 728 | [$4] | ||
1305 | 729 | else | ||
1306 | 730 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
1307 | 731 | lt_status=$lt_dlunknown | ||
1308 | 732 | cat > conftest.$ac_ext <<EOF | ||
1309 | 733 | [#line __oline__ "configure" | ||
1310 | 734 | #include "confdefs.h" | ||
1311 | 735 | |||
1312 | 736 | #if HAVE_DLFCN_H | ||
1313 | 737 | #include <dlfcn.h> | ||
1314 | 738 | #endif | ||
1315 | 739 | |||
1316 | 740 | #include <stdio.h> | ||
1317 | 741 | |||
1318 | 742 | #ifdef RTLD_GLOBAL | ||
1319 | 743 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
1320 | 744 | #else | ||
1321 | 745 | # ifdef DL_GLOBAL | ||
1322 | 746 | # define LT_DLGLOBAL DL_GLOBAL | ||
1323 | 747 | # else | ||
1324 | 748 | # define LT_DLGLOBAL 0 | ||
1325 | 749 | # endif | ||
1326 | 750 | #endif | ||
1327 | 751 | |||
1328 | 752 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
1329 | 753 | find out it does not work in some platform. */ | ||
1330 | 754 | #ifndef LT_DLLAZY_OR_NOW | ||
1331 | 755 | # ifdef RTLD_LAZY | ||
1332 | 756 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
1333 | 757 | # else | ||
1334 | 758 | # ifdef DL_LAZY | ||
1335 | 759 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
1336 | 760 | # else | ||
1337 | 761 | # ifdef RTLD_NOW | ||
1338 | 762 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
1339 | 763 | # else | ||
1340 | 764 | # ifdef DL_NOW | ||
1341 | 765 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
1342 | 766 | # else | ||
1343 | 767 | # define LT_DLLAZY_OR_NOW 0 | ||
1344 | 768 | # endif | ||
1345 | 769 | # endif | ||
1346 | 770 | # endif | ||
1347 | 771 | # endif | ||
1348 | 772 | #endif | ||
1349 | 773 | |||
1350 | 774 | #ifdef __cplusplus | ||
1351 | 775 | extern "C" void exit (int); | ||
1352 | 776 | #endif | ||
1353 | 777 | |||
1354 | 778 | void fnord() { int i=42;} | ||
1355 | 779 | int main () | ||
1356 | 780 | { | ||
1357 | 781 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
1358 | 782 | int status = $lt_dlunknown; | ||
1359 | 783 | |||
1360 | 784 | if (self) | ||
1361 | 785 | { | ||
1362 | 786 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
1363 | 787 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
1364 | 788 | /* dlclose (self); */ | ||
1365 | 789 | } | ||
1366 | 790 | |||
1367 | 791 | exit (status); | ||
1368 | 792 | }] | ||
1369 | 793 | EOF | ||
1370 | 794 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | ||
1371 | 795 | (./conftest; exit; ) 2>/dev/null | ||
1372 | 796 | lt_status=$? | ||
1373 | 797 | case x$lt_status in | ||
1374 | 798 | x$lt_dlno_uscore) $1 ;; | ||
1375 | 799 | x$lt_dlneed_uscore) $2 ;; | ||
1376 | 800 | x$lt_unknown|x*) $3 ;; | ||
1377 | 801 | esac | ||
1378 | 802 | else : | ||
1379 | 803 | # compilation failed | ||
1380 | 804 | $3 | ||
1381 | 805 | fi | ||
1382 | 806 | fi | ||
1383 | 807 | rm -fr conftest* | ||
1384 | 808 | ])# _LT_AC_TRY_DLOPEN_SELF | ||
1385 | 809 | |||
1386 | 810 | |||
1387 | 811 | # AC_LIBTOOL_DLOPEN_SELF | ||
1388 | 812 | # ------------------- | ||
1389 | 813 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | ||
1390 | 814 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
1391 | 815 | if test "x$enable_dlopen" != xyes; then | ||
1392 | 816 | enable_dlopen=unknown | ||
1393 | 817 | enable_dlopen_self=unknown | ||
1394 | 818 | enable_dlopen_self_static=unknown | ||
1395 | 819 | else | ||
1396 | 820 | lt_cv_dlopen=no | ||
1397 | 821 | lt_cv_dlopen_libs= | ||
1398 | 822 | |||
1399 | 823 | case $host_os in | ||
1400 | 824 | beos*) | ||
1401 | 825 | lt_cv_dlopen="load_add_on" | ||
1402 | 826 | lt_cv_dlopen_libs= | ||
1403 | 827 | lt_cv_dlopen_self=yes | ||
1404 | 828 | ;; | ||
1405 | 829 | |||
1406 | 830 | mingw* | pw32*) | ||
1407 | 831 | lt_cv_dlopen="LoadLibrary" | ||
1408 | 832 | lt_cv_dlopen_libs= | ||
1409 | 833 | ;; | ||
1410 | 834 | |||
1411 | 835 | cygwin*) | ||
1412 | 836 | lt_cv_dlopen="dlopen" | ||
1413 | 837 | lt_cv_dlopen_libs= | ||
1414 | 838 | ;; | ||
1415 | 839 | |||
1416 | 840 | darwin*) | ||
1417 | 841 | # if libdl is installed we need to link against it | ||
1418 | 842 | AC_CHECK_LIB([dl], [dlopen], | ||
1419 | 843 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
1420 | 844 | lt_cv_dlopen="dyld" | ||
1421 | 845 | lt_cv_dlopen_libs= | ||
1422 | 846 | lt_cv_dlopen_self=yes | ||
1423 | 847 | ]) | ||
1424 | 848 | ;; | ||
1425 | 849 | |||
1426 | 850 | *) | ||
1427 | 851 | AC_CHECK_FUNC([shl_load], | ||
1428 | 852 | [lt_cv_dlopen="shl_load"], | ||
1429 | 853 | [AC_CHECK_LIB([dld], [shl_load], | ||
1430 | 854 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], | ||
1431 | 855 | [AC_CHECK_FUNC([dlopen], | ||
1432 | 856 | [lt_cv_dlopen="dlopen"], | ||
1433 | 857 | [AC_CHECK_LIB([dl], [dlopen], | ||
1434 | 858 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | ||
1435 | 859 | [AC_CHECK_LIB([svld], [dlopen], | ||
1436 | 860 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | ||
1437 | 861 | [AC_CHECK_LIB([dld], [dld_link], | ||
1438 | 862 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) | ||
1439 | 863 | ]) | ||
1440 | 864 | ]) | ||
1441 | 865 | ]) | ||
1442 | 866 | ]) | ||
1443 | 867 | ]) | ||
1444 | 868 | ;; | ||
1445 | 869 | esac | ||
1446 | 870 | |||
1447 | 871 | if test "x$lt_cv_dlopen" != xno; then | ||
1448 | 872 | enable_dlopen=yes | ||
1449 | 873 | else | ||
1450 | 874 | enable_dlopen=no | ||
1451 | 875 | fi | ||
1452 | 876 | |||
1453 | 877 | case $lt_cv_dlopen in | ||
1454 | 878 | dlopen) | ||
1455 | 879 | save_CPPFLAGS="$CPPFLAGS" | ||
1456 | 880 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
1457 | 881 | |||
1458 | 882 | save_LDFLAGS="$LDFLAGS" | ||
1459 | 883 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
1460 | 884 | |||
1461 | 885 | save_LIBS="$LIBS" | ||
1462 | 886 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
1463 | 887 | |||
1464 | 888 | AC_CACHE_CHECK([whether a program can dlopen itself], | ||
1465 | 889 | lt_cv_dlopen_self, [dnl | ||
1466 | 890 | _LT_AC_TRY_DLOPEN_SELF( | ||
1467 | 891 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | ||
1468 | 892 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | ||
1469 | 893 | ]) | ||
1470 | 894 | |||
1471 | 895 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
1472 | 896 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
1473 | 897 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | ||
1474 | 898 | lt_cv_dlopen_self_static, [dnl | ||
1475 | 899 | _LT_AC_TRY_DLOPEN_SELF( | ||
1476 | 900 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
1477 | 901 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
1478 | 902 | ]) | ||
1479 | 903 | fi | ||
1480 | 904 | |||
1481 | 905 | CPPFLAGS="$save_CPPFLAGS" | ||
1482 | 906 | LDFLAGS="$save_LDFLAGS" | ||
1483 | 907 | LIBS="$save_LIBS" | ||
1484 | 908 | ;; | ||
1485 | 909 | esac | ||
1486 | 910 | |||
1487 | 911 | case $lt_cv_dlopen_self in | ||
1488 | 912 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
1489 | 913 | *) enable_dlopen_self=unknown ;; | ||
1490 | 914 | esac | ||
1491 | 915 | |||
1492 | 916 | case $lt_cv_dlopen_self_static in | ||
1493 | 917 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
1494 | 918 | *) enable_dlopen_self_static=unknown ;; | ||
1495 | 919 | esac | ||
1496 | 920 | fi | ||
1497 | 921 | ])# AC_LIBTOOL_DLOPEN_SELF | ||
1498 | 922 | |||
1499 | 923 | |||
1500 | 924 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | ||
1501 | 925 | # --------------------------------- | ||
1502 | 926 | # Check to see if options -c and -o are simultaneously supported by compiler | ||
1503 | 927 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | ||
1504 | 928 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
1505 | 929 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
1506 | 930 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
1507 | 931 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
1508 | 932 | $rm -r conftest 2>/dev/null | ||
1509 | 933 | mkdir conftest | ||
1510 | 934 | cd conftest | ||
1511 | 935 | mkdir out | ||
1512 | 936 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
1513 | 937 | |||
1514 | 938 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
1515 | 939 | # Insert the option either (1) after the last *FLAGS variable, or | ||
1516 | 940 | # (2) before a word containing "conftest.", or (3) at the end. | ||
1517 | 941 | # Note that $ac_compile itself does not contain backslashes and begins | ||
1518 | 942 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
1519 | 943 | lt_compile=`echo "$ac_compile" | $SED \ | ||
1520 | 944 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
1521 | 945 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
1522 | 946 | -e 's:$: $lt_compiler_flag:'` | ||
1523 | 947 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
1524 | 948 | (eval "$lt_compile" 2>out/conftest.err) | ||
1525 | 949 | ac_status=$? | ||
1526 | 950 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | ||
1527 | 951 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
1528 | 952 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
1529 | 953 | then | ||
1530 | 954 | # The compiler can only warn and ignore the option if not recognized | ||
1531 | 955 | # So say no if there are warnings | ||
1532 | 956 | if test ! -s out/conftest.err; then | ||
1533 | 957 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
1534 | 958 | fi | ||
1535 | 959 | fi | ||
1536 | 960 | chmod u+w . | ||
1537 | 961 | $rm conftest* | ||
1538 | 962 | # SGI C++ compiler will create directory out/ii_files/ for | ||
1539 | 963 | # template instantiation | ||
1540 | 964 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
1541 | 965 | $rm out/* && rmdir out | ||
1542 | 966 | cd .. | ||
1543 | 967 | rmdir conftest | ||
1544 | 968 | $rm conftest* | ||
1545 | 969 | ]) | ||
1546 | 970 | ])# AC_LIBTOOL_PROG_CC_C_O | ||
1547 | 971 | |||
1548 | 972 | |||
1549 | 973 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) | ||
1550 | 974 | # ----------------------------------------- | ||
1551 | 975 | # Check to see if we can do hard links to lock some files if needed | ||
1552 | 976 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], | ||
1553 | 977 | [AC_REQUIRE([_LT_AC_LOCK])dnl | ||
1554 | 978 | |||
1555 | 979 | hard_links="nottested" | ||
1556 | 980 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | ||
1557 | 981 | # do not overwrite the value of need_locks provided by the user | ||
1558 | 982 | AC_MSG_CHECKING([if we can lock with hard links]) | ||
1559 | 983 | hard_links=yes | ||
1560 | 984 | $rm conftest* | ||
1561 | 985 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
1562 | 986 | touch conftest.a | ||
1563 | 987 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
1564 | 988 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
1565 | 989 | AC_MSG_RESULT([$hard_links]) | ||
1566 | 990 | if test "$hard_links" = no; then | ||
1567 | 991 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | ||
1568 | 992 | need_locks=warn | ||
1569 | 993 | fi | ||
1570 | 994 | else | ||
1571 | 995 | need_locks=no | ||
1572 | 996 | fi | ||
1573 | 997 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS | ||
1574 | 998 | |||
1575 | 999 | |||
1576 | 1000 | # AC_LIBTOOL_OBJDIR | ||
1577 | 1001 | # ----------------- | ||
1578 | 1002 | AC_DEFUN([AC_LIBTOOL_OBJDIR], | ||
1579 | 1003 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | ||
1580 | 1004 | [rm -f .libs 2>/dev/null | ||
1581 | 1005 | mkdir .libs 2>/dev/null | ||
1582 | 1006 | if test -d .libs; then | ||
1583 | 1007 | lt_cv_objdir=.libs | ||
1584 | 1008 | else | ||
1585 | 1009 | # MS-DOS does not allow filenames that begin with a dot. | ||
1586 | 1010 | lt_cv_objdir=_libs | ||
1587 | 1011 | fi | ||
1588 | 1012 | rmdir .libs 2>/dev/null]) | ||
1589 | 1013 | objdir=$lt_cv_objdir | ||
1590 | 1014 | ])# AC_LIBTOOL_OBJDIR | ||
1591 | 1015 | |||
1592 | 1016 | |||
1593 | 1017 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) | ||
1594 | 1018 | # ---------------------------------------------- | ||
1595 | 1019 | # Check hardcoding attributes. | ||
1596 | 1020 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | ||
1597 | 1021 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | ||
1598 | 1022 | _LT_AC_TAGVAR(hardcode_action, $1)= | ||
1599 | 1023 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | ||
1600 | 1024 | test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | ||
1601 | 1025 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | ||
1602 | 1026 | |||
1603 | 1027 | # We can hardcode non-existant directories. | ||
1604 | 1028 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | ||
1605 | 1029 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
1606 | 1030 | # have to relink, otherwise we might link with an installed library | ||
1607 | 1031 | # when we should be linking with a yet-to-be-installed one | ||
1608 | 1032 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && | ||
1609 | 1033 | test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then | ||
1610 | 1034 | # Linking always hardcodes the temporary library directory. | ||
1611 | 1035 | _LT_AC_TAGVAR(hardcode_action, $1)=relink | ||
1612 | 1036 | else | ||
1613 | 1037 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
1614 | 1038 | _LT_AC_TAGVAR(hardcode_action, $1)=immediate | ||
1615 | 1039 | fi | ||
1616 | 1040 | else | ||
1617 | 1041 | # We cannot hardcode anything, or else we can only hardcode existing | ||
1618 | 1042 | # directories. | ||
1619 | 1043 | _LT_AC_TAGVAR(hardcode_action, $1)=unsupported | ||
1620 | 1044 | fi | ||
1621 | 1045 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) | ||
1622 | 1046 | |||
1623 | 1047 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then | ||
1624 | 1048 | # Fast installation is not supported | ||
1625 | 1049 | enable_fast_install=no | ||
1626 | 1050 | elif test "$shlibpath_overrides_runpath" = yes || | ||
1627 | 1051 | test "$enable_shared" = no; then | ||
1628 | 1052 | # Fast installation is not necessary | ||
1629 | 1053 | enable_fast_install=needless | ||
1630 | 1054 | fi | ||
1631 | 1055 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH | ||
1632 | 1056 | |||
1633 | 1057 | |||
1634 | 1058 | # AC_LIBTOOL_SYS_LIB_STRIP | ||
1635 | 1059 | # ------------------------ | ||
1636 | 1060 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], | ||
1637 | 1061 | [striplib= | ||
1638 | 1062 | old_striplib= | ||
1639 | 1063 | AC_MSG_CHECKING([whether stripping libraries is possible]) | ||
1640 | 1064 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
1641 | 1065 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
1642 | 1066 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
1643 | 1067 | AC_MSG_RESULT([yes]) | ||
1644 | 1068 | else | ||
1645 | 1069 | # FIXME - insert some real tests, host_os isn't really good enough | ||
1646 | 1070 | case $host_os in | ||
1647 | 1071 | darwin*) | ||
1648 | 1072 | if test -n "$STRIP" ; then | ||
1649 | 1073 | striplib="$STRIP -x" | ||
1650 | 1074 | AC_MSG_RESULT([yes]) | ||
1651 | 1075 | else | ||
1652 | 1076 | AC_MSG_RESULT([no]) | ||
1653 | 1077 | fi | ||
1654 | 1078 | ;; | ||
1655 | 1079 | *) | ||
1656 | 1080 | AC_MSG_RESULT([no]) | ||
1657 | 1081 | ;; | ||
1658 | 1082 | esac | ||
1659 | 1083 | fi | ||
1660 | 1084 | ])# AC_LIBTOOL_SYS_LIB_STRIP | ||
1661 | 1085 | |||
1662 | 1086 | |||
1663 | 1087 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
1664 | 1088 | # ----------------------------- | ||
1665 | 1089 | # PORTME Fill in your ld.so characteristics | ||
1666 | 1090 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], | ||
1667 | 1091 | [AC_MSG_CHECKING([dynamic linker characteristics]) | ||
1668 | 1092 | library_names_spec= | ||
1669 | 1093 | libname_spec='lib$name' | ||
1670 | 1094 | soname_spec= | ||
1671 | 1095 | shrext_cmds=".so" | ||
1672 | 1096 | postinstall_cmds= | ||
1673 | 1097 | postuninstall_cmds= | ||
1674 | 1098 | finish_cmds= | ||
1675 | 1099 | finish_eval= | ||
1676 | 1100 | shlibpath_var= | ||
1677 | 1101 | shlibpath_overrides_runpath=unknown | ||
1678 | 1102 | version_type=none | ||
1679 | 1103 | dynamic_linker="$host_os ld.so" | ||
1680 | 1104 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
1681 | 1105 | if test "$GCC" = yes; then | ||
1682 | 1106 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
1683 | 1107 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
1684 | 1108 | # if the path contains ";" then we assume it to be the separator | ||
1685 | 1109 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
1686 | 1110 | # assumed that no part of a normal pathname contains ";" but that should | ||
1687 | 1111 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
1688 | 1112 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
1689 | 1113 | else | ||
1690 | 1114 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
1691 | 1115 | fi | ||
1692 | 1116 | else | ||
1693 | 1117 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
1694 | 1118 | fi | ||
1695 | 1119 | need_lib_prefix=unknown | ||
1696 | 1120 | hardcode_into_libs=no | ||
1697 | 1121 | |||
1698 | 1122 | # when you set need_version to no, make sure it does not cause -set_version | ||
1699 | 1123 | # flags to be left without arguments | ||
1700 | 1124 | need_version=unknown | ||
1701 | 1125 | |||
1702 | 1126 | case $host_os in | ||
1703 | 1127 | aix3*) | ||
1704 | 1128 | version_type=linux | ||
1705 | 1129 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
1706 | 1130 | shlibpath_var=LIBPATH | ||
1707 | 1131 | |||
1708 | 1132 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
1709 | 1133 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1710 | 1134 | ;; | ||
1711 | 1135 | |||
1712 | 1136 | aix4* | aix5*) | ||
1713 | 1137 | version_type=linux | ||
1714 | 1138 | need_lib_prefix=no | ||
1715 | 1139 | need_version=no | ||
1716 | 1140 | hardcode_into_libs=yes | ||
1717 | 1141 | if test "$host_cpu" = ia64; then | ||
1718 | 1142 | # AIX 5 supports IA64 | ||
1719 | 1143 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
1720 | 1144 | shlibpath_var=LD_LIBRARY_PATH | ||
1721 | 1145 | else | ||
1722 | 1146 | # With GCC up to 2.95.x, collect2 would create an import file | ||
1723 | 1147 | # for dependence libraries. The import file would start with | ||
1724 | 1148 | # the line `#! .'. This would cause the generated library to | ||
1725 | 1149 | # depend on `.', always an invalid library. This was fixed in | ||
1726 | 1150 | # development snapshots of GCC prior to 3.0. | ||
1727 | 1151 | case $host_os in | ||
1728 | 1152 | aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
1729 | 1153 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
1730 | 1154 | echo ' yes ' | ||
1731 | 1155 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
1732 | 1156 | : | ||
1733 | 1157 | else | ||
1734 | 1158 | can_build_shared=no | ||
1735 | 1159 | fi | ||
1736 | 1160 | ;; | ||
1737 | 1161 | esac | ||
1738 | 1162 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
1739 | 1163 | # soname into executable. Probably we can add versioning support to | ||
1740 | 1164 | # collect2, so additional links can be useful in future. | ||
1741 | 1165 | if test "$aix_use_runtimelinking" = yes; then | ||
1742 | 1166 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
1743 | 1167 | # instead of lib<name>.a to let people know that these are not | ||
1744 | 1168 | # typical AIX shared libraries. | ||
1745 | 1169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1746 | 1170 | else | ||
1747 | 1171 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
1748 | 1172 | # and later when we are not doing run time linking. | ||
1749 | 1173 | library_names_spec='${libname}${release}.a $libname.a' | ||
1750 | 1174 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1751 | 1175 | fi | ||
1752 | 1176 | shlibpath_var=LIBPATH | ||
1753 | 1177 | fi | ||
1754 | 1178 | ;; | ||
1755 | 1179 | |||
1756 | 1180 | amigaos*) | ||
1757 | 1181 | library_names_spec='$libname.ixlibrary $libname.a' | ||
1758 | 1182 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
1759 | 1183 | 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' | ||
1760 | 1184 | ;; | ||
1761 | 1185 | |||
1762 | 1186 | beos*) | ||
1763 | 1187 | library_names_spec='${libname}${shared_ext}' | ||
1764 | 1188 | dynamic_linker="$host_os ld.so" | ||
1765 | 1189 | shlibpath_var=LIBRARY_PATH | ||
1766 | 1190 | ;; | ||
1767 | 1191 | |||
1768 | 1192 | bsdi[[45]]*) | ||
1769 | 1193 | version_type=linux | ||
1770 | 1194 | need_version=no | ||
1771 | 1195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1772 | 1196 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1773 | 1197 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
1774 | 1198 | shlibpath_var=LD_LIBRARY_PATH | ||
1775 | 1199 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
1776 | 1200 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
1777 | 1201 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
1778 | 1202 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
1779 | 1203 | # libtool to hard-code these into programs | ||
1780 | 1204 | ;; | ||
1781 | 1205 | |||
1782 | 1206 | cygwin* | mingw* | pw32*) | ||
1783 | 1207 | version_type=windows | ||
1784 | 1208 | shrext_cmds=".dll" | ||
1785 | 1209 | need_version=no | ||
1786 | 1210 | need_lib_prefix=no | ||
1787 | 1211 | |||
1788 | 1212 | case $GCC,$host_os in | ||
1789 | 1213 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
1790 | 1214 | library_names_spec='$libname.dll.a' | ||
1791 | 1215 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
1792 | 1216 | postinstall_cmds='base_file=`basename \${file}`~ | ||
1793 | 1217 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
1794 | 1218 | dldir=$destdir/`dirname \$dlpath`~ | ||
1795 | 1219 | test -d \$dldir || mkdir -p \$dldir~ | ||
1796 | 1220 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
1797 | 1221 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
1798 | 1222 | dlpath=$dir/\$dldll~ | ||
1799 | 1223 | $rm \$dlpath' | ||
1800 | 1224 | shlibpath_overrides_runpath=yes | ||
1801 | 1225 | |||
1802 | 1226 | case $host_os in | ||
1803 | 1227 | cygwin*) | ||
1804 | 1228 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
1805 | 1229 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
1806 | 1230 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
1807 | 1231 | ;; | ||
1808 | 1232 | mingw*) | ||
1809 | 1233 | # MinGW DLLs use traditional 'lib' prefix | ||
1810 | 1234 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
1811 | 1235 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
1812 | 1236 | if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then | ||
1813 | 1237 | # It is most probably a Windows format PATH printed by | ||
1814 | 1238 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
1815 | 1239 | # path with ; separators, and with drive letters. We can handle the | ||
1816 | 1240 | # drive letters (cygwin fileutils understands them), so leave them, | ||
1817 | 1241 | # especially as we might pass files found there to a mingw objdump, | ||
1818 | 1242 | # which wouldn't understand a cygwinified path. Ahh. | ||
1819 | 1243 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
1820 | 1244 | else | ||
1821 | 1245 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
1822 | 1246 | fi | ||
1823 | 1247 | ;; | ||
1824 | 1248 | pw32*) | ||
1825 | 1249 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
1826 | 1250 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
1827 | 1251 | ;; | ||
1828 | 1252 | esac | ||
1829 | 1253 | ;; | ||
1830 | 1254 | |||
1831 | 1255 | *) | ||
1832 | 1256 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
1833 | 1257 | ;; | ||
1834 | 1258 | esac | ||
1835 | 1259 | dynamic_linker='Win32 ld.exe' | ||
1836 | 1260 | # FIXME: first we should search . and the directory the executable is in | ||
1837 | 1261 | shlibpath_var=PATH | ||
1838 | 1262 | ;; | ||
1839 | 1263 | |||
1840 | 1264 | darwin* | rhapsody*) | ||
1841 | 1265 | dynamic_linker="$host_os dyld" | ||
1842 | 1266 | version_type=darwin | ||
1843 | 1267 | need_lib_prefix=no | ||
1844 | 1268 | need_version=no | ||
1845 | 1269 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
1846 | 1270 | soname_spec='${libname}${release}${major}$shared_ext' | ||
1847 | 1271 | shlibpath_overrides_runpath=yes | ||
1848 | 1272 | shlibpath_var=DYLD_LIBRARY_PATH | ||
1849 | 1273 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | ||
1850 | 1274 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
1851 | 1275 | if test "$GCC" = yes; then | ||
1852 | 1276 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | ||
1853 | 1277 | else | ||
1854 | 1278 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
1855 | 1279 | fi | ||
1856 | 1280 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
1857 | 1281 | ;; | ||
1858 | 1282 | |||
1859 | 1283 | dgux*) | ||
1860 | 1284 | version_type=linux | ||
1861 | 1285 | need_lib_prefix=no | ||
1862 | 1286 | need_version=no | ||
1863 | 1287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
1864 | 1288 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1865 | 1289 | shlibpath_var=LD_LIBRARY_PATH | ||
1866 | 1290 | ;; | ||
1867 | 1291 | |||
1868 | 1292 | freebsd1*) | ||
1869 | 1293 | dynamic_linker=no | ||
1870 | 1294 | ;; | ||
1871 | 1295 | |||
1872 | 1296 | kfreebsd*-gnu) | ||
1873 | 1297 | version_type=linux | ||
1874 | 1298 | need_lib_prefix=no | ||
1875 | 1299 | need_version=no | ||
1876 | 1300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
1877 | 1301 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1878 | 1302 | shlibpath_var=LD_LIBRARY_PATH | ||
1879 | 1303 | shlibpath_overrides_runpath=no | ||
1880 | 1304 | hardcode_into_libs=yes | ||
1881 | 1305 | dynamic_linker='GNU ld.so' | ||
1882 | 1306 | ;; | ||
1883 | 1307 | |||
1884 | 1308 | freebsd*) | ||
1885 | 1309 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
1886 | 1310 | version_type=freebsd-$objformat | ||
1887 | 1311 | case $version_type in | ||
1888 | 1312 | freebsd-elf*) | ||
1889 | 1313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
1890 | 1314 | need_version=no | ||
1891 | 1315 | need_lib_prefix=no | ||
1892 | 1316 | ;; | ||
1893 | 1317 | freebsd-*) | ||
1894 | 1318 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
1895 | 1319 | need_version=yes | ||
1896 | 1320 | ;; | ||
1897 | 1321 | esac | ||
1898 | 1322 | shlibpath_var=LD_LIBRARY_PATH | ||
1899 | 1323 | case $host_os in | ||
1900 | 1324 | freebsd2*) | ||
1901 | 1325 | shlibpath_overrides_runpath=yes | ||
1902 | 1326 | ;; | ||
1903 | 1327 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
1904 | 1328 | shlibpath_overrides_runpath=yes | ||
1905 | 1329 | hardcode_into_libs=yes | ||
1906 | 1330 | ;; | ||
1907 | 1331 | *) # from 3.2 on | ||
1908 | 1332 | shlibpath_overrides_runpath=no | ||
1909 | 1333 | hardcode_into_libs=yes | ||
1910 | 1334 | ;; | ||
1911 | 1335 | esac | ||
1912 | 1336 | ;; | ||
1913 | 1337 | |||
1914 | 1338 | gnu*) | ||
1915 | 1339 | version_type=linux | ||
1916 | 1340 | need_lib_prefix=no | ||
1917 | 1341 | need_version=no | ||
1918 | 1342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
1919 | 1343 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1920 | 1344 | shlibpath_var=LD_LIBRARY_PATH | ||
1921 | 1345 | hardcode_into_libs=yes | ||
1922 | 1346 | ;; | ||
1923 | 1347 | |||
1924 | 1348 | hpux9* | hpux10* | hpux11*) | ||
1925 | 1349 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
1926 | 1350 | # link against other versions. | ||
1927 | 1351 | version_type=sunos | ||
1928 | 1352 | need_lib_prefix=no | ||
1929 | 1353 | need_version=no | ||
1930 | 1354 | case "$host_cpu" in | ||
1931 | 1355 | ia64*) | ||
1932 | 1356 | shrext_cmds='.so' | ||
1933 | 1357 | hardcode_into_libs=yes | ||
1934 | 1358 | dynamic_linker="$host_os dld.so" | ||
1935 | 1359 | shlibpath_var=LD_LIBRARY_PATH | ||
1936 | 1360 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
1937 | 1361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1938 | 1362 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1939 | 1363 | if test "X$HPUX_IA64_MODE" = X32; then | ||
1940 | 1364 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
1941 | 1365 | else | ||
1942 | 1366 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
1943 | 1367 | fi | ||
1944 | 1368 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
1945 | 1369 | ;; | ||
1946 | 1370 | hppa*64*) | ||
1947 | 1371 | shrext_cmds='.sl' | ||
1948 | 1372 | hardcode_into_libs=yes | ||
1949 | 1373 | dynamic_linker="$host_os dld.sl" | ||
1950 | 1374 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
1951 | 1375 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
1952 | 1376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1953 | 1377 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1954 | 1378 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
1955 | 1379 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
1956 | 1380 | ;; | ||
1957 | 1381 | *) | ||
1958 | 1382 | shrext_cmds='.sl' | ||
1959 | 1383 | dynamic_linker="$host_os dld.sl" | ||
1960 | 1384 | shlibpath_var=SHLIB_PATH | ||
1961 | 1385 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
1962 | 1386 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1963 | 1387 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1964 | 1388 | ;; | ||
1965 | 1389 | esac | ||
1966 | 1390 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
1967 | 1391 | postinstall_cmds='chmod 555 $lib' | ||
1968 | 1392 | ;; | ||
1969 | 1393 | |||
1970 | 1394 | irix5* | irix6* | nonstopux*) | ||
1971 | 1395 | case $host_os in | ||
1972 | 1396 | nonstopux*) version_type=nonstopux ;; | ||
1973 | 1397 | *) | ||
1974 | 1398 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
1975 | 1399 | version_type=linux | ||
1976 | 1400 | else | ||
1977 | 1401 | version_type=irix | ||
1978 | 1402 | fi ;; | ||
1979 | 1403 | esac | ||
1980 | 1404 | need_lib_prefix=no | ||
1981 | 1405 | need_version=no | ||
1982 | 1406 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1983 | 1407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
1984 | 1408 | case $host_os in | ||
1985 | 1409 | irix5* | nonstopux*) | ||
1986 | 1410 | libsuff= shlibsuff= | ||
1987 | 1411 | ;; | ||
1988 | 1412 | *) | ||
1989 | 1413 | case $LD in # libtool.m4 will add one of these switches to LD | ||
1990 | 1414 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
1991 | 1415 | libsuff= shlibsuff= libmagic=32-bit;; | ||
1992 | 1416 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
1993 | 1417 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
1994 | 1418 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
1995 | 1419 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
1996 | 1420 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
1997 | 1421 | esac | ||
1998 | 1422 | ;; | ||
1999 | 1423 | esac | ||
2000 | 1424 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
2001 | 1425 | shlibpath_overrides_runpath=no | ||
2002 | 1426 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
2003 | 1427 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
2004 | 1428 | hardcode_into_libs=yes | ||
2005 | 1429 | ;; | ||
2006 | 1430 | |||
2007 | 1431 | # No shared lib support for Linux oldld, aout, or coff. | ||
2008 | 1432 | linux*oldld* | linux*aout* | linux*coff*) | ||
2009 | 1433 | dynamic_linker=no | ||
2010 | 1434 | ;; | ||
2011 | 1435 | |||
2012 | 1436 | # This must be Linux ELF. | ||
2013 | 1437 | linux*) | ||
2014 | 1438 | version_type=linux | ||
2015 | 1439 | need_lib_prefix=no | ||
2016 | 1440 | need_version=no | ||
2017 | 1441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2018 | 1442 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2019 | 1443 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
2020 | 1444 | shlibpath_var=LD_LIBRARY_PATH | ||
2021 | 1445 | shlibpath_overrides_runpath=no | ||
2022 | 1446 | # This implies no fast_install, which is unacceptable. | ||
2023 | 1447 | # Some rework will be needed to allow for fast_install | ||
2024 | 1448 | # before this can be enabled. | ||
2025 | 1449 | hardcode_into_libs=yes | ||
2026 | 1450 | |||
2027 | 1451 | # Append ld.so.conf contents to the search path | ||
2028 | 1452 | if test -f /etc/ld.so.conf; then | ||
2029 | 1453 | lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` | ||
2030 | 1454 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
2031 | 1455 | fi | ||
2032 | 1456 | |||
2033 | 1457 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
2034 | 1458 | # powerpc, because MkLinux only supported shared libraries with the | ||
2035 | 1459 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
2036 | 1460 | # most powerpc-linux boxes support dynamic linking these days and | ||
2037 | 1461 | # people can always --disable-shared, the test was removed, and we | ||
2038 | 1462 | # assume the GNU/Linux dynamic linker is in use. | ||
2039 | 1463 | dynamic_linker='GNU/Linux ld.so' | ||
2040 | 1464 | ;; | ||
2041 | 1465 | |||
2042 | 1466 | knetbsd*-gnu) | ||
2043 | 1467 | version_type=linux | ||
2044 | 1468 | need_lib_prefix=no | ||
2045 | 1469 | need_version=no | ||
2046 | 1470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2047 | 1471 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2048 | 1472 | shlibpath_var=LD_LIBRARY_PATH | ||
2049 | 1473 | shlibpath_overrides_runpath=no | ||
2050 | 1474 | hardcode_into_libs=yes | ||
2051 | 1475 | dynamic_linker='GNU ld.so' | ||
2052 | 1476 | ;; | ||
2053 | 1477 | |||
2054 | 1478 | netbsd*) | ||
2055 | 1479 | version_type=sunos | ||
2056 | 1480 | need_lib_prefix=no | ||
2057 | 1481 | need_version=no | ||
2058 | 1482 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
2059 | 1483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2060 | 1484 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
2061 | 1485 | dynamic_linker='NetBSD (a.out) ld.so' | ||
2062 | 1486 | else | ||
2063 | 1487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2064 | 1488 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2065 | 1489 | dynamic_linker='NetBSD ld.elf_so' | ||
2066 | 1490 | fi | ||
2067 | 1491 | shlibpath_var=LD_LIBRARY_PATH | ||
2068 | 1492 | shlibpath_overrides_runpath=yes | ||
2069 | 1493 | hardcode_into_libs=yes | ||
2070 | 1494 | ;; | ||
2071 | 1495 | |||
2072 | 1496 | newsos6) | ||
2073 | 1497 | version_type=linux | ||
2074 | 1498 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2075 | 1499 | shlibpath_var=LD_LIBRARY_PATH | ||
2076 | 1500 | shlibpath_overrides_runpath=yes | ||
2077 | 1501 | ;; | ||
2078 | 1502 | |||
2079 | 1503 | nto-qnx*) | ||
2080 | 1504 | version_type=linux | ||
2081 | 1505 | need_lib_prefix=no | ||
2082 | 1506 | need_version=no | ||
2083 | 1507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2084 | 1508 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2085 | 1509 | shlibpath_var=LD_LIBRARY_PATH | ||
2086 | 1510 | shlibpath_overrides_runpath=yes | ||
2087 | 1511 | ;; | ||
2088 | 1512 | |||
2089 | 1513 | openbsd*) | ||
2090 | 1514 | version_type=sunos | ||
2091 | 1515 | need_lib_prefix=no | ||
2092 | 1516 | need_version=no | ||
2093 | 1517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2094 | 1518 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
2095 | 1519 | shlibpath_var=LD_LIBRARY_PATH | ||
2096 | 1520 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
2097 | 1521 | case $host_os in | ||
2098 | 1522 | openbsd2.[[89]] | openbsd2.[[89]].*) | ||
2099 | 1523 | shlibpath_overrides_runpath=no | ||
2100 | 1524 | ;; | ||
2101 | 1525 | *) | ||
2102 | 1526 | shlibpath_overrides_runpath=yes | ||
2103 | 1527 | ;; | ||
2104 | 1528 | esac | ||
2105 | 1529 | else | ||
2106 | 1530 | shlibpath_overrides_runpath=yes | ||
2107 | 1531 | fi | ||
2108 | 1532 | ;; | ||
2109 | 1533 | |||
2110 | 1534 | os2*) | ||
2111 | 1535 | libname_spec='$name' | ||
2112 | 1536 | shrext_cmds=".dll" | ||
2113 | 1537 | need_lib_prefix=no | ||
2114 | 1538 | library_names_spec='$libname${shared_ext} $libname.a' | ||
2115 | 1539 | dynamic_linker='OS/2 ld.exe' | ||
2116 | 1540 | shlibpath_var=LIBPATH | ||
2117 | 1541 | ;; | ||
2118 | 1542 | |||
2119 | 1543 | osf3* | osf4* | osf5*) | ||
2120 | 1544 | version_type=osf | ||
2121 | 1545 | need_lib_prefix=no | ||
2122 | 1546 | need_version=no | ||
2123 | 1547 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2124 | 1548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2125 | 1549 | shlibpath_var=LD_LIBRARY_PATH | ||
2126 | 1550 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
2127 | 1551 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
2128 | 1552 | ;; | ||
2129 | 1553 | |||
2130 | 1554 | sco3.2v5*) | ||
2131 | 1555 | version_type=osf | ||
2132 | 1556 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2133 | 1557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2134 | 1558 | shlibpath_var=LD_LIBRARY_PATH | ||
2135 | 1559 | ;; | ||
2136 | 1560 | |||
2137 | 1561 | solaris*) | ||
2138 | 1562 | version_type=linux | ||
2139 | 1563 | need_lib_prefix=no | ||
2140 | 1564 | need_version=no | ||
2141 | 1565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2142 | 1566 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2143 | 1567 | shlibpath_var=LD_LIBRARY_PATH | ||
2144 | 1568 | shlibpath_overrides_runpath=yes | ||
2145 | 1569 | hardcode_into_libs=yes | ||
2146 | 1570 | # ldd complains unless libraries are executable | ||
2147 | 1571 | postinstall_cmds='chmod +x $lib' | ||
2148 | 1572 | ;; | ||
2149 | 1573 | |||
2150 | 1574 | sunos4*) | ||
2151 | 1575 | version_type=sunos | ||
2152 | 1576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2153 | 1577 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
2154 | 1578 | shlibpath_var=LD_LIBRARY_PATH | ||
2155 | 1579 | shlibpath_overrides_runpath=yes | ||
2156 | 1580 | if test "$with_gnu_ld" = yes; then | ||
2157 | 1581 | need_lib_prefix=no | ||
2158 | 1582 | fi | ||
2159 | 1583 | need_version=yes | ||
2160 | 1584 | ;; | ||
2161 | 1585 | |||
2162 | 1586 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
2163 | 1587 | version_type=linux | ||
2164 | 1588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2165 | 1589 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2166 | 1590 | shlibpath_var=LD_LIBRARY_PATH | ||
2167 | 1591 | case $host_vendor in | ||
2168 | 1592 | sni) | ||
2169 | 1593 | shlibpath_overrides_runpath=no | ||
2170 | 1594 | need_lib_prefix=no | ||
2171 | 1595 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
2172 | 1596 | runpath_var=LD_RUN_PATH | ||
2173 | 1597 | ;; | ||
2174 | 1598 | siemens) | ||
2175 | 1599 | need_lib_prefix=no | ||
2176 | 1600 | ;; | ||
2177 | 1601 | motorola) | ||
2178 | 1602 | need_lib_prefix=no | ||
2179 | 1603 | need_version=no | ||
2180 | 1604 | shlibpath_overrides_runpath=no | ||
2181 | 1605 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
2182 | 1606 | ;; | ||
2183 | 1607 | esac | ||
2184 | 1608 | ;; | ||
2185 | 1609 | |||
2186 | 1610 | sysv4*MP*) | ||
2187 | 1611 | if test -d /usr/nec ;then | ||
2188 | 1612 | version_type=linux | ||
2189 | 1613 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
2190 | 1614 | soname_spec='$libname${shared_ext}.$major' | ||
2191 | 1615 | shlibpath_var=LD_LIBRARY_PATH | ||
2192 | 1616 | fi | ||
2193 | 1617 | ;; | ||
2194 | 1618 | |||
2195 | 1619 | uts4*) | ||
2196 | 1620 | version_type=linux | ||
2197 | 1621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2198 | 1622 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2199 | 1623 | shlibpath_var=LD_LIBRARY_PATH | ||
2200 | 1624 | ;; | ||
2201 | 1625 | |||
2202 | 1626 | *) | ||
2203 | 1627 | dynamic_linker=no | ||
2204 | 1628 | ;; | ||
2205 | 1629 | esac | ||
2206 | 1630 | AC_MSG_RESULT([$dynamic_linker]) | ||
2207 | 1631 | test "$dynamic_linker" = no && can_build_shared=no | ||
2208 | 1632 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
2209 | 1633 | |||
2210 | 1634 | |||
2211 | 1635 | # _LT_AC_TAGCONFIG | ||
2212 | 1636 | # ---------------- | ||
2213 | 1637 | AC_DEFUN([_LT_AC_TAGCONFIG], | ||
2214 | 1638 | [AC_ARG_WITH([tags], | ||
2215 | 1639 | [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], | ||
2216 | 1640 | [include additional configurations @<:@automatic@:>@])], | ||
2217 | 1641 | [tagnames="$withval"]) | ||
2218 | 1642 | |||
2219 | 1643 | if test -f "$ltmain" && test -n "$tagnames"; then | ||
2220 | 1644 | if test ! -f "${ofile}"; then | ||
2221 | 1645 | AC_MSG_WARN([output file `$ofile' does not exist]) | ||
2222 | 1646 | fi | ||
2223 | 1647 | |||
2224 | 1648 | if test -z "$LTCC"; then | ||
2225 | 1649 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | ||
2226 | 1650 | if test -z "$LTCC"; then | ||
2227 | 1651 | AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) | ||
2228 | 1652 | else | ||
2229 | 1653 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | ||
2230 | 1654 | fi | ||
2231 | 1655 | fi | ||
2232 | 1656 | |||
2233 | 1657 | # Extract list of available tagged configurations in $ofile. | ||
2234 | 1658 | # Note that this assumes the entire list is on one line. | ||
2235 | 1659 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | ||
2236 | 1660 | |||
2237 | 1661 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
2238 | 1662 | for tagname in $tagnames; do | ||
2239 | 1663 | IFS="$lt_save_ifs" | ||
2240 | 1664 | # Check whether tagname contains only valid characters | ||
2241 | 1665 | case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in | ||
2242 | 1666 | "") ;; | ||
2243 | 1667 | *) AC_MSG_ERROR([invalid tag name: $tagname]) | ||
2244 | 1668 | ;; | ||
2245 | 1669 | esac | ||
2246 | 1670 | |||
2247 | 1671 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | ||
2248 | 1672 | then | ||
2249 | 1673 | AC_MSG_ERROR([tag name \"$tagname\" already exists]) | ||
2250 | 1674 | fi | ||
2251 | 1675 | |||
2252 | 1676 | # Update the list of available tags. | ||
2253 | 1677 | if test -n "$tagname"; then | ||
2254 | 1678 | echo appending configuration tag \"$tagname\" to $ofile | ||
2255 | 1679 | |||
2256 | 1680 | case $tagname in | ||
2257 | 1681 | CXX) | ||
2258 | 1682 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
2259 | 1683 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
2260 | 1684 | (test "X$CXX" != "Xg++"))) ; then | ||
2261 | 1685 | AC_LIBTOOL_LANG_CXX_CONFIG | ||
2262 | 1686 | else | ||
2263 | 1687 | tagname="" | ||
2264 | 1688 | fi | ||
2265 | 1689 | ;; | ||
2266 | 1690 | |||
2267 | 1691 | F77) | ||
2268 | 1692 | if test -n "$F77" && test "X$F77" != "Xno"; then | ||
2269 | 1693 | AC_LIBTOOL_LANG_F77_CONFIG | ||
2270 | 1694 | else | ||
2271 | 1695 | tagname="" | ||
2272 | 1696 | fi | ||
2273 | 1697 | ;; | ||
2274 | 1698 | |||
2275 | 1699 | GCJ) | ||
2276 | 1700 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | ||
2277 | 1701 | AC_LIBTOOL_LANG_GCJ_CONFIG | ||
2278 | 1702 | else | ||
2279 | 1703 | tagname="" | ||
2280 | 1704 | fi | ||
2281 | 1705 | ;; | ||
2282 | 1706 | |||
2283 | 1707 | RC) | ||
2284 | 1708 | AC_LIBTOOL_LANG_RC_CONFIG | ||
2285 | 1709 | ;; | ||
2286 | 1710 | |||
2287 | 1711 | *) | ||
2288 | 1712 | AC_MSG_ERROR([Unsupported tag name: $tagname]) | ||
2289 | 1713 | ;; | ||
2290 | 1714 | esac | ||
2291 | 1715 | |||
2292 | 1716 | # Append the new tag name to the list of available tags. | ||
2293 | 1717 | if test -n "$tagname" ; then | ||
2294 | 1718 | available_tags="$available_tags $tagname" | ||
2295 | 1719 | fi | ||
2296 | 1720 | fi | ||
2297 | 1721 | done | ||
2298 | 1722 | IFS="$lt_save_ifs" | ||
2299 | 1723 | |||
2300 | 1724 | # Now substitute the updated list of available tags. | ||
2301 | 1725 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | ||
2302 | 1726 | mv "${ofile}T" "$ofile" | ||
2303 | 1727 | chmod +x "$ofile" | ||
2304 | 1728 | else | ||
2305 | 1729 | rm -f "${ofile}T" | ||
2306 | 1730 | AC_MSG_ERROR([unable to update list of available tagged configurations.]) | ||
2307 | 1731 | fi | ||
2308 | 1732 | fi | ||
2309 | 1733 | ])# _LT_AC_TAGCONFIG | ||
2310 | 1734 | |||
2311 | 1735 | |||
2312 | 1736 | # AC_LIBTOOL_DLOPEN | ||
2313 | 1737 | # ----------------- | ||
2314 | 1738 | # enable checks for dlopen support | ||
2315 | 1739 | AC_DEFUN([AC_LIBTOOL_DLOPEN], | ||
2316 | 1740 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) | ||
2317 | 1741 | ])# AC_LIBTOOL_DLOPEN | ||
2318 | 1742 | |||
2319 | 1743 | |||
2320 | 1744 | # AC_LIBTOOL_WIN32_DLL | ||
2321 | 1745 | # -------------------- | ||
2322 | 1746 | # declare package support for building win32 dll's | ||
2323 | 1747 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | ||
2324 | 1748 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | ||
2325 | 1749 | ])# AC_LIBTOOL_WIN32_DLL | ||
2326 | 1750 | |||
2327 | 1751 | |||
2328 | 1752 | # AC_ENABLE_SHARED([DEFAULT]) | ||
2329 | 1753 | # --------------------------- | ||
2330 | 1754 | # implement the --enable-shared flag | ||
2331 | 1755 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
2332 | 1756 | AC_DEFUN([AC_ENABLE_SHARED], | ||
2333 | 1757 | [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | ||
2334 | 1758 | AC_ARG_ENABLE([shared], | ||
2335 | 1759 | [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | ||
2336 | 1760 | [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], | ||
2337 | 1761 | [p=${PACKAGE-default} | ||
2338 | 1762 | case $enableval in | ||
2339 | 1763 | yes) enable_shared=yes ;; | ||
2340 | 1764 | no) enable_shared=no ;; | ||
2341 | 1765 | *) | ||
2342 | 1766 | enable_shared=no | ||
2343 | 1767 | # Look at the argument we got. We use all the common list separators. | ||
2344 | 1768 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
2345 | 1769 | for pkg in $enableval; do | ||
2346 | 1770 | IFS="$lt_save_ifs" | ||
2347 | 1771 | if test "X$pkg" = "X$p"; then | ||
2348 | 1772 | enable_shared=yes | ||
2349 | 1773 | fi | ||
2350 | 1774 | done | ||
2351 | 1775 | IFS="$lt_save_ifs" | ||
2352 | 1776 | ;; | ||
2353 | 1777 | esac], | ||
2354 | 1778 | [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | ||
2355 | 1779 | ])# AC_ENABLE_SHARED | ||
2356 | 1780 | |||
2357 | 1781 | |||
2358 | 1782 | # AC_DISABLE_SHARED | ||
2359 | 1783 | # ----------------- | ||
2360 | 1784 | #- set the default shared flag to --disable-shared | ||
2361 | 1785 | AC_DEFUN([AC_DISABLE_SHARED], | ||
2362 | 1786 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2363 | 1787 | AC_ENABLE_SHARED(no) | ||
2364 | 1788 | ])# AC_DISABLE_SHARED | ||
2365 | 1789 | |||
2366 | 1790 | |||
2367 | 1791 | # AC_ENABLE_STATIC([DEFAULT]) | ||
2368 | 1792 | # --------------------------- | ||
2369 | 1793 | # implement the --enable-static flag | ||
2370 | 1794 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
2371 | 1795 | AC_DEFUN([AC_ENABLE_STATIC], | ||
2372 | 1796 | [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | ||
2373 | 1797 | AC_ARG_ENABLE([static], | ||
2374 | 1798 | [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], | ||
2375 | 1799 | [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], | ||
2376 | 1800 | [p=${PACKAGE-default} | ||
2377 | 1801 | case $enableval in | ||
2378 | 1802 | yes) enable_static=yes ;; | ||
2379 | 1803 | no) enable_static=no ;; | ||
2380 | 1804 | *) | ||
2381 | 1805 | enable_static=no | ||
2382 | 1806 | # Look at the argument we got. We use all the common list separators. | ||
2383 | 1807 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
2384 | 1808 | for pkg in $enableval; do | ||
2385 | 1809 | IFS="$lt_save_ifs" | ||
2386 | 1810 | if test "X$pkg" = "X$p"; then | ||
2387 | 1811 | enable_static=yes | ||
2388 | 1812 | fi | ||
2389 | 1813 | done | ||
2390 | 1814 | IFS="$lt_save_ifs" | ||
2391 | 1815 | ;; | ||
2392 | 1816 | esac], | ||
2393 | 1817 | [enable_static=]AC_ENABLE_STATIC_DEFAULT) | ||
2394 | 1818 | ])# AC_ENABLE_STATIC | ||
2395 | 1819 | |||
2396 | 1820 | |||
2397 | 1821 | # AC_DISABLE_STATIC | ||
2398 | 1822 | # ----------------- | ||
2399 | 1823 | # set the default static flag to --disable-static | ||
2400 | 1824 | AC_DEFUN([AC_DISABLE_STATIC], | ||
2401 | 1825 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2402 | 1826 | AC_ENABLE_STATIC(no) | ||
2403 | 1827 | ])# AC_DISABLE_STATIC | ||
2404 | 1828 | |||
2405 | 1829 | |||
2406 | 1830 | # AC_ENABLE_FAST_INSTALL([DEFAULT]) | ||
2407 | 1831 | # --------------------------------- | ||
2408 | 1832 | # implement the --enable-fast-install flag | ||
2409 | 1833 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
2410 | 1834 | AC_DEFUN([AC_ENABLE_FAST_INSTALL], | ||
2411 | 1835 | [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | ||
2412 | 1836 | AC_ARG_ENABLE([fast-install], | ||
2413 | 1837 | [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | ||
2414 | 1838 | [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | ||
2415 | 1839 | [p=${PACKAGE-default} | ||
2416 | 1840 | case $enableval in | ||
2417 | 1841 | yes) enable_fast_install=yes ;; | ||
2418 | 1842 | no) enable_fast_install=no ;; | ||
2419 | 1843 | *) | ||
2420 | 1844 | enable_fast_install=no | ||
2421 | 1845 | # Look at the argument we got. We use all the common list separators. | ||
2422 | 1846 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
2423 | 1847 | for pkg in $enableval; do | ||
2424 | 1848 | IFS="$lt_save_ifs" | ||
2425 | 1849 | if test "X$pkg" = "X$p"; then | ||
2426 | 1850 | enable_fast_install=yes | ||
2427 | 1851 | fi | ||
2428 | 1852 | done | ||
2429 | 1853 | IFS="$lt_save_ifs" | ||
2430 | 1854 | ;; | ||
2431 | 1855 | esac], | ||
2432 | 1856 | [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) | ||
2433 | 1857 | ])# AC_ENABLE_FAST_INSTALL | ||
2434 | 1858 | |||
2435 | 1859 | |||
2436 | 1860 | # AC_DISABLE_FAST_INSTALL | ||
2437 | 1861 | # ----------------------- | ||
2438 | 1862 | # set the default to --disable-fast-install | ||
2439 | 1863 | AC_DEFUN([AC_DISABLE_FAST_INSTALL], | ||
2440 | 1864 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2441 | 1865 | AC_ENABLE_FAST_INSTALL(no) | ||
2442 | 1866 | ])# AC_DISABLE_FAST_INSTALL | ||
2443 | 1867 | |||
2444 | 1868 | |||
2445 | 1869 | # AC_LIBTOOL_PICMODE([MODE]) | ||
2446 | 1870 | # -------------------------- | ||
2447 | 1871 | # implement the --with-pic flag | ||
2448 | 1872 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | ||
2449 | 1873 | AC_DEFUN([AC_LIBTOOL_PICMODE], | ||
2450 | 1874 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2451 | 1875 | pic_mode=ifelse($#,1,$1,default) | ||
2452 | 1876 | ])# AC_LIBTOOL_PICMODE | ||
2453 | 1877 | |||
2454 | 1878 | |||
2455 | 1879 | # AC_PROG_EGREP | ||
2456 | 1880 | # ------------- | ||
2457 | 1881 | # This is predefined starting with Autoconf 2.54, so this conditional | ||
2458 | 1882 | # definition can be removed once we require Autoconf 2.54 or later. | ||
2459 | 1883 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], | ||
2460 | 1884 | [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], | ||
2461 | 1885 | [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
2462 | 1886 | then ac_cv_prog_egrep='grep -E' | ||
2463 | 1887 | else ac_cv_prog_egrep='egrep' | ||
2464 | 1888 | fi]) | ||
2465 | 1889 | EGREP=$ac_cv_prog_egrep | ||
2466 | 1890 | AC_SUBST([EGREP]) | ||
2467 | 1891 | ])]) | ||
2468 | 1892 | |||
2469 | 1893 | |||
2470 | 1894 | # AC_PATH_TOOL_PREFIX | ||
2471 | 1895 | # ------------------- | ||
2472 | 1896 | # find a file program which can recognise shared library | ||
2473 | 1897 | AC_DEFUN([AC_PATH_TOOL_PREFIX], | ||
2474 | 1898 | [AC_REQUIRE([AC_PROG_EGREP])dnl | ||
2475 | 1899 | AC_MSG_CHECKING([for $1]) | ||
2476 | 1900 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | ||
2477 | 1901 | [case $MAGIC_CMD in | ||
2478 | 1902 | [[\\/*] | ?:[\\/]*]) | ||
2479 | 1903 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
2480 | 1904 | ;; | ||
2481 | 1905 | *) | ||
2482 | 1906 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
2483 | 1907 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
2484 | 1908 | dnl $ac_dummy forces splitting on constant user-supplied paths. | ||
2485 | 1909 | dnl POSIX.2 word splitting is done only on the output of word expansions, | ||
2486 | 1910 | dnl not every word. This closes a longstanding sh security hole. | ||
2487 | 1911 | ac_dummy="ifelse([$2], , $PATH, [$2])" | ||
2488 | 1912 | for ac_dir in $ac_dummy; do | ||
2489 | 1913 | IFS="$lt_save_ifs" | ||
2490 | 1914 | test -z "$ac_dir" && ac_dir=. | ||
2491 | 1915 | if test -f $ac_dir/$1; then | ||
2492 | 1916 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | ||
2493 | 1917 | if test -n "$file_magic_test_file"; then | ||
2494 | 1918 | case $deplibs_check_method in | ||
2495 | 1919 | "file_magic "*) | ||
2496 | 1920 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | ||
2497 | 1921 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
2498 | 1922 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
2499 | 1923 | $EGREP "$file_magic_regex" > /dev/null; then | ||
2500 | 1924 | : | ||
2501 | 1925 | else | ||
2502 | 1926 | cat <<EOF 1>&2 | ||
2503 | 1927 | |||
2504 | 1928 | *** Warning: the command libtool uses to detect shared libraries, | ||
2505 | 1929 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
2506 | 1930 | *** The result is that libtool may fail to recognize shared libraries | ||
2507 | 1931 | *** as such. This will affect the creation of libtool libraries that | ||
2508 | 1932 | *** depend on shared libraries, but programs linked with such libtool | ||
2509 | 1933 | *** libraries will work regardless of this problem. Nevertheless, you | ||
2510 | 1934 | *** may want to report the problem to your system manager and/or to | ||
2511 | 1935 | *** bug-libtool@gnu.org | ||
2512 | 1936 | |||
2513 | 1937 | EOF | ||
2514 | 1938 | fi ;; | ||
2515 | 1939 | esac | ||
2516 | 1940 | fi | ||
2517 | 1941 | break | ||
2518 | 1942 | fi | ||
2519 | 1943 | done | ||
2520 | 1944 | IFS="$lt_save_ifs" | ||
2521 | 1945 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
2522 | 1946 | ;; | ||
2523 | 1947 | esac]) | ||
2524 | 1948 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
2525 | 1949 | if test -n "$MAGIC_CMD"; then | ||
2526 | 1950 | AC_MSG_RESULT($MAGIC_CMD) | ||
2527 | 1951 | else | ||
2528 | 1952 | AC_MSG_RESULT(no) | ||
2529 | 1953 | fi | ||
2530 | 1954 | ])# AC_PATH_TOOL_PREFIX | ||
2531 | 1955 | |||
2532 | 1956 | |||
2533 | 1957 | # AC_PATH_MAGIC | ||
2534 | 1958 | # ------------- | ||
2535 | 1959 | # find a file program which can recognise a shared library | ||
2536 | 1960 | AC_DEFUN([AC_PATH_MAGIC], | ||
2537 | 1961 | [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | ||
2538 | 1962 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
2539 | 1963 | if test -n "$ac_tool_prefix"; then | ||
2540 | 1964 | AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | ||
2541 | 1965 | else | ||
2542 | 1966 | MAGIC_CMD=: | ||
2543 | 1967 | fi | ||
2544 | 1968 | fi | ||
2545 | 1969 | ])# AC_PATH_MAGIC | ||
2546 | 1970 | |||
2547 | 1971 | |||
2548 | 1972 | # AC_PROG_LD | ||
2549 | 1973 | # ---------- | ||
2550 | 1974 | # find the pathname to the GNU or non-GNU linker | ||
2551 | 1975 | AC_DEFUN([AC_PROG_LD], | ||
2552 | 1976 | [AC_ARG_WITH([gnu-ld], | ||
2553 | 1977 | [AC_HELP_STRING([--with-gnu-ld], | ||
2554 | 1978 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], | ||
2555 | 1979 | [test "$withval" = no || with_gnu_ld=yes], | ||
2556 | 1980 | [with_gnu_ld=no]) | ||
2557 | 1981 | AC_REQUIRE([LT_AC_PROG_SED])dnl | ||
2558 | 1982 | AC_REQUIRE([AC_PROG_CC])dnl | ||
2559 | 1983 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
2560 | 1984 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
2561 | 1985 | ac_prog=ld | ||
2562 | 1986 | if test "$GCC" = yes; then | ||
2563 | 1987 | # Check if gcc -print-prog-name=ld gives a path. | ||
2564 | 1988 | AC_MSG_CHECKING([for ld used by $CC]) | ||
2565 | 1989 | case $host in | ||
2566 | 1990 | *-*-mingw*) | ||
2567 | 1991 | # gcc leaves a trailing carriage return which upsets mingw | ||
2568 | 1992 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
2569 | 1993 | *) | ||
2570 | 1994 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
2571 | 1995 | esac | ||
2572 | 1996 | case $ac_prog in | ||
2573 | 1997 | # Accept absolute paths. | ||
2574 | 1998 | [[\\/]]* | ?:[[\\/]]*) | ||
2575 | 1999 | re_direlt='/[[^/]][[^/]]*/\.\./' | ||
2576 | 2000 | # Canonicalize the pathname of ld | ||
2577 | 2001 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
2578 | 2002 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
2579 | 2003 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
2580 | 2004 | done | ||
2581 | 2005 | test -z "$LD" && LD="$ac_prog" | ||
2582 | 2006 | ;; | ||
2583 | 2007 | "") | ||
2584 | 2008 | # If it fails, then pretend we aren't using GCC. | ||
2585 | 2009 | ac_prog=ld | ||
2586 | 2010 | ;; | ||
2587 | 2011 | *) | ||
2588 | 2012 | # If it is relative, then search for the first ld in PATH. | ||
2589 | 2013 | with_gnu_ld=unknown | ||
2590 | 2014 | ;; | ||
2591 | 2015 | esac | ||
2592 | 2016 | elif test "$with_gnu_ld" = yes; then | ||
2593 | 2017 | AC_MSG_CHECKING([for GNU ld]) | ||
2594 | 2018 | else | ||
2595 | 2019 | AC_MSG_CHECKING([for non-GNU ld]) | ||
2596 | 2020 | fi | ||
2597 | 2021 | AC_CACHE_VAL(lt_cv_path_LD, | ||
2598 | 2022 | [if test -z "$LD"; then | ||
2599 | 2023 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
2600 | 2024 | for ac_dir in $PATH; do | ||
2601 | 2025 | IFS="$lt_save_ifs" | ||
2602 | 2026 | test -z "$ac_dir" && ac_dir=. | ||
2603 | 2027 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
2604 | 2028 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
2605 | 2029 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
2606 | 2030 | # but apparently some GNU ld's only accept -v. | ||
2607 | 2031 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
2608 | 2032 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
2609 | 2033 | *GNU* | *'with BFD'*) | ||
2610 | 2034 | test "$with_gnu_ld" != no && break | ||
2611 | 2035 | ;; | ||
2612 | 2036 | *) | ||
2613 | 2037 | test "$with_gnu_ld" != yes && break | ||
2614 | 2038 | ;; | ||
2615 | 2039 | esac | ||
2616 | 2040 | fi | ||
2617 | 2041 | done | ||
2618 | 2042 | IFS="$lt_save_ifs" | ||
2619 | 2043 | else | ||
2620 | 2044 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
2621 | 2045 | fi]) | ||
2622 | 2046 | LD="$lt_cv_path_LD" | ||
2623 | 2047 | if test -n "$LD"; then | ||
2624 | 2048 | AC_MSG_RESULT($LD) | ||
2625 | 2049 | else | ||
2626 | 2050 | AC_MSG_RESULT(no) | ||
2627 | 2051 | fi | ||
2628 | 2052 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | ||
2629 | 2053 | AC_PROG_LD_GNU | ||
2630 | 2054 | ])# AC_PROG_LD | ||
2631 | 2055 | |||
2632 | 2056 | |||
2633 | 2057 | # AC_PROG_LD_GNU | ||
2634 | 2058 | # -------------- | ||
2635 | 2059 | AC_DEFUN([AC_PROG_LD_GNU], | ||
2636 | 2060 | [AC_REQUIRE([AC_PROG_EGREP])dnl | ||
2637 | 2061 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | ||
2638 | 2062 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
2639 | 2063 | case `$LD -v 2>&1 </dev/null` in | ||
2640 | 2064 | *GNU* | *'with BFD'*) | ||
2641 | 2065 | lt_cv_prog_gnu_ld=yes | ||
2642 | 2066 | ;; | ||
2643 | 2067 | *) | ||
2644 | 2068 | lt_cv_prog_gnu_ld=no | ||
2645 | 2069 | ;; | ||
2646 | 2070 | esac]) | ||
2647 | 2071 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
2648 | 2072 | ])# AC_PROG_LD_GNU | ||
2649 | 2073 | |||
2650 | 2074 | |||
2651 | 2075 | # AC_PROG_LD_RELOAD_FLAG | ||
2652 | 2076 | # ---------------------- | ||
2653 | 2077 | # find reload flag for linker | ||
2654 | 2078 | # -- PORTME Some linkers may need a different reload flag. | ||
2655 | 2079 | AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], | ||
2656 | 2080 | [AC_CACHE_CHECK([for $LD option to reload object files], | ||
2657 | 2081 | lt_cv_ld_reload_flag, | ||
2658 | 2082 | [lt_cv_ld_reload_flag='-r']) | ||
2659 | 2083 | reload_flag=$lt_cv_ld_reload_flag | ||
2660 | 2084 | case $reload_flag in | ||
2661 | 2085 | "" | " "*) ;; | ||
2662 | 2086 | *) reload_flag=" $reload_flag" ;; | ||
2663 | 2087 | esac | ||
2664 | 2088 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
2665 | 2089 | case $host_os in | ||
2666 | 2090 | darwin*) | ||
2667 | 2091 | if test "$GCC" = yes; then | ||
2668 | 2092 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | ||
2669 | 2093 | else | ||
2670 | 2094 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
2671 | 2095 | fi | ||
2672 | 2096 | ;; | ||
2673 | 2097 | esac | ||
2674 | 2098 | ])# AC_PROG_LD_RELOAD_FLAG | ||
2675 | 2099 | |||
2676 | 2100 | |||
2677 | 2101 | # AC_DEPLIBS_CHECK_METHOD | ||
2678 | 2102 | # ----------------------- | ||
2679 | 2103 | # how to check for library dependencies | ||
2680 | 2104 | # -- PORTME fill in with the dynamic library characteristics | ||
2681 | 2105 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], | ||
2682 | 2106 | [AC_CACHE_CHECK([how to recognise dependent libraries], | ||
2683 | 2107 | lt_cv_deplibs_check_method, | ||
2684 | 2108 | [lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
2685 | 2109 | lt_cv_file_magic_test_file= | ||
2686 | 2110 | lt_cv_deplibs_check_method='unknown' | ||
2687 | 2111 | # Need to set the preceding variable on all platforms that support | ||
2688 | 2112 | # interlibrary dependencies. | ||
2689 | 2113 | # 'none' -- dependencies not supported. | ||
2690 | 2114 | # `unknown' -- same as none, but documents that we really don't know. | ||
2691 | 2115 | # 'pass_all' -- all dependencies passed with no checks. | ||
2692 | 2116 | # 'test_compile' -- check by making test program. | ||
2693 | 2117 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
2694 | 2118 | # which responds to the $file_magic_cmd with a given extended regex. | ||
2695 | 2119 | # If you have `file' or equivalent on your system and you're not sure | ||
2696 | 2120 | # whether `pass_all' will *always* work, you probably want this one. | ||
2697 | 2121 | |||
2698 | 2122 | case $host_os in | ||
2699 | 2123 | aix4* | aix5*) | ||
2700 | 2124 | lt_cv_deplibs_check_method=pass_all | ||
2701 | 2125 | ;; | ||
2702 | 2126 | |||
2703 | 2127 | beos*) | ||
2704 | 2128 | lt_cv_deplibs_check_method=pass_all | ||
2705 | 2129 | ;; | ||
2706 | 2130 | |||
2707 | 2131 | bsdi[[45]]*) | ||
2708 | 2132 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | ||
2709 | 2133 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
2710 | 2134 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
2711 | 2135 | ;; | ||
2712 | 2136 | |||
2713 | 2137 | cygwin*) | ||
2714 | 2138 | # func_win32_libid is a shell function defined in ltmain.sh | ||
2715 | 2139 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
2716 | 2140 | lt_cv_file_magic_cmd='func_win32_libid' | ||
2717 | 2141 | ;; | ||
2718 | 2142 | |||
2719 | 2143 | mingw* | pw32*) | ||
2720 | 2144 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
2721 | 2145 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
2722 | 2146 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
2723 | 2147 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
2724 | 2148 | ;; | ||
2725 | 2149 | |||
2726 | 2150 | darwin* | rhapsody*) | ||
2727 | 2151 | lt_cv_deplibs_check_method=pass_all | ||
2728 | 2152 | ;; | ||
2729 | 2153 | |||
2730 | 2154 | freebsd* | kfreebsd*-gnu) | ||
2731 | 2155 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
2732 | 2156 | case $host_cpu in | ||
2733 | 2157 | i*86 ) | ||
2734 | 2158 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
2735 | 2159 | # Let's accept both of them until this is cleared up. | ||
2736 | 2160 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' | ||
2737 | 2161 | lt_cv_file_magic_cmd=/usr/bin/file | ||
2738 | 2162 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
2739 | 2163 | ;; | ||
2740 | 2164 | esac | ||
2741 | 2165 | else | ||
2742 | 2166 | lt_cv_deplibs_check_method=pass_all | ||
2743 | 2167 | fi | ||
2744 | 2168 | ;; | ||
2745 | 2169 | |||
2746 | 2170 | gnu*) | ||
2747 | 2171 | lt_cv_deplibs_check_method=pass_all | ||
2748 | 2172 | ;; | ||
2749 | 2173 | |||
2750 | 2174 | hpux10.20* | hpux11*) | ||
2751 | 2175 | lt_cv_file_magic_cmd=/usr/bin/file | ||
2752 | 2176 | case "$host_cpu" in | ||
2753 | 2177 | ia64*) | ||
2754 | 2178 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | ||
2755 | 2179 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
2756 | 2180 | ;; | ||
2757 | 2181 | hppa*64*) | ||
2758 | 2182 | [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]'] | ||
2759 | 2183 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
2760 | 2184 | ;; | ||
2761 | 2185 | *) | ||
2762 | 2186 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | ||
2763 | 2187 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
2764 | 2188 | ;; | ||
2765 | 2189 | esac | ||
2766 | 2190 | ;; | ||
2767 | 2191 | |||
2768 | 2192 | irix5* | irix6* | nonstopux*) | ||
2769 | 2193 | case $LD in | ||
2770 | 2194 | *-32|*"-32 ") libmagic=32-bit;; | ||
2771 | 2195 | *-n32|*"-n32 ") libmagic=N32;; | ||
2772 | 2196 | *-64|*"-64 ") libmagic=64-bit;; | ||
2773 | 2197 | *) libmagic=never-match;; | ||
2774 | 2198 | esac | ||
2775 | 2199 | lt_cv_deplibs_check_method=pass_all | ||
2776 | 2200 | ;; | ||
2777 | 2201 | |||
2778 | 2202 | # This must be Linux ELF. | ||
2779 | 2203 | linux*) | ||
2780 | 2204 | lt_cv_deplibs_check_method=pass_all | ||
2781 | 2205 | ;; | ||
2782 | 2206 | |||
2783 | 2207 | netbsd*) | ||
2784 | 2208 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
2785 | 2209 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
2786 | 2210 | else | ||
2787 | 2211 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | ||
2788 | 2212 | fi | ||
2789 | 2213 | ;; | ||
2790 | 2214 | |||
2791 | 2215 | newos6*) | ||
2792 | 2216 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | ||
2793 | 2217 | lt_cv_file_magic_cmd=/usr/bin/file | ||
2794 | 2218 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
2795 | 2219 | ;; | ||
2796 | 2220 | |||
2797 | 2221 | nto-qnx*) | ||
2798 | 2222 | lt_cv_deplibs_check_method=unknown | ||
2799 | 2223 | ;; | ||
2800 | 2224 | |||
2801 | 2225 | openbsd*) | ||
2802 | 2226 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
2803 | 2227 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | ||
2804 | 2228 | else | ||
2805 | 2229 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
2806 | 2230 | fi | ||
2807 | 2231 | ;; | ||
2808 | 2232 | |||
2809 | 2233 | osf3* | osf4* | osf5*) | ||
2810 | 2234 | lt_cv_deplibs_check_method=pass_all | ||
2811 | 2235 | ;; | ||
2812 | 2236 | |||
2813 | 2237 | sco3.2v5*) | ||
2814 | 2238 | lt_cv_deplibs_check_method=pass_all | ||
2815 | 2239 | ;; | ||
2816 | 2240 | |||
2817 | 2241 | solaris*) | ||
2818 | 2242 | lt_cv_deplibs_check_method=pass_all | ||
2819 | 2243 | ;; | ||
2820 | 2244 | |||
2821 | 2245 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
2822 | 2246 | case $host_vendor in | ||
2823 | 2247 | motorola) | ||
2824 | 2248 | 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]]' | ||
2825 | 2249 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
2826 | 2250 | ;; | ||
2827 | 2251 | ncr) | ||
2828 | 2252 | lt_cv_deplibs_check_method=pass_all | ||
2829 | 2253 | ;; | ||
2830 | 2254 | sequent) | ||
2831 | 2255 | lt_cv_file_magic_cmd='/bin/file' | ||
2832 | 2256 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | ||
2833 | 2257 | ;; | ||
2834 | 2258 | sni) | ||
2835 | 2259 | lt_cv_file_magic_cmd='/bin/file' | ||
2836 | 2260 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | ||
2837 | 2261 | lt_cv_file_magic_test_file=/lib/libc.so | ||
2838 | 2262 | ;; | ||
2839 | 2263 | siemens) | ||
2840 | 2264 | lt_cv_deplibs_check_method=pass_all | ||
2841 | 2265 | ;; | ||
2842 | 2266 | esac | ||
2843 | 2267 | ;; | ||
2844 | 2268 | |||
2845 | 2269 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) | ||
2846 | 2270 | lt_cv_deplibs_check_method=pass_all | ||
2847 | 2271 | ;; | ||
2848 | 2272 | esac | ||
2849 | 2273 | ]) | ||
2850 | 2274 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
2851 | 2275 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
2852 | 2276 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
2853 | 2277 | ])# AC_DEPLIBS_CHECK_METHOD | ||
2854 | 2278 | |||
2855 | 2279 | |||
2856 | 2280 | # AC_PROG_NM | ||
2857 | 2281 | # ---------- | ||
2858 | 2282 | # find the pathname to a BSD-compatible name lister | ||
2859 | 2283 | AC_DEFUN([AC_PROG_NM], | ||
2860 | 2284 | [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, | ||
2861 | 2285 | [if test -n "$NM"; then | ||
2862 | 2286 | # Let the user override the test. | ||
2863 | 2287 | lt_cv_path_NM="$NM" | ||
2864 | 2288 | else | ||
2865 | 2289 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
2866 | 2290 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | ||
2867 | 2291 | IFS="$lt_save_ifs" | ||
2868 | 2292 | test -z "$ac_dir" && ac_dir=. | ||
2869 | 2293 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | ||
2870 | 2294 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
2871 | 2295 | # Check to see if the nm accepts a BSD-compat flag. | ||
2872 | 2296 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
2873 | 2297 | # nm: unknown option "B" ignored | ||
2874 | 2298 | # Tru64's nm complains that /dev/null is an invalid object file | ||
2875 | 2299 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
2876 | 2300 | */dev/null* | *'Invalid file or object type'*) | ||
2877 | 2301 | lt_cv_path_NM="$tmp_nm -B" | ||
2878 | 2302 | break | ||
2879 | 2303 | ;; | ||
2880 | 2304 | *) | ||
2881 | 2305 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
2882 | 2306 | */dev/null*) | ||
2883 | 2307 | lt_cv_path_NM="$tmp_nm -p" | ||
2884 | 2308 | break | ||
2885 | 2309 | ;; | ||
2886 | 2310 | *) | ||
2887 | 2311 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
2888 | 2312 | continue # so that we can try to find one that supports BSD flags | ||
2889 | 2313 | ;; | ||
2890 | 2314 | esac | ||
2891 | 2315 | esac | ||
2892 | 2316 | fi | ||
2893 | 2317 | done | ||
2894 | 2318 | IFS="$lt_save_ifs" | ||
2895 | 2319 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | ||
2896 | 2320 | fi]) | ||
2897 | 2321 | NM="$lt_cv_path_NM" | ||
2898 | 2322 | ])# AC_PROG_NM | ||
2899 | 2323 | |||
2900 | 2324 | |||
2901 | 2325 | # AC_CHECK_LIBM | ||
2902 | 2326 | # ------------- | ||
2903 | 2327 | # check for math library | ||
2904 | 2328 | AC_DEFUN([AC_CHECK_LIBM], | ||
2905 | 2329 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
2906 | 2330 | LIBM= | ||
2907 | 2331 | case $host in | ||
2908 | 2332 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | ||
2909 | 2333 | # These system don't have libm, or don't need it | ||
2910 | 2334 | ;; | ||
2911 | 2335 | *-ncr-sysv4.3*) | ||
2912 | 2336 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | ||
2913 | 2337 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | ||
2914 | 2338 | ;; | ||
2915 | 2339 | *) | ||
2916 | 2340 | AC_CHECK_LIB(m, cos, LIBM="-lm") | ||
2917 | 2341 | ;; | ||
2918 | 2342 | esac | ||
2919 | 2343 | ])# AC_CHECK_LIBM | ||
2920 | 2344 | |||
2921 | 2345 | |||
2922 | 2346 | # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) | ||
2923 | 2347 | # ----------------------------------- | ||
2924 | 2348 | # sets LIBLTDL to the link flags for the libltdl convenience library and | ||
2925 | 2349 | # LTDLINCL to the include flags for the libltdl header and adds | ||
2926 | 2350 | # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL | ||
2927 | 2351 | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If | ||
2928 | 2352 | # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will | ||
2929 | 2353 | # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with | ||
2930 | 2354 | # '${top_srcdir}/' (note the single quotes!). If your package is not | ||
2931 | 2355 | # flat and you're not using automake, define top_builddir and | ||
2932 | 2356 | # top_srcdir appropriately in the Makefiles. | ||
2933 | 2357 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | ||
2934 | 2358 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2935 | 2359 | case $enable_ltdl_convenience in | ||
2936 | 2360 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | ||
2937 | 2361 | "") enable_ltdl_convenience=yes | ||
2938 | 2362 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | ||
2939 | 2363 | esac | ||
2940 | 2364 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la | ||
2941 | 2365 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | ||
2942 | 2366 | # For backwards non-gettext consistent compatibility... | ||
2943 | 2367 | INCLTDL="$LTDLINCL" | ||
2944 | 2368 | ])# AC_LIBLTDL_CONVENIENCE | ||
2945 | 2369 | |||
2946 | 2370 | |||
2947 | 2371 | # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) | ||
2948 | 2372 | # ----------------------------------- | ||
2949 | 2373 | # sets LIBLTDL to the link flags for the libltdl installable library and | ||
2950 | 2374 | # LTDLINCL to the include flags for the libltdl header and adds | ||
2951 | 2375 | # --enable-ltdl-install to the configure arguments. Note that LIBLTDL | ||
2952 | 2376 | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If | ||
2953 | 2377 | # DIRECTORY is not provided and an installed libltdl is not found, it is | ||
2954 | 2378 | # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' | ||
2955 | 2379 | # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single | ||
2956 | 2380 | # quotes!). If your package is not flat and you're not using automake, | ||
2957 | 2381 | # define top_builddir and top_srcdir appropriately in the Makefiles. | ||
2958 | 2382 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | ||
2959 | 2383 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | ||
2960 | 2384 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
2961 | 2385 | AC_CHECK_LIB(ltdl, lt_dlinit, | ||
2962 | 2386 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | ||
2963 | 2387 | [if test x"$enable_ltdl_install" = xno; then | ||
2964 | 2388 | AC_MSG_WARN([libltdl not installed, but installation disabled]) | ||
2965 | 2389 | else | ||
2966 | 2390 | enable_ltdl_install=yes | ||
2967 | 2391 | fi | ||
2968 | 2392 | ]) | ||
2969 | 2393 | if test x"$enable_ltdl_install" = x"yes"; then | ||
2970 | 2394 | ac_configure_args="$ac_configure_args --enable-ltdl-install" | ||
2971 | 2395 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la | ||
2972 | 2396 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | ||
2973 | 2397 | else | ||
2974 | 2398 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | ||
2975 | 2399 | LIBLTDL="-lltdl" | ||
2976 | 2400 | LTDLINCL= | ||
2977 | 2401 | fi | ||
2978 | 2402 | # For backwards non-gettext consistent compatibility... | ||
2979 | 2403 | INCLTDL="$LTDLINCL" | ||
2980 | 2404 | ])# AC_LIBLTDL_INSTALLABLE | ||
2981 | 2405 | |||
2982 | 2406 | |||
2983 | 2407 | # AC_LIBTOOL_CXX | ||
2984 | 2408 | # -------------- | ||
2985 | 2409 | # enable support for C++ libraries | ||
2986 | 2410 | AC_DEFUN([AC_LIBTOOL_CXX], | ||
2987 | 2411 | [AC_REQUIRE([_LT_AC_LANG_CXX]) | ||
2988 | 2412 | ])# AC_LIBTOOL_CXX | ||
2989 | 2413 | |||
2990 | 2414 | |||
2991 | 2415 | # _LT_AC_LANG_CXX | ||
2992 | 2416 | # --------------- | ||
2993 | 2417 | AC_DEFUN([_LT_AC_LANG_CXX], | ||
2994 | 2418 | [AC_REQUIRE([AC_PROG_CXX]) | ||
2995 | 2419 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
2996 | 2420 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | ||
2997 | 2421 | ])# _LT_AC_LANG_CXX | ||
2998 | 2422 | |||
2999 | 2423 | # _LT_AC_PROG_CXXCPP | ||
3000 | 2424 | # --------------- | ||
3001 | 2425 | AC_DEFUN([_LT_AC_PROG_CXXCPP], | ||
3002 | 2426 | [ | ||
3003 | 2427 | AC_REQUIRE([AC_PROG_CXX]) | ||
3004 | 2428 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
3005 | 2429 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
3006 | 2430 | (test "X$CXX" != "Xg++"))) ; then | ||
3007 | 2431 | AC_PROG_CXXCPP | ||
3008 | 2432 | fi | ||
3009 | 2433 | ])# _LT_AC_PROG_CXXCPP | ||
3010 | 2434 | |||
3011 | 2435 | # AC_LIBTOOL_F77 | ||
3012 | 2436 | # -------------- | ||
3013 | 2437 | # enable support for Fortran 77 libraries | ||
3014 | 2438 | AC_DEFUN([AC_LIBTOOL_F77], | ||
3015 | 2439 | [AC_REQUIRE([_LT_AC_LANG_F77]) | ||
3016 | 2440 | ])# AC_LIBTOOL_F77 | ||
3017 | 2441 | |||
3018 | 2442 | |||
3019 | 2443 | # _LT_AC_LANG_F77 | ||
3020 | 2444 | # --------------- | ||
3021 | 2445 | AC_DEFUN([_LT_AC_LANG_F77], | ||
3022 | 2446 | [AC_REQUIRE([AC_PROG_F77]) | ||
3023 | 2447 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) | ||
3024 | 2448 | ])# _LT_AC_LANG_F77 | ||
3025 | 2449 | |||
3026 | 2450 | |||
3027 | 2451 | # AC_LIBTOOL_GCJ | ||
3028 | 2452 | # -------------- | ||
3029 | 2453 | # enable support for GCJ libraries | ||
3030 | 2454 | AC_DEFUN([AC_LIBTOOL_GCJ], | ||
3031 | 2455 | [AC_REQUIRE([_LT_AC_LANG_GCJ]) | ||
3032 | 2456 | ])# AC_LIBTOOL_GCJ | ||
3033 | 2457 | |||
3034 | 2458 | |||
3035 | 2459 | # _LT_AC_LANG_GCJ | ||
3036 | 2460 | # --------------- | ||
3037 | 2461 | AC_DEFUN([_LT_AC_LANG_GCJ], | ||
3038 | 2462 | [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], | ||
3039 | 2463 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], | ||
3040 | 2464 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], | ||
3041 | 2465 | [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], | ||
3042 | 2466 | [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], | ||
3043 | 2467 | [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | ||
3044 | 2468 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | ||
3045 | 2469 | ])# _LT_AC_LANG_GCJ | ||
3046 | 2470 | |||
3047 | 2471 | |||
3048 | 2472 | # AC_LIBTOOL_RC | ||
3049 | 2473 | # -------------- | ||
3050 | 2474 | # enable support for Windows resource files | ||
3051 | 2475 | AC_DEFUN([AC_LIBTOOL_RC], | ||
3052 | 2476 | [AC_REQUIRE([LT_AC_PROG_RC]) | ||
3053 | 2477 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) | ||
3054 | 2478 | ])# AC_LIBTOOL_RC | ||
3055 | 2479 | |||
3056 | 2480 | |||
3057 | 2481 | # AC_LIBTOOL_LANG_C_CONFIG | ||
3058 | 2482 | # ------------------------ | ||
3059 | 2483 | # Ensure that the configuration vars for the C compiler are | ||
3060 | 2484 | # suitably defined. Those variables are subsequently used by | ||
3061 | 2485 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
3062 | 2486 | AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | ||
3063 | 2487 | AC_DEFUN([_LT_AC_LANG_C_CONFIG], | ||
3064 | 2488 | [lt_save_CC="$CC" | ||
3065 | 2489 | AC_LANG_PUSH(C) | ||
3066 | 2490 | |||
3067 | 2491 | # Source file extension for C test sources. | ||
3068 | 2492 | ac_ext=c | ||
3069 | 2493 | |||
3070 | 2494 | # Object file extension for compiled C test sources. | ||
3071 | 2495 | objext=o | ||
3072 | 2496 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
3073 | 2497 | |||
3074 | 2498 | # Code to be used in simple compile tests | ||
3075 | 2499 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
3076 | 2500 | |||
3077 | 2501 | # Code to be used in simple link tests | ||
3078 | 2502 | lt_simple_link_test_code='int main(){return(0);}\n' | ||
3079 | 2503 | |||
3080 | 2504 | _LT_AC_SYS_COMPILER | ||
3081 | 2505 | |||
3082 | 2506 | # | ||
3083 | 2507 | # Check for any special shared library compilation flags. | ||
3084 | 2508 | # | ||
3085 | 2509 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= | ||
3086 | 2510 | if test "$GCC" = no; then | ||
3087 | 2511 | case $host_os in | ||
3088 | 2512 | sco3.2v5*) | ||
3089 | 2513 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' | ||
3090 | 2514 | ;; | ||
3091 | 2515 | esac | ||
3092 | 2516 | fi | ||
3093 | 2517 | if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then | ||
3094 | 2518 | AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) | ||
3095 | 2519 | if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : | ||
3096 | 2520 | else | ||
3097 | 2521 | AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) | ||
3098 | 2522 | _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no | ||
3099 | 2523 | fi | ||
3100 | 2524 | fi | ||
3101 | 2525 | |||
3102 | 2526 | |||
3103 | 2527 | # | ||
3104 | 2528 | # Check to make sure the static flag actually works. | ||
3105 | 2529 | # | ||
3106 | 2530 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], | ||
3107 | 2531 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | ||
3108 | 2532 | $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), | ||
3109 | 2533 | [], | ||
3110 | 2534 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
3111 | 2535 | |||
3112 | 2536 | |||
3113 | 2537 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
3114 | 2538 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
3115 | 2539 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
3116 | 2540 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
3117 | 2541 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
3118 | 2542 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
3119 | 2543 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
3120 | 2544 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3121 | 2545 | AC_LIBTOOL_DLOPEN_SELF($1) | ||
3122 | 2546 | |||
3123 | 2547 | # Report which librarie types wil actually be built | ||
3124 | 2548 | AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
3125 | 2549 | AC_MSG_RESULT([$can_build_shared]) | ||
3126 | 2550 | |||
3127 | 2551 | AC_MSG_CHECKING([whether to build shared libraries]) | ||
3128 | 2552 | test "$can_build_shared" = "no" && enable_shared=no | ||
3129 | 2553 | |||
3130 | 2554 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
3131 | 2555 | # are all built from PIC. | ||
3132 | 2556 | case "$host_os" in | ||
3133 | 2557 | aix3*) | ||
3134 | 2558 | test "$enable_shared" = yes && enable_static=no | ||
3135 | 2559 | if test -n "$RANLIB"; then | ||
3136 | 2560 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
3137 | 2561 | postinstall_cmds='$RANLIB $lib' | ||
3138 | 2562 | fi | ||
3139 | 2563 | ;; | ||
3140 | 2564 | |||
3141 | 2565 | aix4* | aix5*) | ||
3142 | 2566 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
3143 | 2567 | test "$enable_shared" = yes && enable_static=no | ||
3144 | 2568 | fi | ||
3145 | 2569 | ;; | ||
3146 | 2570 | esac | ||
3147 | 2571 | AC_MSG_RESULT([$enable_shared]) | ||
3148 | 2572 | |||
3149 | 2573 | AC_MSG_CHECKING([whether to build static libraries]) | ||
3150 | 2574 | # Make sure either enable_shared or enable_static is yes. | ||
3151 | 2575 | test "$enable_shared" = yes || enable_static=yes | ||
3152 | 2576 | AC_MSG_RESULT([$enable_static]) | ||
3153 | 2577 | |||
3154 | 2578 | AC_LIBTOOL_CONFIG($1) | ||
3155 | 2579 | |||
3156 | 2580 | AC_LANG_POP | ||
3157 | 2581 | CC="$lt_save_CC" | ||
3158 | 2582 | ])# AC_LIBTOOL_LANG_C_CONFIG | ||
3159 | 2583 | |||
3160 | 2584 | |||
3161 | 2585 | # AC_LIBTOOL_LANG_CXX_CONFIG | ||
3162 | 2586 | # -------------------------- | ||
3163 | 2587 | # Ensure that the configuration vars for the C compiler are | ||
3164 | 2588 | # suitably defined. Those variables are subsequently used by | ||
3165 | 2589 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
3166 | 2590 | AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | ||
3167 | 2591 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | ||
3168 | 2592 | [AC_LANG_PUSH(C++) | ||
3169 | 2593 | AC_REQUIRE([AC_PROG_CXX]) | ||
3170 | 2594 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
3171 | 2595 | |||
3172 | 2596 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3173 | 2597 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
3174 | 2598 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
3175 | 2599 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
3176 | 2600 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
3177 | 2601 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3178 | 2602 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
3179 | 2603 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
3180 | 2604 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
3181 | 2605 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
3182 | 2606 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
3183 | 2607 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
3184 | 2608 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
3185 | 2609 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
3186 | 2610 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
3187 | 2611 | _LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
3188 | 2612 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
3189 | 2613 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
3190 | 2614 | |||
3191 | 2615 | # Dependencies to place before and after the object being linked: | ||
3192 | 2616 | _LT_AC_TAGVAR(predep_objects, $1)= | ||
3193 | 2617 | _LT_AC_TAGVAR(postdep_objects, $1)= | ||
3194 | 2618 | _LT_AC_TAGVAR(predeps, $1)= | ||
3195 | 2619 | _LT_AC_TAGVAR(postdeps, $1)= | ||
3196 | 2620 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | ||
3197 | 2621 | |||
3198 | 2622 | # Source file extension for C++ test sources. | ||
3199 | 2623 | ac_ext=cc | ||
3200 | 2624 | |||
3201 | 2625 | # Object file extension for compiled C++ test sources. | ||
3202 | 2626 | objext=o | ||
3203 | 2627 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
3204 | 2628 | |||
3205 | 2629 | # Code to be used in simple compile tests | ||
3206 | 2630 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
3207 | 2631 | |||
3208 | 2632 | # Code to be used in simple link tests | ||
3209 | 2633 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | ||
3210 | 2634 | |||
3211 | 2635 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
3212 | 2636 | _LT_AC_SYS_COMPILER | ||
3213 | 2637 | |||
3214 | 2638 | # Allow CC to be a program name with arguments. | ||
3215 | 2639 | lt_save_CC=$CC | ||
3216 | 2640 | lt_save_LD=$LD | ||
3217 | 2641 | lt_save_GCC=$GCC | ||
3218 | 2642 | GCC=$GXX | ||
3219 | 2643 | lt_save_with_gnu_ld=$with_gnu_ld | ||
3220 | 2644 | lt_save_path_LD=$lt_cv_path_LD | ||
3221 | 2645 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
3222 | 2646 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
3223 | 2647 | else | ||
3224 | 2648 | unset lt_cv_prog_gnu_ld | ||
3225 | 2649 | fi | ||
3226 | 2650 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
3227 | 2651 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
3228 | 2652 | else | ||
3229 | 2653 | unset lt_cv_path_LD | ||
3230 | 2654 | fi | ||
3231 | 2655 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
3232 | 2656 | CC=${CXX-"c++"} | ||
3233 | 2657 | compiler=$CC | ||
3234 | 2658 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
3235 | 2659 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | ||
3236 | 2660 | |||
3237 | 2661 | # We don't want -fno-exception wen compiling C++ code, so set the | ||
3238 | 2662 | # no_builtin_flag separately | ||
3239 | 2663 | if test "$GXX" = yes; then | ||
3240 | 2664 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
3241 | 2665 | else | ||
3242 | 2666 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
3243 | 2667 | fi | ||
3244 | 2668 | |||
3245 | 2669 | if test "$GXX" = yes; then | ||
3246 | 2670 | # Set up default GNU C++ configuration | ||
3247 | 2671 | |||
3248 | 2672 | AC_PROG_LD | ||
3249 | 2673 | |||
3250 | 2674 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
3251 | 2675 | # archiving commands below assume that GNU ld is being used. | ||
3252 | 2676 | if test "$with_gnu_ld" = yes; then | ||
3253 | 2677 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3254 | 2678 | _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' | ||
3255 | 2679 | |||
3256 | 2680 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
3257 | 2681 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3258 | 2682 | |||
3259 | 2683 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
3260 | 2684 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
3261 | 2685 | # investigate it a little bit more. (MM) | ||
3262 | 2686 | wlarc='${wl}' | ||
3263 | 2687 | |||
3264 | 2688 | # ancient GNU ld didn't support --whole-archive et. al. | ||
3265 | 2689 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
3266 | 2690 | grep 'no-whole-archive' > /dev/null; then | ||
3267 | 2691 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
3268 | 2692 | else | ||
3269 | 2693 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
3270 | 2694 | fi | ||
3271 | 2695 | else | ||
3272 | 2696 | with_gnu_ld=no | ||
3273 | 2697 | wlarc= | ||
3274 | 2698 | |||
3275 | 2699 | # A generic and very simple default shared library creation | ||
3276 | 2700 | # command for GNU C++ for the case where it uses the native | ||
3277 | 2701 | # linker, instead of GNU ld. If possible, this setting should | ||
3278 | 2702 | # overridden to take advantage of the native linker features on | ||
3279 | 2703 | # the platform it is being used on. | ||
3280 | 2704 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
3281 | 2705 | fi | ||
3282 | 2706 | |||
3283 | 2707 | # Commands to make compiler produce verbose output that lists | ||
3284 | 2708 | # what "hidden" libraries, object files and flags are used when | ||
3285 | 2709 | # linking a shared library. | ||
3286 | 2710 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
3287 | 2711 | |||
3288 | 2712 | else | ||
3289 | 2713 | GXX=no | ||
3290 | 2714 | with_gnu_ld=no | ||
3291 | 2715 | wlarc= | ||
3292 | 2716 | fi | ||
3293 | 2717 | |||
3294 | 2718 | # PORTME: fill in a description of your system's C++ link characteristics | ||
3295 | 2719 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
3296 | 2720 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
3297 | 2721 | case $host_os in | ||
3298 | 2722 | aix3*) | ||
3299 | 2723 | # FIXME: insert proper C++ library support | ||
3300 | 2724 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3301 | 2725 | ;; | ||
3302 | 2726 | aix4* | aix5*) | ||
3303 | 2727 | if test "$host_cpu" = ia64; then | ||
3304 | 2728 | # On IA64, the linker does run time linking by default, so we don't | ||
3305 | 2729 | # have to do anything special. | ||
3306 | 2730 | aix_use_runtimelinking=no | ||
3307 | 2731 | exp_sym_flag='-Bexport' | ||
3308 | 2732 | no_entry_flag="" | ||
3309 | 2733 | else | ||
3310 | 2734 | aix_use_runtimelinking=no | ||
3311 | 2735 | |||
3312 | 2736 | # Test if we are trying to use run time linking or normal | ||
3313 | 2737 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
3314 | 2738 | # need to do runtime linking. | ||
3315 | 2739 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | ||
3316 | 2740 | for ld_flag in $LDFLAGS; do | ||
3317 | 2741 | case $ld_flag in | ||
3318 | 2742 | *-brtl*) | ||
3319 | 2743 | aix_use_runtimelinking=yes | ||
3320 | 2744 | break | ||
3321 | 2745 | ;; | ||
3322 | 2746 | esac | ||
3323 | 2747 | done | ||
3324 | 2748 | esac | ||
3325 | 2749 | |||
3326 | 2750 | exp_sym_flag='-bexport' | ||
3327 | 2751 | no_entry_flag='-bnoentry' | ||
3328 | 2752 | fi | ||
3329 | 2753 | |||
3330 | 2754 | # When large executables or shared objects are built, AIX ld can | ||
3331 | 2755 | # have problems creating the table of contents. If linking a library | ||
3332 | 2756 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
3333 | 2757 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
3334 | 2758 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
3335 | 2759 | |||
3336 | 2760 | _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
3337 | 2761 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3338 | 2762 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
3339 | 2763 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3340 | 2764 | |||
3341 | 2765 | if test "$GXX" = yes; then | ||
3342 | 2766 | case $host_os in aix4.[012]|aix4.[012].*) | ||
3343 | 2767 | # We only want to do this on AIX 4.2 and lower, the check | ||
3344 | 2768 | # below for broken collect2 doesn't work under 4.3+ | ||
3345 | 2769 | collect2name=`${CC} -print-prog-name=collect2` | ||
3346 | 2770 | if test -f "$collect2name" && \ | ||
3347 | 2771 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
3348 | 2772 | then | ||
3349 | 2773 | # We have reworked collect2 | ||
3350 | 2774 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3351 | 2775 | else | ||
3352 | 2776 | # We have old collect2 | ||
3353 | 2777 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
3354 | 2778 | # It fails to find uninstalled libraries when the uninstalled | ||
3355 | 2779 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
3356 | 2780 | # to unsupported forces relinking | ||
3357 | 2781 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
3358 | 2782 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
3359 | 2783 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
3360 | 2784 | fi | ||
3361 | 2785 | esac | ||
3362 | 2786 | shared_flag='-shared' | ||
3363 | 2787 | else | ||
3364 | 2788 | # not using gcc | ||
3365 | 2789 | if test "$host_cpu" = ia64; then | ||
3366 | 2790 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
3367 | 2791 | # chokes on -Wl,-G. The following line is correct: | ||
3368 | 2792 | shared_flag='-G' | ||
3369 | 2793 | else | ||
3370 | 2794 | if test "$aix_use_runtimelinking" = yes; then | ||
3371 | 2795 | shared_flag='${wl}-G' | ||
3372 | 2796 | else | ||
3373 | 2797 | shared_flag='${wl}-bM:SRE' | ||
3374 | 2798 | fi | ||
3375 | 2799 | fi | ||
3376 | 2800 | fi | ||
3377 | 2801 | |||
3378 | 2802 | # It seems that -bexpall does not export symbols beginning with | ||
3379 | 2803 | # underscore (_), so it is better to generate a list of symbols to export. | ||
3380 | 2804 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
3381 | 2805 | if test "$aix_use_runtimelinking" = yes; then | ||
3382 | 2806 | # Warning - without using the other runtime loading flags (-brtl), | ||
3383 | 2807 | # -berok will link without error, but may produce a broken library. | ||
3384 | 2808 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
3385 | 2809 | # Determine the default libpath from the value encoded in an empty executable. | ||
3386 | 2810 | _LT_AC_SYS_LIBPATH_AIX | ||
3387 | 2811 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
3388 | 2812 | |||
3389 | 2813 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
3390 | 2814 | else | ||
3391 | 2815 | if test "$host_cpu" = ia64; then | ||
3392 | 2816 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
3393 | 2817 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | ||
3394 | 2818 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | ||
3395 | 2819 | else | ||
3396 | 2820 | # Determine the default libpath from the value encoded in an empty executable. | ||
3397 | 2821 | _LT_AC_SYS_LIBPATH_AIX | ||
3398 | 2822 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
3399 | 2823 | # Warning - without using the other run time loading flags, | ||
3400 | 2824 | # -berok will link without error, but may produce a broken library. | ||
3401 | 2825 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
3402 | 2826 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
3403 | 2827 | # -bexpall does not export symbols beginning with underscore (_) | ||
3404 | 2828 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
3405 | 2829 | # Exported symbols can be pulled into shared objects from archives | ||
3406 | 2830 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' | ||
3407 | 2831 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
3408 | 2832 | # This is similar to how AIX traditionally builds it's shared libraries. | ||
3409 | 2833 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
3410 | 2834 | fi | ||
3411 | 2835 | fi | ||
3412 | 2836 | ;; | ||
3413 | 2837 | chorus*) | ||
3414 | 2838 | case $cc_basename in | ||
3415 | 2839 | *) | ||
3416 | 2840 | # FIXME: insert proper C++ library support | ||
3417 | 2841 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3418 | 2842 | ;; | ||
3419 | 2843 | esac | ||
3420 | 2844 | ;; | ||
3421 | 2845 | |||
3422 | 2846 | |||
3423 | 2847 | cygwin* | mingw* | pw32*) | ||
3424 | 2848 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
3425 | 2849 | # as there is no search path for DLLs. | ||
3426 | 2850 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
3427 | 2851 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
3428 | 2852 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
3429 | 2853 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
3430 | 2854 | |||
3431 | 2855 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
3432 | 2856 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
3433 | 2857 | # If the export-symbols file already is a .def file (1st line | ||
3434 | 2858 | # is EXPORTS), use it as is; otherwise, prepend... | ||
3435 | 2859 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
3436 | 2860 | cp $export_symbols $output_objdir/$soname.def; | ||
3437 | 2861 | else | ||
3438 | 2862 | echo EXPORTS > $output_objdir/$soname.def; | ||
3439 | 2863 | cat $export_symbols >> $output_objdir/$soname.def; | ||
3440 | 2864 | fi~ | ||
3441 | 2865 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
3442 | 2866 | else | ||
3443 | 2867 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3444 | 2868 | fi | ||
3445 | 2869 | ;; | ||
3446 | 2870 | darwin* | rhapsody*) | ||
3447 | 2871 | case "$host_os" in | ||
3448 | 2872 | rhapsody* | darwin1.[[012]]) | ||
3449 | 2873 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
3450 | 2874 | ;; | ||
3451 | 2875 | *) # Darwin 1.3 on | ||
3452 | 2876 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
3453 | 2877 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
3454 | 2878 | else | ||
3455 | 2879 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
3456 | 2880 | 10.[[012]]) | ||
3457 | 2881 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
3458 | 2882 | ;; | ||
3459 | 2883 | 10.*) | ||
3460 | 2884 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
3461 | 2885 | ;; | ||
3462 | 2886 | esac | ||
3463 | 2887 | fi | ||
3464 | 2888 | ;; | ||
3465 | 2889 | esac | ||
3466 | 2890 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3467 | 2891 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3468 | 2892 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
3469 | 2893 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
3470 | 2894 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | ||
3471 | 2895 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3472 | 2896 | |||
3473 | 2897 | if test "$GXX" = yes ; then | ||
3474 | 2898 | lt_int_apple_cc_single_mod=no | ||
3475 | 2899 | output_verbose_link_cmd='echo' | ||
3476 | 2900 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | ||
3477 | 2901 | lt_int_apple_cc_single_mod=yes | ||
3478 | 2902 | fi | ||
3479 | 2903 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
3480 | 2904 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
3481 | 2905 | else | ||
3482 | 2906 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
3483 | 2907 | fi | ||
3484 | 2908 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
3485 | 2909 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
3486 | 2910 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
3487 | 2911 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
3488 | 2912 | else | ||
3489 | 2913 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
3490 | 2914 | fi | ||
3491 | 2915 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
3492 | 2916 | else | ||
3493 | 2917 | case "$cc_basename" in | ||
3494 | 2918 | xlc*) | ||
3495 | 2919 | output_verbose_link_cmd='echo' | ||
3496 | 2920 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
3497 | 2921 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
3498 | 2922 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
3499 | 2923 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
3500 | 2924 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
3501 | 2925 | ;; | ||
3502 | 2926 | *) | ||
3503 | 2927 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3504 | 2928 | ;; | ||
3505 | 2929 | esac | ||
3506 | 2930 | fi | ||
3507 | 2931 | ;; | ||
3508 | 2932 | |||
3509 | 2933 | dgux*) | ||
3510 | 2934 | case $cc_basename in | ||
3511 | 2935 | ec++) | ||
3512 | 2936 | # FIXME: insert proper C++ library support | ||
3513 | 2937 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3514 | 2938 | ;; | ||
3515 | 2939 | ghcx) | ||
3516 | 2940 | # Green Hills C++ Compiler | ||
3517 | 2941 | # FIXME: insert proper C++ library support | ||
3518 | 2942 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3519 | 2943 | ;; | ||
3520 | 2944 | *) | ||
3521 | 2945 | # FIXME: insert proper C++ library support | ||
3522 | 2946 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3523 | 2947 | ;; | ||
3524 | 2948 | esac | ||
3525 | 2949 | ;; | ||
3526 | 2950 | freebsd[12]*) | ||
3527 | 2951 | # C++ shared libraries reported to be fairly broken before switch to ELF | ||
3528 | 2952 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3529 | 2953 | ;; | ||
3530 | 2954 | freebsd-elf*) | ||
3531 | 2955 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3532 | 2956 | ;; | ||
3533 | 2957 | freebsd* | kfreebsd*-gnu) | ||
3534 | 2958 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
3535 | 2959 | # conventions | ||
3536 | 2960 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
3537 | 2961 | ;; | ||
3538 | 2962 | gnu*) | ||
3539 | 2963 | ;; | ||
3540 | 2964 | hpux9*) | ||
3541 | 2965 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
3542 | 2966 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3543 | 2967 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3544 | 2968 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3545 | 2969 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
3546 | 2970 | # but as the default | ||
3547 | 2971 | # location of the library. | ||
3548 | 2972 | |||
3549 | 2973 | case $cc_basename in | ||
3550 | 2974 | CC) | ||
3551 | 2975 | # FIXME: insert proper C++ library support | ||
3552 | 2976 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3553 | 2977 | ;; | ||
3554 | 2978 | aCC) | ||
3555 | 2979 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${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' | ||
3556 | 2980 | # Commands to make compiler produce verbose output that lists | ||
3557 | 2981 | # what "hidden" libraries, object files and flags are used when | ||
3558 | 2982 | # linking a shared library. | ||
3559 | 2983 | # | ||
3560 | 2984 | # There doesn't appear to be a way to prevent this compiler from | ||
3561 | 2985 | # explicitly linking system object files so we need to strip them | ||
3562 | 2986 | # from the output so that they don't get included in the library | ||
3563 | 2987 | # dependencies. | ||
3564 | 2988 | 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' | ||
3565 | 2989 | ;; | ||
3566 | 2990 | *) | ||
3567 | 2991 | if test "$GXX" = yes; then | ||
3568 | 2992 | _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' | ||
3569 | 2993 | else | ||
3570 | 2994 | # FIXME: insert proper C++ library support | ||
3571 | 2995 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3572 | 2996 | fi | ||
3573 | 2997 | ;; | ||
3574 | 2998 | esac | ||
3575 | 2999 | ;; | ||
3576 | 3000 | hpux10*|hpux11*) | ||
3577 | 3001 | if test $with_gnu_ld = no; then | ||
3578 | 3002 | case "$host_cpu" in | ||
3579 | 3003 | hppa*64*) | ||
3580 | 3004 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
3581 | 3005 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | ||
3582 | 3006 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3583 | 3007 | ;; | ||
3584 | 3008 | ia64*) | ||
3585 | 3009 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
3586 | 3010 | ;; | ||
3587 | 3011 | *) | ||
3588 | 3012 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
3589 | 3013 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3590 | 3014 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3591 | 3015 | ;; | ||
3592 | 3016 | esac | ||
3593 | 3017 | fi | ||
3594 | 3018 | case "$host_cpu" in | ||
3595 | 3019 | hppa*64*) | ||
3596 | 3020 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3597 | 3021 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3598 | 3022 | ;; | ||
3599 | 3023 | ia64*) | ||
3600 | 3024 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3601 | 3025 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3602 | 3026 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
3603 | 3027 | # but as the default | ||
3604 | 3028 | # location of the library. | ||
3605 | 3029 | ;; | ||
3606 | 3030 | *) | ||
3607 | 3031 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3608 | 3032 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
3609 | 3033 | # but as the default | ||
3610 | 3034 | # location of the library. | ||
3611 | 3035 | ;; | ||
3612 | 3036 | esac | ||
3613 | 3037 | |||
3614 | 3038 | case $cc_basename in | ||
3615 | 3039 | CC) | ||
3616 | 3040 | # FIXME: insert proper C++ library support | ||
3617 | 3041 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3618 | 3042 | ;; | ||
3619 | 3043 | aCC) | ||
3620 | 3044 | case "$host_cpu" in | ||
3621 | 3045 | hppa*64*|ia64*) | ||
3622 | 3046 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | ||
3623 | 3047 | ;; | ||
3624 | 3048 | *) | ||
3625 | 3049 | _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' | ||
3626 | 3050 | ;; | ||
3627 | 3051 | esac | ||
3628 | 3052 | # Commands to make compiler produce verbose output that lists | ||
3629 | 3053 | # what "hidden" libraries, object files and flags are used when | ||
3630 | 3054 | # linking a shared library. | ||
3631 | 3055 | # | ||
3632 | 3056 | # There doesn't appear to be a way to prevent this compiler from | ||
3633 | 3057 | # explicitly linking system object files so we need to strip them | ||
3634 | 3058 | # from the output so that they don't get included in the library | ||
3635 | 3059 | # dependencies. | ||
3636 | 3060 | 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' | ||
3637 | 3061 | ;; | ||
3638 | 3062 | *) | ||
3639 | 3063 | if test "$GXX" = yes; then | ||
3640 | 3064 | if test $with_gnu_ld = no; then | ||
3641 | 3065 | case "$host_cpu" in | ||
3642 | 3066 | ia64*|hppa*64*) | ||
3643 | 3067 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | ||
3644 | 3068 | ;; | ||
3645 | 3069 | *) | ||
3646 | 3070 | _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' | ||
3647 | 3071 | ;; | ||
3648 | 3072 | esac | ||
3649 | 3073 | fi | ||
3650 | 3074 | else | ||
3651 | 3075 | # FIXME: insert proper C++ library support | ||
3652 | 3076 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3653 | 3077 | fi | ||
3654 | 3078 | ;; | ||
3655 | 3079 | esac | ||
3656 | 3080 | ;; | ||
3657 | 3081 | irix5* | irix6*) | ||
3658 | 3082 | case $cc_basename in | ||
3659 | 3083 | CC) | ||
3660 | 3084 | # SGI C++ | ||
3661 | 3085 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | ||
3662 | 3086 | |||
3663 | 3087 | # Archives containing C++ object files must be created using | ||
3664 | 3088 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
3665 | 3089 | # necessary to make sure instantiated templates are included | ||
3666 | 3090 | # in the archive. | ||
3667 | 3091 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
3668 | 3092 | ;; | ||
3669 | 3093 | *) | ||
3670 | 3094 | if test "$GXX" = yes; then | ||
3671 | 3095 | if test "$with_gnu_ld" = no; then | ||
3672 | 3096 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | ||
3673 | 3097 | else | ||
3674 | 3098 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | ||
3675 | 3099 | fi | ||
3676 | 3100 | fi | ||
3677 | 3101 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3678 | 3102 | ;; | ||
3679 | 3103 | esac | ||
3680 | 3104 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
3681 | 3105 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3682 | 3106 | ;; | ||
3683 | 3107 | linux*) | ||
3684 | 3108 | case $cc_basename in | ||
3685 | 3109 | KCC) | ||
3686 | 3110 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
3687 | 3111 | |||
3688 | 3112 | # KCC will only create a shared library if the output file | ||
3689 | 3113 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
3690 | 3114 | # to its proper name (with version) after linking. | ||
3691 | 3115 | _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
3692 | 3116 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | ||
3693 | 3117 | # Commands to make compiler produce verbose output that lists | ||
3694 | 3118 | # what "hidden" libraries, object files and flags are used when | ||
3695 | 3119 | # linking a shared library. | ||
3696 | 3120 | # | ||
3697 | 3121 | # There doesn't appear to be a way to prevent this compiler from | ||
3698 | 3122 | # explicitly linking system object files so we need to strip them | ||
3699 | 3123 | # from the output so that they don't get included in the library | ||
3700 | 3124 | # dependencies. | ||
3701 | 3125 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
3702 | 3126 | |||
3703 | 3127 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' | ||
3704 | 3128 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3705 | 3129 | |||
3706 | 3130 | # Archives containing C++ object files must be created using | ||
3707 | 3131 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
3708 | 3132 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | ||
3709 | 3133 | ;; | ||
3710 | 3134 | icpc) | ||
3711 | 3135 | # Intel C++ | ||
3712 | 3136 | with_gnu_ld=yes | ||
3713 | 3137 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
3714 | 3138 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
3715 | 3139 | # earlier do not add the objects themselves. | ||
3716 | 3140 | case `$CC -V 2>&1` in | ||
3717 | 3141 | *"Version 7."*) | ||
3718 | 3142 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3719 | 3143 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
3720 | 3144 | ;; | ||
3721 | 3145 | *) # Version 8.0 or newer | ||
3722 | 3146 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3723 | 3147 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
3724 | 3148 | ;; | ||
3725 | 3149 | esac | ||
3726 | 3150 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3727 | 3151 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3728 | 3152 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3729 | 3153 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
3730 | 3154 | ;; | ||
3731 | 3155 | cxx) | ||
3732 | 3156 | # Compaq C++ | ||
3733 | 3157 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3734 | 3158 | _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' | ||
3735 | 3159 | |||
3736 | 3160 | runpath_var=LD_RUN_PATH | ||
3737 | 3161 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
3738 | 3162 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3739 | 3163 | |||
3740 | 3164 | # Commands to make compiler produce verbose output that lists | ||
3741 | 3165 | # what "hidden" libraries, object files and flags are used when | ||
3742 | 3166 | # linking a shared library. | ||
3743 | 3167 | # | ||
3744 | 3168 | # There doesn't appear to be a way to prevent this compiler from | ||
3745 | 3169 | # explicitly linking system object files so we need to strip them | ||
3746 | 3170 | # from the output so that they don't get included in the library | ||
3747 | 3171 | # dependencies. | ||
3748 | 3172 | 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' | ||
3749 | 3173 | ;; | ||
3750 | 3174 | esac | ||
3751 | 3175 | ;; | ||
3752 | 3176 | lynxos*) | ||
3753 | 3177 | # FIXME: insert proper C++ library support | ||
3754 | 3178 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3755 | 3179 | ;; | ||
3756 | 3180 | m88k*) | ||
3757 | 3181 | # FIXME: insert proper C++ library support | ||
3758 | 3182 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3759 | 3183 | ;; | ||
3760 | 3184 | mvs*) | ||
3761 | 3185 | case $cc_basename in | ||
3762 | 3186 | cxx) | ||
3763 | 3187 | # FIXME: insert proper C++ library support | ||
3764 | 3188 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3765 | 3189 | ;; | ||
3766 | 3190 | *) | ||
3767 | 3191 | # FIXME: insert proper C++ library support | ||
3768 | 3192 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3769 | 3193 | ;; | ||
3770 | 3194 | esac | ||
3771 | 3195 | ;; | ||
3772 | 3196 | netbsd*) | ||
3773 | 3197 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
3774 | 3198 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
3775 | 3199 | wlarc= | ||
3776 | 3200 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
3777 | 3201 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3778 | 3202 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3779 | 3203 | fi | ||
3780 | 3204 | # Workaround some broken pre-1.5 toolchains | ||
3781 | 3205 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
3782 | 3206 | ;; | ||
3783 | 3207 | openbsd2*) | ||
3784 | 3208 | # C++ shared libraries are fairly broken | ||
3785 | 3209 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3786 | 3210 | ;; | ||
3787 | 3211 | openbsd*) | ||
3788 | 3212 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3789 | 3213 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3790 | 3214 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
3791 | 3215 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3792 | 3216 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3793 | 3217 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
3794 | 3218 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3795 | 3219 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
3796 | 3220 | fi | ||
3797 | 3221 | output_verbose_link_cmd='echo' | ||
3798 | 3222 | ;; | ||
3799 | 3223 | osf3*) | ||
3800 | 3224 | case $cc_basename in | ||
3801 | 3225 | KCC) | ||
3802 | 3226 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
3803 | 3227 | |||
3804 | 3228 | # KCC will only create a shared library if the output file | ||
3805 | 3229 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
3806 | 3230 | # to its proper name (with version) after linking. | ||
3807 | 3231 | _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
3808 | 3232 | |||
3809 | 3233 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3810 | 3234 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3811 | 3235 | |||
3812 | 3236 | # Archives containing C++ object files must be created using | ||
3813 | 3237 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
3814 | 3238 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | ||
3815 | 3239 | |||
3816 | 3240 | ;; | ||
3817 | 3241 | RCC) | ||
3818 | 3242 | # Rational C++ 2.4.1 | ||
3819 | 3243 | # FIXME: insert proper C++ library support | ||
3820 | 3244 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3821 | 3245 | ;; | ||
3822 | 3246 | cxx) | ||
3823 | 3247 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
3824 | 3248 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | ||
3825 | 3249 | |||
3826 | 3250 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
3827 | 3251 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3828 | 3252 | |||
3829 | 3253 | # Commands to make compiler produce verbose output that lists | ||
3830 | 3254 | # what "hidden" libraries, object files and flags are used when | ||
3831 | 3255 | # linking a shared library. | ||
3832 | 3256 | # | ||
3833 | 3257 | # There doesn't appear to be a way to prevent this compiler from | ||
3834 | 3258 | # explicitly linking system object files so we need to strip them | ||
3835 | 3259 | # from the output so that they don't get included in the library | ||
3836 | 3260 | # dependencies. | ||
3837 | 3261 | 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' | ||
3838 | 3262 | ;; | ||
3839 | 3263 | *) | ||
3840 | 3264 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
3841 | 3265 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
3842 | 3266 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | ||
3843 | 3267 | |||
3844 | 3268 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
3845 | 3269 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3846 | 3270 | |||
3847 | 3271 | # Commands to make compiler produce verbose output that lists | ||
3848 | 3272 | # what "hidden" libraries, object files and flags are used when | ||
3849 | 3273 | # linking a shared library. | ||
3850 | 3274 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
3851 | 3275 | |||
3852 | 3276 | else | ||
3853 | 3277 | # FIXME: insert proper C++ library support | ||
3854 | 3278 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3855 | 3279 | fi | ||
3856 | 3280 | ;; | ||
3857 | 3281 | esac | ||
3858 | 3282 | ;; | ||
3859 | 3283 | osf4* | osf5*) | ||
3860 | 3284 | case $cc_basename in | ||
3861 | 3285 | KCC) | ||
3862 | 3286 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
3863 | 3287 | |||
3864 | 3288 | # KCC will only create a shared library if the output file | ||
3865 | 3289 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
3866 | 3290 | # to its proper name (with version) after linking. | ||
3867 | 3291 | _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
3868 | 3292 | |||
3869 | 3293 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3870 | 3294 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3871 | 3295 | |||
3872 | 3296 | # Archives containing C++ object files must be created using | ||
3873 | 3297 | # the KAI C++ compiler. | ||
3874 | 3298 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | ||
3875 | 3299 | ;; | ||
3876 | 3300 | RCC) | ||
3877 | 3301 | # Rational C++ 2.4.1 | ||
3878 | 3302 | # FIXME: insert proper C++ library support | ||
3879 | 3303 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3880 | 3304 | ;; | ||
3881 | 3305 | cxx) | ||
3882 | 3306 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
3883 | 3307 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | ||
3884 | 3308 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
3885 | 3309 | echo "-hidden">> $lib.exp~ | ||
3886 | 3310 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ | ||
3887 | 3311 | $rm $lib.exp' | ||
3888 | 3312 | |||
3889 | 3313 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
3890 | 3314 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3891 | 3315 | |||
3892 | 3316 | # Commands to make compiler produce verbose output that lists | ||
3893 | 3317 | # what "hidden" libraries, object files and flags are used when | ||
3894 | 3318 | # linking a shared library. | ||
3895 | 3319 | # | ||
3896 | 3320 | # There doesn't appear to be a way to prevent this compiler from | ||
3897 | 3321 | # explicitly linking system object files so we need to strip them | ||
3898 | 3322 | # from the output so that they don't get included in the library | ||
3899 | 3323 | # dependencies. | ||
3900 | 3324 | 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' | ||
3901 | 3325 | ;; | ||
3902 | 3326 | *) | ||
3903 | 3327 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
3904 | 3328 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
3905 | 3329 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | ||
3906 | 3330 | |||
3907 | 3331 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
3908 | 3332 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3909 | 3333 | |||
3910 | 3334 | # Commands to make compiler produce verbose output that lists | ||
3911 | 3335 | # what "hidden" libraries, object files and flags are used when | ||
3912 | 3336 | # linking a shared library. | ||
3913 | 3337 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
3914 | 3338 | |||
3915 | 3339 | else | ||
3916 | 3340 | # FIXME: insert proper C++ library support | ||
3917 | 3341 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3918 | 3342 | fi | ||
3919 | 3343 | ;; | ||
3920 | 3344 | esac | ||
3921 | 3345 | ;; | ||
3922 | 3346 | psos*) | ||
3923 | 3347 | # FIXME: insert proper C++ library support | ||
3924 | 3348 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3925 | 3349 | ;; | ||
3926 | 3350 | sco*) | ||
3927 | 3351 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3928 | 3352 | case $cc_basename in | ||
3929 | 3353 | CC) | ||
3930 | 3354 | # FIXME: insert proper C++ library support | ||
3931 | 3355 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3932 | 3356 | ;; | ||
3933 | 3357 | *) | ||
3934 | 3358 | # FIXME: insert proper C++ library support | ||
3935 | 3359 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3936 | 3360 | ;; | ||
3937 | 3361 | esac | ||
3938 | 3362 | ;; | ||
3939 | 3363 | sunos4*) | ||
3940 | 3364 | case $cc_basename in | ||
3941 | 3365 | CC) | ||
3942 | 3366 | # Sun C++ 4.x | ||
3943 | 3367 | # FIXME: insert proper C++ library support | ||
3944 | 3368 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3945 | 3369 | ;; | ||
3946 | 3370 | lcc) | ||
3947 | 3371 | # Lucid | ||
3948 | 3372 | # FIXME: insert proper C++ library support | ||
3949 | 3373 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3950 | 3374 | ;; | ||
3951 | 3375 | *) | ||
3952 | 3376 | # FIXME: insert proper C++ library support | ||
3953 | 3377 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3954 | 3378 | ;; | ||
3955 | 3379 | esac | ||
3956 | 3380 | ;; | ||
3957 | 3381 | solaris*) | ||
3958 | 3382 | case $cc_basename in | ||
3959 | 3383 | CC) | ||
3960 | 3384 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
3961 | 3385 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | ||
3962 | 3386 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3963 | 3387 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
3964 | 3388 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
3965 | 3389 | |||
3966 | 3390 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
3967 | 3391 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3968 | 3392 | case $host_os in | ||
3969 | 3393 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
3970 | 3394 | *) | ||
3971 | 3395 | # The C++ compiler is used as linker so we must use $wl | ||
3972 | 3396 | # flag to pass the commands to the underlying system | ||
3973 | 3397 | # linker. | ||
3974 | 3398 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
3975 | 3399 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
3976 | 3400 | ;; | ||
3977 | 3401 | esac | ||
3978 | 3402 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3979 | 3403 | |||
3980 | 3404 | # Commands to make compiler produce verbose output that lists | ||
3981 | 3405 | # what "hidden" libraries, object files and flags are used when | ||
3982 | 3406 | # linking a shared library. | ||
3983 | 3407 | # | ||
3984 | 3408 | # There doesn't appear to be a way to prevent this compiler from | ||
3985 | 3409 | # explicitly linking system object files so we need to strip them | ||
3986 | 3410 | # from the output so that they don't get included in the library | ||
3987 | 3411 | # dependencies. | ||
3988 | 3412 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
3989 | 3413 | |||
3990 | 3414 | # Archives containing C++ object files must be created using | ||
3991 | 3415 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
3992 | 3416 | # necessary to make sure instantiated templates are included | ||
3993 | 3417 | # in the archive. | ||
3994 | 3418 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | ||
3995 | 3419 | ;; | ||
3996 | 3420 | gcx) | ||
3997 | 3421 | # Green Hills C++ Compiler | ||
3998 | 3422 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
3999 | 3423 | |||
4000 | 3424 | # The C++ compiler must be used to create the archive. | ||
4001 | 3425 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
4002 | 3426 | ;; | ||
4003 | 3427 | *) | ||
4004 | 3428 | # GNU C++ compiler with Solaris linker | ||
4005 | 3429 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
4006 | 3430 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | ||
4007 | 3431 | if $CC --version | grep -v '^2\.7' > /dev/null; then | ||
4008 | 3432 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
4009 | 3433 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
4010 | 3434 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
4011 | 3435 | |||
4012 | 3436 | # Commands to make compiler produce verbose output that lists | ||
4013 | 3437 | # what "hidden" libraries, object files and flags are used when | ||
4014 | 3438 | # linking a shared library. | ||
4015 | 3439 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
4016 | 3440 | else | ||
4017 | 3441 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
4018 | 3442 | # platform. | ||
4019 | 3443 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
4020 | 3444 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
4021 | 3445 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
4022 | 3446 | |||
4023 | 3447 | # Commands to make compiler produce verbose output that lists | ||
4024 | 3448 | # what "hidden" libraries, object files and flags are used when | ||
4025 | 3449 | # linking a shared library. | ||
4026 | 3450 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
4027 | 3451 | fi | ||
4028 | 3452 | |||
4029 | 3453 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | ||
4030 | 3454 | fi | ||
4031 | 3455 | ;; | ||
4032 | 3456 | esac | ||
4033 | 3457 | ;; | ||
4034 | 3458 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) | ||
4035 | 3459 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4036 | 3460 | ;; | ||
4037 | 3461 | tandem*) | ||
4038 | 3462 | case $cc_basename in | ||
4039 | 3463 | NCC) | ||
4040 | 3464 | # NonStop-UX NCC 3.20 | ||
4041 | 3465 | # FIXME: insert proper C++ library support | ||
4042 | 3466 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4043 | 3467 | ;; | ||
4044 | 3468 | *) | ||
4045 | 3469 | # FIXME: insert proper C++ library support | ||
4046 | 3470 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4047 | 3471 | ;; | ||
4048 | 3472 | esac | ||
4049 | 3473 | ;; | ||
4050 | 3474 | vxworks*) | ||
4051 | 3475 | # FIXME: insert proper C++ library support | ||
4052 | 3476 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4053 | 3477 | ;; | ||
4054 | 3478 | *) | ||
4055 | 3479 | # FIXME: insert proper C++ library support | ||
4056 | 3480 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4057 | 3481 | ;; | ||
4058 | 3482 | esac | ||
4059 | 3483 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | ||
4060 | 3484 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
4061 | 3485 | |||
4062 | 3486 | _LT_AC_TAGVAR(GCC, $1)="$GXX" | ||
4063 | 3487 | _LT_AC_TAGVAR(LD, $1)="$LD" | ||
4064 | 3488 | |||
4065 | 3489 | AC_LIBTOOL_POSTDEP_PREDEP($1) | ||
4066 | 3490 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4067 | 3491 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
4068 | 3492 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4069 | 3493 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4070 | 3494 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4071 | 3495 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4072 | 3496 | AC_LIBTOOL_SYS_LIB_STRIP | ||
4073 | 3497 | AC_LIBTOOL_DLOPEN_SELF($1) | ||
4074 | 3498 | |||
4075 | 3499 | AC_LIBTOOL_CONFIG($1) | ||
4076 | 3500 | |||
4077 | 3501 | AC_LANG_POP | ||
4078 | 3502 | CC=$lt_save_CC | ||
4079 | 3503 | LDCXX=$LD | ||
4080 | 3504 | LD=$lt_save_LD | ||
4081 | 3505 | GCC=$lt_save_GCC | ||
4082 | 3506 | with_gnu_ldcxx=$with_gnu_ld | ||
4083 | 3507 | with_gnu_ld=$lt_save_with_gnu_ld | ||
4084 | 3508 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
4085 | 3509 | lt_cv_path_LD=$lt_save_path_LD | ||
4086 | 3510 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
4087 | 3511 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
4088 | 3512 | ])# AC_LIBTOOL_LANG_CXX_CONFIG | ||
4089 | 3513 | |||
4090 | 3514 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | ||
4091 | 3515 | # ------------------------ | ||
4092 | 3516 | # Figure out "hidden" library dependencies from verbose | ||
4093 | 3517 | # compiler output when linking a shared library. | ||
4094 | 3518 | # Parse the compiler output and extract the necessary | ||
4095 | 3519 | # objects, libraries and library flags. | ||
4096 | 3520 | AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ | ||
4097 | 3521 | dnl we can't use the lt_simple_compile_test_code here, | ||
4098 | 3522 | dnl because it contains code intended for an executable, | ||
4099 | 3523 | dnl not a library. It's possible we should let each | ||
4100 | 3524 | dnl tag define a new lt_????_link_test_code variable, | ||
4101 | 3525 | dnl but it's only used here... | ||
4102 | 3526 | ifelse([$1],[],[cat > conftest.$ac_ext <<EOF | ||
4103 | 3527 | int a; | ||
4104 | 3528 | void foo (void) { a = 0; } | ||
4105 | 3529 | EOF | ||
4106 | 3530 | ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF | ||
4107 | 3531 | class Foo | ||
4108 | 3532 | { | ||
4109 | 3533 | public: | ||
4110 | 3534 | Foo (void) { a = 0; } | ||
4111 | 3535 | private: | ||
4112 | 3536 | int a; | ||
4113 | 3537 | }; | ||
4114 | 3538 | EOF | ||
4115 | 3539 | ],[$1],[F77],[cat > conftest.$ac_ext <<EOF | ||
4116 | 3540 | subroutine foo | ||
4117 | 3541 | implicit none | ||
4118 | 3542 | integer*4 a | ||
4119 | 3543 | a=0 | ||
4120 | 3544 | return | ||
4121 | 3545 | end | ||
4122 | 3546 | EOF | ||
4123 | 3547 | ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF | ||
4124 | 3548 | public class foo { | ||
4125 | 3549 | private int a; | ||
4126 | 3550 | public void bar (void) { | ||
4127 | 3551 | a = 0; | ||
4128 | 3552 | } | ||
4129 | 3553 | }; | ||
4130 | 3554 | EOF | ||
4131 | 3555 | ]) | ||
4132 | 3556 | dnl Parse the compiler output and extract the necessary | ||
4133 | 3557 | dnl objects, libraries and library flags. | ||
4134 | 3558 | if AC_TRY_EVAL(ac_compile); then | ||
4135 | 3559 | # Parse the compiler output and extract the necessary | ||
4136 | 3560 | # objects, libraries and library flags. | ||
4137 | 3561 | |||
4138 | 3562 | # Sentinel used to keep track of whether or not we are before | ||
4139 | 3563 | # the conftest object file. | ||
4140 | 3564 | pre_test_object_deps_done=no | ||
4141 | 3565 | |||
4142 | 3566 | # The `*' in the case matches for architectures that use `case' in | ||
4143 | 3567 | # $output_verbose_cmd can trigger glob expansion during the loop | ||
4144 | 3568 | # eval without this substitution. | ||
4145 | 3569 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | ||
4146 | 3570 | |||
4147 | 3571 | for p in `eval $output_verbose_link_cmd`; do | ||
4148 | 3572 | case $p in | ||
4149 | 3573 | |||
4150 | 3574 | -L* | -R* | -l*) | ||
4151 | 3575 | # Some compilers place space between "-{L,R}" and the path. | ||
4152 | 3576 | # Remove the space. | ||
4153 | 3577 | if test $p = "-L" \ | ||
4154 | 3578 | || test $p = "-R"; then | ||
4155 | 3579 | prev=$p | ||
4156 | 3580 | continue | ||
4157 | 3581 | else | ||
4158 | 3582 | prev= | ||
4159 | 3583 | fi | ||
4160 | 3584 | |||
4161 | 3585 | if test "$pre_test_object_deps_done" = no; then | ||
4162 | 3586 | case $p in | ||
4163 | 3587 | -L* | -R*) | ||
4164 | 3588 | # Internal compiler library paths should come after those | ||
4165 | 3589 | # provided the user. The postdeps already come after the | ||
4166 | 3590 | # user supplied libs so there is no need to process them. | ||
4167 | 3591 | if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then | ||
4168 | 3592 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | ||
4169 | 3593 | else | ||
4170 | 3594 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | ||
4171 | 3595 | fi | ||
4172 | 3596 | ;; | ||
4173 | 3597 | # The "-l" case would never come before the object being | ||
4174 | 3598 | # linked, so don't bother handling this case. | ||
4175 | 3599 | esac | ||
4176 | 3600 | else | ||
4177 | 3601 | if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then | ||
4178 | 3602 | _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" | ||
4179 | 3603 | else | ||
4180 | 3604 | _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" | ||
4181 | 3605 | fi | ||
4182 | 3606 | fi | ||
4183 | 3607 | ;; | ||
4184 | 3608 | |||
4185 | 3609 | *.$objext) | ||
4186 | 3610 | # This assumes that the test object file only shows up | ||
4187 | 3611 | # once in the compiler output. | ||
4188 | 3612 | if test "$p" = "conftest.$objext"; then | ||
4189 | 3613 | pre_test_object_deps_done=yes | ||
4190 | 3614 | continue | ||
4191 | 3615 | fi | ||
4192 | 3616 | |||
4193 | 3617 | if test "$pre_test_object_deps_done" = no; then | ||
4194 | 3618 | if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then | ||
4195 | 3619 | _LT_AC_TAGVAR(predep_objects, $1)="$p" | ||
4196 | 3620 | else | ||
4197 | 3621 | _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" | ||
4198 | 3622 | fi | ||
4199 | 3623 | else | ||
4200 | 3624 | if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then | ||
4201 | 3625 | _LT_AC_TAGVAR(postdep_objects, $1)="$p" | ||
4202 | 3626 | else | ||
4203 | 3627 | _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" | ||
4204 | 3628 | fi | ||
4205 | 3629 | fi | ||
4206 | 3630 | ;; | ||
4207 | 3631 | |||
4208 | 3632 | *) ;; # Ignore the rest. | ||
4209 | 3633 | |||
4210 | 3634 | esac | ||
4211 | 3635 | done | ||
4212 | 3636 | |||
4213 | 3637 | # Clean up. | ||
4214 | 3638 | rm -f a.out a.exe | ||
4215 | 3639 | else | ||
4216 | 3640 | echo "libtool.m4: error: problem compiling $1 test program" | ||
4217 | 3641 | fi | ||
4218 | 3642 | |||
4219 | 3643 | $rm -f confest.$objext | ||
4220 | 3644 | |||
4221 | 3645 | case " $_LT_AC_TAGVAR(postdeps, $1) " in | ||
4222 | 3646 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | ||
4223 | 3647 | esac | ||
4224 | 3648 | ])# AC_LIBTOOL_POSTDEP_PREDEP | ||
4225 | 3649 | |||
4226 | 3650 | # AC_LIBTOOL_LANG_F77_CONFIG | ||
4227 | 3651 | # ------------------------ | ||
4228 | 3652 | # Ensure that the configuration vars for the C compiler are | ||
4229 | 3653 | # suitably defined. Those variables are subsequently used by | ||
4230 | 3654 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4231 | 3655 | AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) | ||
4232 | 3656 | AC_DEFUN([_LT_AC_LANG_F77_CONFIG], | ||
4233 | 3657 | [AC_REQUIRE([AC_PROG_F77]) | ||
4234 | 3658 | AC_LANG_PUSH(Fortran 77) | ||
4235 | 3659 | |||
4236 | 3660 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4237 | 3661 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
4238 | 3662 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
4239 | 3663 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
4240 | 3664 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
4241 | 3665 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4242 | 3666 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
4243 | 3667 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
4244 | 3668 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
4245 | 3669 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
4246 | 3670 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
4247 | 3671 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
4248 | 3672 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
4249 | 3673 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
4250 | 3674 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
4251 | 3675 | _LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
4252 | 3676 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
4253 | 3677 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
4254 | 3678 | |||
4255 | 3679 | # Source file extension for f77 test sources. | ||
4256 | 3680 | ac_ext=f | ||
4257 | 3681 | |||
4258 | 3682 | # Object file extension for compiled f77 test sources. | ||
4259 | 3683 | objext=o | ||
4260 | 3684 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
4261 | 3685 | |||
4262 | 3686 | # Code to be used in simple compile tests | ||
4263 | 3687 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | ||
4264 | 3688 | |||
4265 | 3689 | # Code to be used in simple link tests | ||
4266 | 3690 | lt_simple_link_test_code=" program t\n end\n" | ||
4267 | 3691 | |||
4268 | 3692 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4269 | 3693 | _LT_AC_SYS_COMPILER | ||
4270 | 3694 | |||
4271 | 3695 | # Allow CC to be a program name with arguments. | ||
4272 | 3696 | lt_save_CC="$CC" | ||
4273 | 3697 | CC=${F77-"f77"} | ||
4274 | 3698 | compiler=$CC | ||
4275 | 3699 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
4276 | 3700 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | ||
4277 | 3701 | |||
4278 | 3702 | AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
4279 | 3703 | AC_MSG_RESULT([$can_build_shared]) | ||
4280 | 3704 | |||
4281 | 3705 | AC_MSG_CHECKING([whether to build shared libraries]) | ||
4282 | 3706 | test "$can_build_shared" = "no" && enable_shared=no | ||
4283 | 3707 | |||
4284 | 3708 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
4285 | 3709 | # are all built from PIC. | ||
4286 | 3710 | case "$host_os" in | ||
4287 | 3711 | aix3*) | ||
4288 | 3712 | test "$enable_shared" = yes && enable_static=no | ||
4289 | 3713 | if test -n "$RANLIB"; then | ||
4290 | 3714 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
4291 | 3715 | postinstall_cmds='$RANLIB $lib' | ||
4292 | 3716 | fi | ||
4293 | 3717 | ;; | ||
4294 | 3718 | aix4* | aix5*) | ||
4295 | 3719 | test "$enable_shared" = yes && enable_static=no | ||
4296 | 3720 | ;; | ||
4297 | 3721 | esac | ||
4298 | 3722 | AC_MSG_RESULT([$enable_shared]) | ||
4299 | 3723 | |||
4300 | 3724 | AC_MSG_CHECKING([whether to build static libraries]) | ||
4301 | 3725 | # Make sure either enable_shared or enable_static is yes. | ||
4302 | 3726 | test "$enable_shared" = yes || enable_static=yes | ||
4303 | 3727 | AC_MSG_RESULT([$enable_static]) | ||
4304 | 3728 | |||
4305 | 3729 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
4306 | 3730 | |||
4307 | 3731 | _LT_AC_TAGVAR(GCC, $1)="$G77" | ||
4308 | 3732 | _LT_AC_TAGVAR(LD, $1)="$LD" | ||
4309 | 3733 | |||
4310 | 3734 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4311 | 3735 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
4312 | 3736 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4313 | 3737 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4314 | 3738 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4315 | 3739 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4316 | 3740 | AC_LIBTOOL_SYS_LIB_STRIP | ||
4317 | 3741 | |||
4318 | 3742 | |||
4319 | 3743 | AC_LIBTOOL_CONFIG($1) | ||
4320 | 3744 | |||
4321 | 3745 | AC_LANG_POP | ||
4322 | 3746 | CC="$lt_save_CC" | ||
4323 | 3747 | ])# AC_LIBTOOL_LANG_F77_CONFIG | ||
4324 | 3748 | |||
4325 | 3749 | |||
4326 | 3750 | # AC_LIBTOOL_LANG_GCJ_CONFIG | ||
4327 | 3751 | # -------------------------- | ||
4328 | 3752 | # Ensure that the configuration vars for the C compiler are | ||
4329 | 3753 | # suitably defined. Those variables are subsequently used by | ||
4330 | 3754 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4331 | 3755 | AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) | ||
4332 | 3756 | AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], | ||
4333 | 3757 | [AC_LANG_SAVE | ||
4334 | 3758 | |||
4335 | 3759 | # Source file extension for Java test sources. | ||
4336 | 3760 | ac_ext=java | ||
4337 | 3761 | |||
4338 | 3762 | # Object file extension for compiled Java test sources. | ||
4339 | 3763 | objext=o | ||
4340 | 3764 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
4341 | 3765 | |||
4342 | 3766 | # Code to be used in simple compile tests | ||
4343 | 3767 | lt_simple_compile_test_code="class foo {}\n" | ||
4344 | 3768 | |||
4345 | 3769 | # Code to be used in simple link tests | ||
4346 | 3770 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | ||
4347 | 3771 | |||
4348 | 3772 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4349 | 3773 | _LT_AC_SYS_COMPILER | ||
4350 | 3774 | |||
4351 | 3775 | # Allow CC to be a program name with arguments. | ||
4352 | 3776 | lt_save_CC="$CC" | ||
4353 | 3777 | CC=${GCJ-"gcj"} | ||
4354 | 3778 | compiler=$CC | ||
4355 | 3779 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
4356 | 3780 | |||
4357 | 3781 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | ||
4358 | 3782 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4359 | 3783 | |||
4360 | 3784 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
4361 | 3785 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4362 | 3786 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
4363 | 3787 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4364 | 3788 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4365 | 3789 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4366 | 3790 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4367 | 3791 | AC_LIBTOOL_SYS_LIB_STRIP | ||
4368 | 3792 | AC_LIBTOOL_DLOPEN_SELF($1) | ||
4369 | 3793 | |||
4370 | 3794 | AC_LIBTOOL_CONFIG($1) | ||
4371 | 3795 | |||
4372 | 3796 | AC_LANG_RESTORE | ||
4373 | 3797 | CC="$lt_save_CC" | ||
4374 | 3798 | ])# AC_LIBTOOL_LANG_GCJ_CONFIG | ||
4375 | 3799 | |||
4376 | 3800 | |||
4377 | 3801 | # AC_LIBTOOL_LANG_RC_CONFIG | ||
4378 | 3802 | # -------------------------- | ||
4379 | 3803 | # Ensure that the configuration vars for the Windows resource compiler are | ||
4380 | 3804 | # suitably defined. Those variables are subsequently used by | ||
4381 | 3805 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4382 | 3806 | AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) | ||
4383 | 3807 | AC_DEFUN([_LT_AC_LANG_RC_CONFIG], | ||
4384 | 3808 | [AC_LANG_SAVE | ||
4385 | 3809 | |||
4386 | 3810 | # Source file extension for RC test sources. | ||
4387 | 3811 | ac_ext=rc | ||
4388 | 3812 | |||
4389 | 3813 | # Object file extension for compiled RC test sources. | ||
4390 | 3814 | objext=o | ||
4391 | 3815 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
4392 | 3816 | |||
4393 | 3817 | # Code to be used in simple compile tests | ||
4394 | 3818 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | ||
4395 | 3819 | |||
4396 | 3820 | # Code to be used in simple link tests | ||
4397 | 3821 | lt_simple_link_test_code="$lt_simple_compile_test_code" | ||
4398 | 3822 | |||
4399 | 3823 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4400 | 3824 | _LT_AC_SYS_COMPILER | ||
4401 | 3825 | |||
4402 | 3826 | # Allow CC to be a program name with arguments. | ||
4403 | 3827 | lt_save_CC="$CC" | ||
4404 | 3828 | CC=${RC-"windres"} | ||
4405 | 3829 | compiler=$CC | ||
4406 | 3830 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
4407 | 3831 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
4408 | 3832 | |||
4409 | 3833 | AC_LIBTOOL_CONFIG($1) | ||
4410 | 3834 | |||
4411 | 3835 | AC_LANG_RESTORE | ||
4412 | 3836 | CC="$lt_save_CC" | ||
4413 | 3837 | ])# AC_LIBTOOL_LANG_RC_CONFIG | ||
4414 | 3838 | |||
4415 | 3839 | |||
4416 | 3840 | # AC_LIBTOOL_CONFIG([TAGNAME]) | ||
4417 | 3841 | # ---------------------------- | ||
4418 | 3842 | # If TAGNAME is not passed, then create an initial libtool script | ||
4419 | 3843 | # with a default configuration from the untagged config vars. Otherwise | ||
4420 | 3844 | # add code to config.status for appending the configuration named by | ||
4421 | 3845 | # TAGNAME from the matching tagged config vars. | ||
4422 | 3846 | AC_DEFUN([AC_LIBTOOL_CONFIG], | ||
4423 | 3847 | [# The else clause should only fire when bootstrapping the | ||
4424 | 3848 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
4425 | 3849 | # with your package, and you will get complaints that there are | ||
4426 | 3850 | # no rules to generate ltmain.sh. | ||
4427 | 3851 | if test -f "$ltmain"; then | ||
4428 | 3852 | # See if we are running on zsh, and set the options which allow our commands through | ||
4429 | 3853 | # without removal of \ escapes. | ||
4430 | 3854 | if test -n "${ZSH_VERSION+set}" ; then | ||
4431 | 3855 | setopt NO_GLOB_SUBST | ||
4432 | 3856 | fi | ||
4433 | 3857 | # Now quote all the things that may contain metacharacters while being | ||
4434 | 3858 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
4435 | 3859 | # variables and quote the copies for generation of the libtool script. | ||
4436 | 3860 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
4437 | 3861 | SED SHELL STRIP \ | ||
4438 | 3862 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
4439 | 3863 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
4440 | 3864 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
4441 | 3865 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
4442 | 3866 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
4443 | 3867 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
4444 | 3868 | old_postinstall_cmds old_postuninstall_cmds \ | ||
4445 | 3869 | _LT_AC_TAGVAR(compiler, $1) \ | ||
4446 | 3870 | _LT_AC_TAGVAR(CC, $1) \ | ||
4447 | 3871 | _LT_AC_TAGVAR(LD, $1) \ | ||
4448 | 3872 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ | ||
4449 | 3873 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ | ||
4450 | 3874 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ | ||
4451 | 3875 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ | ||
4452 | 3876 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ | ||
4453 | 3877 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ | ||
4454 | 3878 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ | ||
4455 | 3879 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ | ||
4456 | 3880 | _LT_AC_TAGVAR(old_archive_cmds, $1) \ | ||
4457 | 3881 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ | ||
4458 | 3882 | _LT_AC_TAGVAR(predep_objects, $1) \ | ||
4459 | 3883 | _LT_AC_TAGVAR(postdep_objects, $1) \ | ||
4460 | 3884 | _LT_AC_TAGVAR(predeps, $1) \ | ||
4461 | 3885 | _LT_AC_TAGVAR(postdeps, $1) \ | ||
4462 | 3886 | _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ | ||
4463 | 3887 | _LT_AC_TAGVAR(archive_cmds, $1) \ | ||
4464 | 3888 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ | ||
4465 | 3889 | _LT_AC_TAGVAR(postinstall_cmds, $1) \ | ||
4466 | 3890 | _LT_AC_TAGVAR(postuninstall_cmds, $1) \ | ||
4467 | 3891 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ | ||
4468 | 3892 | _LT_AC_TAGVAR(allow_undefined_flag, $1) \ | ||
4469 | 3893 | _LT_AC_TAGVAR(no_undefined_flag, $1) \ | ||
4470 | 3894 | _LT_AC_TAGVAR(export_symbols_cmds, $1) \ | ||
4471 | 3895 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ | ||
4472 | 3896 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ | ||
4473 | 3897 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ | ||
4474 | 3898 | _LT_AC_TAGVAR(hardcode_automatic, $1) \ | ||
4475 | 3899 | _LT_AC_TAGVAR(module_cmds, $1) \ | ||
4476 | 3900 | _LT_AC_TAGVAR(module_expsym_cmds, $1) \ | ||
4477 | 3901 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ | ||
4478 | 3902 | _LT_AC_TAGVAR(exclude_expsyms, $1) \ | ||
4479 | 3903 | _LT_AC_TAGVAR(include_expsyms, $1); do | ||
4480 | 3904 | |||
4481 | 3905 | case $var in | ||
4482 | 3906 | _LT_AC_TAGVAR(old_archive_cmds, $1) | \ | ||
4483 | 3907 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ | ||
4484 | 3908 | _LT_AC_TAGVAR(archive_cmds, $1) | \ | ||
4485 | 3909 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ | ||
4486 | 3910 | _LT_AC_TAGVAR(module_cmds, $1) | \ | ||
4487 | 3911 | _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ | ||
4488 | 3912 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ | ||
4489 | 3913 | _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ | ||
4490 | 3914 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
4491 | 3915 | postinstall_cmds | postuninstall_cmds | \ | ||
4492 | 3916 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
4493 | 3917 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
4494 | 3918 | # Double-quote double-evaled strings. | ||
4495 | 3919 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
4496 | 3920 | ;; | ||
4497 | 3921 | *) | ||
4498 | 3922 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
4499 | 3923 | ;; | ||
4500 | 3924 | esac | ||
4501 | 3925 | done | ||
4502 | 3926 | |||
4503 | 3927 | case $lt_echo in | ||
4504 | 3928 | *'\[$]0 --fallback-echo"') | ||
4505 | 3929 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` | ||
4506 | 3930 | ;; | ||
4507 | 3931 | esac | ||
4508 | 3932 | |||
4509 | 3933 | ifelse([$1], [], | ||
4510 | 3934 | [cfgfile="${ofile}T" | ||
4511 | 3935 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | ||
4512 | 3936 | $rm -f "$cfgfile" | ||
4513 | 3937 | AC_MSG_NOTICE([creating $ofile])], | ||
4514 | 3938 | [cfgfile="$ofile"]) | ||
4515 | 3939 | |||
4516 | 3940 | cat <<__EOF__ >> "$cfgfile" | ||
4517 | 3941 | ifelse([$1], [], | ||
4518 | 3942 | [#! $SHELL | ||
4519 | 3943 | |||
4520 | 3944 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
4521 | 3945 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | ||
4522 | 3946 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
4523 | 3947 | # | ||
4524 | 3948 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | ||
4525 | 3949 | # Free Software Foundation, Inc. | ||
4526 | 3950 | # | ||
4527 | 3951 | # This file is part of GNU Libtool: | ||
4528 | 3952 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
4529 | 3953 | # | ||
4530 | 3954 | # This program is free software; you can redistribute it and/or modify | ||
4531 | 3955 | # it under the terms of the GNU General Public License as published by | ||
4532 | 3956 | # the Free Software Foundation; either version 2 of the License, or | ||
4533 | 3957 | # (at your option) any later version. | ||
4534 | 3958 | # | ||
4535 | 3959 | # This program is distributed in the hope that it will be useful, but | ||
4536 | 3960 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
4537 | 3961 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
4538 | 3962 | # General Public License for more details. | ||
4539 | 3963 | # | ||
4540 | 3964 | # You should have received a copy of the GNU General Public License | ||
4541 | 3965 | # along with this program; if not, write to the Free Software | ||
4542 | 3966 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
4543 | 3967 | # | ||
4544 | 3968 | # As a special exception to the GNU General Public License, if you | ||
4545 | 3969 | # distribute this file as part of a program that contains a | ||
4546 | 3970 | # configuration script generated by Autoconf, you may include it under | ||
4547 | 3971 | # the same distribution terms that you use for the rest of that program. | ||
4548 | 3972 | |||
4549 | 3973 | # A sed program that does not truncate output. | ||
4550 | 3974 | SED=$lt_SED | ||
4551 | 3975 | |||
4552 | 3976 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
4553 | 3977 | Xsed="$SED -e s/^X//" | ||
4554 | 3978 | |||
4555 | 3979 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
4556 | 3980 | # if CDPATH is set. | ||
4557 | 3981 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
4558 | 3982 | |||
4559 | 3983 | # The names of the tagged configurations supported by this script. | ||
4560 | 3984 | available_tags= | ||
4561 | 3985 | |||
4562 | 3986 | # ### BEGIN LIBTOOL CONFIG], | ||
4563 | 3987 | [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) | ||
4564 | 3988 | |||
4565 | 3989 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
4566 | 3990 | |||
4567 | 3991 | # Shell to use when invoking shell scripts. | ||
4568 | 3992 | SHELL=$lt_SHELL | ||
4569 | 3993 | |||
4570 | 3994 | # Whether or not to build shared libraries. | ||
4571 | 3995 | build_libtool_libs=$enable_shared | ||
4572 | 3996 | |||
4573 | 3997 | # Whether or not to build static libraries. | ||
4574 | 3998 | build_old_libs=$enable_static | ||
4575 | 3999 | |||
4576 | 4000 | # Whether or not to add -lc for building shared libraries. | ||
4577 | 4001 | build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) | ||
4578 | 4002 | |||
4579 | 4003 | # Whether or not to disallow shared libs when runtime libs are static | ||
4580 | 4004 | allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) | ||
4581 | 4005 | |||
4582 | 4006 | # Whether or not to optimize for fast installation. | ||
4583 | 4007 | fast_install=$enable_fast_install | ||
4584 | 4008 | |||
4585 | 4009 | # The host system. | ||
4586 | 4010 | host_alias=$host_alias | ||
4587 | 4011 | host=$host | ||
4588 | 4012 | |||
4589 | 4013 | # An echo program that does not interpret backslashes. | ||
4590 | 4014 | echo=$lt_echo | ||
4591 | 4015 | |||
4592 | 4016 | # The archiver. | ||
4593 | 4017 | AR=$lt_AR | ||
4594 | 4018 | AR_FLAGS=$lt_AR_FLAGS | ||
4595 | 4019 | |||
4596 | 4020 | # A C compiler. | ||
4597 | 4021 | LTCC=$lt_LTCC | ||
4598 | 4022 | |||
4599 | 4023 | # A language-specific compiler. | ||
4600 | 4024 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | ||
4601 | 4025 | |||
4602 | 4026 | # Is the compiler the GNU C compiler? | ||
4603 | 4027 | with_gcc=$_LT_AC_TAGVAR(GCC, $1) | ||
4604 | 4028 | |||
4605 | 4029 | # An ERE matcher. | ||
4606 | 4030 | EGREP=$lt_EGREP | ||
4607 | 4031 | |||
4608 | 4032 | # The linker used to build libraries. | ||
4609 | 4033 | LD=$lt_[]_LT_AC_TAGVAR(LD, $1) | ||
4610 | 4034 | |||
4611 | 4035 | # Whether we need hard or soft links. | ||
4612 | 4036 | LN_S=$lt_LN_S | ||
4613 | 4037 | |||
4614 | 4038 | # A BSD-compatible nm program. | ||
4615 | 4039 | NM=$lt_NM | ||
4616 | 4040 | |||
4617 | 4041 | # A symbol stripping program | ||
4618 | 4042 | STRIP=$lt_STRIP | ||
4619 | 4043 | |||
4620 | 4044 | # Used to examine libraries when file_magic_cmd begins "file" | ||
4621 | 4045 | MAGIC_CMD=$MAGIC_CMD | ||
4622 | 4046 | |||
4623 | 4047 | # Used on cygwin: DLL creation program. | ||
4624 | 4048 | DLLTOOL="$DLLTOOL" | ||
4625 | 4049 | |||
4626 | 4050 | # Used on cygwin: object dumper. | ||
4627 | 4051 | OBJDUMP="$OBJDUMP" | ||
4628 | 4052 | |||
4629 | 4053 | # Used on cygwin: assembler. | ||
4630 | 4054 | AS="$AS" | ||
4631 | 4055 | |||
4632 | 4056 | # The name of the directory that contains temporary libtool files. | ||
4633 | 4057 | objdir=$objdir | ||
4634 | 4058 | |||
4635 | 4059 | # How to create reloadable object files. | ||
4636 | 4060 | reload_flag=$lt_reload_flag | ||
4637 | 4061 | reload_cmds=$lt_reload_cmds | ||
4638 | 4062 | |||
4639 | 4063 | # How to pass a linker flag through the compiler. | ||
4640 | 4064 | wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | ||
4641 | 4065 | |||
4642 | 4066 | # Object file suffix (normally "o"). | ||
4643 | 4067 | objext="$ac_objext" | ||
4644 | 4068 | |||
4645 | 4069 | # Old archive suffix (normally "a"). | ||
4646 | 4070 | libext="$libext" | ||
4647 | 4071 | |||
4648 | 4072 | # Shared library suffix (normally ".so"). | ||
4649 | 4073 | shrext_cmds='$shrext_cmds' | ||
4650 | 4074 | |||
4651 | 4075 | # Executable file suffix (normally ""). | ||
4652 | 4076 | exeext="$exeext" | ||
4653 | 4077 | |||
4654 | 4078 | # Additional compiler flags for building library objects. | ||
4655 | 4079 | pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | ||
4656 | 4080 | pic_mode=$pic_mode | ||
4657 | 4081 | |||
4658 | 4082 | # What is the maximum length of a command? | ||
4659 | 4083 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
4660 | 4084 | |||
4661 | 4085 | # Does compiler simultaneously support -c and -o options? | ||
4662 | 4086 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | ||
4663 | 4087 | |||
4664 | 4088 | # Must we lock files when doing compilation ? | ||
4665 | 4089 | need_locks=$lt_need_locks | ||
4666 | 4090 | |||
4667 | 4091 | # Do we need the lib prefix for modules? | ||
4668 | 4092 | need_lib_prefix=$need_lib_prefix | ||
4669 | 4093 | |||
4670 | 4094 | # Do we need a version for libraries? | ||
4671 | 4095 | need_version=$need_version | ||
4672 | 4096 | |||
4673 | 4097 | # Whether dlopen is supported. | ||
4674 | 4098 | dlopen_support=$enable_dlopen | ||
4675 | 4099 | |||
4676 | 4100 | # Whether dlopen of programs is supported. | ||
4677 | 4101 | dlopen_self=$enable_dlopen_self | ||
4678 | 4102 | |||
4679 | 4103 | # Whether dlopen of statically linked programs is supported. | ||
4680 | 4104 | dlopen_self_static=$enable_dlopen_self_static | ||
4681 | 4105 | |||
4682 | 4106 | # Compiler flag to prevent dynamic linking. | ||
4683 | 4107 | link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) | ||
4684 | 4108 | |||
4685 | 4109 | # Compiler flag to turn off builtin functions. | ||
4686 | 4110 | no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) | ||
4687 | 4111 | |||
4688 | 4112 | # Compiler flag to allow reflexive dlopens. | ||
4689 | 4113 | export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) | ||
4690 | 4114 | |||
4691 | 4115 | # Compiler flag to generate shared objects directly from archives. | ||
4692 | 4116 | whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) | ||
4693 | 4117 | |||
4694 | 4118 | # Compiler flag to generate thread-safe objects. | ||
4695 | 4119 | thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) | ||
4696 | 4120 | |||
4697 | 4121 | # Library versioning type. | ||
4698 | 4122 | version_type=$version_type | ||
4699 | 4123 | |||
4700 | 4124 | # Format of library name prefix. | ||
4701 | 4125 | libname_spec=$lt_libname_spec | ||
4702 | 4126 | |||
4703 | 4127 | # List of archive names. First name is the real one, the rest are links. | ||
4704 | 4128 | # The last name is the one that the linker finds with -lNAME. | ||
4705 | 4129 | library_names_spec=$lt_library_names_spec | ||
4706 | 4130 | |||
4707 | 4131 | # The coded name of the library, if different from the real name. | ||
4708 | 4132 | soname_spec=$lt_soname_spec | ||
4709 | 4133 | |||
4710 | 4134 | # Commands used to build and install an old-style archive. | ||
4711 | 4135 | RANLIB=$lt_RANLIB | ||
4712 | 4136 | old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) | ||
4713 | 4137 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
4714 | 4138 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
4715 | 4139 | |||
4716 | 4140 | # Create an old-style archive from a shared archive. | ||
4717 | 4141 | old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | ||
4718 | 4142 | |||
4719 | 4143 | # Create a temporary old-style archive to link instead of a shared archive. | ||
4720 | 4144 | old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | ||
4721 | 4145 | |||
4722 | 4146 | # Commands used to build and install a shared archive. | ||
4723 | 4147 | archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) | ||
4724 | 4148 | archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) | ||
4725 | 4149 | postinstall_cmds=$lt_postinstall_cmds | ||
4726 | 4150 | postuninstall_cmds=$lt_postuninstall_cmds | ||
4727 | 4151 | |||
4728 | 4152 | # Commands used to build a loadable module (assumed same as above if empty) | ||
4729 | 4153 | module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) | ||
4730 | 4154 | module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) | ||
4731 | 4155 | |||
4732 | 4156 | # Commands to strip libraries. | ||
4733 | 4157 | old_striplib=$lt_old_striplib | ||
4734 | 4158 | striplib=$lt_striplib | ||
4735 | 4159 | |||
4736 | 4160 | # Dependencies to place before the objects being linked to create a | ||
4737 | 4161 | # shared library. | ||
4738 | 4162 | predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) | ||
4739 | 4163 | |||
4740 | 4164 | # Dependencies to place after the objects being linked to create a | ||
4741 | 4165 | # shared library. | ||
4742 | 4166 | postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | ||
4743 | 4167 | |||
4744 | 4168 | # Dependencies to place before the objects being linked to create a | ||
4745 | 4169 | # shared library. | ||
4746 | 4170 | predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) | ||
4747 | 4171 | |||
4748 | 4172 | # Dependencies to place after the objects being linked to create a | ||
4749 | 4173 | # shared library. | ||
4750 | 4174 | postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) | ||
4751 | 4175 | |||
4752 | 4176 | # The library search path used internally by the compiler when linking | ||
4753 | 4177 | # a shared library. | ||
4754 | 4178 | compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | ||
4755 | 4179 | |||
4756 | 4180 | # Method to check whether dependent libraries are shared objects. | ||
4757 | 4181 | deplibs_check_method=$lt_deplibs_check_method | ||
4758 | 4182 | |||
4759 | 4183 | # Command to use when deplibs_check_method == file_magic. | ||
4760 | 4184 | file_magic_cmd=$lt_file_magic_cmd | ||
4761 | 4185 | |||
4762 | 4186 | # Flag that allows shared libraries with undefined symbols to be built. | ||
4763 | 4187 | allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) | ||
4764 | 4188 | |||
4765 | 4189 | # Flag that forces no undefined symbols. | ||
4766 | 4190 | no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) | ||
4767 | 4191 | |||
4768 | 4192 | # Commands used to finish a libtool library installation in a directory. | ||
4769 | 4193 | finish_cmds=$lt_finish_cmds | ||
4770 | 4194 | |||
4771 | 4195 | # Same as above, but a single script fragment to be evaled but not shown. | ||
4772 | 4196 | finish_eval=$lt_finish_eval | ||
4773 | 4197 | |||
4774 | 4198 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
4775 | 4199 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
4776 | 4200 | |||
4777 | 4201 | # Transform the output of nm in a proper C declaration | ||
4778 | 4202 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
4779 | 4203 | |||
4780 | 4204 | # Transform the output of nm in a C name address pair | ||
4781 | 4205 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
4782 | 4206 | |||
4783 | 4207 | # This is the shared library runtime path variable. | ||
4784 | 4208 | runpath_var=$runpath_var | ||
4785 | 4209 | |||
4786 | 4210 | # This is the shared library path variable. | ||
4787 | 4211 | shlibpath_var=$shlibpath_var | ||
4788 | 4212 | |||
4789 | 4213 | # Is shlibpath searched before the hard-coded library search path? | ||
4790 | 4214 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
4791 | 4215 | |||
4792 | 4216 | # How to hardcode a shared library path into an executable. | ||
4793 | 4217 | hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) | ||
4794 | 4218 | |||
4795 | 4219 | # Whether we should hardcode library paths into libraries. | ||
4796 | 4220 | hardcode_into_libs=$hardcode_into_libs | ||
4797 | 4221 | |||
4798 | 4222 | # Flag to hardcode \$libdir into a binary during linking. | ||
4799 | 4223 | # This must work even if \$libdir does not exist. | ||
4800 | 4224 | hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) | ||
4801 | 4225 | |||
4802 | 4226 | # If ld is used when linking, flag to hardcode \$libdir into | ||
4803 | 4227 | # a binary during linking. This must work even if \$libdir does | ||
4804 | 4228 | # not exist. | ||
4805 | 4229 | hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) | ||
4806 | 4230 | |||
4807 | 4231 | # Whether we need a single -rpath flag with a separated argument. | ||
4808 | 4232 | hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) | ||
4809 | 4233 | |||
4810 | 4234 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
4811 | 4235 | # resulting binary. | ||
4812 | 4236 | hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) | ||
4813 | 4237 | |||
4814 | 4238 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
4815 | 4239 | # resulting binary. | ||
4816 | 4240 | hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) | ||
4817 | 4241 | |||
4818 | 4242 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
4819 | 4243 | # the resulting binary. | ||
4820 | 4244 | hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) | ||
4821 | 4245 | |||
4822 | 4246 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
4823 | 4247 | # and all subsequent libraries and executables linked against it. | ||
4824 | 4248 | hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) | ||
4825 | 4249 | |||
4826 | 4250 | # Variables whose values should be saved in libtool wrapper scripts and | ||
4827 | 4251 | # restored at relink time. | ||
4828 | 4252 | variables_saved_for_relink="$variables_saved_for_relink" | ||
4829 | 4253 | |||
4830 | 4254 | # Whether libtool must link a program against all its dependency libraries. | ||
4831 | 4255 | link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) | ||
4832 | 4256 | |||
4833 | 4257 | # Compile-time system search path for libraries | ||
4834 | 4258 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
4835 | 4259 | |||
4836 | 4260 | # Run-time system search path for libraries | ||
4837 | 4261 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
4838 | 4262 | |||
4839 | 4263 | # Fix the shell variable \$srcfile for the compiler. | ||
4840 | 4264 | fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" | ||
4841 | 4265 | |||
4842 | 4266 | # Set to yes if exported symbols are required. | ||
4843 | 4267 | always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) | ||
4844 | 4268 | |||
4845 | 4269 | # The commands to list exported symbols. | ||
4846 | 4270 | export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) | ||
4847 | 4271 | |||
4848 | 4272 | # The commands to extract the exported symbol list from a shared archive. | ||
4849 | 4273 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
4850 | 4274 | |||
4851 | 4275 | # Symbols that should not be listed in the preloaded symbols. | ||
4852 | 4276 | exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) | ||
4853 | 4277 | |||
4854 | 4278 | # Symbols that must always be exported. | ||
4855 | 4279 | include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) | ||
4856 | 4280 | |||
4857 | 4281 | ifelse([$1],[], | ||
4858 | 4282 | [# ### END LIBTOOL CONFIG], | ||
4859 | 4283 | [# ### END LIBTOOL TAG CONFIG: $tagname]) | ||
4860 | 4284 | |||
4861 | 4285 | __EOF__ | ||
4862 | 4286 | |||
4863 | 4287 | ifelse([$1],[], [ | ||
4864 | 4288 | case $host_os in | ||
4865 | 4289 | aix3*) | ||
4866 | 4290 | cat <<\EOF >> "$cfgfile" | ||
4867 | 4291 | |||
4868 | 4292 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
4869 | 4293 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
4870 | 4294 | # vanish in a puff of smoke. | ||
4871 | 4295 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
4872 | 4296 | COLLECT_NAMES= | ||
4873 | 4297 | export COLLECT_NAMES | ||
4874 | 4298 | fi | ||
4875 | 4299 | EOF | ||
4876 | 4300 | ;; | ||
4877 | 4301 | esac | ||
4878 | 4302 | |||
4879 | 4303 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
4880 | 4304 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
4881 | 4305 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
4882 | 4306 | # is reportedly fixed, but why not run on old versions too? | ||
4883 | 4307 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | ||
4884 | 4308 | |||
4885 | 4309 | mv -f "$cfgfile" "$ofile" || \ | ||
4886 | 4310 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
4887 | 4311 | chmod +x "$ofile" | ||
4888 | 4312 | ]) | ||
4889 | 4313 | else | ||
4890 | 4314 | # If there is no Makefile yet, we rely on a make rule to execute | ||
4891 | 4315 | # `config.status --recheck' to rerun these tests and create the | ||
4892 | 4316 | # libtool script then. | ||
4893 | 4317 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
4894 | 4318 | if test -f "$ltmain_in"; then | ||
4895 | 4319 | test -f Makefile && make "$ltmain" | ||
4896 | 4320 | fi | ||
4897 | 4321 | fi | ||
4898 | 4322 | ])# AC_LIBTOOL_CONFIG | ||
4899 | 4323 | |||
4900 | 4324 | |||
4901 | 4325 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) | ||
4902 | 4326 | # ------------------------------------------- | ||
4903 | 4327 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], | ||
4904 | 4328 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
4905 | 4329 | |||
4906 | 4330 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
4907 | 4331 | |||
4908 | 4332 | if test "$GCC" = yes; then | ||
4909 | 4333 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
4910 | 4334 | |||
4911 | 4335 | AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | ||
4912 | 4336 | lt_cv_prog_compiler_rtti_exceptions, | ||
4913 | 4337 | [-fno-rtti -fno-exceptions], [], | ||
4914 | 4338 | [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | ||
4915 | 4339 | fi | ||
4916 | 4340 | ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI | ||
4917 | 4341 | |||
4918 | 4342 | |||
4919 | 4343 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
4920 | 4344 | # --------------------------------- | ||
4921 | 4345 | AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], | ||
4922 | 4346 | [AC_REQUIRE([AC_CANONICAL_HOST]) | ||
4923 | 4347 | AC_REQUIRE([AC_PROG_NM]) | ||
4924 | 4348 | AC_REQUIRE([AC_OBJEXT]) | ||
4925 | 4349 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
4926 | 4350 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | ||
4927 | 4351 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | ||
4928 | 4352 | [ | ||
4929 | 4353 | # These are sane defaults that work on at least a few old systems. | ||
4930 | 4354 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
4931 | 4355 | |||
4932 | 4356 | # Character class describing NM global symbol codes. | ||
4933 | 4357 | symcode='[[BCDEGRST]]' | ||
4934 | 4358 | |||
4935 | 4359 | # Regexp to match symbols that can be accessed directly from C. | ||
4936 | 4360 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | ||
4937 | 4361 | |||
4938 | 4362 | # Transform the above into a raw symbol and a C symbol. | ||
4939 | 4363 | symxfrm='\1 \2\3 \3' | ||
4940 | 4364 | |||
4941 | 4365 | # Transform an extracted symbol line into a proper C declaration | ||
4942 | 4366 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | ||
4943 | 4367 | |||
4944 | 4368 | # Transform an extracted symbol line into symbol name and symbol address | ||
4945 | 4369 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | ||
4946 | 4370 | |||
4947 | 4371 | # Define system-specific variables. | ||
4948 | 4372 | case $host_os in | ||
4949 | 4373 | aix*) | ||
4950 | 4374 | symcode='[[BCDT]]' | ||
4951 | 4375 | ;; | ||
4952 | 4376 | cygwin* | mingw* | pw32*) | ||
4953 | 4377 | symcode='[[ABCDGISTW]]' | ||
4954 | 4378 | ;; | ||
4955 | 4379 | hpux*) # Its linker distinguishes data from code symbols | ||
4956 | 4380 | if test "$host_cpu" = ia64; then | ||
4957 | 4381 | symcode='[[ABCDEGRST]]' | ||
4958 | 4382 | fi | ||
4959 | 4383 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
4960 | 4384 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | ||
4961 | 4385 | ;; | ||
4962 | 4386 | linux*) | ||
4963 | 4387 | if test "$host_cpu" = ia64; then | ||
4964 | 4388 | symcode='[[ABCDGIRSTW]]' | ||
4965 | 4389 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
4966 | 4390 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | ||
4967 | 4391 | fi | ||
4968 | 4392 | ;; | ||
4969 | 4393 | irix* | nonstopux*) | ||
4970 | 4394 | symcode='[[BCDEGRST]]' | ||
4971 | 4395 | ;; | ||
4972 | 4396 | osf*) | ||
4973 | 4397 | symcode='[[BCDEGQRST]]' | ||
4974 | 4398 | ;; | ||
4975 | 4399 | solaris* | sysv5*) | ||
4976 | 4400 | symcode='[[BDRT]]' | ||
4977 | 4401 | ;; | ||
4978 | 4402 | sysv4) | ||
4979 | 4403 | symcode='[[DFNSTU]]' | ||
4980 | 4404 | ;; | ||
4981 | 4405 | esac | ||
4982 | 4406 | |||
4983 | 4407 | # Handle CRLF in mingw tool chain | ||
4984 | 4408 | opt_cr= | ||
4985 | 4409 | case $build_os in | ||
4986 | 4410 | mingw*) | ||
4987 | 4411 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
4988 | 4412 | ;; | ||
4989 | 4413 | esac | ||
4990 | 4414 | |||
4991 | 4415 | # If we're using GNU nm, then use its standard symbol codes. | ||
4992 | 4416 | case `$NM -V 2>&1` in | ||
4993 | 4417 | *GNU* | *'with BFD'*) | ||
4994 | 4418 | symcode='[[ABCDGIRSTW]]' ;; | ||
4995 | 4419 | esac | ||
4996 | 4420 | |||
4997 | 4421 | # Try without a prefix undercore, then with it. | ||
4998 | 4422 | for ac_symprfx in "" "_"; do | ||
4999 | 4423 | |||
5000 | 4424 | # Write the raw and C identifiers. |
The conflicts listed are in large part because I pulled in the code from sid's 0.8.3-1 rather than 0.8.3-0ubuntu1.
This should really treated like a sync from debian's 0.8.3-1, then merging these changes. Unfortunately, I'm not sure how to tell bzr how to do that.