Codebase list xfce4-smartbookmark-plugin / be43cd7
New upstream version 0.5.2. Unit 193 3 years ago
36 changed file(s) with 9667 addition(s) and 7082 deletion(s). Raw diff Collapse all Expand all
0 commit 3f21b65fe9d1ec98225b7acdbe70f93ca689ea05
1 Author: Romain Bouvier <skunnyk@alteroot.org>
2 Date: Thu Dec 24 17:03:32 2020 +0100
3
4 Fix ISO C90 forbids mixed declarations and code
5
6 commit 3018eb719e7bf5be5246b05e20b7ac6c8cf168db
7 Author: Romain Bouvier <skunnyk@alteroot.org>
8 Date: Thu Dec 24 17:03:02 2020 +0100
9
10 Update configure.ac.in syntax
11
12 commit dd00fdda1578b822deb29928fb89da73695da492
13 Author: Emin Tufan <etcetin@gmail.com>
14 Date: Mon Nov 16 12:51:52 2020 +0100
15
16 I18n: Update translation tr (100%).
17
18 9 translated messages.
19
20 Transifex (https://www.transifex.com/xfce/public/).
21
22 commit 39df9beb7a28131dad15b1caeba5149143eaed00
23 Author: Gheyret Kenji <gheyret@yahoo.com>
24 Date: Fri Oct 16 18:46:26 2020 +0200
25
26 I18n: Update translation ug (100%).
27
28 9 translated messages.
29
30 Transifex (https://www.transifex.com/xfce/public/).
31
32 commit 08675d2ae9e79dcf9999b5a5dbd3f73ea7a88787
33 Author: Besnik Bleta <besnik@programeshqip.org>
34 Date: Fri Oct 16 18:46:24 2020 +0200
35
36 I18n: Update translation sq (100%).
37
38 9 translated messages.
39
40 Transifex (https://www.transifex.com/xfce/public/).
41
42 commit 6f4002eee0f3e35d2d29eec23b8da217f20cd836
43 Author: Slavko <linux@slavino.sk>
44 Date: Fri Oct 16 18:46:24 2020 +0200
45
46 I18n: Update translation sk (100%).
47
48 9 translated messages.
49
50 Transifex (https://www.transifex.com/xfce/public/).
51
52 commit c2a621cd771ef42f52f919fd40c4ab2b24e4653b
53 Author: Anonymous <noreply@xfce.org>
54 Date: Fri Oct 16 18:46:22 2020 +0200
55
56 I18n: Update translation he (100%).
57
58 9 translated messages.
59
60 Transifex (https://www.transifex.com/xfce/public/).
61
62 commit 45f086337e4bf12300d181df6ceccfd9c3377d17
63 Author: Kiril Kirilov <cybercop_montana@abv.bg>
64 Date: Fri Oct 16 18:46:21 2020 +0200
65
66 I18n: Update translation bg (100%).
67
68 9 translated messages.
69
70 Transifex (https://www.transifex.com/xfce/public/).
71
72 commit 4c39296b852ac211b5c2c76989637c01d15e4db5
73 Author: kevinbowen777 <kevin.bowen@gmail.com>
74 Date: Sat Sep 19 07:48:19 2020 -0700
75
76 Create README.md. Update configure.ac.in
77
78 commit 3fc7592b5516336e7c82794a15c18555b9b6bbb0
79 Author: Steve Harris <steve@cultureofweb.com>
80 Date: Fri Jun 26 12:50:51 2020 +0200
81
82 I18n: Add new translation en_CA (100%).
83
84 9 translated messages.
85
86 Transifex (https://www.transifex.com/xfce/public/).
87
88 commit 4b09d816d47e4c2450dfe6ca30986294ce3062af
89 Author: Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>
90 Date: Thu Jun 25 15:24:57 2020 +0200
91
92 Add basic GitLab pipeline
93
94 commit db666a236f01dfe1b36c347d725ad9dd264c3194
95 Author: Vahe Safaryan <vahe.safaryan@realschool.am>
96 Date: Wed Jun 10 12:49:11 2020 +0200
97
98 I18n: Add new translation hye (100%).
99
100 9 translated messages.
101
102 Transifex (https://www.transifex.com/xfce/public/).
103
104 commit 18f197d38d95d195370d27165f88de4d96c7aebb
105 Author: Anonymous <noreply@xfce.org>
106 Date: Wed May 27 00:48:38 2020 +0200
107
108 I18n: Update translation he (100%).
109
110 9 translated messages.
111
112 Transifex (https://www.transifex.com/xfce/public/).
113
114 commit e973990c40231685a32479106c538d183b7f3ea1
115 Author: Priit Jõerüüt <transifex@joeruut.com>
116 Date: Sun May 24 00:47:26 2020 +0200
117
118 I18n: Add new translation et (100%).
119
120 9 translated messages.
121
122 Transifex (https://www.transifex.com/xfce/public/).
123
124 commit 5372fed2221259c052d975ae3255dfe83bd76af2
125 Author: Sveinn í Felli <sv1@fellsnet.is>
126 Date: Wed Apr 15 00:17:08 2020 +0200
127
128 I18n: Update translation is (100%).
129
130 9 translated messages.
131
132 Transifex (https://www.transifex.com/xfce/public/).
133
134 commit 1e89f3b090abe99edf7fa5342d89a34465ebfc1b
135 Author: prflr88 <prflr88@gmail.com>
136 Date: Wed Apr 15 00:17:07 2020 +0200
137
138 I18n: Update translation es (100%).
139
140 9 translated messages.
141
142 Transifex (https://www.transifex.com/xfce/public/).
143
144 commit 02d050568dcdd326751d9d7d1e40834d06ee2ce9
145 Author: Zmicer Turok <nashtlumach@gmail.com>
146 Date: Wed Apr 15 00:17:06 2020 +0200
147
148 I18n: Update translation be (100%).
149
150 9 translated messages.
151
152 Transifex (https://www.transifex.com/xfce/public/).
153
154 commit 28a3d14c53b722018bd2c31c5840da535c599705
155 Author: Besnik <besnik@programeshqip.org>
156 Date: Wed Jan 29 18:32:56 2020 +0100
157
158 I18n: Update translation sq (100%).
159
160 9 translated messages.
161
162 Transifex (https://www.transifex.com/xfce/public/).
163
164 commit b1275eadd5b07f033c034fac3e7d635f0b2f043f
165 Author: Kevin Bowen <kevin.bowen@gmail.com>
166 Date: Wed Nov 13 00:06:46 2019 -0800
167
168 Update URLs from goodies.x.o to docs.x.o (Bug #16176)
169
170 commit ded8404f80939f7eb26506d3e271db1c86e21fc3
171 Author: Arnold Marko <arnold.marko@gmail.com>
172 Date: Mon Nov 4 00:32:40 2019 +0100
173
174 I18n: Add new translation sl (100%).
175
176 9 translated messages.
177
178 Transifex (https://www.transifex.com/xfce/public/).
179
180 commit 856d73b51f5d237d3cf6792f5e9f55220e5facf1
181 Author: Andre Miranda <andreldm@xfce.org>
182 Date: Sat Oct 19 19:46:34 2019 -0300
183
184 Fix build with panel 4.15
185
186 commit 82b81ac6b50d8f069fba4e962931152e92ad1e7e
187 Author: Andre Miranda <andreldm@xfce.org>
188 Date: Sat Oct 19 19:46:26 2019 -0300
189
190 Make build less verbose
191
192 commit 4fdbb9fa5397d4e6caaf8565441fbc967d69929f
193 Author: Andre Miranda <andreldm@xfce.org>
194 Date: Sat Oct 19 19:46:16 2019 -0300
195
196 s/http/https
197
198 commit 3b73c0e4940e6173d60955a136f0146f4347e43c
199 Author: Daniel Muñiz Fontoira <dani@damufo.com>
200 Date: Wed Aug 21 18:34:31 2019 +0200
201
202 I18n: Update translation gl (100%).
203
204 9 translated messages.
205
206 Transifex (https://www.transifex.com/xfce/public/).
207
208 commit 38774a6bd74c3ab23f4902f1e6fbec3e5f445bf9
209 Author: Panwar108 <caspian7pena@gmail.com>
210 Date: Sat Aug 17 12:32:34 2019 +0200
211
212 I18n: Add new translation hi (100%).
213
214 9 translated messages.
215
216 Transifex (https://www.transifex.com/xfce/public/).
217
218 commit 89d873b335fc40df379410942e97526a090cc323
219 Author: Daniel Muñiz Fontoira <dani@damufo.com>
220 Date: Fri Aug 16 12:33:39 2019 +0200
221
222 I18n: Update translation gl (100%).
223
224 9 translated messages.
225
226 Transifex (https://www.transifex.com/xfce/public/).
227
0228 commit 487d43d716c42d0d15a517e6c015fef7f9e637cb
1229 Author: Landry Breuil <landry@xfce.org>
2230 Date: Tue Aug 13 12:30:55 2019 +0200
+0
-370
INSTALL less more
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
4 Inc.
5
6 Copying and distribution of this file, with or without modification,
7 are permitted in any medium without royalty provided the copyright
8 notice and this notice are preserved. This file is offered as-is,
9 without warranty of any kind.
10
11 Basic Installation
12 ==================
13
14 Briefly, the shell command `./configure && make && make install'
15 should configure, build, and install this package. The following
16 more-detailed instructions are generic; see the `README' file for
17 instructions specific to this package. Some packages provide this
18 `INSTALL' file but do not implement all of the features documented
19 below. The lack of an optional feature in a given package is not
20 necessarily a bug. More recommendations for GNU packages can be found
21 in *note Makefile Conventions: (standards)Makefile Conventions.
22
23 The `configure' shell script attempts to guess correct values for
24 various system-dependent variables used during compilation. It uses
25 those values to create a `Makefile' in each directory of the package.
26 It may also create one or more `.h' files containing system-dependent
27 definitions. Finally, it creates a shell script `config.status' that
28 you can run in the future to recreate the current configuration, and a
29 file `config.log' containing compiler output (useful mainly for
30 debugging `configure').
31
32 It can also use an optional file (typically called `config.cache'
33 and enabled with `--cache-file=config.cache' or simply `-C') that saves
34 the results of its tests to speed up reconfiguring. Caching is
35 disabled by default to prevent problems with accidental use of stale
36 cache files.
37
38 If you need to do unusual things to compile the package, please try
39 to figure out how `configure' could check whether to do them, and mail
40 diffs or instructions to the address given in the `README' so they can
41 be considered for the next release. If you are using the cache, and at
42 some point `config.cache' contains results you don't want to keep, you
43 may remove or edit it.
44
45 The file `configure.ac' (or `configure.in') is used to create
46 `configure' by a program called `autoconf'. You need `configure.ac' if
47 you want to change it or regenerate `configure' using a newer version
48 of `autoconf'.
49
50 The simplest way to compile this package is:
51
52 1. `cd' to the directory containing the package's source code and type
53 `./configure' to configure the package for your system.
54
55 Running `configure' might take a while. While running, it prints
56 some messages telling which features it is checking for.
57
58 2. Type `make' to compile the package.
59
60 3. Optionally, type `make check' to run any self-tests that come with
61 the package, generally using the just-built uninstalled binaries.
62
63 4. Type `make install' to install the programs and any data files and
64 documentation. When installing into a prefix owned by root, it is
65 recommended that the package be configured and built as a regular
66 user, and only the `make install' phase executed with root
67 privileges.
68
69 5. Optionally, type `make installcheck' to repeat any self-tests, but
70 this time using the binaries in their final installed location.
71 This target does not install anything. Running this target as a
72 regular user, particularly if the prior `make install' required
73 root privileges, verifies that the installation completed
74 correctly.
75
76 6. You can remove the program binaries and object files from the
77 source code directory by typing `make clean'. To also remove the
78 files that `configure' created (so you can compile the package for
79 a different kind of computer), type `make distclean'. There is
80 also a `make maintainer-clean' target, but that is intended mainly
81 for the package's developers. If you use it, you may have to get
82 all sorts of other programs in order to regenerate files that came
83 with the distribution.
84
85 7. Often, you can also type `make uninstall' to remove the installed
86 files again. In practice, not all packages have tested that
87 uninstallation works correctly, even though it is required by the
88 GNU Coding Standards.
89
90 8. Some packages, particularly those that use Automake, provide `make
91 distcheck', which can by used by developers to test that all other
92 targets like `make install' and `make uninstall' work correctly.
93 This target is generally not run by end users.
94
95 Compilers and Options
96 =====================
97
98 Some systems require unusual options for compilation or linking that
99 the `configure' script does not know about. Run `./configure --help'
100 for details on some of the pertinent environment variables.
101
102 You can give `configure' initial values for configuration parameters
103 by setting variables in the command line or in the environment. Here
104 is an example:
105
106 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
107
108 *Note Defining Variables::, for more details.
109
110 Compiling For Multiple Architectures
111 ====================================
112
113 You can compile the package for more than one kind of computer at the
114 same time, by placing the object files for each architecture in their
115 own directory. To do this, you can use GNU `make'. `cd' to the
116 directory where you want the object files and executables to go and run
117 the `configure' script. `configure' automatically checks for the
118 source code in the directory that `configure' is in and in `..'. This
119 is known as a "VPATH" build.
120
121 With a non-GNU `make', it is safer to compile the package for one
122 architecture at a time in the source code directory. After you have
123 installed the package for one architecture, use `make distclean' before
124 reconfiguring for another architecture.
125
126 On MacOS X 10.5 and later systems, you can create libraries and
127 executables that work on multiple system types--known as "fat" or
128 "universal" binaries--by specifying multiple `-arch' options to the
129 compiler but only a single `-arch' option to the preprocessor. Like
130 this:
131
132 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
133 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
134 CPP="gcc -E" CXXCPP="g++ -E"
135
136 This is not guaranteed to produce working output in all cases, you
137 may have to build one architecture at a time and combine the results
138 using the `lipo' tool if you have problems.
139
140 Installation Names
141 ==================
142
143 By default, `make install' installs the package's commands under
144 `/usr/local/bin', include files under `/usr/local/include', etc. You
145 can specify an installation prefix other than `/usr/local' by giving
146 `configure' the option `--prefix=PREFIX', where PREFIX must be an
147 absolute file name.
148
149 You can specify separate installation prefixes for
150 architecture-specific files and architecture-independent files. If you
151 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
152 PREFIX as the prefix for installing programs and libraries.
153 Documentation and other data files still use the regular prefix.
154
155 In addition, if you use an unusual directory layout you can give
156 options like `--bindir=DIR' to specify different values for particular
157 kinds of files. Run `configure --help' for a list of the directories
158 you can set and what kinds of files go in them. In general, the
159 default for these options is expressed in terms of `${prefix}', so that
160 specifying just `--prefix' will affect all of the other directory
161 specifications that were not explicitly provided.
162
163 The most portable way to affect installation locations is to pass the
164 correct locations to `configure'; however, many packages provide one or
165 both of the following shortcuts of passing variable assignments to the
166 `make install' command line to change installation locations without
167 having to reconfigure or recompile.
168
169 The first method involves providing an override variable for each
170 affected directory. For example, `make install
171 prefix=/alternate/directory' will choose an alternate location for all
172 directory configuration variables that were expressed in terms of
173 `${prefix}'. Any directories that were specified during `configure',
174 but not in terms of `${prefix}', must each be overridden at install
175 time for the entire installation to be relocated. The approach of
176 makefile variable overrides for each directory variable is required by
177 the GNU Coding Standards, and ideally causes no recompilation.
178 However, some platforms have known limitations with the semantics of
179 shared libraries that end up requiring recompilation when using this
180 method, particularly noticeable in packages that use GNU Libtool.
181
182 The second method involves providing the `DESTDIR' variable. For
183 example, `make install DESTDIR=/alternate/directory' will prepend
184 `/alternate/directory' before all installation names. The approach of
185 `DESTDIR' overrides is not required by the GNU Coding Standards, and
186 does not work on platforms that have drive letters. On the other hand,
187 it does better at avoiding recompilation issues, and works well even
188 when some directory options were not specified in terms of `${prefix}'
189 at `configure' time.
190
191 Optional Features
192 =================
193
194 If the package supports it, you can cause programs to be installed
195 with an extra prefix or suffix on their names by giving `configure' the
196 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
197
198 Some packages pay attention to `--enable-FEATURE' options to
199 `configure', where FEATURE indicates an optional part of the package.
200 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
201 is something like `gnu-as' or `x' (for the X Window System). The
202 `README' should mention any `--enable-' and `--with-' options that the
203 package recognizes.
204
205 For packages that use the X Window System, `configure' can usually
206 find the X include and library files automatically, but if it doesn't,
207 you can use the `configure' options `--x-includes=DIR' and
208 `--x-libraries=DIR' to specify their locations.
209
210 Some packages offer the ability to configure how verbose the
211 execution of `make' will be. For these packages, running `./configure
212 --enable-silent-rules' sets the default to minimal output, which can be
213 overridden with `make V=1'; while running `./configure
214 --disable-silent-rules' sets the default to verbose, which can be
215 overridden with `make V=0'.
216
217 Particular systems
218 ==================
219
220 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
221 CC is not installed, it is recommended to use the following options in
222 order to use an ANSI C compiler:
223
224 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
225
226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
232
233 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
235 a workaround. If GNU CC is not installed, it is therefore recommended
236 to try
237
238 ./configure CC="cc"
239
240 and if that doesn't work, try
241
242 ./configure CC="cc -nodtk"
243
244 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
245 directory contains several dysfunctional programs; working variants of
246 these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
247 in your `PATH', put it _after_ `/usr/bin'.
248
249 On Haiku, software installed for all users goes in `/boot/common',
250 not `/usr/local'. It is recommended to use the following options:
251
252 ./configure --prefix=/boot/common
253
254 Specifying the System Type
255 ==========================
256
257 There may be some features `configure' cannot figure out
258 automatically, but needs to determine by the type of machine the package
259 will run on. Usually, assuming the package is built to be run on the
260 _same_ architectures, `configure' can figure that out, but if it prints
261 a message saying it cannot guess the machine type, give it the
262 `--build=TYPE' option. TYPE can either be a short name for the system
263 type, such as `sun4', or a canonical name which has the form:
264
265 CPU-COMPANY-SYSTEM
266
267 where SYSTEM can have one of these forms:
268
269 OS
270 KERNEL-OS
271
272 See the file `config.sub' for the possible values of each field. If
273 `config.sub' isn't included in this package, then this package doesn't
274 need to know the machine type.
275
276 If you are _building_ compiler tools for cross-compiling, you should
277 use the option `--target=TYPE' to select the type of system they will
278 produce code for.
279
280 If you want to _use_ a cross compiler, that generates code for a
281 platform different from the build platform, you should specify the
282 "host" platform (i.e., that on which the generated programs will
283 eventually be run) with `--host=TYPE'.
284
285 Sharing Defaults
286 ================
287
288 If you want to set default values for `configure' scripts to share,
289 you can create a site shell script called `config.site' that gives
290 default values for variables like `CC', `cache_file', and `prefix'.
291 `configure' looks for `PREFIX/share/config.site' if it exists, then
292 `PREFIX/etc/config.site' if it exists. Or, you can set the
293 `CONFIG_SITE' environment variable to the location of the site script.
294 A warning: not all `configure' scripts look for a site script.
295
296 Defining Variables
297 ==================
298
299 Variables not defined in a site shell script can be set in the
300 environment passed to `configure'. However, some packages may run
301 configure again during the build, and the customized values of these
302 variables may be lost. In order to avoid this problem, you should set
303 them in the `configure' command line, using `VAR=value'. For example:
304
305 ./configure CC=/usr/local2/bin/gcc
306
307 causes the specified `gcc' to be used as the C compiler (unless it is
308 overridden in the site shell script).
309
310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
313
314 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
315
316 `configure' Invocation
317 ======================
318
319 `configure' recognizes the following options to control how it
320 operates.
321
322 `--help'
323 `-h'
324 Print a summary of all of the options to `configure', and exit.
325
326 `--help=short'
327 `--help=recursive'
328 Print a summary of the options unique to this package's
329 `configure', and exit. The `short' variant lists options used
330 only in the top level, while the `recursive' variant lists options
331 also present in any nested packages.
332
333 `--version'
334 `-V'
335 Print the version of Autoconf used to generate the `configure'
336 script, and exit.
337
338 `--cache-file=FILE'
339 Enable the cache: use and save the results of the tests in FILE,
340 traditionally `config.cache'. FILE defaults to `/dev/null' to
341 disable caching.
342
343 `--config-cache'
344 `-C'
345 Alias for `--cache-file=config.cache'.
346
347 `--quiet'
348 `--silent'
349 `-q'
350 Do not print messages saying which checks are being made. To
351 suppress all normal output, redirect it to `/dev/null' (any error
352 messages will still be shown).
353
354 `--srcdir=DIR'
355 Look for the package's source code in directory DIR. Usually
356 `configure' can determine that directory automatically.
357
358 `--prefix=DIR'
359 Use DIR as the installation prefix. *note Installation Names::
360 for more details, including other options available for fine-tuning
361 the installation locations.
362
363 `--no-create'
364 `-n'
365 Run the configure checks, but stop before creating any output
366 files.
367
368 `configure' also accepts some other, not widely useful, options. Run
369 `configure --help' for more details.
1616 dist-hook: ChangeLog
1717
1818 EXTRA_DIST = \
19 README \
19 README.md \
2020 intltool-extract.in \
2121 intltool-merge.in \
2222 intltool-update.in
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1313
1414 @SET_MAKE@
1515 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
16 am__is_gnu_make = { \
17 if test -z '$(MAKELEVEL)'; then \
18 false; \
19 elif test -n '$(MAKE_HOST)'; then \
20 true; \
21 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
22 true; \
23 else \
24 false; \
25 fi; \
26 }
1727 am__make_running_with_option = \
1828 case $${target_option-} in \
1929 ?) ;; \
7787 build_triplet = @build@
7888 host_triplet = @host@
7989 subdir = .
80 DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
81 $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
82 $(top_srcdir)/configure $(am__configure_deps) \
83 $(srcdir)/config.h.in mkinstalldirs COPYING compile \
84 config.guess config.sub depcomp install-sh missing ltmain.sh
8590 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8691 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8792 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8893 $(ACLOCAL_M4)
94 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
95 $(am__configure_deps) $(am__DIST_COMMON)
8996 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
9097 configure.lineno config.status.lineno
91 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
98 mkinstalldirs = $(install_sh) -d
9299 CONFIG_HEADER = config.h
93100 CONFIG_CLEAN_FILES =
94101 CONFIG_CLEAN_VPATH_FILES =
126133 $(RECURSIVE_CLEAN_TARGETS) \
127134 $(am__extra_recursive_targets)
128135 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
129 cscope distdir dist dist-all distcheck
136 cscope distdir distdir-am dist dist-all distcheck
130137 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
131138 $(LISP)config.h.in
132139 # Read a list of newline-separated strings from the standard input,
149156 CTAGS = ctags
150157 CSCOPE = cscope
151158 DIST_SUBDIRS = $(SUBDIRS)
159 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in AUTHORS \
160 COPYING ChangeLog NEWS compile config.guess config.sub \
161 install-sh ltmain.sh missing
152162 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
153163 distdir = $(PACKAGE)-$(VERSION)
154164 top_distdir = $(distdir)
256266 LIPO = @LIPO@
257267 LN_S = @LN_S@
258268 LTLIBOBJS = @LTLIBOBJS@
269 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
259270 MAINT = @MAINT@
260271 MAKEINFO = @MAKEINFO@
261272 MANIFEST_TOOL = @MANIFEST_TOOL@
340351 prefix = @prefix@
341352 program_transform_name = @program_transform_name@
342353 psdir = @psdir@
354 runstatedir = @runstatedir@
343355 sbindir = @sbindir@
344356 sharedstatedir = @sharedstatedir@
345357 srcdir = @srcdir@
353365 src
354366
355367 EXTRA_DIST = \
356 README \
368 README.md \
357369 intltool-extract.in \
358370 intltool-merge.in \
359371 intltool-update.in
373385 @for dep in $?; do \
374386 case '$(am__configure_deps)' in \
375387 *$$dep*) \
376 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
377 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
388 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
389 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
378390 && exit 0; \
379391 exit 1;; \
380392 esac; \
381393 done; \
382 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
394 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
383395 $(am__cd) $(top_srcdir) && \
384 $(AUTOMAKE) --gnu Makefile
385 .PRECIOUS: Makefile
396 $(AUTOMAKE) --foreign Makefile
386397 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
387398 @case '$?' in \
388399 *config.status*) \
389400 echo ' $(SHELL) ./config.status'; \
390401 $(SHELL) ./config.status;; \
391402 *) \
392 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
393 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
403 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
404 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
394405 esac;
395406
396407 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
532543 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
533544 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
534545
535 distdir: $(DISTFILES)
546 distdir: $(BUILT_SOURCES)
547 $(MAKE) $(AM_MAKEFLAGS) distdir-am
548
549 distdir-am: $(DISTFILES)
536550 $(am__remove_distdir)
537551 test -d "$(distdir)" || mkdir "$(distdir)"
538552 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
600614 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
601615 || chmod -R a+r "$(distdir)"
602616 dist-gzip: distdir
603 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
617 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
604618 $(am__post_remove_distdir)
605619 dist-bzip2: distdir
606620 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
615629 $(am__post_remove_distdir)
616630
617631 dist-tarZ: distdir
632 @echo WARNING: "Support for distribution archives compressed with" \
633 "legacy program 'compress' is deprecated." >&2
634 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
635 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
636 $(am__post_remove_distdir)
637
638 dist-shar: distdir
618639 @echo WARNING: "Support for shar distribution archives is" \
619640 "deprecated." >&2
620641 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
621 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
622 $(am__post_remove_distdir)
623
624 dist-shar: distdir
625 @echo WARNING: "Support for distribution archives compressed with" \
626 "legacy program 'compress' is deprecated." >&2
627 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
628 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
642 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
629643 $(am__post_remove_distdir)
630644
631645 dist-zip: distdir
643657 distcheck: dist
644658 case '$(DIST_ARCHIVES)' in \
645659 *.tar.gz*) \
646 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
660 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
647661 *.tar.bz2*) \
648662 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
649663 *.tar.lz*) \
653667 *.tar.Z*) \
654668 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
655669 *.shar.gz*) \
656 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
670 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
657671 *.zip*) \
658672 unzip $(distdir).zip ;;\
659673 esac
660674 chmod -R a-w $(distdir)
661675 chmod u+w $(distdir)
662 mkdir $(distdir)/_build $(distdir)/_inst
676 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
663677 chmod a-w $(distdir)
664678 test -d $(distdir)/_build || exit 0; \
665679 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
666680 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
667681 && am__cwd=`pwd` \
668 && $(am__cd) $(distdir)/_build \
669 && ../configure \
682 && $(am__cd) $(distdir)/_build/sub \
683 && ../../configure \
670684 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
671685 $(DISTCHECK_CONFIGURE_FLAGS) \
672 --srcdir=.. --prefix="$$dc_install_base" \
686 --srcdir=../.. --prefix="$$dc_install_base" \
673687 && $(MAKE) $(AM_MAKEFLAGS) \
674688 && $(MAKE) $(AM_MAKEFLAGS) dvi \
675689 && $(MAKE) $(AM_MAKEFLAGS) check \
847861 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
848862 ps ps-am tags tags-am uninstall uninstall-am
849863
864 .PRECIOUS: Makefile
865
850866 @SET_MAKE@
851867
852868 distclean-local:
0 0.5.2
1 ======
2 - Fix ISO C90 forbids mixed declarations and code
3 - Update configure.ac.in syntax
4 - Create README.md. Update configure.ac.in
5 - Add basic GitLab pipeline
6 - Update URLs from goodies.x.o to docs.x.o (Bug #16176)
7 - Fix build with panel 4.15
8 - Make build less verbose
9 - s/http/https
10 - Translation Updates:
11 Albanian, Belarusian, Bulgarian, Eastern Armenian, English (Canada),
12 Estonian, Galician, Hebrew, Hindi, Icelandic, Slovak, Slovenian,
13 Spanish, Turkish, Uyghur
14
015 0.5.1 : 2019/09/13
116 =====
217 - Preferences: Improve spacing and layout (bug #14675)
+0
-21
README less more
0 CONFIGURATION
1 -------------
2 Some URL examples:
3
4 Google: http://www.google.it/search?q=
5 Debian BTS: http://bugs.debian.org/
6 Wikipedia: http://en.wikipedia.org/wiki/
7
8 BUGS
9 ----
10 Please report bugs to https://bugzilla.xfce.org/
11
12 THANKS
13 ------
14 Many kudos to Roberto Pariset (intero) and Masse Nicolas
15
16 BUILDING FROM SVN
17 -----------------
18 ./autogen.sh
19 make
20 make install
0 [![License](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin/-/blob/master/COPYING)
1
2 # xfce4-smartbookmark-plugin
3
4 Xfce4-smartbookmark-plugin allows you to send requests directly to your
5 browser and perform a custom search.
6
7 Some URL examples:
8
9 Google: https://www.google.it/search?q=
10 Debian BTS: https://bugs.debian.org/
11 Wikipedia: https://en.wikipedia.org/wiki/
12
13 ----
14
15 ### Homepage
16
17 [Xfce4-smartbookmark-plugin documentation](https://docs.xfce.org/panel-plugins/xfce4-smartbookmark-plugin)
18
19 ### Changelog
20
21 See [NEWS](https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin/-/blob/master/NEWS) for details on changes and fixes made in the current release.
22
23 ### Source Code Repository
24
25 [Xfce4-smartbookmark-plugin source code](https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin)
26
27 ### Download a Release Tarball
28
29 [Xfce4-smartbookmark-plugin archive](https://archive.xfce.org/src/panel-plugins/xfce4-smartbookmark-plugin)
30 or
31 [Xfce4-smartbookmark-plugin tags](https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin/-/tags)
32
33 ### Installation
34
35 From source code repository:
36
37 % cd xfce4-smartbookmark-plugin
38 % ./autogen.sh
39 % make
40 % make install
41
42 From release tarball:
43
44 % tar xf xfce4-smartbookmark-plugin-<version>.tar.bz2
45 % cd xfce4-smartbookmark-plugin-<version>
46 % ./configure
47 % make
48 % make install
49
50 ### Reporting Bugs
51
52 Visit the [reporting bugs](https://docs.xfce.org/panel-plugins/xfce4-smartbookmark-plugin/bugs) page to view currently open bug reports and instructions on reporting new bugs or submitting bugfixes.
53
+2821
-2362
aclocal.m4 less more
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
23 #
24 # This file is free software; the Free Software Foundation
25 # gives unlimited permission to copy and/or distribute it,
26 # with or without modifications, as long as this notice is preserved.
27
28 # AM_AUTOMAKE_VERSION(VERSION)
29 # ----------------------------
30 # Automake X.Y traces this macro to ensure aclocal.m4 has been
31 # generated from the m4 files accompanying Automake X.Y.
32 # (This private macro should not be called outside this file.)
33 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.16'
35 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.16.1], [],
38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39 ])
40
41 # _AM_AUTOCONF_VERSION(VERSION)
42 # -----------------------------
43 # aclocal traces this macro to find the Autoconf version.
44 # This is a private macro too. Using m4_define simplifies
45 # the logic in aclocal, which can simply ignore this definition.
46 m4_define([_AM_AUTOCONF_VERSION], [])
47
48 # AM_SET_CURRENT_AUTOMAKE_VERSION
49 # -------------------------------
50 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.16.1])dnl
54 m4_ifndef([AC_AUTOCONF_VERSION],
55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
58 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
59
60 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
61 #
62 # This file is free software; the Free Software Foundation
63 # gives unlimited permission to copy and/or distribute it,
64 # with or without modifications, as long as this notice is preserved.
65
66 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
68 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
69 #
70 # Of course, Automake must honor this variable whenever it calls a
71 # tool from the auxiliary directory. The problem is that $srcdir (and
72 # therefore $ac_aux_dir as well) can be either absolute or relative,
73 # depending on how configure is run. This is pretty annoying, since
74 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
75 # source directory, any form will work fine, but in subdirectories a
76 # relative path needs to be adjusted first.
77 #
78 # $ac_aux_dir/missing
79 # fails when called from a subdirectory if $ac_aux_dir is relative
80 # $top_srcdir/$ac_aux_dir/missing
81 # fails if $ac_aux_dir is absolute,
82 # fails when called from a subdirectory in a VPATH build with
83 # a relative $ac_aux_dir
84 #
85 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86 # are both prefixed by $srcdir. In an in-source build this is usually
87 # harmless because $srcdir is '.', but things will broke when you
88 # start a VPATH build or use an absolute $srcdir.
89 #
90 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93 # and then we would define $MISSING as
94 # MISSING="\${SHELL} $am_aux_dir/missing"
95 # This will work as long as MISSING is not called from configure, because
96 # unfortunately $(top_srcdir) has no meaning in configure.
97 # However there are other variables, like CC, which are often used in
98 # configure, and could therefore not use this "fixed" $ac_aux_dir.
99 #
100 # Another solution, used here, is to always expand $ac_aux_dir to an
101 # absolute PATH. The drawback is that using absolute paths prevent a
102 # configured tree to be moved without reconfiguration.
103
104 AC_DEFUN([AM_AUX_DIR_EXPAND],
105 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
106 # Expand $ac_aux_dir to an absolute path.
107 am_aux_dir=`cd "$ac_aux_dir" && pwd`
108 ])
109
110 # AM_CONDITIONAL -*- Autoconf -*-
111
112 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
113 #
114 # This file is free software; the Free Software Foundation
115 # gives unlimited permission to copy and/or distribute it,
116 # with or without modifications, as long as this notice is preserved.
117
118 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
119 # -------------------------------------
120 # Define a conditional.
121 AC_DEFUN([AM_CONDITIONAL],
122 [AC_PREREQ([2.52])dnl
123 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
124 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
125 AC_SUBST([$1_TRUE])dnl
126 AC_SUBST([$1_FALSE])dnl
127 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
128 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
129 m4_define([_AM_COND_VALUE_$1], [$2])dnl
130 if $2; then
131 $1_TRUE=
132 $1_FALSE='#'
133 else
134 $1_TRUE='#'
135 $1_FALSE=
136 fi
137 AC_CONFIG_COMMANDS_PRE(
138 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
139 AC_MSG_ERROR([[conditional "$1" was never defined.
140 Usually this means the macro was only invoked conditionally.]])
141 fi])])
142
143 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
144 #
145 # This file is free software; the Free Software Foundation
146 # gives unlimited permission to copy and/or distribute it,
147 # with or without modifications, as long as this notice is preserved.
148
149
150 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
151 # written in clear, in which case automake, when reading aclocal.m4,
152 # will think it sees a *use*, and therefore will trigger all it's
153 # C support machinery. Also note that it means that autoscan, seeing
154 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
155
156
157 # _AM_DEPENDENCIES(NAME)
158 # ----------------------
159 # See how the compiler implements dependency checking.
160 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
161 # We try a few techniques and use that to set a single cache variable.
162 #
163 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
164 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
165 # dependency, and given that the user is not expected to run this macro,
166 # just rely on AC_PROG_CC.
167 AC_DEFUN([_AM_DEPENDENCIES],
168 [AC_REQUIRE([AM_SET_DEPDIR])dnl
169 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
170 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
171 AC_REQUIRE([AM_DEP_TRACK])dnl
172
173 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
174 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
175 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
176 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
177 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
178 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
179 [depcc="$$1" am_compiler_list=])
180
181 AC_CACHE_CHECK([dependency style of $depcc],
182 [am_cv_$1_dependencies_compiler_type],
183 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
184 # We make a subdir and do the tests there. Otherwise we can end up
185 # making bogus files that we don't know about and never remove. For
186 # instance it was reported that on HP-UX the gcc test will end up
187 # making a dummy file named 'D' -- because '-MD' means "put the output
188 # in D".
189 rm -rf conftest.dir
190 mkdir conftest.dir
191 # Copy depcomp to subdir because otherwise we won't find it if we're
192 # using a relative directory.
193 cp "$am_depcomp" conftest.dir
194 cd conftest.dir
195 # We will build objects and dependencies in a subdirectory because
196 # it helps to detect inapplicable dependency modes. For instance
197 # both Tru64's cc and ICC support -MD to output dependencies as a
198 # side effect of compilation, but ICC will put the dependencies in
199 # the current directory while Tru64 will put them in the object
200 # directory.
201 mkdir sub
202
203 am_cv_$1_dependencies_compiler_type=none
204 if test "$am_compiler_list" = ""; then
205 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
206 fi
207 am__universal=false
208 m4_case([$1], [CC],
209 [case " $depcc " in #(
210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
211 esac],
212 [CXX],
213 [case " $depcc " in #(
214 *\ -arch\ *\ -arch\ *) am__universal=true ;;
215 esac])
216
217 for depmode in $am_compiler_list; do
218 # Setup a source with many dependencies, because some compilers
219 # like to wrap large dependency lists on column 80 (with \), and
220 # we should not choose a depcomp mode which is confused by this.
221 #
222 # We need to recreate these files for each test, as the compiler may
223 # overwrite some of them when testing with obscure command lines.
224 # This happens at least with the AIX C compiler.
225 : > sub/conftest.c
226 for i in 1 2 3 4 5 6; do
227 echo '#include "conftst'$i'.h"' >> sub/conftest.c
228 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
229 # Solaris 10 /bin/sh.
230 echo '/* dummy */' > sub/conftst$i.h
231 done
232 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
233
234 # We check with '-c' and '-o' for the sake of the "dashmstdout"
235 # mode. It turns out that the SunPro C++ compiler does not properly
236 # handle '-M -o', and we need to detect this. Also, some Intel
237 # versions had trouble with output in subdirs.
238 am__obj=sub/conftest.${OBJEXT-o}
239 am__minus_obj="-o $am__obj"
240 case $depmode in
241 gcc)
242 # This depmode causes a compiler race in universal mode.
243 test "$am__universal" = false || continue
244 ;;
245 nosideeffect)
246 # After this tag, mechanisms are not by side-effect, so they'll
247 # only be used when explicitly requested.
248 if test "x$enable_dependency_tracking" = xyes; then
249 continue
250 else
251 break
252 fi
253 ;;
254 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
255 # This compiler won't grok '-c -o', but also, the minuso test has
256 # not run yet. These depmodes are late enough in the game, and
257 # so weak that their functioning should not be impacted.
258 am__obj=conftest.${OBJEXT-o}
259 am__minus_obj=
260 ;;
261 none) break ;;
262 esac
263 if depmode=$depmode \
264 source=sub/conftest.c object=$am__obj \
265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
266 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
267 >/dev/null 2>conftest.err &&
268 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
269 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
270 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
271 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
272 # icc doesn't choke on unknown options, it will just issue warnings
273 # or remarks (even with -Werror). So we grep stderr for any message
274 # that says an option was ignored or not supported.
275 # When given -MP, icc 7.0 and 7.1 complain thusly:
276 # icc: Command line warning: ignoring option '-M'; no argument required
277 # The diagnosis changed in icc 8.0:
278 # icc: Command line remark: option '-MP' not supported
279 if (grep 'ignoring option' conftest.err ||
280 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
281 am_cv_$1_dependencies_compiler_type=$depmode
282 break
283 fi
284 fi
285 done
286
287 cd ..
288 rm -rf conftest.dir
289 else
290 am_cv_$1_dependencies_compiler_type=none
291 fi
292 ])
293 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
294 AM_CONDITIONAL([am__fastdep$1], [
295 test "x$enable_dependency_tracking" != xno \
296 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
297 ])
298
299
300 # AM_SET_DEPDIR
301 # -------------
302 # Choose a directory name for dependency files.
303 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
304 AC_DEFUN([AM_SET_DEPDIR],
305 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
306 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
307 ])
308
309
310 # AM_DEP_TRACK
311 # ------------
312 AC_DEFUN([AM_DEP_TRACK],
313 [AC_ARG_ENABLE([dependency-tracking], [dnl
314 AS_HELP_STRING(
315 [--enable-dependency-tracking],
316 [do not reject slow dependency extractors])
317 AS_HELP_STRING(
318 [--disable-dependency-tracking],
319 [speeds up one-time build])])
320 if test "x$enable_dependency_tracking" != xno; then
321 am_depcomp="$ac_aux_dir/depcomp"
322 AMDEPBACKSLASH='\'
323 am__nodep='_no'
324 fi
325 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
326 AC_SUBST([AMDEPBACKSLASH])dnl
327 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
328 AC_SUBST([am__nodep])dnl
329 _AM_SUBST_NOTMAKE([am__nodep])dnl
330 ])
331
332 # Generate code to set up dependency tracking. -*- Autoconf -*-
333
334 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
335 #
336 # This file is free software; the Free Software Foundation
337 # gives unlimited permission to copy and/or distribute it,
338 # with or without modifications, as long as this notice is preserved.
339
340 # _AM_OUTPUT_DEPENDENCY_COMMANDS
341 # ------------------------------
342 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
343 [{
344 # Older Autoconf quotes --file arguments for eval, but not when files
345 # are listed without --file. Let's play safe and only enable the eval
346 # if we detect the quoting.
347 # TODO: see whether this extra hack can be removed once we start
348 # requiring Autoconf 2.70 or later.
349 AS_CASE([$CONFIG_FILES],
350 [*\'*], [eval set x "$CONFIG_FILES"],
351 [*], [set x $CONFIG_FILES])
352 shift
353 # Used to flag and report bootstrapping failures.
354 am_rc=0
355 for am_mf
356 do
357 # Strip MF so we end up with the name of the file.
358 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
359 # Check whether this is an Automake generated Makefile which includes
360 # dependency-tracking related rules and includes.
361 # Grep'ing the whole file directly is not great: AIX grep has a line
362 # limit of 2048, but all sed's we know have understand at least 4000.
363 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
364 || continue
365 am_dirpart=`AS_DIRNAME(["$am_mf"])`
366 am_filepart=`AS_BASENAME(["$am_mf"])`
367 AM_RUN_LOG([cd "$am_dirpart" \
368 && sed -e '/# am--include-marker/d' "$am_filepart" \
369 | $MAKE -f - am--depfiles]) || am_rc=$?
370 done
371 if test $am_rc -ne 0; then
372 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
373 for automatic dependency tracking. Try re-running configure with the
374 '--disable-dependency-tracking' option to at least be able to build
375 the package (albeit without support for automatic dependency tracking).])
376 fi
377 AS_UNSET([am_dirpart])
378 AS_UNSET([am_filepart])
379 AS_UNSET([am_mf])
380 AS_UNSET([am_rc])
381 rm -f conftest-deps.mk
382 }
383 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
384
385
386 # AM_OUTPUT_DEPENDENCY_COMMANDS
387 # -----------------------------
388 # This macro should only be invoked once -- use via AC_REQUIRE.
389 #
390 # This code is only required when automatic dependency tracking is enabled.
391 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
392 # order to bootstrap the dependency handling code.
393 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
394 [AC_CONFIG_COMMANDS([depfiles],
395 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
396 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
397
398 # Do all the work for Automake. -*- Autoconf -*-
399
400 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
401 #
402 # This file is free software; the Free Software Foundation
403 # gives unlimited permission to copy and/or distribute it,
404 # with or without modifications, as long as this notice is preserved.
405
406 # This macro actually does too much. Some checks are only needed if
407 # your package does certain things. But this isn't really a big deal.
408
409 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
410 m4_define([AC_PROG_CC],
411 m4_defn([AC_PROG_CC])
412 [_AM_PROG_CC_C_O
413 ])
414
415 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
416 # AM_INIT_AUTOMAKE([OPTIONS])
417 # -----------------------------------------------
418 # The call with PACKAGE and VERSION arguments is the old style
419 # call (pre autoconf-2.50), which is being phased out. PACKAGE
420 # and VERSION should now be passed to AC_INIT and removed from
421 # the call to AM_INIT_AUTOMAKE.
422 # We support both call styles for the transition. After
423 # the next Automake release, Autoconf can make the AC_INIT
424 # arguments mandatory, and then we can depend on a new Autoconf
425 # release and drop the old call support.
426 AC_DEFUN([AM_INIT_AUTOMAKE],
427 [AC_PREREQ([2.65])dnl
428 dnl Autoconf wants to disallow AM_ names. We explicitly allow
429 dnl the ones we care about.
430 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
431 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
432 AC_REQUIRE([AC_PROG_INSTALL])dnl
433 if test "`cd $srcdir && pwd`" != "`pwd`"; then
434 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
435 # is not polluted with repeated "-I."
436 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
437 # test to see if srcdir already configured
438 if test -f $srcdir/config.status; then
439 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
440 fi
441 fi
442
443 # test whether we have cygpath
444 if test -z "$CYGPATH_W"; then
445 if (cygpath --version) >/dev/null 2>/dev/null; then
446 CYGPATH_W='cygpath -w'
447 else
448 CYGPATH_W=echo
449 fi
450 fi
451 AC_SUBST([CYGPATH_W])
452
453 # Define the identity of the package.
454 dnl Distinguish between old-style and new-style calls.
455 m4_ifval([$2],
456 [AC_DIAGNOSE([obsolete],
457 [$0: two- and three-arguments forms are deprecated.])
458 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
459 AC_SUBST([PACKAGE], [$1])dnl
460 AC_SUBST([VERSION], [$2])],
461 [_AM_SET_OPTIONS([$1])dnl
462 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
463 m4_if(
464 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
465 [ok:ok],,
466 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
467 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
468 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
469
470 _AM_IF_OPTION([no-define],,
471 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
472 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
473
474 # Some tools Automake needs.
475 AC_REQUIRE([AM_SANITY_CHECK])dnl
476 AC_REQUIRE([AC_ARG_PROGRAM])dnl
477 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
478 AM_MISSING_PROG([AUTOCONF], [autoconf])
479 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
480 AM_MISSING_PROG([AUTOHEADER], [autoheader])
481 AM_MISSING_PROG([MAKEINFO], [makeinfo])
482 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
483 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
484 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
485 # For better backward compatibility. To be removed once Automake 1.9.x
486 # dies out for good. For more background, see:
487 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
488 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
489 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
490 # We need awk for the "check" target (and possibly the TAP driver). The
491 # system "awk" is bad on some platforms.
492 AC_REQUIRE([AC_PROG_AWK])dnl
493 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
494 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
495 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
496 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
497 [_AM_PROG_TAR([v7])])])
498 _AM_IF_OPTION([no-dependencies],,
499 [AC_PROVIDE_IFELSE([AC_PROG_CC],
500 [_AM_DEPENDENCIES([CC])],
501 [m4_define([AC_PROG_CC],
502 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
503 AC_PROVIDE_IFELSE([AC_PROG_CXX],
504 [_AM_DEPENDENCIES([CXX])],
505 [m4_define([AC_PROG_CXX],
506 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
507 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
508 [_AM_DEPENDENCIES([OBJC])],
509 [m4_define([AC_PROG_OBJC],
510 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
511 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
512 [_AM_DEPENDENCIES([OBJCXX])],
513 [m4_define([AC_PROG_OBJCXX],
514 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
515 ])
516 AC_REQUIRE([AM_SILENT_RULES])dnl
517 dnl The testsuite driver may need to know about EXEEXT, so add the
518 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
519 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
520 AC_CONFIG_COMMANDS_PRE(dnl
521 [m4_provide_if([_AM_COMPILER_EXEEXT],
522 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
523
524 # POSIX will say in a future version that running "rm -f" with no argument
525 # is OK; and we want to be able to make that assumption in our Makefile
526 # recipes. So use an aggressive probe to check that the usage we want is
527 # actually supported "in the wild" to an acceptable degree.
528 # See automake bug#10828.
529 # To make any issue more visible, cause the running configure to be aborted
530 # by default if the 'rm' program in use doesn't match our expectations; the
531 # user can still override this though.
532 if rm -f && rm -fr && rm -rf; then : OK; else
533 cat >&2 <<'END'
534 Oops!
535
536 Your 'rm' program seems unable to run without file operands specified
537 on the command line, even when the '-f' option is present. This is contrary
538 to the behaviour of most rm programs out there, and not conforming with
539 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
540
541 Please tell bug-automake@gnu.org about your system, including the value
542 of your $PATH and any error possibly output before this message. This
543 can help us improve future automake versions.
544
545 END
546 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
547 echo 'Configuration will proceed anyway, since you have set the' >&2
548 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
549 echo >&2
550 else
551 cat >&2 <<'END'
552 Aborting the configuration process, to ensure you take notice of the issue.
553
554 You can download and install GNU coreutils to get an 'rm' implementation
555 that behaves properly: <https://www.gnu.org/software/coreutils/>.
556
557 If you want to complete the configuration process using your problematic
558 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
559 to "yes", and re-run configure.
560
561 END
562 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
563 fi
564 fi
565 dnl The trailing newline in this macro's definition is deliberate, for
566 dnl backward compatibility and to allow trailing 'dnl'-style comments
567 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
568 ])
569
570 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
571 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
572 dnl mangled by Autoconf and run in a shell conditional statement.
573 m4_define([_AC_COMPILER_EXEEXT],
574 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
575
576 # When config.status generates a header, we must update the stamp-h file.
577 # This file resides in the same directory as the config header
578 # that is generated. The stamp files are numbered to have different names.
579
580 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
581 # loop where config.status creates the headers, so we can generate
582 # our stamp files there.
583 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
584 [# Compute $1's index in $config_headers.
585 _am_arg=$1
586 _am_stamp_count=1
587 for _am_header in $config_headers :; do
588 case $_am_header in
589 $_am_arg | $_am_arg:* )
590 break ;;
591 * )
592 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
593 esac
594 done
595 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
596
597 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
598 #
599 # This file is free software; the Free Software Foundation
600 # gives unlimited permission to copy and/or distribute it,
601 # with or without modifications, as long as this notice is preserved.
602
603 # AM_PROG_INSTALL_SH
604 # ------------------
605 # Define $install_sh.
606 AC_DEFUN([AM_PROG_INSTALL_SH],
607 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
608 if test x"${install_sh+set}" != xset; then
609 case $am_aux_dir in
610 *\ * | *\ *)
611 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
612 *)
613 install_sh="\${SHELL} $am_aux_dir/install-sh"
614 esac
615 fi
616 AC_SUBST([install_sh])])
617
618 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
619 #
620 # This file is free software; the Free Software Foundation
621 # gives unlimited permission to copy and/or distribute it,
622 # with or without modifications, as long as this notice is preserved.
623
624 # Check whether the underlying file-system supports filenames
625 # with a leading dot. For instance MS-DOS doesn't.
626 AC_DEFUN([AM_SET_LEADING_DOT],
627 [rm -rf .tst 2>/dev/null
628 mkdir .tst 2>/dev/null
629 if test -d .tst; then
630 am__leading_dot=.
631 else
632 am__leading_dot=_
633 fi
634 rmdir .tst 2>/dev/null
635 AC_SUBST([am__leading_dot])])
636
637 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
638 # From Jim Meyering
639
640 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
641 #
642 # This file is free software; the Free Software Foundation
643 # gives unlimited permission to copy and/or distribute it,
644 # with or without modifications, as long as this notice is preserved.
645
646 # AM_MAINTAINER_MODE([DEFAULT-MODE])
647 # ----------------------------------
648 # Control maintainer-specific portions of Makefiles.
649 # Default is to disable them, unless 'enable' is passed literally.
650 # For symmetry, 'disable' may be passed as well. Anyway, the user
651 # can override the default with the --enable/--disable switch.
652 AC_DEFUN([AM_MAINTAINER_MODE],
653 [m4_case(m4_default([$1], [disable]),
654 [enable], [m4_define([am_maintainer_other], [disable])],
655 [disable], [m4_define([am_maintainer_other], [enable])],
656 [m4_define([am_maintainer_other], [enable])
657 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
658 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
659 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
660 AC_ARG_ENABLE([maintainer-mode],
661 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
662 am_maintainer_other[ make rules and dependencies not useful
663 (and sometimes confusing) to the casual installer])],
664 [USE_MAINTAINER_MODE=$enableval],
665 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
666 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
667 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
668 MAINT=$MAINTAINER_MODE_TRUE
669 AC_SUBST([MAINT])dnl
670 ]
671 )
672
673 # Check to see how 'make' treats includes. -*- Autoconf -*-
674
675 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
676 #
677 # This file is free software; the Free Software Foundation
678 # gives unlimited permission to copy and/or distribute it,
679 # with or without modifications, as long as this notice is preserved.
680
681 # AM_MAKE_INCLUDE()
682 # -----------------
683 # Check whether make has an 'include' directive that can support all
684 # the idioms we need for our automatic dependency tracking code.
685 AC_DEFUN([AM_MAKE_INCLUDE],
686 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
687 cat > confinc.mk << 'END'
688 am__doit:
689 @echo this is the am__doit target >confinc.out
690 .PHONY: am__doit
691 END
692 am__include="#"
693 am__quote=
694 # BSD make does it like this.
695 echo '.include "confinc.mk" # ignored' > confmf.BSD
696 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
697 echo 'include confinc.mk # ignored' > confmf.GNU
698 _am_result=no
699 for s in GNU BSD; do
700 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
701 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
702 ['0:this is the am__doit target'],
703 [AS_CASE([$s],
704 [BSD], [am__include='.include' am__quote='"'],
705 [am__include='include' am__quote=''])])
706 if test "$am__include" != "#"; then
707 _am_result="yes ($s style)"
708 break
709 fi
710 done
711 rm -f confinc.* confmf.*
712 AC_MSG_RESULT([${_am_result}])
713 AC_SUBST([am__include])])
714 AC_SUBST([am__quote])])
715
716 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
717
718 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
719 #
720 # This file is free software; the Free Software Foundation
721 # gives unlimited permission to copy and/or distribute it,
722 # with or without modifications, as long as this notice is preserved.
723
724 # AM_MISSING_PROG(NAME, PROGRAM)
725 # ------------------------------
726 AC_DEFUN([AM_MISSING_PROG],
727 [AC_REQUIRE([AM_MISSING_HAS_RUN])
728 $1=${$1-"${am_missing_run}$2"}
729 AC_SUBST($1)])
730
731 # AM_MISSING_HAS_RUN
732 # ------------------
733 # Define MISSING if not defined so far and test if it is modern enough.
734 # If it is, set am_missing_run to use it, otherwise, to nothing.
735 AC_DEFUN([AM_MISSING_HAS_RUN],
736 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
737 AC_REQUIRE_AUX_FILE([missing])dnl
738 if test x"${MISSING+set}" != xset; then
739 case $am_aux_dir in
740 *\ * | *\ *)
741 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
742 *)
743 MISSING="\${SHELL} $am_aux_dir/missing" ;;
744 esac
745 fi
746 # Use eval to expand $SHELL
747 if eval "$MISSING --is-lightweight"; then
748 am_missing_run="$MISSING "
749 else
750 am_missing_run=
751 AC_MSG_WARN(['missing' script is too old or missing])
752 fi
753 ])
754
755 # -*- Autoconf -*-
756 # Obsolete and "removed" macros, that must however still report explicit
757 # error messages when used, to smooth transition.
758 #
759 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
760 #
761 # This file is free software; the Free Software Foundation
762 # gives unlimited permission to copy and/or distribute it,
763 # with or without modifications, as long as this notice is preserved.
764
765 AC_DEFUN([AM_CONFIG_HEADER],
766 [AC_DIAGNOSE([obsolete],
767 ['$0': this macro is obsolete.
768 You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
769 AC_CONFIG_HEADERS($@)])
770
771 AC_DEFUN([AM_PROG_CC_STDC],
772 [AC_PROG_CC
773 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
774 AC_DIAGNOSE([obsolete],
775 ['$0': this macro is obsolete.
776 You should simply use the 'AC][_PROG_CC' macro instead.
777 Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
778 but upon 'ac_cv_prog_cc_stdc'.])])
779
780 AC_DEFUN([AM_C_PROTOTYPES],
781 [AC_FATAL([automatic de-ANSI-fication support has been removed])])
782 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
783
784 # Helper functions for option handling. -*- Autoconf -*-
785
786 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
787 #
788 # This file is free software; the Free Software Foundation
789 # gives unlimited permission to copy and/or distribute it,
790 # with or without modifications, as long as this notice is preserved.
791
792 # _AM_MANGLE_OPTION(NAME)
793 # -----------------------
794 AC_DEFUN([_AM_MANGLE_OPTION],
795 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
796
797 # _AM_SET_OPTION(NAME)
798 # --------------------
799 # Set option NAME. Presently that only means defining a flag for this option.
800 AC_DEFUN([_AM_SET_OPTION],
801 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
802
803 # _AM_SET_OPTIONS(OPTIONS)
804 # ------------------------
805 # OPTIONS is a space-separated list of Automake options.
806 AC_DEFUN([_AM_SET_OPTIONS],
807 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
808
809 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
810 # -------------------------------------------
811 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
812 AC_DEFUN([_AM_IF_OPTION],
813 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
814
815 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
816 #
817 # This file is free software; the Free Software Foundation
818 # gives unlimited permission to copy and/or distribute it,
819 # with or without modifications, as long as this notice is preserved.
820
821 # _AM_PROG_CC_C_O
822 # ---------------
823 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
824 # to automatically call this.
825 AC_DEFUN([_AM_PROG_CC_C_O],
826 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
827 AC_REQUIRE_AUX_FILE([compile])dnl
828 AC_LANG_PUSH([C])dnl
829 AC_CACHE_CHECK(
830 [whether $CC understands -c and -o together],
831 [am_cv_prog_cc_c_o],
832 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
833 # Make sure it works both with $CC and with simple cc.
834 # Following AC_PROG_CC_C_O, we do the test twice because some
835 # compilers refuse to overwrite an existing .o file with -o,
836 # though they will create one.
837 am_cv_prog_cc_c_o=yes
838 for am_i in 1 2; do
839 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
840 && test -f conftest2.$ac_objext; then
841 : OK
842 else
843 am_cv_prog_cc_c_o=no
844 break
845 fi
846 done
847 rm -f core conftest*
848 unset am_i])
849 if test "$am_cv_prog_cc_c_o" != yes; then
850 # Losing compiler, so override with the script.
851 # FIXME: It is wrong to rewrite CC.
852 # But if we don't then we get into trouble of one sort or another.
853 # A longer-term fix would be to have automake use am__CC in this case,
854 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
855 CC="$am_aux_dir/compile $CC"
856 fi
857 AC_LANG_POP([C])])
858
859 # For backward compatibility.
860 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
861
862 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
863 #
864 # This file is free software; the Free Software Foundation
865 # gives unlimited permission to copy and/or distribute it,
866 # with or without modifications, as long as this notice is preserved.
867
868 # AM_RUN_LOG(COMMAND)
869 # -------------------
870 # Run COMMAND, save the exit status in ac_status, and log it.
871 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
872 AC_DEFUN([AM_RUN_LOG],
873 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
874 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
875 ac_status=$?
876 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
877 (exit $ac_status); }])
878
879 # Check to make sure that the build environment is sane. -*- Autoconf -*-
880
881 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
882 #
883 # This file is free software; the Free Software Foundation
884 # gives unlimited permission to copy and/or distribute it,
885 # with or without modifications, as long as this notice is preserved.
886
887 # AM_SANITY_CHECK
888 # ---------------
889 AC_DEFUN([AM_SANITY_CHECK],
890 [AC_MSG_CHECKING([whether build environment is sane])
891 # Reject unsafe characters in $srcdir or the absolute working directory
892 # name. Accept space and tab only in the latter.
893 am_lf='
894 '
895 case `pwd` in
896 *[[\\\"\#\$\&\'\`$am_lf]]*)
897 AC_MSG_ERROR([unsafe absolute working directory name]);;
898 esac
899 case $srcdir in
900 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
901 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
902 esac
903
904 # Do 'set' in a subshell so we don't clobber the current shell's
905 # arguments. Must try -L first in case configure is actually a
906 # symlink; some systems play weird games with the mod time of symlinks
907 # (eg FreeBSD returns the mod time of the symlink's containing
908 # directory).
909 if (
910 am_has_slept=no
911 for am_try in 1 2; do
912 echo "timestamp, slept: $am_has_slept" > conftest.file
913 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
914 if test "$[*]" = "X"; then
915 # -L didn't work.
916 set X `ls -t "$srcdir/configure" conftest.file`
917 fi
918 if test "$[*]" != "X $srcdir/configure conftest.file" \
919 && test "$[*]" != "X conftest.file $srcdir/configure"; then
920
921 # If neither matched, then we have a broken ls. This can happen
922 # if, for instance, CONFIG_SHELL is bash and it inherits a
923 # broken ls alias from the environment. This has actually
924 # happened. Such a system could not be considered "sane".
925 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
926 alias in your environment])
927 fi
928 if test "$[2]" = conftest.file || test $am_try -eq 2; then
929 break
930 fi
931 # Just in case.
932 sleep 1
933 am_has_slept=yes
934 done
935 test "$[2]" = conftest.file
936 )
937 then
938 # Ok.
939 :
940 else
941 AC_MSG_ERROR([newly created file is older than distributed files!
942 Check your system clock])
943 fi
944 AC_MSG_RESULT([yes])
945 # If we didn't sleep, we still need to ensure time stamps of config.status and
946 # generated files are strictly newer.
947 am_sleep_pid=
948 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
949 ( sleep 1 ) &
950 am_sleep_pid=$!
951 fi
952 AC_CONFIG_COMMANDS_PRE(
953 [AC_MSG_CHECKING([that generated files are newer than configure])
954 if test -n "$am_sleep_pid"; then
955 # Hide warnings about reused PIDs.
956 wait $am_sleep_pid 2>/dev/null
957 fi
958 AC_MSG_RESULT([done])])
959 rm -f conftest.file
960 ])
961
962 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
963 #
964 # This file is free software; the Free Software Foundation
965 # gives unlimited permission to copy and/or distribute it,
966 # with or without modifications, as long as this notice is preserved.
967
968 # AM_SILENT_RULES([DEFAULT])
969 # --------------------------
970 # Enable less verbose build rules; with the default set to DEFAULT
971 # ("yes" being less verbose, "no" or empty being verbose).
972 AC_DEFUN([AM_SILENT_RULES],
973 [AC_ARG_ENABLE([silent-rules], [dnl
974 AS_HELP_STRING(
975 [--enable-silent-rules],
976 [less verbose build output (undo: "make V=1")])
977 AS_HELP_STRING(
978 [--disable-silent-rules],
979 [verbose build output (undo: "make V=0")])dnl
980 ])
981 case $enable_silent_rules in @%:@ (((
982 yes) AM_DEFAULT_VERBOSITY=0;;
983 no) AM_DEFAULT_VERBOSITY=1;;
984 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
985 esac
986 dnl
987 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
988 dnl do not support nested variable expansions.
989 dnl See automake bug#9928 and bug#10237.
990 am_make=${MAKE-make}
991 AC_CACHE_CHECK([whether $am_make supports nested variables],
992 [am_cv_make_support_nested_variables],
993 [if AS_ECHO([['TRUE=$(BAR$(V))
994 BAR0=false
995 BAR1=true
996 V=1
997 am__doit:
998 @$(TRUE)
999 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1000 am_cv_make_support_nested_variables=yes
1001 else
1002 am_cv_make_support_nested_variables=no
1003 fi])
1004 if test $am_cv_make_support_nested_variables = yes; then
1005 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1006 AM_V='$(V)'
1007 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1008 else
1009 AM_V=$AM_DEFAULT_VERBOSITY
1010 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1011 fi
1012 AC_SUBST([AM_V])dnl
1013 AM_SUBST_NOTMAKE([AM_V])dnl
1014 AC_SUBST([AM_DEFAULT_V])dnl
1015 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1016 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1017 AM_BACKSLASH='\'
1018 AC_SUBST([AM_BACKSLASH])dnl
1019 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1020 ])
1021
1022 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1023 #
1024 # This file is free software; the Free Software Foundation
1025 # gives unlimited permission to copy and/or distribute it,
1026 # with or without modifications, as long as this notice is preserved.
1027
1028 # AM_PROG_INSTALL_STRIP
1029 # ---------------------
1030 # One issue with vendor 'install' (even GNU) is that you can't
1031 # specify the program used to strip binaries. This is especially
1032 # annoying in cross-compiling environments, where the build's strip
1033 # is unlikely to handle the host's binaries.
1034 # Fortunately install-sh will honor a STRIPPROG variable, so we
1035 # always use install-sh in "make install-strip", and initialize
1036 # STRIPPROG with the value of the STRIP variable (set by the user).
1037 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1038 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1039 # Installed binaries are usually stripped using 'strip' when the user
1040 # run "make install-strip". However 'strip' might not be the right
1041 # tool to use in cross-compilation environments, therefore Automake
1042 # will honor the 'STRIP' environment variable to overrule this program.
1043 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1044 if test "$cross_compiling" != no; then
1045 AC_CHECK_TOOL([STRIP], [strip], :)
1046 fi
1047 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1048 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1049
1050 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
1051 #
1052 # This file is free software; the Free Software Foundation
1053 # gives unlimited permission to copy and/or distribute it,
1054 # with or without modifications, as long as this notice is preserved.
1055
1056 # _AM_SUBST_NOTMAKE(VARIABLE)
1057 # ---------------------------
1058 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1059 # This macro is traced by Automake.
1060 AC_DEFUN([_AM_SUBST_NOTMAKE])
1061
1062 # AM_SUBST_NOTMAKE(VARIABLE)
1063 # --------------------------
1064 # Public sister of _AM_SUBST_NOTMAKE.
1065 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1066
1067 # Check how to create a tarball. -*- Autoconf -*-
1068
1069 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
1070 #
1071 # This file is free software; the Free Software Foundation
1072 # gives unlimited permission to copy and/or distribute it,
1073 # with or without modifications, as long as this notice is preserved.
1074
1075 # _AM_PROG_TAR(FORMAT)
1076 # --------------------
1077 # Check how to create a tarball in format FORMAT.
1078 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1079 #
1080 # Substitute a variable $(am__tar) that is a command
1081 # writing to stdout a FORMAT-tarball containing the directory
1082 # $tardir.
1083 # tardir=directory && $(am__tar) > result.tar
1084 #
1085 # Substitute a variable $(am__untar) that extract such
1086 # a tarball read from stdin.
1087 # $(am__untar) < result.tar
1088 #
1089 AC_DEFUN([_AM_PROG_TAR],
1090 [# Always define AMTAR for backward compatibility. Yes, it's still used
1091 # in the wild :-( We should find a proper way to deprecate it ...
1092 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1093
1094 # We'll loop over all known methods to create a tar archive until one works.
1095 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1096
1097 m4_if([$1], [v7],
1098 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1099
1100 [m4_case([$1],
1101 [ustar],
1102 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1103 # There is notably a 21 bits limit for the UID and the GID. In fact,
1104 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1105 # and bug#13588).
1106 am_max_uid=2097151 # 2^21 - 1
1107 am_max_gid=$am_max_uid
1108 # The $UID and $GID variables are not portable, so we need to resort
1109 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1110 # below are definitely unexpected, so allow the users to see them
1111 # (that is, avoid stderr redirection).
1112 am_uid=`id -u || echo unknown`
1113 am_gid=`id -g || echo unknown`
1114 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1115 if test $am_uid -le $am_max_uid; then
1116 AC_MSG_RESULT([yes])
1117 else
1118 AC_MSG_RESULT([no])
1119 _am_tools=none
1120 fi
1121 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1122 if test $am_gid -le $am_max_gid; then
1123 AC_MSG_RESULT([yes])
1124 else
1125 AC_MSG_RESULT([no])
1126 _am_tools=none
1127 fi],
1128
1129 [pax],
1130 [],
1131
1132 [m4_fatal([Unknown tar format])])
1133
1134 AC_MSG_CHECKING([how to create a $1 tar archive])
1135
1136 # Go ahead even if we have the value already cached. We do so because we
1137 # need to set the values for the 'am__tar' and 'am__untar' variables.
1138 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1139
1140 for _am_tool in $_am_tools; do
1141 case $_am_tool in
1142 gnutar)
1143 for _am_tar in tar gnutar gtar; do
1144 AM_RUN_LOG([$_am_tar --version]) && break
1145 done
1146 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1147 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1148 am__untar="$_am_tar -xf -"
1149 ;;
1150 plaintar)
1151 # Must skip GNU tar: if it does not support --format= it doesn't create
1152 # ustar tarball either.
1153 (tar --version) >/dev/null 2>&1 && continue
1154 am__tar='tar chf - "$$tardir"'
1155 am__tar_='tar chf - "$tardir"'
1156 am__untar='tar xf -'
1157 ;;
1158 pax)
1159 am__tar='pax -L -x $1 -w "$$tardir"'
1160 am__tar_='pax -L -x $1 -w "$tardir"'
1161 am__untar='pax -r'
1162 ;;
1163 cpio)
1164 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1165 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1166 am__untar='cpio -i -H $1 -d'
1167 ;;
1168 none)
1169 am__tar=false
1170 am__tar_=false
1171 am__untar=false
1172 ;;
1173 esac
1174
1175 # If the value was cached, stop now. We just wanted to have am__tar
1176 # and am__untar set.
1177 test -n "${am_cv_prog_tar_$1}" && break
1178
1179 # tar/untar a dummy directory, and stop if the command works.
1180 rm -rf conftest.dir
1181 mkdir conftest.dir
1182 echo GrepMe > conftest.dir/file
1183 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1184 rm -rf conftest.dir
1185 if test -s conftest.tar; then
1186 AM_RUN_LOG([$am__untar <conftest.tar])
1187 AM_RUN_LOG([cat conftest.dir/file])
1188 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1189 fi
1190 done
1191 rm -rf conftest.dir
1192
1193 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1194 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1195
1196 AC_SUBST([am__tar])
1197 AC_SUBST([am__untar])
1198 ]) # _AM_PROG_TAR
211199
221200 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
231201 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
6981876
6991877 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
7001878 #
701 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
702 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
703 # Foundation, Inc.
1879 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
7041880 # Written by Gordon Matzigkeit, 1996
7051881 #
7061882 # This file is free software; the Free Software Foundation gives
7081884 # modifications, as long as this notice is preserved.
7091885
7101886 m4_define([_LT_COPYING], [dnl
711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
712 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
713 # Foundation, Inc.
714 # Written by Gordon Matzigkeit, 1996
1887 # Copyright (C) 2014 Free Software Foundation, Inc.
1888 # This is free software; see the source for copying conditions. There is NO
1889 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1890
1891 # GNU Libtool is free software; you can redistribute it and/or modify
1892 # it under the terms of the GNU General Public License as published by
1893 # the Free Software Foundation; either version 2 of of the License, or
1894 # (at your option) any later version.
7151895 #
716 # This file is part of GNU Libtool.
1896 # As a special exception to the GNU General Public License, if you
1897 # distribute this file as part of a program or library that is built
1898 # using GNU Libtool, you may include this file under the same
1899 # distribution terms that you use for the rest of that program.
7171900 #
718 # GNU Libtool is free software; you can redistribute it and/or
719 # modify it under the terms of the GNU General Public License as
720 # published by the Free Software Foundation; either version 2 of
721 # the License, or (at your option) any later version.
722 #
723 # As a special exception to the GNU General Public License,
724 # if you distribute this file as part of a program or library that
725 # is built using GNU Libtool, you may include this file under the
726 # same distribution terms that you use for the rest of that program.
727 #
728 # GNU Libtool is distributed in the hope that it will be useful,
729 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1901 # GNU Libtool is distributed in the hope that it will be useful, but
1902 # WITHOUT ANY WARRANTY; without even the implied warranty of
7301903 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7311904 # GNU General Public License for more details.
7321905 #
7331906 # You should have received a copy of the GNU General Public License
734 # along with GNU Libtool; see the file COPYING. If not, a copy
735 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
736 # obtained by writing to the Free Software Foundation, Inc.,
737 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1907 # along with this program. If not, see <http://www.gnu.org/licenses/>.
7381908 ])
7391909
740 # serial 57 LT_INIT
1910 # serial 58 LT_INIT
7411911
7421912
7431913 # LT_PREREQ(VERSION)
7651935 # LT_INIT([OPTIONS])
7661936 # ------------------
7671937 AC_DEFUN([LT_INIT],
768 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1938 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
7691939 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
7701940 AC_BEFORE([$0], [LT_LANG])dnl
7711941 AC_BEFORE([$0], [LT_OUTPUT])dnl
7891959 _LT_SET_OPTIONS([$0], [$1])
7901960
7911961 # This can be used to rebuild libtool when needed
792 LIBTOOL_DEPS="$ltmain"
1962 LIBTOOL_DEPS=$ltmain
7931963
7941964 # Always use our own libtool.
7951965 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8091979 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
8101980
8111981
1982 # _LT_PREPARE_CC_BASENAME
1983 # -----------------------
1984 m4_defun([_LT_PREPARE_CC_BASENAME], [
1985 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1986 func_cc_basename ()
1987 {
1988 for cc_temp in @S|@*""; do
1989 case $cc_temp in
1990 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1991 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1992 \-*) ;;
1993 *) break;;
1994 esac
1995 done
1996 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1997 }
1998 ])# _LT_PREPARE_CC_BASENAME
1999
2000
8122001 # _LT_CC_BASENAME(CC)
8132002 # -------------------
814 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2003 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
2004 # but that macro is also expanded into generated libtool script, which
2005 # arranges for $SED and $ECHO to be set by different means.
8152006 m4_defun([_LT_CC_BASENAME],
816 [for cc_temp in $1""; do
817 case $cc_temp in
818 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
819 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
820 \-*) ;;
821 *) break;;
822 esac
823 done
824 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
2007 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
2008 AC_REQUIRE([_LT_DECL_SED])dnl
2009 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
2010 func_cc_basename $1
2011 cc_basename=$func_cc_basename_result
8252012 ])
8262013
8272014
8282015 # _LT_FILEUTILS_DEFAULTS
8292016 # ----------------------
8302017 # It is okay to use these file commands and assume they have been set
831 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2018 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
8322019 m4_defun([_LT_FILEUTILS_DEFAULTS],
8332020 [: ${CP="cp -f"}
8342021 : ${MV="mv -f"}
8752062 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
8762063 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8772064 m4_require([_LT_WITH_SYSROOT])dnl
2065 m4_require([_LT_CMD_TRUNCATE])dnl
8782066
8792067 _LT_CONFIG_LIBTOOL_INIT([
880 # See if we are running on zsh, and set the options which allow our
2068 # See if we are running on zsh, and set the options that allow our
8812069 # commands through without removal of \ escapes INIT.
882 if test -n "\${ZSH_VERSION+set}" ; then
2070 if test -n "\${ZSH_VERSION+set}"; then
8832071 setopt NO_GLOB_SUBST
8842072 fi
8852073 ])
886 if test -n "${ZSH_VERSION+set}" ; then
2074 if test -n "${ZSH_VERSION+set}"; then
8872075 setopt NO_GLOB_SUBST
8882076 fi
8892077
8962084 # AIX sometimes has problems with the GCC collect2 program. For some
8972085 # reason, if we set the COLLECT_NAMES environment variable, the problems
8982086 # vanish in a puff of smoke.
899 if test "X${COLLECT_NAMES+set}" != Xset; then
2087 if test set != "${COLLECT_NAMES+set}"; then
9002088 COLLECT_NAMES=
9012089 export COLLECT_NAMES
9022090 fi
9072095 ofile=libtool
9082096 can_build_shared=yes
9092097
910 # All known linkers require a `.a' archive for static linking (except MSVC,
2098 # All known linkers require a '.a' archive for static linking (except MSVC,
9112099 # which needs '.lib').
9122100 libext=a
9132101
914 with_gnu_ld="$lt_cv_prog_gnu_ld"
915
916 old_CC="$CC"
917 old_CFLAGS="$CFLAGS"
2102 with_gnu_ld=$lt_cv_prog_gnu_ld
2103
2104 old_CC=$CC
2105 old_CFLAGS=$CFLAGS
9182106
9192107 # Set sane defaults for various variables
9202108 test -z "$CC" && CC=cc
9672155
9682156 # _LT_PROG_LTMAIN
9692157 # ---------------
970 # Note that this code is called both from `configure', and `config.status'
2158 # Note that this code is called both from 'configure', and 'config.status'
9712159 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
972 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2160 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
9732161 # so we pass a copy along to make sure it has a sensible value anyway.
9742162 m4_defun([_LT_PROG_LTMAIN],
9752163 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
9762164 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
977 ltmain="$ac_aux_dir/ltmain.sh"
2165 ltmain=$ac_aux_dir/ltmain.sh
9782166 ])# _LT_PROG_LTMAIN
9792167
9802168
9812169
9822170 # So that we can recreate a full libtool script including additional
9832171 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
984 # in macros and then make a single call at the end using the `libtool'
2172 # in macros and then make a single call at the end using the 'libtool'
9852173 # label.
9862174
9872175
11132301
11142302 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
11152303 # ------------------------------------
1116 # Quote a variable value, and forward it to `config.status' so that its
1117 # declaration there will have the same value as in `configure'. VARNAME
2304 # Quote a variable value, and forward it to 'config.status' so that its
2305 # declaration there will have the same value as in 'configure'. VARNAME
11182306 # must have a single quote delimited value for this to work.
11192307 m4_define([_LT_CONFIG_STATUS_DECLARE],
11202308 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
11382326 # Output comment and list of tags supported by the script
11392327 m4_defun([_LT_LIBTOOL_TAGS],
11402328 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1141 available_tags="_LT_TAGS"dnl
2329 available_tags='_LT_TAGS'dnl
11422330 ])
11432331
11442332
11662354 # _LT_LIBTOOL_CONFIG_VARS
11672355 # -----------------------
11682356 # Produce commented declarations of non-tagged libtool config variables
1169 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2357 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
11702358 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
11712359 # section) are produced by _LT_LIBTOOL_TAG_VARS.
11722360 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
11922380 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
11932381 # variables for single and double quote escaping we saved from calls
11942382 # to _LT_DECL, we can put quote escaped variables declarations
1195 # into `config.status', and then the shell code to quote escape them in
1196 # for loops in `config.status'. Finally, any additional code accumulated
2383 # into 'config.status', and then the shell code to quote escape them in
2384 # for loops in 'config.status'. Finally, any additional code accumulated
11972385 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
11982386 m4_defun([_LT_CONFIG_COMMANDS],
11992387 [AC_PROVIDE_IFELSE([LT_OUTPUT],
12392427 ]], lt_decl_quote_varnames); do
12402428 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12412429 *[[\\\\\\\`\\"\\\$]]*)
1242 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
2430 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
12432431 ;;
12442432 *)
12452433 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12522440 ]], lt_decl_dquote_varnames); do
12532441 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12542442 *[[\\\\\\\`\\"\\\$]]*)
1255 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
2443 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
12562444 ;;
12572445 *)
12582446 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12682456 # Generate a child script FILE with all initialization necessary to
12692457 # reuse the environment learned by the parent script, and make the
12702458 # file executable. If COMMENT is supplied, it is inserted after the
1271 # `#!' sequence but before initialization text begins. After this
2459 # '#!' sequence but before initialization text begins. After this
12722460 # macro, additional text can be appended to FILE to form the body of
12732461 # the child script. The macro ends with non-zero status if the
12742462 # file could not be fully written (such as if the disk is full).
12902478 _AS_PREPARE
12912479 exec AS_MESSAGE_FD>&1
12922480 _ASEOF
1293 test $lt_write_fail = 0 && chmod +x $1[]dnl
2481 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
12942482 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
12952483
12962484 # LT_OUTPUT
13132501 } >&AS_MESSAGE_LOG_FD
13142502
13152503 lt_cl_help="\
1316 \`$as_me' creates a local libtool stub from the current configuration,
2504 '$as_me' creates a local libtool stub from the current configuration,
13172505 for use in further configure time tests before the real libtool is
13182506 generated.
13192507
13352523 This config.lt script is free software; the Free Software Foundation
13362524 gives unlimited permision to copy, distribute and modify it."
13372525
1338 while test $[#] != 0
2526 while test 0 != $[#]
13392527 do
13402528 case $[1] in
13412529 --version | --v* | -V )
13482536 lt_cl_silent=: ;;
13492537
13502538 -*) AC_MSG_ERROR([unrecognized option: $[1]
1351 Try \`$[0] --help' for more information.]) ;;
2539 Try '$[0] --help' for more information.]) ;;
13522540
13532541 *) AC_MSG_ERROR([unrecognized argument: $[1]
1354 Try \`$[0] --help' for more information.]) ;;
2542 Try '$[0] --help' for more information.]) ;;
13552543 esac
13562544 shift
13572545 done
13772565 # open by configure. Here we exec the FD to /dev/null, effectively closing
13782566 # config.log, so it can be properly (re)opened and appended to by config.lt.
13792567 lt_cl_success=:
1380 test "$silent" = yes &&
2568 test yes = "$silent" &&
13812569 lt_config_lt_args="$lt_config_lt_args --quiet"
13822570 exec AS_MESSAGE_LOG_FD>/dev/null
13832571 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
13972585 _LT_CONFIG_SAVE_COMMANDS([
13982586 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
13992587 m4_if(_LT_TAG, [C], [
1400 # See if we are running on zsh, and set the options which allow our
2588 # See if we are running on zsh, and set the options that allow our
14012589 # commands through without removal of \ escapes.
1402 if test -n "${ZSH_VERSION+set}" ; then
2590 if test -n "${ZSH_VERSION+set}"; then
14032591 setopt NO_GLOB_SUBST
14042592 fi
14052593
1406 cfgfile="${ofile}T"
2594 cfgfile=${ofile}T
14072595 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14082596 $RM "$cfgfile"
14092597
14102598 cat <<_LT_EOF >> "$cfgfile"
14112599 #! $SHELL
1412
1413 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1414 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1415 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2600 # Generated automatically by $as_me ($PACKAGE) $VERSION
14162601 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1417 #
2602
2603 # Provide generalized library-building support services.
2604 # Written by Gordon Matzigkeit, 1996
2605
14182606 _LT_COPYING
14192607 _LT_LIBTOOL_TAGS
2608
2609 # Configured defaults for sys_lib_dlsearch_path munging.
2610 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14202611
14212612 # ### BEGIN LIBTOOL CONFIG
14222613 _LT_LIBTOOL_CONFIG_VARS
14232614 _LT_LIBTOOL_TAG_VARS
14242615 # ### END LIBTOOL CONFIG
2616
2617 _LT_EOF
2618
2619 cat <<'_LT_EOF' >> "$cfgfile"
2620
2621 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
2622
2623 _LT_PREPARE_MUNGE_PATH_LIST
2624 _LT_PREPARE_CC_BASENAME
2625
2626 # ### END FUNCTIONS SHARED WITH CONFIGURE
14252627
14262628 _LT_EOF
14272629
14312633 # AIX sometimes has problems with the GCC collect2 program. For some
14322634 # reason, if we set the COLLECT_NAMES environment variable, the problems
14332635 # vanish in a puff of smoke.
1434 if test "X${COLLECT_NAMES+set}" != Xset; then
2636 if test set != "${COLLECT_NAMES+set}"; then
14352637 COLLECT_NAMES=
14362638 export COLLECT_NAMES
14372639 fi
14472649 # is reportedly fixed, but why not run on old versions too?
14482650 sed '$q' "$ltmain" >> "$cfgfile" \
14492651 || (rm -f "$cfgfile"; exit 1)
1450
1451 _LT_PROG_REPLACE_SHELLFNS
14522652
14532653 mv -f "$cfgfile" "$ofile" ||
14542654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14672667 [m4_if([$1], [], [
14682668 PACKAGE='$PACKAGE'
14692669 VERSION='$VERSION'
1470 TIMESTAMP='$TIMESTAMP'
14712670 RM='$RM'
14722671 ofile='$ofile'], [])
14732672 ])dnl /_LT_CONFIG_SAVE_COMMANDS
16642863
16652864 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
16662865 [lt_cv_apple_cc_single_mod=no
1667 if test -z "${LT_MULTI_MODULE}"; then
2866 if test -z "$LT_MULTI_MODULE"; then
16682867 # By default we will add the -single_module flag. You can override
16692868 # by either setting the environment variable LT_MULTI_MODULE
16702869 # non-empty at configure time, or by adding -multi_module to the
16822881 cat conftest.err >&AS_MESSAGE_LOG_FD
16832882 # Otherwise, if the output was created with a 0 exit code from
16842883 # the compiler, it worked.
1685 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
2884 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
16862885 lt_cv_apple_cc_single_mod=yes
16872886 else
16882887 cat conftest.err >&AS_MESSAGE_LOG_FD
17002899 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
17012900 [lt_cv_ld_exported_symbols_list=yes],
17022901 [lt_cv_ld_exported_symbols_list=no])
1703 LDFLAGS="$save_LDFLAGS"
2902 LDFLAGS=$save_LDFLAGS
17042903 ])
17052904
17062905 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
17102909 _LT_EOF
17112910 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
17122911 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1713 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1714 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2912 echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2913 $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
17152914 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
17162915 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
17172916 cat > conftest.c << _LT_EOF
17222921 _lt_result=$?
17232922 if test -s conftest.err && $GREP force_load conftest.err; then
17242923 cat conftest.err >&AS_MESSAGE_LOG_FD
1725 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
2924 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
17262925 lt_cv_ld_force_load=yes
17272926 else
17282927 cat conftest.err >&AS_MESSAGE_LOG_FD
17322931 ])
17332932 case $host_os in
17342933 rhapsody* | darwin1.[[012]])
1735 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2934 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
17362935 darwin1.*)
1737 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2936 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
17382937 darwin*) # darwin 5.x on
17392938 # if running on 10.5 or later, the deployment target defaults
17402939 # to the OS version, if on x86, and 10.4, the deployment
17412940 # target defaults to 10.4. Don't you love it?
17422941 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
17432942 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1744 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1745 10.[[012]]*)
1746 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2943 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
2944 10.[[012]][[,.]]*)
2945 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
17472946 10.*)
1748 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2947 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
17492948 esac
17502949 ;;
17512950 esac
1752 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2951 if test yes = "$lt_cv_apple_cc_single_mod"; then
17532952 _lt_dar_single_mod='$single_module'
17542953 fi
1755 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1756 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2954 if test yes = "$lt_cv_ld_exported_symbols_list"; then
2955 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
17572956 else
1758 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2957 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
17592958 fi
1760 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
2959 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
17612960 _lt_dsymutil='~$DSYMUTIL $lib || :'
17622961 else
17632962 _lt_dsymutil=
17772976 _LT_TAGVAR(hardcode_direct, $1)=no
17782977 _LT_TAGVAR(hardcode_automatic, $1)=yes
17792978 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1780 if test "$lt_cv_ld_force_load" = "yes"; then
1781 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
2979 if test yes = "$lt_cv_ld_force_load"; then
2980 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17822981 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
17832982 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
17842983 else
17852984 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
17862985 fi
17872986 _LT_TAGVAR(link_all_deplibs, $1)=yes
1788 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2987 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
17892988 case $cc_basename in
1790 ifort*) _lt_dar_can_shared=yes ;;
2989 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17912990 *) _lt_dar_can_shared=$GCC ;;
17922991 esac
1793 if test "$_lt_dar_can_shared" = "yes"; then
2992 if test yes = "$_lt_dar_can_shared"; then
17942993 output_verbose_link_cmd=func_echo_all
1795 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1796 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1797 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1798 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
2994 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
2995 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
2996 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
2997 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
17992998 m4_if([$1], [CXX],
1800 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1801 _LT_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${_lt_dsymutil}"
1802 _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
2999 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
3000 _LT_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$_lt_dsymutil"
3001 _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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$_lt_dar_export_syms$_lt_dsymutil"
18033002 fi
18043003 ],[])
18053004 else
18193018 # Allow to override them for all tags through lt_cv_aix_libpath.
18203019 m4_defun([_LT_SYS_MODULE_PATH_AIX],
18213020 [m4_require([_LT_DECL_SED])dnl
1822 if test "${lt_cv_aix_libpath+set}" = set; then
3021 if test set = "${lt_cv_aix_libpath+set}"; then
18233022 aix_libpath=$lt_cv_aix_libpath
18243023 else
18253024 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
18373036 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18383037 fi],[])
18393038 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1840 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
3039 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
18413040 fi
18423041 ])
18433042 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
18573056 # -----------------------
18583057 # Find how we can fake an echo command that does not interpret backslash.
18593058 # In particular, with Autoconf 2.60 or later we add some code to the start
1860 # of the generated configure script which will find a shell with a builtin
1861 # printf (which we can use as an echo command).
3059 # of the generated configure script that will find a shell with a builtin
3060 # printf (that we can use as an echo command).
18623061 m4_defun([_LT_PROG_ECHO_BACKSLASH],
18633062 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18643063 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
18863085 # Invoke $ECHO with all args, space-separated.
18873086 func_echo_all ()
18883087 {
1889 $ECHO "$*"
3088 $ECHO "$*"
18903089 }
18913090
1892 case "$ECHO" in
3091 case $ECHO in
18933092 printf*) AC_MSG_RESULT([printf]) ;;
18943093 print*) AC_MSG_RESULT([print -r]) ;;
18953094 *) AC_MSG_RESULT([cat]) ;;
19153114 AC_DEFUN([_LT_WITH_SYSROOT],
19163115 [AC_MSG_CHECKING([for sysroot])
19173116 AC_ARG_WITH([sysroot],
1918 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1919 (or the compiler's sysroot if not specified).],
3117 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
3118 [Search for dependent libraries within DIR (or the compiler's sysroot
3119 if not specified).])],
19203120 [], [with_sysroot=no])
19213121
19223122 dnl lt_sysroot will always be passed unquoted. We quote it here
19233123 dnl in case the user passed a directory name.
19243124 lt_sysroot=
1925 case ${with_sysroot} in #(
3125 case $with_sysroot in #(
19263126 yes)
1927 if test "$GCC" = yes; then
3127 if test yes = "$GCC"; then
19283128 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
19293129 fi
19303130 ;; #(
19343134 no|'')
19353135 ;; #(
19363136 *)
1937 AC_MSG_RESULT([${with_sysroot}])
3137 AC_MSG_RESULT([$with_sysroot])
19383138 AC_MSG_ERROR([The sysroot must be an absolute path.])
19393139 ;;
19403140 esac
19413141
19423142 AC_MSG_RESULT([${lt_sysroot:-no}])
19433143 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1944 [dependent libraries, and in which our libraries should be installed.])])
3144 [dependent libraries, and where our libraries should be installed.])])
19453145
19463146 # _LT_ENABLE_LOCK
19473147 # ---------------
19493149 [AC_ARG_ENABLE([libtool-lock],
19503150 [AS_HELP_STRING([--disable-libtool-lock],
19513151 [avoid locking (might break parallel builds)])])
1952 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3152 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
19533153
19543154 # Some flags need to be propagated to the compiler or linker for good
19553155 # libtool support.
19563156 case $host in
19573157 ia64-*-hpux*)
1958 # Find out which ABI we are using.
3158 # Find out what ABI is being produced by ac_compile, and set mode
3159 # options accordingly.
19593160 echo 'int i;' > conftest.$ac_ext
19603161 if AC_TRY_EVAL(ac_compile); then
19613162 case `/usr/bin/file conftest.$ac_objext` in
19623163 *ELF-32*)
1963 HPUX_IA64_MODE="32"
3164 HPUX_IA64_MODE=32
19643165 ;;
19653166 *ELF-64*)
1966 HPUX_IA64_MODE="64"
3167 HPUX_IA64_MODE=64
19673168 ;;
19683169 esac
19693170 fi
19703171 rm -rf conftest*
19713172 ;;
19723173 *-*-irix6*)
1973 # Find out which ABI we are using.
3174 # Find out what ABI is being produced by ac_compile, and set linker
3175 # options accordingly.
19743176 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
19753177 if AC_TRY_EVAL(ac_compile); then
1976 if test "$lt_cv_prog_gnu_ld" = yes; then
3178 if test yes = "$lt_cv_prog_gnu_ld"; then
19773179 case `/usr/bin/file conftest.$ac_objext` in
19783180 *32-bit*)
19793181 LD="${LD-ld} -melf32bsmip"
20023204 rm -rf conftest*
20033205 ;;
20043206
2005 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3207 mips64*-*linux*)
3208 # Find out what ABI is being produced by ac_compile, and set linker
3209 # options accordingly.
3210 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
3211 if AC_TRY_EVAL(ac_compile); then
3212 emul=elf
3213 case `/usr/bin/file conftest.$ac_objext` in
3214 *32-bit*)
3215 emul="${emul}32"
3216 ;;
3217 *64-bit*)
3218 emul="${emul}64"
3219 ;;
3220 esac
3221 case `/usr/bin/file conftest.$ac_objext` in
3222 *MSB*)
3223 emul="${emul}btsmip"
3224 ;;
3225 *LSB*)
3226 emul="${emul}ltsmip"
3227 ;;
3228 esac
3229 case `/usr/bin/file conftest.$ac_objext` in
3230 *N32*)
3231 emul="${emul}n32"
3232 ;;
3233 esac
3234 LD="${LD-ld} -m $emul"
3235 fi
3236 rm -rf conftest*
3237 ;;
3238
3239 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
20063240 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2007 # Find out which ABI we are using.
3241 # Find out what ABI is being produced by ac_compile, and set linker
3242 # options accordingly. Note that the listed cases only cover the
3243 # situations where additional linker options are needed (such as when
3244 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
3245 # vice versa); the common cases where no linker options are needed do
3246 # not appear in the list.
20083247 echo 'int i;' > conftest.$ac_ext
20093248 if AC_TRY_EVAL(ac_compile); then
20103249 case `/usr/bin/file conftest.o` in
20143253 LD="${LD-ld} -m elf_i386_fbsd"
20153254 ;;
20163255 x86_64-*linux*)
2017 LD="${LD-ld} -m elf_i386"
3256 case `/usr/bin/file conftest.o` in
3257 *x86-64*)
3258 LD="${LD-ld} -m elf32_x86_64"
3259 ;;
3260 *)
3261 LD="${LD-ld} -m elf_i386"
3262 ;;
3263 esac
20183264 ;;
2019 ppc64-*linux*|powerpc64-*linux*)
3265 powerpc64le-*linux*)
3266 LD="${LD-ld} -m elf32lppclinux"
3267 ;;
3268 powerpc64-*linux*)
20203269 LD="${LD-ld} -m elf32ppclinux"
20213270 ;;
20223271 s390x-*linux*)
20353284 x86_64-*linux*)
20363285 LD="${LD-ld} -m elf_x86_64"
20373286 ;;
2038 ppc*-*linux*|powerpc*-*linux*)
3287 powerpcle-*linux*)
3288 LD="${LD-ld} -m elf64lppc"
3289 ;;
3290 powerpc-*linux*)
20393291 LD="${LD-ld} -m elf64ppc"
20403292 ;;
20413293 s390*-*linux*|s390*-*tpf*)
20533305
20543306 *-*-sco3.2v5*)
20553307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2056 SAVE_CFLAGS="$CFLAGS"
3308 SAVE_CFLAGS=$CFLAGS
20573309 CFLAGS="$CFLAGS -belf"
20583310 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
20593311 [AC_LANG_PUSH(C)
20603312 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
20613313 AC_LANG_POP])
2062 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3314 if test yes != "$lt_cv_cc_needs_belf"; then
20633315 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2064 CFLAGS="$SAVE_CFLAGS"
3316 CFLAGS=$SAVE_CFLAGS
20653317 fi
20663318 ;;
20673319 *-*solaris*)
2068 # Find out which ABI we are using.
3320 # Find out what ABI is being produced by ac_compile, and set linker
3321 # options accordingly.
20693322 echo 'int i;' > conftest.$ac_ext
20703323 if AC_TRY_EVAL(ac_compile); then
20713324 case `/usr/bin/file conftest.o` in
20733326 case $lt_cv_prog_gnu_ld in
20743327 yes*)
20753328 case $host in
2076 i?86-*-solaris*)
3329 i?86-*-solaris*|x86_64-*-solaris*)
20773330 LD="${LD-ld} -m elf_x86_64"
20783331 ;;
20793332 sparc*-*-solaris*)
20823335 esac
20833336 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
20843337 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
2085 LD="${LD-ld}_sol2"
3338 LD=${LD-ld}_sol2
20863339 fi
20873340 ;;
20883341 *)
20983351 ;;
20993352 esac
21003353
2101 need_locks="$enable_libtool_lock"
3354 need_locks=$enable_libtool_lock
21023355 ])# _LT_ENABLE_LOCK
21033356
21043357
21073360 m4_defun([_LT_PROG_AR],
21083361 [AC_CHECK_TOOLS(AR, [ar], false)
21093362 : ${AR=ar}
2110 : ${AR_FLAGS=cru}
3363 : ${AR_FLAGS=cr}
21113364 _LT_DECL([], [AR], [1], [The archiver])
21123365 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
21133366
21173370 [echo conftest.$ac_objext > conftest.lst
21183371 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
21193372 AC_TRY_EVAL([lt_ar_try])
2120 if test "$ac_status" -eq 0; then
3373 if test 0 -eq "$ac_status"; then
21213374 # Ensure the archiver fails upon bogus file names.
21223375 rm -f conftest.$ac_objext libconftest.a
21233376 AC_TRY_EVAL([lt_ar_try])
2124 if test "$ac_status" -ne 0; then
3377 if test 0 -ne "$ac_status"; then
21253378 lt_cv_ar_at_file=@
21263379 fi
21273380 fi
21293382 ])
21303383 ])
21313384
2132 if test "x$lt_cv_ar_at_file" = xno; then
3385 if test no = "$lt_cv_ar_at_file"; then
21333386 archiver_list_spec=
21343387 else
21353388 archiver_list_spec=$lt_cv_ar_at_file
21603413
21613414 if test -n "$RANLIB"; then
21623415 case $host_os in
2163 openbsd*)
3416 bitrig* | openbsd*)
21643417 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
21653418 ;;
21663419 *)
21963449 [$2=no
21973450 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
21983451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2199 lt_compiler_flag="$3"
3452 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
22003453 # Insert the option either (1) after the last *FLAGS variable, or
22013454 # (2) before a word containing "conftest.", or (3) at the end.
22023455 # Note that $ac_compile itself does not contain backslashes and begins
22233476 $RM conftest*
22243477 ])
22253478
2226 if test x"[$]$2" = xyes; then
3479 if test yes = "[$]$2"; then
22273480 m4_if([$5], , :, [$5])
22283481 else
22293482 m4_if([$6], , :, [$6])
22453498 m4_require([_LT_DECL_SED])dnl
22463499 AC_CACHE_CHECK([$1], [$2],
22473500 [$2=no
2248 save_LDFLAGS="$LDFLAGS"
3501 save_LDFLAGS=$LDFLAGS
22493502 LDFLAGS="$LDFLAGS $3"
22503503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22513504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22643517 fi
22653518 fi
22663519 $RM -r conftest*
2267 LDFLAGS="$save_LDFLAGS"
3520 LDFLAGS=$save_LDFLAGS
22683521 ])
22693522
2270 if test x"[$]$2" = xyes; then
3523 if test yes = "[$]$2"; then
22713524 m4_if([$4], , :, [$4])
22723525 else
22733526 m4_if([$5], , :, [$5])
22883541 AC_MSG_CHECKING([the maximum length of command line arguments])
22893542 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
22903543 i=0
2291 teststring="ABCD"
3544 teststring=ABCD
22923545
22933546 case $build_os in
22943547 msdosdjgpp*)
23283581 lt_cv_sys_max_cmd_len=8192;
23293582 ;;
23303583
2331 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3584 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
23323585 # This has been around since 386BSD, at least. Likely further.
23333586 if test -x /sbin/sysctl; then
23343587 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
23783631 ;;
23793632 *)
23803633 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2381 if test -n "$lt_cv_sys_max_cmd_len"; then
3634 if test -n "$lt_cv_sys_max_cmd_len" && \
3635 test undefined != "$lt_cv_sys_max_cmd_len"; then
23823636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
23833637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
23843638 else
23853639 # Make teststring a little bigger before we do anything with it.
23863640 # a 1K string should be a reasonable start.
2387 for i in 1 2 3 4 5 6 7 8 ; do
3641 for i in 1 2 3 4 5 6 7 8; do
23883642 teststring=$teststring$teststring
23893643 done
23903644 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
23913645 # If test is not a shell built-in, we'll probably end up computing a
23923646 # maximum length that is only half of the actual maximum length, but
23933647 # we can't tell.
2394 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3648 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
23953649 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2396 test $i != 17 # 1/2 MB should be enough
3650 test 17 != "$i" # 1/2 MB should be enough
23973651 do
23983652 i=`expr $i + 1`
23993653 teststring=$teststring$teststring
24093663 ;;
24103664 esac
24113665 ])
2412 if test -n $lt_cv_sys_max_cmd_len ; then
3666 if test -n "$lt_cv_sys_max_cmd_len"; then
24133667 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
24143668 else
24153669 AC_MSG_RESULT(none)
24373691 # ----------------------------------------------------------------
24383692 m4_defun([_LT_TRY_DLOPEN_SELF],
24393693 [m4_require([_LT_HEADER_DLFCN])dnl
2440 if test "$cross_compiling" = yes; then :
3694 if test yes = "$cross_compiling"; then :
24413695 [$4]
24423696 else
24433697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24843738 # endif
24853739 #endif
24863740
2487 /* When -fvisbility=hidden is used, assume the code has been annotated
3741 /* When -fvisibility=hidden is used, assume the code has been annotated
24883742 correspondingly for the symbols needed. */
2489 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3743 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
24903744 int fnord () __attribute__((visibility("default")));
24913745 #endif
24923746
25123766 return status;
25133767 }]
25143768 _LT_EOF
2515 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3769 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
25163770 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
25173771 lt_status=$?
25183772 case x$lt_status in
25333787 # ------------------
25343788 AC_DEFUN([LT_SYS_DLOPEN_SELF],
25353789 [m4_require([_LT_HEADER_DLFCN])dnl
2536 if test "x$enable_dlopen" != xyes; then
3790 if test yes != "$enable_dlopen"; then
25373791 enable_dlopen=unknown
25383792 enable_dlopen_self=unknown
25393793 enable_dlopen_self_static=unknown
25433797
25443798 case $host_os in
25453799 beos*)
2546 lt_cv_dlopen="load_add_on"
3800 lt_cv_dlopen=load_add_on
25473801 lt_cv_dlopen_libs=
25483802 lt_cv_dlopen_self=yes
25493803 ;;
25503804
25513805 mingw* | pw32* | cegcc*)
2552 lt_cv_dlopen="LoadLibrary"
3806 lt_cv_dlopen=LoadLibrary
25533807 lt_cv_dlopen_libs=
25543808 ;;
25553809
25563810 cygwin*)
2557 lt_cv_dlopen="dlopen"
3811 lt_cv_dlopen=dlopen
25583812 lt_cv_dlopen_libs=
25593813 ;;
25603814
25613815 darwin*)
2562 # if libdl is installed we need to link against it
3816 # if libdl is installed we need to link against it
25633817 AC_CHECK_LIB([dl], [dlopen],
2564 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2565 lt_cv_dlopen="dyld"
3818 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
3819 lt_cv_dlopen=dyld
25663820 lt_cv_dlopen_libs=
25673821 lt_cv_dlopen_self=yes
25683822 ])
25693823 ;;
25703824
3825 tpf*)
3826 # Don't try to run any link tests for TPF. We know it's impossible
3827 # because TPF is a cross-compiler, and we know how we open DSOs.
3828 lt_cv_dlopen=dlopen
3829 lt_cv_dlopen_libs=
3830 lt_cv_dlopen_self=no
3831 ;;
3832
25713833 *)
25723834 AC_CHECK_FUNC([shl_load],
2573 [lt_cv_dlopen="shl_load"],
3835 [lt_cv_dlopen=shl_load],
25743836 [AC_CHECK_LIB([dld], [shl_load],
2575 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3837 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
25763838 [AC_CHECK_FUNC([dlopen],
2577 [lt_cv_dlopen="dlopen"],
3839 [lt_cv_dlopen=dlopen],
25783840 [AC_CHECK_LIB([dl], [dlopen],
2579 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3841 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
25803842 [AC_CHECK_LIB([svld], [dlopen],
2581 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3843 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
25823844 [AC_CHECK_LIB([dld], [dld_link],
2583 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3845 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
25843846 ])
25853847 ])
25863848 ])
25893851 ;;
25903852 esac
25913853
2592 if test "x$lt_cv_dlopen" != xno; then
3854 if test no = "$lt_cv_dlopen"; then
3855 enable_dlopen=no
3856 else
25933857 enable_dlopen=yes
2594 else
2595 enable_dlopen=no
25963858 fi
25973859
25983860 case $lt_cv_dlopen in
25993861 dlopen)
2600 save_CPPFLAGS="$CPPFLAGS"
2601 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2602
2603 save_LDFLAGS="$LDFLAGS"
3862 save_CPPFLAGS=$CPPFLAGS
3863 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3864
3865 save_LDFLAGS=$LDFLAGS
26043866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
26053867
2606 save_LIBS="$LIBS"
3868 save_LIBS=$LIBS
26073869 LIBS="$lt_cv_dlopen_libs $LIBS"
26083870
26093871 AC_CACHE_CHECK([whether a program can dlopen itself],
26133875 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
26143876 ])
26153877
2616 if test "x$lt_cv_dlopen_self" = xyes; then
3878 if test yes = "$lt_cv_dlopen_self"; then
26173879 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
26183880 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
26193881 lt_cv_dlopen_self_static, [dnl
26233885 ])
26243886 fi
26253887
2626 CPPFLAGS="$save_CPPFLAGS"
2627 LDFLAGS="$save_LDFLAGS"
2628 LIBS="$save_LIBS"
3888 CPPFLAGS=$save_CPPFLAGS
3889 LDFLAGS=$save_LDFLAGS
3890 LIBS=$save_LIBS
26293891 ;;
26303892 esac
26313893
27173979 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
27183980 _LT_COMPILER_C_O([$1])
27193981
2720 hard_links="nottested"
2721 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3982 hard_links=nottested
3983 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
27223984 # do not overwrite the value of need_locks provided by the user
27233985 AC_MSG_CHECKING([if we can lock with hard links])
27243986 hard_links=yes
27283990 ln conftest.a conftest.b 2>&5 || hard_links=no
27293991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
27303992 AC_MSG_RESULT([$hard_links])
2731 if test "$hard_links" = no; then
2732 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3993 if test no = "$hard_links"; then
3994 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
27333995 need_locks=warn
27343996 fi
27353997 else
27564018 _LT_DECL([], [objdir], [0],
27574019 [The name of the directory that contains temporary libtool files])dnl
27584020 m4_pattern_allow([LT_OBJDIR])dnl
2759 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2760 [Define to the sub-directory in which libtool stores uninstalled libraries.])
4021 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
4022 [Define to the sub-directory where libtool stores uninstalled libraries.])
27614023 ])# _LT_CHECK_OBJDIR
27624024
27634025
27694031 _LT_TAGVAR(hardcode_action, $1)=
27704032 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
27714033 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2772 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
4034 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
27734035
27744036 # We can hardcode non-existent directories.
2775 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
4037 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
27764038 # If the only mechanism to avoid hardcoding is shlibpath_var, we
27774039 # have to relink, otherwise we might link with an installed library
27784040 # when we should be linking with a yet-to-be-installed one
2779 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2780 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
4041 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
4042 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
27814043 # Linking always hardcodes the temporary library directory.
27824044 _LT_TAGVAR(hardcode_action, $1)=relink
27834045 else
27914053 fi
27924054 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
27934055
2794 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2795 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
4056 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
4057 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
27964058 # Fast installation is not supported
27974059 enable_fast_install=no
2798 elif test "$shlibpath_overrides_runpath" = yes ||
2799 test "$enable_shared" = no; then
4060 elif test yes = "$shlibpath_overrides_runpath" ||
4061 test no = "$enable_shared"; then
28004062 # Fast installation is not necessary
28014063 enable_fast_install=needless
28024064 fi
28204082 # FIXME - insert some real tests, host_os isn't really good enough
28214083 case $host_os in
28224084 darwin*)
2823 if test -n "$STRIP" ; then
4085 if test -n "$STRIP"; then
28244086 striplib="$STRIP -x"
28254087 old_striplib="$STRIP -S"
28264088 AC_MSG_RESULT([yes])
28384100 ])# _LT_CMD_STRIPLIB
28394101
28404102
4103 # _LT_PREPARE_MUNGE_PATH_LIST
4104 # ---------------------------
4105 # Make sure func_munge_path_list() is defined correctly.
4106 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
4107 [[# func_munge_path_list VARIABLE PATH
4108 # -----------------------------------
4109 # VARIABLE is name of variable containing _space_ separated list of
4110 # directories to be munged by the contents of PATH, which is string
4111 # having a format:
4112 # "DIR[:DIR]:"
4113 # string "DIR[ DIR]" will be prepended to VARIABLE
4114 # ":DIR[:DIR]"
4115 # string "DIR[ DIR]" will be appended to VARIABLE
4116 # "DIRP[:DIRP]::[DIRA:]DIRA"
4117 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
4118 # "DIRA[ DIRA]" will be appended to VARIABLE
4119 # "DIR[:DIR]"
4120 # VARIABLE will be replaced by "DIR[ DIR]"
4121 func_munge_path_list ()
4122 {
4123 case x@S|@2 in
4124 x)
4125 ;;
4126 *:)
4127 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
4128 ;;
4129 x:*)
4130 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
4131 ;;
4132 *::*)
4133 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
4134 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
4135 ;;
4136 *)
4137 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
4138 ;;
4139 esac
4140 }
4141 ]])# _LT_PREPARE_PATH_LIST
4142
4143
28414144 # _LT_SYS_DYNAMIC_LINKER([TAG])
28424145 # -----------------------------
28434146 # PORTME Fill in your ld.so characteristics
28484151 m4_require([_LT_DECL_OBJDUMP])dnl
28494152 m4_require([_LT_DECL_SED])dnl
28504153 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
4154 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
28514155 AC_MSG_CHECKING([dynamic linker characteristics])
28524156 m4_if([$1],
28534157 [], [
2854 if test "$GCC" = yes; then
4158 if test yes = "$GCC"; then
28554159 case $host_os in
2856 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2857 *) lt_awk_arg="/^libraries:/" ;;
4160 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
4161 *) lt_awk_arg='/^libraries:/' ;;
28584162 esac
28594163 case $host_os in
2860 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2861 *) lt_sed_strip_eq="s,=/,/,g" ;;
4164 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
4165 *) lt_sed_strip_eq='s|=/|/|g' ;;
28624166 esac
28634167 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
28644168 case $lt_search_path_spec in
28744178 ;;
28754179 esac
28764180 # Ok, now we have the path, separated by spaces, we can step through it
2877 # and add multilib dir if necessary.
4181 # and add multilib dir if necessary...
28784182 lt_tmp_lt_search_path_spec=
2879 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4183 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4184 # ...but if some path component already ends with the multilib dir we assume
4185 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
4186 case "$lt_multi_os_dir; $lt_search_path_spec " in
4187 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
4188 lt_multi_os_dir=
4189 ;;
4190 esac
28804191 for lt_sys_path in $lt_search_path_spec; do
2881 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2882 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2883 else
4192 if test -d "$lt_sys_path$lt_multi_os_dir"; then
4193 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
4194 elif test -n "$lt_multi_os_dir"; then
28844195 test -d "$lt_sys_path" && \
28854196 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
28864197 fi
28874198 done
28884199 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2889 BEGIN {RS=" "; FS="/|\n";} {
2890 lt_foo="";
2891 lt_count=0;
4200 BEGIN {RS = " "; FS = "/|\n";} {
4201 lt_foo = "";
4202 lt_count = 0;
28924203 for (lt_i = NF; lt_i > 0; lt_i--) {
28934204 if ($lt_i != "" && $lt_i != ".") {
28944205 if ($lt_i == "..") {
28954206 lt_count++;
28964207 } else {
28974208 if (lt_count == 0) {
2898 lt_foo="/" $lt_i lt_foo;
4209 lt_foo = "/" $lt_i lt_foo;
28994210 } else {
29004211 lt_count--;
29014212 }
29094220 # for these hosts.
29104221 case $host_os in
29114222 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2912 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
4223 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
29134224 esac
29144225 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
29154226 else
29184229 library_names_spec=
29194230 libname_spec='lib$name'
29204231 soname_spec=
2921 shrext_cmds=".so"
4232 shrext_cmds=.so
29224233 postinstall_cmds=
29234234 postuninstall_cmds=
29244235 finish_cmds=
29354246 # flags to be left without arguments
29364247 need_version=unknown
29374248
4249 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
4250 [User-defined run-time library search path.])
4251
29384252 case $host_os in
29394253 aix3*)
29404254 version_type=linux # correct to gnu/linux during the next big refactor
2941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4255 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
29424256 shlibpath_var=LIBPATH
29434257
29444258 # AIX 3 has no versioning support, so we append a major version to the name.
2945 soname_spec='${libname}${release}${shared_ext}$major'
4259 soname_spec='$libname$release$shared_ext$major'
29464260 ;;
29474261
29484262 aix[[4-9]]*)
29504264 need_lib_prefix=no
29514265 need_version=no
29524266 hardcode_into_libs=yes
2953 if test "$host_cpu" = ia64; then
4267 if test ia64 = "$host_cpu"; then
29544268 # AIX 5 supports IA64
2955 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4269 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
29564270 shlibpath_var=LD_LIBRARY_PATH
29574271 else
29584272 # With GCC up to 2.95.x, collect2 would create an import file
29594273 # for dependence libraries. The import file would start with
2960 # the line `#! .'. This would cause the generated library to
2961 # depend on `.', always an invalid library. This was fixed in
4274 # the line '#! .'. This would cause the generated library to
4275 # depend on '.', always an invalid library. This was fixed in
29624276 # development snapshots of GCC prior to 3.0.
29634277 case $host_os in
29644278 aix4 | aix4.[[01]] | aix4.[[01]].*)
29654279 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29664280 echo ' yes '
2967 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
4281 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
29684282 :
29694283 else
29704284 can_build_shared=no
29714285 fi
29724286 ;;
29734287 esac
2974 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4288 # Using Import Files as archive members, it is possible to support
4289 # filename-based versioning of shared library archives on AIX. While
4290 # this would work for both with and without runtime linking, it will
4291 # prevent static linking of such archives. So we do filename-based
4292 # shared library versioning with .so extension only, which is used
4293 # when both runtime linking and shared linking is enabled.
4294 # Unfortunately, runtime linking may impact performance, so we do
4295 # not want this to be the default eventually. Also, we use the
4296 # versioned .so libs for executables only if there is the -brtl
4297 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
4298 # To allow for filename-based versioning support, we need to create
4299 # libNAME.so.V as an archive file, containing:
4300 # *) an Import File, referring to the versioned filename of the
4301 # archive as well as the shared archive member, telling the
4302 # bitwidth (32 or 64) of that shared object, and providing the
4303 # list of exported symbols of that shared object, eventually
4304 # decorated with the 'weak' keyword
4305 # *) the shared object with the F_LOADONLY flag set, to really avoid
4306 # it being seen by the linker.
4307 # At run time we better use the real file rather than another symlink,
4308 # but for link time we create the symlink libNAME.so -> libNAME.so.V
4309
4310 case $with_aix_soname,$aix_use_runtimelinking in
4311 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
29754312 # soname into executable. Probably we can add versioning support to
29764313 # collect2, so additional links can be useful in future.
2977 if test "$aix_use_runtimelinking" = yes; then
4314 aix,yes) # traditional libtool
4315 dynamic_linker='AIX unversionable lib.so'
29784316 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29794317 # instead of lib<name>.a to let people know that these are not
29804318 # typical AIX shared libraries.
2981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2982 else
4319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4320 ;;
4321 aix,no) # traditional AIX only
4322 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
29834323 # We preserve .a as extension for shared libraries through AIX4.2
29844324 # and later when we are not doing run time linking.
2985 library_names_spec='${libname}${release}.a $libname.a'
2986 soname_spec='${libname}${release}${shared_ext}$major'
2987 fi
4325 library_names_spec='$libname$release.a $libname.a'
4326 soname_spec='$libname$release$shared_ext$major'
4327 ;;
4328 svr4,*) # full svr4 only
4329 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
4330 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
4331 # We do not specify a path in Import Files, so LIBPATH fires.
4332 shlibpath_overrides_runpath=yes
4333 ;;
4334 *,yes) # both, prefer svr4
4335 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
4336 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
4337 # unpreferred sharedlib libNAME.a needs extra handling
4338 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
4339 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
4340 # We do not specify a path in Import Files, so LIBPATH fires.
4341 shlibpath_overrides_runpath=yes
4342 ;;
4343 *,no) # both, prefer aix
4344 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
4345 library_names_spec='$libname$release.a $libname.a'
4346 soname_spec='$libname$release$shared_ext$major'
4347 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
4348 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
4349 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
4350 ;;
4351 esac
29884352 shlibpath_var=LIBPATH
29894353 fi
29904354 ;;
29944358 powerpc)
29954359 # Since July 2007 AmigaOS4 officially supports .so libraries.
29964360 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
29984362 ;;
29994363 m68k)
30004364 library_names_spec='$libname.ixlibrary $libname.a'
30014365 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3002 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
4366 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
30034367 ;;
30044368 esac
30054369 ;;
30064370
30074371 beos*)
3008 library_names_spec='${libname}${shared_ext}'
4372 library_names_spec='$libname$shared_ext'
30094373 dynamic_linker="$host_os ld.so"
30104374 shlibpath_var=LIBRARY_PATH
30114375 ;;
30134377 bsdi[[45]]*)
30144378 version_type=linux # correct to gnu/linux during the next big refactor
30154379 need_version=no
3016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3017 soname_spec='${libname}${release}${shared_ext}$major'
4380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4381 soname_spec='$libname$release$shared_ext$major'
30184382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
30194383 shlibpath_var=LD_LIBRARY_PATH
30204384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
30264390
30274391 cygwin* | mingw* | pw32* | cegcc*)
30284392 version_type=windows
3029 shrext_cmds=".dll"
4393 shrext_cmds=.dll
30304394 need_version=no
30314395 need_lib_prefix=no
30324396
30354399 # gcc
30364400 library_names_spec='$libname.dll.a'
30374401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3038 postinstall_cmds='base_file=`basename \${file}`~
3039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4402 postinstall_cmds='base_file=`basename \$file`~
4403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
30404404 dldir=$destdir/`dirname \$dlpath`~
30414405 test -d \$dldir || mkdir -p \$dldir~
30424406 $install_prog $dir/$dlname \$dldir/$dlname~
30524416 case $host_os in
30534417 cygwin*)
30544418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3055 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4419 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
30564420 m4_if([$1], [],[
30574421 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
30584422 ;;
30594423 mingw* | cegcc*)
30604424 # MinGW DLLs use traditional 'lib' prefix
3061 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4425 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
30624426 ;;
30634427 pw32*)
30644428 # pw32 DLLs use 'pw' prefix rather than 'lib'
3065 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4429 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
30664430 ;;
30674431 esac
30684432 dynamic_linker='Win32 ld.exe'
30714435 *,cl*)
30724436 # Native MSVC
30734437 libname_spec='$name'
3074 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3075 library_names_spec='${libname}.dll.lib'
4438 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
4439 library_names_spec='$libname.dll.lib'
30764440
30774441 case $build_os in
30784442 mingw*)
30994463 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
31004464 ;;
31014465 *)
3102 sys_lib_search_path_spec="$LIB"
4466 sys_lib_search_path_spec=$LIB
31034467 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
31044468 # It is most probably a Windows format PATH.
31054469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
31124476 esac
31134477
31144478 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3115 postinstall_cmds='base_file=`basename \${file}`~
3116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4479 postinstall_cmds='base_file=`basename \$file`~
4480 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
31174481 dldir=$destdir/`dirname \$dlpath`~
31184482 test -d \$dldir || mkdir -p \$dldir~
31194483 $install_prog $dir/$dlname \$dldir/$dlname'
31264490
31274491 *)
31284492 # Assume MSVC wrapper
3129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4493 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
31304494 dynamic_linker='Win32 ld.exe'
31314495 ;;
31324496 esac
31394503 version_type=darwin
31404504 need_lib_prefix=no
31414505 need_version=no
3142 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3143 soname_spec='${libname}${release}${major}$shared_ext'
4506 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
4507 soname_spec='$libname$release$major$shared_ext'
31444508 shlibpath_overrides_runpath=yes
31454509 shlibpath_var=DYLD_LIBRARY_PATH
31464510 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
31534517 version_type=linux # correct to gnu/linux during the next big refactor
31544518 need_lib_prefix=no
31554519 need_version=no
3156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3157 soname_spec='${libname}${release}${shared_ext}$major'
4520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4521 soname_spec='$libname$release$shared_ext$major'
31584522 shlibpath_var=LD_LIBRARY_PATH
31594523 ;;
31604524
31724536 version_type=freebsd-$objformat
31734537 case $version_type in
31744538 freebsd-elf*)
3175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4540 soname_spec='$libname$release$shared_ext$major'
31764541 need_version=no
31774542 need_lib_prefix=no
31784543 ;;
31794544 freebsd-*)
3180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4545 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
31814546 need_version=yes
31824547 ;;
31834548 esac
32024567 esac
32034568 ;;
32044569
3205 gnu*)
3206 version_type=linux # correct to gnu/linux during the next big refactor
3207 need_lib_prefix=no
3208 need_version=no
3209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3210 soname_spec='${libname}${release}${shared_ext}$major'
3211 shlibpath_var=LD_LIBRARY_PATH
3212 shlibpath_overrides_runpath=no
3213 hardcode_into_libs=yes
3214 ;;
3215
32164570 haiku*)
32174571 version_type=linux # correct to gnu/linux during the next big refactor
32184572 need_lib_prefix=no
32194573 need_version=no
32204574 dynamic_linker="$host_os runtime_loader"
3221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3222 soname_spec='${libname}${release}${shared_ext}$major'
4575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4576 soname_spec='$libname$release$shared_ext$major'
32234577 shlibpath_var=LIBRARY_PATH
3224 shlibpath_overrides_runpath=yes
4578 shlibpath_overrides_runpath=no
32254579 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
32264580 hardcode_into_libs=yes
32274581 ;;
32394593 dynamic_linker="$host_os dld.so"
32404594 shlibpath_var=LD_LIBRARY_PATH
32414595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3243 soname_spec='${libname}${release}${shared_ext}$major'
3244 if test "X$HPUX_IA64_MODE" = X32; then
4596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4597 soname_spec='$libname$release$shared_ext$major'
4598 if test 32 = "$HPUX_IA64_MODE"; then
32454599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4600 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
32464601 else
32474602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4603 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
32484604 fi
3249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
32504605 ;;
32514606 hppa*64*)
32524607 shrext_cmds='.sl'
32544609 dynamic_linker="$host_os dld.sl"
32554610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
32564611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3258 soname_spec='${libname}${release}${shared_ext}$major'
4612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4613 soname_spec='$libname$release$shared_ext$major'
32594614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
32604615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
32614616 ;;
32644619 dynamic_linker="$host_os dld.sl"
32654620 shlibpath_var=SHLIB_PATH
32664621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3268 soname_spec='${libname}${release}${shared_ext}$major'
4622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4623 soname_spec='$libname$release$shared_ext$major'
32694624 ;;
32704625 esac
32714626 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
32784633 version_type=linux # correct to gnu/linux during the next big refactor
32794634 need_lib_prefix=no
32804635 need_version=no
3281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3282 soname_spec='${libname}${release}${shared_ext}$major'
4636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4637 soname_spec='$libname$release$shared_ext$major'
32834638 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
32844639 shlibpath_var=LD_LIBRARY_PATH
32854640 shlibpath_overrides_runpath=no
32904645 case $host_os in
32914646 nonstopux*) version_type=nonstopux ;;
32924647 *)
3293 if test "$lt_cv_prog_gnu_ld" = yes; then
4648 if test yes = "$lt_cv_prog_gnu_ld"; then
32944649 version_type=linux # correct to gnu/linux during the next big refactor
32954650 else
32964651 version_type=irix
32984653 esac
32994654 need_lib_prefix=no
33004655 need_version=no
3301 soname_spec='${libname}${release}${shared_ext}$major'
3302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4656 soname_spec='$libname$release$shared_ext$major'
4657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
33034658 case $host_os in
33044659 irix5* | nonstopux*)
33054660 libsuff= shlibsuff=
33184673 esac
33194674 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
33204675 shlibpath_overrides_runpath=no
3321 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3322 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4676 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
4677 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
33234678 hardcode_into_libs=yes
33244679 ;;
33254680
33284683 dynamic_linker=no
33294684 ;;
33304685
4686 linux*android*)
4687 version_type=none # Android doesn't support versioned libraries.
4688 need_lib_prefix=no
4689 need_version=no
4690 library_names_spec='$libname$release$shared_ext'
4691 soname_spec='$libname$release$shared_ext'
4692 finish_cmds=
4693 shlibpath_var=LD_LIBRARY_PATH
4694 shlibpath_overrides_runpath=yes
4695
4696 # This implies no fast_install, which is unacceptable.
4697 # Some rework will be needed to allow for fast_install
4698 # before this can be enabled.
4699 hardcode_into_libs=yes
4700
4701 dynamic_linker='Android linker'
4702 # Don't embed -rpath directories since the linker doesn't support them.
4703 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4704 ;;
4705
33314706 # This must be glibc/ELF.
3332 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4707 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
33334708 version_type=linux # correct to gnu/linux during the next big refactor
33344709 need_lib_prefix=no
33354710 need_version=no
3336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3337 soname_spec='${libname}${release}${shared_ext}$major'
4711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4712 soname_spec='$libname$release$shared_ext$major'
33384713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
33394714 shlibpath_var=LD_LIBRARY_PATH
33404715 shlibpath_overrides_runpath=no
33594734 # before this can be enabled.
33604735 hardcode_into_libs=yes
33614736
3362 # Append ld.so.conf contents to the search path
4737 # Ideally, we could use ldconfig to report *all* directores which are
4738 # searched for libraries, however this is still not possible. Aside from not
4739 # being certain /sbin/ldconfig is available, command
4740 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
4741 # even though it is searched at run-time. Try to do the best guess by
4742 # appending ld.so.conf contents (and includes) to the search path.
33634743 if test -f /etc/ld.so.conf; then
33644744 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
33654745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
33744754 dynamic_linker='GNU/Linux ld.so'
33754755 ;;
33764756
4757 netbsdelf*-gnu)
4758 version_type=linux
4759 need_lib_prefix=no
4760 need_version=no
4761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4762 soname_spec='${libname}${release}${shared_ext}$major'
4763 shlibpath_var=LD_LIBRARY_PATH
4764 shlibpath_overrides_runpath=no
4765 hardcode_into_libs=yes
4766 dynamic_linker='NetBSD ld.elf_so'
4767 ;;
4768
33774769 netbsd*)
33784770 version_type=sunos
33794771 need_lib_prefix=no
33804772 need_version=no
33814773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4774 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
33834775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
33844776 dynamic_linker='NetBSD (a.out) ld.so'
33854777 else
3386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3387 soname_spec='${libname}${release}${shared_ext}$major'
4778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4779 soname_spec='$libname$release$shared_ext$major'
33884780 dynamic_linker='NetBSD ld.elf_so'
33894781 fi
33904782 shlibpath_var=LD_LIBRARY_PATH
33944786
33954787 newsos6)
33964788 version_type=linux # correct to gnu/linux during the next big refactor
3397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
33984790 shlibpath_var=LD_LIBRARY_PATH
33994791 shlibpath_overrides_runpath=yes
34004792 ;;
34034795 version_type=qnx
34044796 need_lib_prefix=no
34054797 need_version=no
3406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3407 soname_spec='${libname}${release}${shared_ext}$major'
4798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4799 soname_spec='$libname$release$shared_ext$major'
34084800 shlibpath_var=LD_LIBRARY_PATH
34094801 shlibpath_overrides_runpath=no
34104802 hardcode_into_libs=yes
34114803 dynamic_linker='ldqnx.so'
34124804 ;;
34134805
3414 openbsd*)
4806 openbsd* | bitrig*)
34154807 version_type=sunos
3416 sys_lib_dlsearch_path_spec="/usr/lib"
4808 sys_lib_dlsearch_path_spec=/usr/lib
34174809 need_lib_prefix=no
3418 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3419 case $host_os in
3420 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3421 *) need_version=no ;;
3422 esac
3423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4811 need_version=no
4812 else
4813 need_version=yes
4814 fi
4815 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
34244816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
34254817 shlibpath_var=LD_LIBRARY_PATH
3426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3427 case $host_os in
3428 openbsd2.[[89]] | openbsd2.[[89]].*)
3429 shlibpath_overrides_runpath=no
3430 ;;
3431 *)
3432 shlibpath_overrides_runpath=yes
3433 ;;
3434 esac
3435 else
3436 shlibpath_overrides_runpath=yes
3437 fi
4818 shlibpath_overrides_runpath=yes
34384819 ;;
34394820
34404821 os2*)
34414822 libname_spec='$name'
3442 shrext_cmds=".dll"
4823 version_type=windows
4824 shrext_cmds=.dll
4825 need_version=no
34434826 need_lib_prefix=no
3444 library_names_spec='$libname${shared_ext} $libname.a'
4827 # OS/2 can only load a DLL with a base name of 8 characters or less.
4828 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
4829 v=$($ECHO $release$versuffix | tr -d .-);
4830 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
4831 $ECHO $n$v`$shared_ext'
4832 library_names_spec='${libname}_dll.$libext'
34454833 dynamic_linker='OS/2 ld.exe'
3446 shlibpath_var=LIBPATH
4834 shlibpath_var=BEGINLIBPATH
4835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4837 postinstall_cmds='base_file=`basename \$file`~
4838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
4839 dldir=$destdir/`dirname \$dlpath`~
4840 test -d \$dldir || mkdir -p \$dldir~
4841 $install_prog $dir/$dlname \$dldir/$dlname~
4842 chmod a+x \$dldir/$dlname~
4843 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4844 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4845 fi'
4846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
4847 dlpath=$dir/\$dldll~
4848 $RM \$dlpath'
34474849 ;;
34484850
34494851 osf3* | osf4* | osf5*)
34504852 version_type=osf
34514853 need_lib_prefix=no
34524854 need_version=no
3453 soname_spec='${libname}${release}${shared_ext}$major'
3454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4855 soname_spec='$libname$release$shared_ext$major'
4856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
34554857 shlibpath_var=LD_LIBRARY_PATH
34564858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
34584860 ;;
34594861
34604862 rdos*)
34654867 version_type=linux # correct to gnu/linux during the next big refactor
34664868 need_lib_prefix=no
34674869 need_version=no
3468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3469 soname_spec='${libname}${release}${shared_ext}$major'
4870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4871 soname_spec='$libname$release$shared_ext$major'
34704872 shlibpath_var=LD_LIBRARY_PATH
34714873 shlibpath_overrides_runpath=yes
34724874 hardcode_into_libs=yes
34764878
34774879 sunos4*)
34784880 version_type=sunos
3479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
34804882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
34814883 shlibpath_var=LD_LIBRARY_PATH
34824884 shlibpath_overrides_runpath=yes
3483 if test "$with_gnu_ld" = yes; then
4885 if test yes = "$with_gnu_ld"; then
34844886 need_lib_prefix=no
34854887 fi
34864888 need_version=yes
34884890
34894891 sysv4 | sysv4.3*)
34904892 version_type=linux # correct to gnu/linux during the next big refactor
3491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3492 soname_spec='${libname}${release}${shared_ext}$major'
4893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4894 soname_spec='$libname$release$shared_ext$major'
34934895 shlibpath_var=LD_LIBRARY_PATH
34944896 case $host_vendor in
34954897 sni)
35104912 ;;
35114913
35124914 sysv4*MP*)
3513 if test -d /usr/nec ;then
4915 if test -d /usr/nec; then
35144916 version_type=linux # correct to gnu/linux during the next big refactor
3515 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3516 soname_spec='$libname${shared_ext}.$major'
4917 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
4918 soname_spec='$libname$shared_ext.$major'
35174919 shlibpath_var=LD_LIBRARY_PATH
35184920 fi
35194921 ;;
35204922
35214923 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3522 version_type=freebsd-elf
4924 version_type=sco
35234925 need_lib_prefix=no
35244926 need_version=no
3525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3526 soname_spec='${libname}${release}${shared_ext}$major'
4927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
4928 soname_spec='$libname$release$shared_ext$major'
35274929 shlibpath_var=LD_LIBRARY_PATH
35284930 shlibpath_overrides_runpath=yes
35294931 hardcode_into_libs=yes
3530 if test "$with_gnu_ld" = yes; then
4932 if test yes = "$with_gnu_ld"; then
35314933 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
35324934 else
35334935 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
35454947 version_type=linux # correct to gnu/linux during the next big refactor
35464948 need_lib_prefix=no
35474949 need_version=no
3548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
35494951 shlibpath_var=LD_LIBRARY_PATH
35504952 shlibpath_overrides_runpath=no
35514953 hardcode_into_libs=yes
35534955
35544956 uts4*)
35554957 version_type=linux # correct to gnu/linux during the next big refactor
3556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3557 soname_spec='${libname}${release}${shared_ext}$major'
4958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4959 soname_spec='$libname$release$shared_ext$major'
35584960 shlibpath_var=LD_LIBRARY_PATH
35594961 ;;
35604962
35634965 ;;
35644966 esac
35654967 AC_MSG_RESULT([$dynamic_linker])
3566 test "$dynamic_linker" = no && can_build_shared=no
4968 test no = "$dynamic_linker" && can_build_shared=no
35674969
35684970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3569 if test "$GCC" = yes; then
4971 if test yes = "$GCC"; then
35704972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
35714973 fi
35724974
3573 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3574 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
4975 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
4976 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
35754977 fi
3576 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3577 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
4978
4979 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
4980 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
35784981 fi
4982
4983 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
4984 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
4985
4986 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
4987 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
4988
4989 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
4990 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
35794991
35804992 _LT_DECL([], [variables_saved_for_relink], [1],
35814993 [Variables whose values should be saved in libtool wrapper scripts and
36095021 [Whether we should hardcode library paths into libraries])
36105022 _LT_DECL([], [sys_lib_search_path_spec], [2],
36115023 [Compile-time system search path for libraries])
3612 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3613 [Run-time system search path for libraries])
5024 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
5025 [Detected run-time system search path for libraries])
5026 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
5027 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
36145028 ])# _LT_SYS_DYNAMIC_LINKER
36155029
36165030
36175031 # _LT_PATH_TOOL_PREFIX(TOOL)
36185032 # --------------------------
3619 # find a file program which can recognize shared library
5033 # find a file program that can recognize shared library
36205034 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
36215035 [m4_require([_LT_DECL_EGREP])dnl
36225036 AC_MSG_CHECKING([for $1])
36235037 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
36245038 [case $MAGIC_CMD in
36255039 [[\\/*] | ?:[\\/]*])
3626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5040 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
36275041 ;;
36285042 *)
3629 lt_save_MAGIC_CMD="$MAGIC_CMD"
3630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5043 lt_save_MAGIC_CMD=$MAGIC_CMD
5044 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
36315045 dnl $ac_dummy forces splitting on constant user-supplied paths.
36325046 dnl POSIX.2 word splitting is done only on the output of word expansions,
36335047 dnl not every word. This closes a longstanding sh security hole.
36345048 ac_dummy="m4_if([$2], , $PATH, [$2])"
36355049 for ac_dir in $ac_dummy; do
3636 IFS="$lt_save_ifs"
5050 IFS=$lt_save_ifs
36375051 test -z "$ac_dir" && ac_dir=.
3638 if test -f $ac_dir/$1; then
3639 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
5052 if test -f "$ac_dir/$1"; then
5053 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
36405054 if test -n "$file_magic_test_file"; then
36415055 case $deplibs_check_method in
36425056 "file_magic "*)
36435057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5058 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
36455059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
36465060 $EGREP "$file_magic_regex" > /dev/null; then
36475061 :
36645078 break
36655079 fi
36665080 done
3667 IFS="$lt_save_ifs"
3668 MAGIC_CMD="$lt_save_MAGIC_CMD"
5081 IFS=$lt_save_ifs
5082 MAGIC_CMD=$lt_save_MAGIC_CMD
36695083 ;;
36705084 esac])
3671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
36725086 if test -n "$MAGIC_CMD"; then
36735087 AC_MSG_RESULT($MAGIC_CMD)
36745088 else
36865100
36875101 # _LT_PATH_MAGIC
36885102 # --------------
3689 # find a file program which can recognize a shared library
5103 # find a file program that can recognize a shared library
36905104 m4_defun([_LT_PATH_MAGIC],
36915105 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
36925106 if test -z "$lt_cv_path_MAGIC_CMD"; then
37135127 AC_ARG_WITH([gnu-ld],
37145128 [AS_HELP_STRING([--with-gnu-ld],
37155129 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3716 [test "$withval" = no || with_gnu_ld=yes],
5130 [test no = "$withval" || with_gnu_ld=yes],
37175131 [with_gnu_ld=no])dnl
37185132
37195133 ac_prog=ld
3720 if test "$GCC" = yes; then
5134 if test yes = "$GCC"; then
37215135 # Check if gcc -print-prog-name=ld gives a path.
37225136 AC_MSG_CHECKING([for ld used by $CC])
37235137 case $host in
37245138 *-*-mingw*)
3725 # gcc leaves a trailing carriage return which upsets mingw
5139 # gcc leaves a trailing carriage return, which upsets mingw
37265140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
37275141 *)
37285142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
37365150 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
37375151 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
37385152 done
3739 test -z "$LD" && LD="$ac_prog"
5153 test -z "$LD" && LD=$ac_prog
37405154 ;;
37415155 "")
37425156 # If it fails, then pretend we aren't using GCC.
37475161 with_gnu_ld=unknown
37485162 ;;
37495163 esac
3750 elif test "$with_gnu_ld" = yes; then
5164 elif test yes = "$with_gnu_ld"; then
37515165 AC_MSG_CHECKING([for GNU ld])
37525166 else
37535167 AC_MSG_CHECKING([for non-GNU ld])
37545168 fi
37555169 AC_CACHE_VAL(lt_cv_path_LD,
37565170 [if test -z "$LD"; then
3757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5171 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
37585172 for ac_dir in $PATH; do
3759 IFS="$lt_save_ifs"
5173 IFS=$lt_save_ifs
37605174 test -z "$ac_dir" && ac_dir=.
37615175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3762 lt_cv_path_LD="$ac_dir/$ac_prog"
5176 lt_cv_path_LD=$ac_dir/$ac_prog
37635177 # Check to see if the program is GNU ld. I'd rather use --version,
37645178 # but apparently some variants of GNU ld only accept -v.
37655179 # Break only if it was the GNU/non-GNU ld that we prefer.
37665180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
37675181 *GNU* | *'with BFD'*)
3768 test "$with_gnu_ld" != no && break
5182 test no != "$with_gnu_ld" && break
37695183 ;;
37705184 *)
3771 test "$with_gnu_ld" != yes && break
5185 test yes != "$with_gnu_ld" && break
37725186 ;;
37735187 esac
37745188 fi
37755189 done
3776 IFS="$lt_save_ifs"
5190 IFS=$lt_save_ifs
37775191 else
3778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5192 lt_cv_path_LD=$LD # Let the user override the test with a path.
37795193 fi])
3780 LD="$lt_cv_path_LD"
5194 LD=$lt_cv_path_LD
37815195 if test -n "$LD"; then
37825196 AC_MSG_RESULT($LD)
37835197 else
38315245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
38325246 case $host_os in
38335247 cygwin* | mingw* | pw32* | cegcc*)
3834 if test "$GCC" != yes; then
5248 if test yes != "$GCC"; then
38355249 reload_cmds=false
38365250 fi
38375251 ;;
38385252 darwin*)
3839 if test "$GCC" = yes; then
3840 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5253 if test yes = "$GCC"; then
5254 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
38415255 else
38425256 reload_cmds='$LD$reload_flag -o $output$reload_objs'
38435257 fi
38465260 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
38475261 _LT_TAGDECL([], [reload_cmds], [2])dnl
38485262 ])# _LT_CMD_RELOAD
5263
5264
5265 # _LT_PATH_DD
5266 # -----------
5267 # find a working dd
5268 m4_defun([_LT_PATH_DD],
5269 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
5270 [printf 0123456789abcdef0123456789abcdef >conftest.i
5271 cat conftest.i conftest.i >conftest2.i
5272 : ${lt_DD:=$DD}
5273 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
5274 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5275 cmp -s conftest.i conftest.out \
5276 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5277 fi])
5278 rm -f conftest.i conftest2.i conftest.out])
5279 ])# _LT_PATH_DD
5280
5281
5282 # _LT_CMD_TRUNCATE
5283 # ----------------
5284 # find command to truncate a binary pipe
5285 m4_defun([_LT_CMD_TRUNCATE],
5286 [m4_require([_LT_PATH_DD])
5287 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
5288 [printf 0123456789abcdef0123456789abcdef >conftest.i
5289 cat conftest.i conftest.i >conftest2.i
5290 lt_cv_truncate_bin=
5291 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5292 cmp -s conftest.i conftest.out \
5293 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5294 fi
5295 rm -f conftest.i conftest2.i conftest.out
5296 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
5297 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
5298 [Command to truncate a binary pipe])
5299 ])# _LT_CMD_TRUNCATE
38495300
38505301
38515302 # _LT_CHECK_MAGIC_METHOD
38635314 # Need to set the preceding variable on all platforms that support
38645315 # interlibrary dependencies.
38655316 # 'none' -- dependencies not supported.
3866 # `unknown' -- same as none, but documents that we really don't know.
5317 # 'unknown' -- same as none, but documents that we really don't know.
38675318 # 'pass_all' -- all dependencies passed with no checks.
38685319 # 'test_compile' -- check by making test program.
38695320 # 'file_magic [[regex]]' -- check by looking for files in library path
3870 # which responds to the $file_magic_cmd with a given extended regex.
3871 # If you have `file' or equivalent on your system and you're not sure
3872 # whether `pass_all' will *always* work, you probably want this one.
5321 # that responds to the $file_magic_cmd with a given extended regex.
5322 # If you have 'file' or equivalent on your system and you're not sure
5323 # whether 'pass_all' will *always* work, you probably want this one.
38735324
38745325 case $host_os in
38755326 aix[[4-9]]*)
38965347 # Base MSYS/MinGW do not provide the 'file' command needed by
38975348 # func_win32_libid shell function, so use a weaker test based on 'objdump',
38985349 # unless we find 'file', for example because we are cross-compiling.
3899 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3900 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5350 if ( file / ) >/dev/null 2>&1; then
39015351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
39025352 lt_cv_file_magic_cmd='func_win32_libid'
39035353 else
39315381 else
39325382 lt_cv_deplibs_check_method=pass_all
39335383 fi
3934 ;;
3935
3936 gnu*)
3937 lt_cv_deplibs_check_method=pass_all
39385384 ;;
39395385
39405386 haiku*)
39755421 ;;
39765422
39775423 # This must be glibc/ELF.
3978 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5424 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
39795425 lt_cv_deplibs_check_method=pass_all
39805426 ;;
39815427
3982 netbsd*)
5428 netbsd* | netbsdelf*-gnu)
39835429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
39845430 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
39855431 else
39975443 lt_cv_deplibs_check_method=pass_all
39985444 ;;
39995445
4000 openbsd*)
4001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5446 openbsd* | bitrig*)
5447 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
40025448 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
40035449 else
40045450 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
40515497 tpf*)
40525498 lt_cv_deplibs_check_method=pass_all
40535499 ;;
5500 os2*)
5501 lt_cv_deplibs_check_method=pass_all
5502 ;;
40545503 esac
40555504 ])
40565505
40915540 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
40925541 [if test -n "$NM"; then
40935542 # Let the user override the test.
4094 lt_cv_path_NM="$NM"
5543 lt_cv_path_NM=$NM
40955544 else
4096 lt_nm_to_check="${ac_tool_prefix}nm"
5545 lt_nm_to_check=${ac_tool_prefix}nm
40975546 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
40985547 lt_nm_to_check="$lt_nm_to_check nm"
40995548 fi
41005549 for lt_tmp_nm in $lt_nm_to_check; do
4101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5550 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
41025551 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4103 IFS="$lt_save_ifs"
5552 IFS=$lt_save_ifs
41045553 test -z "$ac_dir" && ac_dir=.
4105 tmp_nm="$ac_dir/$lt_tmp_nm"
4106 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5554 tmp_nm=$ac_dir/$lt_tmp_nm
5555 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
41075556 # Check to see if the nm accepts a BSD-compat flag.
4108 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5557 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
41095558 # nm: unknown option "B" ignored
41105559 # Tru64's nm complains that /dev/null is an invalid object file
4111 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4112 */dev/null* | *'Invalid file or object type'*)
5560 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5561 case $build_os in
5562 mingw*) lt_bad_file=conftest.nm/nofile ;;
5563 *) lt_bad_file=/dev/null ;;
5564 esac
5565 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5566 *$lt_bad_file* | *'Invalid file or object type'*)
41135567 lt_cv_path_NM="$tmp_nm -B"
4114 break
5568 break 2
41155569 ;;
41165570 *)
41175571 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
41185572 */dev/null*)
41195573 lt_cv_path_NM="$tmp_nm -p"
4120 break
5574 break 2
41215575 ;;
41225576 *)
41235577 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
41285582 esac
41295583 fi
41305584 done
4131 IFS="$lt_save_ifs"
5585 IFS=$lt_save_ifs
41325586 done
41335587 : ${lt_cv_path_NM=no}
41345588 fi])
4135 if test "$lt_cv_path_NM" != "no"; then
4136 NM="$lt_cv_path_NM"
5589 if test no != "$lt_cv_path_NM"; then
5590 NM=$lt_cv_path_NM
41375591 else
41385592 # Didn't find any BSD compatible name lister, look for dumpbin.
41395593 if test -n "$DUMPBIN"; then :
41405594 # Let the user override the test.
41415595 else
41425596 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4143 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5597 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
41445598 *COFF*)
4145 DUMPBIN="$DUMPBIN -symbols"
5599 DUMPBIN="$DUMPBIN -symbols -headers"
41465600 ;;
41475601 *)
41485602 DUMPBIN=:
41505604 esac
41515605 fi
41525606 AC_SUBST([DUMPBIN])
4153 if test "$DUMPBIN" != ":"; then
4154 NM="$DUMPBIN"
5607 if test : != "$DUMPBIN"; then
5608 NM=$DUMPBIN
41555609 fi
41565610 fi
41575611 test -z "$NM" && NM=nm
41975651
41985652 case $host_os in
41995653 cygwin* | mingw* | pw32* | cegcc*)
4200 # two different shell functions defined in ltmain.sh
4201 # decide which to use based on capabilities of $DLLTOOL
5654 # two different shell functions defined in ltmain.sh;
5655 # decide which one to use based on capabilities of $DLLTOOL
42025656 case `$DLLTOOL --help 2>&1` in
42035657 *--identify-strict*)
42045658 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
42105664 ;;
42115665 *)
42125666 # fallback: assume linklib IS sharedlib
4213 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5667 lt_cv_sharedlib_from_linklib_cmd=$ECHO
42145668 ;;
42155669 esac
42165670 ])
42375691 lt_cv_path_mainfest_tool=yes
42385692 fi
42395693 rm -f conftest*])
4240 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5694 if test yes != "$lt_cv_path_mainfest_tool"; then
42415695 MANIFEST_TOOL=:
42425696 fi
42435697 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
42445698 ])# _LT_PATH_MANIFEST_TOOL
5699
5700
5701 # _LT_DLL_DEF_P([FILE])
5702 # ---------------------
5703 # True iff FILE is a Windows DLL '.def' file.
5704 # Keep in sync with func_dll_def_p in the libtool script
5705 AC_DEFUN([_LT_DLL_DEF_P],
5706 [dnl
5707 test DEF = "`$SED -n dnl
5708 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
5709 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
5710 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
5711 -e q dnl Only consider the first "real" line
5712 $1`" dnl
5713 ])# _LT_DLL_DEF_P
42455714
42465715
42475716 # LT_LIB_M
42555724 # These system don't have libm, or don't need it
42565725 ;;
42575726 *-ncr-sysv4.3*)
4258 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
5727 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
42595728 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
42605729 ;;
42615730 *)
4262 AC_CHECK_LIB(m, cos, LIBM="-lm")
5731 AC_CHECK_LIB(m, cos, LIBM=-lm)
42635732 ;;
42645733 esac
42655734 AC_SUBST([LIBM])
42785747
42795748 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
42805749
4281 if test "$GCC" = yes; then
5750 if test yes = "$GCC"; then
42825751 case $cc_basename in
42835752 nvcc*)
42845753 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
43305799 symcode='[[ABCDGISTW]]'
43315800 ;;
43325801 hpux*)
4333 if test "$host_cpu" = ia64; then
5802 if test ia64 = "$host_cpu"; then
43345803 symcode='[[ABCDEGRST]]'
43355804 fi
43365805 ;;
43635832 symcode='[[ABCDGIRSTW]]' ;;
43645833 esac
43655834
5835 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5836 # Gets list of data symbols to import.
5837 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5838 # Adjust the below global symbol transforms to fixup imported variables.
5839 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5840 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5841 lt_c_name_lib_hook="\
5842 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5843 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5844 else
5845 # Disable hooks by default.
5846 lt_cv_sys_global_symbol_to_import=
5847 lt_cdecl_hook=
5848 lt_c_name_hook=
5849 lt_c_name_lib_hook=
5850 fi
5851
43665852 # Transform an extracted symbol line into a proper C declaration.
43675853 # Some systems (esp. on ia64) link data and code symbols differently,
43685854 # so use this general approach.
4369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5855 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5856 $lt_cdecl_hook\
5857 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5858 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
43705859
43715860 # Transform an extracted symbol line into symbol name and symbol address
4372 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4373 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5861 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5862 $lt_c_name_hook\
5863 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5864 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5865
5866 # Transform an extracted symbol line into symbol name with lib prefix and
5867 # symbol address.
5868 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5869 $lt_c_name_lib_hook\
5870 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5871 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5872 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
43745873
43755874 # Handle CRLF in mingw tool chain
43765875 opt_cr=
43885887
43895888 # Write the raw and C identifiers.
43905889 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4391 # Fake it for dumpbin and say T for any non-static function
4392 # and D for any global variable.
5890 # Fake it for dumpbin and say T for any non-static function,
5891 # D for any global variable and I for any imported variable.
43935892 # Also find C++ and __fastcall symbols from MSVC++,
43945893 # which start with @ or ?.
43955894 lt_cv_sys_global_symbol_pipe="$AWK ['"\
43965895 " {last_section=section; section=\$ 3};"\
43975896 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
43985897 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5898 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5899 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5900 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
43995901 " \$ 0!~/External *\|/{next};"\
44005902 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
44015903 " {if(hide[section]) next};"\
4402 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4403 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4404 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4405 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5904 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5905 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5906 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5907 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
44065908 " ' prfx=^$ac_symprfx]"
44075909 else
44085910 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
44295931 if AC_TRY_EVAL(ac_compile); then
44305932 # Now try to grab the symbols.
44315933 nlist=conftest.nm
4432 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
5934 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
5935 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
44335936 # Try sorting and uniquifying the output.
44345937 if sort "$nlist" | uniq > "$nlist"T; then
44355938 mv -f "$nlist"T "$nlist"
44425945 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
44435946 cat <<_LT_EOF > conftest.$ac_ext
44445947 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4445 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4446 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5948 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5949 /* DATA imports from DLLs on WIN32 can't be const, because runtime
44475950 relocations are performed -- see ld's documentation on pseudo-relocs. */
44485951 # define LT@&t@_DLSYM_CONST
4449 #elif defined(__osf__)
5952 #elif defined __osf__
44505953 /* This system does not cope well with relocations in const data. */
44515954 # define LT@&t@_DLSYM_CONST
44525955 #else
44725975 {
44735976 { "@PROGRAM@", (void *) 0 },
44745977 _LT_EOF
4475 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5978 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
44765979 cat <<\_LT_EOF >> conftest.$ac_ext
44775980 {0, (void *) 0}
44785981 };
44925995 mv conftest.$ac_objext conftstm.$ac_objext
44935996 lt_globsym_save_LIBS=$LIBS
44945997 lt_globsym_save_CFLAGS=$CFLAGS
4495 LIBS="conftstm.$ac_objext"
5998 LIBS=conftstm.$ac_objext
44965999 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4497 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6000 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
44986001 pipe_works=yes
44996002 fi
45006003 LIBS=$lt_globsym_save_LIBS
45156018 rm -rf conftest* conftst*
45166019
45176020 # Do not use the global_symbol_pipe unless it works.
4518 if test "$pipe_works" = yes; then
6021 if test yes = "$pipe_works"; then
45196022 break
45206023 else
45216024 lt_cv_sys_global_symbol_pipe=
45426045 [Take the output of nm and produce a listing of raw symbols and C names])
45436046 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
45446047 [Transform the output of nm in a proper C declaration])
6048 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
6049 [Transform the output of nm into a list of symbols to manually relocate])
45456050 _LT_DECL([global_symbol_to_c_name_address],
45466051 [lt_cv_sys_global_symbol_to_c_name_address], [1],
45476052 [Transform the output of nm in a C name address pair])
45486053 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
45496054 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
45506055 [Transform the output of nm in a C name address pair when lib prefix is needed])
6056 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
6057 [The name lister interface])
45516058 _LT_DECL([], [nm_file_list_spec], [1],
45526059 [Specify filename containing input files for $NM])
45536060 ]) # _LT_CMD_GLOBAL_SYMBOLS
45636070
45646071 m4_if([$1], [CXX], [
45656072 # C++ specific cases for pic, static, wl, etc.
4566 if test "$GXX" = yes; then
6073 if test yes = "$GXX"; then
45676074 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
45686075 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
45696076
45706077 case $host_os in
45716078 aix*)
45726079 # All AIX code is PIC.
4573 if test "$host_cpu" = ia64; then
6080 if test ia64 = "$host_cpu"; then
45746081 # AIX 5 now supports IA64 processor
45756082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
45766083 fi
6084 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
45776085 ;;
45786086
45796087 amigaos*)
45846092 ;;
45856093 m68k)
45866094 # FIXME: we need at least 68020 code to build shared libraries, but
4587 # adding the `-m68020' flag to GCC prevents building anything better,
4588 # like `-m68040'.
6095 # adding the '-m68020' flag to GCC prevents building anything better,
6096 # like '-m68040'.
45896097 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
45906098 ;;
45916099 esac
46016109 # (--disable-auto-import) libraries
46026110 m4_if([$1], [GCJ], [],
46036111 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6112 case $host_os in
6113 os2*)
6114 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
6115 ;;
6116 esac
46046117 ;;
46056118 darwin* | rhapsody*)
46066119 # PIC is the default on this platform
46506163 case $host_os in
46516164 aix[[4-9]]*)
46526165 # All AIX code is PIC.
4653 if test "$host_cpu" = ia64; then
6166 if test ia64 = "$host_cpu"; then
46546167 # AIX 5 now supports IA64 processor
46556168 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
46566169 else
46916204 case $cc_basename in
46926205 CC*)
46936206 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4694 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4695 if test "$host_cpu" != ia64; then
6207 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
6208 if test ia64 != "$host_cpu"; then
46966209 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
46976210 fi
46986211 ;;
46996212 aCC*)
47006213 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4701 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6214 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
47026215 case $host_cpu in
47036216 hppa*64*|ia64*)
47046217 # +Z the default
47276240 ;;
47286241 esac
47296242 ;;
4730 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6243 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
47316244 case $cc_basename in
47326245 KCC*)
47336246 # KAI C++ Compiler
47356248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
47366249 ;;
47376250 ecpc* )
4738 # old Intel C++ for x86_64 which still supported -KPIC.
6251 # old Intel C++ for x86_64, which still supported -KPIC.
47396252 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
47406253 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
47416254 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
47916304 ;;
47926305 esac
47936306 ;;
4794 netbsd*)
6307 netbsd* | netbsdelf*-gnu)
47956308 ;;
47966309 *qnx* | *nto*)
47976310 # QNX uses GNU C++, but need to define -shared option too, otherwise
48806393 fi
48816394 ],
48826395 [
4883 if test "$GCC" = yes; then
6396 if test yes = "$GCC"; then
48846397 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
48856398 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
48866399
48876400 case $host_os in
48886401 aix*)
48896402 # All AIX code is PIC.
4890 if test "$host_cpu" = ia64; then
6403 if test ia64 = "$host_cpu"; then
48916404 # AIX 5 now supports IA64 processor
48926405 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
48936406 fi
6407 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
48946408 ;;
48956409
48966410 amigaos*)
49016415 ;;
49026416 m68k)
49036417 # FIXME: we need at least 68020 code to build shared libraries, but
4904 # adding the `-m68020' flag to GCC prevents building anything better,
4905 # like `-m68040'.
6418 # adding the '-m68020' flag to GCC prevents building anything better,
6419 # like '-m68040'.
49066420 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
49076421 ;;
49086422 esac
49196433 # (--disable-auto-import) libraries
49206434 m4_if([$1], [GCJ], [],
49216435 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6436 case $host_os in
6437 os2*)
6438 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
6439 ;;
6440 esac
49226441 ;;
49236442
49246443 darwin* | rhapsody*)
49896508 case $host_os in
49906509 aix*)
49916510 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4992 if test "$host_cpu" = ia64; then
6511 if test ia64 = "$host_cpu"; then
49936512 # AIX 5 now supports IA64 processor
49946513 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
49956514 else
49976516 fi
49986517 ;;
49996518
6519 darwin* | rhapsody*)
6520 # PIC is the default on this platform
6521 # Common symbols not allowed in MH_DYLIB files
6522 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6523 case $cc_basename in
6524 nagfor*)
6525 # NAG Fortran compiler
6526 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
6527 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6528 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6529 ;;
6530 esac
6531 ;;
6532
50006533 mingw* | cygwin* | pw32* | os2* | cegcc*)
50016534 # This hack is so that the source file can tell whether it is being
50026535 # built for inclusion in a dll (and should export symbols for example).
50036536 m4_if([$1], [GCJ], [],
50046537 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6538 case $host_os in
6539 os2*)
6540 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
6541 ;;
6542 esac
50056543 ;;
50066544
50076545 hpux9* | hpux10* | hpux11*)
50176555 ;;
50186556 esac
50196557 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5020 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6558 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
50216559 ;;
50226560
50236561 irix5* | irix6* | nonstopux*)
50266564 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
50276565 ;;
50286566
5029 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
50306568 case $cc_basename in
5031 # old Intel for x86_64 which still supported -KPIC.
6569 # old Intel for x86_64, which still supported -KPIC.
50326570 ecc*)
50336571 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
50346572 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6573 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6574 ;;
6575 # flang / f18. f95 an alias for gfortran or flang on Debian
6576 flang* | f18* | f95*)
6577 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6578 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
50356579 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
50366580 ;;
50376581 # icc used to be incompatible with GCC.
50526596 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
50536597 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
50546598 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6599 ;;
6600 tcc*)
6601 # Fabrice Bellard et al's Tiny C Compiler
6602 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6603 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6604 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
50556605 ;;
50566606 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
50576607 # Portland Group compilers (*not* the Pentium gcc compiler,
51506700 ;;
51516701
51526702 sysv4*MP*)
5153 if test -d /usr/nec ;then
6703 if test -d /usr/nec; then
51546704 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
51556705 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
51566706 fi
51796729 fi
51806730 ])
51816731 case $host_os in
5182 # For platforms which do not support PIC, -DPIC is meaningless:
6732 # For platforms that do not support PIC, -DPIC is meaningless:
51836733 *djgpp*)
51846734 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
51856735 ;;
52456795 case $host_os in
52466796 aix[[4-9]]*)
52476797 # If we're using GNU nm, then we don't want the "-C" option.
5248 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5249 # Also, AIX nm treats weak defined symbols like other global defined
5250 # symbols, whereas GNU nm marks them as "W".
6798 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
6799 # Without the "-l" option, or with the "-B" option, AIX nm treats
6800 # weak defined symbols like other global defined symbols, whereas
6801 # GNU nm marks them as "W".
6802 # While the 'weak' keyword is ignored in the Export File, we need
6803 # it in the Import File for the 'aix-soname' feature, so we have
6804 # to replace the "-B" option with "-P" for AIX nm.
52516805 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5252 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6806 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
52536807 else
5254 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6808 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
52556809 fi
52566810 ;;
52576811 pw32*)
5258 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6812 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
52596813 ;;
52606814 cygwin* | mingw* | cegcc*)
52616815 case $cc_basename in
52676821 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
52686822 ;;
52696823 esac
6824 ;;
6825 linux* | k*bsd*-gnu | gnu*)
6826 _LT_TAGVAR(link_all_deplibs, $1)=no
52706827 ;;
52716828 *)
52726829 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
53016858 # included in the symbol list
53026859 _LT_TAGVAR(include_expsyms, $1)=
53036860 # exclude_expsyms can be an extended regexp of symbols to exclude
5304 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5305 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5306 # as well as any symbol that contains `d'.
6861 # it will be wrapped by ' (' and ')$', so one must not match beginning or
6862 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
6863 # as well as any symbol that contains 'd'.
53076864 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
53086865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
53096866 # platforms (ab)use it in PIC code, but their linkers get confused if
53196876 # FIXME: the MSVC++ port hasn't been tested in a loooong time
53206877 # When not using gcc, we currently assume that we are using
53216878 # Microsoft Visual C++.
5322 if test "$GCC" != yes; then
6879 if test yes != "$GCC"; then
53236880 with_gnu_ld=no
53246881 fi
53256882 ;;
53276884 # we just hope/assume this is gcc and not c89 (= MSVC++)
53286885 with_gnu_ld=yes
53296886 ;;
5330 openbsd*)
6887 openbsd* | bitrig*)
53316888 with_gnu_ld=no
6889 ;;
6890 linux* | k*bsd*-gnu | gnu*)
6891 _LT_TAGVAR(link_all_deplibs, $1)=no
53326892 ;;
53336893 esac
53346894
53376897 # On some targets, GNU ld is compatible enough with the native linker
53386898 # that we're better off using the native interface for both.
53396899 lt_use_gnu_ld_interface=no
5340 if test "$with_gnu_ld" = yes; then
6900 if test yes = "$with_gnu_ld"; then
53416901 case $host_os in
53426902 aix*)
53436903 # The AIX port of GNU ld has always aspired to compatibility
53596919 esac
53606920 fi
53616921
5362 if test "$lt_use_gnu_ld_interface" = yes; then
6922 if test yes = "$lt_use_gnu_ld_interface"; then
53636923 # If archive_cmds runs LD, not CC, wlarc should be empty
5364 wlarc='${wl}'
6924 wlarc='$wl'
53656925
53666926 # Set some defaults for GNU ld with shared library support. These
53676927 # are reset later if shared libraries are not supported. Putting them
53686928 # here allows them to be overridden if necessary.
53696929 runpath_var=LD_RUN_PATH
5370 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5371 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6930 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6931 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
53726932 # ancient GNU ld didn't support --whole-archive et. al.
53736933 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5374 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6934 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
53756935 else
53766936 _LT_TAGVAR(whole_archive_flag_spec, $1)=
53776937 fi
53786938 supports_anon_versioning=no
5379 case `$LD -v 2>&1` in
6939 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
53806940 *GNU\ gold*) supports_anon_versioning=yes ;;
53816941 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
53826942 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
53896949 case $host_os in
53906950 aix[[3-9]]*)
53916951 # On AIX/PPC, the GNU linker is very broken
5392 if test "$host_cpu" != ia64; then
6952 if test ia64 != "$host_cpu"; then
53936953 _LT_TAGVAR(ld_shlibs, $1)=no
53946954 cat <<_LT_EOF 1>&2
53956955
54086968 case $host_cpu in
54096969 powerpc)
54106970 # see comment about AmigaOS4 .so support
5411 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6971 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
54126972 _LT_TAGVAR(archive_expsym_cmds, $1)=''
54136973 ;;
54146974 m68k)
54246984 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
54256985 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
54266986 # support --undefined. This deserves some investigation. FIXME
5427 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6987 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
54286988 else
54296989 _LT_TAGVAR(ld_shlibs, $1)=no
54306990 fi
54346994 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
54356995 # as there is no search path for DLLs.
54366996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5437 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6997 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
54386998 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
54396999 _LT_TAGVAR(always_export_symbols, $1)=no
54407000 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54427002 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
54437003
54447004 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5445 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5446 # If the export-symbols file already is a .def file (1st line
5447 # is EXPORTS), use it as is; otherwise, prepend...
5448 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5449 cp $export_symbols $output_objdir/$soname.def;
5450 else
5451 echo EXPORTS > $output_objdir/$soname.def;
5452 cat $export_symbols >> $output_objdir/$soname.def;
5453 fi~
5454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7005 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7006 # If the export-symbols file already is a .def file, use it as
7007 # is; otherwise, prepend EXPORTS...
7008 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
7009 cp $export_symbols $output_objdir/$soname.def;
7010 else
7011 echo EXPORTS > $output_objdir/$soname.def;
7012 cat $export_symbols >> $output_objdir/$soname.def;
7013 fi~
7014 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
54557015 else
54567016 _LT_TAGVAR(ld_shlibs, $1)=no
54577017 fi
54587018 ;;
54597019
54607020 haiku*)
5461 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7021 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
54627022 _LT_TAGVAR(link_all_deplibs, $1)=yes
7023 ;;
7024
7025 os2*)
7026 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7027 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7028 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7029 shrext_cmds=.dll
7030 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7031 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7032 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7033 $ECHO EXPORTS >> $output_objdir/$libname.def~
7034 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
7035 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7036 emximp -o $lib $output_objdir/$libname.def'
7037 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7038 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7039 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7040 $ECHO EXPORTS >> $output_objdir/$libname.def~
7041 prefix_cmds="$SED"~
7042 if test EXPORTS = "`$SED 1q $export_symbols`"; then
7043 prefix_cmds="$prefix_cmds -e 1d";
7044 fi~
7045 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
7046 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
7047 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7048 emximp -o $lib $output_objdir/$libname.def'
7049 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
7050 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54637051 ;;
54647052
54657053 interix[[3-9]]*)
54667054 _LT_TAGVAR(hardcode_direct, $1)=no
54677055 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5468 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5469 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7056 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7057 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
54707058 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
54717059 # Instead, shared libraries are loaded at an image base (0x10000000 by
54727060 # default) and relocated if they conflict, which is a slow very memory
54737061 # consuming and fragmenting process. To avoid this, we pick a random,
54747062 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
54757063 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5476 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5477 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7064 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7065 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
54787066 ;;
54797067
54807068 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
54817069 tmp_diet=no
5482 if test "$host_os" = linux-dietlibc; then
7070 if test linux-dietlibc = "$host_os"; then
54837071 case $cc_basename in
54847072 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
54857073 esac
54867074 fi
54877075 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5488 && test "$tmp_diet" = no
7076 && test no = "$tmp_diet"
54897077 then
54907078 tmp_addflag=' $pic_flag'
54917079 tmp_sharedflag='-shared'
54927080 case $cc_basename,$host_cpu in
54937081 pgcc*) # Portland Group C compiler
5494 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7082 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
54957083 tmp_addflag=' $pic_flag'
54967084 ;;
54977085 pgf77* | pgf90* | pgf95* | pgfortran*)
54987086 # Portland Group f77 and f90 compilers
5499 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7087 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
55007088 tmp_addflag=' $pic_flag -Mnomain' ;;
55017089 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
55027090 tmp_addflag=' -i_dynamic' ;;
55077095 lf95*) # Lahey Fortran 8.1
55087096 _LT_TAGVAR(whole_archive_flag_spec, $1)=
55097097 tmp_sharedflag='--shared' ;;
7098 nagfor*) # NAGFOR 5.3
7099 tmp_sharedflag='-Wl,-shared' ;;
55107100 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
55117101 tmp_sharedflag='-qmkshrobj'
55127102 tmp_addflag= ;;
55137103 nvcc*) # Cuda Compiler Driver 2.2
5514 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7104 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
55157105 _LT_TAGVAR(compiler_needs_object, $1)=yes
55167106 ;;
55177107 esac
55187108 case `$CC -V 2>&1 | sed 5q` in
55197109 *Sun\ C*) # Sun C 5.9
5520 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7110 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
55217111 _LT_TAGVAR(compiler_needs_object, $1)=yes
55227112 tmp_sharedflag='-G' ;;
55237113 *Sun\ F*) # Sun Fortran 8.3
55247114 tmp_sharedflag='-G' ;;
55257115 esac
5526 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5527
5528 if test "x$supports_anon_versioning" = xyes; then
7116 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7117
7118 if test yes = "$supports_anon_versioning"; then
55297119 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5530 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5531 echo "local: *; };" >> $output_objdir/$libname.ver~
5532 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7121 echo "local: *; };" >> $output_objdir/$libname.ver~
7122 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
55337123 fi
55347124
55357125 case $cc_basename in
7126 tcc*)
7127 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
7128 ;;
55367129 xlf* | bgf* | bgxlf* | mpixlf*)
55377130 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
55387131 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5539 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7132 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
55407133 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5541 if test "x$supports_anon_versioning" = xyes; then
7134 if test yes = "$supports_anon_versioning"; then
55427135 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5544 echo "local: *; };" >> $output_objdir/$libname.ver~
5545 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7137 echo "local: *; };" >> $output_objdir/$libname.ver~
7138 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
55467139 fi
55477140 ;;
55487141 esac
55517144 fi
55527145 ;;
55537146
5554 netbsd*)
7147 netbsd* | netbsdelf*-gnu)
55557148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
55567149 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
55577150 wlarc=
55587151 else
5559 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5560 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7152 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7153 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
55617154 fi
55627155 ;;
55637156
55757168
55767169 _LT_EOF
55777170 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5578 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5579 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7171 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7172 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
55807173 else
55817174 _LT_TAGVAR(ld_shlibs, $1)=no
55827175 fi
55887181 _LT_TAGVAR(ld_shlibs, $1)=no
55897182 cat <<_LT_EOF 1>&2
55907183
5591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7184 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
55927185 *** reliably create shared libraries on SCO systems. Therefore, libtool
55937186 *** is disabling shared libraries support. We urge you to upgrade GNU
55947187 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
56037196 # DT_RUNPATH tag from executables and libraries. But doing so
56047197 # requires that you compile everything twice, which is a pain.
56057198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5606 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5607 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5608 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7199 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7200 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7201 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
56097202 else
56107203 _LT_TAGVAR(ld_shlibs, $1)=no
56117204 fi
56227215
56237216 *)
56247217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5625 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5626 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7218 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7219 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
56277220 else
56287221 _LT_TAGVAR(ld_shlibs, $1)=no
56297222 fi
56307223 ;;
56317224 esac
56327225
5633 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
7226 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
56347227 runpath_var=
56357228 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
56367229 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
56467239 # Note: this linker hardcodes the directories in LIBPATH if there
56477240 # are no directories specified by -L.
56487241 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7242 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
56507243 # Neither direct hardcoding nor static linking is supported with a
56517244 # broken collect2.
56527245 _LT_TAGVAR(hardcode_direct, $1)=unsupported
56547247 ;;
56557248
56567249 aix[[4-9]]*)
5657 if test "$host_cpu" = ia64; then
7250 if test ia64 = "$host_cpu"; then
56587251 # On IA64, the linker does run time linking by default, so we don't
56597252 # have to do anything special.
56607253 aix_use_runtimelinking=no
56617254 exp_sym_flag='-Bexport'
5662 no_entry_flag=""
7255 no_entry_flag=
56637256 else
56647257 # If we're using GNU nm, then we don't want the "-C" option.
5665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5666 # Also, AIX nm treats weak defined symbols like other global
5667 # defined symbols, whereas GNU nm marks them as "W".
7258 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
7259 # Without the "-l" option, or with the "-B" option, AIX nm treats
7260 # weak defined symbols like other global defined symbols, whereas
7261 # GNU nm marks them as "W".
7262 # While the 'weak' keyword is ignored in the Export File, we need
7263 # it in the Import File for the 'aix-soname' feature, so we have
7264 # to replace the "-B" option with "-P" for AIX nm.
56687265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5669 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7266 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
56707267 else
5671 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7268 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
56727269 fi
56737270 aix_use_runtimelinking=no
56747271
56757272 # Test if we are trying to use run time linking or normal
56767273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5677 # need to do runtime linking.
7274 # have runtime linking enabled, and use it for executables.
7275 # For shared libraries, we enable/disable runtime linking
7276 # depending on the kind of the shared library created -
7277 # when "with_aix_soname,aix_use_runtimelinking" is:
7278 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
7279 # "aix,yes" lib.so shared, rtl:yes, for executables
7280 # lib.a static archive
7281 # "both,no" lib.so.V(shr.o) shared, rtl:yes
7282 # lib.a(lib.so.V) shared, rtl:no, for executables
7283 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
7284 # lib.a(lib.so.V) shared, rtl:no
7285 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
7286 # lib.a static archive
56787287 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
56797288 for ld_flag in $LDFLAGS; do
5680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7289 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
56817290 aix_use_runtimelinking=yes
56827291 break
56837292 fi
56847293 done
7294 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
7295 # With aix-soname=svr4, we create the lib.so.V shared archives only,
7296 # so we don't have lib.a shared libs to link our executables.
7297 # We have to force runtime linking in this case.
7298 aix_use_runtimelinking=yes
7299 LDFLAGS="$LDFLAGS -Wl,-brtl"
7300 fi
56857301 ;;
56867302 esac
56877303
57007316 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
57017317 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
57027318 _LT_TAGVAR(link_all_deplibs, $1)=yes
5703 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5704
5705 if test "$GCC" = yes; then
7319 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
7320 case $with_aix_soname,$aix_use_runtimelinking in
7321 aix,*) ;; # traditional, no import file
7322 svr4,* | *,yes) # use import file
7323 # The Import File defines what to hardcode.
7324 _LT_TAGVAR(hardcode_direct, $1)=no
7325 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7326 ;;
7327 esac
7328
7329 if test yes = "$GCC"; then
57067330 case $host_os in aix4.[[012]]|aix4.[[012]].*)
57077331 # We only want to do this on AIX 4.2 and lower, the check
57087332 # below for broken collect2 doesn't work under 4.3+
5709 collect2name=`${CC} -print-prog-name=collect2`
7333 collect2name=`$CC -print-prog-name=collect2`
57107334 if test -f "$collect2name" &&
57117335 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
57127336 then
57257349 ;;
57267350 esac
57277351 shared_flag='-shared'
5728 if test "$aix_use_runtimelinking" = yes; then
5729 shared_flag="$shared_flag "'${wl}-G'
7352 if test yes = "$aix_use_runtimelinking"; then
7353 shared_flag="$shared_flag "'$wl-G'
57307354 fi
7355 # Need to ensure runtime linking is disabled for the traditional
7356 # shared library, or the linker may eventually find shared libraries
7357 # /with/ Import File - we do not want to mix them.
7358 shared_flag_aix='-shared'
7359 shared_flag_svr4='-shared $wl-G'
57317360 else
57327361 # not using gcc
5733 if test "$host_cpu" = ia64; then
7362 if test ia64 = "$host_cpu"; then
57347363 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
57357364 # chokes on -Wl,-G. The following line is correct:
57367365 shared_flag='-G'
57377366 else
5738 if test "$aix_use_runtimelinking" = yes; then
5739 shared_flag='${wl}-G'
7367 if test yes = "$aix_use_runtimelinking"; then
7368 shared_flag='$wl-G'
57407369 else
5741 shared_flag='${wl}-bM:SRE'
7370 shared_flag='$wl-bM:SRE'
57427371 fi
7372 shared_flag_aix='$wl-bM:SRE'
7373 shared_flag_svr4='$wl-G'
57437374 fi
57447375 fi
57457376
5746 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7377 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
57477378 # It seems that -bexpall does not export symbols beginning with
57487379 # underscore (_), so it is better to generate a list of symbols to export.
57497380 _LT_TAGVAR(always_export_symbols, $1)=yes
5750 if test "$aix_use_runtimelinking" = yes; then
7381 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
57517382 # Warning - without using the other runtime loading flags (-brtl),
57527383 # -berok will link without error, but may produce a broken library.
57537384 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
57547385 # Determine the default libpath from the value encoded in an
57557386 # empty executable.
57567387 _LT_SYS_MODULE_PATH_AIX([$1])
5757 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5758 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7388 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
7389 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
57597390 else
5760 if test "$host_cpu" = ia64; then
5761 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7391 if test ia64 = "$host_cpu"; then
7392 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
57627393 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5763 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7394 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
57647395 else
57657396 # Determine the default libpath from the value encoded in an
57667397 # empty executable.
57677398 _LT_SYS_MODULE_PATH_AIX([$1])
5768 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
57697400 # Warning - without using the other run time loading flags,
57707401 # -berok will link without error, but may produce a broken library.
5771 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5772 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5773 if test "$with_gnu_ld" = yes; then
7402 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
7403 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
7404 if test yes = "$with_gnu_ld"; then
57747405 # We only use this code for GNU lds that support --whole-archive.
5775 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7406 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
57767407 else
57777408 # Exported symbols can be pulled into shared objects from archives
57787409 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
57797410 fi
57807411 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5781 # This is similar to how AIX traditionally builds its shared libraries.
5782 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7412 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
7413 # -brtl affects multiple linker settings, -berok does not and is overridden later
7414 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
7415 if test svr4 != "$with_aix_soname"; then
7416 # This is similar to how AIX traditionally builds its shared libraries.
7417 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
7418 fi
7419 if test aix != "$with_aix_soname"; then
7420 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
7421 else
7422 # used by -dlpreopen to get the symbols
7423 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
7424 fi
7425 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
57837426 fi
57847427 fi
57857428 ;;
57887431 case $host_cpu in
57897432 powerpc)
57907433 # see comment about AmigaOS4 .so support
5791 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7434 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
57927435 _LT_TAGVAR(archive_expsym_cmds, $1)=''
57937436 ;;
57947437 m68k)
58187461 # Tell ltmain to make .lib files, not .a files.
58197462 libext=lib
58207463 # Tell ltmain to make .dll files, not .so files.
5821 shrext_cmds=".dll"
7464 shrext_cmds=.dll
58227465 # FIXME: Setting linknames here is a bad hack.
5823 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5824 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5825 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5826 else
5827 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5828 fi~
5829 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5830 linknames='
7466 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
7467 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
7468 cp "$export_symbols" "$output_objdir/$soname.def";
7469 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
7470 else
7471 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
7472 fi~
7473 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7474 linknames='
58317475 # The linker will not automatically build a static lib if we build a DLL.
58327476 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
58337477 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
58367480 # Don't use ranlib
58377481 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
58387482 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5839 lt_tool_outputfile="@TOOL_OUTPUT@"~
5840 case $lt_outputfile in
5841 *.exe|*.EXE) ;;
5842 *)
5843 lt_outputfile="$lt_outputfile.exe"
5844 lt_tool_outputfile="$lt_tool_outputfile.exe"
5845 ;;
5846 esac~
5847 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5848 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5849 $RM "$lt_outputfile.manifest";
5850 fi'
7483 lt_tool_outputfile="@TOOL_OUTPUT@"~
7484 case $lt_outputfile in
7485 *.exe|*.EXE) ;;
7486 *)
7487 lt_outputfile=$lt_outputfile.exe
7488 lt_tool_outputfile=$lt_tool_outputfile.exe
7489 ;;
7490 esac~
7491 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
7492 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7493 $RM "$lt_outputfile.manifest";
7494 fi'
58517495 ;;
58527496 *)
58537497 # Assume MSVC wrapper
58567500 # Tell ltmain to make .lib files, not .a files.
58577501 libext=lib
58587502 # Tell ltmain to make .dll files, not .so files.
5859 shrext_cmds=".dll"
7503 shrext_cmds=.dll
58607504 # FIXME: Setting linknames here is a bad hack.
58617505 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
58627506 # The linker will automatically build a .lib file if we build a DLL.
59067550 ;;
59077551
59087552 hpux9*)
5909 if test "$GCC" = yes; then
5910 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7553 if test yes = "$GCC"; then
7554 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
59117555 else
5912 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7556 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
59137557 fi
5914 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7558 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
59157559 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
59167560 _LT_TAGVAR(hardcode_direct, $1)=yes
59177561
59187562 # hardcode_minus_L: Not really in the search PATH,
59197563 # but as the default location of the library.
59207564 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5921 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7565 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
59227566 ;;
59237567
59247568 hpux10*)
5925 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7569 if test yes,no = "$GCC,$with_gnu_ld"; then
7570 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
59277571 else
59287572 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
59297573 fi
5930 if test "$with_gnu_ld" = no; then
5931 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7574 if test no = "$with_gnu_ld"; then
7575 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
59327576 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
59337577 _LT_TAGVAR(hardcode_direct, $1)=yes
59347578 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5935 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7579 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
59367580 # hardcode_minus_L: Not really in the search PATH,
59377581 # but as the default location of the library.
59387582 _LT_TAGVAR(hardcode_minus_L, $1)=yes
59407584 ;;
59417585
59427586 hpux11*)
5943 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
7587 if test yes,no = "$GCC,$with_gnu_ld"; then
59447588 case $host_cpu in
59457589 hppa*64*)
5946 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7590 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
59477591 ;;
59487592 ia64*)
5949 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7593 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
59507594 ;;
59517595 *)
5952 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7596 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
59537597 ;;
59547598 esac
59557599 else
59567600 case $host_cpu in
59577601 hppa*64*)
5958 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7602 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
59597603 ;;
59607604 ia64*)
5961 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7605 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
59627606 ;;
59637607 *)
59647608 m4_if($1, [], [
59667610 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
59677611 _LT_LINKER_OPTION([if $CC understands -b],
59687612 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5969 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
7613 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
59707614 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5971 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
7615 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
59727616 ;;
59737617 esac
59747618 fi
5975 if test "$with_gnu_ld" = no; then
5976 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7619 if test no = "$with_gnu_ld"; then
7620 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
59777621 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
59787622
59797623 case $host_cpu in
59847628 *)
59857629 _LT_TAGVAR(hardcode_direct, $1)=yes
59867630 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5987 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7631 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
59887632
59897633 # hardcode_minus_L: Not really in the search PATH,
59907634 # but as the default location of the library.
59957639 ;;
59967640
59977641 irix5* | irix6* | nonstopux*)
5998 if test "$GCC" = yes; then
5999 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7642 if test yes = "$GCC"; then
7643 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
60007644 # Try to use the -exported_symbol ld option, if it does not
60017645 # work, assume that -exports_file does not work either and
60027646 # implicitly export all symbols.
60037647 # This should be the same for all languages, so no per-tag cache variable.
60047648 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
60057649 [lt_cv_irix_exported_symbol],
6006 [save_LDFLAGS="$LDFLAGS"
6007 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7650 [save_LDFLAGS=$LDFLAGS
7651 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
60087652 AC_LINK_IFELSE(
60097653 [AC_LANG_SOURCE(
60107654 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
60177661 end]])])],
60187662 [lt_cv_irix_exported_symbol=yes],
60197663 [lt_cv_irix_exported_symbol=no])
6020 LDFLAGS="$save_LDFLAGS"])
6021 if test "$lt_cv_irix_exported_symbol" = yes; then
6022 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7664 LDFLAGS=$save_LDFLAGS])
7665 if test yes = "$lt_cv_irix_exported_symbol"; then
7666 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
60237667 fi
7668 _LT_TAGVAR(link_all_deplibs, $1)=no
60247669 else
6025 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6026 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7670 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7671 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
60277672 fi
60287673 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6029 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
60307675 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
60317676 _LT_TAGVAR(inherit_rpath, $1)=yes
60327677 _LT_TAGVAR(link_all_deplibs, $1)=yes
60337678 ;;
60347679
6035 netbsd*)
7680 linux*)
7681 case $cc_basename in
7682 tcc*)
7683 # Fabrice Bellard et al's Tiny C Compiler
7684 _LT_TAGVAR(ld_shlibs, $1)=yes
7685 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7686 ;;
7687 esac
7688 ;;
7689
7690 netbsd* | netbsdelf*-gnu)
60367691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
60377692 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
60387693 else
60467701 newsos6)
60477702 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
60487703 _LT_TAGVAR(hardcode_direct, $1)=yes
6049 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7704 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
60507705 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
60517706 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
60527707 ;;
60547709 *nto* | *qnx*)
60557710 ;;
60567711
6057 openbsd*)
7712 openbsd* | bitrig*)
60587713 if test -f /usr/libexec/ld.so; then
60597714 _LT_TAGVAR(hardcode_direct, $1)=yes
60607715 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
60617716 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
60637718 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6064 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6065 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6066 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7719 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
7720 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7721 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
60677722 else
6068 case $host_os in
6069 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6070 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6072 ;;
6073 *)
6074 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6075 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6076 ;;
6077 esac
7723 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7724 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
60787725 fi
60797726 else
60807727 _LT_TAGVAR(ld_shlibs, $1)=no
60857732 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
60867733 _LT_TAGVAR(hardcode_minus_L, $1)=yes
60877734 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6088 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6089 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7735 shrext_cmds=.dll
7736 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7737 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7738 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7739 $ECHO EXPORTS >> $output_objdir/$libname.def~
7740 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
7741 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7742 emximp -o $lib $output_objdir/$libname.def'
7743 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7744 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7745 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7746 $ECHO EXPORTS >> $output_objdir/$libname.def~
7747 prefix_cmds="$SED"~
7748 if test EXPORTS = "`$SED 1q $export_symbols`"; then
7749 prefix_cmds="$prefix_cmds -e 1d";
7750 fi~
7751 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
7752 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
7753 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7754 emximp -o $lib $output_objdir/$libname.def'
7755 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
7756 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
60907757 ;;
60917758
60927759 osf3*)
6093 if test "$GCC" = yes; then
6094 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6095 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7760 if test yes = "$GCC"; then
7761 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7762 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
60967763 else
60977764 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6098 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7765 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
60997766 fi
61007767 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6101 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7768 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
61027769 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
61037770 ;;
61047771
61057772 osf4* | osf5*) # as osf3* with the addition of -msym flag
6106 if test "$GCC" = yes; then
6107 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6108 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6109 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7773 if test yes = "$GCC"; then
7774 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7775 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7776 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
61107777 else
61117778 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6112 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7779 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
61137780 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
6114 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7781 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
61157782
61167783 # Both c and cxx compiler support -rpath directly
61177784 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
61227789
61237790 solaris*)
61247791 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6125 if test "$GCC" = yes; then
6126 wlarc='${wl}'
6127 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7792 if test yes = "$GCC"; then
7793 wlarc='$wl'
7794 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
61287795 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6129 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7796 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
61307797 else
61317798 case `$CC -V 2>&1` in
61327799 *"Compilers 5.0"*)
61337800 wlarc=''
6134 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7801 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
61357802 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7803 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
61377804 ;;
61387805 *)
6139 wlarc='${wl}'
6140 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7806 wlarc='$wl'
7807 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
61417808 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6142 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7809 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
61437810 ;;
61447811 esac
61457812 fi
61497816 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
61507817 *)
61517818 # The compiler driver will combine and reorder linker options,
6152 # but understands `-z linker_flag'. GCC discards it without `$wl',
7819 # but understands '-z linker_flag'. GCC discards it without '$wl',
61537820 # but is careful enough not to reorder.
61547821 # Supported since Solaris 2.6 (maybe 2.5.1?)
6155 if test "$GCC" = yes; then
6156 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7822 if test yes = "$GCC"; then
7823 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
61577824 else
61587825 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
61597826 fi
61637830 ;;
61647831
61657832 sunos4*)
6166 if test "x$host_vendor" = xsequent; then
7833 if test sequent = "$host_vendor"; then
61677834 # Use $CC to link under sequent, because it throws in some extra .o
61687835 # files that make .init and .fini sections work.
6169 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7836 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
61707837 else
61717838 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
61727839 fi
62157882 ;;
62167883
62177884 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6218 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7885 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
62197886 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
62207887 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
62217888 runpath_var='LD_RUN_PATH'
62227889
6223 if test "$GCC" = yes; then
6224 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6225 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7890 if test yes = "$GCC"; then
7891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7892 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62267893 else
6227 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6228 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7894 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7895 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62297896 fi
62307897 ;;
62317898
62327899 sysv5* | sco3.2v5* | sco5v6*)
6233 # Note: We can NOT use -z defs as we might desire, because we do not
7900 # Note: We CANNOT use -z defs as we might desire, because we do not
62347901 # link with -lc, and that would cause any symbols used from libc to
62357902 # always be unresolved, which means just about no library would
62367903 # ever link correctly. If we're not using GNU ld we use -z text
62377904 # though, which does catch some bad symbols but isn't as heavy-handed
62387905 # as -z defs.
6239 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6240 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7906 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7907 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
62417908 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
62427909 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6243 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7910 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
62447911 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
62457912 _LT_TAGVAR(link_all_deplibs, $1)=yes
6246 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7913 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
62477914 runpath_var='LD_RUN_PATH'
62487915
6249 if test "$GCC" = yes; then
6250 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6251 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7916 if test yes = "$GCC"; then
7917 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7918 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62527919 else
6253 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6254 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7920 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7921 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62557922 fi
62567923 ;;
62577924
62667933 ;;
62677934 esac
62687935
6269 if test x$host_vendor = xsni; then
7936 if test sni = "$host_vendor"; then
62707937 case $host in
62717938 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6272 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
7939 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
62737940 ;;
62747941 esac
62757942 fi
62767943 fi
62777944 ])
62787945 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6279 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7946 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
62807947
62817948 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
62827949
62937960 # Assume -lc should be added
62947961 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
62957962
6296 if test "$enable_shared" = yes && test "$GCC" = yes; then
7963 if test yes,yes = "$GCC,$enable_shared"; then
62977964 case $_LT_TAGVAR(archive_cmds, $1) in
62987965 *'~'*)
62997966 # FIXME: we may have to deal with multi-command sequences.
63738040 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
63748041 [Whether we need a single "-rpath" flag with a separated argument])
63758042 _LT_TAGDECL([], [hardcode_direct], [0],
6376 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
8043 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
63778044 DIR into the resulting binary])
63788045 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6379 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
8046 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
63808047 DIR into the resulting binary and the resulting library dependency is
6381 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
8048 "absolute", i.e impossible to change by setting $shlibpath_var if the
63828049 library is relocated])
63838050 _LT_TAGDECL([], [hardcode_minus_L], [0],
63848051 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
64198086 # ------------------------
64208087 # Ensure that the configuration variables for a C compiler are suitably
64218088 # defined. These variables are subsequently used by _LT_CONFIG to write
6422 # the compiler configuration to `libtool'.
8089 # the compiler configuration to 'libtool'.
64238090 m4_defun([_LT_LANG_C_CONFIG],
64248091 [m4_require([_LT_DECL_EGREP])dnl
6425 lt_save_CC="$CC"
8092 lt_save_CC=$CC
64268093 AC_LANG_PUSH(C)
64278094
64288095 # Source file extension for C test sources.
64588125 LT_SYS_DLOPEN_SELF
64598126 _LT_CMD_STRIPLIB
64608127
6461 # Report which library types will actually be built
8128 # Report what library types will actually be built
64628129 AC_MSG_CHECKING([if libtool supports shared libraries])
64638130 AC_MSG_RESULT([$can_build_shared])
64648131
64658132 AC_MSG_CHECKING([whether to build shared libraries])
6466 test "$can_build_shared" = "no" && enable_shared=no
8133 test no = "$can_build_shared" && enable_shared=no
64678134
64688135 # On AIX, shared libraries and static libraries use the same namespace, and
64698136 # are all built from PIC.
64708137 case $host_os in
64718138 aix3*)
6472 test "$enable_shared" = yes && enable_static=no
8139 test yes = "$enable_shared" && enable_static=no
64738140 if test -n "$RANLIB"; then
64748141 archive_cmds="$archive_cmds~\$RANLIB \$lib"
64758142 postinstall_cmds='$RANLIB $lib'
64778144 ;;
64788145
64798146 aix[[4-9]]*)
6480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6481 test "$enable_shared" = yes && enable_static=no
8147 if test ia64 != "$host_cpu"; then
8148 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
8149 yes,aix,yes) ;; # shared object as lib.so file only
8150 yes,svr4,*) ;; # shared object as lib.so archive member only
8151 yes,*) enable_static=no ;; # shared object in lib.a archive as well
8152 esac
64828153 fi
64838154 ;;
64848155 esac
64868157
64878158 AC_MSG_CHECKING([whether to build static libraries])
64888159 # Make sure either enable_shared or enable_static is yes.
6489 test "$enable_shared" = yes || enable_static=yes
8160 test yes = "$enable_shared" || enable_static=yes
64908161 AC_MSG_RESULT([$enable_static])
64918162
64928163 _LT_CONFIG($1)
64938164 fi
64948165 AC_LANG_POP
6495 CC="$lt_save_CC"
8166 CC=$lt_save_CC
64968167 ])# _LT_LANG_C_CONFIG
64978168
64988169
65008171 # --------------------------
65018172 # Ensure that the configuration variables for a C++ compiler are suitably
65028173 # defined. These variables are subsequently used by _LT_CONFIG to write
6503 # the compiler configuration to `libtool'.
8174 # the compiler configuration to 'libtool'.
65048175 m4_defun([_LT_LANG_CXX_CONFIG],
65058176 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
65068177 m4_require([_LT_DECL_EGREP])dnl
65078178 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6508 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6509 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6510 (test "X$CXX" != "Xg++"))) ; then
8179 if test -n "$CXX" && ( test no != "$CXX" &&
8180 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
8181 (test g++ != "$CXX"))); then
65118182 AC_PROG_CXXCPP
65128183 else
65138184 _lt_caught_CXX_error=yes
65498220 # the CXX compiler isn't working. Some variables (like enable_shared)
65508221 # are currently assumed to apply to all compilers on this platform,
65518222 # and will be corrupted by setting them based on a non-working compiler.
6552 if test "$_lt_caught_CXX_error" != yes; then
8223 if test yes != "$_lt_caught_CXX_error"; then
65538224 # Code to be used in simple compile tests
65548225 lt_simple_compile_test_code="int some_variable = 0;"
65558226
65918262 if test -n "$compiler"; then
65928263 # We don't want -fno-exception when compiling C++ code, so set the
65938264 # no_builtin_flag separately
6594 if test "$GXX" = yes; then
8265 if test yes = "$GXX"; then
65958266 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
65968267 else
65978268 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
65988269 fi
65998270
6600 if test "$GXX" = yes; then
8271 if test yes = "$GXX"; then
66018272 # Set up default GNU C++ configuration
66028273
66038274 LT_PATH_LD
66048275
66058276 # Check if GNU C++ uses GNU ld as the underlying linker, since the
66068277 # archiving commands below assume that GNU ld is being used.
6607 if test "$with_gnu_ld" = yes; then
6608 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6609 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6610
6611 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6612 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8278 if test yes = "$with_gnu_ld"; then
8279 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8280 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8281
8282 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8283 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
66138284
66148285 # If archive_cmds runs LD, not CC, wlarc should be empty
66158286 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
66168287 # investigate it a little bit more. (MM)
6617 wlarc='${wl}'
8288 wlarc='$wl'
66188289
66198290 # ancient GNU ld didn't support --whole-archive et. al.
66208291 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
66218292 $GREP 'no-whole-archive' > /dev/null; then
6622 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8293 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
66238294 else
66248295 _LT_TAGVAR(whole_archive_flag_spec, $1)=
66258296 fi
66388309 # Commands to make compiler produce verbose output that lists
66398310 # what "hidden" libraries, object files and flags are used when
66408311 # linking a shared library.
6641 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
66428313
66438314 else
66448315 GXX=no
66558326 _LT_TAGVAR(ld_shlibs, $1)=no
66568327 ;;
66578328 aix[[4-9]]*)
6658 if test "$host_cpu" = ia64; then
8329 if test ia64 = "$host_cpu"; then
66598330 # On IA64, the linker does run time linking by default, so we don't
66608331 # have to do anything special.
66618332 aix_use_runtimelinking=no
66628333 exp_sym_flag='-Bexport'
6663 no_entry_flag=""
8334 no_entry_flag=
66648335 else
66658336 aix_use_runtimelinking=no
66668337
66678338 # Test if we are trying to use run time linking or normal
66688339 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6669 # need to do runtime linking.
8340 # have runtime linking enabled, and use it for executables.
8341 # For shared libraries, we enable/disable runtime linking
8342 # depending on the kind of the shared library created -
8343 # when "with_aix_soname,aix_use_runtimelinking" is:
8344 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8345 # "aix,yes" lib.so shared, rtl:yes, for executables
8346 # lib.a static archive
8347 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8348 # lib.a(lib.so.V) shared, rtl:no, for executables
8349 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8350 # lib.a(lib.so.V) shared, rtl:no
8351 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8352 # lib.a static archive
66708353 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
66718354 for ld_flag in $LDFLAGS; do
66728355 case $ld_flag in
66768359 ;;
66778360 esac
66788361 done
8362 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8363 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8364 # so we don't have lib.a shared libs to link our executables.
8365 # We have to force runtime linking in this case.
8366 aix_use_runtimelinking=yes
8367 LDFLAGS="$LDFLAGS -Wl,-brtl"
8368 fi
66798369 ;;
66808370 esac
66818371
66948384 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
66958385 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
66968386 _LT_TAGVAR(link_all_deplibs, $1)=yes
6697 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6698
6699 if test "$GXX" = yes; then
8387 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
8388 case $with_aix_soname,$aix_use_runtimelinking in
8389 aix,*) ;; # no import file
8390 svr4,* | *,yes) # use import file
8391 # The Import File defines what to hardcode.
8392 _LT_TAGVAR(hardcode_direct, $1)=no
8393 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8394 ;;
8395 esac
8396
8397 if test yes = "$GXX"; then
67008398 case $host_os in aix4.[[012]]|aix4.[[012]].*)
67018399 # We only want to do this on AIX 4.2 and lower, the check
67028400 # below for broken collect2 doesn't work under 4.3+
6703 collect2name=`${CC} -print-prog-name=collect2`
8401 collect2name=`$CC -print-prog-name=collect2`
67048402 if test -f "$collect2name" &&
67058403 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
67068404 then
67188416 fi
67198417 esac
67208418 shared_flag='-shared'
6721 if test "$aix_use_runtimelinking" = yes; then
6722 shared_flag="$shared_flag "'${wl}-G'
8419 if test yes = "$aix_use_runtimelinking"; then
8420 shared_flag=$shared_flag' $wl-G'
67238421 fi
8422 # Need to ensure runtime linking is disabled for the traditional
8423 # shared library, or the linker may eventually find shared libraries
8424 # /with/ Import File - we do not want to mix them.
8425 shared_flag_aix='-shared'
8426 shared_flag_svr4='-shared $wl-G'
67248427 else
67258428 # not using gcc
6726 if test "$host_cpu" = ia64; then
8429 if test ia64 = "$host_cpu"; then
67278430 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
67288431 # chokes on -Wl,-G. The following line is correct:
67298432 shared_flag='-G'
67308433 else
6731 if test "$aix_use_runtimelinking" = yes; then
6732 shared_flag='${wl}-G'
8434 if test yes = "$aix_use_runtimelinking"; then
8435 shared_flag='$wl-G'
67338436 else
6734 shared_flag='${wl}-bM:SRE'
8437 shared_flag='$wl-bM:SRE'
67358438 fi
8439 shared_flag_aix='$wl-bM:SRE'
8440 shared_flag_svr4='$wl-G'
67368441 fi
67378442 fi
67388443
6739 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
8444 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
67408445 # It seems that -bexpall does not export symbols beginning with
67418446 # underscore (_), so it is better to generate a list of symbols to
67428447 # export.
67438448 _LT_TAGVAR(always_export_symbols, $1)=yes
6744 if test "$aix_use_runtimelinking" = yes; then
8449 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
67458450 # Warning - without using the other runtime loading flags (-brtl),
67468451 # -berok will link without error, but may produce a broken library.
6747 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
8452 # The "-G" linker flag allows undefined symbols.
8453 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
67488454 # Determine the default libpath from the value encoded in an empty
67498455 # executable.
67508456 _LT_SYS_MODULE_PATH_AIX([$1])
6751 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6752
6753 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8457 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
8458
8459 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
67548460 else
6755 if test "$host_cpu" = ia64; then
6756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8461 if test ia64 = "$host_cpu"; then
8462 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
67578463 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6758 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8464 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
67598465 else
67608466 # Determine the default libpath from the value encoded in an
67618467 # empty executable.
67628468 _LT_SYS_MODULE_PATH_AIX([$1])
6763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8469 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
67648470 # Warning - without using the other run time loading flags,
67658471 # -berok will link without error, but may produce a broken library.
6766 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6767 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6768 if test "$with_gnu_ld" = yes; then
8472 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
8473 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
8474 if test yes = "$with_gnu_ld"; then
67698475 # We only use this code for GNU lds that support --whole-archive.
6770 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8476 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
67718477 else
67728478 # Exported symbols can be pulled into shared objects from archives
67738479 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
67748480 fi
67758481 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6776 # This is similar to how AIX traditionally builds its shared
6777 # libraries.
6778 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8482 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8483 # -brtl affects multiple linker settings, -berok does not and is overridden later
8484 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
8485 if test svr4 != "$with_aix_soname"; then
8486 # This is similar to how AIX traditionally builds its shared
8487 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
8488 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
8489 fi
8490 if test aix != "$with_aix_soname"; then
8491 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
8492 else
8493 # used by -dlpreopen to get the symbols
8494 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8495 fi
8496 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
67798497 fi
67808498 fi
67818499 ;;
67858503 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
67868504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
67878505 # support --undefined. This deserves some investigation. FIXME
6788 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8506 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
67898507 else
67908508 _LT_TAGVAR(ld_shlibs, $1)=no
67918509 fi
68138531 # Tell ltmain to make .lib files, not .a files.
68148532 libext=lib
68158533 # Tell ltmain to make .dll files, not .so files.
6816 shrext_cmds=".dll"
8534 shrext_cmds=.dll
68178535 # FIXME: Setting linknames here is a bad hack.
6818 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6819 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6820 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6821 else
6822 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6823 fi~
6824 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6825 linknames='
8536 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8537 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
8538 cp "$export_symbols" "$output_objdir/$soname.def";
8539 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8540 else
8541 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8542 fi~
8543 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8544 linknames='
68268545 # The linker will not automatically build a static lib if we build a DLL.
68278546 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
68288547 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
68298548 # Don't use ranlib
68308549 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
68318550 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6832 lt_tool_outputfile="@TOOL_OUTPUT@"~
6833 case $lt_outputfile in
6834 *.exe|*.EXE) ;;
6835 *)
6836 lt_outputfile="$lt_outputfile.exe"
6837 lt_tool_outputfile="$lt_tool_outputfile.exe"
6838 ;;
6839 esac~
6840 func_to_tool_file "$lt_outputfile"~
6841 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6842 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6843 $RM "$lt_outputfile.manifest";
6844 fi'
8551 lt_tool_outputfile="@TOOL_OUTPUT@"~
8552 case $lt_outputfile in
8553 *.exe|*.EXE) ;;
8554 *)
8555 lt_outputfile=$lt_outputfile.exe
8556 lt_tool_outputfile=$lt_tool_outputfile.exe
8557 ;;
8558 esac~
8559 func_to_tool_file "$lt_outputfile"~
8560 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8561 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8562 $RM "$lt_outputfile.manifest";
8563 fi'
68458564 ;;
68468565 *)
68478566 # g++
68488567 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
68498568 # as there is no search path for DLLs.
68508569 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6851 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
8570 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
68528571 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
68538572 _LT_TAGVAR(always_export_symbols, $1)=no
68548573 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
68558574
68568575 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6857 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6858 # If the export-symbols file already is a .def file (1st line
6859 # is EXPORTS), use it as is; otherwise, prepend...
6860 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6861 cp $export_symbols $output_objdir/$soname.def;
6862 else
6863 echo EXPORTS > $output_objdir/$soname.def;
6864 cat $export_symbols >> $output_objdir/$soname.def;
6865 fi~
6866 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8576 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8577 # If the export-symbols file already is a .def file, use it as
8578 # is; otherwise, prepend EXPORTS...
8579 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
8580 cp $export_symbols $output_objdir/$soname.def;
8581 else
8582 echo EXPORTS > $output_objdir/$soname.def;
8583 cat $export_symbols >> $output_objdir/$soname.def;
8584 fi~
8585 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
68678586 else
68688587 _LT_TAGVAR(ld_shlibs, $1)=no
68698588 fi
68728591 ;;
68738592 darwin* | rhapsody*)
68748593 _LT_DARWIN_LINKER_FEATURES($1)
8594 ;;
8595
8596 os2*)
8597 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8598 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8599 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8600 shrext_cmds=.dll
8601 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8602 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8603 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8604 $ECHO EXPORTS >> $output_objdir/$libname.def~
8605 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8606 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8607 emximp -o $lib $output_objdir/$libname.def'
8608 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8609 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8610 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8611 $ECHO EXPORTS >> $output_objdir/$libname.def~
8612 prefix_cmds="$SED"~
8613 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8614 prefix_cmds="$prefix_cmds -e 1d";
8615 fi~
8616 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8617 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8618 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8619 emximp -o $lib $output_objdir/$libname.def'
8620 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8621 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
68758622 ;;
68768623
68778624 dgux*)
69088655 _LT_TAGVAR(ld_shlibs, $1)=yes
69098656 ;;
69108657
6911 gnu*)
6912 ;;
6913
69148658 haiku*)
6915 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
69168660 _LT_TAGVAR(link_all_deplibs, $1)=yes
69178661 ;;
69188662
69198663 hpux9*)
6920 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
69218665 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6922 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8666 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
69238667 _LT_TAGVAR(hardcode_direct, $1)=yes
69248668 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
69258669 # but as the default
69318675 _LT_TAGVAR(ld_shlibs, $1)=no
69328676 ;;
69338677 aCC*)
6934 _LT_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'
8678 _LT_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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
69358679 # Commands to make compiler produce verbose output that lists
69368680 # what "hidden" libraries, object files and flags are used when
69378681 # linking a shared library.
69408684 # explicitly linking system object files so we need to strip them
69418685 # from the output so that they don't get included in the library
69428686 # dependencies.
6943 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8687 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
69448688 ;;
69458689 *)
6946 if test "$GXX" = yes; then
6947 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
8690 if test yes = "$GXX"; then
8691 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
69488692 else
69498693 # FIXME: insert proper C++ library support
69508694 _LT_TAGVAR(ld_shlibs, $1)=no
69548698 ;;
69558699
69568700 hpux10*|hpux11*)
6957 if test $with_gnu_ld = no; then
6958 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8701 if test no = "$with_gnu_ld"; then
8702 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
69598703 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
69608704
69618705 case $host_cpu in
69628706 hppa*64*|ia64*)
69638707 ;;
69648708 *)
6965 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8709 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
69668710 ;;
69678711 esac
69688712 fi
69888732 aCC*)
69898733 case $host_cpu in
69908734 hppa*64*)
6991 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8735 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
69928736 ;;
69938737 ia64*)
6994 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8738 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
69958739 ;;
69968740 *)
6997 _LT_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'
8741 _LT_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'
69988742 ;;
69998743 esac
70008744 # Commands to make compiler produce verbose output that lists
70058749 # explicitly linking system object files so we need to strip them
70068750 # from the output so that they don't get included in the library
70078751 # dependencies.
7008 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; func_echo_all "$list"'
8752 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; func_echo_all "$list"'
70098753 ;;
70108754 *)
7011 if test "$GXX" = yes; then
7012 if test $with_gnu_ld = no; then
8755 if test yes = "$GXX"; then
8756 if test no = "$with_gnu_ld"; then
70138757 case $host_cpu in
70148758 hppa*64*)
7015 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8759 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
70168760 ;;
70178761 ia64*)
7018 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8762 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
70198763 ;;
70208764 *)
7021 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8765 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
70228766 ;;
70238767 esac
70248768 fi
70338777 interix[[3-9]]*)
70348778 _LT_TAGVAR(hardcode_direct, $1)=no
70358779 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7036 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7037 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8780 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8781 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
70388782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
70398783 # Instead, shared libraries are loaded at an image base (0x10000000 by
70408784 # default) and relocated if they conflict, which is a slow very memory
70418785 # consuming and fragmenting process. To avoid this, we pick a random,
70428786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
70438787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7044 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7045 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8789 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
70468790 ;;
70478791 irix5* | irix6*)
70488792 case $cc_basename in
70498793 CC*)
70508794 # SGI C++
7051 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
70528796
70538797 # Archives containing C++ object files must be created using
70548798 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
70578801 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
70588802 ;;
70598803 *)
7060 if test "$GXX" = yes; then
7061 if test "$with_gnu_ld" = no; then
7062 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8804 if test yes = "$GXX"; then
8805 if test no = "$with_gnu_ld"; then
8806 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
70638807 else
7064 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
8808 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
70658809 fi
70668810 fi
70678811 _LT_TAGVAR(link_all_deplibs, $1)=yes
70688812 ;;
70698813 esac
7070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8814 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
70718815 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
70728816 _LT_TAGVAR(inherit_rpath, $1)=yes
70738817 ;;
70748818
7075 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8819 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
70768820 case $cc_basename in
70778821 KCC*)
70788822 # Kuck and Associates, Inc. (KAI) C++ Compiler
70808824 # KCC will only create a shared library if the output file
70818825 # ends with ".so" (or ".sl" for HP-UX), so rename the library
70828826 # to its proper name (with version) after linking.
7083 _LT_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'
7084 _LT_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'
8827 _LT_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'
8828 _LT_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'
70858829 # Commands to make compiler produce verbose output that lists
70868830 # what "hidden" libraries, object files and flags are used when
70878831 # linking a shared library.
70908834 # explicitly linking system object files so we need to strip them
70918835 # from the output so that they don't get included in the library
70928836 # dependencies.
7093 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; func_echo_all "$list"'
7094
7095 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7096 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8837 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; func_echo_all "$list"'
8838
8839 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8840 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
70978841
70988842 # Archives containing C++ object files must be created using
70998843 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
71078851 # earlier do not add the objects themselves.
71088852 case `$CC -V 2>&1` in
71098853 *"Version 7."*)
7110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7111 _LT_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'
8854 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8855 _LT_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'
71128856 ;;
71138857 *) # Version 8.0 or newer
71148858 tmp_idyn=
71158859 case $host_cpu in
71168860 ia64*) tmp_idyn=' -i_dynamic';;
71178861 esac
7118 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7119 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8862 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8863 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
71208864 ;;
71218865 esac
71228866 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7123 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7124 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7125 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8867 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8868 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8869 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
71268870 ;;
71278871 pgCC* | pgcpp*)
71288872 # Portland Group C++ compiler
71298873 case `$CC -V` in
71308874 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
71318875 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7132 rm -rf $tpldir~
7133 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7134 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8876 rm -rf $tpldir~
8877 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8878 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
71358879 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7136 rm -rf $tpldir~
7137 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7138 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7139 $RANLIB $oldlib'
8880 rm -rf $tpldir~
8881 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8882 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8883 $RANLIB $oldlib'
71408884 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7141 rm -rf $tpldir~
7142 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7143 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8885 rm -rf $tpldir~
8886 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8887 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
71448888 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7145 rm -rf $tpldir~
7146 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7147 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8889 rm -rf $tpldir~
8890 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8891 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
71488892 ;;
71498893 *) # Version 6 and above use weak symbols
7150 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7151 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8894 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8895 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
71528896 ;;
71538897 esac
71548898
7155 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7156 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7157 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8899 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
8900 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8901 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
71588902 ;;
71598903 cxx*)
71608904 # Compaq C++
7161 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7162 _LT_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'
8905 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8906 _LT_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'
71638907
71648908 runpath_var=LD_RUN_PATH
71658909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
71738917 # explicitly linking system object files so we need to strip them
71748918 # from the output so that they don't get included in the library
71758919 # dependencies.
7176 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
8920 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
71778921 ;;
71788922 xl* | mpixl* | bgxl*)
71798923 # IBM XL 8.0 on PPC, with GNU ld
7180 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7181 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7182 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7183 if test "x$supports_anon_versioning" = xyes; then
8924 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8925 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8926 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8927 if test yes = "$supports_anon_versioning"; then
71848928 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7186 echo "local: *; };" >> $output_objdir/$libname.ver~
7187 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8929 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8930 echo "local: *; };" >> $output_objdir/$libname.ver~
8931 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
71888932 fi
71898933 ;;
71908934 *)
71928936 *Sun\ C*)
71938937 # Sun C++ 5.9
71948938 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7195 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7196 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
8939 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8940 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
71978941 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7198 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8942 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
71998943 _LT_TAGVAR(compiler_needs_object, $1)=yes
72008944
72018945 # Not sure whether something based on
72538997 _LT_TAGVAR(ld_shlibs, $1)=yes
72548998 ;;
72558999
7256 openbsd2*)
7257 # C++ shared libraries are fairly broken
7258 _LT_TAGVAR(ld_shlibs, $1)=no
7259 ;;
7260
7261 openbsd*)
9000 openbsd* | bitrig*)
72629001 if test -f /usr/libexec/ld.so; then
72639002 _LT_TAGVAR(hardcode_direct, $1)=yes
72649003 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
72659004 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
72669005 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7267 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7269 _LT_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'
7270 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7271 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9006 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
9007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
9008 _LT_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'
9009 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
9010 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
72729011 fi
72739012 output_verbose_link_cmd=func_echo_all
72749013 else
72849023 # KCC will only create a shared library if the output file
72859024 # ends with ".so" (or ".sl" for HP-UX), so rename the library
72869025 # to its proper name (with version) after linking.
7287 _LT_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'
7288
7289 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9026 _LT_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'
9027
9028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
72909029 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
72919030
72929031 # Archives containing C++ object files must be created using
73049043 cxx*)
73059044 case $host in
73069045 osf3*)
7307 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7308 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7309 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9046 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
9047 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9048 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
73109049 ;;
73119050 *)
73129051 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7313 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9052 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
73149053 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7315 echo "-hidden">> $lib.exp~
7316 $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 ${output_objdir}/so_locations -o $lib~
7317 $RM $lib.exp'
9054 echo "-hidden">> $lib.exp~
9055 $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 $output_objdir/so_locations -o $lib~
9056 $RM $lib.exp'
73189057 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
73199058 ;;
73209059 esac
73299068 # explicitly linking system object files so we need to strip them
73309069 # from the output so that they don't get included in the library
73319070 # dependencies.
7332 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
9071 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
73339072 ;;
73349073 *)
7335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7336 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
9074 if test yes,no = "$GXX,$with_gnu_ld"; then
9075 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
73379076 case $host in
73389077 osf3*)
7339 _LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9078 _LT_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" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
73409079 ;;
73419080 *)
7342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9081 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
73439082 ;;
73449083 esac
73459084
7346 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
73479086 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
73489087
73499088 # Commands to make compiler produce verbose output that lists
73509089 # what "hidden" libraries, object files and flags are used when
73519090 # linking a shared library.
7352 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9091 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
73539092
73549093 else
73559094 # FIXME: insert proper C++ library support
73899128 # Sun C++ 4.2, 5.x and Centerline C++
73909129 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
73919130 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7392 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9131 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
73939132 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7394 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9133 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
73959134
73969135 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
73979136 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
73999138 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
74009139 *)
74019140 # The compiler driver will combine and reorder linker options,
7402 # but understands `-z linker_flag'.
9141 # but understands '-z linker_flag'.
74039142 # Supported since Solaris 2.6 (maybe 2.5.1?)
74049143 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
74059144 ;;
74169155 ;;
74179156 gcx*)
74189157 # Green Hills C++ Compiler
7419 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9158 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
74209159
74219160 # The C++ compiler must be used to create the archive.
74229161 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
74239162 ;;
74249163 *)
74259164 # GNU C++ compiler with Solaris linker
7426 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7427 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
9165 if test yes,no = "$GXX,$with_gnu_ld"; then
9166 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
74289167 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7429 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9168 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
74309169 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7431 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9170 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
74329171
74339172 # Commands to make compiler produce verbose output that lists
74349173 # what "hidden" libraries, object files and flags are used when
74359174 # linking a shared library.
7436 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
74379176 else
7438 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9177 # g++ 2.7 appears to require '-G' NOT '-shared' on this
74399178 # platform.
7440 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9179 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
74419180 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7442 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9181 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
74439182
74449183 # Commands to make compiler produce verbose output that lists
74459184 # what "hidden" libraries, object files and flags are used when
74469185 # linking a shared library.
7447 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9186 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
74489187 fi
74499188
7450 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
9189 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
74519190 case $host_os in
74529191 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
74539192 *)
7454 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9193 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
74559194 ;;
74569195 esac
74579196 fi
74609199 ;;
74619200
74629201 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7463 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9202 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
74649203 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
74659204 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
74669205 runpath_var='LD_RUN_PATH'
74679206
74689207 case $cc_basename in
74699208 CC*)
7470 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7471 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9209 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9210 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
74729211 ;;
74739212 *)
7474 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7475 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9213 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9214 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
74769215 ;;
74779216 esac
74789217 ;;
74799218
74809219 sysv5* | sco3.2v5* | sco5v6*)
7481 # Note: We can NOT use -z defs as we might desire, because we do not
9220 # Note: We CANNOT use -z defs as we might desire, because we do not
74829221 # link with -lc, and that would cause any symbols used from libc to
74839222 # always be unresolved, which means just about no library would
74849223 # ever link correctly. If we're not using GNU ld we use -z text
74859224 # though, which does catch some bad symbols but isn't as heavy-handed
74869225 # as -z defs.
7487 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7488 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
9226 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
9227 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
74899228 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
74909229 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7491 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
9230 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
74929231 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
74939232 _LT_TAGVAR(link_all_deplibs, $1)=yes
7494 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9233 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
74959234 runpath_var='LD_RUN_PATH'
74969235
74979236 case $cc_basename in
74989237 CC*)
7499 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7500 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9238 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9239 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75019240 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7502 '"$_LT_TAGVAR(old_archive_cmds, $1)"
9241 '"$_LT_TAGVAR(old_archive_cmds, $1)"
75039242 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7504 '"$_LT_TAGVAR(reload_cmds, $1)"
9243 '"$_LT_TAGVAR(reload_cmds, $1)"
75059244 ;;
75069245 *)
7507 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7508 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9246 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9247 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75099248 ;;
75109249 esac
75119250 ;;
75369275 esac
75379276
75389277 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7539 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7540
7541 _LT_TAGVAR(GCC, $1)="$GXX"
7542 _LT_TAGVAR(LD, $1)="$LD"
9278 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
9279
9280 _LT_TAGVAR(GCC, $1)=$GXX
9281 _LT_TAGVAR(LD, $1)=$LD
75439282
75449283 ## CAVEAT EMPTOR:
75459284 ## There is no encapsulation within the following macros, do not change
75669305 lt_cv_path_LD=$lt_save_path_LD
75679306 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
75689307 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7569 fi # test "$_lt_caught_CXX_error" != yes
9308 fi # test yes != "$_lt_caught_CXX_error"
75709309
75719310 AC_LANG_POP
75729311 ])# _LT_LANG_CXX_CONFIG
75889327 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
75899328 func_stripname_cnf ()
75909329 {
7591 case ${2} in
7592 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7593 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9330 case @S|@2 in
9331 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
9332 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
75949333 esac
75959334 } # func_stripname_cnf
75969335 ])# _LT_FUNC_STRIPNAME_CNF
9336
75979337
75989338 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
75999339 # ---------------------------------
76789418 pre_test_object_deps_done=no
76799419
76809420 for p in `eval "$output_verbose_link_cmd"`; do
7681 case ${prev}${p} in
9421 case $prev$p in
76829422
76839423 -L* | -R* | -l*)
76849424 # Some compilers place space between "-{L,R}" and the path.
76859425 # Remove the space.
7686 if test $p = "-L" ||
7687 test $p = "-R"; then
9426 if test x-L = "$p" ||
9427 test x-R = "$p"; then
76889428 prev=$p
76899429 continue
76909430 fi
77009440 case $p in
77019441 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
77029442 esac
7703 if test "$pre_test_object_deps_done" = no; then
7704 case ${prev} in
9443 if test no = "$pre_test_object_deps_done"; then
9444 case $prev in
77059445 -L | -R)
77069446 # Internal compiler library paths should come after those
77079447 # provided the user. The postdeps already come after the
77089448 # user supplied libs so there is no need to process them.
77099449 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7710 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
9450 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
77119451 else
7712 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
9452 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
77139453 fi
77149454 ;;
77159455 # The "-l" case would never come before the object being
77179457 esac
77189458 else
77199459 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7720 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
9460 _LT_TAGVAR(postdeps, $1)=$prev$p
77219461 else
7722 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
9462 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
77239463 fi
77249464 fi
77259465 prev=
77349474 continue
77359475 fi
77369476
7737 if test "$pre_test_object_deps_done" = no; then
9477 if test no = "$pre_test_object_deps_done"; then
77389478 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7739 _LT_TAGVAR(predep_objects, $1)="$p"
9479 _LT_TAGVAR(predep_objects, $1)=$p
77409480 else
77419481 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
77429482 fi
77439483 else
77449484 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7745 _LT_TAGVAR(postdep_objects, $1)="$p"
9485 _LT_TAGVAR(postdep_objects, $1)=$p
77469486 else
77479487 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
77489488 fi
77739513 _LT_TAGVAR(postdep_objects,$1)=
77749514 _LT_TAGVAR(postdeps,$1)=
77759515 ;;
7776
7777 linux*)
7778 case `$CC -V 2>&1 | sed 5q` in
7779 *Sun\ C*)
7780 # Sun C++ 5.9
7781
7782 # The more standards-conforming stlport4 library is
7783 # incompatible with the Cstd library. Avoid specifying
7784 # it if it's in CXXFLAGS. Ignore libCrun as
7785 # -library=stlport4 depends on it.
7786 case " $CXX $CXXFLAGS " in
7787 *" -library=stlport4 "*)
7788 solaris_use_stlport4=yes
7789 ;;
7790 esac
7791
7792 if test "$solaris_use_stlport4" != yes; then
7793 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7794 fi
7795 ;;
7796 esac
7797 ;;
7798
7799 solaris*)
7800 case $cc_basename in
7801 CC* | sunCC*)
7802 # The more standards-conforming stlport4 library is
7803 # incompatible with the Cstd library. Avoid specifying
7804 # it if it's in CXXFLAGS. Ignore libCrun as
7805 # -library=stlport4 depends on it.
7806 case " $CXX $CXXFLAGS " in
7807 *" -library=stlport4 "*)
7808 solaris_use_stlport4=yes
7809 ;;
7810 esac
7811
7812 # Adding this requires a known-good setup of shared libraries for
7813 # Sun compiler versions before 5.6, else PIC objects from an old
7814 # archive will be linked into the output, leading to subtle bugs.
7815 if test "$solaris_use_stlport4" != yes; then
7816 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7817 fi
7818 ;;
7819 esac
7820 ;;
78219516 esac
78229517 ])
78239518
78269521 esac
78279522 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
78289523 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7829 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
9524 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
78309525 fi
78319526 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
78329527 [The directories searched by this compiler when creating a shared library])
78469541 # --------------------------
78479542 # Ensure that the configuration variables for a Fortran 77 compiler are
78489543 # suitably defined. These variables are subsequently used by _LT_CONFIG
7849 # to write the compiler configuration to `libtool'.
9544 # to write the compiler configuration to 'libtool'.
78509545 m4_defun([_LT_LANG_F77_CONFIG],
78519546 [AC_LANG_PUSH(Fortran 77)
7852 if test -z "$F77" || test "X$F77" = "Xno"; then
9547 if test -z "$F77" || test no = "$F77"; then
78539548 _lt_disable_F77=yes
78549549 fi
78559550
78869581 # the F77 compiler isn't working. Some variables (like enable_shared)
78879582 # are currently assumed to apply to all compilers on this platform,
78889583 # and will be corrupted by setting them based on a non-working compiler.
7889 if test "$_lt_disable_F77" != yes; then
9584 if test yes != "$_lt_disable_F77"; then
78909585 # Code to be used in simple compile tests
78919586 lt_simple_compile_test_code="\
78929587 subroutine t
79089603 _LT_LINKER_BOILERPLATE
79099604
79109605 # Allow CC to be a program name with arguments.
7911 lt_save_CC="$CC"
9606 lt_save_CC=$CC
79129607 lt_save_GCC=$GCC
79139608 lt_save_CFLAGS=$CFLAGS
79149609 CC=${F77-"f77"}
79229617 AC_MSG_RESULT([$can_build_shared])
79239618
79249619 AC_MSG_CHECKING([whether to build shared libraries])
7925 test "$can_build_shared" = "no" && enable_shared=no
9620 test no = "$can_build_shared" && enable_shared=no
79269621
79279622 # On AIX, shared libraries and static libraries use the same namespace, and
79289623 # are all built from PIC.
79299624 case $host_os in
79309625 aix3*)
7931 test "$enable_shared" = yes && enable_static=no
9626 test yes = "$enable_shared" && enable_static=no
79329627 if test -n "$RANLIB"; then
79339628 archive_cmds="$archive_cmds~\$RANLIB \$lib"
79349629 postinstall_cmds='$RANLIB $lib'
79359630 fi
79369631 ;;
79379632 aix[[4-9]]*)
7938 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7939 test "$enable_shared" = yes && enable_static=no
9633 if test ia64 != "$host_cpu"; then
9634 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
9635 yes,aix,yes) ;; # shared object as lib.so file only
9636 yes,svr4,*) ;; # shared object as lib.so archive member only
9637 yes,*) enable_static=no ;; # shared object in lib.a archive as well
9638 esac
79409639 fi
79419640 ;;
79429641 esac
79449643
79459644 AC_MSG_CHECKING([whether to build static libraries])
79469645 # Make sure either enable_shared or enable_static is yes.
7947 test "$enable_shared" = yes || enable_static=yes
9646 test yes = "$enable_shared" || enable_static=yes
79489647 AC_MSG_RESULT([$enable_static])
79499648
7950 _LT_TAGVAR(GCC, $1)="$G77"
7951 _LT_TAGVAR(LD, $1)="$LD"
9649 _LT_TAGVAR(GCC, $1)=$G77
9650 _LT_TAGVAR(LD, $1)=$LD
79529651
79539652 ## CAVEAT EMPTOR:
79549653 ## There is no encapsulation within the following macros, do not change
79659664 fi # test -n "$compiler"
79669665
79679666 GCC=$lt_save_GCC
7968 CC="$lt_save_CC"
7969 CFLAGS="$lt_save_CFLAGS"
7970 fi # test "$_lt_disable_F77" != yes
9667 CC=$lt_save_CC
9668 CFLAGS=$lt_save_CFLAGS
9669 fi # test yes != "$_lt_disable_F77"
79719670
79729671 AC_LANG_POP
79739672 ])# _LT_LANG_F77_CONFIG
79779676 # -------------------------
79789677 # Ensure that the configuration variables for a Fortran compiler are
79799678 # suitably defined. These variables are subsequently used by _LT_CONFIG
7980 # to write the compiler configuration to `libtool'.
9679 # to write the compiler configuration to 'libtool'.
79819680 m4_defun([_LT_LANG_FC_CONFIG],
79829681 [AC_LANG_PUSH(Fortran)
79839682
7984 if test -z "$FC" || test "X$FC" = "Xno"; then
9683 if test -z "$FC" || test no = "$FC"; then
79859684 _lt_disable_FC=yes
79869685 fi
79879686
80189717 # the FC compiler isn't working. Some variables (like enable_shared)
80199718 # are currently assumed to apply to all compilers on this platform,
80209719 # and will be corrupted by setting them based on a non-working compiler.
8021 if test "$_lt_disable_FC" != yes; then
9720 if test yes != "$_lt_disable_FC"; then
80229721 # Code to be used in simple compile tests
80239722 lt_simple_compile_test_code="\
80249723 subroutine t
80409739 _LT_LINKER_BOILERPLATE
80419740
80429741 # Allow CC to be a program name with arguments.
8043 lt_save_CC="$CC"
9742 lt_save_CC=$CC
80449743 lt_save_GCC=$GCC
80459744 lt_save_CFLAGS=$CFLAGS
80469745 CC=${FC-"f95"}
80569755 AC_MSG_RESULT([$can_build_shared])
80579756
80589757 AC_MSG_CHECKING([whether to build shared libraries])
8059 test "$can_build_shared" = "no" && enable_shared=no
9758 test no = "$can_build_shared" && enable_shared=no
80609759
80619760 # On AIX, shared libraries and static libraries use the same namespace, and
80629761 # are all built from PIC.
80639762 case $host_os in
80649763 aix3*)
8065 test "$enable_shared" = yes && enable_static=no
9764 test yes = "$enable_shared" && enable_static=no
80669765 if test -n "$RANLIB"; then
80679766 archive_cmds="$archive_cmds~\$RANLIB \$lib"
80689767 postinstall_cmds='$RANLIB $lib'
80699768 fi
80709769 ;;
80719770 aix[[4-9]]*)
8072 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8073 test "$enable_shared" = yes && enable_static=no
9771 if test ia64 != "$host_cpu"; then
9772 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
9773 yes,aix,yes) ;; # shared object as lib.so file only
9774 yes,svr4,*) ;; # shared object as lib.so archive member only
9775 yes,*) enable_static=no ;; # shared object in lib.a archive as well
9776 esac
80749777 fi
80759778 ;;
80769779 esac
80789781
80799782 AC_MSG_CHECKING([whether to build static libraries])
80809783 # Make sure either enable_shared or enable_static is yes.
8081 test "$enable_shared" = yes || enable_static=yes
9784 test yes = "$enable_shared" || enable_static=yes
80829785 AC_MSG_RESULT([$enable_static])
80839786
8084 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
8085 _LT_TAGVAR(LD, $1)="$LD"
9787 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
9788 _LT_TAGVAR(LD, $1)=$LD
80869789
80879790 ## CAVEAT EMPTOR:
80889791 ## There is no encapsulation within the following macros, do not change
81029805 GCC=$lt_save_GCC
81039806 CC=$lt_save_CC
81049807 CFLAGS=$lt_save_CFLAGS
8105 fi # test "$_lt_disable_FC" != yes
9808 fi # test yes != "$_lt_disable_FC"
81069809
81079810 AC_LANG_POP
81089811 ])# _LT_LANG_FC_CONFIG
81129815 # --------------------------
81139816 # Ensure that the configuration variables for the GNU Java Compiler compiler
81149817 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8115 # to write the compiler configuration to `libtool'.
9818 # to write the compiler configuration to 'libtool'.
81169819 m4_defun([_LT_LANG_GCJ_CONFIG],
81179820 [AC_REQUIRE([LT_PROG_GCJ])dnl
81189821 AC_LANG_SAVE
81469849 CFLAGS=$GCJFLAGS
81479850 compiler=$CC
81489851 _LT_TAGVAR(compiler, $1)=$CC
8149 _LT_TAGVAR(LD, $1)="$LD"
9852 _LT_TAGVAR(LD, $1)=$LD
81509853 _LT_CC_BASENAME([$compiler])
81519854
81529855 # GCJ did not exist at the time GCC didn't implicitly link libc in.
81799882 # --------------------------
81809883 # Ensure that the configuration variables for the GNU Go compiler
81819884 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8182 # to write the compiler configuration to `libtool'.
9885 # to write the compiler configuration to 'libtool'.
81839886 m4_defun([_LT_LANG_GO_CONFIG],
81849887 [AC_REQUIRE([LT_PROG_GO])dnl
81859888 AC_LANG_SAVE
82139916 CFLAGS=$GOFLAGS
82149917 compiler=$CC
82159918 _LT_TAGVAR(compiler, $1)=$CC
8216 _LT_TAGVAR(LD, $1)="$LD"
9919 _LT_TAGVAR(LD, $1)=$LD
82179920 _LT_CC_BASENAME([$compiler])
82189921
82199922 # Go did not exist at the time GCC didn't implicitly link libc in.
82469949 # -------------------------
82479950 # Ensure that the configuration variables for the Windows resource compiler
82489951 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8249 # to write the compiler configuration to `libtool'.
9952 # to write the compiler configuration to 'libtool'.
82509953 m4_defun([_LT_LANG_RC_CONFIG],
82519954 [AC_REQUIRE([LT_PROG_RC])dnl
82529955 AC_LANG_SAVE
82629965 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
82639966
82649967 # Code to be used in simple link tests
8265 lt_simple_link_test_code="$lt_simple_compile_test_code"
9968 lt_simple_link_test_code=$lt_simple_compile_test_code
82669969
82679970 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
82689971 _LT_TAG_COMPILER
82729975 _LT_LINKER_BOILERPLATE
82739976
82749977 # Allow CC to be a program name with arguments.
8275 lt_save_CC="$CC"
9978 lt_save_CC=$CC
82769979 lt_save_CFLAGS=$CFLAGS
82779980 lt_save_GCC=$GCC
82789981 GCC=
830110004 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
830210005 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
830310006 [AC_CHECK_TOOL(GCJ, gcj,)
8304 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
10007 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
830510008 AC_SUBST(GCJFLAGS)])])[]dnl
830610009 ])
830710010
841010113 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
841110114 # along with /bin/sed that truncates output.
841210115 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8413 test ! -f $lt_ac_sed && continue
10116 test ! -f "$lt_ac_sed" && continue
841410117 cat /dev/null > conftest.in
841510118 lt_ac_count=0
841610119 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
842710130 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
842810131 cmp -s conftest.out conftest.nl || break
842910132 # 10000 chars as input seems more than enough
8430 test $lt_ac_count -gt 10 && break
10133 test 10 -lt "$lt_ac_count" && break
843110134 lt_ac_count=`expr $lt_ac_count + 1`
8432 if test $lt_ac_count -gt $lt_ac_max; then
10135 if test "$lt_ac_count" -gt "$lt_ac_max"; then
843310136 lt_ac_max=$lt_ac_count
843410137 lt_cv_path_SED=$lt_ac_sed
843510138 fi
845310156 # Find out whether the shell is Bourne or XSI compatible,
845410157 # or has some other useful features.
845510158 m4_defun([_LT_CHECK_SHELL_FEATURES],
8456 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8457 # Try some XSI features
8458 xsi_shell=no
8459 ( _lt_dummy="a/b/c"
8460 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8461 = c,a/b,b/c, \
8462 && eval 'test $(( 1 + 1 )) -eq 2 \
8463 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8464 && xsi_shell=yes
8465 AC_MSG_RESULT([$xsi_shell])
8466 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8467
8468 AC_MSG_CHECKING([whether the shell understands "+="])
8469 lt_shell_append=no
8470 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8471 >/dev/null 2>&1 \
8472 && lt_shell_append=yes
8473 AC_MSG_RESULT([$lt_shell_append])
8474 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8475
8476 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10159 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
847710160 lt_unset=unset
847810161 else
847910162 lt_unset=false
849710180 ])# _LT_CHECK_SHELL_FEATURES
849810181
849910182
8500 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8501 # ------------------------------------------------------
8502 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8503 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8504 m4_defun([_LT_PROG_FUNCTION_REPLACE],
8505 [dnl {
8506 sed -e '/^$1 ()$/,/^} # $1 /c\
8507 $1 ()\
8508 {\
8509 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8510 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8511 && mv -f "$cfgfile.tmp" "$cfgfile" \
8512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8513 test 0 -eq $? || _lt_function_replace_fail=:
8514 ])
8515
8516
8517 # _LT_PROG_REPLACE_SHELLFNS
8518 # -------------------------
8519 # Replace existing portable implementations of several shell functions with
8520 # equivalent extended shell implementations where those features are available..
8521 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8522 [if test x"$xsi_shell" = xyes; then
8523 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8524 case ${1} in
8525 */*) func_dirname_result="${1%/*}${2}" ;;
8526 * ) func_dirname_result="${3}" ;;
8527 esac])
8528
8529 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8530 func_basename_result="${1##*/}"])
8531
8532 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8533 case ${1} in
8534 */*) func_dirname_result="${1%/*}${2}" ;;
8535 * ) func_dirname_result="${3}" ;;
8536 esac
8537 func_basename_result="${1##*/}"])
8538
8539 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8540 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8541 # positional parameters, so assign one to ordinary parameter first.
8542 func_stripname_result=${3}
8543 func_stripname_result=${func_stripname_result#"${1}"}
8544 func_stripname_result=${func_stripname_result%"${2}"}])
8545
8546 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8547 func_split_long_opt_name=${1%%=*}
8548 func_split_long_opt_arg=${1#*=}])
8549
8550 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8551 func_split_short_opt_arg=${1#??}
8552 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8553
8554 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8555 case ${1} in
8556 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8557 *) func_lo2o_result=${1} ;;
8558 esac])
8559
8560 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8561
8562 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8563
8564 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8565 fi
8566
8567 if test x"$lt_shell_append" = xyes; then
8568 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8569
8570 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8571 func_quote_for_eval "${2}"
8572 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8573 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8574
8575 # Save a `func_append' function call where possible by direct use of '+='
8576 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8577 && mv -f "$cfgfile.tmp" "$cfgfile" \
8578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8579 test 0 -eq $? || _lt_function_replace_fail=:
8580 else
8581 # Save a `func_append' function call even when '+=' is not available
8582 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8583 && mv -f "$cfgfile.tmp" "$cfgfile" \
8584 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8585 test 0 -eq $? || _lt_function_replace_fail=:
8586 fi
8587
8588 if test x"$_lt_function_replace_fail" = x":"; then
8589 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8590 fi
8591 ])
8592
859310183 # _LT_PATH_CONVERSION_FUNCTIONS
859410184 # -----------------------------
8595 # Determine which file name conversion functions should be used by
10185 # Determine what file name conversion functions should be used by
859610186 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
859710187 # for certain cross-compile configurations and native mingw.
859810188 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
865910249
866010250 # Helper functions for option handling. -*- Autoconf -*-
866110251 #
8662 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8663 # Inc.
10252 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
10253 # Foundation, Inc.
866410254 # Written by Gary V. Vaughan, 2004
866510255 #
866610256 # This file is free software; the Free Software Foundation gives
866710257 # unlimited permission to copy and/or distribute it, with or without
866810258 # modifications, as long as this notice is preserved.
866910259
8670 # serial 7 ltoptions.m4
10260 # serial 8 ltoptions.m4
867110261
867210262 # This is to help aclocal find these macros, as it can't see m4_define.
867310263 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
868810278 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
868910279 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
869010280 _LT_MANGLE_DEFUN([$1], [$2]),
8691 [m4_warning([Unknown $1 option `$2'])])[]dnl
10281 [m4_warning([Unknown $1 option '$2'])])[]dnl
869210282 ])
869310283
869410284
873410324 dnl
873510325 dnl If no reference was made to various pairs of opposing options, then
873610326 dnl we run the default mode handler for the pair. For example, if neither
8737 dnl `shared' nor `disable-shared' was passed, we enable building of shared
10327 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
873810328 dnl archives by default:
873910329 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
874010330 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
874110331 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
874210332 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8743 [_LT_ENABLE_FAST_INSTALL])
10333 [_LT_ENABLE_FAST_INSTALL])
10334 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
10335 [_LT_WITH_AIX_SONAME([aix])])
874410336 ])
874510337 ])# _LT_SET_OPTIONS
874610338
876810360 [_LT_SET_OPTION([LT_INIT], [dlopen])
876910361 AC_DIAGNOSE([obsolete],
877010362 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8771 put the `dlopen' option into LT_INIT's first parameter.])
10363 put the 'dlopen' option into LT_INIT's first parameter.])
877210364 ])
877310365
877410366 dnl aclocal-1.4 backwards compatibility:
880410396 _LT_SET_OPTION([LT_INIT], [win32-dll])
880510397 AC_DIAGNOSE([obsolete],
880610398 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8807 put the `win32-dll' option into LT_INIT's first parameter.])
10399 put the 'win32-dll' option into LT_INIT's first parameter.])
880810400 ])
880910401
881010402 dnl aclocal-1.4 backwards compatibility:
881310405
881410406 # _LT_ENABLE_SHARED([DEFAULT])
881510407 # ----------------------------
8816 # implement the --enable-shared flag, and supports the `shared' and
8817 # `disable-shared' LT_INIT options.
8818 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
10408 # implement the --enable-shared flag, and supports the 'shared' and
10409 # 'disable-shared' LT_INIT options.
10410 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
881910411 m4_define([_LT_ENABLE_SHARED],
882010412 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
882110413 AC_ARG_ENABLE([shared],
882810420 *)
882910421 enable_shared=no
883010422 # Look at the argument we got. We use all the common list separators.
8831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10423 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
883210424 for pkg in $enableval; do
8833 IFS="$lt_save_ifs"
10425 IFS=$lt_save_ifs
883410426 if test "X$pkg" = "X$p"; then
883510427 enable_shared=yes
883610428 fi
883710429 done
8838 IFS="$lt_save_ifs"
10430 IFS=$lt_save_ifs
883910431 ;;
884010432 esac],
884110433 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
886710459
886810460 # _LT_ENABLE_STATIC([DEFAULT])
886910461 # ----------------------------
8870 # implement the --enable-static flag, and support the `static' and
8871 # `disable-static' LT_INIT options.
8872 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
10462 # implement the --enable-static flag, and support the 'static' and
10463 # 'disable-static' LT_INIT options.
10464 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
887310465 m4_define([_LT_ENABLE_STATIC],
887410466 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
887510467 AC_ARG_ENABLE([static],
888210474 *)
888310475 enable_static=no
888410476 # Look at the argument we got. We use all the common list separators.
8885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10477 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
888610478 for pkg in $enableval; do
8887 IFS="$lt_save_ifs"
10479 IFS=$lt_save_ifs
888810480 if test "X$pkg" = "X$p"; then
888910481 enable_static=yes
889010482 fi
889110483 done
8892 IFS="$lt_save_ifs"
10484 IFS=$lt_save_ifs
889310485 ;;
889410486 esac],
889510487 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
892110513
892210514 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
892310515 # ----------------------------------
8924 # implement the --enable-fast-install flag, and support the `fast-install'
8925 # and `disable-fast-install' LT_INIT options.
8926 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
10516 # implement the --enable-fast-install flag, and support the 'fast-install'
10517 # and 'disable-fast-install' LT_INIT options.
10518 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
892710519 m4_define([_LT_ENABLE_FAST_INSTALL],
892810520 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
892910521 AC_ARG_ENABLE([fast-install],
893610528 *)
893710529 enable_fast_install=no
893810530 # Look at the argument we got. We use all the common list separators.
8939 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10531 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
894010532 for pkg in $enableval; do
8941 IFS="$lt_save_ifs"
10533 IFS=$lt_save_ifs
894210534 if test "X$pkg" = "X$p"; then
894310535 enable_fast_install=yes
894410536 fi
894510537 done
8946 IFS="$lt_save_ifs"
10538 IFS=$lt_save_ifs
894710539 ;;
894810540 esac],
894910541 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
896010552 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
896110553 AC_DIAGNOSE([obsolete],
896210554 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8963 the `fast-install' option into LT_INIT's first parameter.])
10555 the 'fast-install' option into LT_INIT's first parameter.])
896410556 ])
896510557
896610558 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
896710559 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
896810560 AC_DIAGNOSE([obsolete],
896910561 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8970 the `disable-fast-install' option into LT_INIT's first parameter.])
10562 the 'disable-fast-install' option into LT_INIT's first parameter.])
897110563 ])
897210564
897310565 dnl aclocal-1.4 backwards compatibility:
897510567 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
897610568
897710569
10570 # _LT_WITH_AIX_SONAME([DEFAULT])
10571 # ----------------------------------
10572 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
10573 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
10574 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
10575 m4_define([_LT_WITH_AIX_SONAME],
10576 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
10577 shared_archive_member_spec=
10578 case $host,$enable_shared in
10579 power*-*-aix[[5-9]]*,yes)
10580 AC_MSG_CHECKING([which variant of shared library versioning to provide])
10581 AC_ARG_WITH([aix-soname],
10582 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
10583 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
10584 [case $withval in
10585 aix|svr4|both)
10586 ;;
10587 *)
10588 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
10589 ;;
10590 esac
10591 lt_cv_with_aix_soname=$with_aix_soname],
10592 [AC_CACHE_VAL([lt_cv_with_aix_soname],
10593 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
10594 with_aix_soname=$lt_cv_with_aix_soname])
10595 AC_MSG_RESULT([$with_aix_soname])
10596 if test aix != "$with_aix_soname"; then
10597 # For the AIX way of multilib, we name the shared archive member
10598 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10599 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10600 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10601 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10602 if test 64 = "${OBJECT_MODE-32}"; then
10603 shared_archive_member_spec=shr_64
10604 else
10605 shared_archive_member_spec=shr
10606 fi
10607 fi
10608 ;;
10609 *)
10610 with_aix_soname=aix
10611 ;;
10612 esac
10613
10614 _LT_DECL([], [shared_archive_member_spec], [0],
10615 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
10616 ])# _LT_WITH_AIX_SONAME
10617
10618 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
10619 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
10620 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
10621
10622
897810623 # _LT_WITH_PIC([MODE])
897910624 # --------------------
8980 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
10625 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
898110626 # LT_INIT options.
8982 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
10627 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
898310628 m4_define([_LT_WITH_PIC],
898410629 [AC_ARG_WITH([pic],
898510630 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
899010635 *)
899110636 pic_mode=default
899210637 # Look at the argument we got. We use all the common list separators.
8993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10638 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
899410639 for lt_pkg in $withval; do
8995 IFS="$lt_save_ifs"
10640 IFS=$lt_save_ifs
899610641 if test "X$lt_pkg" = "X$lt_p"; then
899710642 pic_mode=yes
899810643 fi
899910644 done
9000 IFS="$lt_save_ifs"
10645 IFS=$lt_save_ifs
900110646 ;;
900210647 esac],
9003 [pic_mode=default])
9004
9005 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
10648 [pic_mode=m4_default([$1], [default])])
900610649
900710650 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
900810651 ])# _LT_WITH_PIC
901510658 [_LT_SET_OPTION([LT_INIT], [pic-only])
901610659 AC_DIAGNOSE([obsolete],
901710660 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9018 put the `pic-only' option into LT_INIT's first parameter.])
10661 put the 'pic-only' option into LT_INIT's first parameter.])
901910662 ])
902010663
902110664 dnl aclocal-1.4 backwards compatibility:
903810681
903910682 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
904010683 #
9041 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
10684 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
10685 # Foundation, Inc.
904210686 # Written by Gary V. Vaughan, 2004
904310687 #
904410688 # This file is free software; the Free Software Foundation gives
907110715 # ------------
907210716 # Manipulate m4 lists.
907310717 # These macros are necessary as long as will still need to support
9074 # Autoconf-2.59 which quotes differently.
10718 # Autoconf-2.59, which quotes differently.
907510719 m4_define([lt_car], [[$1]])
907610720 m4_define([lt_cdr],
907710721 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
908210726
908310727 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
908410728 # ------------------------------------------
9085 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
10729 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
908610730 # Note that neither SEPARATOR nor STRING are expanded; they are appended
908710731 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
908810732 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
916210806
916310807 # ltversion.m4 -- version numbers -*- Autoconf -*-
916410808 #
9165 # Copyright (C) 2004 Free Software Foundation, Inc.
10809 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
916610810 # Written by Scott James Remnant, 2004
916710811 #
916810812 # This file is free software; the Free Software Foundation gives
917110815
917210816 # @configure_input@
917310817
9174 # serial 3337 ltversion.m4
10818 # serial 4179 ltversion.m4
917510819 # This file is part of GNU Libtool
917610820
9177 m4_define([LT_PACKAGE_VERSION], [2.4.2])
9178 m4_define([LT_PACKAGE_REVISION], [1.3337])
10821 m4_define([LT_PACKAGE_VERSION], [2.4.6])
10822 m4_define([LT_PACKAGE_REVISION], [2.4.6])
917910823
918010824 AC_DEFUN([LTVERSION_VERSION],
9181 [macro_version='2.4.2'
9182 macro_revision='1.3337'
10825 [macro_version='2.4.6'
10826 macro_revision='2.4.6'
918310827 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
918410828 _LT_DECL(, macro_revision, 0)
918510829 ])
918610830
918710831 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
918810832 #
9189 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
10833 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
10834 # Foundation, Inc.
919010835 # Written by Scott James Remnant, 2004.
919110836 #
919210837 # This file is free software; the Free Software Foundation gives
919710842
919810843 # These exist entirely to fool aclocal when bootstrapping libtool.
919910844 #
9200 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
10845 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
920110846 # which have later been changed to m4_define as they aren't part of the
920210847 # exported API, or moved to Autoconf or Automake where they belong.
920310848 #
921110856 # included after everything else. This provides aclocal with the
921210857 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
921310858 # because those macros already exist, or will be overwritten later.
9214 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
10859 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
921510860 #
921610861 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
921710862 # Yes, that means every name once taken will need to remain here until
928410929 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
928510930
928610931 # nls.m4 serial 5 (gettext-0.18)
9287 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019 Free Software
10932 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software
928810933 dnl Foundation, Inc.
928910934 dnl This file is free software; the Free Software Foundation
929010935 dnl gives unlimited permission to copy and/or distribute it,
959211237 AS_VAR_IF([$1], [""], [$5], [$4])dnl
959311238 ])dnl PKG_CHECK_VAR
959411239
9595 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
9596 #
9597 # This file is free software; the Free Software Foundation
9598 # gives unlimited permission to copy and/or distribute it,
9599 # with or without modifications, as long as this notice is preserved.
9600
9601 # AM_AUTOMAKE_VERSION(VERSION)
9602 # ----------------------------
9603 # Automake X.Y traces this macro to ensure aclocal.m4 has been
9604 # generated from the m4 files accompanying Automake X.Y.
9605 # (This private macro should not be called outside this file.)
9606 AC_DEFUN([AM_AUTOMAKE_VERSION],
9607 [am__api_version='1.14'
9608 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9609 dnl require some minimum version. Point them to the right macro.
9610 m4_if([$1], [1.14.1], [],
9611 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9612 ])
9613
9614 # _AM_AUTOCONF_VERSION(VERSION)
9615 # -----------------------------
9616 # aclocal traces this macro to find the Autoconf version.
9617 # This is a private macro too. Using m4_define simplifies
9618 # the logic in aclocal, which can simply ignore this definition.
9619 m4_define([_AM_AUTOCONF_VERSION], [])
9620
9621 # AM_SET_CURRENT_AUTOMAKE_VERSION
9622 # -------------------------------
9623 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9624 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9625 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9626 [AM_AUTOMAKE_VERSION([1.14.1])dnl
9627 m4_ifndef([AC_AUTOCONF_VERSION],
9628 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9629 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9630
9631 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9632
9633 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
9634 #
9635 # This file is free software; the Free Software Foundation
9636 # gives unlimited permission to copy and/or distribute it,
9637 # with or without modifications, as long as this notice is preserved.
9638
9639 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9640 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
9641 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
9642 #
9643 # Of course, Automake must honor this variable whenever it calls a
9644 # tool from the auxiliary directory. The problem is that $srcdir (and
9645 # therefore $ac_aux_dir as well) can be either absolute or relative,
9646 # depending on how configure is run. This is pretty annoying, since
9647 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
9648 # source directory, any form will work fine, but in subdirectories a
9649 # relative path needs to be adjusted first.
9650 #
9651 # $ac_aux_dir/missing
9652 # fails when called from a subdirectory if $ac_aux_dir is relative
9653 # $top_srcdir/$ac_aux_dir/missing
9654 # fails if $ac_aux_dir is absolute,
9655 # fails when called from a subdirectory in a VPATH build with
9656 # a relative $ac_aux_dir
9657 #
9658 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9659 # are both prefixed by $srcdir. In an in-source build this is usually
9660 # harmless because $srcdir is '.', but things will broke when you
9661 # start a VPATH build or use an absolute $srcdir.
9662 #
9663 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9664 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9665 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9666 # and then we would define $MISSING as
9667 # MISSING="\${SHELL} $am_aux_dir/missing"
9668 # This will work as long as MISSING is not called from configure, because
9669 # unfortunately $(top_srcdir) has no meaning in configure.
9670 # However there are other variables, like CC, which are often used in
9671 # configure, and could therefore not use this "fixed" $ac_aux_dir.
9672 #
9673 # Another solution, used here, is to always expand $ac_aux_dir to an
9674 # absolute PATH. The drawback is that using absolute paths prevent a
9675 # configured tree to be moved without reconfiguration.
9676
9677 AC_DEFUN([AM_AUX_DIR_EXPAND],
9678 [dnl Rely on autoconf to set up CDPATH properly.
9679 AC_PREREQ([2.50])dnl
9680 # expand $ac_aux_dir to an absolute path
9681 am_aux_dir=`cd $ac_aux_dir && pwd`
9682 ])
9683
9684 # AM_CONDITIONAL -*- Autoconf -*-
9685
9686 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
9687 #
9688 # This file is free software; the Free Software Foundation
9689 # gives unlimited permission to copy and/or distribute it,
9690 # with or without modifications, as long as this notice is preserved.
9691
9692 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
9693 # -------------------------------------
9694 # Define a conditional.
9695 AC_DEFUN([AM_CONDITIONAL],
9696 [AC_PREREQ([2.52])dnl
9697 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9698 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9699 AC_SUBST([$1_TRUE])dnl
9700 AC_SUBST([$1_FALSE])dnl
9701 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
9702 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
9703 m4_define([_AM_COND_VALUE_$1], [$2])dnl
9704 if $2; then
9705 $1_TRUE=
9706 $1_FALSE='#'
9707 else
9708 $1_TRUE='#'
9709 $1_FALSE=
9710 fi
9711 AC_CONFIG_COMMANDS_PRE(
9712 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9713 AC_MSG_ERROR([[conditional "$1" was never defined.
9714 Usually this means the macro was only invoked conditionally.]])
9715 fi])])
9716
9717 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
9718 #
9719 # This file is free software; the Free Software Foundation
9720 # gives unlimited permission to copy and/or distribute it,
9721 # with or without modifications, as long as this notice is preserved.
9722
9723
9724 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
9725 # written in clear, in which case automake, when reading aclocal.m4,
9726 # will think it sees a *use*, and therefore will trigger all it's
9727 # C support machinery. Also note that it means that autoscan, seeing
9728 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9729
9730
9731 # _AM_DEPENDENCIES(NAME)
9732 # ----------------------
9733 # See how the compiler implements dependency checking.
9734 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
9735 # We try a few techniques and use that to set a single cache variable.
9736 #
9737 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9738 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9739 # dependency, and given that the user is not expected to run this macro,
9740 # just rely on AC_PROG_CC.
9741 AC_DEFUN([_AM_DEPENDENCIES],
9742 [AC_REQUIRE([AM_SET_DEPDIR])dnl
9743 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9744 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9745 AC_REQUIRE([AM_DEP_TRACK])dnl
9746
9747 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
9748 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
9749 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9750 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
9751 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
9752 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9753 [depcc="$$1" am_compiler_list=])
9754
9755 AC_CACHE_CHECK([dependency style of $depcc],
9756 [am_cv_$1_dependencies_compiler_type],
9757 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9758 # We make a subdir and do the tests there. Otherwise we can end up
9759 # making bogus files that we don't know about and never remove. For
9760 # instance it was reported that on HP-UX the gcc test will end up
9761 # making a dummy file named 'D' -- because '-MD' means "put the output
9762 # in D".
9763 rm -rf conftest.dir
9764 mkdir conftest.dir
9765 # Copy depcomp to subdir because otherwise we won't find it if we're
9766 # using a relative directory.
9767 cp "$am_depcomp" conftest.dir
9768 cd conftest.dir
9769 # We will build objects and dependencies in a subdirectory because
9770 # it helps to detect inapplicable dependency modes. For instance
9771 # both Tru64's cc and ICC support -MD to output dependencies as a
9772 # side effect of compilation, but ICC will put the dependencies in
9773 # the current directory while Tru64 will put them in the object
9774 # directory.
9775 mkdir sub
9776
9777 am_cv_$1_dependencies_compiler_type=none
9778 if test "$am_compiler_list" = ""; then
9779 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9780 fi
9781 am__universal=false
9782 m4_case([$1], [CC],
9783 [case " $depcc " in #(
9784 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9785 esac],
9786 [CXX],
9787 [case " $depcc " in #(
9788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9789 esac])
9790
9791 for depmode in $am_compiler_list; do
9792 # Setup a source with many dependencies, because some compilers
9793 # like to wrap large dependency lists on column 80 (with \), and
9794 # we should not choose a depcomp mode which is confused by this.
9795 #
9796 # We need to recreate these files for each test, as the compiler may
9797 # overwrite some of them when testing with obscure command lines.
9798 # This happens at least with the AIX C compiler.
9799 : > sub/conftest.c
9800 for i in 1 2 3 4 5 6; do
9801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9802 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9803 # Solaris 10 /bin/sh.
9804 echo '/* dummy */' > sub/conftst$i.h
9805 done
9806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9807
9808 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9809 # mode. It turns out that the SunPro C++ compiler does not properly
9810 # handle '-M -o', and we need to detect this. Also, some Intel
9811 # versions had trouble with output in subdirs.
9812 am__obj=sub/conftest.${OBJEXT-o}
9813 am__minus_obj="-o $am__obj"
9814 case $depmode in
9815 gcc)
9816 # This depmode causes a compiler race in universal mode.
9817 test "$am__universal" = false || continue
9818 ;;
9819 nosideeffect)
9820 # After this tag, mechanisms are not by side-effect, so they'll
9821 # only be used when explicitly requested.
9822 if test "x$enable_dependency_tracking" = xyes; then
9823 continue
9824 else
9825 break
9826 fi
9827 ;;
9828 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9829 # This compiler won't grok '-c -o', but also, the minuso test has
9830 # not run yet. These depmodes are late enough in the game, and
9831 # so weak that their functioning should not be impacted.
9832 am__obj=conftest.${OBJEXT-o}
9833 am__minus_obj=
9834 ;;
9835 none) break ;;
9836 esac
9837 if depmode=$depmode \
9838 source=sub/conftest.c object=$am__obj \
9839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9841 >/dev/null 2>conftest.err &&
9842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9846 # icc doesn't choke on unknown options, it will just issue warnings
9847 # or remarks (even with -Werror). So we grep stderr for any message
9848 # that says an option was ignored or not supported.
9849 # When given -MP, icc 7.0 and 7.1 complain thusly:
9850 # icc: Command line warning: ignoring option '-M'; no argument required
9851 # The diagnosis changed in icc 8.0:
9852 # icc: Command line remark: option '-MP' not supported
9853 if (grep 'ignoring option' conftest.err ||
9854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9855 am_cv_$1_dependencies_compiler_type=$depmode
9856 break
9857 fi
9858 fi
9859 done
9860
9861 cd ..
9862 rm -rf conftest.dir
9863 else
9864 am_cv_$1_dependencies_compiler_type=none
9865 fi
9866 ])
9867 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9868 AM_CONDITIONAL([am__fastdep$1], [
9869 test "x$enable_dependency_tracking" != xno \
9870 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9871 ])
9872
9873
9874 # AM_SET_DEPDIR
9875 # -------------
9876 # Choose a directory name for dependency files.
9877 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
9878 AC_DEFUN([AM_SET_DEPDIR],
9879 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9880 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9881 ])
9882
9883
9884 # AM_DEP_TRACK
9885 # ------------
9886 AC_DEFUN([AM_DEP_TRACK],
9887 [AC_ARG_ENABLE([dependency-tracking], [dnl
9888 AS_HELP_STRING(
9889 [--enable-dependency-tracking],
9890 [do not reject slow dependency extractors])
9891 AS_HELP_STRING(
9892 [--disable-dependency-tracking],
9893 [speeds up one-time build])])
9894 if test "x$enable_dependency_tracking" != xno; then
9895 am_depcomp="$ac_aux_dir/depcomp"
9896 AMDEPBACKSLASH='\'
9897 am__nodep='_no'
9898 fi
9899 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9900 AC_SUBST([AMDEPBACKSLASH])dnl
9901 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9902 AC_SUBST([am__nodep])dnl
9903 _AM_SUBST_NOTMAKE([am__nodep])dnl
9904 ])
9905
9906 # Generate code to set up dependency tracking. -*- Autoconf -*-
9907
9908 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
9909 #
9910 # This file is free software; the Free Software Foundation
9911 # gives unlimited permission to copy and/or distribute it,
9912 # with or without modifications, as long as this notice is preserved.
9913
9914
9915 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9916 # ------------------------------
9917 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9918 [{
9919 # Older Autoconf quotes --file arguments for eval, but not when files
9920 # are listed without --file. Let's play safe and only enable the eval
9921 # if we detect the quoting.
9922 case $CONFIG_FILES in
9923 *\'*) eval set x "$CONFIG_FILES" ;;
9924 *) set x $CONFIG_FILES ;;
9925 esac
9926 shift
9927 for mf
9928 do
9929 # Strip MF so we end up with the name of the file.
9930 mf=`echo "$mf" | sed -e 's/:.*$//'`
9931 # Check whether this is an Automake generated Makefile or not.
9932 # We used to match only the files named 'Makefile.in', but
9933 # some people rename them; so instead we look at the file content.
9934 # Grep'ing the first line is not enough: some people post-process
9935 # each Makefile.in and add a new line on top of each file to say so.
9936 # Grep'ing the whole file is not good either: AIX grep has a line
9937 # limit of 2048, but all sed's we know have understand at least 4000.
9938 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9939 dirpart=`AS_DIRNAME("$mf")`
9940 else
9941 continue
9942 fi
9943 # Extract the definition of DEPDIR, am__include, and am__quote
9944 # from the Makefile without running 'make'.
9945 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9946 test -z "$DEPDIR" && continue
9947 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9948 test -z "$am__include" && continue
9949 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9950 # Find all dependency output files, they are included files with
9951 # $(DEPDIR) in their names. We invoke sed twice because it is the
9952 # simplest approach to changing $(DEPDIR) to its actual value in the
9953 # expansion.
9954 for file in `sed -n "
9955 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9956 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9957 # Make sure the directory exists.
9958 test -f "$dirpart/$file" && continue
9959 fdir=`AS_DIRNAME(["$file"])`
9960 AS_MKDIR_P([$dirpart/$fdir])
9961 # echo "creating $dirpart/$file"
9962 echo '# dummy' > "$dirpart/$file"
9963 done
9964 done
9965 }
9966 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9967
9968
9969 # AM_OUTPUT_DEPENDENCY_COMMANDS
9970 # -----------------------------
9971 # This macro should only be invoked once -- use via AC_REQUIRE.
9972 #
9973 # This code is only required when automatic dependency tracking
9974 # is enabled. FIXME. This creates each '.P' file that we will
9975 # need in order to bootstrap the dependency handling code.
9976 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9977 [AC_CONFIG_COMMANDS([depfiles],
9978 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9979 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9980 ])
9981
9982 # Do all the work for Automake. -*- Autoconf -*-
9983
9984 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
9985 #
9986 # This file is free software; the Free Software Foundation
9987 # gives unlimited permission to copy and/or distribute it,
9988 # with or without modifications, as long as this notice is preserved.
9989
9990 # This macro actually does too much. Some checks are only needed if
9991 # your package does certain things. But this isn't really a big deal.
9992
9993 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
9994 m4_define([AC_PROG_CC],
9995 m4_defn([AC_PROG_CC])
9996 [_AM_PROG_CC_C_O
9997 ])
9998
9999 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
10000 # AM_INIT_AUTOMAKE([OPTIONS])
10001 # -----------------------------------------------
10002 # The call with PACKAGE and VERSION arguments is the old style
10003 # call (pre autoconf-2.50), which is being phased out. PACKAGE
10004 # and VERSION should now be passed to AC_INIT and removed from
10005 # the call to AM_INIT_AUTOMAKE.
10006 # We support both call styles for the transition. After
10007 # the next Automake release, Autoconf can make the AC_INIT
10008 # arguments mandatory, and then we can depend on a new Autoconf
10009 # release and drop the old call support.
10010 AC_DEFUN([AM_INIT_AUTOMAKE],
10011 [AC_PREREQ([2.65])dnl
10012 dnl Autoconf wants to disallow AM_ names. We explicitly allow
10013 dnl the ones we care about.
10014 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
10015 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
10016 AC_REQUIRE([AC_PROG_INSTALL])dnl
10017 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10018 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10019 # is not polluted with repeated "-I."
10020 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
10021 # test to see if srcdir already configured
10022 if test -f $srcdir/config.status; then
10023 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
10024 fi
10025 fi
10026
10027 # test whether we have cygpath
10028 if test -z "$CYGPATH_W"; then
10029 if (cygpath --version) >/dev/null 2>/dev/null; then
10030 CYGPATH_W='cygpath -w'
10031 else
10032 CYGPATH_W=echo
10033 fi
10034 fi
10035 AC_SUBST([CYGPATH_W])
10036
10037 # Define the identity of the package.
10038 dnl Distinguish between old-style and new-style calls.
10039 m4_ifval([$2],
10040 [AC_DIAGNOSE([obsolete],
10041 [$0: two- and three-arguments forms are deprecated.])
10042 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
10043 AC_SUBST([PACKAGE], [$1])dnl
10044 AC_SUBST([VERSION], [$2])],
10045 [_AM_SET_OPTIONS([$1])dnl
10046 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
10047 m4_if(
10048 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
10049 [ok:ok],,
10050 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
10051 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
10052 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
10053
10054 _AM_IF_OPTION([no-define],,
10055 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
10056 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
10057
10058 # Some tools Automake needs.
10059 AC_REQUIRE([AM_SANITY_CHECK])dnl
10060 AC_REQUIRE([AC_ARG_PROGRAM])dnl
10061 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
10062 AM_MISSING_PROG([AUTOCONF], [autoconf])
10063 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
10064 AM_MISSING_PROG([AUTOHEADER], [autoheader])
10065 AM_MISSING_PROG([MAKEINFO], [makeinfo])
10066 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10067 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
10068 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10069 # For better backward compatibility. To be removed once Automake 1.9.x
10070 # dies out for good. For more background, see:
10071 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10072 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10073 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
10074 # We need awk for the "check" target. The system "awk" is bad on
10075 # some platforms.
10076 AC_REQUIRE([AC_PROG_AWK])dnl
10077 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
10078 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10079 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
10080 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
10081 [_AM_PROG_TAR([v7])])])
10082 _AM_IF_OPTION([no-dependencies],,
10083 [AC_PROVIDE_IFELSE([AC_PROG_CC],
10084 [_AM_DEPENDENCIES([CC])],
10085 [m4_define([AC_PROG_CC],
10086 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
10087 AC_PROVIDE_IFELSE([AC_PROG_CXX],
10088 [_AM_DEPENDENCIES([CXX])],
10089 [m4_define([AC_PROG_CXX],
10090 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
10091 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10092 [_AM_DEPENDENCIES([OBJC])],
10093 [m4_define([AC_PROG_OBJC],
10094 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
10095 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
10096 [_AM_DEPENDENCIES([OBJCXX])],
10097 [m4_define([AC_PROG_OBJCXX],
10098 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
10099 ])
10100 AC_REQUIRE([AM_SILENT_RULES])dnl
10101 dnl The testsuite driver may need to know about EXEEXT, so add the
10102 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
10103 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
10104 AC_CONFIG_COMMANDS_PRE(dnl
10105 [m4_provide_if([_AM_COMPILER_EXEEXT],
10106 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10107
10108 # POSIX will say in a future version that running "rm -f" with no argument
10109 # is OK; and we want to be able to make that assumption in our Makefile
10110 # recipes. So use an aggressive probe to check that the usage we want is
10111 # actually supported "in the wild" to an acceptable degree.
10112 # See automake bug#10828.
10113 # To make any issue more visible, cause the running configure to be aborted
10114 # by default if the 'rm' program in use doesn't match our expectations; the
10115 # user can still override this though.
10116 if rm -f && rm -fr && rm -rf; then : OK; else
10117 cat >&2 <<'END'
10118 Oops!
10119
10120 Your 'rm' program seems unable to run without file operands specified
10121 on the command line, even when the '-f' option is present. This is contrary
10122 to the behaviour of most rm programs out there, and not conforming with
10123 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10124
10125 Please tell bug-automake@gnu.org about your system, including the value
10126 of your $PATH and any error possibly output before this message. This
10127 can help us improve future automake versions.
10128
10129 END
10130 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10131 echo 'Configuration will proceed anyway, since you have set the' >&2
10132 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10133 echo >&2
10134 else
10135 cat >&2 <<'END'
10136 Aborting the configuration process, to ensure you take notice of the issue.
10137
10138 You can download and install GNU coreutils to get an 'rm' implementation
10139 that behaves properly: <http://www.gnu.org/software/coreutils/>.
10140
10141 If you want to complete the configuration process using your problematic
10142 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10143 to "yes", and re-run configure.
10144
10145 END
10146 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
10147 fi
10148 fi])
10149
10150 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
10151 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10152 dnl mangled by Autoconf and run in a shell conditional statement.
10153 m4_define([_AC_COMPILER_EXEEXT],
10154 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10155
10156 # When config.status generates a header, we must update the stamp-h file.
10157 # This file resides in the same directory as the config header
10158 # that is generated. The stamp files are numbered to have different names.
10159
10160 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
10161 # loop where config.status creates the headers, so we can generate
10162 # our stamp files there.
10163 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10164 [# Compute $1's index in $config_headers.
10165 _am_arg=$1
10166 _am_stamp_count=1
10167 for _am_header in $config_headers :; do
10168 case $_am_header in
10169 $_am_arg | $_am_arg:* )
10170 break ;;
10171 * )
10172 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10173 esac
10174 done
10175 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10176
10177 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10178 #
10179 # This file is free software; the Free Software Foundation
10180 # gives unlimited permission to copy and/or distribute it,
10181 # with or without modifications, as long as this notice is preserved.
10182
10183 # AM_PROG_INSTALL_SH
10184 # ------------------
10185 # Define $install_sh.
10186 AC_DEFUN([AM_PROG_INSTALL_SH],
10187 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10188 if test x"${install_sh}" != xset; then
10189 case $am_aux_dir in
10190 *\ * | *\ *)
10191 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10192 *)
10193 install_sh="\${SHELL} $am_aux_dir/install-sh"
10194 esac
10195 fi
10196 AC_SUBST([install_sh])])
10197
10198 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
10199 #
10200 # This file is free software; the Free Software Foundation
10201 # gives unlimited permission to copy and/or distribute it,
10202 # with or without modifications, as long as this notice is preserved.
10203
10204 # Check whether the underlying file-system supports filenames
10205 # with a leading dot. For instance MS-DOS doesn't.
10206 AC_DEFUN([AM_SET_LEADING_DOT],
10207 [rm -rf .tst 2>/dev/null
10208 mkdir .tst 2>/dev/null
10209 if test -d .tst; then
10210 am__leading_dot=.
10211 else
10212 am__leading_dot=_
10213 fi
10214 rmdir .tst 2>/dev/null
10215 AC_SUBST([am__leading_dot])])
10216
10217 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
10218 # From Jim Meyering
10219
10220 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
10221 #
10222 # This file is free software; the Free Software Foundation
10223 # gives unlimited permission to copy and/or distribute it,
10224 # with or without modifications, as long as this notice is preserved.
10225
10226 # AM_MAINTAINER_MODE([DEFAULT-MODE])
10227 # ----------------------------------
10228 # Control maintainer-specific portions of Makefiles.
10229 # Default is to disable them, unless 'enable' is passed literally.
10230 # For symmetry, 'disable' may be passed as well. Anyway, the user
10231 # can override the default with the --enable/--disable switch.
10232 AC_DEFUN([AM_MAINTAINER_MODE],
10233 [m4_case(m4_default([$1], [disable]),
10234 [enable], [m4_define([am_maintainer_other], [disable])],
10235 [disable], [m4_define([am_maintainer_other], [enable])],
10236 [m4_define([am_maintainer_other], [enable])
10237 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
10238 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
10239 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
10240 AC_ARG_ENABLE([maintainer-mode],
10241 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
10242 am_maintainer_other[ make rules and dependencies not useful
10243 (and sometimes confusing) to the casual installer])],
10244 [USE_MAINTAINER_MODE=$enableval],
10245 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
10246 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
10247 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
10248 MAINT=$MAINTAINER_MODE_TRUE
10249 AC_SUBST([MAINT])dnl
10250 ]
10251 )
10252
10253 # Check to see how 'make' treats includes. -*- Autoconf -*-
10254
10255 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10256 #
10257 # This file is free software; the Free Software Foundation
10258 # gives unlimited permission to copy and/or distribute it,
10259 # with or without modifications, as long as this notice is preserved.
10260
10261 # AM_MAKE_INCLUDE()
10262 # -----------------
10263 # Check to see how make treats includes.
10264 AC_DEFUN([AM_MAKE_INCLUDE],
10265 [am_make=${MAKE-make}
10266 cat > confinc << 'END'
10267 am__doit:
10268 @echo this is the am__doit target
10269 .PHONY: am__doit
10270 END
10271 # If we don't find an include directive, just comment out the code.
10272 AC_MSG_CHECKING([for style of include used by $am_make])
10273 am__include="#"
10274 am__quote=
10275 _am_result=none
10276 # First try GNU make style include.
10277 echo "include confinc" > confmf
10278 # Ignore all kinds of additional output from 'make'.
10279 case `$am_make -s -f confmf 2> /dev/null` in #(
10280 *the\ am__doit\ target*)
10281 am__include=include
10282 am__quote=
10283 _am_result=GNU
10284 ;;
10285 esac
10286 # Now try BSD make style include.
10287 if test "$am__include" = "#"; then
10288 echo '.include "confinc"' > confmf
10289 case `$am_make -s -f confmf 2> /dev/null` in #(
10290 *the\ am__doit\ target*)
10291 am__include=.include
10292 am__quote="\""
10293 _am_result=BSD
10294 ;;
10295 esac
10296 fi
10297 AC_SUBST([am__include])
10298 AC_SUBST([am__quote])
10299 AC_MSG_RESULT([$_am_result])
10300 rm -f confinc confmf
10301 ])
10302
10303 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10304
10305 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
10306 #
10307 # This file is free software; the Free Software Foundation
10308 # gives unlimited permission to copy and/or distribute it,
10309 # with or without modifications, as long as this notice is preserved.
10310
10311 # AM_MISSING_PROG(NAME, PROGRAM)
10312 # ------------------------------
10313 AC_DEFUN([AM_MISSING_PROG],
10314 [AC_REQUIRE([AM_MISSING_HAS_RUN])
10315 $1=${$1-"${am_missing_run}$2"}
10316 AC_SUBST($1)])
10317
10318 # AM_MISSING_HAS_RUN
10319 # ------------------
10320 # Define MISSING if not defined so far and test if it is modern enough.
10321 # If it is, set am_missing_run to use it, otherwise, to nothing.
10322 AC_DEFUN([AM_MISSING_HAS_RUN],
10323 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10324 AC_REQUIRE_AUX_FILE([missing])dnl
10325 if test x"${MISSING+set}" != xset; then
10326 case $am_aux_dir in
10327 *\ * | *\ *)
10328 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10329 *)
10330 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10331 esac
10332 fi
10333 # Use eval to expand $SHELL
10334 if eval "$MISSING --is-lightweight"; then
10335 am_missing_run="$MISSING "
10336 else
10337 am_missing_run=
10338 AC_MSG_WARN(['missing' script is too old or missing])
10339 fi
10340 ])
10341
10342 # -*- Autoconf -*-
10343 # Obsolete and "removed" macros, that must however still report explicit
10344 # error messages when used, to smooth transition.
10345 #
10346 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
10347 #
10348 # This file is free software; the Free Software Foundation
10349 # gives unlimited permission to copy and/or distribute it,
10350 # with or without modifications, as long as this notice is preserved.
10351
10352 AC_DEFUN([AM_CONFIG_HEADER],
10353 [AC_DIAGNOSE([obsolete],
10354 ['$0': this macro is obsolete.
10355 You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
10356 AC_CONFIG_HEADERS($@)])
10357
10358 AC_DEFUN([AM_PROG_CC_STDC],
10359 [AC_PROG_CC
10360 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
10361 AC_DIAGNOSE([obsolete],
10362 ['$0': this macro is obsolete.
10363 You should simply use the 'AC][_PROG_CC' macro instead.
10364 Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
10365 but upon 'ac_cv_prog_cc_stdc'.])])
10366
10367 AC_DEFUN([AM_C_PROTOTYPES],
10368 [AC_FATAL([automatic de-ANSI-fication support has been removed])])
10369 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
10370
10371 # Helper functions for option handling. -*- Autoconf -*-
10372
10373 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10374 #
10375 # This file is free software; the Free Software Foundation
10376 # gives unlimited permission to copy and/or distribute it,
10377 # with or without modifications, as long as this notice is preserved.
10378
10379 # _AM_MANGLE_OPTION(NAME)
10380 # -----------------------
10381 AC_DEFUN([_AM_MANGLE_OPTION],
10382 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10383
10384 # _AM_SET_OPTION(NAME)
10385 # --------------------
10386 # Set option NAME. Presently that only means defining a flag for this option.
10387 AC_DEFUN([_AM_SET_OPTION],
10388 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
10389
10390 # _AM_SET_OPTIONS(OPTIONS)
10391 # ------------------------
10392 # OPTIONS is a space-separated list of Automake options.
10393 AC_DEFUN([_AM_SET_OPTIONS],
10394 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10395
10396 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10397 # -------------------------------------------
10398 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10399 AC_DEFUN([_AM_IF_OPTION],
10400 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10401
10402 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
10403 #
10404 # This file is free software; the Free Software Foundation
10405 # gives unlimited permission to copy and/or distribute it,
10406 # with or without modifications, as long as this notice is preserved.
10407
10408 # _AM_PROG_CC_C_O
10409 # ---------------
10410 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
10411 # to automatically call this.
10412 AC_DEFUN([_AM_PROG_CC_C_O],
10413 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10414 AC_REQUIRE_AUX_FILE([compile])dnl
10415 AC_LANG_PUSH([C])dnl
10416 AC_CACHE_CHECK(
10417 [whether $CC understands -c and -o together],
10418 [am_cv_prog_cc_c_o],
10419 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
10420 # Make sure it works both with $CC and with simple cc.
10421 # Following AC_PROG_CC_C_O, we do the test twice because some
10422 # compilers refuse to overwrite an existing .o file with -o,
10423 # though they will create one.
10424 am_cv_prog_cc_c_o=yes
10425 for am_i in 1 2; do
10426 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
10427 && test -f conftest2.$ac_objext; then
10428 : OK
10429 else
10430 am_cv_prog_cc_c_o=no
10431 break
10432 fi
10433 done
10434 rm -f core conftest*
10435 unset am_i])
10436 if test "$am_cv_prog_cc_c_o" != yes; then
10437 # Losing compiler, so override with the script.
10438 # FIXME: It is wrong to rewrite CC.
10439 # But if we don't then we get into trouble of one sort or another.
10440 # A longer-term fix would be to have automake use am__CC in this case,
10441 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10442 CC="$am_aux_dir/compile $CC"
10443 fi
10444 AC_LANG_POP([C])])
10445
10446 # For backward compatibility.
10447 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
10448
10449 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10450 #
10451 # This file is free software; the Free Software Foundation
10452 # gives unlimited permission to copy and/or distribute it,
10453 # with or without modifications, as long as this notice is preserved.
10454
10455 # AM_RUN_LOG(COMMAND)
10456 # -------------------
10457 # Run COMMAND, save the exit status in ac_status, and log it.
10458 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10459 AC_DEFUN([AM_RUN_LOG],
10460 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10461 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10464 (exit $ac_status); }])
10465
10466 # Check to make sure that the build environment is sane. -*- Autoconf -*-
10467
10468 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
10469 #
10470 # This file is free software; the Free Software Foundation
10471 # gives unlimited permission to copy and/or distribute it,
10472 # with or without modifications, as long as this notice is preserved.
10473
10474 # AM_SANITY_CHECK
10475 # ---------------
10476 AC_DEFUN([AM_SANITY_CHECK],
10477 [AC_MSG_CHECKING([whether build environment is sane])
10478 # Reject unsafe characters in $srcdir or the absolute working directory
10479 # name. Accept space and tab only in the latter.
10480 am_lf='
10481 '
10482 case `pwd` in
10483 *[[\\\"\#\$\&\'\`$am_lf]]*)
10484 AC_MSG_ERROR([unsafe absolute working directory name]);;
10485 esac
10486 case $srcdir in
10487 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10488 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
10489 esac
10490
10491 # Do 'set' in a subshell so we don't clobber the current shell's
10492 # arguments. Must try -L first in case configure is actually a
10493 # symlink; some systems play weird games with the mod time of symlinks
10494 # (eg FreeBSD returns the mod time of the symlink's containing
10495 # directory).
10496 if (
10497 am_has_slept=no
10498 for am_try in 1 2; do
10499 echo "timestamp, slept: $am_has_slept" > conftest.file
10500 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10501 if test "$[*]" = "X"; then
10502 # -L didn't work.
10503 set X `ls -t "$srcdir/configure" conftest.file`
10504 fi
10505 if test "$[*]" != "X $srcdir/configure conftest.file" \
10506 && test "$[*]" != "X conftest.file $srcdir/configure"; then
10507
10508 # If neither matched, then we have a broken ls. This can happen
10509 # if, for instance, CONFIG_SHELL is bash and it inherits a
10510 # broken ls alias from the environment. This has actually
10511 # happened. Such a system could not be considered "sane".
10512 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10513 alias in your environment])
10514 fi
10515 if test "$[2]" = conftest.file || test $am_try -eq 2; then
10516 break
10517 fi
10518 # Just in case.
10519 sleep 1
10520 am_has_slept=yes
10521 done
10522 test "$[2]" = conftest.file
10523 )
10524 then
10525 # Ok.
10526 :
10527 else
10528 AC_MSG_ERROR([newly created file is older than distributed files!
10529 Check your system clock])
10530 fi
10531 AC_MSG_RESULT([yes])
10532 # If we didn't sleep, we still need to ensure time stamps of config.status and
10533 # generated files are strictly newer.
10534 am_sleep_pid=
10535 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10536 ( sleep 1 ) &
10537 am_sleep_pid=$!
10538 fi
10539 AC_CONFIG_COMMANDS_PRE(
10540 [AC_MSG_CHECKING([that generated files are newer than configure])
10541 if test -n "$am_sleep_pid"; then
10542 # Hide warnings about reused PIDs.
10543 wait $am_sleep_pid 2>/dev/null
10544 fi
10545 AC_MSG_RESULT([done])])
10546 rm -f conftest.file
10547 ])
10548
10549 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
10550 #
10551 # This file is free software; the Free Software Foundation
10552 # gives unlimited permission to copy and/or distribute it,
10553 # with or without modifications, as long as this notice is preserved.
10554
10555 # AM_SILENT_RULES([DEFAULT])
10556 # --------------------------
10557 # Enable less verbose build rules; with the default set to DEFAULT
10558 # ("yes" being less verbose, "no" or empty being verbose).
10559 AC_DEFUN([AM_SILENT_RULES],
10560 [AC_ARG_ENABLE([silent-rules], [dnl
10561 AS_HELP_STRING(
10562 [--enable-silent-rules],
10563 [less verbose build output (undo: "make V=1")])
10564 AS_HELP_STRING(
10565 [--disable-silent-rules],
10566 [verbose build output (undo: "make V=0")])dnl
10567 ])
10568 case $enable_silent_rules in @%:@ (((
10569 yes) AM_DEFAULT_VERBOSITY=0;;
10570 no) AM_DEFAULT_VERBOSITY=1;;
10571 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10572 esac
10573 dnl
10574 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10575 dnl do not support nested variable expansions.
10576 dnl See automake bug#9928 and bug#10237.
10577 am_make=${MAKE-make}
10578 AC_CACHE_CHECK([whether $am_make supports nested variables],
10579 [am_cv_make_support_nested_variables],
10580 [if AS_ECHO([['TRUE=$(BAR$(V))
10581 BAR0=false
10582 BAR1=true
10583 V=1
10584 am__doit:
10585 @$(TRUE)
10586 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10587 am_cv_make_support_nested_variables=yes
10588 else
10589 am_cv_make_support_nested_variables=no
10590 fi])
10591 if test $am_cv_make_support_nested_variables = yes; then
10592 dnl Using '$V' instead of '$(V)' breaks IRIX make.
10593 AM_V='$(V)'
10594 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10595 else
10596 AM_V=$AM_DEFAULT_VERBOSITY
10597 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10598 fi
10599 AC_SUBST([AM_V])dnl
10600 AM_SUBST_NOTMAKE([AM_V])dnl
10601 AC_SUBST([AM_DEFAULT_V])dnl
10602 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10603 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10604 AM_BACKSLASH='\'
10605 AC_SUBST([AM_BACKSLASH])dnl
10606 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10607 ])
10608
10609 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10610 #
10611 # This file is free software; the Free Software Foundation
10612 # gives unlimited permission to copy and/or distribute it,
10613 # with or without modifications, as long as this notice is preserved.
10614
10615 # AM_PROG_INSTALL_STRIP
10616 # ---------------------
10617 # One issue with vendor 'install' (even GNU) is that you can't
10618 # specify the program used to strip binaries. This is especially
10619 # annoying in cross-compiling environments, where the build's strip
10620 # is unlikely to handle the host's binaries.
10621 # Fortunately install-sh will honor a STRIPPROG variable, so we
10622 # always use install-sh in "make install-strip", and initialize
10623 # STRIPPROG with the value of the STRIP variable (set by the user).
10624 AC_DEFUN([AM_PROG_INSTALL_STRIP],
10625 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10626 # Installed binaries are usually stripped using 'strip' when the user
10627 # run "make install-strip". However 'strip' might not be the right
10628 # tool to use in cross-compilation environments, therefore Automake
10629 # will honor the 'STRIP' environment variable to overrule this program.
10630 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
10631 if test "$cross_compiling" != no; then
10632 AC_CHECK_TOOL([STRIP], [strip], :)
10633 fi
10634 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10635 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10636
10637 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
10638 #
10639 # This file is free software; the Free Software Foundation
10640 # gives unlimited permission to copy and/or distribute it,
10641 # with or without modifications, as long as this notice is preserved.
10642
10643 # _AM_SUBST_NOTMAKE(VARIABLE)
10644 # ---------------------------
10645 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10646 # This macro is traced by Automake.
10647 AC_DEFUN([_AM_SUBST_NOTMAKE])
10648
10649 # AM_SUBST_NOTMAKE(VARIABLE)
10650 # --------------------------
10651 # Public sister of _AM_SUBST_NOTMAKE.
10652 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10653
10654 # Check how to create a tarball. -*- Autoconf -*-
10655
10656 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
10657 #
10658 # This file is free software; the Free Software Foundation
10659 # gives unlimited permission to copy and/or distribute it,
10660 # with or without modifications, as long as this notice is preserved.
10661
10662 # _AM_PROG_TAR(FORMAT)
10663 # --------------------
10664 # Check how to create a tarball in format FORMAT.
10665 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
10666 #
10667 # Substitute a variable $(am__tar) that is a command
10668 # writing to stdout a FORMAT-tarball containing the directory
10669 # $tardir.
10670 # tardir=directory && $(am__tar) > result.tar
10671 #
10672 # Substitute a variable $(am__untar) that extract such
10673 # a tarball read from stdin.
10674 # $(am__untar) < result.tar
10675 #
10676 AC_DEFUN([_AM_PROG_TAR],
10677 [# Always define AMTAR for backward compatibility. Yes, it's still used
10678 # in the wild :-( We should find a proper way to deprecate it ...
10679 AC_SUBST([AMTAR], ['$${TAR-tar}'])
10680
10681 # We'll loop over all known methods to create a tar archive until one works.
10682 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10683
10684 m4_if([$1], [v7],
10685 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10686
10687 [m4_case([$1],
10688 [ustar],
10689 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10690 # There is notably a 21 bits limit for the UID and the GID. In fact,
10691 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10692 # and bug#13588).
10693 am_max_uid=2097151 # 2^21 - 1
10694 am_max_gid=$am_max_uid
10695 # The $UID and $GID variables are not portable, so we need to resort
10696 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
10697 # below are definitely unexpected, so allow the users to see them
10698 # (that is, avoid stderr redirection).
10699 am_uid=`id -u || echo unknown`
10700 am_gid=`id -g || echo unknown`
10701 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
10702 if test $am_uid -le $am_max_uid; then
10703 AC_MSG_RESULT([yes])
10704 else
10705 AC_MSG_RESULT([no])
10706 _am_tools=none
10707 fi
10708 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10709 if test $am_gid -le $am_max_gid; then
10710 AC_MSG_RESULT([yes])
10711 else
10712 AC_MSG_RESULT([no])
10713 _am_tools=none
10714 fi],
10715
10716 [pax],
10717 [],
10718
10719 [m4_fatal([Unknown tar format])])
10720
10721 AC_MSG_CHECKING([how to create a $1 tar archive])
10722
10723 # Go ahead even if we have the value already cached. We do so because we
10724 # need to set the values for the 'am__tar' and 'am__untar' variables.
10725 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10726
10727 for _am_tool in $_am_tools; do
10728 case $_am_tool in
10729 gnutar)
10730 for _am_tar in tar gnutar gtar; do
10731 AM_RUN_LOG([$_am_tar --version]) && break
10732 done
10733 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10734 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10735 am__untar="$_am_tar -xf -"
10736 ;;
10737 plaintar)
10738 # Must skip GNU tar: if it does not support --format= it doesn't create
10739 # ustar tarball either.
10740 (tar --version) >/dev/null 2>&1 && continue
10741 am__tar='tar chf - "$$tardir"'
10742 am__tar_='tar chf - "$tardir"'
10743 am__untar='tar xf -'
10744 ;;
10745 pax)
10746 am__tar='pax -L -x $1 -w "$$tardir"'
10747 am__tar_='pax -L -x $1 -w "$tardir"'
10748 am__untar='pax -r'
10749 ;;
10750 cpio)
10751 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10752 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10753 am__untar='cpio -i -H $1 -d'
10754 ;;
10755 none)
10756 am__tar=false
10757 am__tar_=false
10758 am__untar=false
10759 ;;
10760 esac
10761
10762 # If the value was cached, stop now. We just wanted to have am__tar
10763 # and am__untar set.
10764 test -n "${am_cv_prog_tar_$1}" && break
10765
10766 # tar/untar a dummy directory, and stop if the command works.
10767 rm -rf conftest.dir
10768 mkdir conftest.dir
10769 echo GrepMe > conftest.dir/file
10770 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10771 rm -rf conftest.dir
10772 if test -s conftest.tar; then
10773 AM_RUN_LOG([$am__untar <conftest.tar])
10774 AM_RUN_LOG([cat conftest.dir/file])
10775 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10776 fi
10777 done
10778 rm -rf conftest.dir
10779
10780 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10781 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10782
10783 AC_SUBST([am__tar])
10784 AC_SUBST([am__untar])
10785 ]) # _AM_PROG_TAR
10786
1078711240 dnl Copyright (c) 2002-2015
1078811241 dnl The Xfce development team. All rights reserved.
1078911242 dnl
1083711290 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
1083811291 echo "*** from the freedesktop.org software repository at"
1083911292 echo "***"
10840 echo "*** http://www.freedesktop.org/software/pkgconfig"
11293 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
1084111294 echo "***"
1084211295 exit 1;
1084311296 fi
1085011303 echo "*** You can download pkg-config from the freedesktop.org"
1085111304 echo "*** software repository at"
1085211305 echo "***"
10853 echo "*** http://www.freedesktop.org/software/pkgconfig"
11306 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
1085411307 echo "***"
1085511308 exit 1
1085611309 ])
1119711650 -Wno-unused-parameter -Wold-style-definition \
1119811651 -Wdeclaration-after-statement \
1119911652 -Wmissing-declarations \
11200 -Wmissing-noreturn -Wshadow -Wpointer-arith \
11653 -Wmissing-noreturn -Wpointer-arith \
1120111654 -Wcast-align -Wformat -Wformat-security -Wformat-y2k \
1120211655 -Winit-self -Wmissing-include-dirs -Wundef \
1120311656 -Wnested-externs"
1121811671 CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
1121911672 AC_MSG_RESULT([full])
1122011673 else
11221 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g"
11674 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g -Wshadow"
1122211675 AC_MSG_RESULT([yes])
1122311676 fi
1122411677
1136711820 dnl
1136811821
1136911822
11370 dnl XDT_I18N(LINGUAS [, PACKAGE])
11823 dnl XDT_I18N([LINGUAS][, PACKAGE])
1137111824 dnl
1137211825 dnl This macro takes care of setting up everything for i18n support.
11826 dnl
11827 dnl If LINGUAS isn't specified, it will automatically extract the linguas
11828 dnl from po/*.po.
1137311829 dnl
1137411830 dnl If PACKAGE isn't specified, it defaults to the package tarname; see
1137511831 dnl the description of AC_INIT() for an explanation of what makes up
1138411840 AC_SUBST([GETTEXT_PACKAGE])
1138511841
1138611842 dnl gettext and stuff
11387 ALL_LINGUAS="$1"
11843 ALL_LINGUAS="m4_ifblank(
11844 [$1],
11845 [esyscmd([echo $(for i in po/*.po; do test -e "$i" && basename -- "$i" .po; done) | tr -d '\n'])],
11846 [$1])"
1138811847 AM_GLIB_GNU_GETTEXT()
1138911848
1139011849 dnl This is required on some Linux systems
1140011859 if test x"$CATOBJEXT" = x".mo"; then
1140111860 localedir=$libdir/locale
1140211861 else
11403 localedir=$datadir/locale
11862 localedir=$datarootdir/locale
1140411863 fi
1140511864 ])
1140611865 AC_MSG_RESULT([$localedir])
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
1616 # GNU General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
254254 echo "compile $scriptversion"
255255 exit $?
256256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
258259 func_cl_wrapper "$@" # Doesn't return...
259260 ;;
260261 esac
338339 # Local Variables:
339340 # mode: shell-script
340341 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # eval: (add-hook 'before-save-hook 'time-stamp)
342343 # time-stamp-start: "scriptversion="
343344 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-time-zone: "UTC0"
345346 # time-stamp-end: "; # UTC"
346347 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-11-29'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-24'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
2323 # program. This Exception is an additional permission under section 7
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525 #
26 # Originally written by Per Bothner.
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
3030 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
31 # Please send patches to <config-patches@gnu.org>.
3232
3333
3434 me=`echo "$0" | sed -e 's,.*/,,'`
3838
3939 Output the configuration name of the system \`$me' is run on.
4040
41 Operation modes:
41 Options:
4242 -h, --help print this help, then exit
4343 -t, --time-stamp print date of last modification, then exit
4444 -v, --version print version number, then exit
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2013 Free Software Foundation, Inc.
52 Copyright 1992-2018 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
106106 dummy=$tmp/dummy ;
107107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > $dummy.c ;
109 ,,) echo "int x;" > "$dummy.c" ;
110110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112112 CC_FOR_BUILD="$c"; break ;
113113 fi ;
114114 done ;
131131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133133
134 case "${UNAME_SYSTEM}" in
134 case "$UNAME_SYSTEM" in
135135 Linux|GNU|GNU/*)
136136 # If the system lacks a compiler, then just pick glibc.
137137 # We could probably try harder.
138138 LIBC=gnu
139139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
140 eval "$set_cc_for_build"
141 cat <<-EOF > "$dummy.c"
142142 #include <features.h>
143143 #if defined(__UCLIBC__)
144144 LIBC=uclibc
148148 LIBC=gnu
149149 #endif
150150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
158 fi
152159 ;;
153160 esac
154161
155162 # Note: order is significant - the case branches are not exclusive.
156163
157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
158165 *:NetBSD:*:*)
159166 # NetBSD (nbsd) targets should (where applicable) match one or
160167 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
167174 # Note: NetBSD doesn't particularly care about the vendor
168175 # portion of the name. We always set it to "unknown".
169176 sysctl="sysctl -n hw.machine_arch"
170 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
171 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
172 case "${UNAME_MACHINE_ARCH}" in
177 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
180 echo unknown)`
181 case "$UNAME_MACHINE_ARCH" in
173182 armeb) machine=armeb-unknown ;;
174183 arm*) machine=arm-unknown ;;
175184 sh3el) machine=shl-unknown ;;
176185 sh3eb) machine=sh-unknown ;;
177186 sh5el) machine=sh5le-unknown ;;
178 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
187 earmv*)
188 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
191 ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
179193 esac
180194 # The Operating System including object format, if it has switched
181 # to ELF recently, or will in the future.
182 case "${UNAME_MACHINE_ARCH}" in
195 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
197 earm*)
198 os=netbsdelf
199 ;;
183200 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
184 eval $set_cc_for_build
201 eval "$set_cc_for_build"
185202 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
186203 | grep -q __ELF__
187204 then
196213 os=netbsd
197214 ;;
198215 esac
216 # Determine ABI tags.
217 case "$UNAME_MACHINE_ARCH" in
218 earm*)
219 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
220 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
221 ;;
222 esac
199223 # The OS release
200224 # Debian GNU/NetBSD machines have a different userland, and
201225 # thus, need a distinct triplet. However, they do not need
202226 # kernel version information, so it can be replaced with a
203227 # suitable tag, in the style of linux-gnu.
204 case "${UNAME_VERSION}" in
228 case "$UNAME_VERSION" in
205229 Debian*)
206230 release='-gnu'
207231 ;;
208232 *)
209 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
233 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
210234 ;;
211235 esac
212236 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
213237 # contains redundant information, the shorter form:
214238 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
215 echo "${machine}-${os}${release}"
239 echo "$machine-${os}${release}${abi}"
216240 exit ;;
217241 *:Bitrig:*:*)
218242 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
219 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
220244 exit ;;
221245 *:OpenBSD:*:*)
222246 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
223 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
249 *:LibertyBSD:*:*)
250 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
253 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
224255 exit ;;
225256 *:ekkoBSD:*:*)
226 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
227258 exit ;;
228259 *:SolidBSD:*:*)
229 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
230261 exit ;;
231262 macppc:MirBSD:*:*)
232 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
233264 exit ;;
234265 *:MirBSD:*:*)
235 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
236 exit ;;
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
267 exit ;;
268 *:Sortix:*:*)
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
271 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
274 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
237277 alpha:OSF1:*:*)
238278 case $UNAME_RELEASE in
239279 *4.0)
250290 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
251291 case "$ALPHA_CPU_TYPE" in
252292 "EV4 (21064)")
253 UNAME_MACHINE="alpha" ;;
293 UNAME_MACHINE=alpha ;;
254294 "EV4.5 (21064)")
255 UNAME_MACHINE="alpha" ;;
295 UNAME_MACHINE=alpha ;;
256296 "LCA4 (21066/21068)")
257 UNAME_MACHINE="alpha" ;;
297 UNAME_MACHINE=alpha ;;
258298 "EV5 (21164)")
259 UNAME_MACHINE="alphaev5" ;;
299 UNAME_MACHINE=alphaev5 ;;
260300 "EV5.6 (21164A)")
261 UNAME_MACHINE="alphaev56" ;;
301 UNAME_MACHINE=alphaev56 ;;
262302 "EV5.6 (21164PC)")
263 UNAME_MACHINE="alphapca56" ;;
303 UNAME_MACHINE=alphapca56 ;;
264304 "EV5.7 (21164PC)")
265 UNAME_MACHINE="alphapca57" ;;
305 UNAME_MACHINE=alphapca57 ;;
266306 "EV6 (21264)")
267 UNAME_MACHINE="alphaev6" ;;
307 UNAME_MACHINE=alphaev6 ;;
268308 "EV6.7 (21264A)")
269 UNAME_MACHINE="alphaev67" ;;
309 UNAME_MACHINE=alphaev67 ;;
270310 "EV6.8CB (21264C)")
271 UNAME_MACHINE="alphaev68" ;;
311 UNAME_MACHINE=alphaev68 ;;
272312 "EV6.8AL (21264B)")
273 UNAME_MACHINE="alphaev68" ;;
313 UNAME_MACHINE=alphaev68 ;;
274314 "EV6.8CX (21264D)")
275 UNAME_MACHINE="alphaev68" ;;
315 UNAME_MACHINE=alphaev68 ;;
276316 "EV6.9A (21264/EV69A)")
277 UNAME_MACHINE="alphaev69" ;;
317 UNAME_MACHINE=alphaev69 ;;
278318 "EV7 (21364)")
279 UNAME_MACHINE="alphaev7" ;;
319 UNAME_MACHINE=alphaev7 ;;
280320 "EV7.9 (21364A)")
281 UNAME_MACHINE="alphaev79" ;;
321 UNAME_MACHINE=alphaev79 ;;
282322 esac
283323 # A Pn.n version is a patched version.
284324 # A Vn.n version is a released version.
285325 # A Tn.n version is a released field test version.
286326 # A Xn.n version is an unreleased experimental baselevel.
287327 # 1.2 uses "1.2" for uname -r.
288 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
289329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
290330 exitcode=$?
291331 trap '' 0
292332 exit $exitcode ;;
293 Alpha\ *:Windows_NT*:*)
294 # How do we know it's Interix rather than the generic POSIX subsystem?
295 # Should we change UNAME_MACHINE based on the output of uname instead
296 # of the specific Alpha model?
297 echo alpha-pc-interix
298 exit ;;
299 21064:Windows_NT:50:3)
300 echo alpha-dec-winnt3.5
301 exit ;;
302333 Amiga*:UNIX_System_V:4.0:*)
303334 echo m68k-unknown-sysv4
304335 exit ;;
305336 *:[Aa]miga[Oo][Ss]:*:*)
306 echo ${UNAME_MACHINE}-unknown-amigaos
337 echo "$UNAME_MACHINE"-unknown-amigaos
307338 exit ;;
308339 *:[Mm]orph[Oo][Ss]:*:*)
309 echo ${UNAME_MACHINE}-unknown-morphos
340 echo "$UNAME_MACHINE"-unknown-morphos
310341 exit ;;
311342 *:OS/390:*:*)
312343 echo i370-ibm-openedition
318349 echo powerpc-ibm-os400
319350 exit ;;
320351 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
321 echo arm-acorn-riscix${UNAME_RELEASE}
352 echo arm-acorn-riscix"$UNAME_RELEASE"
322353 exit ;;
323354 arm*:riscos:*:*|arm*:RISCOS:*:*)
324355 echo arm-unknown-riscos
345376 sparc) echo sparc-icl-nx7; exit ;;
346377 esac ;;
347378 s390x:SunOS:*:*)
348 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
349380 exit ;;
350381 sun4H:SunOS:5.*:*)
351 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
352383 exit ;;
353384 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
354 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
355386 exit ;;
356387 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
357 echo i386-pc-auroraux${UNAME_RELEASE}
388 echo i386-pc-auroraux"$UNAME_RELEASE"
358389 exit ;;
359390 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
360 eval $set_cc_for_build
361 SUN_ARCH="i386"
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
362393 # If there is a compiler, see if it is configured for 64-bit objects.
363394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
364395 # This test works for both compilers.
365 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
366397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
367 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
368399 grep IS_64BIT_ARCH >/dev/null
369400 then
370 SUN_ARCH="x86_64"
401 SUN_ARCH=x86_64
371402 fi
372403 fi
373 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
374405 exit ;;
375406 sun4*:SunOS:6*:*)
376407 # According to config.sub, this is the proper way to canonicalize
377408 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
378409 # it's likely to be more like Solaris than SunOS4.
379 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
380411 exit ;;
381412 sun4*:SunOS:*:*)
382413 case "`/usr/bin/arch -k`" in
385416 ;;
386417 esac
387418 # Japanese Language versions have a version number like `4.1.3-JL'.
388 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
389420 exit ;;
390421 sun3*:SunOS:*:*)
391 echo m68k-sun-sunos${UNAME_RELEASE}
422 echo m68k-sun-sunos"$UNAME_RELEASE"
392423 exit ;;
393424 sun*:*:4.2BSD:*)
394425 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
395 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
426 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
396427 case "`/bin/arch`" in
397428 sun3)
398 echo m68k-sun-sunos${UNAME_RELEASE}
429 echo m68k-sun-sunos"$UNAME_RELEASE"
399430 ;;
400431 sun4)
401 echo sparc-sun-sunos${UNAME_RELEASE}
432 echo sparc-sun-sunos"$UNAME_RELEASE"
402433 ;;
403434 esac
404435 exit ;;
405436 aushp:SunOS:*:*)
406 echo sparc-auspex-sunos${UNAME_RELEASE}
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
407438 exit ;;
408439 # The situation for MiNT is a little confusing. The machine name
409440 # can be virtually everything (everything which is not
414445 # MiNT. But MiNT is downward compatible to TOS, so this should
415446 # be no problem.
416447 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
417 echo m68k-atari-mint${UNAME_RELEASE}
448 echo m68k-atari-mint"$UNAME_RELEASE"
418449 exit ;;
419450 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
420 echo m68k-atari-mint${UNAME_RELEASE}
451 echo m68k-atari-mint"$UNAME_RELEASE"
421452 exit ;;
422453 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
423 echo m68k-atari-mint${UNAME_RELEASE}
454 echo m68k-atari-mint"$UNAME_RELEASE"
424455 exit ;;
425456 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
426 echo m68k-milan-mint${UNAME_RELEASE}
457 echo m68k-milan-mint"$UNAME_RELEASE"
427458 exit ;;
428459 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
429 echo m68k-hades-mint${UNAME_RELEASE}
460 echo m68k-hades-mint"$UNAME_RELEASE"
430461 exit ;;
431462 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
432 echo m68k-unknown-mint${UNAME_RELEASE}
463 echo m68k-unknown-mint"$UNAME_RELEASE"
433464 exit ;;
434465 m68k:machten:*:*)
435 echo m68k-apple-machten${UNAME_RELEASE}
466 echo m68k-apple-machten"$UNAME_RELEASE"
436467 exit ;;
437468 powerpc:machten:*:*)
438 echo powerpc-apple-machten${UNAME_RELEASE}
469 echo powerpc-apple-machten"$UNAME_RELEASE"
439470 exit ;;
440471 RISC*:Mach:*:*)
441472 echo mips-dec-mach_bsd4.3
442473 exit ;;
443474 RISC*:ULTRIX:*:*)
444 echo mips-dec-ultrix${UNAME_RELEASE}
475 echo mips-dec-ultrix"$UNAME_RELEASE"
445476 exit ;;
446477 VAX*:ULTRIX*:*:*)
447 echo vax-dec-ultrix${UNAME_RELEASE}
478 echo vax-dec-ultrix"$UNAME_RELEASE"
448479 exit ;;
449480 2020:CLIX:*:* | 2430:CLIX:*:*)
450 echo clipper-intergraph-clix${UNAME_RELEASE}
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
451482 exit ;;
452483 mips:*:*:UMIPS | mips:*:*:RISCos)
453 eval $set_cc_for_build
454 sed 's/^ //' << EOF >$dummy.c
484 eval "$set_cc_for_build"
485 sed 's/^ //' << EOF > "$dummy.c"
455486 #ifdef __cplusplus
456487 #include <stdio.h> /* for printf() prototype */
457488 int main (int argc, char *argv[]) {
460491 #endif
461492 #if defined (host_mips) && defined (MIPSEB)
462493 #if defined (SYSTYPE_SYSV)
463 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
494 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
464495 #endif
465496 #if defined (SYSTYPE_SVR4)
466 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
497 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
467498 #endif
468499 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
469 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
500 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
470501 #endif
471502 #endif
472503 exit (-1);
473504 }
474505 EOF
475 $CC_FOR_BUILD -o $dummy $dummy.c &&
476 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
477 SYSTEM_NAME=`$dummy $dummyarg` &&
506 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
507 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
478509 { echo "$SYSTEM_NAME"; exit; }
479 echo mips-mips-riscos${UNAME_RELEASE}
510 echo mips-mips-riscos"$UNAME_RELEASE"
480511 exit ;;
481512 Motorola:PowerMAX_OS:*:*)
482513 echo powerpc-motorola-powermax
502533 AViiON:dgux:*:*)
503534 # DG/UX returns AViiON for all architectures
504535 UNAME_PROCESSOR=`/usr/bin/uname -p`
505 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
506537 then
507 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
508 [ ${TARGET_BINARY_INTERFACE}x = x ]
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
509540 then
510 echo m88k-dg-dgux${UNAME_RELEASE}
541 echo m88k-dg-dgux"$UNAME_RELEASE"
511542 else
512 echo m88k-dg-dguxbcs${UNAME_RELEASE}
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
513544 fi
514545 else
515 echo i586-dg-dgux${UNAME_RELEASE}
546 echo i586-dg-dgux"$UNAME_RELEASE"
516547 fi
517548 exit ;;
518549 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
529560 echo m68k-tektronix-bsd
530561 exit ;;
531562 *:IRIX*:*:*)
532 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
533564 exit ;;
534565 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
535566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
541572 if [ -x /usr/bin/oslevel ] ; then
542573 IBM_REV=`/usr/bin/oslevel`
543574 else
544 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
545 fi
546 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
547578 exit ;;
548579 *:AIX:2:3)
549580 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
550 eval $set_cc_for_build
551 sed 's/^ //' << EOF >$dummy.c
581 eval "$set_cc_for_build"
582 sed 's/^ //' << EOF > "$dummy.c"
552583 #include <sys/systemcfg.h>
553584
554585 main()
559590 exit(0);
560591 }
561592 EOF
562 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
593 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
563594 then
564595 echo "$SYSTEM_NAME"
565596 else
573604 exit ;;
574605 *:AIX:*:[4567])
575606 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
576 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
607 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
577608 IBM_ARCH=rs6000
578609 else
579610 IBM_ARCH=powerpc
580611 fi
581 if [ -x /usr/bin/oslevel ] ; then
582 IBM_REV=`/usr/bin/oslevel`
612 if [ -x /usr/bin/lslpp ] ; then
613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
614 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
583615 else
584 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
585 fi
586 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
587619 exit ;;
588620 *:AIX:*:*)
589621 echo rs6000-ibm-aix
590622 exit ;;
591 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
623 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
592624 echo romp-ibm-bsd4.4
593625 exit ;;
594626 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
595 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
596628 exit ;; # report: romp-ibm BSD 4.3
597629 *:BOSX:*:*)
598630 echo rs6000-bull-bosx
607639 echo m68k-hp-bsd4.4
608640 exit ;;
609641 9000/[34678]??:HP-UX:*:*)
610 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
611 case "${UNAME_MACHINE}" in
612 9000/31? ) HP_ARCH=m68000 ;;
613 9000/[34]?? ) HP_ARCH=m68k ;;
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
644 9000/31?) HP_ARCH=m68000 ;;
645 9000/[34]??) HP_ARCH=m68k ;;
614646 9000/[678][0-9][0-9])
615647 if [ -x /usr/bin/getconf ]; then
616648 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
617649 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
618 case "${sc_cpu_version}" in
619 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
620 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
650 case "$sc_cpu_version" in
651 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
621653 532) # CPU_PA_RISC2_0
622 case "${sc_kernel_bits}" in
623 32) HP_ARCH="hppa2.0n" ;;
624 64) HP_ARCH="hppa2.0w" ;;
625 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
654 case "$sc_kernel_bits" in
655 32) HP_ARCH=hppa2.0n ;;
656 64) HP_ARCH=hppa2.0w ;;
657 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
626658 esac ;;
627659 esac
628660 fi
629 if [ "${HP_ARCH}" = "" ]; then
630 eval $set_cc_for_build
631 sed 's/^ //' << EOF >$dummy.c
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
663 sed 's/^ //' << EOF > "$dummy.c"
632664
633665 #define _HPUX_SOURCE
634666 #include <stdlib.h>
661693 exit (0);
662694 }
663695 EOF
664 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
696 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
665697 test -z "$HP_ARCH" && HP_ARCH=hppa
666698 fi ;;
667699 esac
668 if [ ${HP_ARCH} = "hppa2.0w" ]
700 if [ "$HP_ARCH" = hppa2.0w ]
669701 then
670 eval $set_cc_for_build
702 eval "$set_cc_for_build"
671703
672704 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
673705 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
678710 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
679711 # => hppa64-hp-hpux11.23
680712
681 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
713 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
682714 grep -q __LP64__
683715 then
684 HP_ARCH="hppa2.0w"
716 HP_ARCH=hppa2.0w
685717 else
686 HP_ARCH="hppa64"
718 HP_ARCH=hppa64
687719 fi
688720 fi
689 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
690722 exit ;;
691723 ia64:HP-UX:*:*)
692 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
693 echo ia64-hp-hpux${HPUX_REV}
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
694726 exit ;;
695727 3050*:HI-UX:*:*)
696 eval $set_cc_for_build
697 sed 's/^ //' << EOF >$dummy.c
728 eval "$set_cc_for_build"
729 sed 's/^ //' << EOF > "$dummy.c"
698730 #include <unistd.h>
699731 int
700732 main ()
719751 exit (0);
720752 }
721753 EOF
722 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
754 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
723755 { echo "$SYSTEM_NAME"; exit; }
724756 echo unknown-hitachi-hiuxwe2
725757 exit ;;
726 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
758 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
727759 echo hppa1.1-hp-bsd
728760 exit ;;
729761 9000/8??:4.3bsd:*:*)
732764 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
733765 echo hppa1.0-hp-mpeix
734766 exit ;;
735 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
767 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
736768 echo hppa1.1-hp-osf
737769 exit ;;
738770 hp8??:OSF1:*:*)
740772 exit ;;
741773 i*86:OSF1:*:*)
742774 if [ -x /usr/sbin/sysversion ] ; then
743 echo ${UNAME_MACHINE}-unknown-osf1mk
775 echo "$UNAME_MACHINE"-unknown-osf1mk
744776 else
745 echo ${UNAME_MACHINE}-unknown-osf1
777 echo "$UNAME_MACHINE"-unknown-osf1
746778 fi
747779 exit ;;
748780 parisc*:Lites*:*:*)
767799 echo c4-convex-bsd
768800 exit ;;
769801 CRAY*Y-MP:*:*:*)
770 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
771803 exit ;;
772804 CRAY*[A-Z]90:*:*:*)
773 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
805 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
774806 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
775807 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
776808 -e 's/\.[^.]*$/.X/'
777809 exit ;;
778810 CRAY*TS:*:*:*)
779 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
780812 exit ;;
781813 CRAY*T3E:*:*:*)
782 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
783815 exit ;;
784816 CRAY*SV1:*:*:*)
785 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
786818 exit ;;
787819 *:UNICOS/mp:*:*)
788 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
789821 exit ;;
790822 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
791 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
792 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
793 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
823 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
794826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
795827 exit ;;
796828 5000:UNIX_System_V:4.*:*)
797 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
798 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
829 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
799831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
800832 exit ;;
801833 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
802 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
803835 exit ;;
804836 sparc*:BSD/OS:*:*)
805 echo sparc-unknown-bsdi${UNAME_RELEASE}
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
806838 exit ;;
807839 *:BSD/OS:*:*)
808 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
809841 exit ;;
810842 *:FreeBSD:*:*)
811843 UNAME_PROCESSOR=`/usr/bin/uname -p`
812 case ${UNAME_PROCESSOR} in
844 case "$UNAME_PROCESSOR" in
813845 amd64)
814 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
815 *)
816 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
846 UNAME_PROCESSOR=x86_64 ;;
847 i386)
848 UNAME_PROCESSOR=i586 ;;
817849 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
818851 exit ;;
819852 i*:CYGWIN*:*)
820 echo ${UNAME_MACHINE}-pc-cygwin
853 echo "$UNAME_MACHINE"-pc-cygwin
821854 exit ;;
822855 *:MINGW64*:*)
823 echo ${UNAME_MACHINE}-pc-mingw64
856 echo "$UNAME_MACHINE"-pc-mingw64
824857 exit ;;
825858 *:MINGW*:*)
826 echo ${UNAME_MACHINE}-pc-mingw32
827 exit ;;
828 i*:MSYS*:*)
829 echo ${UNAME_MACHINE}-pc-msys
830 exit ;;
831 i*:windows32*:*)
832 # uname -m includes "-pc" on this system.
833 echo ${UNAME_MACHINE}-mingw32
859 echo "$UNAME_MACHINE"-pc-mingw32
860 exit ;;
861 *:MSYS*:*)
862 echo "$UNAME_MACHINE"-pc-msys
834863 exit ;;
835864 i*:PW*:*)
836 echo ${UNAME_MACHINE}-pc-pw32
865 echo "$UNAME_MACHINE"-pc-pw32
837866 exit ;;
838867 *:Interix*:*)
839 case ${UNAME_MACHINE} in
868 case "$UNAME_MACHINE" in
840869 x86)
841 echo i586-pc-interix${UNAME_RELEASE}
870 echo i586-pc-interix"$UNAME_RELEASE"
842871 exit ;;
843872 authenticamd | genuineintel | EM64T)
844 echo x86_64-unknown-interix${UNAME_RELEASE}
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
845874 exit ;;
846875 IA64)
847 echo ia64-unknown-interix${UNAME_RELEASE}
876 echo ia64-unknown-interix"$UNAME_RELEASE"
848877 exit ;;
849878 esac ;;
850 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
851 echo i${UNAME_MACHINE}-pc-mks
852 exit ;;
853 8664:Windows_NT:*)
854 echo x86_64-pc-mks
855 exit ;;
856 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
857 # How do we know it's Interix rather than the generic POSIX subsystem?
858 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
859 # UNAME_MACHINE based on the output of uname instead of i386?
860 echo i586-pc-interix
861 exit ;;
862879 i*:UWIN*:*)
863 echo ${UNAME_MACHINE}-pc-uwin
880 echo "$UNAME_MACHINE"-pc-uwin
864881 exit ;;
865882 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
866883 echo x86_64-unknown-cygwin
867884 exit ;;
868 p*:CYGWIN*:*)
869 echo powerpcle-unknown-cygwin
870 exit ;;
871885 prep*:SunOS:5.*:*)
872 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
873887 exit ;;
874888 *:GNU:*:*)
875889 # the GNU system
876 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
877891 exit ;;
878892 *:GNU/*:*:*)
879893 # other systems with GNU libc and userland
880 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
881895 exit ;;
882896 i*86:Minix:*:*)
883 echo ${UNAME_MACHINE}-pc-minix
897 echo "$UNAME_MACHINE"-pc-minix
884898 exit ;;
885899 aarch64:Linux:*:*)
886 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
887901 exit ;;
888902 aarch64_be:Linux:*:*)
889903 UNAME_MACHINE=aarch64_be
890 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
891905 exit ;;
892906 alpha:Linux:*:*)
893907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
900914 EV68*) UNAME_MACHINE=alphaev68 ;;
901915 esac
902916 objdump --private-headers /bin/sh | grep -q ld.so.1
903 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
917 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905919 exit ;;
906920 arc:Linux:*:* | arceb:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
908922 exit ;;
909923 arm*:Linux:*:*)
910 eval $set_cc_for_build
924 eval "$set_cc_for_build"
911925 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
912926 | grep -q __ARM_EABI__
913927 then
914 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
915929 else
916930 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
917931 | grep -q __ARM_PCS_VFP
918932 then
919 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
920934 else
921 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
922936 fi
923937 fi
924938 exit ;;
925939 avr32*:Linux:*:*)
926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
927941 exit ;;
928942 cris:Linux:*:*)
929 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
930944 exit ;;
931945 crisv32:Linux:*:*)
932 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
947 exit ;;
948 e2k:Linux:*:*)
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
933950 exit ;;
934951 frv:Linux:*:*)
935 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
936953 exit ;;
937954 hexagon:Linux:*:*)
938 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
939956 exit ;;
940957 i*86:Linux:*:*)
941 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
942959 exit ;;
943960 ia64:Linux:*:*)
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
963 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
945965 exit ;;
946966 m32r*:Linux:*:*)
947 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
948968 exit ;;
949969 m68*:Linux:*:*)
950 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
951971 exit ;;
952972 mips:Linux:*:* | mips64:Linux:*:*)
953 eval $set_cc_for_build
954 sed 's/^ //' << EOF >$dummy.c
973 eval "$set_cc_for_build"
974 sed 's/^ //' << EOF > "$dummy.c"
955975 #undef CPU
956976 #undef ${UNAME_MACHINE}
957977 #undef ${UNAME_MACHINE}el
965985 #endif
966986 #endif
967987 EOF
968 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
969 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
970990 ;;
971 or1k:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 exit ;;
974 or32:Linux:*:*)
975 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
991 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
994 openrisc*:Linux:*:*)
995 echo or1k-unknown-linux-"$LIBC"
996 exit ;;
997 or32:Linux:*:* | or1k*:Linux:*:*)
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
976999 exit ;;
9771000 padre:Linux:*:*)
978 echo sparc-unknown-linux-${LIBC}
1001 echo sparc-unknown-linux-"$LIBC"
9791002 exit ;;
9801003 parisc64:Linux:*:* | hppa64:Linux:*:*)
981 echo hppa64-unknown-linux-${LIBC}
1004 echo hppa64-unknown-linux-"$LIBC"
9821005 exit ;;
9831006 parisc:Linux:*:* | hppa:Linux:*:*)
9841007 # Look for CPU level
9851008 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
986 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
987 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
988 *) echo hppa-unknown-linux-${LIBC} ;;
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
9891012 esac
9901013 exit ;;
9911014 ppc64:Linux:*:*)
992 echo powerpc64-unknown-linux-${LIBC}
1015 echo powerpc64-unknown-linux-"$LIBC"
9931016 exit ;;
9941017 ppc:Linux:*:*)
995 echo powerpc-unknown-linux-${LIBC}
1018 echo powerpc-unknown-linux-"$LIBC"
9961019 exit ;;
9971020 ppc64le:Linux:*:*)
998 echo powerpc64le-unknown-linux-${LIBC}
1021 echo powerpc64le-unknown-linux-"$LIBC"
9991022 exit ;;
10001023 ppcle:Linux:*:*)
1001 echo powerpcle-unknown-linux-${LIBC}
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10021028 exit ;;
10031029 s390:Linux:*:* | s390x:Linux:*:*)
1004 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
10051031 exit ;;
10061032 sh64*:Linux:*:*)
1007 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10081034 exit ;;
10091035 sh*:Linux:*:*)
1010 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10111037 exit ;;
10121038 sparc:Linux:*:* | sparc64:Linux:*:*)
1013 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10141040 exit ;;
10151041 tile*:Linux:*:*)
1016 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10171043 exit ;;
10181044 vax:Linux:*:*)
1019 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
10201046 exit ;;
10211047 x86_64:Linux:*:*)
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1048 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1050 else
1051 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1052 fi
10231053 exit ;;
10241054 xtensa*:Linux:*:*)
1025 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1055 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10261056 exit ;;
10271057 i*86:DYNIX/ptx:4*:*)
10281058 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10361066 # I am not positive that other SVR4 systems won't match this,
10371067 # I just have to hope. -- rms.
10381068 # Use sysv4.2uw... so that sysv4* matches it.
1039 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1069 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
10401070 exit ;;
10411071 i*86:OS/2:*:*)
10421072 # If we were able to find `uname', then EMX Unix compatibility
10431073 # is probably installed.
1044 echo ${UNAME_MACHINE}-pc-os2-emx
1074 echo "$UNAME_MACHINE"-pc-os2-emx
10451075 exit ;;
10461076 i*86:XTS-300:*:STOP)
1047 echo ${UNAME_MACHINE}-unknown-stop
1077 echo "$UNAME_MACHINE"-unknown-stop
10481078 exit ;;
10491079 i*86:atheos:*:*)
1050 echo ${UNAME_MACHINE}-unknown-atheos
1080 echo "$UNAME_MACHINE"-unknown-atheos
10511081 exit ;;
10521082 i*86:syllable:*:*)
1053 echo ${UNAME_MACHINE}-pc-syllable
1083 echo "$UNAME_MACHINE"-pc-syllable
10541084 exit ;;
10551085 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1056 echo i386-unknown-lynxos${UNAME_RELEASE}
1086 echo i386-unknown-lynxos"$UNAME_RELEASE"
10571087 exit ;;
10581088 i*86:*DOS:*:*)
1059 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1060 exit ;;
1061 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1062 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1089 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1090 exit ;;
1091 i*86:*:4.*:*)
1092 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10631093 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1064 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1094 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
10651095 else
1066 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1096 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
10671097 fi
10681098 exit ;;
10691099 i*86:*:5:[678]*)
10731103 *Pentium) UNAME_MACHINE=i586 ;;
10741104 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10751105 esac
1076 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1106 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
10771107 exit ;;
10781108 i*86:*:3.2:*)
10791109 if test -f /usr/options/cb.name; then
10801110 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1081 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1111 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
10821112 elif /bin/uname -X 2>/dev/null >/dev/null ; then
10831113 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
10841114 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
10881118 && UNAME_MACHINE=i686
10891119 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
10901120 && UNAME_MACHINE=i686
1091 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1121 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
10921122 else
1093 echo ${UNAME_MACHINE}-pc-sysv32
1123 echo "$UNAME_MACHINE"-pc-sysv32
10941124 fi
10951125 exit ;;
10961126 pc:*:*:*)
10981128 # uname -m prints for DJGPP always 'pc', but it prints nothing about
10991129 # the processor, so we play safe by assuming i586.
11001130 # Note: whatever this is, it MUST be the same as what config.sub
1101 # prints for the "djgpp" host, or else GDB configury will decide that
1131 # prints for the "djgpp" host, or else GDB configure will decide that
11021132 # this is a cross-build.
11031133 echo i586-pc-msdosdjgpp
11041134 exit ;;
11101140 exit ;;
11111141 i860:*:4.*:*) # i860-SVR4
11121142 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1113 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1143 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
11141144 else # Add other i860-SVR4 vendors below as they are discovered.
1115 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1145 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
11161146 fi
11171147 exit ;;
11181148 mini*:CTIX:SYS*5:*)
11321162 test -r /etc/.relid \
11331163 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11341164 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1135 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1165 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11361166 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1137 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1167 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11381168 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11391169 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11401170 && { echo i486-ncr-sysv4; exit; } ;;
11431173 test -r /etc/.relid \
11441174 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11451175 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1146 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1176 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11471177 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1148 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1178 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11491179 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1150 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1180 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11511181 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1152 echo m68k-unknown-lynxos${UNAME_RELEASE}
1182 echo m68k-unknown-lynxos"$UNAME_RELEASE"
11531183 exit ;;
11541184 mc68030:UNIX_System_V:4.*:*)
11551185 echo m68k-atari-sysv4
11561186 exit ;;
11571187 TSUNAMI:LynxOS:2.*:*)
1158 echo sparc-unknown-lynxos${UNAME_RELEASE}
1188 echo sparc-unknown-lynxos"$UNAME_RELEASE"
11591189 exit ;;
11601190 rs6000:LynxOS:2.*:*)
1161 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1191 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
11621192 exit ;;
11631193 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1164 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1194 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
11651195 exit ;;
11661196 SM[BE]S:UNIX_SV:*:*)
1167 echo mips-dde-sysv${UNAME_RELEASE}
1197 echo mips-dde-sysv"$UNAME_RELEASE"
11681198 exit ;;
11691199 RM*:ReliantUNIX-*:*:*)
11701200 echo mips-sni-sysv4
11751205 *:SINIX-*:*:*)
11761206 if uname -p 2>/dev/null >/dev/null ; then
11771207 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1178 echo ${UNAME_MACHINE}-sni-sysv4
1208 echo "$UNAME_MACHINE"-sni-sysv4
11791209 else
11801210 echo ns32k-sni-sysv
11811211 fi
11951225 exit ;;
11961226 i*86:VOS:*:*)
11971227 # From Paul.Green@stratus.com.
1198 echo ${UNAME_MACHINE}-stratus-vos
1228 echo "$UNAME_MACHINE"-stratus-vos
11991229 exit ;;
12001230 *:VOS:*:*)
12011231 # From Paul.Green@stratus.com.
12021232 echo hppa1.1-stratus-vos
12031233 exit ;;
12041234 mc68*:A/UX:*:*)
1205 echo m68k-apple-aux${UNAME_RELEASE}
1235 echo m68k-apple-aux"$UNAME_RELEASE"
12061236 exit ;;
12071237 news*:NEWS-OS:6*:*)
12081238 echo mips-sony-newsos6
12091239 exit ;;
12101240 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12111241 if [ -d /usr/nec ]; then
1212 echo mips-nec-sysv${UNAME_RELEASE}
1242 echo mips-nec-sysv"$UNAME_RELEASE"
12131243 else
1214 echo mips-unknown-sysv${UNAME_RELEASE}
1244 echo mips-unknown-sysv"$UNAME_RELEASE"
12151245 fi
12161246 exit ;;
12171247 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12301260 echo x86_64-unknown-haiku
12311261 exit ;;
12321262 SX-4:SUPER-UX:*:*)
1233 echo sx4-nec-superux${UNAME_RELEASE}
1263 echo sx4-nec-superux"$UNAME_RELEASE"
12341264 exit ;;
12351265 SX-5:SUPER-UX:*:*)
1236 echo sx5-nec-superux${UNAME_RELEASE}
1266 echo sx5-nec-superux"$UNAME_RELEASE"
12371267 exit ;;
12381268 SX-6:SUPER-UX:*:*)
1239 echo sx6-nec-superux${UNAME_RELEASE}
1269 echo sx6-nec-superux"$UNAME_RELEASE"
12401270 exit ;;
12411271 SX-7:SUPER-UX:*:*)
1242 echo sx7-nec-superux${UNAME_RELEASE}
1272 echo sx7-nec-superux"$UNAME_RELEASE"
12431273 exit ;;
12441274 SX-8:SUPER-UX:*:*)
1245 echo sx8-nec-superux${UNAME_RELEASE}
1275 echo sx8-nec-superux"$UNAME_RELEASE"
12461276 exit ;;
12471277 SX-8R:SUPER-UX:*:*)
1248 echo sx8r-nec-superux${UNAME_RELEASE}
1278 echo sx8r-nec-superux"$UNAME_RELEASE"
1279 exit ;;
1280 SX-ACE:SUPER-UX:*:*)
1281 echo sxace-nec-superux"$UNAME_RELEASE"
12491282 exit ;;
12501283 Power*:Rhapsody:*:*)
1251 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1284 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
12521285 exit ;;
12531286 *:Rhapsody:*:*)
1254 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1287 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
12551288 exit ;;
12561289 *:Darwin:*:*)
12571290 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1258 eval $set_cc_for_build
1291 eval "$set_cc_for_build"
12591292 if test "$UNAME_PROCESSOR" = unknown ; then
12601293 UNAME_PROCESSOR=powerpc
12611294 fi
1262 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1263 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1295 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1296 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
12641297 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1265 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1266 grep IS_64BIT_ARCH >/dev/null
1298 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1299 grep IS_64BIT_ARCH >/dev/null
12671300 then
12681301 case $UNAME_PROCESSOR in
12691302 i386) UNAME_PROCESSOR=x86_64 ;;
12701303 powerpc) UNAME_PROCESSOR=powerpc64 ;;
12711304 esac
1305 fi
1306 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1307 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1308 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1309 grep IS_PPC >/dev/null
1310 then
1311 UNAME_PROCESSOR=powerpc
12721312 fi
12731313 fi
12741314 elif test "$UNAME_PROCESSOR" = i386 ; then
12801320 # that Apple uses in portable devices.
12811321 UNAME_PROCESSOR=x86_64
12821322 fi
1283 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1323 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
12841324 exit ;;
12851325 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12861326 UNAME_PROCESSOR=`uname -p`
1287 if test "$UNAME_PROCESSOR" = "x86"; then
1327 if test "$UNAME_PROCESSOR" = x86; then
12881328 UNAME_PROCESSOR=i386
12891329 UNAME_MACHINE=pc
12901330 fi
1291 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1331 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
12921332 exit ;;
12931333 *:QNX:*:4*)
12941334 echo i386-pc-qnx
12951335 exit ;;
1296 NEO-?:NONSTOP_KERNEL:*:*)
1297 echo neo-tandem-nsk${UNAME_RELEASE}
1336 NEO-*:NONSTOP_KERNEL:*:*)
1337 echo neo-tandem-nsk"$UNAME_RELEASE"
12981338 exit ;;
12991339 NSE-*:NONSTOP_KERNEL:*:*)
1300 echo nse-tandem-nsk${UNAME_RELEASE}
1301 exit ;;
1302 NSR-?:NONSTOP_KERNEL:*:*)
1303 echo nsr-tandem-nsk${UNAME_RELEASE}
1340 echo nse-tandem-nsk"$UNAME_RELEASE"
1341 exit ;;
1342 NSR-*:NONSTOP_KERNEL:*:*)
1343 echo nsr-tandem-nsk"$UNAME_RELEASE"
1344 exit ;;
1345 NSV-*:NONSTOP_KERNEL:*:*)
1346 echo nsv-tandem-nsk"$UNAME_RELEASE"
1347 exit ;;
1348 NSX-*:NONSTOP_KERNEL:*:*)
1349 echo nsx-tandem-nsk"$UNAME_RELEASE"
13041350 exit ;;
13051351 *:NonStop-UX:*:*)
13061352 echo mips-compaq-nonstopux
13091355 echo bs2000-siemens-sysv
13101356 exit ;;
13111357 DS/*:UNIX_System_V:*:*)
1312 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1358 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
13131359 exit ;;
13141360 *:Plan9:*:*)
13151361 # "uname -m" is not consistent, so use $cputype instead. 386
13161362 # is converted to i386 for consistency with other x86
13171363 # operating systems.
1318 if test "$cputype" = "386"; then
1364 if test "$cputype" = 386; then
13191365 UNAME_MACHINE=i386
13201366 else
13211367 UNAME_MACHINE="$cputype"
13221368 fi
1323 echo ${UNAME_MACHINE}-unknown-plan9
1369 echo "$UNAME_MACHINE"-unknown-plan9
13241370 exit ;;
13251371 *:TOPS-10:*:*)
13261372 echo pdp10-unknown-tops10
13411387 echo pdp10-unknown-its
13421388 exit ;;
13431389 SEI:*:*:SEIUX)
1344 echo mips-sei-seiux${UNAME_RELEASE}
1390 echo mips-sei-seiux"$UNAME_RELEASE"
13451391 exit ;;
13461392 *:DragonFly:*:*)
1347 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1393 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
13481394 exit ;;
13491395 *:*VMS:*:*)
13501396 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1351 case "${UNAME_MACHINE}" in
1397 case "$UNAME_MACHINE" in
13521398 A*) echo alpha-dec-vms ; exit ;;
13531399 I*) echo ia64-dec-vms ; exit ;;
13541400 V*) echo vax-dec-vms ; exit ;;
13571403 echo i386-pc-xenix
13581404 exit ;;
13591405 i*86:skyos:*:*)
1360 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1406 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
13611407 exit ;;
13621408 i*86:rdos:*:*)
1363 echo ${UNAME_MACHINE}-pc-rdos
1409 echo "$UNAME_MACHINE"-pc-rdos
13641410 exit ;;
13651411 i*86:AROS:*:*)
1366 echo ${UNAME_MACHINE}-pc-aros
1412 echo "$UNAME_MACHINE"-pc-aros
13671413 exit ;;
13681414 x86_64:VMkernel:*:*)
1369 echo ${UNAME_MACHINE}-unknown-esx
1415 echo "$UNAME_MACHINE"-unknown-esx
1416 exit ;;
1417 amd64:Isilon\ OneFS:*:*)
1418 echo x86_64-unknown-onefs
13701419 exit ;;
13711420 esac
13721421
1373 eval $set_cc_for_build
1374 cat >$dummy.c <<EOF
1375 #ifdef _SEQUENT_
1376 # include <sys/types.h>
1377 # include <sys/utsname.h>
1378 #endif
1379 main ()
1380 {
1381 #if defined (sony)
1382 #if defined (MIPSEB)
1383 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1384 I don't know.... */
1385 printf ("mips-sony-bsd\n"); exit (0);
1386 #else
1387 #include <sys/param.h>
1388 printf ("m68k-sony-newsos%s\n",
1389 #ifdef NEWSOS4
1390 "4"
1391 #else
1392 ""
1393 #endif
1394 ); exit (0);
1395 #endif
1396 #endif
1397
1398 #if defined (__arm) && defined (__acorn) && defined (__unix)
1399 printf ("arm-acorn-riscix\n"); exit (0);
1400 #endif
1401
1402 #if defined (hp300) && !defined (hpux)
1403 printf ("m68k-hp-bsd\n"); exit (0);
1404 #endif
1405
1406 #if defined (NeXT)
1407 #if !defined (__ARCHITECTURE__)
1408 #define __ARCHITECTURE__ "m68k"
1409 #endif
1410 int version;
1411 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1412 if (version < 4)
1413 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1414 else
1415 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1416 exit (0);
1417 #endif
1418
1419 #if defined (MULTIMAX) || defined (n16)
1420 #if defined (UMAXV)
1421 printf ("ns32k-encore-sysv\n"); exit (0);
1422 #else
1423 #if defined (CMU)
1424 printf ("ns32k-encore-mach\n"); exit (0);
1425 #else
1426 printf ("ns32k-encore-bsd\n"); exit (0);
1427 #endif
1428 #endif
1429 #endif
1430
1431 #if defined (__386BSD__)
1432 printf ("i386-pc-bsd\n"); exit (0);
1433 #endif
1434
1435 #if defined (sequent)
1436 #if defined (i386)
1437 printf ("i386-sequent-dynix\n"); exit (0);
1438 #endif
1439 #if defined (ns32000)
1440 printf ("ns32k-sequent-dynix\n"); exit (0);
1441 #endif
1442 #endif
1443
1444 #if defined (_SEQUENT_)
1445 struct utsname un;
1446
1447 uname(&un);
1448
1449 if (strncmp(un.version, "V2", 2) == 0) {
1450 printf ("i386-sequent-ptx2\n"); exit (0);
1451 }
1452 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1453 printf ("i386-sequent-ptx1\n"); exit (0);
1454 }
1455 printf ("i386-sequent-ptx\n"); exit (0);
1456
1457 #endif
1458
1459 #if defined (vax)
1460 # if !defined (ultrix)
1461 # include <sys/param.h>
1462 # if defined (BSD)
1463 # if BSD == 43
1464 printf ("vax-dec-bsd4.3\n"); exit (0);
1465 # else
1466 # if BSD == 199006
1467 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1468 # else
1469 printf ("vax-dec-bsd\n"); exit (0);
1470 # endif
1471 # endif
1472 # else
1473 printf ("vax-dec-bsd\n"); exit (0);
1474 # endif
1475 # else
1476 printf ("vax-dec-ultrix\n"); exit (0);
1477 # endif
1478 #endif
1479
1480 #if defined (alliant) && defined (i860)
1481 printf ("i860-alliant-bsd\n"); exit (0);
1482 #endif
1483
1484 exit (1);
1485 }
1422 echo "$0: unable to guess system type" >&2
1423
1424 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1425 mips:Linux | mips64:Linux)
1426 # If we got here on MIPS GNU/Linux, output extra information.
1427 cat >&2 <<EOF
1428
1429 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1430 the system type. Please install a C compiler and try again.
14861431 EOF
1487
1488 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1489 { echo "$SYSTEM_NAME"; exit; }
1490
1491 # Apollos put the system type in the environment.
1492
1493 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1494
1495 # Convex versions that predate uname can use getsysinfo(1)
1496
1497 if [ -x /usr/convex/getsysinfo ]
1498 then
1499 case `getsysinfo -f cpu_type` in
1500 c1*)
1501 echo c1-convex-bsd
1502 exit ;;
1503 c2*)
1504 if getsysinfo -f scalar_acc
1505 then echo c32-convex-bsd
1506 else echo c2-convex-bsd
1507 fi
1508 exit ;;
1509 c34*)
1510 echo c34-convex-bsd
1511 exit ;;
1512 c38*)
1513 echo c38-convex-bsd
1514 exit ;;
1515 c4*)
1516 echo c4-convex-bsd
1517 exit ;;
1518 esac
1519 fi
1432 ;;
1433 esac
15201434
15211435 cat >&2 <<EOF
1522 $0: unable to guess system type
1523
1524 This script, last modified $timestamp, has failed to recognize
1525 the operating system you are using. It is advised that you
1526 download the most up to date version of the config scripts from
1527
1528 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1436
1437 This script (version $timestamp), has failed to recognize the
1438 operating system you are using. If your script is old, overwrite *all*
1439 copies of config.guess and config.sub with the latest versions from:
1440
1441 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
15291442 and
1530 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1531
1532 If the version you run ($0) is already up to date, please
1533 send the following data and any information you think might be
1534 pertinent to <config-patches@gnu.org> in order to provide the needed
1535 information to handle your system.
1443 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1444
1445 If $0 has already been updated, send the following data and any
1446 information you think might be pertinent to config-patches@gnu.org to
1447 provide the necessary information to handle your system.
15361448
15371449 config.guess timestamp = $timestamp
15381450
15511463 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
15521464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
15531465
1554 UNAME_MACHINE = ${UNAME_MACHINE}
1555 UNAME_RELEASE = ${UNAME_RELEASE}
1556 UNAME_SYSTEM = ${UNAME_SYSTEM}
1557 UNAME_VERSION = ${UNAME_VERSION}
1466 UNAME_MACHINE = "$UNAME_MACHINE"
1467 UNAME_RELEASE = "$UNAME_RELEASE"
1468 UNAME_SYSTEM = "$UNAME_SYSTEM"
1469 UNAME_VERSION = "$UNAME_VERSION"
15581470 EOF
15591471
15601472 exit 1
15611473
15621474 # Local variables:
1563 # eval: (add-hook 'write-file-hooks 'time-stamp)
1475 # eval: (add-hook 'write-file-functions 'time-stamp)
15641476 # time-stamp-start: "timestamp='"
15651477 # time-stamp-format: "%:y-%02m-%02d"
15661478 # time-stamp-end: "'"
6464 /* Define to 1 if you have the <unistd.h> header file. */
6565 #undef HAVE_UNISTD_H
6666
67 /* Define to the sub-directory in which libtool stores uninstalled libraries.
68 */
67 /* Define to the sub-directory where libtool stores uninstalled libraries. */
6968 #undef LT_OBJDIR
7069
7170 /* Name of package */
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-10-01'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-22'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525
2626
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
27 # Please send patches to <config-patches@gnu.org>.
2828 #
2929 # Configuration subroutine to validate and canonicalize a configuration type.
3030 # Supply the specified configuration type as an argument.
3232 # Otherwise, we print the canonical config type on stdout and succeed.
3333
3434 # You can get the latest version of this script from:
35 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
3636
3737 # This file is supposed to be the same for all GNU packages
3838 # and recognize all the CPU types, system types and aliases
5252 me=`echo "$0" | sed -e 's,.*/,,'`
5353
5454 usage="\
55 Usage: $0 [OPTION] CPU-MFR-OPSYS
56 $0 [OPTION] ALIAS
55 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
5756
5857 Canonicalize a configuration name.
5958
60 Operation modes:
59 Options:
6160 -h, --help print this help, then exit
6261 -t, --time-stamp print date of last modification, then exit
6362 -v, --version print version number, then exit
6766 version="\
6867 GNU config.sub ($timestamp)
6968
70 Copyright 1992-2013 Free Software Foundation, Inc.
69 Copyright 1992-2018 Free Software Foundation, Inc.
7170
7271 This is free software; see the source for copying conditions. There is NO
7372 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
9493
9594 *local*)
9695 # First pass through any local machine types.
97 echo $1
96 echo "$1"
9897 exit ;;
9998
10099 * )
112111
113112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114113 # Here we must recognize all the valid KERNEL-OS combinations.
115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116115 case $maybe_os in
117116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
120 kopensolaris*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
121120 storm-chaos* | os2-emx* | rtmk-nova*)
122121 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124123 ;;
125124 android-linux)
126125 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128127 ;;
129128 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
129 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
130 if [ "$basic_machine" != "$1" ]
131 then os=`echo "$1" | sed 's/.*-/-/'`
133132 else os=; fi
134133 ;;
135134 esac
178177 ;;
179178 -sco6)
180179 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
182181 ;;
183182 -sco5)
184183 os=-sco3.2v5
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
186185 ;;
187186 -sco4)
188187 os=-sco3.2v4
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
190189 ;;
191190 -sco3.2.[4-9]*)
192191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
194193 ;;
195194 -sco3.2v[4-9]*)
196195 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
198197 ;;
199198 -sco5v6*)
200199 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
202201 ;;
203202 -sco*)
204203 os=-sco3.2v2
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
206205 ;;
207206 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209208 ;;
210209 -isc)
211210 os=-isc2.2
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
213212 ;;
214213 -clix*)
215214 basic_machine=clipper-intergraph
216215 ;;
217216 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
219218 ;;
220219 -lynx*178)
221220 os=-lynxos178
227226 os=-lynxos
228227 ;;
229228 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
234230 ;;
235231 -psos*)
236232 os=-psos
254250 | arc | arceb \
255251 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256252 | avr | avr32 \
253 | ba \
257254 | be32 | be64 \
258255 | bfin \
259256 | c4x | c8051 | clipper \
260257 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
262 | fido | fr30 | frv \
258 | e2k | epiphany \
259 | fido | fr30 | frv | ft32 \
263260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264261 | hexagon \
265 | i370 | i860 | i960 | ia64 \
262 | i370 | i860 | i960 | ia16 | ia64 \
266263 | ip2k | iq2000 \
267264 | k1om \
268265 | le32 | le64 \
282279 | mips64vr5900 | mips64vr5900el \
283280 | mipsisa32 | mipsisa32el \
284281 | mipsisa32r2 | mipsisa32r2el \
282 | mipsisa32r6 | mipsisa32r6el \
285283 | mipsisa64 | mipsisa64el \
286284 | mipsisa64r2 | mipsisa64r2el \
285 | mipsisa64r6 | mipsisa64r6el \
287286 | mipsisa64sb1 | mipsisa64sb1el \
288287 | mipsisa64sr71k | mipsisa64sr71kel \
289288 | mipsr5900 | mipsr5900el \
295294 | nds32 | nds32le | nds32be \
296295 | nios | nios2 | nios2eb | nios2el \
297296 | ns16k | ns32k \
298 | open8 \
299 | or1k | or32 \
300 | pdp10 | pdp11 | pj | pjl \
297 | open8 | or1k | or1knd | or32 \
298 | pdp10 | pj | pjl \
301299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
302301 | pyramid \
302 | riscv32 | riscv64 \
303303 | rl78 | rx \
304304 | score \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
306306 | sh64 | sh64le \
307307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
308308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
310310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
311311 | ubicom32 \
312312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
313 | we32k \
313 | visium \
314 | wasm32 \
314315 | x86 | xc16x | xstormy16 | xtensa \
315316 | z8k | z80)
316317 basic_machine=$basic_machine-unknown
324325 c6x)
325326 basic_machine=tic6x-unknown
326327 ;;
328 leon|leon[3-9])
329 basic_machine=sparc-$basic_machine
330 ;;
327331 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
328332 basic_machine=$basic_machine-unknown
329333 os=-none
330334 ;;
331 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
332336 ;;
333337 ms1)
334338 basic_machine=mt-unknown
357361 ;;
358362 # Object if more than one company name word.
359363 *-*-*)
360 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
361365 exit 1
362366 ;;
363367 # Recognize the basic CPU types with company name.
369373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
370374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
371375 | avr-* | avr32-* \
376 | ba-* \
372377 | be32-* | be64-* \
373378 | bfin-* | bs2000-* \
374379 | c[123]* | c30-* | [cjt]90-* | c4x-* \
375380 | c8051-* | clipper-* | craynv-* | cydra-* \
376381 | d10v-* | d30v-* | dlx-* \
377 | elxsi-* \
382 | e2k-* | elxsi-* \
378383 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
379384 | h8300-* | h8500-* \
380385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
381386 | hexagon-* \
382 | i*86-* | i860-* | i960-* | ia64-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
383388 | ip2k-* | iq2000-* \
384389 | k1om-* \
385390 | le32-* | le64-* \
401406 | mips64vr5900-* | mips64vr5900el-* \
402407 | mipsisa32-* | mipsisa32el-* \
403408 | mipsisa32r2-* | mipsisa32r2el-* \
409 | mipsisa32r6-* | mipsisa32r6el-* \
404410 | mipsisa64-* | mipsisa64el-* \
405411 | mipsisa64r2-* | mipsisa64r2el-* \
412 | mipsisa64r6-* | mipsisa64r6el-* \
406413 | mipsisa64sb1-* | mipsisa64sb1el-* \
407414 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
408415 | mipsr5900-* | mipsr5900el-* \
414421 | nios-* | nios2-* | nios2eb-* | nios2el-* \
415422 | none-* | np1-* | ns16k-* | ns32k-* \
416423 | open8-* \
424 | or1k*-* \
417425 | orion-* \
418426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
419427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
420429 | pyramid-* \
430 | riscv32-* | riscv64-* \
421431 | rl78-* | romp-* | rs6000-* | rx-* \
422432 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
423433 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
424434 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
425435 | sparclite-* \
426 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
436 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
427437 | tahoe-* \
428438 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
429439 | tile*-* \
431441 | ubicom32-* \
432442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
433443 | vax-* \
444 | visium-* \
445 | wasm32-* \
434446 | we32k-* \
435447 | x86-* | x86_64-* | xc16x-* | xps100-* \
436448 | xstormy16-* | xtensa*-* \
444456 # Recognize the various machine names and aliases which stand
445457 # for a CPU type and a company and sometimes even an OS.
446458 386bsd)
447 basic_machine=i386-unknown
459 basic_machine=i386-pc
448460 os=-bsd
449461 ;;
450462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
478490 basic_machine=x86_64-pc
479491 ;;
480492 amd64-*)
481 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
482494 ;;
483495 amdahl)
484496 basic_machine=580-amdahl
507519 basic_machine=i386-pc
508520 os=-aros
509521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
510525 aux)
511526 basic_machine=m68k-apple
512527 os=-aux
520535 os=-linux
521536 ;;
522537 blackfin-*)
523 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
524539 os=-linux
525540 ;;
526541 bluegene*)
528543 os=-cnk
529544 ;;
530545 c54x-*)
531 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
532547 ;;
533548 c55x-*)
534 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
535550 ;;
536551 c6x-*)
537 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
538553 ;;
539554 c90)
540555 basic_machine=c90-cray
623638 basic_machine=rs6000-bull
624639 os=-bosx
625640 ;;
626 dpx2* | dpx2*-bull)
641 dpx2*)
627642 basic_machine=m68k-bull
628643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
648 ;;
649 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
629652 ;;
630653 ebmon29k)
631654 basic_machine=a29k-amd
716739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
717740 basic_machine=hppa1.0-hp
718741 ;;
719 hppa-next)
720 os=-nextstep3
721 ;;
722742 hppaosf)
723743 basic_machine=hppa1.1-hp
724744 os=-osf
731751 basic_machine=i370-ibm
732752 ;;
733753 i*86v32)
734 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
735755 os=-sysv32
736756 ;;
737757 i*86v4*)
738 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
739759 os=-sysv4
740760 ;;
741761 i*86v)
742 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
743763 os=-sysv
744764 ;;
745765 i*86sol2)
746 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
747767 os=-solaris2
748768 ;;
749769 i386mach)
750770 basic_machine=i386-mach
751771 os=-mach
752772 ;;
753 i386-vsta | vsta)
773 vsta)
754774 basic_machine=i386-unknown
755775 os=-vsta
756776 ;;
768788 basic_machine=m68k-isi
769789 os=-sysv
770790 ;;
791 leon-*|leon[3-9]-*)
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
793 ;;
771794 m68knommu)
772795 basic_machine=m68k-unknown
773796 os=-linux
774797 ;;
775798 m68knommu-*)
776 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
777800 os=-linux
778 ;;
779 m88k-omron*)
780 basic_machine=m88k-omron
781801 ;;
782802 magnum | m3230)
783803 basic_machine=mips-mips
810830 os=-mint
811831 ;;
812832 mips3*-*)
813 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
814834 ;;
815835 mips3*)
816 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
817837 ;;
818838 monitor)
819839 basic_machine=m68k-rom68k
823843 basic_machine=powerpc-unknown
824844 os=-morphos
825845 ;;
846 moxiebox)
847 basic_machine=moxie-unknown
848 os=-moxiebox
849 ;;
826850 msdos)
827851 basic_machine=i386-pc
828852 os=-msdos
829853 ;;
830854 ms1-*)
831 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
832856 ;;
833857 msys)
834858 basic_machine=i686-pc
870894 basic_machine=v70-nec
871895 os=-sysv
872896 ;;
873 next | m*-next )
897 next | m*-next)
874898 basic_machine=m68k-next
875899 case $os in
876900 -nextstep* )
915939 nsr-tandem)
916940 basic_machine=nsr-tandem
917941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
947 ;;
918948 op50n-* | op60c-*)
919949 basic_machine=hppa1.1-oki
920950 os=-proelf
947977 os=-linux
948978 ;;
949979 parisc-*)
950 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
951981 os=-linux
952982 ;;
953983 pbd)
963993 basic_machine=i386-pc
964994 ;;
965995 pc98-*)
966 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
967997 ;;
968998 pentium | p5 | k5 | k6 | nexgen | viac3)
969999 basic_machine=i586-pc
9781008 basic_machine=i786-pc
9791009 ;;
9801010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
981 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9821012 ;;
9831013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
984 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9851015 ;;
9861016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
987 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9881018 ;;
9891019 pentium4-*)
990 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9911021 ;;
9921022 pn)
9931023 basic_machine=pn-gould
9971027 ppc | ppcbe) basic_machine=powerpc-unknown
9981028 ;;
9991029 ppc-* | ppcbe-*)
1000 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1001 ;;
1002 ppcle | powerpclittle | ppc-le | powerpc-little)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
10031033 basic_machine=powerpcle-unknown
10041034 ;;
10051035 ppcle-* | powerpclittle-*)
1006 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10071037 ;;
10081038 ppc64) basic_machine=powerpc64-unknown
10091039 ;;
1010 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1011 ;;
1012 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
10131043 basic_machine=powerpc64le-unknown
10141044 ;;
10151045 ppc64le-* | powerpc64little-*)
1016 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10171047 ;;
10181048 ps2)
10191049 basic_machine=i386-ibm
10671097 sequent)
10681098 basic_machine=i386-sequent
10691099 ;;
1070 sh)
1071 basic_machine=sh-hitachi
1072 os=-hms
1073 ;;
10741100 sh5el)
10751101 basic_machine=sh5le-unknown
10761102 ;;
1077 sh64)
1078 basic_machine=sh64-unknown
1079 ;;
1080 sparclite-wrs | simso-wrs)
1103 simso-wrs)
10811104 basic_machine=sparclite-wrs
10821105 os=-vxworks
10831106 ;;
10961119 os=-sysv4
10971120 ;;
10981121 strongarm-* | thumb-*)
1099 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
11001123 ;;
11011124 sun2)
11021125 basic_machine=m68000-sun
12181241 basic_machine=hppa1.1-winbond
12191242 os=-proelf
12201243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
12211247 xbox)
12221248 basic_machine=i686-pc
12231249 os=-mingw32
12261252 basic_machine=xps100-honeywell
12271253 ;;
12281254 xscale-* | xscalee[bl]-*)
1229 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
12301256 ;;
12311257 ymp)
12321258 basic_machine=ymp-cray
12331259 os=-unicos
1234 ;;
1235 z8k-*-coff)
1236 basic_machine=z8k-unknown
1237 os=-sim
1238 ;;
1239 z80-*-coff)
1240 basic_machine=z80-unknown
1241 os=-sim
12421260 ;;
12431261 none)
12441262 basic_machine=none-none
12681286 vax)
12691287 basic_machine=vax-dec
12701288 ;;
1271 pdp10)
1272 # there are many clones, so DEC is not a safe bet
1273 basic_machine=pdp10-unknown
1274 ;;
12751289 pdp11)
12761290 basic_machine=pdp11-dec
12771291 ;;
12811295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
12821296 basic_machine=sh-unknown
12831297 ;;
1284 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1285 basic_machine=sparc-sun
1286 ;;
12871298 cydra)
12881299 basic_machine=cydra-cydrome
12891300 ;;
13031314 # Make sure to match an already-canonicalized machine name.
13041315 ;;
13051316 *)
1306 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
13071318 exit 1
13081319 ;;
13091320 esac
13111322 # Here we canonicalize certain aliases for manufacturers.
13121323 case $basic_machine in
13131324 *-digital*)
1314 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
13151326 ;;
13161327 *-commodore*)
1317 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
13181329 ;;
13191330 *)
13201331 ;;
13251336 if [ x"$os" != x"" ]
13261337 then
13271338 case $os in
1328 # First match some system type aliases
1329 # that might get confused with valid system types.
1339 # First match some system type aliases that might get confused
1340 # with valid system types.
13301341 # -solaris* is a basic system type, with this one exception.
13311342 -auroraux)
13321343 os=-auroraux
13371348 -solaris)
13381349 os=-solaris2
13391350 ;;
1340 -svr4*)
1341 os=-sysv4
1342 ;;
13431351 -unixware*)
13441352 os=-sysv4.2uw
13451353 ;;
13461354 -gnu/linux*)
13471355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
13481356 ;;
1349 # First accept the basic system types.
1357 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
13501362 # The portable systems comes first.
1351 # Each alternative MUST END IN A *, to match a version number.
1363 # Each alternative MUST end in a * to match a version number.
13521364 # -sysv* is not here because it comes later, after sysvr4.
13531365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13541366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13551367 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
13561368 | -sym* | -kopensolaris* | -plan9* \
13571369 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1358 | -aos* | -aros* \
1370 | -aos* | -aros* | -cloudabi* | -sortix* \
13591371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13601372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1361 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1362 | -bitrig* | -openbsd* | -solidbsd* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
13631375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13641376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13651377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13661378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1367 | -chorusos* | -chorusrdb* | -cegcc* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
13681380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1369 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
13701382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1371 | -uxpv* | -beos* | -mpeix* | -udk* \
1372 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
13731385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13741386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13751387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1376 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
13771389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1378 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
13791393 # Remember, each alternative MUST END IN *, to match a version number.
13801394 ;;
13811395 -qnx*)
13921406 -nto*)
13931407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
13941408 ;;
1395 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1396 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
13971411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
13981412 ;;
13991413 -mac*)
1400 os=`echo $os | sed -e 's|mac|macos|'`
1414 os=`echo "$os" | sed -e 's|mac|macos|'`
14011415 ;;
14021416 -linux-dietlibc)
14031417 os=-linux-dietlibc
14061420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
14071421 ;;
14081422 -sunos5*)
1409 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1423 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14101424 ;;
14111425 -sunos6*)
1412 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1426 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14131427 ;;
14141428 -opened*)
14151429 os=-openedition
14201434 -wince*)
14211435 os=-wince
14221436 ;;
1423 -osfrose*)
1424 os=-osfrose
1425 ;;
1426 -osf*)
1427 os=-osf
1428 ;;
14291437 -utek*)
14301438 os=-bsd
14311439 ;;
14501458 -nova*)
14511459 os=-rtmk-nova
14521460 ;;
1453 -ns2 )
1461 -ns2)
14541462 os=-nextstep2
14551463 ;;
14561464 -nsk*)
14721480 -oss*)
14731481 os=-sysv3
14741482 ;;
1475 -svr4)
1483 -svr4*)
14761484 os=-sysv4
14771485 ;;
14781486 -svr3)
14871495 -ose*)
14881496 os=-ose
14891497 ;;
1490 -es1800*)
1491 os=-ose
1492 ;;
1493 -xenix)
1494 os=-xenix
1495 ;;
14961498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
14971499 os=-mint
14981500 ;;
1499 -aros*)
1500 os=-aros
1501 ;;
15021501 -zvmoe)
15031502 os=-zvmoe
15041503 ;;
15051504 -dicos*)
15061505 os=-dicos
15071506 ;;
1507 -pikeos*)
1508 # Until real need of OS specific support for
1509 # particular features comes up, bare metal
1510 # configurations are quite functional.
1511 case $basic_machine in
1512 arm*)
1513 os=-eabi
1514 ;;
1515 *)
1516 os=-elf
1517 ;;
1518 esac
1519 ;;
15081520 -nacl*)
1521 ;;
1522 -ios)
15091523 ;;
15101524 -none)
15111525 ;;
15121526 *)
15131527 # Get rid of the `-' at the beginning of $os.
15141528 os=`echo $os | sed 's/[^-]*-//'`
1515 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
15161530 exit 1
15171531 ;;
15181532 esac
15931607 mips*-*)
15941608 os=-elf
15951609 ;;
1596 or1k-*)
1597 os=-elf
1598 ;;
15991610 or32-*)
16001611 os=-coff
16011612 ;;
16051616 sparc-* | *-sun)
16061617 os=-sunos4.1.1
16071618 ;;
1619 pru-*)
1620 os=-elf
1621 ;;
16081622 *-be)
16091623 os=-beos
16101624 ;;
1611 *-haiku)
1612 os=-haiku
1613 ;;
16141625 *-ibm)
16151626 os=-aix
16161627 ;;
16501661 m88k-omron*)
16511662 os=-luna
16521663 ;;
1653 *-next )
1664 *-next)
16541665 os=-nextstep
16551666 ;;
16561667 *-sequent)
16641675 ;;
16651676 i370-*)
16661677 os=-mvs
1667 ;;
1668 *-next)
1669 os=-nextstep3
16701678 ;;
16711679 *-gould)
16721680 os=-sysv
17771785 vendor=stratus
17781786 ;;
17791787 esac
1780 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
17811789 ;;
17821790 esac
17831791
1784 echo $basic_machine$os
1792 echo "$basic_machine$os"
17851793 exit
17861794
17871795 # Local variables:
1788 # eval: (add-hook 'write-file-hooks 'time-stamp)
1796 # eval: (add-hook 'write-file-functions 'time-stamp)
17891797 # time-stamp-start: "timestamp='"
17901798 # time-stamp-format: "%:y-%02m-%02d"
17911799 # time-stamp-end: "'"
+1498
-1003
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for xfce4-smartbookmark-plugin 0.5.1.
2 # Generated by GNU Autoconf 2.69 for xfce4-smartbookmark-plugin 0.5.2.
33 #
4 # Report bugs to <ema@debian.org>.
4 # Report bugs to <https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin>.
55 #
6 # Copyright (c) 2006 by Emanuele Rocca <ema@debian.org>
6 # Copyright (c) 2006-2020
7 # The Xfce development team. All rights reserved.
8 #
9 # Written by by Emanuele Rocca <ema@debian.org>
710 #
811 #
912 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
275278 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276279 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277280 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and ema@debian.org
281 $as_echo "$0: Please tell bug-autoconf@gnu.org and
282 $0: https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin
279283 $0: about your system, including any error possibly output
280284 $0: before this message. Then install a modern shell, or
281285 $0: manually run the script under such a shell if you do
591595 # Identity of this package.
592596 PACKAGE_NAME='xfce4-smartbookmark-plugin'
593597 PACKAGE_TARNAME='xfce4-smartbookmark-plugin'
594 PACKAGE_VERSION='0.5.1'
595 PACKAGE_STRING='xfce4-smartbookmark-plugin 0.5.1'
596 PACKAGE_BUGREPORT='ema@debian.org'
598 PACKAGE_VERSION='0.5.2'
599 PACKAGE_STRING='xfce4-smartbookmark-plugin 0.5.2'
600 PACKAGE_BUGREPORT='https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin'
597601 PACKAGE_URL=''
598602
599603 # Factoring default headers for most tests.
663667 INTL_MACOSX_LIBS
664668 GETTEXT_PACKAGE
665669 CPP
670 LT_SYS_LIBRARY_PATH
666671 OTOOL64
667672 OTOOL
668673 LIPO
734739 AMDEPBACKSLASH
735740 AMDEP_FALSE
736741 AMDEP_TRUE
737 am__quote
738742 am__include
739743 DEPDIR
740744 OBJEXT
793797 docdir
794798 oldincludedir
795799 includedir
800 runstatedir
796801 localstatedir
797802 sharedstatedir
798803 sysconfdir
811816 PACKAGE_TARNAME
812817 PACKAGE_NAME
813818 PATH_SEPARATOR
814 SHELL'
819 SHELL
820 am__quote'
815821 ac_subst_files=''
816822 ac_user_opts='
817823 enable_option_checking
823829 enable_shared
824830 with_pic
825831 enable_fast_install
832 with_aix_soname
826833 with_gnu_ld
827834 with_sysroot
828835 enable_libtool_lock
837844 LDFLAGS
838845 LIBS
839846 CPPFLAGS
847 LT_SYS_LIBRARY_PATH
840848 CPP
841849 PKG_CONFIG
842850 PKG_CONFIG_PATH
879887 sysconfdir='${prefix}/etc'
880888 sharedstatedir='${prefix}/com'
881889 localstatedir='${prefix}/var'
890 runstatedir='${localstatedir}/run'
882891 includedir='${prefix}/include'
883892 oldincludedir='/usr/include'
884893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
11311140 | -silent | --silent | --silen | --sile | --sil)
11321141 silent=yes ;;
11331142
1143 -runstatedir | --runstatedir | --runstatedi | --runstated \
1144 | --runstate | --runstat | --runsta | --runst | --runs \
1145 | --run | --ru | --r)
1146 ac_prev=runstatedir ;;
1147 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1148 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1149 | --run=* | --ru=* | --r=*)
1150 runstatedir=$ac_optarg ;;
1151
11341152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11351153 ac_prev=sbindir ;;
11361154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12681286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12691287 datadir sysconfdir sharedstatedir localstatedir includedir \
12701288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1289 libdir localedir mandir runstatedir
12721290 do
12731291 eval ac_val=\$$ac_var
12741292 # Remove trailing slashes.
13811399 # Omit some internal or obsolete options to make the list less imposing.
13821400 # This message is too long to be a string in the A/UX 3.1 sh.
13831401 cat <<_ACEOF
1384 \`configure' configures xfce4-smartbookmark-plugin 0.5.1 to adapt to many kinds of systems.
1402 \`configure' configures xfce4-smartbookmark-plugin 0.5.2 to adapt to many kinds of systems.
13851403
13861404 Usage: $0 [OPTION]... [VAR=VALUE]...
13871405
14211439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14221440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14231441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14241443 --libdir=DIR object code libraries [EPREFIX/lib]
14251444 --includedir=DIR C header files [PREFIX/include]
14261445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
14521471
14531472 if test -n "$ac_init_help"; then
14541473 case $ac_init_help in
1455 short | recursive ) echo "Configuration of xfce4-smartbookmark-plugin 0.5.1:";;
1474 short | recursive ) echo "Configuration of xfce4-smartbookmark-plugin 0.5.2:";;
14561475 esac
14571476 cat <<\_ACEOF
14581477
14761495 optimize for fast installation [default=yes]
14771496 --disable-libtool-lock avoid locking (might break parallel builds)
14781497 --enable-debug[=no|minimum|yes|full]
1479 Build with debugging support [default=[]]
1498 Build with debugging support
1499 [default=[minimum]]
14801500 --disable-debug Include no debugging support
14811501
14821502 Optional Packages:
14841504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
14851505 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
14861506 both]
1507 --with-aix-soname=aix|svr4|both
1508 shared library versioning (aka "SONAME") variant to
1509 provide on AIX, [default=aix].
14871510 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1488 --with-sysroot=DIR Search for dependent libraries within DIR
1489 (or the compiler's sysroot if not specified).
1511 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1512 compiler's sysroot if not specified).
14901513
14911514 --with-locales-dir=DIR Install locales into DIR
14921515
14991522 LIBS libraries to pass to the linker, e.g. -l<library>
15001523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
15011524 you have headers in a nonstandard directory <include dir>
1525 LT_SYS_LIBRARY_PATH
1526 User-defined run-time library search path.
15021527 CPP C preprocessor
15031528 PKG_CONFIG path to pkg-config utility
15041529 PKG_CONFIG_PATH
15091534 Use these variables to override the choices made by `configure' or to help
15101535 it to find libraries and programs with nonstandard names/locations.
15111536
1512 Report bugs to <ema@debian.org>.
1537 Report bugs to <https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin>.
15131538 _ACEOF
15141539 ac_status=$?
15151540 fi
15721597 test -n "$ac_init_help" && exit $ac_status
15731598 if $ac_init_version; then
15741599 cat <<\_ACEOF
1575 xfce4-smartbookmark-plugin configure 0.5.1
1600 xfce4-smartbookmark-plugin configure 0.5.2
15761601 generated by GNU Autoconf 2.69
15771602
15781603 Copyright (C) 2012 Free Software Foundation, Inc.
15791604 This configure script is free software; the Free Software Foundation
15801605 gives unlimited permission to copy, distribute and modify it.
15811606
1582 Copyright (c) 2006 by Emanuele Rocca <ema@debian.org>
1607 Copyright (c) 2006-2020
1608 The Xfce development team. All rights reserved.
1609
1610 Written by by Emanuele Rocca <ema@debian.org>
15831611 _ACEOF
15841612 exit
15851613 fi
19191947 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
19201948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
19211949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1922 ( $as_echo "## ----------------------------- ##
1923 ## Report this to ema@debian.org ##
1924 ## ----------------------------- ##"
1950 ( $as_echo "## ------------------------------------------------------------------------------- ##
1951 ## Report this to https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin ##
1952 ## ------------------------------------------------------------------------------- ##"
19251953 ) | sed "s/^/$as_me: WARNING: /" >&2
19261954 ;;
19271955 esac
19431971 This file contains any messages produced by compilers while
19441972 running configure, to aid debugging if configure makes a mistake.
19451973
1946 It was created by xfce4-smartbookmark-plugin $as_me 0.5.1, which was
1974 It was created by xfce4-smartbookmark-plugin $as_me 0.5.2, which was
19471975 generated by GNU Autoconf 2.69. Invocation command line was
19481976
19491977 $ $0 $@
22922320
22932321
22942322
2295 am__api_version='1.14'
2323
2324 am__api_version='1.16'
22962325
22972326 ac_aux_dir=
22982327 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
24932522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
24942523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
24952524
2496 # expand $ac_aux_dir to an absolute path
2497 am_aux_dir=`cd $ac_aux_dir && pwd`
2525 # Expand $ac_aux_dir to an absolute path.
2526 am_aux_dir=`cd "$ac_aux_dir" && pwd`
24982527
24992528 if test x"${MISSING+set}" != xset; then
25002529 case $am_aux_dir in
25132542 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
25142543 fi
25152544
2516 if test x"${install_sh}" != xset; then
2545 if test x"${install_sh+set}" != xset; then
25172546 case $am_aux_dir in
25182547 *\ * | *\ *)
25192548 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
28072836
28082837 # Define the identity of the package.
28092838 PACKAGE='xfce4-smartbookmark-plugin'
2810 VERSION='0.5.1'
2839 VERSION='0.5.2'
28112840
28122841
28132842 cat >>confdefs.h <<_ACEOF
28372866
28382867 # For better backward compatibility. To be removed once Automake 1.9.x
28392868 # dies out for good. For more background, see:
2840 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2841 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2869 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2870 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
28422871 mkdir_p='$(MKDIR_P)'
28432872
2844 # We need awk for the "check" target. The system "awk" is bad on
2845 # some platforms.
2873 # We need awk for the "check" target (and possibly the TAP driver). The
2874 # system "awk" is bad on some platforms.
28462875 # Always define AMTAR for backward compatibility. Yes, it's still used
28472876 # in the wild :-( We should find a proper way to deprecate it ...
28482877 AMTAR='$${TAR-tar}'
30053034 Aborting the configuration process, to ensure you take notice of the issue.
30063035
30073036 You can download and install GNU coreutils to get an 'rm' implementation
3008 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3037 that behaves properly: <https://www.gnu.org/software/coreutils/>.
30093038
30103039 If you want to complete the configuration process using your problematic
30113040 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
30153044 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
30163045 fi
30173046 fi
3047
30183048 ac_config_headers="$ac_config_headers config.h"
30193049
30203050
30383068 fi
30393069
30403070 MAINT=$MAINTAINER_MODE_TRUE
3071
3072
3073 # Check whether --enable-silent-rules was given.
3074 if test "${enable_silent_rules+set}" = set; then :
3075 enableval=$enable_silent_rules;
3076 fi
3077
3078 case $enable_silent_rules in # (((
3079 yes) AM_DEFAULT_VERBOSITY=0;;
3080 no) AM_DEFAULT_VERBOSITY=1;;
3081 *) AM_DEFAULT_VERBOSITY=0;;
3082 esac
3083 am_make=${MAKE-make}
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3085 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3086 if ${am_cv_make_support_nested_variables+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if $as_echo 'TRUE=$(BAR$(V))
3090 BAR0=false
3091 BAR1=true
3092 V=1
3093 am__doit:
3094 @$(TRUE)
3095 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3096 am_cv_make_support_nested_variables=yes
3097 else
3098 am_cv_make_support_nested_variables=no
3099 fi
3100 fi
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3102 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3103 if test $am_cv_make_support_nested_variables = yes; then
3104 AM_V='$(V)'
3105 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3106 else
3107 AM_V=$AM_DEFAULT_VERBOSITY
3108 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3109 fi
3110 AM_BACKSLASH='\'
30413111
30423112
30433113
38923962
38933963 ac_config_commands="$ac_config_commands depfiles"
38943964
3895
3896 am_make=${MAKE-make}
3897 cat > confinc << 'END'
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3966 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3967 cat > confinc.mk << 'END'
38983968 am__doit:
3899 @echo this is the am__doit target
3969 @echo this is the am__doit target >confinc.out
39003970 .PHONY: am__doit
39013971 END
3902 # If we don't find an include directive, just comment out the code.
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3904 $as_echo_n "checking for style of include used by $am_make... " >&6; }
39053972 am__include="#"
39063973 am__quote=
3907 _am_result=none
3908 # First try GNU make style include.
3909 echo "include confinc" > confmf
3910 # Ignore all kinds of additional output from 'make'.
3911 case `$am_make -s -f confmf 2> /dev/null` in #(
3912 *the\ am__doit\ target*)
3913 am__include=include
3914 am__quote=
3915 _am_result=GNU
3916 ;;
3974 # BSD make does it like this.
3975 echo '.include "confinc.mk" # ignored' > confmf.BSD
3976 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3977 echo 'include confinc.mk # ignored' > confmf.GNU
3978 _am_result=no
3979 for s in GNU BSD; do
3980 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3981 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }
3985 case $?:`cat confinc.out 2>/dev/null` in #(
3986 '0:this is the am__doit target') :
3987 case $s in #(
3988 BSD) :
3989 am__include='.include' am__quote='"' ;; #(
3990 *) :
3991 am__include='include' am__quote='' ;;
3992 esac ;; #(
3993 *) :
3994 ;;
39173995 esac
3918 # Now try BSD make style include.
3919 if test "$am__include" = "#"; then
3920 echo '.include "confinc"' > confmf
3921 case `$am_make -s -f confmf 2> /dev/null` in #(
3922 *the\ am__doit\ target*)
3923 am__include=.include
3924 am__quote="\""
3925 _am_result=BSD
3926 ;;
3927 esac
3928 fi
3929
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3932 $as_echo "$_am_result" >&6; }
3933 rm -f confinc confmf
3996 if test "$am__include" != "#"; then
3997 _am_result="yes ($s style)"
3998 break
3999 fi
4000 done
4001 rm -f confinc.* confmf.*
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4003 $as_echo "${_am_result}" >&6; }
39344004
39354005 # Check whether --enable-dependency-tracking was given.
39364006 if test "${enable_dependency_tracking+set}" = set; then :
46324702
46334703
46344704
4635 macro_version='2.4.2'
4636 macro_revision='1.3337'
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650 ltmain="$ac_aux_dir/ltmain.sh"
4705 macro_version='2.4.6'
4706 macro_revision='2.4.6'
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 ltmain=$ac_aux_dir/ltmain.sh
46514721
46524722 # Make sure we can run config.sub.
46534723 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
47674837 $ECHO ""
47684838 }
47694839
4770 case "$ECHO" in
4840 case $ECHO in
47714841 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
47724842 $as_echo "printf" >&6; } ;;
47734843 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
50905160
50915161 # Check whether --with-gnu-ld was given.
50925162 if test "${with_gnu_ld+set}" = set; then :
5093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5163 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
50945164 else
50955165 with_gnu_ld=no
50965166 fi
50975167
50985168 ac_prog=ld
5099 if test "$GCC" = yes; then
5169 if test yes = "$GCC"; then
51005170 # Check if gcc -print-prog-name=ld gives a path.
51015171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
51025172 $as_echo_n "checking for ld used by $CC... " >&6; }
51035173 case $host in
51045174 *-*-mingw*)
5105 # gcc leaves a trailing carriage return which upsets mingw
5175 # gcc leaves a trailing carriage return, which upsets mingw
51065176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
51075177 *)
51085178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
51165186 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
51175187 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
51185188 done
5119 test -z "$LD" && LD="$ac_prog"
5189 test -z "$LD" && LD=$ac_prog
51205190 ;;
51215191 "")
51225192 # If it fails, then pretend we aren't using GCC.
51275197 with_gnu_ld=unknown
51285198 ;;
51295199 esac
5130 elif test "$with_gnu_ld" = yes; then
5200 elif test yes = "$with_gnu_ld"; then
51315201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
51325202 $as_echo_n "checking for GNU ld... " >&6; }
51335203 else
51385208 $as_echo_n "(cached) " >&6
51395209 else
51405210 if test -z "$LD"; then
5141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5211 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
51425212 for ac_dir in $PATH; do
5143 IFS="$lt_save_ifs"
5213 IFS=$lt_save_ifs
51445214 test -z "$ac_dir" && ac_dir=.
51455215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5146 lt_cv_path_LD="$ac_dir/$ac_prog"
5216 lt_cv_path_LD=$ac_dir/$ac_prog
51475217 # Check to see if the program is GNU ld. I'd rather use --version,
51485218 # but apparently some variants of GNU ld only accept -v.
51495219 # Break only if it was the GNU/non-GNU ld that we prefer.
51505220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
51515221 *GNU* | *'with BFD'*)
5152 test "$with_gnu_ld" != no && break
5222 test no != "$with_gnu_ld" && break
51535223 ;;
51545224 *)
5155 test "$with_gnu_ld" != yes && break
5225 test yes != "$with_gnu_ld" && break
51565226 ;;
51575227 esac
51585228 fi
51595229 done
5160 IFS="$lt_save_ifs"
5161 else
5162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5163 fi
5164 fi
5165
5166 LD="$lt_cv_path_LD"
5230 IFS=$lt_save_ifs
5231 else
5232 lt_cv_path_LD=$LD # Let the user override the test with a path.
5233 fi
5234 fi
5235
5236 LD=$lt_cv_path_LD
51675237 if test -n "$LD"; then
51685238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
51695239 $as_echo "$LD" >&6; }
52065276 else
52075277 if test -n "$NM"; then
52085278 # Let the user override the test.
5209 lt_cv_path_NM="$NM"
5210 else
5211 lt_nm_to_check="${ac_tool_prefix}nm"
5279 lt_cv_path_NM=$NM
5280 else
5281 lt_nm_to_check=${ac_tool_prefix}nm
52125282 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
52135283 lt_nm_to_check="$lt_nm_to_check nm"
52145284 fi
52155285 for lt_tmp_nm in $lt_nm_to_check; do
5216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5286 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
52175287 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5218 IFS="$lt_save_ifs"
5288 IFS=$lt_save_ifs
52195289 test -z "$ac_dir" && ac_dir=.
5220 tmp_nm="$ac_dir/$lt_tmp_nm"
5221 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5290 tmp_nm=$ac_dir/$lt_tmp_nm
5291 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
52225292 # Check to see if the nm accepts a BSD-compat flag.
5223 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5293 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
52245294 # nm: unknown option "B" ignored
52255295 # Tru64's nm complains that /dev/null is an invalid object file
5226 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5227 */dev/null* | *'Invalid file or object type'*)
5296 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5297 case $build_os in
5298 mingw*) lt_bad_file=conftest.nm/nofile ;;
5299 *) lt_bad_file=/dev/null ;;
5300 esac
5301 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5302 *$lt_bad_file* | *'Invalid file or object type'*)
52285303 lt_cv_path_NM="$tmp_nm -B"
5229 break
5304 break 2
52305305 ;;
52315306 *)
52325307 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
52335308 */dev/null*)
52345309 lt_cv_path_NM="$tmp_nm -p"
5235 break
5310 break 2
52365311 ;;
52375312 *)
52385313 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
52435318 esac
52445319 fi
52455320 done
5246 IFS="$lt_save_ifs"
5321 IFS=$lt_save_ifs
52475322 done
52485323 : ${lt_cv_path_NM=no}
52495324 fi
52505325 fi
52515326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
52525327 $as_echo "$lt_cv_path_NM" >&6; }
5253 if test "$lt_cv_path_NM" != "no"; then
5254 NM="$lt_cv_path_NM"
5328 if test no != "$lt_cv_path_NM"; then
5329 NM=$lt_cv_path_NM
52555330 else
52565331 # Didn't find any BSD compatible name lister, look for dumpbin.
52575332 if test -n "$DUMPBIN"; then :
53575432 fi
53585433 fi
53595434
5360 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5435 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
53615436 *COFF*)
5362 DUMPBIN="$DUMPBIN -symbols"
5437 DUMPBIN="$DUMPBIN -symbols -headers"
53635438 ;;
53645439 *)
53655440 DUMPBIN=:
53675442 esac
53685443 fi
53695444
5370 if test "$DUMPBIN" != ":"; then
5371 NM="$DUMPBIN"
5445 if test : != "$DUMPBIN"; then
5446 NM=$DUMPBIN
53725447 fi
53735448 fi
53745449 test -z "$NM" && NM=nm
54195494 $as_echo_n "(cached) " >&6
54205495 else
54215496 i=0
5422 teststring="ABCD"
5497 teststring=ABCD
54235498
54245499 case $build_os in
54255500 msdosdjgpp*)
54595534 lt_cv_sys_max_cmd_len=8192;
54605535 ;;
54615536
5462 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5537 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
54635538 # This has been around since 386BSD, at least. Likely further.
54645539 if test -x /sbin/sysctl; then
54655540 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
55095584 ;;
55105585 *)
55115586 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5512 if test -n "$lt_cv_sys_max_cmd_len"; then
5587 if test -n "$lt_cv_sys_max_cmd_len" && \
5588 test undefined != "$lt_cv_sys_max_cmd_len"; then
55135589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
55145590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
55155591 else
55165592 # Make teststring a little bigger before we do anything with it.
55175593 # a 1K string should be a reasonable start.
5518 for i in 1 2 3 4 5 6 7 8 ; do
5594 for i in 1 2 3 4 5 6 7 8; do
55195595 teststring=$teststring$teststring
55205596 done
55215597 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
55225598 # If test is not a shell built-in, we'll probably end up computing a
55235599 # maximum length that is only half of the actual maximum length, but
55245600 # we can't tell.
5525 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5601 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
55265602 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5527 test $i != 17 # 1/2 MB should be enough
5603 test 17 != "$i" # 1/2 MB should be enough
55285604 do
55295605 i=`expr $i + 1`
55305606 teststring=$teststring$teststring
55425618
55435619 fi
55445620
5545 if test -n $lt_cv_sys_max_cmd_len ; then
5621 if test -n "$lt_cv_sys_max_cmd_len"; then
55465622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
55475623 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
55485624 else
55595635 : ${CP="cp -f"}
55605636 : ${MV="mv -f"}
55615637 : ${RM="rm -f"}
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5564 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5565 # Try some XSI features
5566 xsi_shell=no
5567 ( _lt_dummy="a/b/c"
5568 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5569 = c,a/b,b/c, \
5570 && eval 'test $(( 1 + 1 )) -eq 2 \
5571 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5572 && xsi_shell=yes
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5574 $as_echo "$xsi_shell" >&6; }
5575
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5578 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5579 lt_shell_append=no
5580 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5581 >/dev/null 2>&1 \
5582 && lt_shell_append=yes
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5584 $as_echo "$lt_shell_append" >&6; }
5585
55865638
55875639 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55885640 lt_unset=unset
57065758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
57075759 case $host_os in
57085760 cygwin* | mingw* | pw32* | cegcc*)
5709 if test "$GCC" != yes; then
5761 if test yes != "$GCC"; then
57105762 reload_cmds=false
57115763 fi
57125764 ;;
57135765 darwin*)
5714 if test "$GCC" = yes; then
5715 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5766 if test yes = "$GCC"; then
5767 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
57165768 else
57175769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
57185770 fi
58405892 # Need to set the preceding variable on all platforms that support
58415893 # interlibrary dependencies.
58425894 # 'none' -- dependencies not supported.
5843 # `unknown' -- same as none, but documents that we really don't know.
5895 # 'unknown' -- same as none, but documents that we really don't know.
58445896 # 'pass_all' -- all dependencies passed with no checks.
58455897 # 'test_compile' -- check by making test program.
58465898 # 'file_magic [[regex]]' -- check by looking for files in library path
5847 # which responds to the $file_magic_cmd with a given extended regex.
5848 # If you have `file' or equivalent on your system and you're not sure
5849 # whether `pass_all' will *always* work, you probably want this one.
5899 # that responds to the $file_magic_cmd with a given extended regex.
5900 # If you have 'file' or equivalent on your system and you're not sure
5901 # whether 'pass_all' will *always* work, you probably want this one.
58505902
58515903 case $host_os in
58525904 aix[4-9]*)
58735925 # Base MSYS/MinGW do not provide the 'file' command needed by
58745926 # func_win32_libid shell function, so use a weaker test based on 'objdump',
58755927 # unless we find 'file', for example because we are cross-compiling.
5876 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5877 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5928 if ( file / ) >/dev/null 2>&1; then
58785929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
58795930 lt_cv_file_magic_cmd='func_win32_libid'
58805931 else
59085959 else
59095960 lt_cv_deplibs_check_method=pass_all
59105961 fi
5911 ;;
5912
5913 gnu*)
5914 lt_cv_deplibs_check_method=pass_all
59155962 ;;
59165963
59175964 haiku*)
59525999 ;;
59536000
59546001 # This must be glibc/ELF.
5955 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6002 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
59566003 lt_cv_deplibs_check_method=pass_all
59576004 ;;
59586005
5959 netbsd*)
6006 netbsd* | netbsdelf*-gnu)
59606007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
59616008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
59626009 else
59746021 lt_cv_deplibs_check_method=pass_all
59756022 ;;
59766023
5977 openbsd*)
5978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6024 openbsd* | bitrig*)
6025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
59796026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
59806027 else
59816028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
60286075 tpf*)
60296076 lt_cv_deplibs_check_method=pass_all
60306077 ;;
6078 os2*)
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
60316081 esac
60326082
60336083 fi
61856235
61866236 case $host_os in
61876237 cygwin* | mingw* | pw32* | cegcc*)
6188 # two different shell functions defined in ltmain.sh
6189 # decide which to use based on capabilities of $DLLTOOL
6238 # two different shell functions defined in ltmain.sh;
6239 # decide which one to use based on capabilities of $DLLTOOL
61906240 case `$DLLTOOL --help 2>&1` in
61916241 *--identify-strict*)
61926242 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
61986248 ;;
61996249 *)
62006250 # fallback: assume linklib IS sharedlib
6201 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6251 lt_cv_sharedlib_from_linklib_cmd=$ECHO
62026252 ;;
62036253 esac
62046254
63166366 fi
63176367
63186368 : ${AR=ar}
6319 : ${AR_FLAGS=cru}
6369 : ${AR_FLAGS=cr}
63206370
63216371
63226372
63536403 ac_status=$?
63546404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63556405 test $ac_status = 0; }
6356 if test "$ac_status" -eq 0; then
6406 if test 0 -eq "$ac_status"; then
63576407 # Ensure the archiver fails upon bogus file names.
63586408 rm -f conftest.$ac_objext libconftest.a
63596409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
63616411 ac_status=$?
63626412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63636413 test $ac_status = 0; }
6364 if test "$ac_status" -ne 0; then
6414 if test 0 -ne "$ac_status"; then
63656415 lt_cv_ar_at_file=@
63666416 fi
63676417 fi
63746424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
63756425 $as_echo "$lt_cv_ar_at_file" >&6; }
63766426
6377 if test "x$lt_cv_ar_at_file" = xno; then
6427 if test no = "$lt_cv_ar_at_file"; then
63786428 archiver_list_spec=
63796429 else
63806430 archiver_list_spec=$lt_cv_ar_at_file
65916641
65926642 if test -n "$RANLIB"; then
65936643 case $host_os in
6594 openbsd*)
6644 bitrig* | openbsd*)
65956645 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
65966646 ;;
65976647 *)
66816731 symcode='[ABCDGISTW]'
66826732 ;;
66836733 hpux*)
6684 if test "$host_cpu" = ia64; then
6734 if test ia64 = "$host_cpu"; then
66856735 symcode='[ABCDEGRST]'
66866736 fi
66876737 ;;
67146764 symcode='[ABCDGIRSTW]' ;;
67156765 esac
67166766
6767 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6768 # Gets list of data symbols to import.
6769 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6770 # Adjust the below global symbol transforms to fixup imported variables.
6771 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6772 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6773 lt_c_name_lib_hook="\
6774 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6775 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6776 else
6777 # Disable hooks by default.
6778 lt_cv_sys_global_symbol_to_import=
6779 lt_cdecl_hook=
6780 lt_c_name_hook=
6781 lt_c_name_lib_hook=
6782 fi
6783
67176784 # Transform an extracted symbol line into a proper C declaration.
67186785 # Some systems (esp. on ia64) link data and code symbols differently,
67196786 # so use this general approach.
6720 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6787 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6788 $lt_cdecl_hook\
6789 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6790 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
67216791
67226792 # Transform an extracted symbol line into symbol name and symbol address
6723 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6724 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6793 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6794 $lt_c_name_hook\
6795 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6796 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6797
6798 # Transform an extracted symbol line into symbol name with lib prefix and
6799 # symbol address.
6800 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6801 $lt_c_name_lib_hook\
6802 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6803 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6804 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
67256805
67266806 # Handle CRLF in mingw tool chain
67276807 opt_cr=
67396819
67406820 # Write the raw and C identifiers.
67416821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6742 # Fake it for dumpbin and say T for any non-static function
6743 # and D for any global variable.
6822 # Fake it for dumpbin and say T for any non-static function,
6823 # D for any global variable and I for any imported variable.
67446824 # Also find C++ and __fastcall symbols from MSVC++,
67456825 # which start with @ or ?.
67466826 lt_cv_sys_global_symbol_pipe="$AWK '"\
67476827 " {last_section=section; section=\$ 3};"\
67486828 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
67496829 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6830 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6831 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6832 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
67506833 " \$ 0!~/External *\|/{next};"\
67516834 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
67526835 " {if(hide[section]) next};"\
6753 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6754 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6755 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6756 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6836 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6837 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6838 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6839 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
67576840 " ' prfx=^$ac_symprfx"
67586841 else
67596842 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
67846867 test $ac_status = 0; }; then
67856868 # Now try to grab the symbols.
67866869 nlist=conftest.nm
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6788 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; } && test -s "$nlist"; then
6870 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6871 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
67926872 # Try sorting and uniquifying the output.
67936873 if sort "$nlist" | uniq > "$nlist"T; then
67946874 mv -f "$nlist"T "$nlist"
68016881 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
68026882 cat <<_LT_EOF > conftest.$ac_ext
68036883 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6804 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6805 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6884 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6885 /* DATA imports from DLLs on WIN32 can't be const, because runtime
68066886 relocations are performed -- see ld's documentation on pseudo-relocs. */
68076887 # define LT_DLSYM_CONST
6808 #elif defined(__osf__)
6888 #elif defined __osf__
68096889 /* This system does not cope well with relocations in const data. */
68106890 # define LT_DLSYM_CONST
68116891 #else
68316911 {
68326912 { "@PROGRAM@", (void *) 0 },
68336913 _LT_EOF
6834 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6914 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
68356915 cat <<\_LT_EOF >> conftest.$ac_ext
68366916 {0, (void *) 0}
68376917 };
68516931 mv conftest.$ac_objext conftstm.$ac_objext
68526932 lt_globsym_save_LIBS=$LIBS
68536933 lt_globsym_save_CFLAGS=$CFLAGS
6854 LIBS="conftstm.$ac_objext"
6934 LIBS=conftstm.$ac_objext
68556935 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
68566936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
68576937 (eval $ac_link) 2>&5
68586938 ac_status=$?
68596939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6940 test $ac_status = 0; } && test -s conftest$ac_exeext; then
68616941 pipe_works=yes
68626942 fi
68636943 LIBS=$lt_globsym_save_LIBS
68786958 rm -rf conftest* conftst*
68796959
68806960 # Do not use the global_symbol_pipe unless it works.
6881 if test "$pipe_works" = yes; then
6961 if test yes = "$pipe_works"; then
68826962 break
68836963 else
68846964 lt_cv_sys_global_symbol_pipe=
69317011
69327012
69337013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
69347024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
69357025 $as_echo_n "checking for sysroot... " >&6; }
69367026
69437033
69447034
69457035 lt_sysroot=
6946 case ${with_sysroot} in #(
7036 case $with_sysroot in #(
69477037 yes)
6948 if test "$GCC" = yes; then
7038 if test yes = "$GCC"; then
69497039 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
69507040 fi
69517041 ;; #(
69557045 no|'')
69567046 ;; #(
69577047 *)
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6959 $as_echo "${with_sysroot}" >&6; }
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7049 $as_echo "$with_sysroot" >&6; }
69607050 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
69617051 ;;
69627052 esac
69687058
69697059
69707060
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7062 $as_echo_n "checking for a working dd... " >&6; }
7063 if ${ac_cv_path_lt_DD+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 printf 0123456789abcdef0123456789abcdef >conftest.i
7067 cat conftest.i conftest.i >conftest2.i
7068 : ${lt_DD:=$DD}
7069 if test -z "$lt_DD"; then
7070 ac_path_lt_DD_found=false
7071 # Loop through the user's path and test for each of PROGNAME-LIST
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_prog in dd; do
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7080 as_fn_executable_p "$ac_path_lt_DD" || continue
7081 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7082 cmp -s conftest.i conftest.out \
7083 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7084 fi
7085 $ac_path_lt_DD_found && break 3
7086 done
7087 done
7088 done
7089 IFS=$as_save_IFS
7090 if test -z "$ac_cv_path_lt_DD"; then
7091 :
7092 fi
7093 else
7094 ac_cv_path_lt_DD=$lt_DD
7095 fi
7096
7097 rm -f conftest.i conftest2.i conftest.out
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7100 $as_echo "$ac_cv_path_lt_DD" >&6; }
7101
7102
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7104 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7105 if ${lt_cv_truncate_bin+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 printf 0123456789abcdef0123456789abcdef >conftest.i
7109 cat conftest.i conftest.i >conftest2.i
7110 lt_cv_truncate_bin=
7111 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7112 cmp -s conftest.i conftest.out \
7113 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7114 fi
7115 rm -f conftest.i conftest2.i conftest.out
7116 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7117 fi
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7119 $as_echo "$lt_cv_truncate_bin" >&6; }
7120
7121
7122
7123
7124
7125
7126
7127 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7128 func_cc_basename ()
7129 {
7130 for cc_temp in $*""; do
7131 case $cc_temp in
7132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7134 \-*) ;;
7135 *) break;;
7136 esac
7137 done
7138 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7139 }
7140
69717141 # Check whether --enable-libtool-lock was given.
69727142 if test "${enable_libtool_lock+set}" = set; then :
69737143 enableval=$enable_libtool_lock;
69747144 fi
69757145
6976 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7146 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
69777147
69787148 # Some flags need to be propagated to the compiler or linker for good
69797149 # libtool support.
69807150 case $host in
69817151 ia64-*-hpux*)
6982 # Find out which ABI we are using.
7152 # Find out what ABI is being produced by ac_compile, and set mode
7153 # options accordingly.
69837154 echo 'int i;' > conftest.$ac_ext
69847155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
69857156 (eval $ac_compile) 2>&5
69887159 test $ac_status = 0; }; then
69897160 case `/usr/bin/file conftest.$ac_objext` in
69907161 *ELF-32*)
6991 HPUX_IA64_MODE="32"
7162 HPUX_IA64_MODE=32
69927163 ;;
69937164 *ELF-64*)
6994 HPUX_IA64_MODE="64"
7165 HPUX_IA64_MODE=64
69957166 ;;
69967167 esac
69977168 fi
69987169 rm -rf conftest*
69997170 ;;
70007171 *-*-irix6*)
7001 # Find out which ABI we are using.
7172 # Find out what ABI is being produced by ac_compile, and set linker
7173 # options accordingly.
70027174 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
70037175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
70047176 (eval $ac_compile) 2>&5
70057177 ac_status=$?
70067178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70077179 test $ac_status = 0; }; then
7008 if test "$lt_cv_prog_gnu_ld" = yes; then
7180 if test yes = "$lt_cv_prog_gnu_ld"; then
70097181 case `/usr/bin/file conftest.$ac_objext` in
70107182 *32-bit*)
70117183 LD="${LD-ld} -melf32bsmip"
70347206 rm -rf conftest*
70357207 ;;
70367208
7037 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7209 mips64*-*linux*)
7210 # Find out what ABI is being produced by ac_compile, and set linker
7211 # options accordingly.
7212 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7214 (eval $ac_compile) 2>&5
7215 ac_status=$?
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; }; then
7218 emul=elf
7219 case `/usr/bin/file conftest.$ac_objext` in
7220 *32-bit*)
7221 emul="${emul}32"
7222 ;;
7223 *64-bit*)
7224 emul="${emul}64"
7225 ;;
7226 esac
7227 case `/usr/bin/file conftest.$ac_objext` in
7228 *MSB*)
7229 emul="${emul}btsmip"
7230 ;;
7231 *LSB*)
7232 emul="${emul}ltsmip"
7233 ;;
7234 esac
7235 case `/usr/bin/file conftest.$ac_objext` in
7236 *N32*)
7237 emul="${emul}n32"
7238 ;;
7239 esac
7240 LD="${LD-ld} -m $emul"
7241 fi
7242 rm -rf conftest*
7243 ;;
7244
7245 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
70387246 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7039 # Find out which ABI we are using.
7247 # Find out what ABI is being produced by ac_compile, and set linker
7248 # options accordingly. Note that the listed cases only cover the
7249 # situations where additional linker options are needed (such as when
7250 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7251 # vice versa); the common cases where no linker options are needed do
7252 # not appear in the list.
70407253 echo 'int i;' > conftest.$ac_ext
70417254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
70427255 (eval $ac_compile) 2>&5
70507263 LD="${LD-ld} -m elf_i386_fbsd"
70517264 ;;
70527265 x86_64-*linux*)
7053 LD="${LD-ld} -m elf_i386"
7266 case `/usr/bin/file conftest.o` in
7267 *x86-64*)
7268 LD="${LD-ld} -m elf32_x86_64"
7269 ;;
7270 *)
7271 LD="${LD-ld} -m elf_i386"
7272 ;;
7273 esac
70547274 ;;
7055 ppc64-*linux*|powerpc64-*linux*)
7275 powerpc64le-*linux*)
7276 LD="${LD-ld} -m elf32lppclinux"
7277 ;;
7278 powerpc64-*linux*)
70567279 LD="${LD-ld} -m elf32ppclinux"
70577280 ;;
70587281 s390x-*linux*)
70717294 x86_64-*linux*)
70727295 LD="${LD-ld} -m elf_x86_64"
70737296 ;;
7074 ppc*-*linux*|powerpc*-*linux*)
7297 powerpcle-*linux*)
7298 LD="${LD-ld} -m elf64lppc"
7299 ;;
7300 powerpc-*linux*)
70757301 LD="${LD-ld} -m elf64ppc"
70767302 ;;
70777303 s390*-*linux*|s390*-*tpf*)
70897315
70907316 *-*-sco3.2v5*)
70917317 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7092 SAVE_CFLAGS="$CFLAGS"
7318 SAVE_CFLAGS=$CFLAGS
70937319 CFLAGS="$CFLAGS -belf"
70947320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
70957321 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
71297355 fi
71307356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
71317357 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7132 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7358 if test yes != "$lt_cv_cc_needs_belf"; then
71337359 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7134 CFLAGS="$SAVE_CFLAGS"
7360 CFLAGS=$SAVE_CFLAGS
71357361 fi
71367362 ;;
71377363 *-*solaris*)
7138 # Find out which ABI we are using.
7364 # Find out what ABI is being produced by ac_compile, and set linker
7365 # options accordingly.
71397366 echo 'int i;' > conftest.$ac_ext
71407367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
71417368 (eval $ac_compile) 2>&5
71477374 case $lt_cv_prog_gnu_ld in
71487375 yes*)
71497376 case $host in
7150 i?86-*-solaris*)
7377 i?86-*-solaris*|x86_64-*-solaris*)
71517378 LD="${LD-ld} -m elf_x86_64"
71527379 ;;
71537380 sparc*-*-solaris*)
71567383 esac
71577384 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
71587385 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7159 LD="${LD-ld}_sol2"
7386 LD=${LD-ld}_sol2
71607387 fi
71617388 ;;
71627389 *)
71727399 ;;
71737400 esac
71747401
7175 need_locks="$enable_libtool_lock"
7402 need_locks=$enable_libtool_lock
71767403
71777404 if test -n "$ac_tool_prefix"; then
71787405 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
72837510 fi
72847511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
72857512 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7286 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7513 if test yes != "$lt_cv_path_mainfest_tool"; then
72877514 MANIFEST_TOOL=:
72887515 fi
72897516
77868013 $as_echo_n "(cached) " >&6
77878014 else
77888015 lt_cv_apple_cc_single_mod=no
7789 if test -z "${LT_MULTI_MODULE}"; then
8016 if test -z "$LT_MULTI_MODULE"; then
77908017 # By default we will add the -single_module flag. You can override
77918018 # by either setting the environment variable LT_MULTI_MODULE
77928019 # non-empty at configure time, or by adding -multi_module to the
78048031 cat conftest.err >&5
78058032 # Otherwise, if the output was created with a 0 exit code from
78068033 # the compiler, it worked.
7807 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8034 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
78088035 lt_cv_apple_cc_single_mod=yes
78098036 else
78108037 cat conftest.err >&5
78438070 fi
78448071 rm -f core conftest.err conftest.$ac_objext \
78458072 conftest$ac_exeext conftest.$ac_ext
7846 LDFLAGS="$save_LDFLAGS"
8073 LDFLAGS=$save_LDFLAGS
78478074
78488075 fi
78498076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
78608087 _LT_EOF
78618088 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
78628089 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7863 echo "$AR cru libconftest.a conftest.o" >&5
7864 $AR cru libconftest.a conftest.o 2>&5
8090 echo "$AR cr libconftest.a conftest.o" >&5
8091 $AR cr libconftest.a conftest.o 2>&5
78658092 echo "$RANLIB libconftest.a" >&5
78668093 $RANLIB libconftest.a 2>&5
78678094 cat > conftest.c << _LT_EOF
78728099 _lt_result=$?
78738100 if test -s conftest.err && $GREP force_load conftest.err; then
78748101 cat conftest.err >&5
7875 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8102 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
78768103 lt_cv_ld_force_load=yes
78778104 else
78788105 cat conftest.err >&5
78858112 $as_echo "$lt_cv_ld_force_load" >&6; }
78868113 case $host_os in
78878114 rhapsody* | darwin1.[012])
7888 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8115 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
78898116 darwin1.*)
7890 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8117 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
78918118 darwin*) # darwin 5.x on
78928119 # if running on 10.5 or later, the deployment target defaults
78938120 # to the OS version, if on x86, and 10.4, the deployment
78948121 # target defaults to 10.4. Don't you love it?
78958122 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
78968123 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7897 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7898 10.[012]*)
7899 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8124 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8125 10.[012][,.]*)
8126 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
79008127 10.*)
7901 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8128 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
79028129 esac
79038130 ;;
79048131 esac
7905 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8132 if test yes = "$lt_cv_apple_cc_single_mod"; then
79068133 _lt_dar_single_mod='$single_module'
79078134 fi
7908 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7909 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8135 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8136 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
79108137 else
7911 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8138 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
79128139 fi
7913 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8140 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
79148141 _lt_dsymutil='~$DSYMUTIL $lib || :'
79158142 else
79168143 _lt_dsymutil=
79178144 fi
79188145 ;;
79198146 esac
8147
8148 # func_munge_path_list VARIABLE PATH
8149 # -----------------------------------
8150 # VARIABLE is name of variable containing _space_ separated list of
8151 # directories to be munged by the contents of PATH, which is string
8152 # having a format:
8153 # "DIR[:DIR]:"
8154 # string "DIR[ DIR]" will be prepended to VARIABLE
8155 # ":DIR[:DIR]"
8156 # string "DIR[ DIR]" will be appended to VARIABLE
8157 # "DIRP[:DIRP]::[DIRA:]DIRA"
8158 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8159 # "DIRA[ DIRA]" will be appended to VARIABLE
8160 # "DIR[:DIR]"
8161 # VARIABLE will be replaced by "DIR[ DIR]"
8162 func_munge_path_list ()
8163 {
8164 case x$2 in
8165 x)
8166 ;;
8167 *:)
8168 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8169 ;;
8170 x:*)
8171 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8172 ;;
8173 *::*)
8174 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8175 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8176 ;;
8177 *)
8178 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8179 ;;
8180 esac
8181 }
79208182
79218183 ac_ext=c
79228184 ac_cpp='$CPP $CPPFLAGS'
82128474 *)
82138475 enable_static=no
82148476 # Look at the argument we got. We use all the common list separators.
8215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8477 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
82168478 for pkg in $enableval; do
8217 IFS="$lt_save_ifs"
8479 IFS=$lt_save_ifs
82188480 if test "X$pkg" = "X$p"; then
82198481 enable_static=yes
82208482 fi
82218483 done
8222 IFS="$lt_save_ifs"
8484 IFS=$lt_save_ifs
82238485 ;;
82248486 esac
82258487 else
82508512 *)
82518513 enable_shared=no
82528514 # Look at the argument we got. We use all the common list separators.
8253 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8515 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
82548516 for pkg in $enableval; do
8255 IFS="$lt_save_ifs"
8517 IFS=$lt_save_ifs
82568518 if test "X$pkg" = "X$p"; then
82578519 enable_shared=yes
82588520 fi
82598521 done
8260 IFS="$lt_save_ifs"
8522 IFS=$lt_save_ifs
82618523 ;;
82628524 esac
82638525 else
82828544 *)
82838545 pic_mode=default
82848546 # Look at the argument we got. We use all the common list separators.
8285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8547 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
82868548 for lt_pkg in $withval; do
8287 IFS="$lt_save_ifs"
8549 IFS=$lt_save_ifs
82888550 if test "X$lt_pkg" = "X$lt_p"; then
82898551 pic_mode=yes
82908552 fi
82918553 done
8292 IFS="$lt_save_ifs"
8554 IFS=$lt_save_ifs
82938555 ;;
82948556 esac
82958557 else
82968558 pic_mode=default
82978559 fi
82988560
8299
8300 test -z "$pic_mode" && pic_mode=default
83018561
83028562
83038563
83148574 *)
83158575 enable_fast_install=no
83168576 # Look at the argument we got. We use all the common list separators.
8317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8577 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
83188578 for pkg in $enableval; do
8319 IFS="$lt_save_ifs"
8579 IFS=$lt_save_ifs
83208580 if test "X$pkg" = "X$p"; then
83218581 enable_fast_install=yes
83228582 fi
83238583 done
8324 IFS="$lt_save_ifs"
8584 IFS=$lt_save_ifs
83258585 ;;
83268586 esac
83278587 else
83358595
83368596
83378597
8598 shared_archive_member_spec=
8599 case $host,$enable_shared in
8600 power*-*-aix[5-9]*,yes)
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8602 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8603
8604 # Check whether --with-aix-soname was given.
8605 if test "${with_aix_soname+set}" = set; then :
8606 withval=$with_aix_soname; case $withval in
8607 aix|svr4|both)
8608 ;;
8609 *)
8610 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8611 ;;
8612 esac
8613 lt_cv_with_aix_soname=$with_aix_soname
8614 else
8615 if ${lt_cv_with_aix_soname+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 lt_cv_with_aix_soname=aix
8619 fi
8620
8621 with_aix_soname=$lt_cv_with_aix_soname
8622 fi
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8625 $as_echo "$with_aix_soname" >&6; }
8626 if test aix != "$with_aix_soname"; then
8627 # For the AIX way of multilib, we name the shared archive member
8628 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8629 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8630 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8631 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8632 if test 64 = "${OBJECT_MODE-32}"; then
8633 shared_archive_member_spec=shr_64
8634 else
8635 shared_archive_member_spec=shr
8636 fi
8637 fi
8638 ;;
8639 *)
8640 with_aix_soname=aix
8641 ;;
8642 esac
8643
8644
8645
8646
8647
8648
8649
83388650
83398651
83408652
83418653 # This can be used to rebuild libtool when needed
8342 LIBTOOL_DEPS="$ltmain"
8654 LIBTOOL_DEPS=$ltmain
83438655
83448656 # Always use our own libtool.
83458657 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
83888700
83898701
83908702
8391 if test -n "${ZSH_VERSION+set}" ; then
8703 if test -n "${ZSH_VERSION+set}"; then
83928704 setopt NO_GLOB_SUBST
83938705 fi
83948706
84278739 # AIX sometimes has problems with the GCC collect2 program. For some
84288740 # reason, if we set the COLLECT_NAMES environment variable, the problems
84298741 # vanish in a puff of smoke.
8430 if test "X${COLLECT_NAMES+set}" != Xset; then
8742 if test set != "${COLLECT_NAMES+set}"; then
84318743 COLLECT_NAMES=
84328744 export COLLECT_NAMES
84338745 fi
84388750 ofile=libtool
84398751 can_build_shared=yes
84408752
8441 # All known linkers require a `.a' archive for static linking (except MSVC,
8753 # All known linkers require a '.a' archive for static linking (except MSVC,
84428754 # which needs '.lib').
84438755 libext=a
84448756
8445 with_gnu_ld="$lt_cv_prog_gnu_ld"
8446
8447 old_CC="$CC"
8448 old_CFLAGS="$CFLAGS"
8757 with_gnu_ld=$lt_cv_prog_gnu_ld
8758
8759 old_CC=$CC
8760 old_CFLAGS=$CFLAGS
84498761
84508762 # Set sane defaults for various variables
84518763 test -z "$CC" && CC=cc
84548766 test -z "$LD" && LD=ld
84558767 test -z "$ac_objext" && ac_objext=o
84568768
8457 for cc_temp in $compiler""; do
8458 case $cc_temp in
8459 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8460 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8461 \-*) ;;
8462 *) break;;
8463 esac
8464 done
8465 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8769 func_cc_basename $compiler
8770 cc_basename=$func_cc_basename_result
84668771
84678772
84688773 # Only perform the check for file, if the check method requires it
84778782 else
84788783 case $MAGIC_CMD in
84798784 [\\/*] | ?:[\\/]*)
8480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8785 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
84818786 ;;
84828787 *)
8483 lt_save_MAGIC_CMD="$MAGIC_CMD"
8484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8788 lt_save_MAGIC_CMD=$MAGIC_CMD
8789 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
84858790 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
84868791 for ac_dir in $ac_dummy; do
8487 IFS="$lt_save_ifs"
8792 IFS=$lt_save_ifs
84888793 test -z "$ac_dir" && ac_dir=.
8489 if test -f $ac_dir/${ac_tool_prefix}file; then
8490 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8794 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8795 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
84918796 if test -n "$file_magic_test_file"; then
84928797 case $deplibs_check_method in
84938798 "file_magic "*)
84948799 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8800 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
84968801 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
84978802 $EGREP "$file_magic_regex" > /dev/null; then
84988803 :
85158820 break
85168821 fi
85178822 done
8518 IFS="$lt_save_ifs"
8519 MAGIC_CMD="$lt_save_MAGIC_CMD"
8823 IFS=$lt_save_ifs
8824 MAGIC_CMD=$lt_save_MAGIC_CMD
85208825 ;;
85218826 esac
85228827 fi
85238828
8524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8829 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
85258830 if test -n "$MAGIC_CMD"; then
85268831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
85278832 $as_echo "$MAGIC_CMD" >&6; }
85438848 else
85448849 case $MAGIC_CMD in
85458850 [\\/*] | ?:[\\/]*)
8546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8851 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
85478852 ;;
85488853 *)
8549 lt_save_MAGIC_CMD="$MAGIC_CMD"
8550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8854 lt_save_MAGIC_CMD=$MAGIC_CMD
8855 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
85518856 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
85528857 for ac_dir in $ac_dummy; do
8553 IFS="$lt_save_ifs"
8858 IFS=$lt_save_ifs
85548859 test -z "$ac_dir" && ac_dir=.
8555 if test -f $ac_dir/file; then
8556 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8860 if test -f "$ac_dir/file"; then
8861 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
85578862 if test -n "$file_magic_test_file"; then
85588863 case $deplibs_check_method in
85598864 "file_magic "*)
85608865 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8866 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
85628867 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
85638868 $EGREP "$file_magic_regex" > /dev/null; then
85648869 :
85818886 break
85828887 fi
85838888 done
8584 IFS="$lt_save_ifs"
8585 MAGIC_CMD="$lt_save_MAGIC_CMD"
8889 IFS=$lt_save_ifs
8890 MAGIC_CMD=$lt_save_MAGIC_CMD
85868891 ;;
85878892 esac
85888893 fi
85898894
8590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8895 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
85918896 if test -n "$MAGIC_CMD"; then
85928897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
85938898 $as_echo "$MAGIC_CMD" >&6; }
86088913
86098914 # Use C for the default configuration in the libtool script
86108915
8611 lt_save_CC="$CC"
8916 lt_save_CC=$CC
86128917 ac_ext=c
86138918 ac_cpp='$CPP $CPPFLAGS'
86148919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
86668971
86678972 lt_prog_compiler_no_builtin_flag=
86688973
8669 if test "$GCC" = yes; then
8974 if test yes = "$GCC"; then
86708975 case $cc_basename in
86718976 nvcc*)
86728977 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
86828987 lt_cv_prog_compiler_rtti_exceptions=no
86838988 ac_outfile=conftest.$ac_objext
86848989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8685 lt_compiler_flag="-fno-rtti -fno-exceptions"
8990 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
86868991 # Insert the option either (1) after the last *FLAGS variable, or
86878992 # (2) before a word containing "conftest.", or (3) at the end.
86888993 # Note that $ac_compile itself does not contain backslashes and begins
87129017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
87139018 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
87149019
8715 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9020 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
87169021 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
87179022 else
87189023 :
87309035 lt_prog_compiler_static=
87319036
87329037
8733 if test "$GCC" = yes; then
9038 if test yes = "$GCC"; then
87349039 lt_prog_compiler_wl='-Wl,'
87359040 lt_prog_compiler_static='-static'
87369041
87379042 case $host_os in
87389043 aix*)
87399044 # All AIX code is PIC.
8740 if test "$host_cpu" = ia64; then
9045 if test ia64 = "$host_cpu"; then
87419046 # AIX 5 now supports IA64 processor
87429047 lt_prog_compiler_static='-Bstatic'
87439048 fi
9049 lt_prog_compiler_pic='-fPIC'
87449050 ;;
87459051
87469052 amigaos*)
87519057 ;;
87529058 m68k)
87539059 # FIXME: we need at least 68020 code to build shared libraries, but
8754 # adding the `-m68020' flag to GCC prevents building anything better,
8755 # like `-m68040'.
9060 # adding the '-m68020' flag to GCC prevents building anything better,
9061 # like '-m68040'.
87569062 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
87579063 ;;
87589064 esac
87689074 # Although the cygwin gcc ignores -fPIC, still need this for old-style
87699075 # (--disable-auto-import) libraries
87709076 lt_prog_compiler_pic='-DDLL_EXPORT'
9077 case $host_os in
9078 os2*)
9079 lt_prog_compiler_static='$wl-static'
9080 ;;
9081 esac
87719082 ;;
87729083
87739084 darwin* | rhapsody*)
88389149 case $host_os in
88399150 aix*)
88409151 lt_prog_compiler_wl='-Wl,'
8841 if test "$host_cpu" = ia64; then
9152 if test ia64 = "$host_cpu"; then
88429153 # AIX 5 now supports IA64 processor
88439154 lt_prog_compiler_static='-Bstatic'
88449155 else
88469157 fi
88479158 ;;
88489159
9160 darwin* | rhapsody*)
9161 # PIC is the default on this platform
9162 # Common symbols not allowed in MH_DYLIB files
9163 lt_prog_compiler_pic='-fno-common'
9164 case $cc_basename in
9165 nagfor*)
9166 # NAG Fortran compiler
9167 lt_prog_compiler_wl='-Wl,-Wl,,'
9168 lt_prog_compiler_pic='-PIC'
9169 lt_prog_compiler_static='-Bstatic'
9170 ;;
9171 esac
9172 ;;
9173
88499174 mingw* | cygwin* | pw32* | os2* | cegcc*)
88509175 # This hack is so that the source file can tell whether it is being
88519176 # built for inclusion in a dll (and should export symbols for example).
88529177 lt_prog_compiler_pic='-DDLL_EXPORT'
9178 case $host_os in
9179 os2*)
9180 lt_prog_compiler_static='$wl-static'
9181 ;;
9182 esac
88539183 ;;
88549184
88559185 hpux9* | hpux10* | hpux11*)
88659195 ;;
88669196 esac
88679197 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8868 lt_prog_compiler_static='${wl}-a ${wl}archive'
9198 lt_prog_compiler_static='$wl-a ${wl}archive'
88699199 ;;
88709200
88719201 irix5* | irix6* | nonstopux*)
88749204 lt_prog_compiler_static='-non_shared'
88759205 ;;
88769206
8877 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9207 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
88789208 case $cc_basename in
8879 # old Intel for x86_64 which still supported -KPIC.
9209 # old Intel for x86_64, which still supported -KPIC.
88809210 ecc*)
88819211 lt_prog_compiler_wl='-Wl,'
88829212 lt_prog_compiler_pic='-KPIC'
9213 lt_prog_compiler_static='-static'
9214 ;;
9215 # flang / f18. f95 an alias for gfortran or flang on Debian
9216 flang* | f18* | f95*)
9217 lt_prog_compiler_wl='-Wl,'
9218 lt_prog_compiler_pic='-fPIC'
88839219 lt_prog_compiler_static='-static'
88849220 ;;
88859221 # icc used to be incompatible with GCC.
89009236 lt_prog_compiler_wl='-Wl,-Wl,,'
89019237 lt_prog_compiler_pic='-PIC'
89029238 lt_prog_compiler_static='-Bstatic'
9239 ;;
9240 tcc*)
9241 # Fabrice Bellard et al's Tiny C Compiler
9242 lt_prog_compiler_wl='-Wl,'
9243 lt_prog_compiler_pic='-fPIC'
9244 lt_prog_compiler_static='-static'
89039245 ;;
89049246 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
89059247 # Portland Group compilers (*not* the Pentium gcc compiler,
89989340 ;;
89999341
90009342 sysv4*MP*)
9001 if test -d /usr/nec ;then
9343 if test -d /usr/nec; then
90029344 lt_prog_compiler_pic='-Kconform_pic'
90039345 lt_prog_compiler_static='-Bstatic'
90049346 fi
90279369 fi
90289370
90299371 case $host_os in
9030 # For platforms which do not support PIC, -DPIC is meaningless:
9372 # For platforms that do not support PIC, -DPIC is meaningless:
90319373 *djgpp*)
90329374 lt_prog_compiler_pic=
90339375 ;;
90599401 lt_cv_prog_compiler_pic_works=no
90609402 ac_outfile=conftest.$ac_objext
90619403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9062 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9404 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
90639405 # Insert the option either (1) after the last *FLAGS variable, or
90649406 # (2) before a word containing "conftest.", or (3) at the end.
90659407 # Note that $ac_compile itself does not contain backslashes and begins
90899431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
90909432 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
90919433
9092 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9434 if test yes = "$lt_cv_prog_compiler_pic_works"; then
90939435 case $lt_prog_compiler_pic in
90949436 "" | " "*) ;;
90959437 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
91219463 $as_echo_n "(cached) " >&6
91229464 else
91239465 lt_cv_prog_compiler_static_works=no
9124 save_LDFLAGS="$LDFLAGS"
9466 save_LDFLAGS=$LDFLAGS
91259467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
91269468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
91279469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
91409482 fi
91419483 fi
91429484 $RM -r conftest*
9143 LDFLAGS="$save_LDFLAGS"
9485 LDFLAGS=$save_LDFLAGS
91449486
91459487 fi
91469488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
91479489 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
91489490
9149 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9491 if test yes = "$lt_cv_prog_compiler_static_works"; then
91509492 :
91519493 else
91529494 lt_prog_compiler_static=
92669608
92679609
92689610
9269 hard_links="nottested"
9270 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9611 hard_links=nottested
9612 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
92719613 # do not overwrite the value of need_locks provided by the user
92729614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
92739615 $as_echo_n "checking if we can lock with hard links... " >&6; }
92799621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
92809622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
92819623 $as_echo "$hard_links" >&6; }
9282 if test "$hard_links" = no; then
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9284 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9624 if test no = "$hard_links"; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9626 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
92859627 need_locks=warn
92869628 fi
92879629 else
93249666 # included in the symbol list
93259667 include_expsyms=
93269668 # exclude_expsyms can be an extended regexp of symbols to exclude
9327 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9328 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9329 # as well as any symbol that contains `d'.
9669 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9670 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9671 # as well as any symbol that contains 'd'.
93309672 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
93319673 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
93329674 # platforms (ab)use it in PIC code, but their linkers get confused if
93419683 # FIXME: the MSVC++ port hasn't been tested in a loooong time
93429684 # When not using gcc, we currently assume that we are using
93439685 # Microsoft Visual C++.
9344 if test "$GCC" != yes; then
9686 if test yes != "$GCC"; then
93459687 with_gnu_ld=no
93469688 fi
93479689 ;;
93499691 # we just hope/assume this is gcc and not c89 (= MSVC++)
93509692 with_gnu_ld=yes
93519693 ;;
9352 openbsd*)
9694 openbsd* | bitrig*)
93539695 with_gnu_ld=no
9696 ;;
9697 linux* | k*bsd*-gnu | gnu*)
9698 link_all_deplibs=no
93549699 ;;
93559700 esac
93569701
93599704 # On some targets, GNU ld is compatible enough with the native linker
93609705 # that we're better off using the native interface for both.
93619706 lt_use_gnu_ld_interface=no
9362 if test "$with_gnu_ld" = yes; then
9707 if test yes = "$with_gnu_ld"; then
93639708 case $host_os in
93649709 aix*)
93659710 # The AIX port of GNU ld has always aspired to compatibility
93819726 esac
93829727 fi
93839728
9384 if test "$lt_use_gnu_ld_interface" = yes; then
9729 if test yes = "$lt_use_gnu_ld_interface"; then
93859730 # If archive_cmds runs LD, not CC, wlarc should be empty
9386 wlarc='${wl}'
9731 wlarc='$wl'
93879732
93889733 # Set some defaults for GNU ld with shared library support. These
93899734 # are reset later if shared libraries are not supported. Putting them
93909735 # here allows them to be overridden if necessary.
93919736 runpath_var=LD_RUN_PATH
9392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9393 export_dynamic_flag_spec='${wl}--export-dynamic'
9737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9738 export_dynamic_flag_spec='$wl--export-dynamic'
93949739 # ancient GNU ld didn't support --whole-archive et. al.
93959740 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9396 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9741 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
93979742 else
93989743 whole_archive_flag_spec=
93999744 fi
94009745 supports_anon_versioning=no
9401 case `$LD -v 2>&1` in
9746 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
94029747 *GNU\ gold*) supports_anon_versioning=yes ;;
94039748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
94049749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
94119756 case $host_os in
94129757 aix[3-9]*)
94139758 # On AIX/PPC, the GNU linker is very broken
9414 if test "$host_cpu" != ia64; then
9759 if test ia64 != "$host_cpu"; then
94159760 ld_shlibs=no
94169761 cat <<_LT_EOF 1>&2
94179762
94309775 case $host_cpu in
94319776 powerpc)
94329777 # see comment about AmigaOS4 .so support
9433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
94349779 archive_expsym_cmds=''
94359780 ;;
94369781 m68k)
94469791 allow_undefined_flag=unsupported
94479792 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
94489793 # support --undefined. This deserves some investigation. FIXME
9449 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
94509795 else
94519796 ld_shlibs=no
94529797 fi
94569801 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
94579802 # as there is no search path for DLLs.
94589803 hardcode_libdir_flag_spec='-L$libdir'
9459 export_dynamic_flag_spec='${wl}--export-all-symbols'
9804 export_dynamic_flag_spec='$wl--export-all-symbols'
94609805 allow_undefined_flag=unsupported
94619806 always_export_symbols=no
94629807 enable_shared_with_static_runtimes=yes
94649809 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
94659810
94669811 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9468 # If the export-symbols file already is a .def file (1st line
9469 # is EXPORTS), use it as is; otherwise, prepend...
9470 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9471 cp $export_symbols $output_objdir/$soname.def;
9472 else
9473 echo EXPORTS > $output_objdir/$soname.def;
9474 cat $export_symbols >> $output_objdir/$soname.def;
9475 fi~
9476 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9813 # If the export-symbols file already is a .def file, use it as
9814 # is; otherwise, prepend EXPORTS...
9815 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9816 cp $export_symbols $output_objdir/$soname.def;
9817 else
9818 echo EXPORTS > $output_objdir/$soname.def;
9819 cat $export_symbols >> $output_objdir/$soname.def;
9820 fi~
9821 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
94779822 else
94789823 ld_shlibs=no
94799824 fi
94809825 ;;
94819826
94829827 haiku*)
9483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
94849829 link_all_deplibs=yes
9830 ;;
9831
9832 os2*)
9833 hardcode_libdir_flag_spec='-L$libdir'
9834 hardcode_minus_L=yes
9835 allow_undefined_flag=unsupported
9836 shrext_cmds=.dll
9837 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9838 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9839 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9840 $ECHO EXPORTS >> $output_objdir/$libname.def~
9841 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9842 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9843 emximp -o $lib $output_objdir/$libname.def'
9844 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9845 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9846 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9847 $ECHO EXPORTS >> $output_objdir/$libname.def~
9848 prefix_cmds="$SED"~
9849 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9850 prefix_cmds="$prefix_cmds -e 1d";
9851 fi~
9852 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9853 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9854 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9855 emximp -o $lib $output_objdir/$libname.def'
9856 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9857 enable_shared_with_static_runtimes=yes
94859858 ;;
94869859
94879860 interix[3-9]*)
94889861 hardcode_direct=no
94899862 hardcode_shlibpath_var=no
9490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9491 export_dynamic_flag_spec='${wl}-E'
9863 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9864 export_dynamic_flag_spec='$wl-E'
94929865 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
94939866 # Instead, shared libraries are loaded at an image base (0x10000000 by
94949867 # default) and relocated if they conflict, which is a slow very memory
94959868 # consuming and fragmenting process. To avoid this, we pick a random,
94969869 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
94979870 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9498 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9499 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9872 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
95009873 ;;
95019874
95029875 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
95039876 tmp_diet=no
9504 if test "$host_os" = linux-dietlibc; then
9877 if test linux-dietlibc = "$host_os"; then
95059878 case $cc_basename in
95069879 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
95079880 esac
95089881 fi
95099882 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9510 && test "$tmp_diet" = no
9883 && test no = "$tmp_diet"
95119884 then
95129885 tmp_addflag=' $pic_flag'
95139886 tmp_sharedflag='-shared'
95149887 case $cc_basename,$host_cpu in
95159888 pgcc*) # Portland Group C compiler
9516 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9889 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
95179890 tmp_addflag=' $pic_flag'
95189891 ;;
95199892 pgf77* | pgf90* | pgf95* | pgfortran*)
95209893 # Portland Group f77 and f90 compilers
9521 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9894 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
95229895 tmp_addflag=' $pic_flag -Mnomain' ;;
95239896 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
95249897 tmp_addflag=' -i_dynamic' ;;
95299902 lf95*) # Lahey Fortran 8.1
95309903 whole_archive_flag_spec=
95319904 tmp_sharedflag='--shared' ;;
9905 nagfor*) # NAGFOR 5.3
9906 tmp_sharedflag='-Wl,-shared' ;;
95329907 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
95339908 tmp_sharedflag='-qmkshrobj'
95349909 tmp_addflag= ;;
95359910 nvcc*) # Cuda Compiler Driver 2.2
9536 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9911 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
95379912 compiler_needs_object=yes
95389913 ;;
95399914 esac
95409915 case `$CC -V 2>&1 | sed 5q` in
95419916 *Sun\ C*) # Sun C 5.9
9542 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9917 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
95439918 compiler_needs_object=yes
95449919 tmp_sharedflag='-G' ;;
95459920 *Sun\ F*) # Sun Fortran 8.3
95469921 tmp_sharedflag='-G' ;;
95479922 esac
9548 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549
9550 if test "x$supports_anon_versioning" = xyes; then
9923 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9924
9925 if test yes = "$supports_anon_versioning"; then
95519926 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9553 echo "local: *; };" >> $output_objdir/$libname.ver~
9554 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9927 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9928 echo "local: *; };" >> $output_objdir/$libname.ver~
9929 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
95559930 fi
95569931
95579932 case $cc_basename in
9933 tcc*)
9934 export_dynamic_flag_spec='-rdynamic'
9935 ;;
95589936 xlf* | bgf* | bgxlf* | mpixlf*)
95599937 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
95609938 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
95629940 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9563 if test "x$supports_anon_versioning" = xyes; then
9941 if test yes = "$supports_anon_versioning"; then
95649942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9566 echo "local: *; };" >> $output_objdir/$libname.ver~
9567 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9944 echo "local: *; };" >> $output_objdir/$libname.ver~
9945 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
95689946 fi
95699947 ;;
95709948 esac
95739951 fi
95749952 ;;
95759953
9576 netbsd*)
9954 netbsd* | netbsdelf*-gnu)
95779955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
95789956 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
95799957 wlarc=
95809958 else
9581 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9960 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
95839961 fi
95849962 ;;
95859963
95979975
95989976 _LT_EOF
95999977 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9601 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9979 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
96029980 else
96039981 ld_shlibs=no
96049982 fi
96109988 ld_shlibs=no
96119989 cat <<_LT_EOF 1>&2
96129990
9613 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9991 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
96149992 *** reliably create shared libraries on SCO systems. Therefore, libtool
96159993 *** is disabling shared libraries support. We urge you to upgrade GNU
96169994 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
962510003 # DT_RUNPATH tag from executables and libraries. But doing so
962610004 # requires that you compile everything twice, which is a pain.
962710005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10006 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
963110009 else
963210010 ld_shlibs=no
963310011 fi
964410022
964510023 *)
964610024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9647 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10026 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
964910027 else
965010028 ld_shlibs=no
965110029 fi
965210030 ;;
965310031 esac
965410032
9655 if test "$ld_shlibs" = no; then
10033 if test no = "$ld_shlibs"; then
965610034 runpath_var=
965710035 hardcode_libdir_flag_spec=
965810036 export_dynamic_flag_spec=
966810046 # Note: this linker hardcodes the directories in LIBPATH if there
966910047 # are no directories specified by -L.
967010048 hardcode_minus_L=yes
9671 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10049 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
967210050 # Neither direct hardcoding nor static linking is supported with a
967310051 # broken collect2.
967410052 hardcode_direct=unsupported
967610054 ;;
967710055
967810056 aix[4-9]*)
9679 if test "$host_cpu" = ia64; then
10057 if test ia64 = "$host_cpu"; then
968010058 # On IA64, the linker does run time linking by default, so we don't
968110059 # have to do anything special.
968210060 aix_use_runtimelinking=no
968310061 exp_sym_flag='-Bexport'
9684 no_entry_flag=""
10062 no_entry_flag=
968510063 else
968610064 # If we're using GNU nm, then we don't want the "-C" option.
9687 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9688 # Also, AIX nm treats weak defined symbols like other global
9689 # defined symbols, whereas GNU nm marks them as "W".
10065 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10066 # Without the "-l" option, or with the "-B" option, AIX nm treats
10067 # weak defined symbols like other global defined symbols, whereas
10068 # GNU nm marks them as "W".
10069 # While the 'weak' keyword is ignored in the Export File, we need
10070 # it in the Import File for the 'aix-soname' feature, so we have
10071 # to replace the "-B" option with "-P" for AIX nm.
969010072 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9691 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10073 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
969210074 else
9693 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10075 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
969410076 fi
969510077 aix_use_runtimelinking=no
969610078
969710079 # Test if we are trying to use run time linking or normal
969810080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9699 # need to do runtime linking.
10081 # have runtime linking enabled, and use it for executables.
10082 # For shared libraries, we enable/disable runtime linking
10083 # depending on the kind of the shared library created -
10084 # when "with_aix_soname,aix_use_runtimelinking" is:
10085 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10086 # "aix,yes" lib.so shared, rtl:yes, for executables
10087 # lib.a static archive
10088 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10089 # lib.a(lib.so.V) shared, rtl:no, for executables
10090 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10091 # lib.a(lib.so.V) shared, rtl:no
10092 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10093 # lib.a static archive
970010094 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
970110095 for ld_flag in $LDFLAGS; do
9702 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10096 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
970310097 aix_use_runtimelinking=yes
970410098 break
970510099 fi
970610100 done
10101 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10102 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10103 # so we don't have lib.a shared libs to link our executables.
10104 # We have to force runtime linking in this case.
10105 aix_use_runtimelinking=yes
10106 LDFLAGS="$LDFLAGS -Wl,-brtl"
10107 fi
970710108 ;;
970810109 esac
970910110
972210123 hardcode_direct_absolute=yes
972310124 hardcode_libdir_separator=':'
972410125 link_all_deplibs=yes
9725 file_list_spec='${wl}-f,'
9726
9727 if test "$GCC" = yes; then
10126 file_list_spec='$wl-f,'
10127 case $with_aix_soname,$aix_use_runtimelinking in
10128 aix,*) ;; # traditional, no import file
10129 svr4,* | *,yes) # use import file
10130 # The Import File defines what to hardcode.
10131 hardcode_direct=no
10132 hardcode_direct_absolute=no
10133 ;;
10134 esac
10135
10136 if test yes = "$GCC"; then
972810137 case $host_os in aix4.[012]|aix4.[012].*)
972910138 # We only want to do this on AIX 4.2 and lower, the check
973010139 # below for broken collect2 doesn't work under 4.3+
9731 collect2name=`${CC} -print-prog-name=collect2`
10140 collect2name=`$CC -print-prog-name=collect2`
973210141 if test -f "$collect2name" &&
973310142 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
973410143 then
974710156 ;;
974810157 esac
974910158 shared_flag='-shared'
9750 if test "$aix_use_runtimelinking" = yes; then
9751 shared_flag="$shared_flag "'${wl}-G'
10159 if test yes = "$aix_use_runtimelinking"; then
10160 shared_flag="$shared_flag "'$wl-G'
975210161 fi
10162 # Need to ensure runtime linking is disabled for the traditional
10163 # shared library, or the linker may eventually find shared libraries
10164 # /with/ Import File - we do not want to mix them.
10165 shared_flag_aix='-shared'
10166 shared_flag_svr4='-shared $wl-G'
975310167 else
975410168 # not using gcc
9755 if test "$host_cpu" = ia64; then
10169 if test ia64 = "$host_cpu"; then
975610170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
975710171 # chokes on -Wl,-G. The following line is correct:
975810172 shared_flag='-G'
975910173 else
9760 if test "$aix_use_runtimelinking" = yes; then
9761 shared_flag='${wl}-G'
10174 if test yes = "$aix_use_runtimelinking"; then
10175 shared_flag='$wl-G'
976210176 else
9763 shared_flag='${wl}-bM:SRE'
10177 shared_flag='$wl-bM:SRE'
976410178 fi
10179 shared_flag_aix='$wl-bM:SRE'
10180 shared_flag_svr4='$wl-G'
976510181 fi
976610182 fi
976710183
9768 export_dynamic_flag_spec='${wl}-bexpall'
10184 export_dynamic_flag_spec='$wl-bexpall'
976910185 # It seems that -bexpall does not export symbols beginning with
977010186 # underscore (_), so it is better to generate a list of symbols to export.
977110187 always_export_symbols=yes
9772 if test "$aix_use_runtimelinking" = yes; then
10188 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
977310189 # Warning - without using the other runtime loading flags (-brtl),
977410190 # -berok will link without error, but may produce a broken library.
977510191 allow_undefined_flag='-berok'
977610192 # Determine the default libpath from the value encoded in an
977710193 # empty executable.
9778 if test "${lt_cv_aix_libpath+set}" = set; then
10194 if test set = "${lt_cv_aix_libpath+set}"; then
977910195 aix_libpath=$lt_cv_aix_libpath
978010196 else
978110197 if ${lt_cv_aix_libpath_+:} false; then :
981010226 rm -f core conftest.err conftest.$ac_objext \
981110227 conftest$ac_exeext conftest.$ac_ext
981210228 if test -z "$lt_cv_aix_libpath_"; then
9813 lt_cv_aix_libpath_="/usr/lib:/lib"
10229 lt_cv_aix_libpath_=/usr/lib:/lib
981410230 fi
981510231
981610232 fi
981810234 aix_libpath=$lt_cv_aix_libpath_
981910235 fi
982010236
9821 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9822 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10237 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10238 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
982310239 else
9824 if test "$host_cpu" = ia64; then
9825 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10240 if test ia64 = "$host_cpu"; then
10241 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
982610242 allow_undefined_flag="-z nodefs"
9827 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10243 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
982810244 else
982910245 # Determine the default libpath from the value encoded in an
983010246 # empty executable.
9831 if test "${lt_cv_aix_libpath+set}" = set; then
10247 if test set = "${lt_cv_aix_libpath+set}"; then
983210248 aix_libpath=$lt_cv_aix_libpath
983310249 else
983410250 if ${lt_cv_aix_libpath_+:} false; then :
986310279 rm -f core conftest.err conftest.$ac_objext \
986410280 conftest$ac_exeext conftest.$ac_ext
986510281 if test -z "$lt_cv_aix_libpath_"; then
9866 lt_cv_aix_libpath_="/usr/lib:/lib"
10282 lt_cv_aix_libpath_=/usr/lib:/lib
986710283 fi
986810284
986910285 fi
987110287 aix_libpath=$lt_cv_aix_libpath_
987210288 fi
987310289
9874 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10290 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
987510291 # Warning - without using the other run time loading flags,
987610292 # -berok will link without error, but may produce a broken library.
9877 no_undefined_flag=' ${wl}-bernotok'
9878 allow_undefined_flag=' ${wl}-berok'
9879 if test "$with_gnu_ld" = yes; then
10293 no_undefined_flag=' $wl-bernotok'
10294 allow_undefined_flag=' $wl-berok'
10295 if test yes = "$with_gnu_ld"; then
988010296 # We only use this code for GNU lds that support --whole-archive.
9881 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10297 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
988210298 else
988310299 # Exported symbols can be pulled into shared objects from archives
988410300 whole_archive_flag_spec='$convenience'
988510301 fi
988610302 archive_cmds_need_lc=yes
9887 # This is similar to how AIX traditionally builds its shared libraries.
9888 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10303 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10304 # -brtl affects multiple linker settings, -berok does not and is overridden later
10305 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10306 if test svr4 != "$with_aix_soname"; then
10307 # This is similar to how AIX traditionally builds its shared libraries.
10308 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10309 fi
10310 if test aix != "$with_aix_soname"; then
10311 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10312 else
10313 # used by -dlpreopen to get the symbols
10314 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10315 fi
10316 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
988910317 fi
989010318 fi
989110319 ;;
989410322 case $host_cpu in
989510323 powerpc)
989610324 # see comment about AmigaOS4 .so support
9897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
989810326 archive_expsym_cmds=''
989910327 ;;
990010328 m68k)
992410352 # Tell ltmain to make .lib files, not .a files.
992510353 libext=lib
992610354 # Tell ltmain to make .dll files, not .so files.
9927 shrext_cmds=".dll"
10355 shrext_cmds=.dll
992810356 # FIXME: Setting linknames here is a bad hack.
9929 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9930 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9931 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9932 else
9933 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9934 fi~
9935 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9936 linknames='
10357 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10358 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10359 cp "$export_symbols" "$output_objdir/$soname.def";
10360 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10361 else
10362 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10363 fi~
10364 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10365 linknames='
993710366 # The linker will not automatically build a static lib if we build a DLL.
993810367 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
993910368 enable_shared_with_static_runtimes=yes
994210371 # Don't use ranlib
994310372 old_postinstall_cmds='chmod 644 $oldlib'
994410373 postlink_cmds='lt_outputfile="@OUTPUT@"~
9945 lt_tool_outputfile="@TOOL_OUTPUT@"~
9946 case $lt_outputfile in
9947 *.exe|*.EXE) ;;
9948 *)
9949 lt_outputfile="$lt_outputfile.exe"
9950 lt_tool_outputfile="$lt_tool_outputfile.exe"
9951 ;;
9952 esac~
9953 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9954 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9955 $RM "$lt_outputfile.manifest";
9956 fi'
10374 lt_tool_outputfile="@TOOL_OUTPUT@"~
10375 case $lt_outputfile in
10376 *.exe|*.EXE) ;;
10377 *)
10378 lt_outputfile=$lt_outputfile.exe
10379 lt_tool_outputfile=$lt_tool_outputfile.exe
10380 ;;
10381 esac~
10382 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10383 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10384 $RM "$lt_outputfile.manifest";
10385 fi'
995710386 ;;
995810387 *)
995910388 # Assume MSVC wrapper
996210391 # Tell ltmain to make .lib files, not .a files.
996310392 libext=lib
996410393 # Tell ltmain to make .dll files, not .so files.
9965 shrext_cmds=".dll"
10394 shrext_cmds=.dll
996610395 # FIXME: Setting linknames here is a bad hack.
996710396 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
996810397 # The linker will automatically build a .lib file if we build a DLL.
998110410 hardcode_direct=no
998210411 hardcode_automatic=yes
998310412 hardcode_shlibpath_var=unsupported
9984 if test "$lt_cv_ld_force_load" = "yes"; then
9985 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10413 if test yes = "$lt_cv_ld_force_load"; then
10414 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
998610415
998710416 else
998810417 whole_archive_flag_spec=''
998910418 fi
999010419 link_all_deplibs=yes
9991 allow_undefined_flag="$_lt_dar_allow_undefined"
10420 allow_undefined_flag=$_lt_dar_allow_undefined
999210421 case $cc_basename in
9993 ifort*) _lt_dar_can_shared=yes ;;
10422 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
999410423 *) _lt_dar_can_shared=$GCC ;;
999510424 esac
9996 if test "$_lt_dar_can_shared" = "yes"; then
10425 if test yes = "$_lt_dar_can_shared"; then
999710426 output_verbose_link_cmd=func_echo_all
9998 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9999 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10000 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10001 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10427 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10428 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10429 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10430 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1000210431
1000310432 else
1000410433 ld_shlibs=no
1004010469 ;;
1004110470
1004210471 hpux9*)
10043 if test "$GCC" = yes; then
10044 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10472 if test yes = "$GCC"; then
10473 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1004510474 else
10046 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10475 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1004710476 fi
10048 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10477 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1004910478 hardcode_libdir_separator=:
1005010479 hardcode_direct=yes
1005110480
1005210481 # hardcode_minus_L: Not really in the search PATH,
1005310482 # but as the default location of the library.
1005410483 hardcode_minus_L=yes
10055 export_dynamic_flag_spec='${wl}-E'
10484 export_dynamic_flag_spec='$wl-E'
1005610485 ;;
1005710486
1005810487 hpux10*)
10059 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10060 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10488 if test yes,no = "$GCC,$with_gnu_ld"; then
10489 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1006110490 else
1006210491 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1006310492 fi
10064 if test "$with_gnu_ld" = no; then
10065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10493 if test no = "$with_gnu_ld"; then
10494 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1006610495 hardcode_libdir_separator=:
1006710496 hardcode_direct=yes
1006810497 hardcode_direct_absolute=yes
10069 export_dynamic_flag_spec='${wl}-E'
10498 export_dynamic_flag_spec='$wl-E'
1007010499 # hardcode_minus_L: Not really in the search PATH,
1007110500 # but as the default location of the library.
1007210501 hardcode_minus_L=yes
1007410503 ;;
1007510504
1007610505 hpux11*)
10077 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10506 if test yes,no = "$GCC,$with_gnu_ld"; then
1007810507 case $host_cpu in
1007910508 hppa*64*)
10080 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10509 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1008110510 ;;
1008210511 ia64*)
10083 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10512 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1008410513 ;;
1008510514 *)
10086 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10515 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1008710516 ;;
1008810517 esac
1008910518 else
1009010519 case $host_cpu in
1009110520 hppa*64*)
10092 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10521 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1009310522 ;;
1009410523 ia64*)
10095 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10524 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1009610525 ;;
1009710526 *)
1009810527
1010410533 $as_echo_n "(cached) " >&6
1010510534 else
1010610535 lt_cv_prog_compiler__b=no
10107 save_LDFLAGS="$LDFLAGS"
10536 save_LDFLAGS=$LDFLAGS
1010810537 LDFLAGS="$LDFLAGS -b"
1010910538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1011010539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1012310552 fi
1012410553 fi
1012510554 $RM -r conftest*
10126 LDFLAGS="$save_LDFLAGS"
10555 LDFLAGS=$save_LDFLAGS
1012710556
1012810557 fi
1012910558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
1013010559 $as_echo "$lt_cv_prog_compiler__b" >&6; }
1013110560
10132 if test x"$lt_cv_prog_compiler__b" = xyes; then
10133 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10561 if test yes = "$lt_cv_prog_compiler__b"; then
10562 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1013410563 else
1013510564 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1013610565 fi
1013810567 ;;
1013910568 esac
1014010569 fi
10141 if test "$with_gnu_ld" = no; then
10142 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10570 if test no = "$with_gnu_ld"; then
10571 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1014310572 hardcode_libdir_separator=:
1014410573
1014510574 case $host_cpu in
1015010579 *)
1015110580 hardcode_direct=yes
1015210581 hardcode_direct_absolute=yes
10153 export_dynamic_flag_spec='${wl}-E'
10582 export_dynamic_flag_spec='$wl-E'
1015410583
1015510584 # hardcode_minus_L: Not really in the search PATH,
1015610585 # but as the default location of the library.
1016110590 ;;
1016210591
1016310592 irix5* | irix6* | nonstopux*)
10164 if test "$GCC" = yes; then
10165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10593 if test yes = "$GCC"; then
10594 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1016610595 # Try to use the -exported_symbol ld option, if it does not
1016710596 # work, assume that -exports_file does not work either and
1016810597 # implicitly export all symbols.
1017210601 if ${lt_cv_irix_exported_symbol+:} false; then :
1017310602 $as_echo_n "(cached) " >&6
1017410603 else
10175 save_LDFLAGS="$LDFLAGS"
10176 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10604 save_LDFLAGS=$LDFLAGS
10605 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1017710606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1017810607 /* end confdefs.h. */
1017910608 int foo (void) { return 0; }
1018510614 fi
1018610615 rm -f core conftest.err conftest.$ac_objext \
1018710616 conftest$ac_exeext conftest.$ac_ext
10188 LDFLAGS="$save_LDFLAGS"
10617 LDFLAGS=$save_LDFLAGS
1018910618 fi
1019010619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
1019110620 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10192 if test "$lt_cv_irix_exported_symbol" = yes; then
10193 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10621 if test yes = "$lt_cv_irix_exported_symbol"; then
10622 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
1019410623 fi
10624 link_all_deplibs=no
1019510625 else
10196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
1019810628 fi
1019910629 archive_cmds_need_lc='no'
10200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10630 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1020110631 hardcode_libdir_separator=:
1020210632 inherit_rpath=yes
1020310633 link_all_deplibs=yes
1020410634 ;;
1020510635
10206 netbsd*)
10636 linux*)
10637 case $cc_basename in
10638 tcc*)
10639 # Fabrice Bellard et al's Tiny C Compiler
10640 ld_shlibs=yes
10641 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10642 ;;
10643 esac
10644 ;;
10645
10646 netbsd* | netbsdelf*-gnu)
1020710647 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1020810648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1020910649 else
1021710657 newsos6)
1021810658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1021910659 hardcode_direct=yes
10220 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10660 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1022110661 hardcode_libdir_separator=:
1022210662 hardcode_shlibpath_var=no
1022310663 ;;
1022510665 *nto* | *qnx*)
1022610666 ;;
1022710667
10228 openbsd*)
10668 openbsd* | bitrig*)
1022910669 if test -f /usr/libexec/ld.so; then
1023010670 hardcode_direct=yes
1023110671 hardcode_shlibpath_var=no
1023210672 hardcode_direct_absolute=yes
10233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10673 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1023410674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10237 export_dynamic_flag_spec='${wl}-E'
10675 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10676 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10677 export_dynamic_flag_spec='$wl-E'
1023810678 else
10239 case $host_os in
10240 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10242 hardcode_libdir_flag_spec='-R$libdir'
10243 ;;
10244 *)
10245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10247 ;;
10248 esac
10679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10680 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1024910681 fi
1025010682 else
1025110683 ld_shlibs=no
1025610688 hardcode_libdir_flag_spec='-L$libdir'
1025710689 hardcode_minus_L=yes
1025810690 allow_undefined_flag=unsupported
10259 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10260 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10691 shrext_cmds=.dll
10692 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10693 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10694 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10695 $ECHO EXPORTS >> $output_objdir/$libname.def~
10696 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10697 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10698 emximp -o $lib $output_objdir/$libname.def'
10699 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10700 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10701 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10702 $ECHO EXPORTS >> $output_objdir/$libname.def~
10703 prefix_cmds="$SED"~
10704 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10705 prefix_cmds="$prefix_cmds -e 1d";
10706 fi~
10707 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10708 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10709 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10710 emximp -o $lib $output_objdir/$libname.def'
10711 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10712 enable_shared_with_static_runtimes=yes
1026110713 ;;
1026210714
1026310715 osf3*)
10264 if test "$GCC" = yes; then
10265 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10266 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10716 if test yes = "$GCC"; then
10717 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10718 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1026710719 else
1026810720 allow_undefined_flag=' -expect_unresolved \*'
10269 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10721 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1027010722 fi
1027110723 archive_cmds_need_lc='no'
10272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1027310725 hardcode_libdir_separator=:
1027410726 ;;
1027510727
1027610728 osf4* | osf5*) # as osf3* with the addition of -msym flag
10277 if test "$GCC" = yes; then
10278 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10279 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729 if test yes = "$GCC"; then
10730 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10731 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10732 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1028110733 else
1028210734 allow_undefined_flag=' -expect_unresolved \*'
10283 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10735 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1028410736 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10285 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10737 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
1028610738
1028710739 # Both c and cxx compiler support -rpath directly
1028810740 hardcode_libdir_flag_spec='-rpath $libdir'
1029310745
1029410746 solaris*)
1029510747 no_undefined_flag=' -z defs'
10296 if test "$GCC" = yes; then
10297 wlarc='${wl}'
10298 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 if test yes = "$GCC"; then
10749 wlarc='$wl'
10750 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1029910751 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10300 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10752 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1030110753 else
1030210754 case `$CC -V 2>&1` in
1030310755 *"Compilers 5.0"*)
1030410756 wlarc=''
10305 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1030610758 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10307 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10759 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1030810760 ;;
1030910761 *)
10310 wlarc='${wl}'
10311 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10762 wlarc='$wl'
10763 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1031210764 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10313 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10765 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1031410766 ;;
1031510767 esac
1031610768 fi
1032010772 solaris2.[0-5] | solaris2.[0-5].*) ;;
1032110773 *)
1032210774 # The compiler driver will combine and reorder linker options,
10323 # but understands `-z linker_flag'. GCC discards it without `$wl',
10775 # but understands '-z linker_flag'. GCC discards it without '$wl',
1032410776 # but is careful enough not to reorder.
1032510777 # Supported since Solaris 2.6 (maybe 2.5.1?)
10326 if test "$GCC" = yes; then
10327 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10778 if test yes = "$GCC"; then
10779 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1032810780 else
1032910781 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
1033010782 fi
1033410786 ;;
1033510787
1033610788 sunos4*)
10337 if test "x$host_vendor" = xsequent; then
10789 if test sequent = "$host_vendor"; then
1033810790 # Use $CC to link under sequent, because it throws in some extra .o
1033910791 # files that make .init and .fini sections work.
10340 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10792 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1034110793 else
1034210794 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1034310795 fi
1038610838 ;;
1038710839
1038810840 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10389 no_undefined_flag='${wl}-z,text'
10841 no_undefined_flag='$wl-z,text'
1039010842 archive_cmds_need_lc=no
1039110843 hardcode_shlibpath_var=no
1039210844 runpath_var='LD_RUN_PATH'
1039310845
10394 if test "$GCC" = yes; then
10395 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 if test yes = "$GCC"; then
10847 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1039710849 else
10398 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10850 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1040010852 fi
1040110853 ;;
1040210854
1040310855 sysv5* | sco3.2v5* | sco5v6*)
10404 # Note: We can NOT use -z defs as we might desire, because we do not
10856 # Note: We CANNOT use -z defs as we might desire, because we do not
1040510857 # link with -lc, and that would cause any symbols used from libc to
1040610858 # always be unresolved, which means just about no library would
1040710859 # ever link correctly. If we're not using GNU ld we use -z text
1040810860 # though, which does catch some bad symbols but isn't as heavy-handed
1040910861 # as -z defs.
10410 no_undefined_flag='${wl}-z,text'
10411 allow_undefined_flag='${wl}-z,nodefs'
10862 no_undefined_flag='$wl-z,text'
10863 allow_undefined_flag='$wl-z,nodefs'
1041210864 archive_cmds_need_lc=no
1041310865 hardcode_shlibpath_var=no
10414 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10866 hardcode_libdir_flag_spec='$wl-R,$libdir'
1041510867 hardcode_libdir_separator=':'
1041610868 link_all_deplibs=yes
10417 export_dynamic_flag_spec='${wl}-Bexport'
10869 export_dynamic_flag_spec='$wl-Bexport'
1041810870 runpath_var='LD_RUN_PATH'
1041910871
10420 if test "$GCC" = yes; then
10421 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 if test yes = "$GCC"; then
10873 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10874 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1042310875 else
10424 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10876 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10877 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1042610878 fi
1042710879 ;;
1042810880
1043710889 ;;
1043810890 esac
1043910891
10440 if test x$host_vendor = xsni; then
10892 if test sni = "$host_vendor"; then
1044110893 case $host in
1044210894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10443 export_dynamic_flag_spec='${wl}-Blargedynsym'
10895 export_dynamic_flag_spec='$wl-Blargedynsym'
1044410896 ;;
1044510897 esac
1044610898 fi
1044810900
1044910901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
1045010902 $as_echo "$ld_shlibs" >&6; }
10451 test "$ld_shlibs" = no && can_build_shared=no
10903 test no = "$ld_shlibs" && can_build_shared=no
1045210904
1045310905 with_gnu_ld=$with_gnu_ld
1045410906
1047410926 # Assume -lc should be added
1047510927 archive_cmds_need_lc=yes
1047610928
10477 if test "$enable_shared" = yes && test "$GCC" = yes; then
10929 if test yes,yes = "$GCC,$enable_shared"; then
1047810930 case $archive_cmds in
1047910931 *'~'*)
1048010932 # FIXME: we may have to deal with multi-command sequences.
1068911141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1069011142 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1069111143
10692 if test "$GCC" = yes; then
11144 if test yes = "$GCC"; then
1069311145 case $host_os in
10694 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10695 *) lt_awk_arg="/^libraries:/" ;;
11146 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11147 *) lt_awk_arg='/^libraries:/' ;;
1069611148 esac
1069711149 case $host_os in
10698 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10699 *) lt_sed_strip_eq="s,=/,/,g" ;;
11150 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11151 *) lt_sed_strip_eq='s|=/|/|g' ;;
1070011152 esac
1070111153 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
1070211154 case $lt_search_path_spec in
1071211164 ;;
1071311165 esac
1071411166 # Ok, now we have the path, separated by spaces, we can step through it
10715 # and add multilib dir if necessary.
11167 # and add multilib dir if necessary...
1071611168 lt_tmp_lt_search_path_spec=
10717 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11169 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11170 # ...but if some path component already ends with the multilib dir we assume
11171 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11172 case "$lt_multi_os_dir; $lt_search_path_spec " in
11173 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11174 lt_multi_os_dir=
11175 ;;
11176 esac
1071811177 for lt_sys_path in $lt_search_path_spec; do
10719 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10721 else
11178 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11180 elif test -n "$lt_multi_os_dir"; then
1072211181 test -d "$lt_sys_path" && \
1072311182 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1072411183 fi
1072511184 done
1072611185 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10727 BEGIN {RS=" "; FS="/|\n";} {
10728 lt_foo="";
10729 lt_count=0;
11186 BEGIN {RS = " "; FS = "/|\n";} {
11187 lt_foo = "";
11188 lt_count = 0;
1073011189 for (lt_i = NF; lt_i > 0; lt_i--) {
1073111190 if ($lt_i != "" && $lt_i != ".") {
1073211191 if ($lt_i == "..") {
1073311192 lt_count++;
1073411193 } else {
1073511194 if (lt_count == 0) {
10736 lt_foo="/" $lt_i lt_foo;
11195 lt_foo = "/" $lt_i lt_foo;
1073711196 } else {
1073811197 lt_count--;
1073911198 }
1074711206 # for these hosts.
1074811207 case $host_os in
1074911208 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10750 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11209 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1075111210 esac
1075211211 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1075311212 else
1075611215 library_names_spec=
1075711216 libname_spec='lib$name'
1075811217 soname_spec=
10759 shrext_cmds=".so"
11218 shrext_cmds=.so
1076011219 postinstall_cmds=
1076111220 postuninstall_cmds=
1076211221 finish_cmds=
1077311232 # flags to be left without arguments
1077411233 need_version=unknown
1077511234
11235
11236
1077611237 case $host_os in
1077711238 aix3*)
1077811239 version_type=linux # correct to gnu/linux during the next big refactor
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11240 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1078011241 shlibpath_var=LIBPATH
1078111242
1078211243 # AIX 3 has no versioning support, so we append a major version to the name.
10783 soname_spec='${libname}${release}${shared_ext}$major'
11244 soname_spec='$libname$release$shared_ext$major'
1078411245 ;;
1078511246
1078611247 aix[4-9]*)
1078811249 need_lib_prefix=no
1078911250 need_version=no
1079011251 hardcode_into_libs=yes
10791 if test "$host_cpu" = ia64; then
11252 if test ia64 = "$host_cpu"; then
1079211253 # AIX 5 supports IA64
10793 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11254 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1079411255 shlibpath_var=LD_LIBRARY_PATH
1079511256 else
1079611257 # With GCC up to 2.95.x, collect2 would create an import file
1079711258 # for dependence libraries. The import file would start with
10798 # the line `#! .'. This would cause the generated library to
10799 # depend on `.', always an invalid library. This was fixed in
11259 # the line '#! .'. This would cause the generated library to
11260 # depend on '.', always an invalid library. This was fixed in
1080011261 # development snapshots of GCC prior to 3.0.
1080111262 case $host_os in
1080211263 aix4 | aix4.[01] | aix4.[01].*)
1080311264 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1080411265 echo ' yes '
10805 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11266 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1080611267 :
1080711268 else
1080811269 can_build_shared=no
1080911270 fi
1081011271 ;;
1081111272 esac
10812 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11273 # Using Import Files as archive members, it is possible to support
11274 # filename-based versioning of shared library archives on AIX. While
11275 # this would work for both with and without runtime linking, it will
11276 # prevent static linking of such archives. So we do filename-based
11277 # shared library versioning with .so extension only, which is used
11278 # when both runtime linking and shared linking is enabled.
11279 # Unfortunately, runtime linking may impact performance, so we do
11280 # not want this to be the default eventually. Also, we use the
11281 # versioned .so libs for executables only if there is the -brtl
11282 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11283 # To allow for filename-based versioning support, we need to create
11284 # libNAME.so.V as an archive file, containing:
11285 # *) an Import File, referring to the versioned filename of the
11286 # archive as well as the shared archive member, telling the
11287 # bitwidth (32 or 64) of that shared object, and providing the
11288 # list of exported symbols of that shared object, eventually
11289 # decorated with the 'weak' keyword
11290 # *) the shared object with the F_LOADONLY flag set, to really avoid
11291 # it being seen by the linker.
11292 # At run time we better use the real file rather than another symlink,
11293 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11294
11295 case $with_aix_soname,$aix_use_runtimelinking in
11296 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1081311297 # soname into executable. Probably we can add versioning support to
1081411298 # collect2, so additional links can be useful in future.
10815 if test "$aix_use_runtimelinking" = yes; then
11299 aix,yes) # traditional libtool
11300 dynamic_linker='AIX unversionable lib.so'
1081611301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1081711302 # instead of lib<name>.a to let people know that these are not
1081811303 # typical AIX shared libraries.
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 else
11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11305 ;;
11306 aix,no) # traditional AIX only
11307 dynamic_linker='AIX lib.a(lib.so.V)'
1082111308 # We preserve .a as extension for shared libraries through AIX4.2
1082211309 # and later when we are not doing run time linking.
10823 library_names_spec='${libname}${release}.a $libname.a'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 fi
11310 library_names_spec='$libname$release.a $libname.a'
11311 soname_spec='$libname$release$shared_ext$major'
11312 ;;
11313 svr4,*) # full svr4 only
11314 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11315 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11316 # We do not specify a path in Import Files, so LIBPATH fires.
11317 shlibpath_overrides_runpath=yes
11318 ;;
11319 *,yes) # both, prefer svr4
11320 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11321 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11322 # unpreferred sharedlib libNAME.a needs extra handling
11323 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11324 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11325 # We do not specify a path in Import Files, so LIBPATH fires.
11326 shlibpath_overrides_runpath=yes
11327 ;;
11328 *,no) # both, prefer aix
11329 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11330 library_names_spec='$libname$release.a $libname.a'
11331 soname_spec='$libname$release$shared_ext$major'
11332 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11333 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11334 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11335 ;;
11336 esac
1082611337 shlibpath_var=LIBPATH
1082711338 fi
1082811339 ;;
1083211343 powerpc)
1083311344 # Since July 2007 AmigaOS4 officially supports .so libraries.
1083411345 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1083611347 ;;
1083711348 m68k)
1083811349 library_names_spec='$libname.ixlibrary $libname.a'
1083911350 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10840 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11351 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
1084111352 ;;
1084211353 esac
1084311354 ;;
1084411355
1084511356 beos*)
10846 library_names_spec='${libname}${shared_ext}'
11357 library_names_spec='$libname$shared_ext'
1084711358 dynamic_linker="$host_os ld.so"
1084811359 shlibpath_var=LIBRARY_PATH
1084911360 ;;
1085111362 bsdi[45]*)
1085211363 version_type=linux # correct to gnu/linux during the next big refactor
1085311364 need_version=no
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 soname_spec='${libname}${release}${shared_ext}$major'
11365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11366 soname_spec='$libname$release$shared_ext$major'
1085611367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1085711368 shlibpath_var=LD_LIBRARY_PATH
1085811369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1086411375
1086511376 cygwin* | mingw* | pw32* | cegcc*)
1086611377 version_type=windows
10867 shrext_cmds=".dll"
11378 shrext_cmds=.dll
1086811379 need_version=no
1086911380 need_lib_prefix=no
1087011381
1087311384 # gcc
1087411385 library_names_spec='$libname.dll.a'
1087511386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10876 postinstall_cmds='base_file=`basename \${file}`~
10877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11387 postinstall_cmds='base_file=`basename \$file`~
11388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1087811389 dldir=$destdir/`dirname \$dlpath`~
1087911390 test -d \$dldir || mkdir -p \$dldir~
1088011391 $install_prog $dir/$dlname \$dldir/$dlname~
1089011401 case $host_os in
1089111402 cygwin*)
1089211403 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11404 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1089411405
1089511406 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1089611407 ;;
1089711408 mingw* | cegcc*)
1089811409 # MinGW DLLs use traditional 'lib' prefix
10899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11410 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1090011411 ;;
1090111412 pw32*)
1090211413 # pw32 DLLs use 'pw' prefix rather than 'lib'
10903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11414 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1090411415 ;;
1090511416 esac
1090611417 dynamic_linker='Win32 ld.exe'
1090911420 *,cl*)
1091011421 # Native MSVC
1091111422 libname_spec='$name'
10912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10913 library_names_spec='${libname}.dll.lib'
11423 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11424 library_names_spec='$libname.dll.lib'
1091411425
1091511426 case $build_os in
1091611427 mingw*)
1093711448 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1093811449 ;;
1093911450 *)
10940 sys_lib_search_path_spec="$LIB"
11451 sys_lib_search_path_spec=$LIB
1094111452 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1094211453 # It is most probably a Windows format PATH.
1094311454 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1095011461 esac
1095111462
1095211463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10953 postinstall_cmds='base_file=`basename \${file}`~
10954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11464 postinstall_cmds='base_file=`basename \$file`~
11465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1095511466 dldir=$destdir/`dirname \$dlpath`~
1095611467 test -d \$dldir || mkdir -p \$dldir~
1095711468 $install_prog $dir/$dlname \$dldir/$dlname'
1096411475
1096511476 *)
1096611477 # Assume MSVC wrapper
10967 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11478 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1096811479 dynamic_linker='Win32 ld.exe'
1096911480 ;;
1097011481 esac
1097711488 version_type=darwin
1097811489 need_lib_prefix=no
1097911490 need_version=no
10980 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10981 soname_spec='${libname}${release}${major}$shared_ext'
11491 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11492 soname_spec='$libname$release$major$shared_ext'
1098211493 shlibpath_overrides_runpath=yes
1098311494 shlibpath_var=DYLD_LIBRARY_PATH
1098411495 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1099111502 version_type=linux # correct to gnu/linux during the next big refactor
1099211503 need_lib_prefix=no
1099311504 need_version=no
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10995 soname_spec='${libname}${release}${shared_ext}$major'
11505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11506 soname_spec='$libname$release$shared_ext$major'
1099611507 shlibpath_var=LD_LIBRARY_PATH
1099711508 ;;
1099811509
1101011521 version_type=freebsd-$objformat
1101111522 case $version_type in
1101211523 freebsd-elf*)
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525 soname_spec='$libname$release$shared_ext$major'
1101411526 need_version=no
1101511527 need_lib_prefix=no
1101611528 ;;
1101711529 freebsd-*)
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1101911531 need_version=yes
1102011532 ;;
1102111533 esac
1104011552 esac
1104111553 ;;
1104211554
11043 gnu*)
11044 version_type=linux # correct to gnu/linux during the next big refactor
11045 need_lib_prefix=no
11046 need_version=no
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=no
11051 hardcode_into_libs=yes
11052 ;;
11053
1105411555 haiku*)
1105511556 version_type=linux # correct to gnu/linux during the next big refactor
1105611557 need_lib_prefix=no
1105711558 need_version=no
1105811559 dynamic_linker="$host_os runtime_loader"
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11561 soname_spec='$libname$release$shared_ext$major'
1106111562 shlibpath_var=LIBRARY_PATH
11062 shlibpath_overrides_runpath=yes
11563 shlibpath_overrides_runpath=no
1106311564 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1106411565 hardcode_into_libs=yes
1106511566 ;;
1107711578 dynamic_linker="$host_os dld.so"
1107811579 shlibpath_var=LD_LIBRARY_PATH
1107911580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11082 if test "X$HPUX_IA64_MODE" = X32; then
11581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11582 soname_spec='$libname$release$shared_ext$major'
11583 if test 32 = "$HPUX_IA64_MODE"; then
1108311584 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11585 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1108411586 else
1108511587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11588 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1108611589 fi
11087 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1108811590 ;;
1108911591 hppa*64*)
1109011592 shrext_cmds='.sl'
1109211594 dynamic_linker="$host_os dld.sl"
1109311595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1109411596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598 soname_spec='$libname$release$shared_ext$major'
1109711599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1109811600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1109911601 ;;
1110211604 dynamic_linker="$host_os dld.sl"
1110311605 shlibpath_var=SHLIB_PATH
1110411606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106 soname_spec='${libname}${release}${shared_ext}$major'
11607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11608 soname_spec='$libname$release$shared_ext$major'
1110711609 ;;
1110811610 esac
1110911611 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1111611618 version_type=linux # correct to gnu/linux during the next big refactor
1111711619 need_lib_prefix=no
1111811620 need_version=no
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 soname_spec='$libname$release$shared_ext$major'
1112111623 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1112211624 shlibpath_var=LD_LIBRARY_PATH
1112311625 shlibpath_overrides_runpath=no
1112811630 case $host_os in
1112911631 nonstopux*) version_type=nonstopux ;;
1113011632 *)
11131 if test "$lt_cv_prog_gnu_ld" = yes; then
11633 if test yes = "$lt_cv_prog_gnu_ld"; then
1113211634 version_type=linux # correct to gnu/linux during the next big refactor
1113311635 else
1113411636 version_type=irix
1113611638 esac
1113711639 need_lib_prefix=no
1113811640 need_version=no
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11641 soname_spec='$libname$release$shared_ext$major'
11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1114111643 case $host_os in
1114211644 irix5* | nonstopux*)
1114311645 libsuff= shlibsuff=
1115611658 esac
1115711659 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1115811660 shlibpath_overrides_runpath=no
11159 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11160 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11661 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11662 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1116111663 hardcode_into_libs=yes
1116211664 ;;
1116311665
1116611668 dynamic_linker=no
1116711669 ;;
1116811670
11671 linux*android*)
11672 version_type=none # Android doesn't support versioned libraries.
11673 need_lib_prefix=no
11674 need_version=no
11675 library_names_spec='$libname$release$shared_ext'
11676 soname_spec='$libname$release$shared_ext'
11677 finish_cmds=
11678 shlibpath_var=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath=yes
11680
11681 # This implies no fast_install, which is unacceptable.
11682 # Some rework will be needed to allow for fast_install
11683 # before this can be enabled.
11684 hardcode_into_libs=yes
11685
11686 dynamic_linker='Android linker'
11687 # Don't embed -rpath directories since the linker doesn't support them.
11688 hardcode_libdir_flag_spec='-L$libdir'
11689 ;;
11690
1116911691 # This must be glibc/ELF.
11170 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11692 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1117111693 version_type=linux # correct to gnu/linux during the next big refactor
1117211694 need_lib_prefix=no
1117311695 need_version=no
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175 soname_spec='${libname}${release}${shared_ext}$major'
11696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11697 soname_spec='$libname$release$shared_ext$major'
1117611698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1117711699 shlibpath_var=LD_LIBRARY_PATH
1117811700 shlibpath_overrides_runpath=no
1121611738 # before this can be enabled.
1121711739 hardcode_into_libs=yes
1121811740
11219 # Append ld.so.conf contents to the search path
11741 # Ideally, we could use ldconfig to report *all* directores which are
11742 # searched for libraries, however this is still not possible. Aside from not
11743 # being certain /sbin/ldconfig is available, command
11744 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11745 # even though it is searched at run-time. Try to do the best guess by
11746 # appending ld.so.conf contents (and includes) to the search path.
1122011747 if test -f /etc/ld.so.conf; then
1122111748 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1122211749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1123111758 dynamic_linker='GNU/Linux ld.so'
1123211759 ;;
1123311760
11761 netbsdelf*-gnu)
11762 version_type=linux
11763 need_lib_prefix=no
11764 need_version=no
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11766 soname_spec='${libname}${release}${shared_ext}$major'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 shlibpath_overrides_runpath=no
11769 hardcode_into_libs=yes
11770 dynamic_linker='NetBSD ld.elf_so'
11771 ;;
11772
1123411773 netbsd*)
1123511774 version_type=sunos
1123611775 need_lib_prefix=no
1123711776 need_version=no
1123811777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1124011779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1124111780 dynamic_linker='NetBSD (a.out) ld.so'
1124211781 else
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783 soname_spec='$libname$release$shared_ext$major'
1124511784 dynamic_linker='NetBSD ld.elf_so'
1124611785 fi
1124711786 shlibpath_var=LD_LIBRARY_PATH
1125111790
1125211791 newsos6)
1125311792 version_type=linux # correct to gnu/linux during the next big refactor
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1125511794 shlibpath_var=LD_LIBRARY_PATH
1125611795 shlibpath_overrides_runpath=yes
1125711796 ;;
1126011799 version_type=qnx
1126111800 need_lib_prefix=no
1126211801 need_version=no
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264 soname_spec='${libname}${release}${shared_ext}$major'
11802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803 soname_spec='$libname$release$shared_ext$major'
1126511804 shlibpath_var=LD_LIBRARY_PATH
1126611805 shlibpath_overrides_runpath=no
1126711806 hardcode_into_libs=yes
1126811807 dynamic_linker='ldqnx.so'
1126911808 ;;
1127011809
11271 openbsd*)
11810 openbsd* | bitrig*)
1127211811 version_type=sunos
11273 sys_lib_dlsearch_path_spec="/usr/lib"
11812 sys_lib_dlsearch_path_spec=/usr/lib
1127411813 need_lib_prefix=no
11275 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11276 case $host_os in
11277 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11278 *) need_version=no ;;
11279 esac
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11815 need_version=no
11816 else
11817 need_version=yes
11818 fi
11819 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1128111820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1128211821 shlibpath_var=LD_LIBRARY_PATH
11283 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11284 case $host_os in
11285 openbsd2.[89] | openbsd2.[89].*)
11286 shlibpath_overrides_runpath=no
11287 ;;
11288 *)
11289 shlibpath_overrides_runpath=yes
11290 ;;
11291 esac
11292 else
11293 shlibpath_overrides_runpath=yes
11294 fi
11822 shlibpath_overrides_runpath=yes
1129511823 ;;
1129611824
1129711825 os2*)
1129811826 libname_spec='$name'
11299 shrext_cmds=".dll"
11827 version_type=windows
11828 shrext_cmds=.dll
11829 need_version=no
1130011830 need_lib_prefix=no
11301 library_names_spec='$libname${shared_ext} $libname.a'
11831 # OS/2 can only load a DLL with a base name of 8 characters or less.
11832 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11833 v=$($ECHO $release$versuffix | tr -d .-);
11834 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11835 $ECHO $n$v`$shared_ext'
11836 library_names_spec='${libname}_dll.$libext'
1130211837 dynamic_linker='OS/2 ld.exe'
11303 shlibpath_var=LIBPATH
11838 shlibpath_var=BEGINLIBPATH
11839 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11841 postinstall_cmds='base_file=`basename \$file`~
11842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11843 dldir=$destdir/`dirname \$dlpath`~
11844 test -d \$dldir || mkdir -p \$dldir~
11845 $install_prog $dir/$dlname \$dldir/$dlname~
11846 chmod a+x \$dldir/$dlname~
11847 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11848 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11849 fi'
11850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11851 dlpath=$dir/\$dldll~
11852 $RM \$dlpath'
1130411853 ;;
1130511854
1130611855 osf3* | osf4* | osf5*)
1130711856 version_type=osf
1130811857 need_lib_prefix=no
1130911858 need_version=no
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859 soname_spec='$libname$release$shared_ext$major'
11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1131211861 shlibpath_var=LD_LIBRARY_PATH
1131311862 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11314 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1131511864 ;;
1131611865
1131711866 rdos*)
1132211871 version_type=linux # correct to gnu/linux during the next big refactor
1132311872 need_lib_prefix=no
1132411873 need_version=no
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11875 soname_spec='$libname$release$shared_ext$major'
1132711876 shlibpath_var=LD_LIBRARY_PATH
1132811877 shlibpath_overrides_runpath=yes
1132911878 hardcode_into_libs=yes
1133311882
1133411883 sunos4*)
1133511884 version_type=sunos
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1133711886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1133811887 shlibpath_var=LD_LIBRARY_PATH
1133911888 shlibpath_overrides_runpath=yes
11340 if test "$with_gnu_ld" = yes; then
11889 if test yes = "$with_gnu_ld"; then
1134111890 need_lib_prefix=no
1134211891 fi
1134311892 need_version=yes
1134511894
1134611895 sysv4 | sysv4.3*)
1134711896 version_type=linux # correct to gnu/linux during the next big refactor
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11898 soname_spec='$libname$release$shared_ext$major'
1135011899 shlibpath_var=LD_LIBRARY_PATH
1135111900 case $host_vendor in
1135211901 sni)
1136711916 ;;
1136811917
1136911918 sysv4*MP*)
11370 if test -d /usr/nec ;then
11919 if test -d /usr/nec; then
1137111920 version_type=linux # correct to gnu/linux during the next big refactor
11372 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11373 soname_spec='$libname${shared_ext}.$major'
11921 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11922 soname_spec='$libname$shared_ext.$major'
1137411923 shlibpath_var=LD_LIBRARY_PATH
1137511924 fi
1137611925 ;;
1137711926
1137811927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11379 version_type=freebsd-elf
11928 version_type=sco
1138011929 need_lib_prefix=no
1138111930 need_version=no
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11932 soname_spec='$libname$release$shared_ext$major'
1138411933 shlibpath_var=LD_LIBRARY_PATH
1138511934 shlibpath_overrides_runpath=yes
1138611935 hardcode_into_libs=yes
11387 if test "$with_gnu_ld" = yes; then
11936 if test yes = "$with_gnu_ld"; then
1138811937 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1138911938 else
1139011939 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1140211951 version_type=linux # correct to gnu/linux during the next big refactor
1140311952 need_lib_prefix=no
1140411953 need_version=no
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1140611955 shlibpath_var=LD_LIBRARY_PATH
1140711956 shlibpath_overrides_runpath=no
1140811957 hardcode_into_libs=yes
1141011959
1141111960 uts4*)
1141211961 version_type=linux # correct to gnu/linux during the next big refactor
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11963 soname_spec='$libname$release$shared_ext$major'
1141511964 shlibpath_var=LD_LIBRARY_PATH
1141611965 ;;
1141711966
1142111970 esac
1142211971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1142311972 $as_echo "$dynamic_linker" >&6; }
11424 test "$dynamic_linker" = no && can_build_shared=no
11973 test no = "$dynamic_linker" && can_build_shared=no
1142511974
1142611975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11427 if test "$GCC" = yes; then
11976 if test yes = "$GCC"; then
1142811977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1142911978 fi
1143011979
11431 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11432 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11433 fi
11434 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11435 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11436 fi
11980 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11981 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11982 fi
11983
11984 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11985 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11986 fi
11987
11988 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11989 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11990
11991 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11992 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11993
11994 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11995 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11996
11997
11998
11999
12000
1143712001
1143812002
1143912003
1153112095 hardcode_action=
1153212096 if test -n "$hardcode_libdir_flag_spec" ||
1153312097 test -n "$runpath_var" ||
11534 test "X$hardcode_automatic" = "Xyes" ; then
12098 test yes = "$hardcode_automatic"; then
1153512099
1153612100 # We can hardcode non-existent directories.
11537 if test "$hardcode_direct" != no &&
12101 if test no != "$hardcode_direct" &&
1153812102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1153912103 # have to relink, otherwise we might link with an installed library
1154012104 # when we should be linking with a yet-to-be-installed one
11541 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11542 test "$hardcode_minus_L" != no; then
12105 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12106 test no != "$hardcode_minus_L"; then
1154312107 # Linking always hardcodes the temporary library directory.
1154412108 hardcode_action=relink
1154512109 else
1155412118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1155512119 $as_echo "$hardcode_action" >&6; }
1155612120
11557 if test "$hardcode_action" = relink ||
11558 test "$inherit_rpath" = yes; then
12121 if test relink = "$hardcode_action" ||
12122 test yes = "$inherit_rpath"; then
1155912123 # Fast installation is not supported
1156012124 enable_fast_install=no
11561 elif test "$shlibpath_overrides_runpath" = yes ||
11562 test "$enable_shared" = no; then
12125 elif test yes = "$shlibpath_overrides_runpath" ||
12126 test no = "$enable_shared"; then
1156312127 # Fast installation is not necessary
1156412128 enable_fast_install=needless
1156512129 fi
1156912133
1157012134
1157112135
11572 if test "x$enable_dlopen" != xyes; then
12136 if test yes != "$enable_dlopen"; then
1157312137 enable_dlopen=unknown
1157412138 enable_dlopen_self=unknown
1157512139 enable_dlopen_self_static=unknown
1157912143
1158012144 case $host_os in
1158112145 beos*)
11582 lt_cv_dlopen="load_add_on"
12146 lt_cv_dlopen=load_add_on
1158312147 lt_cv_dlopen_libs=
1158412148 lt_cv_dlopen_self=yes
1158512149 ;;
1158612150
1158712151 mingw* | pw32* | cegcc*)
11588 lt_cv_dlopen="LoadLibrary"
12152 lt_cv_dlopen=LoadLibrary
1158912153 lt_cv_dlopen_libs=
1159012154 ;;
1159112155
1159212156 cygwin*)
11593 lt_cv_dlopen="dlopen"
12157 lt_cv_dlopen=dlopen
1159412158 lt_cv_dlopen_libs=
1159512159 ;;
1159612160
1159712161 darwin*)
11598 # if libdl is installed we need to link against it
12162 # if libdl is installed we need to link against it
1159912163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1160012164 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1160112165 if ${ac_cv_lib_dl_dlopen+:} false; then :
1163312197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1163412198 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1163512199 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11637 else
11638
11639 lt_cv_dlopen="dyld"
12200 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12201 else
12202
12203 lt_cv_dlopen=dyld
1164012204 lt_cv_dlopen_libs=
1164112205 lt_cv_dlopen_self=yes
1164212206
1164312207 fi
1164412208
12209 ;;
12210
12211 tpf*)
12212 # Don't try to run any link tests for TPF. We know it's impossible
12213 # because TPF is a cross-compiler, and we know how we open DSOs.
12214 lt_cv_dlopen=dlopen
12215 lt_cv_dlopen_libs=
12216 lt_cv_dlopen_self=no
1164512217 ;;
1164612218
1164712219 *)
1164812220 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1164912221 if test "x$ac_cv_func_shl_load" = xyes; then :
11650 lt_cv_dlopen="shl_load"
12222 lt_cv_dlopen=shl_load
1165112223 else
1165212224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1165312225 $as_echo_n "checking for shl_load in -ldld... " >&6; }
1168612258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1168712259 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1168812260 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11689 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12261 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1169012262 else
1169112263 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1169212264 if test "x$ac_cv_func_dlopen" = xyes; then :
11693 lt_cv_dlopen="dlopen"
12265 lt_cv_dlopen=dlopen
1169412266 else
1169512267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1169612268 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1172912301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1173012302 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1173112303 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11732 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12304 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1173312305 else
1173412306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1173512307 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1176812340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1176912341 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1177012342 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12343 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1177212344 else
1177312345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1177412346 $as_echo_n "checking for dld_link in -ldld... " >&6; }
1180712379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1180812380 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1180912381 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11810 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12382 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1181112383 fi
1181212384
1181312385
1182812400 ;;
1182912401 esac
1183012402
11831 if test "x$lt_cv_dlopen" != xno; then
12403 if test no = "$lt_cv_dlopen"; then
12404 enable_dlopen=no
12405 else
1183212406 enable_dlopen=yes
11833 else
11834 enable_dlopen=no
1183512407 fi
1183612408
1183712409 case $lt_cv_dlopen in
1183812410 dlopen)
11839 save_CPPFLAGS="$CPPFLAGS"
11840 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11841
11842 save_LDFLAGS="$LDFLAGS"
12411 save_CPPFLAGS=$CPPFLAGS
12412 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12413
12414 save_LDFLAGS=$LDFLAGS
1184312415 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1184412416
11845 save_LIBS="$LIBS"
12417 save_LIBS=$LIBS
1184612418 LIBS="$lt_cv_dlopen_libs $LIBS"
1184712419
1184812420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1185012422 if ${lt_cv_dlopen_self+:} false; then :
1185112423 $as_echo_n "(cached) " >&6
1185212424 else
11853 if test "$cross_compiling" = yes; then :
12425 if test yes = "$cross_compiling"; then :
1185412426 lt_cv_dlopen_self=cross
1185512427 else
1185612428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1189712469 # endif
1189812470 #endif
1189912471
11900 /* When -fvisbility=hidden is used, assume the code has been annotated
12472 /* When -fvisibility=hidden is used, assume the code has been annotated
1190112473 correspondingly for the symbols needed. */
11902 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12474 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1190312475 int fnord () __attribute__((visibility("default")));
1190412476 #endif
1190512477
1192912501 (eval $ac_link) 2>&5
1193012502 ac_status=$?
1193112503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11932 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12504 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1193312505 (./conftest; exit; ) >&5 2>/dev/null
1193412506 lt_status=$?
1193512507 case x$lt_status in
1194912521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1195012522 $as_echo "$lt_cv_dlopen_self" >&6; }
1195112523
11952 if test "x$lt_cv_dlopen_self" = xyes; then
12524 if test yes = "$lt_cv_dlopen_self"; then
1195312525 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1195412526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1195512527 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1195612528 if ${lt_cv_dlopen_self_static+:} false; then :
1195712529 $as_echo_n "(cached) " >&6
1195812530 else
11959 if test "$cross_compiling" = yes; then :
12531 if test yes = "$cross_compiling"; then :
1196012532 lt_cv_dlopen_self_static=cross
1196112533 else
1196212534 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1200312575 # endif
1200412576 #endif
1200512577
12006 /* When -fvisbility=hidden is used, assume the code has been annotated
12578 /* When -fvisibility=hidden is used, assume the code has been annotated
1200712579 correspondingly for the symbols needed. */
12008 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12580 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1200912581 int fnord () __attribute__((visibility("default")));
1201012582 #endif
1201112583
1203512607 (eval $ac_link) 2>&5
1203612608 ac_status=$?
1203712609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12038 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12610 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1203912611 (./conftest; exit; ) >&5 2>/dev/null
1204012612 lt_status=$?
1204112613 case x$lt_status in
1205612628 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1205712629 fi
1205812630
12059 CPPFLAGS="$save_CPPFLAGS"
12060 LDFLAGS="$save_LDFLAGS"
12061 LIBS="$save_LIBS"
12631 CPPFLAGS=$save_CPPFLAGS
12632 LDFLAGS=$save_LDFLAGS
12633 LIBS=$save_LIBS
1206212634 ;;
1206312635 esac
1206412636
1210212674 # FIXME - insert some real tests, host_os isn't really good enough
1210312675 case $host_os in
1210412676 darwin*)
12105 if test -n "$STRIP" ; then
12677 if test -n "$STRIP"; then
1210612678 striplib="$STRIP -x"
1210712679 old_striplib="$STRIP -S"
1210812680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1213012702
1213112703
1213212704
12133 # Report which library types will actually be built
12705 # Report what library types will actually be built
1213412706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1213512707 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1213612708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1213812710
1213912711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1214012712 $as_echo_n "checking whether to build shared libraries... " >&6; }
12141 test "$can_build_shared" = "no" && enable_shared=no
12713 test no = "$can_build_shared" && enable_shared=no
1214212714
1214312715 # On AIX, shared libraries and static libraries use the same namespace, and
1214412716 # are all built from PIC.
1214512717 case $host_os in
1214612718 aix3*)
12147 test "$enable_shared" = yes && enable_static=no
12719 test yes = "$enable_shared" && enable_static=no
1214812720 if test -n "$RANLIB"; then
1214912721 archive_cmds="$archive_cmds~\$RANLIB \$lib"
1215012722 postinstall_cmds='$RANLIB $lib'
1215212724 ;;
1215312725
1215412726 aix[4-9]*)
12155 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12156 test "$enable_shared" = yes && enable_static=no
12727 if test ia64 != "$host_cpu"; then
12728 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12729 yes,aix,yes) ;; # shared object as lib.so file only
12730 yes,svr4,*) ;; # shared object as lib.so archive member only
12731 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12732 esac
1215712733 fi
1215812734 ;;
1215912735 esac
1216312739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1216412740 $as_echo_n "checking whether to build static libraries... " >&6; }
1216512741 # Make sure either enable_shared or enable_static is yes.
12166 test "$enable_shared" = yes || enable_static=yes
12742 test yes = "$enable_shared" || enable_static=yes
1216712743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1216812744 $as_echo "$enable_static" >&6; }
1216912745
1217712753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1217812754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1217912755
12180 CC="$lt_save_CC"
12756 CC=$lt_save_CC
1218112757
1218212758
1218312759
1221112787
1221212788
1221312789
12214 ALL_LINGUAS="ar ast be bg ca cs da de el en_AU en_GB es eu fi fr gl he hr hu id is it ja ko ku lt lv ms nb nl oc pl pt pt_BR ru sk sq sr sv th tr ug uk ur ur_PK zh_CN zh_TW "
12790 ALL_LINGUAS="ar ast be bg ca cs da de el en_AU en_CA en_GB es et eu fi fr gl he hi hr hu hye id is it ja ko ku lt lv ms nb nl oc pl pt pt_BR ru sk sl sq sr sv th tr ug uk ur ur_PK zh_CN zh_TW"
1221512791
1221612792 for ac_header in locale.h
1221712793 do :
1301413590 if test x"$CATOBJEXT" = x".mo"; then
1301513591 localedir=$libdir/locale
1301613592 else
13017 localedir=$datadir/locale
13593 localedir=$datarootdir/locale
1301813594 fi
1301913595
1302013596 fi
1316813744 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
1316913745 echo "*** from the freedesktop.org software repository at"
1317013746 echo "***"
13171 echo "*** http://www.freedesktop.org/software/pkgconfig"
13747 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
1317213748 echo "***"
1317313749 exit 1;
1317413750 fi
1336313939 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
1336413940 echo "*** from the freedesktop.org software repository at"
1336513941 echo "***"
13366 echo "*** http://www.freedesktop.org/software/pkgconfig"
13942 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
1336713943 echo "***"
1336813944 exit 1;
1336913945 fi
1344814024 -Wno-unused-parameter -Wold-style-definition \
1344914025 -Wdeclaration-after-statement \
1345014026 -Wmissing-declarations \
13451 -Wmissing-noreturn -Wshadow -Wpointer-arith \
14027 -Wmissing-noreturn -Wpointer-arith \
1345214028 -Wcast-align -Wformat -Wformat-security -Wformat-y2k \
1345314029 -Winit-self -Wmissing-include-dirs -Wundef \
1345414030 -Wnested-externs"
1347114047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: full" >&5
1347214048 $as_echo "full" >&6; }
1347314049 else
13474 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g"
14050 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g -Wshadow"
1347514051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1347614052 $as_echo "yes" >&6; }
1347714053 fi
1406114637 # report actual input values of CONFIG_FILES etc. instead of their
1406214638 # values after options handling.
1406314639 ac_log="
14064 This file was extended by xfce4-smartbookmark-plugin $as_me 0.5.1, which was
14640 This file was extended by xfce4-smartbookmark-plugin $as_me 0.5.2, which was
1406514641 generated by GNU Autoconf 2.69. Invocation command line was
1406614642
1406714643 CONFIG_FILES = $CONFIG_FILES
1412114697 Configuration commands:
1412214698 $config_commands
1412314699
14124 Report bugs to <ema@debian.org>."
14700 Report bugs to <https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin>."
1412514701
1412614702 _ACEOF
1412714703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1412814704 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1412914705 ac_cs_version="\\
14130 xfce4-smartbookmark-plugin config.status 0.5.1
14706 xfce4-smartbookmark-plugin config.status 0.5.2
1413114707 configured by $0, generated by GNU Autoconf 2.69,
1413214708 with options \\"\$ac_cs_config\\"
1413314709
1424614822 #
1424714823 # INIT-COMMANDS
1424814824 #
14249 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14825 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1425014826
1425114827
1425214828 # The HP-UX ksh and POSIX shell print the target directory to stdout
1426214838 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1426314839 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1426414840 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14841 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1426514842 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1426614843 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1426714844 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1431114888 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1431214889 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1431314890 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14891 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1431414892 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1431514893 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14894 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1431614895 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1431714896 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14897 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1431814898 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1431914899 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1432014900 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1437914959 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1438014960 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1438114961 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14382 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14962 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14963 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1438314964 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1438414965 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1438514966 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1443015011 compiler \
1443115012 lt_cv_sys_global_symbol_pipe \
1443215013 lt_cv_sys_global_symbol_to_cdecl \
15014 lt_cv_sys_global_symbol_to_import \
1443315015 lt_cv_sys_global_symbol_to_c_name_address \
1443415016 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15017 lt_cv_nm_interface \
1443515018 nm_file_list_spec \
15019 lt_cv_truncate_bin \
1443615020 lt_prog_compiler_no_builtin_flag \
1443715021 lt_prog_compiler_pic \
1443815022 lt_prog_compiler_wl \
1446715051 striplib; do
1446815052 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1446915053 *[\\\\\\\`\\"\\\$]*)
14470 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15054 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1447115055 ;;
1447215056 *)
1447315057 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1449415078 postuninstall_cmds \
1449515079 finish_cmds \
1449615080 sys_lib_search_path_spec \
14497 sys_lib_dlsearch_path_spec; do
15081 configure_time_dlsearch_path \
15082 configure_time_lt_sys_library_path; do
1449815083 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1449915084 *[\\\\\\\`\\"\\\$]*)
14500 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15085 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1450115086 ;;
1450215087 *)
1450315088 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1450615091 done
1450715092
1450815093 ac_aux_dir='$ac_aux_dir'
14509 xsi_shell='$xsi_shell'
14510 lt_shell_append='$lt_shell_append'
14511
14512 # See if we are running on zsh, and set the options which allow our
15094
15095 # See if we are running on zsh, and set the options that allow our
1451315096 # commands through without removal of \ escapes INIT.
14514 if test -n "\${ZSH_VERSION+set}" ; then
15097 if test -n "\${ZSH_VERSION+set}"; then
1451515098 setopt NO_GLOB_SUBST
1451615099 fi
1451715100
1451815101
1451915102 PACKAGE='$PACKAGE'
1452015103 VERSION='$VERSION'
14521 TIMESTAMP='$TIMESTAMP'
1452215104 RM='$RM'
1452315105 ofile='$ofile'
1452415106
1514115723 # Older Autoconf quotes --file arguments for eval, but not when files
1514215724 # are listed without --file. Let's play safe and only enable the eval
1514315725 # if we detect the quoting.
15144 case $CONFIG_FILES in
15145 *\'*) eval set x "$CONFIG_FILES" ;;
15146 *) set x $CONFIG_FILES ;;
15147 esac
15726 # TODO: see whether this extra hack can be removed once we start
15727 # requiring Autoconf 2.70 or later.
15728 case $CONFIG_FILES in #(
15729 *\'*) :
15730 eval set x "$CONFIG_FILES" ;; #(
15731 *) :
15732 set x $CONFIG_FILES ;; #(
15733 *) :
15734 ;;
15735 esac
1514815736 shift
15149 for mf
15737 # Used to flag and report bootstrapping failures.
15738 am_rc=0
15739 for am_mf
1515015740 do
1515115741 # Strip MF so we end up with the name of the file.
15152 mf=`echo "$mf" | sed -e 's/:.*$//'`
15153 # Check whether this is an Automake generated Makefile or not.
15154 # We used to match only the files named 'Makefile.in', but
15155 # some people rename them; so instead we look at the file content.
15156 # Grep'ing the first line is not enough: some people post-process
15157 # each Makefile.in and add a new line on top of each file to say so.
15158 # Grep'ing the whole file is not good either: AIX grep has a line
15742 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15743 # Check whether this is an Automake generated Makefile which includes
15744 # dependency-tracking related rules and includes.
15745 # Grep'ing the whole file directly is not great: AIX grep has a line
1515915746 # limit of 2048, but all sed's we know have understand at least 4000.
15160 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15161 dirpart=`$as_dirname -- "$mf" ||
15162 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15163 X"$mf" : 'X\(//\)[^/]' \| \
15164 X"$mf" : 'X\(//\)$' \| \
15165 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15166 $as_echo X"$mf" |
15747 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15748 || continue
15749 am_dirpart=`$as_dirname -- "$am_mf" ||
15750 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15751 X"$am_mf" : 'X\(//\)[^/]' \| \
15752 X"$am_mf" : 'X\(//\)$' \| \
15753 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15754 $as_echo X"$am_mf" |
1516715755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1516815756 s//\1/
1516915757 q
1518115769 q
1518215770 }
1518315771 s/.*/./; q'`
15184 else
15185 continue
15186 fi
15187 # Extract the definition of DEPDIR, am__include, and am__quote
15188 # from the Makefile without running 'make'.
15189 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15190 test -z "$DEPDIR" && continue
15191 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15192 test -z "$am__include" && continue
15193 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15194 # Find all dependency output files, they are included files with
15195 # $(DEPDIR) in their names. We invoke sed twice because it is the
15196 # simplest approach to changing $(DEPDIR) to its actual value in the
15197 # expansion.
15198 for file in `sed -n "
15199 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15200 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15201 # Make sure the directory exists.
15202 test -f "$dirpart/$file" && continue
15203 fdir=`$as_dirname -- "$file" ||
15204 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15205 X"$file" : 'X\(//\)[^/]' \| \
15206 X"$file" : 'X\(//\)$' \| \
15207 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15208 $as_echo X"$file" |
15209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15772 am_filepart=`$as_basename -- "$am_mf" ||
15773 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15774 X"$am_mf" : 'X\(//\)$' \| \
15775 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15776 $as_echo X/"$am_mf" |
15777 sed '/^.*\/\([^/][^/]*\)\/*$/{
1521015778 s//\1/
1521115779 q
1521215780 }
15213 /^X\(\/\/\)[^/].*/{
15781 /^X\/\(\/\/\)$/{
1521415782 s//\1/
1521515783 q
1521615784 }
15217 /^X\(\/\/\)$/{
15218 s//\1/
15219 q
15220 }
15221 /^X\(\/\).*/{
15785 /^X\/\(\/\).*/{
1522215786 s//\1/
1522315787 q
1522415788 }
1522515789 s/.*/./; q'`
15226 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15227 # echo "creating $dirpart/$file"
15228 echo '# dummy' > "$dirpart/$file"
15229 done
15790 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15791 && sed -e '/# am--include-marker/d' "$am_filepart" \
15792 | $MAKE -f - am--depfiles" >&5
15793 (cd "$am_dirpart" \
15794 && sed -e '/# am--include-marker/d' "$am_filepart" \
15795 | $MAKE -f - am--depfiles) >&5 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } || am_rc=$?
1523015799 done
15800 if test $am_rc -ne 0; then
15801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15803 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15804 for automatic dependency tracking. Try re-running configure with the
15805 '--disable-dependency-tracking' option to at least be able to build
15806 the package (albeit without support for automatic dependency tracking).
15807 See \`config.log' for more details" "$LINENO" 5; }
15808 fi
15809 { am_dirpart=; unset am_dirpart;}
15810 { am_filepart=; unset am_filepart;}
15811 { am_mf=; unset am_mf;}
15812 { am_rc=; unset am_rc;}
15813 rm -f conftest-deps.mk
1523115814 }
1523215815 ;;
1523315816 "libtool":C)
1523415817
15235 # See if we are running on zsh, and set the options which allow our
15818 # See if we are running on zsh, and set the options that allow our
1523615819 # commands through without removal of \ escapes.
15237 if test -n "${ZSH_VERSION+set}" ; then
15820 if test -n "${ZSH_VERSION+set}"; then
1523815821 setopt NO_GLOB_SUBST
1523915822 fi
1524015823
15241 cfgfile="${ofile}T"
15824 cfgfile=${ofile}T
1524215825 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1524315826 $RM "$cfgfile"
1524415827
1524515828 cat <<_LT_EOF >> "$cfgfile"
1524615829 #! $SHELL
15247
15248 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15249 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15830 # Generated automatically by $as_me ($PACKAGE) $VERSION
1525115831 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15832
15833 # Provide generalized library-building support services.
15834 # Written by Gordon Matzigkeit, 1996
15835
15836 # Copyright (C) 2014 Free Software Foundation, Inc.
15837 # This is free software; see the source for copying conditions. There is NO
15838 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15839
15840 # GNU Libtool is free software; you can redistribute it and/or modify
15841 # it under the terms of the GNU General Public License as published by
15842 # the Free Software Foundation; either version 2 of of the License, or
15843 # (at your option) any later version.
1525215844 #
15253 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15254 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15255 # Foundation, Inc.
15256 # Written by Gordon Matzigkeit, 1996
15845 # As a special exception to the GNU General Public License, if you
15846 # distribute this file as part of a program or library that is built
15847 # using GNU Libtool, you may include this file under the same
15848 # distribution terms that you use for the rest of that program.
1525715849 #
15258 # This file is part of GNU Libtool.
15259 #
15260 # GNU Libtool is free software; you can redistribute it and/or
15261 # modify it under the terms of the GNU General Public License as
15262 # published by the Free Software Foundation; either version 2 of
15263 # the License, or (at your option) any later version.
15264 #
15265 # As a special exception to the GNU General Public License,
15266 # if you distribute this file as part of a program or library that
15267 # is built using GNU Libtool, you may include this file under the
15268 # same distribution terms that you use for the rest of that program.
15269 #
15270 # GNU Libtool is distributed in the hope that it will be useful,
15271 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15850 # GNU Libtool is distributed in the hope that it will be useful, but
15851 # WITHOUT ANY WARRANTY; without even the implied warranty of
1527215852 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1527315853 # GNU General Public License for more details.
1527415854 #
1527515855 # You should have received a copy of the GNU General Public License
15276 # along with GNU Libtool; see the file COPYING. If not, a copy
15277 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15278 # obtained by writing to the Free Software Foundation, Inc.,
15279 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15856 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1528015857
1528115858
1528215859 # The names of the tagged configurations supported by this script.
15283 available_tags=""
15860 available_tags=''
15861
15862 # Configured defaults for sys_lib_dlsearch_path munging.
15863 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1528415864
1528515865 # ### BEGIN LIBTOOL CONFIG
1528615866
1529915879
1530015880 # Whether or not to optimize for fast installation.
1530115881 fast_install=$enable_fast_install
15882
15883 # Shared archive member basename,for filename based shared library versioning on AIX.
15884 shared_archive_member_spec=$shared_archive_member_spec
1530215885
1530315886 # Shell to use when invoking shell scripts.
1530415887 SHELL=$lt_SHELL
1541716000 # Transform the output of nm in a proper C declaration.
1541816001 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1541916002
16003 # Transform the output of nm into a list of symbols to manually relocate.
16004 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16005
1542016006 # Transform the output of nm in a C name address pair.
1542116007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1542216008
1542316009 # Transform the output of nm in a C name address pair when lib prefix is needed.
1542416010 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1542516011
16012 # The name lister interface.
16013 nm_interface=$lt_lt_cv_nm_interface
16014
1542616015 # Specify filename containing input files for \$NM.
1542716016 nm_file_list_spec=$lt_nm_file_list_spec
1542816017
15429 # The root where to search for dependent libraries,and in which our libraries should be installed.
16018 # The root where to search for dependent libraries,and where our libraries should be installed.
1543016019 lt_sysroot=$lt_sysroot
16020
16021 # Command to truncate a binary pipe.
16022 lt_truncate_bin=$lt_lt_cv_truncate_bin
1543116023
1543216024 # The name of the directory that contains temporary libtool files.
1543316025 objdir=$objdir
1551916111 # Compile-time system search path for libraries.
1552016112 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1552116113
15522 # Run-time system search path for libraries.
15523 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16114 # Detected run-time system search path for libraries.
16115 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16116
16117 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16118 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1552416119
1552516120 # Whether dlopen is supported.
1552616121 dlopen_support=$enable_dlopen
1561316208 # Whether we need a single "-rpath" flag with a separated argument.
1561416209 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1561516210
15616 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16211 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1561716212 # DIR into the resulting binary.
1561816213 hardcode_direct=$hardcode_direct
1561916214
15620 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16215 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1562116216 # DIR into the resulting binary and the resulting library dependency is
15622 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16217 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1562316218 # library is relocated.
1562416219 hardcode_direct_absolute=$hardcode_direct_absolute
1562516220
1566816263 hardcode_action=$hardcode_action
1566916264
1567016265 # ### END LIBTOOL CONFIG
16266
16267 _LT_EOF
16268
16269 cat <<'_LT_EOF' >> "$cfgfile"
16270
16271 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16272
16273 # func_munge_path_list VARIABLE PATH
16274 # -----------------------------------
16275 # VARIABLE is name of variable containing _space_ separated list of
16276 # directories to be munged by the contents of PATH, which is string
16277 # having a format:
16278 # "DIR[:DIR]:"
16279 # string "DIR[ DIR]" will be prepended to VARIABLE
16280 # ":DIR[:DIR]"
16281 # string "DIR[ DIR]" will be appended to VARIABLE
16282 # "DIRP[:DIRP]::[DIRA:]DIRA"
16283 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16284 # "DIRA[ DIRA]" will be appended to VARIABLE
16285 # "DIR[:DIR]"
16286 # VARIABLE will be replaced by "DIR[ DIR]"
16287 func_munge_path_list ()
16288 {
16289 case x$2 in
16290 x)
16291 ;;
16292 *:)
16293 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16294 ;;
16295 x:*)
16296 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16297 ;;
16298 *::*)
16299 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16300 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16301 ;;
16302 *)
16303 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16304 ;;
16305 esac
16306 }
16307
16308
16309 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16310 func_cc_basename ()
16311 {
16312 for cc_temp in $*""; do
16313 case $cc_temp in
16314 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16315 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16316 \-*) ;;
16317 *) break;;
16318 esac
16319 done
16320 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16321 }
16322
16323
16324 # ### END FUNCTIONS SHARED WITH CONFIGURE
1567116325
1567216326 _LT_EOF
1567316327
1567716331 # AIX sometimes has problems with the GCC collect2 program. For some
1567816332 # reason, if we set the COLLECT_NAMES environment variable, the problems
1567916333 # vanish in a puff of smoke.
15680 if test "X${COLLECT_NAMES+set}" != Xset; then
16334 if test set != "${COLLECT_NAMES+set}"; then
1568116335 COLLECT_NAMES=
1568216336 export COLLECT_NAMES
1568316337 fi
1568616340 esac
1568716341
1568816342
15689 ltmain="$ac_aux_dir/ltmain.sh"
16343 ltmain=$ac_aux_dir/ltmain.sh
1569016344
1569116345
1569216346 # We use sed instead of cat because bash on DJGPP gets confused if
1569516349 # is reportedly fixed, but why not run on old versions too?
1569616350 sed '$q' "$ltmain" >> "$cfgfile" \
1569716351 || (rm -f "$cfgfile"; exit 1)
15698
15699 if test x"$xsi_shell" = xyes; then
15700 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15701 func_dirname ()\
15702 {\
15703 \ case ${1} in\
15704 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15705 \ * ) func_dirname_result="${3}" ;;\
15706 \ esac\
15707 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15708 && mv -f "$cfgfile.tmp" "$cfgfile" \
15709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15710 test 0 -eq $? || _lt_function_replace_fail=:
15711
15712
15713 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15714 func_basename ()\
15715 {\
15716 \ func_basename_result="${1##*/}"\
15717 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15718 && mv -f "$cfgfile.tmp" "$cfgfile" \
15719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15720 test 0 -eq $? || _lt_function_replace_fail=:
15721
15722
15723 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15724 func_dirname_and_basename ()\
15725 {\
15726 \ case ${1} in\
15727 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15728 \ * ) func_dirname_result="${3}" ;;\
15729 \ esac\
15730 \ func_basename_result="${1##*/}"\
15731 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15732 && mv -f "$cfgfile.tmp" "$cfgfile" \
15733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15734 test 0 -eq $? || _lt_function_replace_fail=:
15735
15736
15737 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15738 func_stripname ()\
15739 {\
15740 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15741 \ # positional parameters, so assign one to ordinary parameter first.\
15742 \ func_stripname_result=${3}\
15743 \ func_stripname_result=${func_stripname_result#"${1}"}\
15744 \ func_stripname_result=${func_stripname_result%"${2}"}\
15745 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15746 && mv -f "$cfgfile.tmp" "$cfgfile" \
15747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15748 test 0 -eq $? || _lt_function_replace_fail=:
15749
15750
15751 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15752 func_split_long_opt ()\
15753 {\
15754 \ func_split_long_opt_name=${1%%=*}\
15755 \ func_split_long_opt_arg=${1#*=}\
15756 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15757 && mv -f "$cfgfile.tmp" "$cfgfile" \
15758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15759 test 0 -eq $? || _lt_function_replace_fail=:
15760
15761
15762 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15763 func_split_short_opt ()\
15764 {\
15765 \ func_split_short_opt_arg=${1#??}\
15766 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15767 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15768 && mv -f "$cfgfile.tmp" "$cfgfile" \
15769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15770 test 0 -eq $? || _lt_function_replace_fail=:
15771
15772
15773 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15774 func_lo2o ()\
15775 {\
15776 \ case ${1} in\
15777 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15778 \ *) func_lo2o_result=${1} ;;\
15779 \ esac\
15780 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15781 && mv -f "$cfgfile.tmp" "$cfgfile" \
15782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15783 test 0 -eq $? || _lt_function_replace_fail=:
15784
15785
15786 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15787 func_xform ()\
15788 {\
15789 func_xform_result=${1%.*}.lo\
15790 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15791 && mv -f "$cfgfile.tmp" "$cfgfile" \
15792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15793 test 0 -eq $? || _lt_function_replace_fail=:
15794
15795
15796 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15797 func_arith ()\
15798 {\
15799 func_arith_result=$(( $* ))\
15800 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15801 && mv -f "$cfgfile.tmp" "$cfgfile" \
15802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15803 test 0 -eq $? || _lt_function_replace_fail=:
15804
15805
15806 sed -e '/^func_len ()$/,/^} # func_len /c\
15807 func_len ()\
15808 {\
15809 func_len_result=${#1}\
15810 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15811 && mv -f "$cfgfile.tmp" "$cfgfile" \
15812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15813 test 0 -eq $? || _lt_function_replace_fail=:
15814
15815 fi
15816
15817 if test x"$lt_shell_append" = xyes; then
15818 sed -e '/^func_append ()$/,/^} # func_append /c\
15819 func_append ()\
15820 {\
15821 eval "${1}+=\\${2}"\
15822 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15823 && mv -f "$cfgfile.tmp" "$cfgfile" \
15824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15825 test 0 -eq $? || _lt_function_replace_fail=:
15826
15827
15828 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15829 func_append_quoted ()\
15830 {\
15831 \ func_quote_for_eval "${2}"\
15832 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15833 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15834 && mv -f "$cfgfile.tmp" "$cfgfile" \
15835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15836 test 0 -eq $? || _lt_function_replace_fail=:
15837
15838
15839 # Save a `func_append' function call where possible by direct use of '+='
15840 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15841 && mv -f "$cfgfile.tmp" "$cfgfile" \
15842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15843 test 0 -eq $? || _lt_function_replace_fail=:
15844 else
15845 # Save a `func_append' function call even when '+=' is not available
15846 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15847 && mv -f "$cfgfile.tmp" "$cfgfile" \
15848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15849 test 0 -eq $? || _lt_function_replace_fail=:
15850 fi
15851
15852 if test x"$_lt_function_replace_fail" = x":"; then
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15854 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15855 fi
15856
1585716352
1585816353 mv -f "$cfgfile" "$ofile" ||
1585916354 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
55 dnl Version information
66 m4_define([smartbookmark_version_major], [0])
77 m4_define([smartbookmark_version_minor], [5])
8 m4_define([smartbookmark_version_micro], [1])
8 m4_define([smartbookmark_version_micro], [2])
9 m4_define([smartbookmark_version_tag], [])
910 m4_define([smartbookmark_version],
1011 [smartbookmark_version_major.smartbookmark_version_minor.smartbookmark_version_micro])
1112
12 AC_COPYRIGHT([Copyright (c) 2006 by Emanuele Rocca <ema@debian.org>])
13 AC_INIT([xfce4-smartbookmark-plugin], [smartbookmark_version], [ema@debian.org])
13 m4_define([smartbookmark_debug_default], [ifelse(smartbookmark_version_tag(), [git], [yes], [minimum])])
14
15 AC_COPYRIGHT([Copyright (c) 2006-2020
16 The Xfce development team. All rights reserved.
17
18 Written by by Emanuele Rocca <ema@debian.org>])
19 AC_INIT([xfce4-smartbookmark-plugin], [smartbookmark_version], [https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin])
20 AC_PREREQ([2.69])
1421
1522 dnl Initialize automake
16 AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar no-dist-gzip])
23 AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar no-dist-gzip foreign])
1724 AM_CONFIG_HEADER([config.h])
1825 AM_MAINTAINER_MODE()
26 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
27 AC_CONFIG_MACRO_DIRS([m4])
1928
2029 dnl check for basic programs
2130 AC_PROG_CC()
2736 LT_INIT([disable-static])
2837
2938 dnl Check for i18n support
30 XDT_I18N([ar ast be bg ca cs da de el en_AU en_GB es eu fi fr gl he hr hu id is it ja ko ku lt lv ms nb nl oc pl pt pt_BR ru sk sq sr sv th tr ug uk ur ur_PK zh_CN zh_TW ])
39 XDT_I18N([])
3140
3241 dnl Check for required packages
3342 XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0])
3443 XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-2.0], [4.12.0])
3544
36 XDT_FEATURE_DEBUG()
45 XDT_FEATURE_DEBUG([smartbookmark_debug_default])
3746
38 AC_OUTPUT([Makefile
47 AC_CONFIG_FILES([Makefile
3948 po/Makefile.in
4049 src/Makefile])
50 AC_OUTPUT
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
1515 # GNU General Public License for more details.
1616
1717 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
2020 # As a special exception to the GNU General Public License, if you
2121 # distribute this file as part of a program that contains a
782782 # Local Variables:
783783 # mode: shell-script
784784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
785 # eval: (add-hook 'before-save-hook 'time-stamp)
786786 # time-stamp-start: "scriptversion="
787787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC"
788 # time-stamp-time-zone: "UTC0"
789789 # time-stamp-end: "; # UTC"
790790 # End:
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2011-11-20.07; # UTC
3 scriptversion=2018-03-11.20; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
4040 # This script is compatible with the BSD install script, but was written
4141 # from scratch.
4242
43 tab=' '
4344 nl='
4445 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
5050 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
51 doit_exec=${doit:-exec}
5652
5753 # Put in absolute file names if you don't have them in your path;
5854 # or use environment vars.
6763 rmprog=${RMPROG-rm}
6864 stripprog=${STRIPPROG-strip}
6965
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
8166 posix_mkdir=
8267
8368 # Desired mode of installed file.
9681 dst_arg=
9782
9883 copy_on_change=false
99 no_target_directory=
84 is_target_a_directory=possibly
10085
10186 usage="\
10287 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
136121 -d) dir_arg=true;;
137122
138123 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
124 shift;;
140125
141126 --help) echo "$usage"; exit $?;;
142127
143128 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
151135
152136 -o) chowncmd="$chownprog $2"
153 shift;;
137 shift;;
154138
155139 -s) stripcmd=$stripprog;;
156140
157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
162 shift;;
163
164 -T) no_target_directory=true;;
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
165151
166152 --version) echo "$0 $scriptversion"; exit $?;;
167153
168 --) shift
169 break;;
170
171 -*) echo "$0: invalid option: $1" >&2
172 exit 1;;
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
173159
174160 *) break;;
175161 esac
176162 shift
177163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
178174
179175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
180176 # When -d is used, all remaining arguments are directories to create.
207203 fi
208204
209205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
210215 do_exit='(exit $ret); exit $ret'
211216 trap "ret=129; $do_exit" 1
212217 trap "ret=130; $do_exit" 2
222227
223228 *[0-7])
224229 if test -z "$stripcmd"; then
225 u_plus_rw=
230 u_plus_rw=
226231 else
227 u_plus_rw='% 200'
232 u_plus_rw='% 200'
228233 fi
229234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
230235 *)
231236 if test -z "$stripcmd"; then
232 u_plus_rw=
237 u_plus_rw=
233238 else
234 u_plus_rw=,u+rw
239 u_plus_rw=,u+rw
235240 fi
236241 cp_umask=$mode$u_plus_rw;;
237242 esac
265270 fi
266271 dst=$dst_arg
267272
268 # If destination is a directory, append the input filename; won't work
269 # if double slashes aren't ignored.
273 # If destination is a directory, append the input filename.
270274 if test -d "$dst"; then
271 if test -n "$no_target_directory"; then
272 echo "$0: $dst_arg: Is a directory" >&2
273 exit 1
275 if test "$is_target_a_directory" = never; then
276 echo "$0: $dst_arg: Is a directory" >&2
277 exit 1
274278 fi
275279 dstdir=$dst
276 dst=$dstdir/`basename "$src"`
280 dstbase=`basename "$src"`
281 case $dst in
282 */) dst=$dst$dstbase;;
283 *) dst=$dst/$dstbase;;
284 esac
277285 dstdir_status=0
278286 else
279 # Prefer dirname, but fall back on a substitute if dirname fails.
280 dstdir=`
281 (dirname "$dst") 2>/dev/null ||
282 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
283 X"$dst" : 'X\(//\)[^/]' \| \
284 X"$dst" : 'X\(//\)$' \| \
285 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
286 echo X"$dst" |
287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
288 s//\1/
289 q
290 }
291 /^X\(\/\/\)[^/].*/{
292 s//\1/
293 q
294 }
295 /^X\(\/\/\)$/{
296 s//\1/
297 q
298 }
299 /^X\(\/\).*/{
300 s//\1/
301 q
302 }
303 s/.*/./; q'
304 `
305
287 dstdir=`dirname "$dst"`
306288 test -d "$dstdir"
307289 dstdir_status=$?
308290 fi
309291 fi
310292
293 case $dstdir in
294 */) dstdirslash=$dstdir;;
295 *) dstdirslash=$dstdir/;;
296 esac
297
311298 obsolete_mkdir_used=false
312299
313300 if test $dstdir_status != 0; then
314301 case $posix_mkdir in
315302 '')
316 # Create intermediate dirs using mode 755 as modified by the umask.
317 # This is like FreeBSD 'install' as of 1997-10-28.
318 umask=`umask`
319 case $stripcmd.$umask in
320 # Optimize common cases.
321 *[2367][2367]) mkdir_umask=$umask;;
322 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
323
324 *[0-7])
325 mkdir_umask=`expr $umask + 22 \
326 - $umask % 100 % 40 + $umask % 20 \
327 - $umask % 10 % 4 + $umask % 2
328 `;;
329 *) mkdir_umask=$umask,go-w;;
330 esac
331
332 # With -d, create the new directory with the user-specified mode.
333 # Otherwise, rely on $mkdir_umask.
334 if test -n "$dir_arg"; then
335 mkdir_mode=-m$mode
336 else
337 mkdir_mode=
338 fi
339
340 posix_mkdir=false
341 case $umask in
342 *[123567][0-7][0-7])
343 # POSIX mkdir -p sets u+wx bits regardless of umask, which
344 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
345 ;;
346 *)
347 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
348 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
349
350 if (umask $mkdir_umask &&
351 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
352 then
353 if test -z "$dir_arg" || {
354 # Check for POSIX incompatibilities with -m.
355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writable bit of parent directory when it shouldn't.
357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359 case $ls_ld_tmpdir in
360 d????-?r-*) different_mode=700;;
361 d????-?--*) different_mode=755;;
362 *) false;;
363 esac &&
364 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
365 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
366 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
367 }
368 }
369 then posix_mkdir=:
370 fi
371 rmdir "$tmpdir/d" "$tmpdir"
372 else
373 # Remove any dirs left behind by ancient mkdir implementations.
374 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
375 fi
376 trap '' 0;;
377 esac;;
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319 # With -d, create the new directory with the user-specified mode.
320 # Otherwise, rely on $mkdir_umask.
321 if test -n "$dir_arg"; then
322 mkdir_mode=-m$mode
323 else
324 mkdir_mode=
325 fi
326
327 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
344 if (umask $mkdir_umask &&
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
347 then
348 if test -z "$dir_arg" || {
349 # Check for POSIX incompatibilities with -m.
350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
351 # other-writable bit of parent directory when it shouldn't.
352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
355 case $ls_ld_tmpdir in
356 d????-?r-*) different_mode=700;;
357 d????-?--*) different_mode=755;;
358 *) false;;
359 esac &&
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
363 }
364 }
365 then posix_mkdir=:
366 fi
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
368 else
369 # Remove any dirs left behind by ancient mkdir implementations.
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
371 fi
372 trap '' 0;;
373 esac;;
378374 esac
379375
380376 if
381377 $posix_mkdir && (
382 umask $mkdir_umask &&
383 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
378 umask $mkdir_umask &&
379 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
384380 )
385381 then :
386382 else
390386 # directory the slow way, step by step, checking for races as we go.
391387
392388 case $dstdir in
393 /*) prefix='/';;
394 [-=\(\)!]*) prefix='./';;
395 *) prefix='';;
389 /*) prefix='/';;
390 [-=\(\)!]*) prefix='./';;
391 *) prefix='';;
396392 esac
397
398 eval "$initialize_posix_glob"
399393
400394 oIFS=$IFS
401395 IFS=/
402 $posix_glob set -f
396 set -f
403397 set fnord $dstdir
404398 shift
405 $posix_glob set +f
399 set +f
406400 IFS=$oIFS
407401
408402 prefixes=
409403
410404 for d
411405 do
412 test X"$d" = X && continue
413
414 prefix=$prefix$d
415 if test -d "$prefix"; then
416 prefixes=
417 else
418 if $posix_mkdir; then
419 (umask=$mkdir_umask &&
420 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
421 # Don't fail if two instances are running concurrently.
422 test -d "$prefix" || exit 1
423 else
424 case $prefix in
425 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
426 *) qprefix=$prefix;;
427 esac
428 prefixes="$prefixes '$qprefix'"
429 fi
430 fi
431 prefix=$prefix/
406 test X"$d" = X && continue
407
408 prefix=$prefix$d
409 if test -d "$prefix"; then
410 prefixes=
411 else
412 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
414 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415 # Don't fail if two instances are running concurrently.
416 test -d "$prefix" || exit 1
417 else
418 case $prefix in
419 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
420 *) qprefix=$prefix;;
421 esac
422 prefixes="$prefixes '$qprefix'"
423 fi
424 fi
425 prefix=$prefix/
432426 done
433427
434428 if test -n "$prefixes"; then
435 # Don't fail if two instances are running concurrently.
436 (umask $mkdir_umask &&
437 eval "\$doit_exec \$mkdirprog $prefixes") ||
438 test -d "$dstdir" || exit 1
439 obsolete_mkdir_used=true
429 # Don't fail if two instances are running concurrently.
430 (umask $mkdir_umask &&
431 eval "\$doit_exec \$mkdirprog $prefixes") ||
432 test -d "$dstdir" || exit 1
433 obsolete_mkdir_used=true
440434 fi
441435 fi
442436 fi
449443 else
450444
451445 # Make a couple of temp file names in the proper directory.
452 dsttmp=$dstdir/_inst.$$_
453 rmtmp=$dstdir/_rm.$$_
446 dsttmp=${dstdirslash}_inst.$$_
447 rmtmp=${dstdirslash}_rm.$$_
454448
455449 # Trap to clean up those temp files at exit.
456450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
471465
472466 # If -C, don't bother to copy if it wouldn't change the file.
473467 if $copy_on_change &&
474 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
475 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
476
477 eval "$initialize_posix_glob" &&
478 $posix_glob set -f &&
468 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
469 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
470 set -f &&
479471 set X $old && old=:$2:$4:$5:$6 &&
480472 set X $new && new=:$2:$4:$5:$6 &&
481 $posix_glob set +f &&
482
473 set +f &&
483474 test "$old" = "$new" &&
484475 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
485476 then
492483 # to itself, or perhaps because mv is so ancient that it does not
493484 # support -f.
494485 {
495 # Now remove or move aside any old file at destination location.
496 # We try this two ways since rm can't unlink itself on some
497 # systems and the destination file might be busy for other
498 # reasons. In this case, the final cleanup might fail but the new
499 # file should still install successfully.
500 {
501 test ! -f "$dst" ||
502 $doit $rmcmd -f "$dst" 2>/dev/null ||
503 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
504 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
505 } ||
506 { echo "$0: cannot unlink or rename $dst" >&2
507 (exit 1); exit 1
508 }
509 } &&
510
511 # Now rename the file to the real destination.
512 $doit $mvcmd "$dsttmp" "$dst"
486 # Now remove or move aside any old file at destination location.
487 # We try this two ways since rm can't unlink itself on some
488 # systems and the destination file might be busy for other
489 # reasons. In this case, the final cleanup might fail but the new
490 # file should still install successfully.
491 {
492 test ! -f "$dst" ||
493 $doit $rmcmd -f "$dst" 2>/dev/null ||
494 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
495 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
496 } ||
497 { echo "$0: cannot unlink or rename $dst" >&2
498 (exit 1); exit 1
499 }
500 } &&
501
502 # Now rename the file to the real destination.
503 $doit $mvcmd "$dsttmp" "$dst"
513504 }
514505 fi || exit 1
515506
518509 done
519510
520511 # Local variables:
521 # eval: (add-hook 'write-file-hooks 'time-stamp)
512 # eval: (add-hook 'before-save-hook 'time-stamp)
522513 # time-stamp-start: "scriptversion="
523514 # time-stamp-format: "%:y-%02m-%02d.%02H"
524 # time-stamp-time-zone: "UTC"
515 # time-stamp-time-zone: "UTC0"
525516 # time-stamp-end: "; # UTC"
526517 # End:
+3808
-2187
ltmain.sh less more
0
1 # libtool (GNU libtool) 2.4.2
0 #! /bin/sh
1 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
5 # Provide generalized library-building support services.
26 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
37
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
69 # This is free software; see the source for copying conditions. There is NO
710 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
811
2225 # General Public License for more details.
2326 #
2427 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
49 #
50 # MODE must be one of the following:
51 #
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
59 #
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
63 #
64 # When reporting a bug, please describe a test case to reproduce it and
65 # include the following information:
66 #
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2
73 # automake: $automake_version
74 # autoconf: $autoconf_version
75 #
76 # Report bugs to <bug-libtool@gnu.org>.
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
28 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29
7930
8031 PROGRAM=libtool
8132 PACKAGE=libtool
82 VERSION=2.4.2
83 TIMESTAMP=""
84 package_revision=1.3337
85
86 # Be Bourne compatible
87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33 VERSION="2.4.6 Debian-2.4.6-14"
34 package_revision=2.4.6
35
36
37 ## ------ ##
38 ## Usage. ##
39 ## ------ ##
40
41 # Run './libtool --help' for help with using this script from the
42 # command line.
43
44
45 ## ------------------------------- ##
46 ## User overridable command paths. ##
47 ## ------------------------------- ##
48
49 # After configure completes, it has a better idea of some of the
50 # shell tools we need than the defaults used by the functions shared
51 # with bootstrap, so set those here where they can still be over-
52 # ridden by the user, but otherwise take precedence.
53
54 : ${AUTOCONF="autoconf"}
55 : ${AUTOMAKE="automake"}
56
57
58 ## -------------------------- ##
59 ## Source external libraries. ##
60 ## -------------------------- ##
61
62 # Much of our low-level functionality needs to be sourced from external
63 # libraries, which are installed to $pkgauxdir.
64
65 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
67
68 # General shell script boiler plate, and helper functions.
69 # Written by Gary V. Vaughan, 2004
70
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
94
95
96 ## ------ ##
97 ## Usage. ##
98 ## ------ ##
99
100 # Evaluate this file near the top of your script to gain access to
101 # the functions and variables defined here:
102 #
103 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
104 #
105 # If you need to override any of the default environment variable
106 # settings, do that before evaluating this file.
107
108
109 ## -------------------- ##
110 ## Shell normalisation. ##
111 ## -------------------- ##
112
113 # Some shells need a little help to be as Bourne compatible as possible.
114 # Before doing anything else, make sure all that help has been provided!
115
116 DUALCASE=1; export DUALCASE # for MKS sh
117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
88118 emulate sh
89119 NULLCMD=:
90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
91121 # is contrary to our usage. Disable this feature.
92122 alias -g '${1+"$@"}'='"$@"'
93123 setopt NO_GLOB_SUBST
94124 else
95 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
125 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
96126 fi
97 BIN_SH=xpg4; export BIN_SH # for Tru64
98 DUALCASE=1; export DUALCASE # for MKS sh
99
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
108 # NLS nuisances: We save the old values to restore during execute mode.
109 lt_user_locale=
110 lt_safe_locale=
111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
127
128 # NLS nuisances: We save the old values in case they are required later.
129 _G_user_locale=
130 _G_safe_locale=
131 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
112132 do
113 eval "if test \"\${$lt_var+set}\" = set; then
114 save_$lt_var=\$$lt_var
115 $lt_var=C
116 export $lt_var
117 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
133 eval "if test set = \"\${$_G_var+set}\"; then
134 save_$_G_var=\$$_G_var
135 $_G_var=C
136 export $_G_var
137 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
138 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
119139 fi"
120140 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
124
125 $lt_unset CDPATH
126
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Make sure IFS has a sensible default
146 sp=' '
147 nl='
148 '
149 IFS="$sp $nl"
150
151 # There are apparently some retarded systems that use ';' as a PATH separator!
152 if test "${PATH_SEPARATOR+set}" != set; then
153 PATH_SEPARATOR=:
154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
156 PATH_SEPARATOR=';'
157 }
158 fi
159
160
161
162 ## ------------------------- ##
163 ## Locate command utilities. ##
164 ## ------------------------- ##
165
166
167 # func_executable_p FILE
168 # ----------------------
169 # Check that FILE is an executable regular file.
170 func_executable_p ()
171 {
172 test -f "$1" && test -x "$1"
173 }
174
175
176 # func_path_progs PROGS_LIST CHECK_FUNC [PATH]
177 # --------------------------------------------
178 # Search for either a program that responds to --version with output
179 # containing "GNU", or else returned by CHECK_FUNC otherwise, by
180 # trying all the directories in PATH with each of the elements of
181 # PROGS_LIST.
182 #
183 # CHECK_FUNC should accept the path to a candidate program, and
184 # set $func_check_prog_result if it truncates its output less than
185 # $_G_path_prog_max characters.
186 func_path_progs ()
187 {
188 _G_progs_list=$1
189 _G_check_func=$2
190 _G_PATH=${3-"$PATH"}
191
192 _G_path_prog_max=0
193 _G_path_prog_found=false
194 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
195 for _G_dir in $_G_PATH; do
196 IFS=$_G_save_IFS
197 test -z "$_G_dir" && _G_dir=.
198 for _G_prog_name in $_G_progs_list; do
199 for _exeext in '' .EXE; do
200 _G_path_prog=$_G_dir/$_G_prog_name$_exeext
201 func_executable_p "$_G_path_prog" || continue
202 case `"$_G_path_prog" --version 2>&1` in
203 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
204 *) $_G_check_func $_G_path_prog
205 func_path_progs_result=$func_check_prog_result
206 ;;
207 esac
208 $_G_path_prog_found && break 3
209 done
210 done
211 done
212 IFS=$_G_save_IFS
213 test -z "$func_path_progs_result" && {
214 echo "no acceptable sed could be found in \$PATH" >&2
215 exit 1
216 }
217 }
218
219
220 # We want to be able to use the functions in this file before configure
221 # has figured out where the best binaries are kept, which means we have
222 # to search for them ourselves - except when the results are already set
223 # where we skip the searches.
224
225 # Unless the user overrides by setting SED, search the path for either GNU
226 # sed, or the sed that truncates its output the least.
227 test -z "$SED" && {
228 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
229 for _G_i in 1 2 3 4 5 6 7; do
230 _G_sed_script=$_G_sed_script$nl$_G_sed_script
231 done
232 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
233 _G_sed_script=
234
235 func_check_prog_sed ()
236 {
237 _G_path_prog=$1
238
239 _G_count=0
240 printf 0123456789 >conftest.in
241 while :
242 do
243 cat conftest.in conftest.in >conftest.tmp
244 mv conftest.tmp conftest.in
245 cp conftest.in conftest.nl
246 echo '' >> conftest.nl
247 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
248 diff conftest.out conftest.nl >/dev/null 2>&1 || break
249 _G_count=`expr $_G_count + 1`
250 if test "$_G_count" -gt "$_G_path_prog_max"; then
251 # Best one so far, save it but keep looking for a better one
252 func_check_prog_result=$_G_path_prog
253 _G_path_prog_max=$_G_count
254 fi
255 # 10*(2^10) chars as input seems more than enough
256 test 10 -lt "$_G_count" && break
257 done
258 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259 }
260
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
262 rm -f conftest.sed
263 SED=$func_path_progs_result
264 }
265
266
267 # Unless the user overrides by setting GREP, search the path for either GNU
268 # grep, or the grep that truncates its output the least.
269 test -z "$GREP" && {
270 func_check_prog_grep ()
271 {
272 _G_path_prog=$1
273
274 _G_count=0
275 _G_path_prog_max=0
276 printf 0123456789 >conftest.in
277 while :
278 do
279 cat conftest.in conftest.in >conftest.tmp
280 mv conftest.tmp conftest.in
281 cp conftest.in conftest.nl
282 echo 'GREP' >> conftest.nl
283 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
284 diff conftest.out conftest.nl >/dev/null 2>&1 || break
285 _G_count=`expr $_G_count + 1`
286 if test "$_G_count" -gt "$_G_path_prog_max"; then
287 # Best one so far, save it but keep looking for a better one
288 func_check_prog_result=$_G_path_prog
289 _G_path_prog_max=$_G_count
290 fi
291 # 10*(2^10) chars as input seems more than enough
292 test 10 -lt "$_G_count" && break
293 done
294 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295 }
296
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
298 GREP=$func_path_progs_result
299 }
300
301
302 ## ------------------------------- ##
303 ## User overridable command paths. ##
304 ## ------------------------------- ##
305
306 # All uppercase variable names are used for environment variables. These
307 # variables can be overridden by the user before calling a script that
308 # uses them if a suitable command of that name is not already available
309 # in the command search PATH.
310
311 : ${CP="cp -f"}
312 : ${ECHO="printf %s\n"}
313 : ${EGREP="$GREP -E"}
314 : ${FGREP="$GREP -F"}
315 : ${LN_S="ln -s"}
316 : ${MAKE="make"}
317 : ${MKDIR="mkdir"}
318 : ${MV="mv -f"}
319 : ${RM="rm -f"}
320 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
321
322
323 ## -------------------- ##
324 ## Useful sed snippets. ##
325 ## -------------------- ##
326
327 sed_dirname='s|/[^/]*$||'
328 sed_basename='s|^.*/||'
329
330 # Sed substitution that helps us do robust quoting. It backslashifies
331 # metacharacters that are still active within double-quoted strings.
332 sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
333
334 # Same as above, but do not quote variable references.
335 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
336
337 # Sed substitution that turns a string into a regex matching for the
338 # string literally.
339 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
340
341 # Sed substitution that converts a w32 file name or path
342 # that contains forward slashes, into one that contains
343 # (escaped) backslashes. A very naive implementation.
344 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
345
346 # Re-'\' parameter expansions in output of sed_double_quote_subst that
347 # were '\'-ed in input to the same. If an odd number of '\' preceded a
348 # '$' in input to sed_double_quote_subst, that '$' was protected from
349 # expansion. Since each input '\' is now two '\'s, look for any number
350 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'.
351 _G_bs='\\'
352 _G_bs2='\\\\'
353 _G_bs4='\\\\\\\\'
354 _G_dollar='\$'
355 sed_double_backslash="\
356 s/$_G_bs4/&\\
357 /g
358 s/^$_G_bs2$_G_dollar/$_G_bs&/
359 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360 s/\n//g"
361
362
363 ## ----------------- ##
364 ## Global variables. ##
365 ## ----------------- ##
366
367 # Except for the global variables explicitly listed below, the following
368 # functions in the '^func_' namespace, and the '^require_' namespace
369 # variables initialised in the 'Resource management' section, sourcing
370 # this file will not pollute your global namespace with anything
371 # else. There's no portable way to scope variables in Bourne shell
372 # though, so actually running these functions will sometimes place
373 # results into a variable named after the function, and often use
374 # temporary variables in the '^_G_' namespace. If you are careful to
375 # avoid using those namespaces casually in your sourcing script, things
376 # should continue to work as you expect. And, of course, you can freely
377 # overwrite any of the functions or variables defined here before
378 # calling anything to customize them.
379
380 EXIT_SUCCESS=0
381 EXIT_FAILURE=1
382 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
383 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
384
385 # Allow overriding, eg assuming that you follow the convention of
386 # putting '$debug_cmd' at the start of all your functions, you can get
387 # bash to show function call trace with:
388 #
389 # debug_cmd='echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390 debug_cmd=${debug_cmd-":"}
391 exit_cmd=:
392
393 # By convention, finish your script with:
394 #
395 # exit $exit_status
396 #
397 # so that you can set exit_status to non-zero if you want to indicate
398 # something went wrong during execution without actually bailing out at
399 # the point of failure.
400 exit_status=$EXIT_SUCCESS
127401
128402 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129403 # is ksh but when the shell is invoked as "sh" and the current value of
130404 # the _XPG environment variable is not equal to 1 (one), the special
131405 # positional parameter $0, within a function call, is the name of the
132406 # function.
133 progpath="$0"
134
135
136
137 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139 : ${MAKE="make"}
140 : ${MKDIR="mkdir"}
141 : ${MV="mv -f"}
142 : ${RM="rm -f"}
143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
144 : ${Xsed="$SED -e 1s/^X//"}
145
146 # Global variables:
147 EXIT_SUCCESS=0
148 EXIT_FAILURE=1
149 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
150 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
151
152 exit_status=$EXIT_SUCCESS
153
154 # Make sure IFS has a sensible default
155 lt_nl='
156 '
157 IFS=" $lt_nl"
158
159 dirname="s,/[^/]*$,,"
160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
407 progpath=$0
408
409 # The name of this program.
410 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
411
412 # Make sure we have an absolute progpath for reexecution:
413 case $progpath in
414 [\\/]*|[A-Za-z]:\\*) ;;
415 *[\\/]*)
416 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
417 progdir=`cd "$progdir" && pwd`
418 progpath=$progdir/$progname
419 ;;
420 *)
421 _G_IFS=$IFS
422 IFS=${PATH_SEPARATOR-:}
423 for progdir in $PATH; do
424 IFS=$_G_IFS
425 test -x "$progdir/$progname" && break
426 done
427 IFS=$_G_IFS
428 test -n "$progdir" || progdir=`pwd`
429 progpath=$progdir/$progname
430 ;;
431 esac
432
433
434 ## ----------------- ##
435 ## Standard options. ##
436 ## ----------------- ##
437
438 # The following options affect the operation of the functions defined
439 # below, and should be set appropriately depending on run-time para-
440 # meters passed on the command line.
441
442 opt_dry_run=false
443 opt_quiet=false
444 opt_verbose=false
445
446 # Categories 'all' and 'none' are always available. Append any others
447 # you will pass as the first argument to func_warning from your own
448 # code.
449 warning_categories=
450
451 # By default, display warnings according to 'opt_warning_types'. Set
452 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to
453 # treat the next displayed warning as a fatal error.
454 warning_func=func_warn_and_continue
455
456 # Set to 'all' to display all warnings, 'none' to suppress all
457 # warnings, or a space delimited list of some subset of
458 # 'warning_categories' to display only the listed warnings.
459 opt_warning_types=all
460
461
462 ## -------------------- ##
463 ## Resource management. ##
464 ## -------------------- ##
465
466 # This section contains definitions for functions that each ensure a
467 # particular resource (a file, or a non-empty configuration variable for
468 # example) is available, and if appropriate to extract default values
469 # from pertinent package files. Call them using their associated
470 # 'require_*' variable to ensure that they are executed, at most, once.
471 #
472 # It's entirely deliberate that calling these functions can set
473 # variables that don't obey the namespace limitations obeyed by the rest
474 # of this file, in order that that they be as useful as possible to
475 # callers.
476
477
478 # require_term_colors
479 # -------------------
480 # Allow display of bold text on terminals that support it.
481 require_term_colors=func_require_term_colors
482 func_require_term_colors ()
483 {
484 $debug_cmd
485
486 test -t 1 && {
487 # COLORTERM and USE_ANSI_COLORS environment variables take
488 # precedence, because most terminfo databases neglect to describe
489 # whether color sequences are supported.
490 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
491
492 if test 1 = "$USE_ANSI_COLORS"; then
493 # Standard ANSI escape sequences
494 tc_reset=''
495 tc_bold=''; tc_standout=''
496 tc_red=''; tc_green=''
497 tc_blue=''; tc_cyan=''
498 else
499 # Otherwise trust the terminfo database after all.
500 test -n "`tput sgr0 2>/dev/null`" && {
501 tc_reset=`tput sgr0`
502 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
503 tc_standout=$tc_bold
504 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
505 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
506 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
507 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
508 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
509 }
510 fi
511 }
512
513 require_term_colors=:
514 }
515
516
517 ## ----------------- ##
518 ## Function library. ##
519 ## ----------------- ##
520
521 # This section contains a variety of useful functions to call in your
522 # scripts. Take note of the portable wrappers for features provided by
523 # some modern shells, which will fall back to slower equivalents on
524 # less featureful shells.
525
526
527 # func_append VAR VALUE
528 # ---------------------
529 # Append VALUE onto the existing contents of VAR.
530
531 # We should try to minimise forks, especially on Windows where they are
532 # unreasonably slow, so skip the feature probes when bash or zsh are
533 # being used:
534 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
535 : ${_G_HAVE_ARITH_OP="yes"}
536 : ${_G_HAVE_XSI_OPS="yes"}
537 # The += operator was introduced in bash 3.1
538 case $BASH_VERSION in
539 [12].* | 3.0 | 3.0*) ;;
540 *)
541 : ${_G_HAVE_PLUSEQ_OP="yes"}
542 ;;
543 esac
544 fi
545
546 # _G_HAVE_PLUSEQ_OP
547 # Can be empty, in which case the shell is probed, "yes" if += is
548 # useable or anything else if it does not work.
549 test -z "$_G_HAVE_PLUSEQ_OP" \
550 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
551 && _G_HAVE_PLUSEQ_OP=yes
552
553 if test yes = "$_G_HAVE_PLUSEQ_OP"
554 then
555 # This is an XSI compatible shell, allowing a faster implementation...
556 eval 'func_append ()
557 {
558 $debug_cmd
559
560 eval "$1+=\$2"
561 }'
562 else
563 # ...otherwise fall back to using expr, which is often a shell builtin.
564 func_append ()
565 {
566 $debug_cmd
567
568 eval "$1=\$$1\$2"
569 }
570 fi
571
572
573 # func_append_quoted VAR VALUE
574 # ----------------------------
575 # Quote VALUE and append to the end of shell variable VAR, separated
576 # by a space.
577 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
578 eval 'func_append_quoted ()
579 {
580 $debug_cmd
581
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
584 }'
585 else
586 func_append_quoted ()
587 {
588 $debug_cmd
589
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
592 }
593 fi
594
595
596 # func_append_uniq VAR VALUE
597 # --------------------------
598 # Append unique VALUE onto the existing contents of VAR, assuming
599 # entries are delimited by the first character of VALUE. For example:
600 #
601 # func_append_uniq options " --another-option option-argument"
602 #
603 # will only append to $options if " --another-option option-argument "
604 # is not already present somewhere in $options already (note spaces at
605 # each end implied by leading space in second argument).
606 func_append_uniq ()
607 {
608 $debug_cmd
609
610 eval _G_current_value='`$ECHO $'$1'`'
611 _G_delim=`expr "$2" : '\(.\)'`
612
613 case $_G_delim$_G_current_value$_G_delim in
614 *"$2$_G_delim"*) ;;
615 *) func_append "$@" ;;
616 esac
617 }
618
619
620 # func_arith TERM...
621 # ------------------
622 # Set func_arith_result to the result of evaluating TERMs.
623 test -z "$_G_HAVE_ARITH_OP" \
624 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
625 && _G_HAVE_ARITH_OP=yes
626
627 if test yes = "$_G_HAVE_ARITH_OP"; then
628 eval 'func_arith ()
629 {
630 $debug_cmd
631
632 func_arith_result=$(( $* ))
633 }'
634 else
635 func_arith ()
636 {
637 $debug_cmd
638
639 func_arith_result=`expr "$@"`
640 }
641 fi
642
643
644 # func_basename FILE
645 # ------------------
646 # Set func_basename_result to FILE with everything up to and including
647 # the last / stripped.
648 if test yes = "$_G_HAVE_XSI_OPS"; then
649 # If this shell supports suffix pattern removal, then use it to avoid
650 # forking. Hide the definitions single quotes in case the shell chokes
651 # on unsupported syntax...
652 _b='func_basename_result=${1##*/}'
653 _d='case $1 in
654 */*) func_dirname_result=${1%/*}$2 ;;
655 * ) func_dirname_result=$3 ;;
656 esac'
657
658 else
659 # ...otherwise fall back to using sed.
660 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
661 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
662 if test "X$func_dirname_result" = "X$1"; then
663 func_dirname_result=$3
664 else
665 func_append func_dirname_result "$2"
666 fi'
667 fi
668
669 eval 'func_basename ()
670 {
671 $debug_cmd
672
673 '"$_b"'
674 }'
675
676
677 # func_dirname FILE APPEND NONDIR_REPLACEMENT
678 # -------------------------------------------
163679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164680 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
182
183 # func_dirname_and_basename file append nondir_replacement
184 # perform func_basename and func_dirname in a single function
681 eval 'func_dirname ()
682 {
683 $debug_cmd
684
685 '"$_d"'
686 }'
687
688
689 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
690 # --------------------------------------------------------
691 # Perform func_basename and func_dirname in a single function
185692 # call:
186693 # dirname: Compute the dirname of FILE. If nonempty,
187694 # add APPEND to the result, otherwise set result
189696 # value returned in "$func_dirname_result"
190697 # basename: Compute filename of FILE.
191698 # value retuned in "$func_basename_result"
192 # Implementation must be kept synchronized with func_dirname
193 # and func_basename. For efficiency, we do not delegate to
194 # those functions but instead duplicate the functionality here.
195 func_dirname_and_basename ()
196 {
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
699 # For efficiency, we do not delegate to the functions above but instead
700 # duplicate the functionality here.
701 eval 'func_dirname_and_basename ()
702 {
703 $debug_cmd
704
705 '"$_b"'
706 '"$_d"'
707 }'
708
709
710 # func_echo ARG...
711 # ----------------
712 # Echo program name prefixed message.
713 func_echo ()
714 {
715 $debug_cmd
716
717 _G_message=$*
718
719 func_echo_IFS=$IFS
720 IFS=$nl
721 for _G_line in $_G_message; do
722 IFS=$func_echo_IFS
723 $ECHO "$progname: $_G_line"
724 done
725 IFS=$func_echo_IFS
726 }
727
728
729 # func_echo_all ARG...
730 # --------------------
731 # Invoke $ECHO with all args, space-separated.
732 func_echo_all ()
733 {
734 $ECHO "$*"
735 }
736
737
738 # func_echo_infix_1 INFIX ARG...
739 # ------------------------------
740 # Echo program name, followed by INFIX on the first line, with any
741 # additional lines not showing INFIX.
742 func_echo_infix_1 ()
743 {
744 $debug_cmd
745
746 $require_term_colors
747
748 _G_infix=$1; shift
749 _G_indent=$_G_infix
750 _G_prefix="$progname: $_G_infix: "
751 _G_message=$*
752
753 # Strip color escape sequences before counting printable length
754 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
755 do
756 test -n "$_G_tc" && {
757 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
758 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
759 }
760 done
761 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes
762
763 func_echo_infix_1_IFS=$IFS
764 IFS=$nl
765 for _G_line in $_G_message; do
766 IFS=$func_echo_infix_1_IFS
767 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
768 _G_prefix=$_G_indent
769 done
770 IFS=$func_echo_infix_1_IFS
771 }
772
773
774 # func_error ARG...
775 # -----------------
776 # Echo program name prefixed message to standard error.
777 func_error ()
778 {
779 $debug_cmd
780
781 $require_term_colors
782
783 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2
784 }
785
786
787 # func_fatal_error ARG...
788 # -----------------------
789 # Echo program name prefixed message to standard error, and exit.
790 func_fatal_error ()
791 {
792 $debug_cmd
793
794 func_error "$*"
795 exit $EXIT_FAILURE
796 }
797
798
799 # func_grep EXPRESSION FILENAME
800 # -----------------------------
801 # Check whether EXPRESSION matches any line of FILENAME, without output.
802 func_grep ()
803 {
804 $debug_cmd
805
806 $GREP "$1" "$2" >/dev/null 2>&1
807 }
808
809
810 # func_len STRING
811 # ---------------
812 # Set func_len_result to the length of STRING. STRING may not
813 # start with a hyphen.
814 test -z "$_G_HAVE_XSI_OPS" \
815 && (eval 'x=a/b/c;
816 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
817 && _G_HAVE_XSI_OPS=yes
818
819 if test yes = "$_G_HAVE_XSI_OPS"; then
820 eval 'func_len ()
821 {
822 $debug_cmd
823
824 func_len_result=${#1}
825 }'
826 else
827 func_len ()
828 {
829 $debug_cmd
830
831 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
832 }
833 fi
834
835
836 # func_mkdir_p DIRECTORY-PATH
837 # ---------------------------
838 # Make sure the entire path to DIRECTORY-PATH is available.
839 func_mkdir_p ()
840 {
841 $debug_cmd
842
843 _G_directory_path=$1
844 _G_dir_list=
845
846 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
847
848 # Protect directory names starting with '-'
849 case $_G_directory_path in
850 -*) _G_directory_path=./$_G_directory_path ;;
851 esac
852
853 # While some portion of DIR does not yet exist...
854 while test ! -d "$_G_directory_path"; do
855 # ...make a list in topmost first order. Use a colon delimited
856 # list incase some portion of path contains whitespace.
857 _G_dir_list=$_G_directory_path:$_G_dir_list
858
859 # If the last portion added has no slash in it, the list is done
860 case $_G_directory_path in */*) ;; *) break ;; esac
861
862 # ...otherwise throw away the child directory and loop
863 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
864 done
865 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
866
867 func_mkdir_p_IFS=$IFS; IFS=:
868 for _G_dir in $_G_dir_list; do
869 IFS=$func_mkdir_p_IFS
870 # mkdir can fail with a 'File exist' error if two processes
871 # try to create one of the directories concurrently. Don't
872 # stop in that case!
873 $MKDIR "$_G_dir" 2>/dev/null || :
874 done
875 IFS=$func_mkdir_p_IFS
876
877 # Bail out if we (or some other process) failed to create a directory.
878 test -d "$_G_directory_path" || \
879 func_fatal_error "Failed to create '$1'"
880 fi
881 }
882
883
884 # func_mktempdir [BASENAME]
885 # -------------------------
886 # Make a temporary directory that won't clash with other running
887 # libtool processes, and avoids race conditions if possible. If
888 # given, BASENAME is the basename for that directory.
889 func_mktempdir ()
890 {
891 $debug_cmd
892
893 _G_template=${TMPDIR-/tmp}/${1-$progname}
894
895 if test : = "$opt_dry_run"; then
896 # Return a directory name, but don't create it in dry-run mode
897 _G_tmpdir=$_G_template-$$
201898 else
202 func_dirname_result="$func_dirname_result${2}"
899
900 # If mktemp works, use that first and foremost
901 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
902
903 if test ! -d "$_G_tmpdir"; then
904 # Failing that, at least try and use $RANDOM to avoid a race
905 _G_tmpdir=$_G_template-${RANDOM-0}$$
906
907 func_mktempdir_umask=`umask`
908 umask 0077
909 $MKDIR "$_G_tmpdir"
910 umask $func_mktempdir_umask
911 fi
912
913 # If we're not in dry-run mode, bomb out on failure
914 test -d "$_G_tmpdir" || \
915 func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
203916 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
917
918 $ECHO "$_G_tmpdir"
919 }
920
232921
233922 # func_normal_abspath PATH
923 # ------------------------
234924 # Remove doubled-up and trailing slashes, "." path components,
235925 # and cancel out any ".." path components in PATH after making
236926 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238927 func_normal_abspath ()
239928 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
929 $debug_cmd
930
931 # These SED scripts presuppose an absolute path with a trailing slash.
932 _G_pathcar='s|^/\([^/]*\).*$|\1|'
933 _G_pathcdr='s|^/[^/]*||'
934 _G_removedotparts=':dotsl
935 s|/\./|/|g
936 t dotsl
937 s|/\.$|/|'
938 _G_collapseslashes='s|/\{1,\}|/|g'
939 _G_finalslash='s|/*$|/|'
940
941 # Start from root dir and reassemble the path.
942 func_normal_abspath_result=
943 func_normal_abspath_tpath=$1
944 func_normal_abspath_altnamespace=
945 case $func_normal_abspath_tpath in
946 "")
947 # Empty path, that just means $cwd.
948 func_stripname '' '/' "`pwd`"
949 func_normal_abspath_result=$func_stripname_result
950 return
951 ;;
952 # The next three entries are used to spot a run of precisely
953 # two leading slashes without using negated character classes;
954 # we take advantage of case's first-match behaviour.
955 ///*)
956 # Unusual form of absolute path, do nothing.
957 ;;
958 //*)
959 # Not necessarily an ordinary path; POSIX reserves leading '//'
960 # and for example Cygwin uses it to access remote file shares
961 # over CIFS/SMB, so we conserve a leading double slash if found.
962 func_normal_abspath_altnamespace=/
963 ;;
964 /*)
965 # Absolute path, do nothing.
966 ;;
967 *)
968 # Relative path, prepend $cwd.
969 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
970 ;;
971 esac
972
973 # Cancel out all the simple stuff to save iterations. We also want
974 # the path to end with a slash for ease of parsing, so make sure
975 # there is one (and only one) here.
287976 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
977 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
978 while :; do
979 # Processed it all yet?
980 if test / = "$func_normal_abspath_tpath"; then
981 # If we ascended to the root using ".." the result may be empty now.
982 if test -z "$func_normal_abspath_result"; then
983 func_normal_abspath_result=/
337984 fi
338985 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
360 fi
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
370
371 # The name of this program:
372 func_dirname_and_basename "$progpath"
373 progname=$func_basename_result
374
375 # Make sure we have an absolute path for reexecution:
376 case $progpath in
377 [\\/]*|[A-Za-z]:\\*) ;;
378 *[\\/]*)
379 progdir=$func_dirname_result
380 progdir=`cd "$progdir" && pwd`
381 progpath="$progdir/$progname"
382 ;;
383 *)
384 save_IFS="$IFS"
385 IFS=${PATH_SEPARATOR-:}
386 for progdir in $PATH; do
387 IFS="$save_IFS"
388 test -x "$progdir/$progname" && break
389 done
390 IFS="$save_IFS"
391 test -n "$progdir" || progdir=`pwd`
392 progpath="$progdir/$progname"
393 ;;
394 esac
395
396 # Sed substitution that helps us do robust quoting. It backslashifies
397 # metacharacters that are still active within double-quoted strings.
398 Xsed="${SED}"' -e 1s/^X//'
399 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
400
401 # Same as above, but do not quote variable references.
402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
412
413 # Re-`\' parameter expansions in output of double_quote_subst that were
414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
415 # in input to double_quote_subst, that '$' was protected from expansion.
416 # Since each input `\' is now two `\'s, look for any number of runs of
417 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
418 bs='\\'
419 bs2='\\\\'
420 bs4='\\\\\\\\'
421 dollar='\$'
422 sed_double_backslash="\
423 s/$bs4/&\\
424 /g
425 s/^$bs2$dollar/$bs&/
426 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
427 s/\n//g"
428
429 # Standard options:
430 opt_dry_run=false
431 opt_help=false
432 opt_quiet=false
433 opt_verbose=false
434 opt_warning=:
435
436 # func_echo arg...
437 # Echo program name prefixed message, along with the current mode
438 # name if it has been set yet.
439 func_echo ()
440 {
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
442 }
443
444 # func_verbose arg...
445 # Echo program name prefixed message in verbose mode only.
446 func_verbose ()
447 {
448 $opt_verbose && func_echo ${1+"$@"}
986 fi
987 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
988 -e "$_G_pathcar"`
989 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
990 -e "$_G_pathcdr"`
991 # Figure out what to do with it
992 case $func_normal_abspath_tcomponent in
993 "")
994 # Trailing empty path component, ignore it.
995 ;;
996 ..)
997 # Parent dir; strip last assembled component from result.
998 func_dirname "$func_normal_abspath_result"
999 func_normal_abspath_result=$func_dirname_result
1000 ;;
1001 *)
1002 # Actual path component, append it.
1003 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
1004 ;;
1005 esac
1006 done
1007 # Restore leading double-slash if one was found on entry.
1008 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
1009 }
1010
1011
1012 # func_notquiet ARG...
1013 # --------------------
1014 # Echo program name prefixed message only when not in quiet mode.
1015 func_notquiet ()
1016 {
1017 $debug_cmd
1018
1019 $opt_quiet || func_echo ${1+"$@"}
4491020
4501021 # A bug in bash halts the script if the last line of a function
4511022 # fails when set -e is in force, so we need another command to
4531024 :
4541025 }
4551026
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
463 # func_error arg...
464 # Echo program name prefixed message to standard error.
465 func_error ()
466 {
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
468 }
469
470 # func_warning arg...
471 # Echo program name prefixed warning message to standard error.
472 func_warning ()
473 {
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
475
476 # bash bug again:
1027
1028 # func_relative_path SRCDIR DSTDIR
1029 # --------------------------------
1030 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
1031 func_relative_path ()
1032 {
1033 $debug_cmd
1034
1035 func_relative_path_result=
1036 func_normal_abspath "$1"
1037 func_relative_path_tlibdir=$func_normal_abspath_result
1038 func_normal_abspath "$2"
1039 func_relative_path_tbindir=$func_normal_abspath_result
1040
1041 # Ascend the tree starting from libdir
1042 while :; do
1043 # check if we have found a prefix of bindir
1044 case $func_relative_path_tbindir in
1045 $func_relative_path_tlibdir)
1046 # found an exact match
1047 func_relative_path_tcancelled=
1048 break
1049 ;;
1050 $func_relative_path_tlibdir*)
1051 # found a matching prefix
1052 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
1053 func_relative_path_tcancelled=$func_stripname_result
1054 if test -z "$func_relative_path_result"; then
1055 func_relative_path_result=.
1056 fi
1057 break
1058 ;;
1059 *)
1060 func_dirname $func_relative_path_tlibdir
1061 func_relative_path_tlibdir=$func_dirname_result
1062 if test -z "$func_relative_path_tlibdir"; then
1063 # Have to descend all the way to the root!
1064 func_relative_path_result=../$func_relative_path_result
1065 func_relative_path_tcancelled=$func_relative_path_tbindir
1066 break
1067 fi
1068 func_relative_path_result=../$func_relative_path_result
1069 ;;
1070 esac
1071 done
1072
1073 # Now calculate path; take care to avoid doubling-up slashes.
1074 func_stripname '' '/' "$func_relative_path_result"
1075 func_relative_path_result=$func_stripname_result
1076 func_stripname '/' '/' "$func_relative_path_tcancelled"
1077 if test -n "$func_stripname_result"; then
1078 func_append func_relative_path_result "/$func_stripname_result"
1079 fi
1080
1081 # Normalisation. If bindir is libdir, return '.' else relative path.
1082 if test -n "$func_relative_path_result"; then
1083 func_stripname './' '' "$func_relative_path_result"
1084 func_relative_path_result=$func_stripname_result
1085 fi
1086
1087 test -n "$func_relative_path_result" || func_relative_path_result=.
1088
4771089 :
4781090 }
4791091
480 # func_fatal_error arg...
481 # Echo program name prefixed message to standard error, and exit.
482 func_fatal_error ()
483 {
484 func_error ${1+"$@"}
485 exit $EXIT_FAILURE
486 }
487
488 # func_fatal_help arg...
489 # Echo program name prefixed message to standard error, followed by
490 # a help hint, and exit.
491 func_fatal_help ()
492 {
493 func_error ${1+"$@"}
494 func_fatal_error "$help"
495 }
496 help="Try \`$progname --help' for more information." ## default
497
498
499 # func_grep expression filename
500 # Check whether EXPRESSION matches any line of FILENAME, without output.
501 func_grep ()
502 {
503 $GREP "$1" "$2" >/dev/null 2>&1
504 }
505
506
507 # func_mkdir_p directory-path
508 # Make sure the entire path to DIRECTORY-PATH is available.
509 func_mkdir_p ()
510 {
511 my_directory_path="$1"
512 my_dir_list=
513
514 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
515
516 # Protect directory names starting with `-'
517 case $my_directory_path in
518 -*) my_directory_path="./$my_directory_path" ;;
1092
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1103 {
1104 $debug_cmd
1105
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1109 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
5191114 esac
520
521 # While some portion of DIR does not yet exist...
522 while test ! -d "$my_directory_path"; do
523 # ...make a list in topmost first order. Use a colon delimited
524 # list incase some portion of path contains whitespace.
525 my_dir_list="$my_directory_path:$my_dir_list"
526
527 # If the last portion added has no slash in it, the list is done
528 case $my_directory_path in */*) ;; *) break ;; esac
529
530 # ...otherwise throw away the child directory and loop
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
532 done
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
534
535 save_mkdir_p_IFS="$IFS"; IFS=':'
536 for my_dir in $my_dir_list; do
537 IFS="$save_mkdir_p_IFS"
538 # mkdir can fail with a `File exist' error if two processes
539 # try to create one of the directories concurrently. Don't
540 # stop in that case!
541 $MKDIR "$my_dir" 2>/dev/null || :
542 done
543 IFS="$save_mkdir_p_IFS"
544
545 # Bail out if we (or some other process) failed to create a directory.
546 test -d "$my_directory_path" || \
547 func_fatal_error "Failed to create \`$1'"
548 fi
549 }
550
551
552 # func_mktempdir [string]
553 # Make a temporary directory that won't clash with other running
554 # libtool processes, and avoids race conditions if possible. If
555 # given, STRING is the basename for that directory.
556 func_mktempdir ()
557 {
558 my_template="${TMPDIR-/tmp}/${1-$progname}"
559
560 if test "$opt_dry_run" = ":"; then
561 # Return a directory name, but don't create it in dry-run mode
562 my_tmpdir="${my_template}-$$"
563 else
564
565 # If mktemp works, use that first and foremost
566 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
567
568 if test ! -d "$my_tmpdir"; then
569 # Failing that, at least try and use $RANDOM to avoid a race
570 my_tmpdir="${my_template}-${RANDOM-0}$$"
571
572 save_mktempdir_umask=`umask`
573 umask 0077
574 $MKDIR "$my_tmpdir"
575 umask $save_mktempdir_umask
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
5761119 fi
5771120
578 # If we're not in dry-run mode, bomb out on failure
579 test -d "$my_tmpdir" || \
580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
581 fi
582
583 $ECHO "$my_tmpdir"
584 }
585
586
587 # func_quote_for_eval arg
588 # Aesthetically quote ARG to be evaled later.
589 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
590 # is double-quoted, suitable for a subsequent eval, whereas
591 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
592 # which are still active within double quotes backslashified.
593 func_quote_for_eval ()
594 {
595 case $1 in
596 *[\\\`\"\$]*)
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
598 *)
599 func_quote_for_eval_unquoted_result="$1" ;;
600 esac
601
602 case $func_quote_for_eval_unquoted_result in
603 # Double-quote args containing shell metacharacters to delay
604 # word splitting, command substitution and and variable
605 # expansion for a subsequent eval.
606 # Many Bourne shells cannot handle close brackets correctly
607 # in scan sets, so we specify it separately.
608 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
609 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
610 ;;
611 *)
612 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
613 esac
614 }
615
616
617 # func_quote_for_expand arg
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1129 ;;
1130 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1133 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1137 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1139 fi
1140 shift
1141 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
6181147 # Aesthetically quote ARG to be evaled later; same as above,
6191148 # but do not quote variable references.
6201149 func_quote_for_expand ()
6211150 {
1151 $debug_cmd
1152
6221153 case $1 in
6231154 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
6261157 *)
627 my_arg="$1" ;;
1158 _G_arg=$1 ;;
6281159 esac
6291160
630 case $my_arg in
1161 case $_G_arg in
6311162 # Double-quote args containing shell metacharacters to delay
6321163 # word splitting and command substitution for a subsequent eval.
6331164 # Many Bourne shells cannot handle close brackets correctly
6341165 # in scan sets, so we specify it separately.
6351166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
636 my_arg="\"$my_arg\""
1167 _G_arg=\"$_G_arg\"
6371168 ;;
6381169 esac
6391170
640 func_quote_for_expand_result="$my_arg"
641 }
642
643
644 # func_show_eval cmd [fail_exp]
645 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1171 func_quote_for_expand_result=$_G_arg
1172 }
1173
1174
1175 # func_stripname PREFIX SUFFIX NAME
1176 # ---------------------------------
1177 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1178 # PREFIX and SUFFIX must not contain globbing or regex special
1179 # characters, hashes, percent signs, but SUFFIX may contain a leading
1180 # dot (in which case that matches only a dot).
1181 if test yes = "$_G_HAVE_XSI_OPS"; then
1182 eval 'func_stripname ()
1183 {
1184 $debug_cmd
1185
1186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1187 # positional parameters, so assign one to ordinary variable first.
1188 func_stripname_result=$3
1189 func_stripname_result=${func_stripname_result#"$1"}
1190 func_stripname_result=${func_stripname_result%"$2"}
1191 }'
1192 else
1193 func_stripname ()
1194 {
1195 $debug_cmd
1196
1197 case $2 in
1198 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1199 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1200 esac
1201 }
1202 fi
1203
1204
1205 # func_show_eval CMD [FAIL_EXP]
1206 # -----------------------------
1207 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6461208 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6471209 # is given, then evaluate it.
6481210 func_show_eval ()
6491211 {
650 my_cmd="$1"
651 my_fail_exp="${2-:}"
652
653 ${opt_silent-false} || {
654 func_quote_for_expand "$my_cmd"
655 eval "func_echo $func_quote_for_expand_result"
1212 $debug_cmd
1213
1214 _G_cmd=$1
1215 _G_fail_exp=${2-':'}
1216
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1219
1220 $opt_dry_run || {
1221 eval "$_G_cmd"
1222 _G_status=$?
1223 if test 0 -ne "$_G_status"; then
1224 eval "(exit $_G_status); $_G_fail_exp"
1225 fi
6561226 }
657
658 if ${opt_dry_run-false}; then :; else
659 eval "$my_cmd"
660 my_status=$?
661 if test "$my_status" -eq 0; then :; else
662 eval "(exit $my_status); $my_fail_exp"
663 fi
664 fi
665 }
666
667
668 # func_show_eval_locale cmd [fail_exp]
669 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1227 }
1228
1229
1230 # func_show_eval_locale CMD [FAIL_EXP]
1231 # ------------------------------------
1232 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6701233 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6711234 # is given, then evaluate it. Use the saved locale for evaluation.
6721235 func_show_eval_locale ()
6731236 {
674 my_cmd="$1"
675 my_fail_exp="${2-:}"
676
677 ${opt_silent-false} || {
678 func_quote_for_expand "$my_cmd"
1237 $debug_cmd
1238
1239 _G_cmd=$1
1240 _G_fail_exp=${2-':'}
1241
1242 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
6791244 eval "func_echo $func_quote_for_expand_result"
6801245 }
6811246
682 if ${opt_dry_run-false}; then :; else
683 eval "$lt_user_locale
684 $my_cmd"
685 my_status=$?
686 eval "$lt_safe_locale"
687 if test "$my_status" -eq 0; then :; else
688 eval "(exit $my_status); $my_fail_exp"
1247 $opt_dry_run || {
1248 eval "$_G_user_locale
1249 $_G_cmd"
1250 _G_status=$?
1251 eval "$_G_safe_locale"
1252 if test 0 -ne "$_G_status"; then
1253 eval "(exit $_G_status); $_G_fail_exp"
6891254 fi
690 fi
691 }
1255 }
1256 }
1257
6921258
6931259 # func_tr_sh
1260 # ----------
6941261 # Turn $1 into a string suitable for a shell variable name.
6951262 # Result is stored in $func_tr_sh_result. All characters
6961263 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
6971264 # if $1 begins with a digit, a '_' is prepended as well.
6981265 func_tr_sh ()
6991266 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
709
710
711 # func_version
712 # Echo version message to standard output and exit.
713 func_version ()
714 {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
726 s/^# //
727 s/^# *$//
728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
729 p
730 }' < "$progpath"
731 exit $?
732 }
733
734 # func_usage
735 # Echo short help message to standard output and exit.
736 func_usage ()
737 {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
741 s/^# //
742 s/^# *$//
743 s/\$progname/'$progname'/
744 p
745 }' < "$progpath"
746 echo
747 $ECHO "run \`$progname --help | more' for full usage"
748 exit $?
749 }
750
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
1267 $debug_cmd
1268
1269 case $1 in
1270 [0-9]* | *[!a-zA-Z0-9_]*)
1271 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1272 ;;
1273 * )
1274 func_tr_sh_result=$1
1275 ;;
1276 esac
1277 }
1278
1279
1280 # func_verbose ARG...
1281 # -------------------
1282 # Echo program name prefixed message in verbose mode only.
1283 func_verbose ()
1284 {
1285 $debug_cmd
1286
1287 $opt_verbose && func_echo "$*"
1288
1289 :
1290 }
1291
1292
1293 # func_warn_and_continue ARG...
1294 # -----------------------------
1295 # Echo program name prefixed warning message to standard error.
1296 func_warn_and_continue ()
1297 {
1298 $debug_cmd
1299
1300 $require_term_colors
1301
1302 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1303 }
1304
1305
1306 # func_warning CATEGORY ARG...
1307 # ----------------------------
1308 # Echo program name prefixed warning message to standard error. Warning
1309 # messages can be filtered according to CATEGORY, where this function
1310 # elides messages where CATEGORY is not listed in the global variable
1311 # 'opt_warning_types'.
1312 func_warning ()
1313 {
1314 $debug_cmd
1315
1316 # CATEGORY must be in the warning_categories list!
1317 case " $warning_categories " in
1318 *" $1 "*) ;;
1319 *) func_internal_error "invalid warning category '$1'" ;;
1320 esac
1321
1322 _G_category=$1
1323 shift
1324
1325 case " $opt_warning_types " in
1326 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1327 esac
1328 }
1329
1330
1331 # func_sort_ver VER1 VER2
1332 # -----------------------
1333 # 'sort -V' is not generally available.
1334 # Note this deviates from the version comparison in automake
1335 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1336 # but this should suffice as we won't be specifying old
1337 # version formats or redundant trailing .0 in bootstrap.conf.
1338 # If we did want full compatibility then we should probably
1339 # use m4_version_compare from autoconf.
1340 func_sort_ver ()
1341 {
1342 $debug_cmd
1343
1344 printf '%s\n%s\n' "$1" "$2" \
1345 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1346 }
1347
1348 # func_lt_ver PREV CURR
1349 # ---------------------
1350 # Return true if PREV and CURR are in the correct order according to
1351 # func_sort_ver, otherwise false. Use it like this:
1352 #
1353 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1354 func_lt_ver ()
1355 {
1356 $debug_cmd
1357
1358 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1359 }
1360
1361
1362 # Local variables:
1363 # mode: shell-script
1364 # sh-indentation: 2
1365 # eval: (add-hook 'before-save-hook 'time-stamp)
1366 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1367 # time-stamp-time-zone: "UTC"
1368 # End:
1369 #! /bin/sh
1370
1371 # Set a version string for this script.
1372 scriptversion=2015-10-07.11; # UTC
1373
1374 # A portable, pluggable option parser for Bourne shell.
1375 # Written by Gary V. Vaughan, 2010
1376
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1395
1396
1397 ## ------ ##
1398 ## Usage. ##
1399 ## ------ ##
1400
1401 # This file is a library for parsing options in your shell scripts along
1402 # with assorted other useful supporting features that you can make use
1403 # of too.
1404 #
1405 # For the simplest scripts you might need only:
1406 #
1407 # #!/bin/sh
1408 # . relative/path/to/funclib.sh
1409 # . relative/path/to/options-parser
1410 # scriptversion=1.0
1411 # func_options ${1+"$@"}
1412 # eval set dummy "$func_options_result"; shift
1413 # ...rest of your script...
1414 #
1415 # In order for the '--version' option to work, you will need to have a
1416 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1418 #
1419 # For '-h' and '--help' to work, you will also need a one line
1420 # description of your script's purpose in a comment directly above the
1421 # '# Written by ' line, like the one at the top of this file.
1422 #
1423 # The default options also support '--debug', which will turn on shell
1424 # execution tracing (see the comment above debug_cmd below for another
1425 # use), and '--verbose' and the func_verbose function to allow your script
1426 # to display verbose messages only when your user has specified
1427 # '--verbose'.
1428 #
1429 # After sourcing this file, you can plug processing for additional
1430 # options by amending the variables from the 'Configuration' section
1431 # below, and following the instructions in the 'Option parsing'
1432 # section further down.
1433
1434 ## -------------- ##
1435 ## Configuration. ##
1436 ## -------------- ##
1437
1438 # You should override these variables in your script after sourcing this
1439 # file so that they reflect the customisations you have added to the
1440 # option parser.
1441
1442 # The usage line for option parsing errors and the start of '-h' and
1443 # '--help' output messages. You can embed shell variables for delayed
1444 # expansion at the time the message is displayed, but you will need to
1445 # quote other shell meta-characters carefully to prevent them being
1446 # expanded when the contents are evaled.
1447 usage='$progpath [OPTION]...'
1448
1449 # Short help message in response to '-h' and '--help'. Add to this or
1450 # override it after sourcing this library to reflect the full set of
1451 # options your script accepts.
1452 usage_message="\
1453 --debug enable verbose shell tracing
1454 -W, --warnings=CATEGORY
1455 report the warnings falling in CATEGORY [all]
1456 -v, --verbose verbosely report processing
1457 --version print version information and exit
1458 -h, --help print short or long help message and exit
1459 "
1460
1461 # Additional text appended to 'usage_message' in response to '--help'.
1462 long_help_message="
1463 Warning categories include:
1464 'all' show all warnings
1465 'none' turn off all the warnings
1466 'error' warnings are treated as fatal errors"
1467
1468 # Help message printed before fatal option parsing errors.
1469 fatal_help="Try '\$progname --help' for more information."
1470
1471
1472
1473 ## ------------------------- ##
1474 ## Hook function management. ##
1475 ## ------------------------- ##
1476
1477 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1480
1481 # func_hookable FUNC_NAME
1482 # -----------------------
1483 # Declare that FUNC_NAME will run hooks added with
1484 # 'func_add_hook FUNC_NAME ...'.
1485 func_hookable ()
1486 {
1487 $debug_cmd
1488
1489 func_append hookable_fns " $1"
1490 }
1491
1492
1493 # func_add_hook FUNC_NAME HOOK_FUNC
1494 # ---------------------------------
1495 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1496 # first have been declared "hookable" by a call to 'func_hookable'.
1497 func_add_hook ()
1498 {
1499 $debug_cmd
1500
1501 case " $hookable_fns " in
1502 *" $1 "*) ;;
1503 *) func_fatal_error "'$1' does not accept hook functions." ;;
1504 esac
1505
1506 eval func_append ${1}_hooks '" $2"'
1507 }
1508
1509
1510 # func_remove_hook FUNC_NAME HOOK_FUNC
1511 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1513 func_remove_hook ()
1514 {
1515 $debug_cmd
1516
1517 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1518 }
1519
1520
1521 # func_run_hooks FUNC_NAME [ARG]...
1522 # ---------------------------------
1523 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1525 # than a whitespace-delimited list of legal shell function names, and
1526 # no effort is wasted trying to catch shell meta-characters or preserve
1527 # whitespace.
1528 func_run_hooks ()
1529 {
1530 $debug_cmd
1531
1532 _G_rc_run_hooks=false
1533
1534 case " $hookable_fns " in
1535 *" $1 "*) ;;
1536 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1537 esac
1538
1539 eval _G_hook_fns=\$$1_hooks; shift
1540
1541 for _G_hook in $_G_hook_fns; do
1542 if eval $_G_hook '"$@"'; then
1543 # store returned options list back into positional
1544 # parameters for next 'cmd' execution.
1545 eval _G_hook_result=\$${_G_hook}_result
1546 eval set dummy "$_G_hook_result"; shift
1547 _G_rc_run_hooks=:
1548 fi
1549 done
1550
1551 $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result
1552 }
1553
1554
1555
1556 ## --------------- ##
1557 ## Option parsing. ##
1558 ## --------------- ##
1559
1560 # In order to add your own option parsing hooks, you must accept the
1561 # full positional parameter list in your hook function, you may remove/edit
1562 # any options that you action, and then pass back the remaining unprocessed
1563 # options in '<hooked_function_name>_result', escaped suitably for
1564 # 'eval'. In this case you also must return $EXIT_SUCCESS to let the
1565 # hook's caller know that it should pay attention to
1566 # '<hooked_function_name>_result'. Returning $EXIT_FAILURE signalizes that
1567 # arguments are left untouched by the hook and therefore caller will ignore the
1568 # result variable.
1569 #
1570 # Like this:
1571 #
1572 # my_options_prep ()
1573 # {
1574 # $debug_cmd
1575 #
1576 # # Extend the existing usage message.
1577 # usage_message=$usage_message'
1578 # -s, --silent don'\''t print informational messages
1579 # '
1580 # # No change in '$@' (ignored completely by this hook). There is
1581 # # no need to do the equivalent (but slower) action:
1582 # # func_quote_for_eval ${1+"$@"}
1583 # # my_options_prep_result=$func_quote_for_eval_result
1584 # false
1585 # }
1586 # func_add_hook func_options_prep my_options_prep
1587 #
1588 #
1589 # my_silent_option ()
1590 # {
1591 # $debug_cmd
1592 #
1593 # args_changed=false
1594 #
1595 # # Note that for efficiency, we parse as many options as we can
1596 # # recognise in a loop before passing the remainder back to the
1597 # # caller on the first unrecognised argument we encounter.
1598 # while test $# -gt 0; do
1599 # opt=$1; shift
1600 # case $opt in
1601 # --silent|-s) opt_silent=:
1602 # args_changed=:
1603 # ;;
1604 # # Separate non-argument short options:
1605 # -s*) func_split_short_opt "$_G_opt"
1606 # set dummy "$func_split_short_opt_name" \
1607 # "-$func_split_short_opt_arg" ${1+"$@"}
1608 # shift
1609 # args_changed=:
1610 # ;;
1611 # *) # Make sure the first unrecognised option "$_G_opt"
1612 # # is added back to "$@", we could need that later
1613 # # if $args_changed is true.
1614 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1615 # esac
1616 # done
1617 #
1618 # if $args_changed; then
1619 # func_quote_for_eval ${1+"$@"}
1620 # my_silent_option_result=$func_quote_for_eval_result
1621 # fi
1622 #
1623 # $args_changed
1624 # }
1625 # func_add_hook func_parse_options my_silent_option
1626 #
1627 #
1628 # my_option_validation ()
1629 # {
1630 # $debug_cmd
1631 #
1632 # $opt_silent && $opt_verbose && func_fatal_help "\
1633 # '--silent' and '--verbose' options are mutually exclusive."
1634 #
1635 # false
1636 # }
1637 # func_add_hook func_validate_options my_option_validation
1638 #
1639 # You'll also need to manually amend $usage_message to reflect the extra
1640 # options you parse. It's preferable to append if you can, so that
1641 # multiple option parsing hooks can be added safely.
1642
1643
1644 # func_options_finish [ARG]...
1645 # ----------------------------
1646 # Finishing the option parse loop (call 'func_options' hooks ATM).
1647 func_options_finish ()
1648 {
1649 $debug_cmd
1650
1651 _G_func_options_finish_exit=false
1652 if func_run_hooks func_options ${1+"$@"}; then
1653 func_options_finish_result=$func_run_hooks_result
1654 _G_func_options_finish_exit=:
1655 fi
1656
1657 $_G_func_options_finish_exit
1658 }
1659
1660
1661 # func_options [ARG]...
1662 # ---------------------
1663 # All the functions called inside func_options are hookable. See the
1664 # individual implementations for details.
1665 func_hookable func_options
1666 func_options ()
1667 {
1668 $debug_cmd
1669
1670 _G_rc_options=false
1671
1672 for my_func in options_prep parse_options validate_options options_finish
1673 do
1674 if eval func_$my_func '${1+"$@"}'; then
1675 eval _G_res_var='$'"func_${my_func}_result"
1676 eval set dummy "$_G_res_var" ; shift
1677 _G_rc_options=:
1678 fi
1679 done
1680
1681 # Save modified positional parameters for caller. As a top-level
1682 # options-parser function we always need to set the 'func_options_result'
1683 # variable (regardless the $_G_rc_options value).
1684 if $_G_rc_options; then
1685 func_options_result=$_G_res_var
1686 else
1687 func_quote_for_eval ${1+"$@"}
1688 func_options_result=$func_quote_for_eval_result
1689 fi
1690
1691 $_G_rc_options
1692 }
1693
1694
1695 # func_options_prep [ARG]...
1696 # --------------------------
1697 # All initialisations required before starting the option parse loop.
1698 # Note that when calling hook functions, we pass through the list of
1699 # positional parameters. If a hook function modifies that list, and
1700 # needs to propagate that back to rest of this script, then the complete
1701 # modified list must be put in 'func_run_hooks_result' before
1702 # returning $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned).
1703 func_hookable func_options_prep
1704 func_options_prep ()
1705 {
1706 $debug_cmd
1707
1708 # Option defaults:
1709 opt_verbose=false
1710 opt_warning_types=
1711
1712 _G_rc_options_prep=false
1713 if func_run_hooks func_options_prep ${1+"$@"}; then
1714 _G_rc_options_prep=:
1715 # save modified positional parameters for caller
1716 func_options_prep_result=$func_run_hooks_result
1717 fi
1718
1719 $_G_rc_options_prep
1720 }
1721
1722
1723 # func_parse_options [ARG]...
1724 # ---------------------------
1725 # The main option parsing loop.
1726 func_hookable func_parse_options
1727 func_parse_options ()
1728 {
1729 $debug_cmd
1730
1731 func_parse_options_result=
1732
1733 _G_rc_parse_options=false
1734 # this just eases exit handling
1735 while test $# -gt 0; do
1736 # Defer to hook functions for initial option parsing, so they
1737 # get priority in the event of reusing an option name.
1738 if func_run_hooks func_parse_options ${1+"$@"}; then
1739 eval set dummy "$func_run_hooks_result"; shift
1740 _G_rc_parse_options=:
1741 fi
1742
1743 # Break out of the loop if we already parsed every option.
1744 test $# -gt 0 || break
1745
1746 _G_match_parse_options=:
1747 _G_opt=$1
1748 shift
1749 case $_G_opt in
1750 --debug|-x) debug_cmd='set -x'
1751 func_echo "enabling shell trace mode"
1752 $debug_cmd
1753 ;;
1754
1755 --no-warnings|--no-warning|--no-warn)
1756 set dummy --warnings none ${1+"$@"}
1757 shift
1758 ;;
1759
1760 --warnings|--warning|-W)
1761 if test $# = 0 && func_missing_arg $_G_opt; then
1762 _G_rc_parse_options=:
1763 break
1764 fi
1765 case " $warning_categories $1" in
1766 *" $1 "*)
1767 # trailing space prevents matching last $1 above
1768 func_append_uniq opt_warning_types " $1"
1769 ;;
1770 *all)
1771 opt_warning_types=$warning_categories
1772 ;;
1773 *none)
1774 opt_warning_types=none
1775 warning_func=:
1776 ;;
1777 *error)
1778 opt_warning_types=$warning_categories
1779 warning_func=func_fatal_error
1780 ;;
1781 *)
1782 func_fatal_error \
1783 "unsupported warning category: '$1'"
1784 ;;
1785 esac
1786 shift
1787 ;;
1788
1789 --verbose|-v) opt_verbose=: ;;
1790 --version) func_version ;;
1791 -\?|-h) func_usage ;;
1792 --help) func_help ;;
1793
1794 # Separate optargs to long options (plugins may need this):
1795 --*=*) func_split_equals "$_G_opt"
1796 set dummy "$func_split_equals_lhs" \
1797 "$func_split_equals_rhs" ${1+"$@"}
1798 shift
1799 ;;
1800
1801 # Separate optargs to short options:
1802 -W*)
1803 func_split_short_opt "$_G_opt"
1804 set dummy "$func_split_short_opt_name" \
1805 "$func_split_short_opt_arg" ${1+"$@"}
1806 shift
1807 ;;
1808
1809 # Separate non-argument short options:
1810 -\?*|-h*|-v*|-x*)
1811 func_split_short_opt "$_G_opt"
1812 set dummy "$func_split_short_opt_name" \
1813 "-$func_split_short_opt_arg" ${1+"$@"}
1814 shift
1815 ;;
1816
1817 --) _G_rc_parse_options=: ; break ;;
1818 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1819 *) set dummy "$_G_opt" ${1+"$@"}; shift
1820 _G_match_parse_options=false
1821 break
1822 ;;
1823 esac
1824
1825 $_G_match_parse_options && _G_rc_parse_options=:
1826 done
1827
1828
1829 if $_G_rc_parse_options; then
1830 # save modified positional parameters for caller
1831 func_quote_for_eval ${1+"$@"}
1832 func_parse_options_result=$func_quote_for_eval_result
1833 fi
1834
1835 $_G_rc_parse_options
1836 }
1837
1838
1839 # func_validate_options [ARG]...
1840 # ------------------------------
1841 # Perform any sanity checks on option settings and/or unconsumed
1842 # arguments.
1843 func_hookable func_validate_options
1844 func_validate_options ()
1845 {
1846 $debug_cmd
1847
1848 _G_rc_validate_options=false
1849
1850 # Display all warnings if -W was not given.
1851 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1852
1853 if func_run_hooks func_validate_options ${1+"$@"}; then
1854 # save modified positional parameters for caller
1855 func_validate_options_result=$func_run_hooks_result
1856 _G_rc_validate_options=:
1857 fi
1858
1859 # Bail if the options were screwed!
1860 $exit_cmd $EXIT_FAILURE
1861
1862 $_G_rc_validate_options
1863 }
1864
1865
1866
1867 ## ----------------- ##
1868 ## Helper functions. ##
1869 ## ----------------- ##
1870
1871 # This section contains the helper functions used by the rest of the
1872 # hookable option parser framework in ascii-betical order.
1873
1874
1875 # func_fatal_help ARG...
1876 # ----------------------
1877 # Echo program name prefixed message to standard error, followed by
1878 # a help hint, and exit.
1879 func_fatal_help ()
1880 {
1881 $debug_cmd
1882
1883 eval \$ECHO \""Usage: $usage"\"
1884 eval \$ECHO \""$fatal_help"\"
1885 func_error ${1+"$@"}
1886 exit $EXIT_FAILURE
1887 }
1888
1889
1890 # func_help
1891 # ---------
1892 # Echo long help message to standard output and exit.
7541893 func_help ()
7551894 {
756 $opt_debug
757
758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
760 s/^# //
761 s/^# *$//
762 s*\$progname*'$progname'*
763 s*\$host*'"$host"'*
764 s*\$SHELL*'"$SHELL"'*
765 s*\$LTCC*'"$LTCC"'*
766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
767 s*\$LD*'"$LD"'*
768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
771 p
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
781 }
782
783 # func_missing_arg argname
1895 $debug_cmd
1896
1897 func_usage_message
1898 $ECHO "$long_help_message"
1899 exit 0
1900 }
1901
1902
1903 # func_missing_arg ARGNAME
1904 # ------------------------
7841905 # Echo program name prefixed message to standard error and set global
7851906 # exit_cmd.
7861907 func_missing_arg ()
7871908 {
788 $opt_debug
789
790 func_error "missing argument for $1."
1909 $debug_cmd
1910
1911 func_error "Missing argument for '$1'."
7911912 exit_cmd=exit
7921913 }
7931914
7941915
795 # func_split_short_opt shortopt
1916 # func_split_equals STRING
1917 # ------------------------
1918 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1919 # splitting STRING at the '=' sign.
1920 test -z "$_G_HAVE_XSI_OPS" \
1921 && (eval 'x=a/b/c;
1922 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1923 && _G_HAVE_XSI_OPS=yes
1924
1925 if test yes = "$_G_HAVE_XSI_OPS"
1926 then
1927 # This is an XSI compatible shell, allowing a faster implementation...
1928 eval 'func_split_equals ()
1929 {
1930 $debug_cmd
1931
1932 func_split_equals_lhs=${1%%=*}
1933 func_split_equals_rhs=${1#*=}
1934 test "x$func_split_equals_lhs" = "x$1" \
1935 && func_split_equals_rhs=
1936 }'
1937 else
1938 # ...otherwise fall back to using expr, which is often a shell builtin.
1939 func_split_equals ()
1940 {
1941 $debug_cmd
1942
1943 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1944 func_split_equals_rhs=
1945 test "x$func_split_equals_lhs" = "x$1" \
1946 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1947 }
1948 fi #func_split_equals
1949
1950
1951 # func_split_short_opt SHORTOPT
1952 # -----------------------------
7961953 # Set func_split_short_opt_name and func_split_short_opt_arg shell
7971954 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
820 exit_cmd=:
821
822
823
824
825
826 magic="%%%MAGIC variable%%%"
827 magic_exe="%%%MAGIC EXE variable%%%"
828
829 # Global variables.
830 nonopt=
831 preserve_args=
832 lo2o="s/\\.lo\$/.${objext}/"
833 o2lo="s/\\.${objext}\$/.lo/"
834 extracted_archives=
835 extracted_serial=0
836
837 # If this variable is set in any of the actions, the command in it
838 # will be execed at the end. This prevents here-documents from being
839 # left over by shells.
840 exec_cmd=
841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
888 # func_fatal_configuration arg...
1955 if test yes = "$_G_HAVE_XSI_OPS"
1956 then
1957 # This is an XSI compatible shell, allowing a faster implementation...
1958 eval 'func_split_short_opt ()
1959 {
1960 $debug_cmd
1961
1962 func_split_short_opt_arg=${1#??}
1963 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1964 }'
1965 else
1966 # ...otherwise fall back to using expr, which is often a shell builtin.
1967 func_split_short_opt ()
1968 {
1969 $debug_cmd
1970
1971 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1972 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1973 }
1974 fi #func_split_short_opt
1975
1976
1977 # func_usage
1978 # ----------
1979 # Echo short help message to standard output and exit.
1980 func_usage ()
1981 {
1982 $debug_cmd
1983
1984 func_usage_message
1985 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1986 exit 0
1987 }
1988
1989
1990 # func_usage_message
1991 # ------------------
1992 # Echo short help message to standard output.
1993 func_usage_message ()
1994 {
1995 $debug_cmd
1996
1997 eval \$ECHO \""Usage: $usage"\"
1998 echo
1999 $SED -n 's|^# ||
2000 /^Written by/{
2001 x;p;x
2002 }
2003 h
2004 /^Written by/q' < "$progpath"
2005 echo
2006 eval \$ECHO \""$usage_message"\"
2007 }
2008
2009
2010 # func_version
2011 # ------------
2012 # Echo version message to standard output and exit.
2013 func_version ()
2014 {
2015 $debug_cmd
2016
2017 printf '%s\n' "$progname $scriptversion"
2018 $SED -n '
2019 /(C)/!b go
2020 :more
2021 /\./!{
2022 N
2023 s|\n# | |
2024 b more
2025 }
2026 :go
2027 /^# Written by /,/# warranty; / {
2028 s|^# ||
2029 s|^# *$||
2030 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2031 p
2032 }
2033 /^# Written by / {
2034 s|^# ||
2035 p
2036 }
2037 /^warranty; /q' < "$progpath"
2038
2039 exit $?
2040 }
2041
2042
2043 # Local variables:
2044 # mode: shell-script
2045 # sh-indentation: 2
2046 # eval: (add-hook 'before-save-hook 'time-stamp)
2047 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2048 # time-stamp-time-zone: "UTC"
2049 # End:
2050
2051 # Set a version string.
2052 scriptversion='(GNU libtool) 2.4.6'
2053
2054
2055 # func_echo ARG...
2056 # ----------------
2057 # Libtool also displays the current mode in messages, so override
2058 # funclib.sh func_echo with this custom definition.
2059 func_echo ()
2060 {
2061 $debug_cmd
2062
2063 _G_message=$*
2064
2065 func_echo_IFS=$IFS
2066 IFS=$nl
2067 for _G_line in $_G_message; do
2068 IFS=$func_echo_IFS
2069 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
2070 done
2071 IFS=$func_echo_IFS
2072 }
2073
2074
2075 # func_warning ARG...
2076 # -------------------
2077 # Libtool warnings are not categorized, so override funclib.sh
2078 # func_warning with this simpler definition.
2079 func_warning ()
2080 {
2081 $debug_cmd
2082
2083 $warning_func ${1+"$@"}
2084 }
2085
2086
2087 ## ---------------- ##
2088 ## Options parsing. ##
2089 ## ---------------- ##
2090
2091 # Hook in the functions to make sure our own options are parsed during
2092 # the option parsing loop.
2093
2094 usage='$progpath [OPTION]... [MODE-ARG]...'
2095
2096 # Short help message in response to '-h'.
2097 usage_message="Options:
2098 --config show all configuration variables
2099 --debug enable verbose shell tracing
2100 -n, --dry-run display commands without modifying any files
2101 --features display basic configuration information and exit
2102 --mode=MODE use operation mode MODE
2103 --no-warnings equivalent to '-Wnone'
2104 --preserve-dup-deps don't remove duplicate dependency libraries
2105 --quiet, --silent don't print informational messages
2106 --tag=TAG use configuration variables from tag TAG
2107 -v, --verbose print more informational messages than default
2108 --version print version information
2109 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2110 -h, --help, --help-all print short, long, or detailed help message
2111 "
2112
2113 # Additional text appended to 'usage_message' in response to '--help'.
2114 func_help ()
2115 {
2116 $debug_cmd
2117
2118 func_usage_message
2119 $ECHO "$long_help_message
2120
2121 MODE must be one of the following:
2122
2123 clean remove files from the build directory
2124 compile compile a source file into a libtool object
2125 execute automatically set library path, then run a program
2126 finish complete the installation of libtool libraries
2127 install install libraries or executables
2128 link create a library or an executable
2129 uninstall remove libraries from an installed directory
2130
2131 MODE-ARGS vary depending on the MODE. When passed as first option,
2132 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2133 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2134
2135 When reporting a bug, please describe a test case to reproduce it and
2136 include the following information:
2137
2138 host-triplet: $host
2139 shell: $SHELL
2140 compiler: $LTCC
2141 compiler flags: $LTCFLAGS
2142 linker: $LD (gnu? $with_gnu_ld)
2143 version: $progname $scriptversion Debian-2.4.6-14
2144 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2145 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2146
2147 Report bugs to <bug-libtool@gnu.org>.
2148 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2149 General help using GNU software: <http://www.gnu.org/gethelp/>."
2150 exit 0
2151 }
2152
2153
2154 # func_lo2o OBJECT-NAME
2155 # ---------------------
2156 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2157 # object suffix.
2158
2159 lo2o=s/\\.lo\$/.$objext/
2160 o2lo=s/\\.$objext\$/.lo/
2161
2162 if test yes = "$_G_HAVE_XSI_OPS"; then
2163 eval 'func_lo2o ()
2164 {
2165 case $1 in
2166 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2167 * ) func_lo2o_result=$1 ;;
2168 esac
2169 }'
2170
2171 # func_xform LIBOBJ-OR-SOURCE
2172 # ---------------------------
2173 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2174 # suffix to a '.lo' libtool-object suffix.
2175 eval 'func_xform ()
2176 {
2177 func_xform_result=${1%.*}.lo
2178 }'
2179 else
2180 # ...otherwise fall back to using sed.
2181 func_lo2o ()
2182 {
2183 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2184 }
2185
2186 func_xform ()
2187 {
2188 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2189 }
2190 fi
2191
2192
2193 # func_fatal_configuration ARG...
2194 # -------------------------------
8892195 # Echo program name prefixed message to standard error, followed by
8902196 # a configuration failure hint, and exit.
8912197 func_fatal_configuration ()
8922198 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
2199 func__fatal_error ${1+"$@"} \
2200 "See the $PACKAGE documentation for more information." \
2201 "Fatal configuration error."
8962202 }
8972203
8982204
8992205 # func_config
2206 # -----------
9002207 # Display the configuration for all the tags in this script.
9012208 func_config ()
9022209 {
9142221 exit $?
9152222 }
9162223
2224
9172225 # func_features
2226 # -------------
9182227 # Display the features supported by this script.
9192228 func_features ()
9202229 {
9212230 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
2231 if test yes = "$build_libtool_libs"; then
9232232 echo "enable shared libraries"
9242233 else
9252234 echo "disable shared libraries"
9262235 fi
927 if test "$build_old_libs" = yes; then
2236 if test yes = "$build_old_libs"; then
9282237 echo "enable static libraries"
9292238 else
9302239 echo "disable static libraries"
9332242 exit $?
9342243 }
9352244
936 # func_enable_tag tagname
2245
2246 # func_enable_tag TAGNAME
2247 # -----------------------
9372248 # Verify that TAGNAME is valid, and either flag an error and exit, or
9382249 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
9392250 # variable here.
9402251 func_enable_tag ()
9412252 {
942 # Global variable:
943 tagname="$1"
944
945 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
946 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
947 sed_extractcf="/$re_begincf/,/$re_endcf/p"
948
949 # Validate tagname.
950 case $tagname in
951 *[!-_A-Za-z0-9,/]*)
952 func_fatal_error "invalid tag name: $tagname"
953 ;;
954 esac
955
956 # Don't test for the "default" C tag, as we know it's
957 # there but not specially marked.
958 case $tagname in
959 CC) ;;
2253 # Global variable:
2254 tagname=$1
2255
2256 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2257 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2258 sed_extractcf=/$re_begincf/,/$re_endcf/p
2259
2260 # Validate tagname.
2261 case $tagname in
2262 *[!-_A-Za-z0-9,/]*)
2263 func_fatal_error "invalid tag name: $tagname"
2264 ;;
2265 esac
2266
2267 # Don't test for the "default" C tag, as we know it's
2268 # there but not specially marked.
2269 case $tagname in
2270 CC) ;;
9602271 *)
961 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
962 taglist="$taglist $tagname"
963
964 # Evaluate the configuration. Be careful to quote the path
965 # and the sed script, to avoid splitting on whitespace, but
966 # also don't use non-portable quotes within backquotes within
967 # quotes we have to do it in 2 steps:
968 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
969 eval "$extractedcf"
970 else
971 func_error "ignoring unknown tag $tagname"
972 fi
973 ;;
974 esac
975 }
2272 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2273 taglist="$taglist $tagname"
2274
2275 # Evaluate the configuration. Be careful to quote the path
2276 # and the sed script, to avoid splitting on whitespace, but
2277 # also don't use non-portable quotes within backquotes within
2278 # quotes we have to do it in 2 steps:
2279 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2280 eval "$extractedcf"
2281 else
2282 func_error "ignoring unknown tag $tagname"
2283 fi
2284 ;;
2285 esac
2286 }
2287
9762288
9772289 # func_check_version_match
2290 # ------------------------
9782291 # Ensure that we are using m4 macros, and libtool script from the same
9792292 # release of libtool.
9802293 func_check_version_match ()
9812294 {
982 if test "$package_revision" != "$macro_revision"; then
983 if test "$VERSION" != "$macro_version"; then
984 if test -z "$macro_version"; then
985 cat >&2 <<_LT_EOF
2295 if test "$package_revision" != "$macro_revision"; then
2296 if test "$VERSION" != "$macro_version"; then
2297 if test -z "$macro_version"; then
2298 cat >&2 <<_LT_EOF
9862299 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9872300 $progname: definition of this LT_INIT comes from an older release.
9882301 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9892302 $progname: and run autoconf again.
9902303 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
2304 else
2305 cat >&2 <<_LT_EOF
9932306 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9942307 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
9952308 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9962309 $progname: and run autoconf again.
9972310 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
2311 fi
2312 else
2313 cat >&2 <<_LT_EOF
10012314 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
10022315 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
10032316 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
10042317 $progname: of $PACKAGE $VERSION and run autoconf again.
10052318 _LT_EOF
2319 fi
2320
2321 exit $EXIT_MISMATCH
10062322 fi
1007
1008 exit $EXIT_MISMATCH
1009 fi
1010 }
1011
1012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1167 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
2323 }
2324
2325
2326 # libtool_options_prep [ARG]...
2327 # -----------------------------
2328 # Preparation for options parsed by libtool.
2329 libtool_options_prep ()
2330 {
2331 $debug_mode
2332
2333 # Option defaults:
2334 opt_config=false
2335 opt_dlopen=
2336 opt_dry_run=false
2337 opt_help=false
2338 opt_mode=
2339 opt_preserve_dup_deps=false
2340 opt_quiet=false
2341
2342 nonopt=
2343 preserve_args=
2344
2345 _G_rc_lt_options_prep=:
2346
2347 # Shorthand for --mode=foo, only valid as the first argument
2348 case $1 in
2349 clean|clea|cle|cl)
2350 shift; set dummy --mode clean ${1+"$@"}; shift
2351 ;;
2352 compile|compil|compi|comp|com|co|c)
2353 shift; set dummy --mode compile ${1+"$@"}; shift
2354 ;;
2355 execute|execut|execu|exec|exe|ex|e)
2356 shift; set dummy --mode execute ${1+"$@"}; shift
2357 ;;
2358 finish|finis|fini|fin|fi|f)
2359 shift; set dummy --mode finish ${1+"$@"}; shift
2360 ;;
2361 install|instal|insta|inst|ins|in|i)
2362 shift; set dummy --mode install ${1+"$@"}; shift
2363 ;;
2364 link|lin|li|l)
2365 shift; set dummy --mode link ${1+"$@"}; shift
2366 ;;
2367 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2368 shift; set dummy --mode uninstall ${1+"$@"}; shift
11852369 ;;
11862370 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2371 _G_rc_lt_options_prep=false
11882372 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
2373 esac
2374
2375 if $_G_rc_lt_options_prep; then
2376 # Pass back the list of options.
2377 func_quote_for_eval ${1+"$@"}
2378 libtool_options_prep_result=$func_quote_for_eval_result
11972379 fi
11982380
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
2381 $_G_rc_lt_options_prep
2382 }
2383 func_add_hook func_options_prep libtool_options_prep
2384
2385
2386 # libtool_parse_options [ARG]...
2387 # ---------------------------------
2388 # Provide handling for libtool specific options.
2389 libtool_parse_options ()
2390 {
2391 $debug_cmd
2392
2393 _G_rc_lt_parse_options=false
2394
2395 # Perform our own loop to consume as many options as possible in
2396 # each iteration.
2397 while test $# -gt 0; do
2398 _G_match_lt_parse_options=:
2399 _G_opt=$1
2400 shift
2401 case $_G_opt in
2402 --dry-run|--dryrun|-n)
2403 opt_dry_run=:
2404 ;;
2405
2406 --config) func_config ;;
2407
2408 --dlopen|-dlopen)
2409 opt_dlopen="${opt_dlopen+$opt_dlopen
2410 }$1"
2411 shift
2412 ;;
2413
2414 --preserve-dup-deps)
2415 opt_preserve_dup_deps=: ;;
2416
2417 --features) func_features ;;
2418
2419 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2420
2421 --help) opt_help=: ;;
2422
2423 --help-all) opt_help=': help-all' ;;
2424
2425 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2426 opt_mode=$1
2427 case $1 in
2428 # Valid mode arguments:
2429 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2430
2431 # Catch anything else as an error
2432 *) func_error "invalid argument for $_G_opt"
2433 exit_cmd=exit
2434 break
2435 ;;
2436 esac
2437 shift
2438 ;;
2439
2440 --no-silent|--no-quiet)
2441 opt_quiet=false
2442 func_append preserve_args " $_G_opt"
2443 ;;
2444
2445 --no-warnings|--no-warning|--no-warn)
2446 opt_warning=false
2447 func_append preserve_args " $_G_opt"
2448 ;;
2449
2450 --no-verbose)
2451 opt_verbose=false
2452 func_append preserve_args " $_G_opt"
2453 ;;
2454
2455 --silent|--quiet)
2456 opt_quiet=:
2457 opt_verbose=false
2458 func_append preserve_args " $_G_opt"
2459 ;;
2460
2461 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2462 opt_tag=$1
2463 func_append preserve_args " $_G_opt $1"
2464 func_enable_tag "$1"
2465 shift
2466 ;;
2467
2468 --verbose|-v) opt_quiet=false
2469 opt_verbose=:
2470 func_append preserve_args " $_G_opt"
2471 ;;
2472
2473 # An option not handled by this hook function:
2474 *) set dummy "$_G_opt" ${1+"$@"} ; shift
2475 _G_match_lt_parse_options=false
2476 break
2477 ;;
2478 esac
2479 $_G_match_lt_parse_options && _G_rc_lt_parse_options=:
2480 done
2481
2482 if $_G_rc_lt_parse_options; then
2483 # save modified positional parameters for caller
2484 func_quote_for_eval ${1+"$@"}
2485 libtool_parse_options_result=$func_quote_for_eval_result
12072486 fi
12082487
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
2488 $_G_rc_lt_parse_options
2489 }
2490 func_add_hook func_parse_options libtool_parse_options
2491
2492
2493
2494 # libtool_validate_options [ARG]...
2495 # ---------------------------------
2496 # Perform any sanity checks on option settings and/or unconsumed
2497 # arguments.
2498 libtool_validate_options ()
2499 {
2500 # save first non-option argument
2501 if test 0 -lt $#; then
2502 nonopt=$1
2503 shift
2504 fi
2505
2506 # preserve --debug
2507 test : = "$debug_cmd" || func_append preserve_args " --debug"
2508
2509 case $host in
2510 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2511 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2512 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2513 # don't eliminate duplications in $postdeps and $predeps
2514 opt_duplicate_compiler_generated_deps=:
2515 ;;
2516 *)
2517 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2518 ;;
2519 esac
2520
2521 $opt_help || {
2522 # Sanity checks first:
2523 func_check_version_match
2524
2525 test yes != "$build_libtool_libs" \
2526 && test yes != "$build_old_libs" \
2527 && func_fatal_configuration "not configured to build any kind of library"
2528
2529 # Darwin sucks
2530 eval std_shrext=\"$shrext_cmds\"
2531
2532 # Only execute mode is allowed to have -dlopen flags.
2533 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2534 func_error "unrecognized option '-dlopen'"
2535 $ECHO "$help" 1>&2
2536 exit $EXIT_FAILURE
2537 fi
2538
2539 # Change the help message to a mode-specific one.
2540 generic_help=$help
2541 help="Try '$progname --help --mode=$opt_mode' for more information."
2542 }
2543
2544 # Pass back the unparsed argument list
2545 func_quote_for_eval ${1+"$@"}
2546 libtool_validate_options_result=$func_quote_for_eval_result
2547 }
2548 func_add_hook func_validate_options libtool_validate_options
2549
2550
2551 # Process options as early as possible so that --help and --version
2552 # can return quickly.
2553 func_options ${1+"$@"}
2554 eval set dummy "$func_options_result"; shift
12192555
12202556
12212557
12232559 ## Main. ##
12242560 ## ----------- ##
12252561
2562 magic='%%%MAGIC variable%%%'
2563 magic_exe='%%%MAGIC EXE variable%%%'
2564
2565 # Global variables.
2566 extracted_archives=
2567 extracted_serial=0
2568
2569 # If this variable is set in any of the actions, the command in it
2570 # will be execed at the end. This prevents here-documents from being
2571 # left over by shells.
2572 exec_cmd=
2573
2574
2575 # A function that is used when there is no print builtin or printf.
2576 func_fallback_echo ()
2577 {
2578 eval 'cat <<_LTECHO_EOF
2579 $1
2580 _LTECHO_EOF'
2581 }
2582
2583 # func_generated_by_libtool
2584 # True iff stdin has been generated by Libtool. This function is only
2585 # a basic sanity check; it will hardly flush out determined imposters.
2586 func_generated_by_libtool_p ()
2587 {
2588 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2589 }
2590
12262591 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
2592 # True iff FILE is a libtool '.la' library or '.lo' object file.
12282593 # This function is only a basic sanity check; it will hardly flush out
12292594 # determined imposters.
12302595 func_lalib_p ()
12312596 {
12322597 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2598 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
12352599 }
12362600
12372601 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
2602 # True iff FILE is a libtool '.la' library or '.lo' object file.
12392603 # This function implements the same check as func_lalib_p without
12402604 # resorting to external programs. To this end, it redirects stdin and
12412605 # closes it afterwards, without saving the original file descriptor.
12422606 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
2607 # fatal anyway. Works if 'file' does not exist.
12442608 func_lalib_unsafe_p ()
12452609 {
12462610 lalib_p=no
12482612 for lalib_p_l in 1 2 3 4
12492613 do
12502614 read lalib_p_line
1251 case "$lalib_p_line" in
2615 case $lalib_p_line in
12522616 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
12532617 esac
12542618 done
12552619 exec 0<&5 5<&-
12562620 fi
1257 test "$lalib_p" = yes
2621 test yes = "$lalib_p"
12582622 }
12592623
12602624 # func_ltwrapper_script_p file
12632627 # determined imposters.
12642628 func_ltwrapper_script_p ()
12652629 {
1266 func_lalib_p "$1"
2630 test -f "$1" &&
2631 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
12672632 }
12682633
12692634 # func_ltwrapper_executable_p file
12882653 {
12892654 func_dirname_and_basename "$1" "" "."
12902655 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
2656 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
12922657 }
12932658
12942659 # func_ltwrapper_p file
13072672 # FAIL_CMD may read-access the current command in variable CMD!
13082673 func_execute_cmds ()
13092674 {
1310 $opt_debug
2675 $debug_cmd
2676
13112677 save_ifs=$IFS; IFS='~'
13122678 for cmd in $1; do
2679 IFS=$sp$nl
2680 eval cmd=\"$cmd\"
13132681 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
13152682 func_show_eval "$cmd" "${2-:}"
13162683 done
13172684 IFS=$save_ifs
13232690 # Note that it is not necessary on cygwin/mingw to append a dot to
13242691 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
13252692 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
2693 # 'FILE.' does not work on cygwin managed mounts.
13272694 func_source ()
13282695 {
1329 $opt_debug
2696 $debug_cmd
2697
13302698 case $1 in
13312699 */* | *\\*) . "$1" ;;
13322700 *) . "./$1" ;;
13532721 # store the result into func_replace_sysroot_result.
13542722 func_replace_sysroot ()
13552723 {
1356 case "$lt_sysroot:$1" in
2724 case $lt_sysroot:$1 in
13572725 ?*:"$lt_sysroot"*)
13582726 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
2727 func_replace_sysroot_result='='$func_stripname_result
13602728 ;;
13612729 *)
13622730 # Including no sysroot.
13732741 # arg is usually of the form 'gcc ...'
13742742 func_infer_tag ()
13752743 {
1376 $opt_debug
2744 $debug_cmd
2745
13772746 if test -n "$available_tags" && test -z "$tagname"; then
13782747 CC_quoted=
13792748 for arg in $CC; do
13922761 for z in $available_tags; do
13932762 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
13942763 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2764 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
13962765 CC_quoted=
13972766 for arg in $CC; do
13982767 # Double-quote args containing other shell metacharacters.
14172786 # line option must be used.
14182787 if test -z "$tagname"; then
14192788 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
2789 func_fatal_error "specify a tag with '--tag'"
14212790 # else
14222791 # func_verbose "using $tagname tagged configuration"
14232792 fi
14332802 # but don't create it if we're doing a dry run.
14342803 func_write_libtool_object ()
14352804 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
2805 write_libobj=$1
2806 if test yes = "$build_libtool_libs"; then
2807 write_lobj=\'$2\'
14392808 else
14402809 write_lobj=none
14412810 fi
14422811
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
2812 if test yes = "$build_old_libs"; then
2813 write_oldobj=\'$3\'
14452814 else
14462815 write_oldobj=none
14472816 fi
14492818 $opt_dry_run || {
14502819 cat >${write_libobj}T <<EOF
14512820 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2821 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
14532822 #
14542823 # Please DO NOT delete this file!
14552824 # It is necessary for linking the library.
14612830 non_pic_object=$write_oldobj
14622831
14632832 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
2833 $MV "${write_libobj}T" "$write_libobj"
14652834 }
14662835 }
14672836
14812850 # be empty on error (or when ARG is empty)
14822851 func_convert_core_file_wine_to_w32 ()
14832852 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
2853 $debug_cmd
2854
2855 func_convert_core_file_wine_to_w32_result=$1
14862856 if test -n "$1"; then
14872857 # Unfortunately, winepath does not exit with a non-zero error code, so we
14882858 # are forced to check the contents of stdout. On the other hand, if the
14902860 # *an error message* to stdout. So we must check for both error code of
14912861 # zero AND non-empty stdout, which explains the odd construction:
14922862 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
2863 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
14942864 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
2865 $SED -e "$sed_naive_backslashify"`
14962866 else
14972867 func_convert_core_file_wine_to_w32_result=
14982868 fi
15132883 # are convertible, then the result may be empty.
15142884 func_convert_core_path_wine_to_w32 ()
15152885 {
1516 $opt_debug
2886 $debug_cmd
2887
15172888 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
2889 func_convert_core_path_wine_to_w32_result=
15192890 if test -n "$1"; then
15202891 oldIFS=$IFS
15212892 IFS=:
15222893 for func_convert_core_path_wine_to_w32_f in $1; do
15232894 IFS=$oldIFS
15242895 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
2896 if test -n "$func_convert_core_file_wine_to_w32_result"; then
15262897 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
2898 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
15282899 else
15292900 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
15302901 fi
15532924 # environment variable; do not put it in $PATH.
15542925 func_cygpath ()
15552926 {
1556 $opt_debug
2927 $debug_cmd
2928
15572929 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
15582930 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
15592931 if test "$?" -ne 0; then
15622934 fi
15632935 else
15642936 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
2937 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
15662938 fi
15672939 }
15682940 #end: func_cygpath
15732945 # result in func_convert_core_msys_to_w32_result.
15742946 func_convert_core_msys_to_w32 ()
15752947 {
1576 $opt_debug
2948 $debug_cmd
2949
15772950 # awkward: cmd appends spaces to result
15782951 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2952 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
15802953 }
15812954 #end: func_convert_core_msys_to_w32
15822955
15872960 # func_to_host_file_result to ARG1).
15882961 func_convert_file_check ()
15892962 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
2963 $debug_cmd
2964
2965 if test -z "$2" && test -n "$1"; then
15922966 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
2967 func_error " '$1'"
15942968 func_error "Continuing, but uninstalled executables may not work."
15952969 # Fallback:
1596 func_to_host_file_result="$1"
2970 func_to_host_file_result=$1
15972971 fi
15982972 }
15992973 # end func_convert_file_check
16052979 # func_to_host_file_result to a simplistic fallback value (see below).
16062980 func_convert_path_check ()
16072981 {
1608 $opt_debug
2982 $debug_cmd
2983
16092984 if test -z "$4" && test -n "$3"; then
16102985 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
2986 func_error " '$3'"
16122987 func_error "Continuing, but uninstalled executables may not work."
16132988 # Fallback. This is a deliberately simplistic "conversion" and
16142989 # should not be "improved". See libtool.info.
16172992 func_to_host_path_result=`echo "$3" |
16182993 $SED -e "$lt_replace_pathsep_chars"`
16192994 else
1620 func_to_host_path_result="$3"
2995 func_to_host_path_result=$3
16212996 fi
16222997 fi
16232998 }
16293004 # and appending REPL if ORIG matches BACKPAT.
16303005 func_convert_path_front_back_pathsep ()
16313006 {
1632 $opt_debug
3007 $debug_cmd
3008
16333009 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
3010 $1 ) func_to_host_path_result=$3$func_to_host_path_result
16353011 ;;
16363012 esac
16373013 case $4 in
16453021 ##################################################
16463022 # $build to $host FILE NAME CONVERSION FUNCTIONS #
16473023 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
3024 # invoked via '$to_host_file_cmd ARG'
16493025 #
16503026 # In each case, ARG is the path to be converted from $build to $host format.
16513027 # Result will be available in $func_to_host_file_result.
16563032 # in func_to_host_file_result.
16573033 func_to_host_file ()
16583034 {
1659 $opt_debug
3035 $debug_cmd
3036
16603037 $to_host_file_cmd "$1"
16613038 }
16623039 # end func_to_host_file
16683045 # in (the comma separated) LAZY, no conversion takes place.
16693046 func_to_tool_file ()
16703047 {
1671 $opt_debug
3048 $debug_cmd
3049
16723050 case ,$2, in
16733051 *,"$to_tool_file_cmd",*)
16743052 func_to_tool_file_result=$1
16863064 # Copy ARG to func_to_host_file_result.
16873065 func_convert_file_noop ()
16883066 {
1689 func_to_host_file_result="$1"
3067 func_to_host_file_result=$1
16903068 }
16913069 # end func_convert_file_noop
16923070
16973075 # func_to_host_file_result.
16983076 func_convert_file_msys_to_w32 ()
16993077 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
3078 $debug_cmd
3079
3080 func_to_host_file_result=$1
17023081 if test -n "$1"; then
17033082 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
3083 func_to_host_file_result=$func_convert_core_msys_to_w32_result
17053084 fi
17063085 func_convert_file_check "$1" "$func_to_host_file_result"
17073086 }
17133092 # func_to_host_file_result.
17143093 func_convert_file_cygwin_to_w32 ()
17153094 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
3095 $debug_cmd
3096
3097 func_to_host_file_result=$1
17183098 if test -n "$1"; then
17193099 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
17203100 # LT_CYGPATH in this case.
17303110 # and a working winepath. Returns result in func_to_host_file_result.
17313111 func_convert_file_nix_to_w32 ()
17323112 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
3113 $debug_cmd
3114
3115 func_to_host_file_result=$1
17353116 if test -n "$1"; then
17363117 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
3118 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
17383119 fi
17393120 func_convert_file_check "$1" "$func_to_host_file_result"
17403121 }
17463127 # Returns result in func_to_host_file_result.
17473128 func_convert_file_msys_to_cygwin ()
17483129 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
3130 $debug_cmd
3131
3132 func_to_host_file_result=$1
17513133 if test -n "$1"; then
17523134 func_convert_core_msys_to_w32 "$1"
17533135 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
3136 func_to_host_file_result=$func_cygpath_result
17553137 fi
17563138 func_convert_file_check "$1" "$func_to_host_file_result"
17573139 }
17643146 # in func_to_host_file_result.
17653147 func_convert_file_nix_to_cygwin ()
17663148 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
3149 $debug_cmd
3150
3151 func_to_host_file_result=$1
17693152 if test -n "$1"; then
17703153 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
17713154 func_convert_core_file_wine_to_w32 "$1"
17723155 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
3156 func_to_host_file_result=$func_cygpath_result
17743157 fi
17753158 func_convert_file_check "$1" "$func_to_host_file_result"
17763159 }
17803163 #############################################
17813164 # $build to $host PATH CONVERSION FUNCTIONS #
17823165 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
3166 # invoked via '$to_host_path_cmd ARG'
17843167 #
17853168 # In each case, ARG is the path to be converted from $build to $host format.
17863169 # The result will be available in $func_to_host_path_result.
18043187 to_host_path_cmd=
18053188 func_init_to_host_path_cmd ()
18063189 {
1807 $opt_debug
3190 $debug_cmd
3191
18083192 if test -z "$to_host_path_cmd"; then
18093193 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
3194 to_host_path_cmd=func_convert_path_$func_stripname_result
18113195 fi
18123196 }
18133197
18173201 # in func_to_host_path_result.
18183202 func_to_host_path ()
18193203 {
1820 $opt_debug
3204 $debug_cmd
3205
18213206 func_init_to_host_path_cmd
18223207 $to_host_path_cmd "$1"
18233208 }
18283213 # Copy ARG to func_to_host_path_result.
18293214 func_convert_path_noop ()
18303215 {
1831 func_to_host_path_result="$1"
3216 func_to_host_path_result=$1
18323217 }
18333218 # end func_convert_path_noop
18343219
18393224 # func_to_host_path_result.
18403225 func_convert_path_msys_to_w32 ()
18413226 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
3227 $debug_cmd
3228
3229 func_to_host_path_result=$1
18443230 if test -n "$1"; then
18453231 # Remove leading and trailing path separator characters from ARG. MSYS
18463232 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
18483234 func_stripname : : "$1"
18493235 func_to_host_path_tmp1=$func_stripname_result
18503236 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
3237 func_to_host_path_result=$func_convert_core_msys_to_w32_result
18523238 func_convert_path_check : ";" \
18533239 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18543240 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
18623248 # func_to_host_file_result.
18633249 func_convert_path_cygwin_to_w32 ()
18643250 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
3251 $debug_cmd
3252
3253 func_to_host_path_result=$1
18673254 if test -n "$1"; then
18683255 # See func_convert_path_msys_to_w32:
18693256 func_stripname : : "$1"
18823269 # a working winepath. Returns result in func_to_host_file_result.
18833270 func_convert_path_nix_to_w32 ()
18843271 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
3272 $debug_cmd
3273
3274 func_to_host_path_result=$1
18873275 if test -n "$1"; then
18883276 # See func_convert_path_msys_to_w32:
18893277 func_stripname : : "$1"
18903278 func_to_host_path_tmp1=$func_stripname_result
18913279 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
3280 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
18933281 func_convert_path_check : ";" \
18943282 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18953283 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
19033291 # Returns result in func_to_host_file_result.
19043292 func_convert_path_msys_to_cygwin ()
19053293 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
3294 $debug_cmd
3295
3296 func_to_host_path_result=$1
19083297 if test -n "$1"; then
19093298 # See func_convert_path_msys_to_w32:
19103299 func_stripname : : "$1"
19113300 func_to_host_path_tmp1=$func_stripname_result
19123301 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
19133302 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
3303 func_to_host_path_result=$func_cygpath_result
19153304 func_convert_path_check : : \
19163305 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19173306 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19263315 # func_to_host_file_result.
19273316 func_convert_path_nix_to_cygwin ()
19283317 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
3318 $debug_cmd
3319
3320 func_to_host_path_result=$1
19313321 if test -n "$1"; then
19323322 # Remove leading and trailing path separator characters from
19333323 # ARG. msys behavior is inconsistent here, cygpath turns them
19363326 func_to_host_path_tmp1=$func_stripname_result
19373327 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
19383328 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
3329 func_to_host_path_result=$func_cygpath_result
19403330 func_convert_path_check : : \
19413331 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19423332 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19453335 # end func_convert_path_nix_to_cygwin
19463336
19473337
3338 # func_dll_def_p FILE
3339 # True iff FILE is a Windows DLL '.def' file.
3340 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3341 func_dll_def_p ()
3342 {
3343 $debug_cmd
3344
3345 func_dll_def_p_tmp=`$SED -n \
3346 -e 's/^[ ]*//' \
3347 -e '/^\(;.*\)*$/d' \
3348 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3349 -e q \
3350 "$1"`
3351 test DEF = "$func_dll_def_p_tmp"
3352 }
3353
3354
19483355 # func_mode_compile arg...
19493356 func_mode_compile ()
19503357 {
1951 $opt_debug
3358 $debug_cmd
3359
19523360 # Get the compilation command and the source file.
19533361 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
3362 srcfile=$nonopt # always keep a non-empty value in "srcfile"
19553363 suppress_opt=yes
19563364 suppress_output=
19573365 arg_mode=normal
19643372 case $arg_mode in
19653373 arg )
19663374 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
3375 lastarg=$arg
19683376 arg_mode=normal
19693377 ;;
19703378
19713379 target )
1972 libobj="$arg"
3380 libobj=$arg
19733381 arg_mode=normal
19743382 continue
19753383 ;;
19793387 case $arg in
19803388 -o)
19813389 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
3390 func_fatal_error "you cannot specify '-o' more than once"
19833391 arg_mode=target
19843392 continue
19853393 ;;
20083416 func_stripname '-Wc,' '' "$arg"
20093417 args=$func_stripname_result
20103418 lastarg=
2011 save_ifs="$IFS"; IFS=','
3419 save_ifs=$IFS; IFS=,
20123420 for arg in $args; do
2013 IFS="$save_ifs"
3421 IFS=$save_ifs
20143422 func_append_quoted lastarg "$arg"
20153423 done
2016 IFS="$save_ifs"
3424 IFS=$save_ifs
20173425 func_stripname ' ' '' "$lastarg"
20183426 lastarg=$func_stripname_result
20193427
20263434 # Accept the current argument as the source file.
20273435 # The previous "srcfile" becomes the current argument.
20283436 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
3437 lastarg=$srcfile
3438 srcfile=$arg
20313439 ;;
20323440 esac # case $arg
20333441 ;;
20423450 func_fatal_error "you must specify an argument for -Xcompile"
20433451 ;;
20443452 target)
2045 func_fatal_error "you must specify a target with \`-o'"
3453 func_fatal_error "you must specify a target with '-o'"
20463454 ;;
20473455 *)
20483456 # Get the name of the library object.
20493457 test -z "$libobj" && {
20503458 func_basename "$srcfile"
2051 libobj="$func_basename_result"
3459 libobj=$func_basename_result
20523460 }
20533461 ;;
20543462 esac
20683476 case $libobj in
20693477 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
20703478 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
3479 func_fatal_error "cannot determine name of library object from '$libobj'"
20723480 ;;
20733481 esac
20743482
20773485 for arg in $later; do
20783486 case $arg in
20793487 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
3488 test yes = "$build_libtool_libs" \
3489 || func_fatal_configuration "cannot build a shared library"
20823490 build_old_libs=no
20833491 continue
20843492 ;;
21043512 func_quote_for_eval "$libobj"
21053513 test "X$libobj" != "X$func_quote_for_eval_result" \
21063514 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
3515 && func_warning "libobj name '$libobj' may not contain shell special characters."
21083516 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
3517 objname=$func_basename_result
3518 xdir=$func_dirname_result
3519 lobj=$xdir$objdir/$objname
21123520
21133521 test -z "$base_compile" && \
21143522 func_fatal_help "you must specify a compilation command"
21153523
21163524 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
3525 if test yes = "$build_old_libs"; then
21183526 removelist="$obj $lobj $libobj ${libobj}T"
21193527 else
21203528 removelist="$lobj $libobj ${libobj}T"
21263534 pic_mode=default
21273535 ;;
21283536 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
3537 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
21303538 # non-PIC code in shared libraries is not supported
21313539 pic_mode=default
21323540 fi
21333541
21343542 # Calculate the filename of the output object if compiler does
21353543 # not support -o with -c
2136 if test "$compiler_c_o" = no; then
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2138 lockfile="$output_obj.lock"
3544 if test no = "$compiler_c_o"; then
3545 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3546 lockfile=$output_obj.lock
21393547 else
21403548 output_obj=
21413549 need_locks=no
21443552
21453553 # Lock this critical section if it is needed
21463554 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
3555 if test yes = "$need_locks"; then
21483556 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
21493557 func_echo "Waiting for $lockfile to be removed"
21503558 sleep 2
21513559 done
2152 elif test "$need_locks" = warn; then
3560 elif test warn = "$need_locks"; then
21533561 if test -f "$lockfile"; then
21543562 $ECHO "\
21553563 *** ERROR, $lockfile exists and contains:
21573565
21583566 This indicates that another process is trying to use the same
21593567 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
3568 your compiler does not support '-c' and '-o' together. If you
21613569 repeat this compilation, it may succeed, by chance, but you had better
21623570 avoid parallel builds (make -j) in this platform, or get a better
21633571 compiler."
21793587 qsrcfile=$func_quote_for_eval_result
21803588
21813589 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
3590 if test yes = "$build_libtool_libs"; then
21833591 # Without this assignment, base_compile gets emptied.
21843592 fbsd_hideous_sh_bug=$base_compile
21853593
2186 if test "$pic_mode" != no; then
3594 if test no != "$pic_mode"; then
21873595 command="$base_compile $qsrcfile $pic_flag"
21883596 else
21893597 # Don't build PIC code
22003608 func_show_eval_locale "$command" \
22013609 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
22023610
2203 if test "$need_locks" = warn &&
3611 if test warn = "$need_locks" &&
22043612 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22053613 $ECHO "\
22063614 *** ERROR, $lockfile contains:
22113619
22123620 This indicates that another process is trying to use the same
22133621 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
3622 your compiler does not support '-c' and '-o' together. If you
22153623 repeat this compilation, it may succeed, by chance, but you had better
22163624 avoid parallel builds (make -j) in this platform, or get a better
22173625 compiler."
22273635 fi
22283636
22293637 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
3638 if test yes = "$suppress_opt"; then
22313639 suppress_output=' >/dev/null 2>&1'
22323640 fi
22333641 fi
22343642
22353643 # Only build a position-dependent object if we build old libraries.
2236 if test "$build_old_libs" = yes; then
2237 if test "$pic_mode" != yes; then
3644 if test yes = "$build_old_libs"; then
3645 if test yes != "$pic_mode"; then
22383646 # Don't build PIC code
22393647 command="$base_compile $qsrcfile$pie_flag"
22403648 else
22413649 command="$base_compile $qsrcfile $pic_flag"
22423650 fi
2243 if test "$compiler_c_o" = yes; then
3651 if test yes = "$compiler_c_o"; then
22443652 func_append command " -o $obj"
22453653 fi
22463654
22493657 func_show_eval_locale "$command" \
22503658 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
22513659
2252 if test "$need_locks" = warn &&
3660 if test warn = "$need_locks" &&
22533661 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22543662 $ECHO "\
22553663 *** ERROR, $lockfile contains:
22603668
22613669 This indicates that another process is trying to use the same
22623670 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
3671 your compiler does not support '-c' and '-o' together. If you
22643672 repeat this compilation, it may succeed, by chance, but you had better
22653673 avoid parallel builds (make -j) in this platform, or get a better
22663674 compiler."
22803688 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
22813689
22823690 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
3691 if test no != "$need_locks"; then
22843692 removelist=$lockfile
22853693 $RM "$lockfile"
22863694 fi
22903698 }
22913699
22923700 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
3701 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
22943702 }
22953703
22963704 func_mode_help ()
23103718 Remove files from the build directory.
23113719
23123720 RM is the name of the program to use to delete files associated with each FILE
2313 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3721 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
23143722 to RM.
23153723
23163724 If FILE is a libtool library, object or program, all the files associated
23293737 -no-suppress do not suppress compiler output for multiple passes
23303738 -prefer-pic try to build PIC objects only
23313739 -prefer-non-pic try to build non-PIC objects only
2332 -shared do not build a \`.o' file suitable for static linking
2333 -static only build a \`.o' file suitable for static linking
3740 -shared do not build a '.o' file suitable for static linking
3741 -static only build a '.o' file suitable for static linking
23343742 -Wc,FLAG pass FLAG directly to the compiler
23353743
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
3744 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
23373745 from the given SOURCEFILE.
23383746
23393747 The output file name is determined by removing the directory component from
2340 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2341 library object suffix, \`.lo'."
3748 SOURCEFILE, then substituting the C source code suffix '.c' with the
3749 library object suffix, '.lo'."
23423750 ;;
23433751
23443752 execute)
23513759
23523760 -dlopen FILE add the directory containing FILE to the library path
23533761
2354 This mode sets the library path environment variable according to \`-dlopen'
3762 This mode sets the library path environment variable according to '-dlopen'
23553763 flags.
23563764
23573765 If any of the ARGS are libtool executable wrappers, then they are translated
23703778 Each LIBDIR is a directory that contains libtool libraries.
23713779
23723780 The commands that this mode executes may require superuser privileges. Use
2373 the \`--dry-run' option if you just want to see what would be executed."
3781 the '--dry-run' option if you just want to see what would be executed."
23743782 ;;
23753783
23763784 install)
23803788 Install executables or libraries.
23813789
23823790 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
3791 either the 'install' or 'cp' program.
23843792
23853793 The following components of INSTALL-COMMAND are treated specially:
23863794
24063814 -avoid-version do not add a version suffix if possible
24073815 -bindir BINDIR specify path to binaries directory (for systems where
24083816 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
3817 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
24103818 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
24113819 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
24123820 -export-symbols SYMFILE
24203828 -no-install link a not-installable executable
24213829 -no-undefined declare that a library does not refer to external symbols
24223830 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2423 -objectlist FILE Use a list of object files found in FILE to specify objects
3831 -objectlist FILE use a list of object files found in FILE to specify objects
3832 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
24243833 -precious-files-regex REGEX
24253834 don't remove output files matching REGEX
24263835 -release RELEASE specify package release information
24403849 -Xlinker FLAG pass linker-specific FLAG directly to the linker
24413850 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
24423851
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
3852 All other options (arguments beginning with '-') are ignored.
3853
3854 Every other argument is treated as a filename. Files ending in '.la' are
24463855 treated as uninstalled libtool libraries, other files are standard or library
24473856 object files.
24483857
2449 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2450 only library objects (\`.lo' files) may be specified, and \`-rpath' is
3858 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3859 only library objects ('.lo' files) may be specified, and '-rpath' is
24513860 required, except when creating a convenience library.
24523861
2453 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2454 using \`ar' and \`ranlib', or on Windows using \`lib'.
2455
2456 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
3862 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3863 using 'ar' and 'ranlib', or on Windows using 'lib'.
3864
3865 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
24573866 is created, otherwise an executable program is created."
24583867 ;;
24593868
24643873 Remove libraries from an installation directory.
24653874
24663875 RM is the name of the program to use to delete files associated with each FILE
2467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3876 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
24683877 to RM.
24693878
24703879 If FILE is a libtool library, all the files associated with it are deleted.
24723881 ;;
24733882
24743883 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
3884 func_fatal_help "invalid operation mode '$opt_mode'"
24763885 ;;
24773886 esac
24783887
24793888 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
3889 $ECHO "Try '$progname --help' for more information about other modes."
24813890 }
24823891
24833892 # Now that we've collected a possible --mode arg, show help if necessary
24843893 if $opt_help; then
2485 if test "$opt_help" = :; then
3894 if test : = "$opt_help"; then
24863895 func_mode_help
24873896 else
24883897 {
24903899 for opt_mode in compile link execute install finish uninstall clean; do
24913900 func_mode_help
24923901 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
3902 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
24943903 {
24953904 func_help noexit
24963905 for opt_mode in compile link execute install finish uninstall clean; do
24983907 func_mode_help
24993908 done
25003909 } |
2501 sed '1d
3910 $SED '1d
25023911 /^When reporting/,/^Report/{
25033912 H
25043913 d
25153924 # func_mode_execute arg...
25163925 func_mode_execute ()
25173926 {
2518 $opt_debug
3927 $debug_cmd
3928
25193929 # The first argument is the command name.
2520 cmd="$nonopt"
3930 cmd=$nonopt
25213931 test -z "$cmd" && \
25223932 func_fatal_help "you must specify a COMMAND"
25233933
25243934 # Handle -dlopen flags immediately.
25253935 for file in $opt_dlopen; do
25263936 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
3937 || func_fatal_help "'$file' is not a file"
25283938
25293939 dir=
25303940 case $file in
25343944
25353945 # Check to see that this really is a libtool archive.
25363946 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
3947 || func_fatal_help "'$lib' is not a valid libtool archive"
25383948
25393949 # Read the libtool library.
25403950 dlname=
25453955 if test -z "$dlname"; then
25463956 # Warn if it was a shared library.
25473957 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
3958 func_warning "'$file' was not linked with '-export-dynamic'"
25493959 continue
25503960 fi
25513961
25523962 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
3963 dir=$func_dirname_result
25543964
25553965 if test -f "$dir/$objdir/$dlname"; then
25563966 func_append dir "/$objdir"
25573967 else
25583968 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
3969 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
25603970 fi
25613971 fi
25623972 ;;
25643974 *.lo)
25653975 # Just add the directory containing the .lo file.
25663976 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
3977 dir=$func_dirname_result
25683978 ;;
25693979
25703980 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
3981 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
25723982 continue
25733983 ;;
25743984 esac
25753985
25763986 # Get the absolute pathname.
25773987 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
3988 test -n "$absdir" && dir=$absdir
25793989
25803990 # Now add the directory to shlibpath_var.
25813991 if eval "test -z \"\$$shlibpath_var\""; then
25873997
25883998 # This variable tells wrapper scripts just to set shlibpath_var
25893999 # rather than running their programs.
2590 libtool_execute_magic="$magic"
4000 libtool_execute_magic=$magic
25914001
25924002 # Check if any of the arguments is a wrapper script.
25934003 args=
26004010 if func_ltwrapper_script_p "$file"; then
26014011 func_source "$file"
26024012 # Transform arg to wrapped name.
2603 file="$progdir/$program"
4013 file=$progdir/$program
26044014 elif func_ltwrapper_executable_p "$file"; then
26054015 func_ltwrapper_scriptname "$file"
26064016 func_source "$func_ltwrapper_scriptname_result"
26074017 # Transform arg to wrapped name.
2608 file="$progdir/$program"
4018 file=$progdir/$program
26094019 fi
26104020 ;;
26114021 esac
26134023 func_append_quoted args "$file"
26144024 done
26154025
2616 if test "X$opt_dry_run" = Xfalse; then
4026 if $opt_dry_run; then
4027 # Display what would be done.
4028 if test -n "$shlibpath_var"; then
4029 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
4030 echo "export $shlibpath_var"
4031 fi
4032 $ECHO "$cmd$args"
4033 exit $EXIT_SUCCESS
4034 else
26174035 if test -n "$shlibpath_var"; then
26184036 # Export the shlibpath_var.
26194037 eval "export $shlibpath_var"
26304048 done
26314049
26324050 # Now prepare to actually exec the command.
2633 exec_cmd="\$cmd$args"
2634 else
2635 # Display what would be done.
2636 if test -n "$shlibpath_var"; then
2637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2638 echo "export $shlibpath_var"
2639 fi
2640 $ECHO "$cmd$args"
2641 exit $EXIT_SUCCESS
4051 exec_cmd=\$cmd$args
26424052 fi
26434053 }
26444054
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
4055 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
26464056
26474057
26484058 # func_mode_finish arg...
26494059 func_mode_finish ()
26504060 {
2651 $opt_debug
4061 $debug_cmd
4062
26524063 libs=
26534064 libdirs=
26544065 admincmds=
26624073 if func_lalib_unsafe_p "$opt"; then
26634074 func_append libs " $opt"
26644075 else
2665 func_warning "\`$opt' is not a valid libtool archive"
4076 func_warning "'$opt' is not a valid libtool archive"
26664077 fi
26674078
26684079 else
2669 func_fatal_error "invalid argument \`$opt'"
4080 func_fatal_error "invalid argument '$opt'"
26704081 fi
26714082 done
26724083
26814092 # Remove sysroot references
26824093 if $opt_dry_run; then
26834094 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
4095 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
26854096 done
26864097 else
26874098 tmpdir=`func_mktempdir`
26884099 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4100 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26904101 > $tmpdir/tmp-la
26914102 mv -f $tmpdir/tmp-la $lib
26924103 done
27114122 fi
27124123
27134124 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
2715
4125 $opt_quiet && exit $EXIT_SUCCESS
4126
4127 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4128 echo "----------------------------------------------------------------------"
4129 echo "Libraries have been installed in:"
4130 for libdir in $libdirs; do
4131 $ECHO " $libdir"
4132 done
4133 echo
4134 echo "If you ever happen to want to link against installed libraries"
4135 echo "in a given directory, LIBDIR, you must either use libtool, and"
4136 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4137 echo "flag during linking and do at least one of the following:"
4138 if test -n "$shlibpath_var"; then
4139 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4140 echo " during execution"
4141 fi
4142 if test -n "$runpath_var"; then
4143 echo " - add LIBDIR to the '$runpath_var' environment variable"
4144 echo " during linking"
4145 fi
4146 if test -n "$hardcode_libdir_flag_spec"; then
4147 libdir=LIBDIR
4148 eval flag=\"$hardcode_libdir_flag_spec\"
4149
4150 $ECHO " - use the '$flag' linker flag"
4151 fi
4152 if test -n "$admincmds"; then
4153 $ECHO " - have your system administrator run these commands:$admincmds"
4154 fi
4155 if test -f /etc/ld.so.conf; then
4156 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4157 fi
4158 echo
4159
4160 echo "See any operating system documentation about shared libraries for"
4161 case $host in
4162 solaris2.[6789]|solaris2.1[0-9])
4163 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
4164 echo "pages."
4165 ;;
4166 *)
4167 echo "more information, such as the ld(1) and ld.so(8) manual pages."
4168 ;;
4169 esac
4170 echo "----------------------------------------------------------------------"
4171 fi
27164172 exit $EXIT_SUCCESS
27174173 }
27184174
2719 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
4175 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
27204176
27214177
27224178 # func_mode_install arg...
27234179 func_mode_install ()
27244180 {
2725 $opt_debug
4181 $debug_cmd
4182
27264183 # There may be an optional sh(1) argument at the beginning of
27274184 # install_prog (especially on Windows NT).
2728 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
4185 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
27294186 # Allow the use of GNU shtool's install command.
2730 case $nonopt in *shtool*) :;; *) false;; esac; then
4187 case $nonopt in *shtool*) :;; *) false;; esac
4188 then
27314189 # Aesthetically quote it.
27324190 func_quote_for_eval "$nonopt"
27334191 install_prog="$func_quote_for_eval_result "
27544212 opts=
27554213 prev=
27564214 install_type=
2757 isdir=no
4215 isdir=false
27584216 stripme=
27594217 no_mode=:
27604218 for arg
27674225 fi
27684226
27694227 case $arg in
2770 -d) isdir=yes ;;
4228 -d) isdir=: ;;
27714229 -f)
27724230 if $install_cp; then :; else
27734231 prev=$arg
27854243 *)
27864244 # If the previous option needed an argument, then skip it.
27874245 if test -n "$prev"; then
2788 if test "x$prev" = x-m && test -n "$install_override_mode"; then
4246 if test X-m = "X$prev" && test -n "$install_override_mode"; then
27894247 arg2=$install_override_mode
27904248 no_mode=false
27914249 fi
28054263 fi
28064264 func_append install_shared_prog " $func_quote_for_eval_result"
28074265 done
2808 case " $install_prog " in
2809 *[\\\ /]cp\ *) extra_mode=;;
2810 *) extra_mode='-m 644';;
2811 esac
28124266
28134267 test -z "$install_prog" && \
28144268 func_fatal_help "you must specify an install program"
28154269
28164270 test -n "$prev" && \
2817 func_fatal_help "the \`$prev' option requires an argument"
4271 func_fatal_help "the '$prev' option requires an argument"
28184272
28194273 if test -n "$install_override_mode" && $no_mode; then
28204274 if $install_cp; then :; else
28364290 dest=$func_stripname_result
28374291
28384292 # Check to see that the destination is a directory.
2839 test -d "$dest" && isdir=yes
2840 if test "$isdir" = yes; then
2841 destdir="$dest"
4293 test -d "$dest" && isdir=:
4294 if $isdir; then
4295 destdir=$dest
28424296 destname=
28434297 else
28444298 func_dirname_and_basename "$dest" "" "."
2845 destdir="$func_dirname_result"
2846 destname="$func_basename_result"
4299 destdir=$func_dirname_result
4300 destname=$func_basename_result
28474301
28484302 # Not a directory, so check to see that there is only one file specified.
28494303 set dummy $files; shift
28504304 test "$#" -gt 1 && \
2851 func_fatal_help "\`$dest' is not a directory"
4305 func_fatal_help "'$dest' is not a directory"
28524306 fi
28534307 case $destdir in
28544308 [\\/]* | [A-Za-z]:[\\/]*) ;;
28574311 case $file in
28584312 *.lo) ;;
28594313 *)
2860 func_fatal_help "\`$destdir' must be an absolute directory name"
4314 func_fatal_help "'$destdir' must be an absolute directory name"
28614315 ;;
28624316 esac
28634317 done
28664320
28674321 # This variable tells wrapper scripts just to set variables rather
28684322 # than running their programs.
2869 libtool_install_magic="$magic"
4323 libtool_install_magic=$magic
28704324
28714325 staticlibs=
28724326 future_libdirs=
28864340
28874341 # Check to see that this really is a libtool archive.
28884342 func_lalib_unsafe_p "$file" \
2889 || func_fatal_help "\`$file' is not a valid libtool archive"
4343 || func_fatal_help "'$file' is not a valid libtool archive"
28904344
28914345 library_names=
28924346 old_library=
29084362 fi
29094363
29104364 func_dirname "$file" "/" ""
2911 dir="$func_dirname_result"
4365 dir=$func_dirname_result
29124366 func_append dir "$objdir"
29134367
29144368 if test -n "$relink_command"; then
29224376 # are installed into $libdir/../bin (currently, that works fine)
29234377 # but it's something to keep an eye on.
29244378 test "$inst_prefix_dir" = "$destdir" && \
2925 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
4379 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
29264380
29274381 if test -n "$inst_prefix_dir"; then
29284382 # Stick the inst_prefix_dir data into the link command.
29314385 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
29324386 fi
29334387
2934 func_warning "relinking \`$file'"
4388 func_warning "relinking '$file'"
29354389 func_show_eval "$relink_command" \
2936 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
4390 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
29374391 fi
29384392
29394393 # See the names of the shared library.
29404394 set dummy $library_names; shift
29414395 if test -n "$1"; then
2942 realname="$1"
4396 realname=$1
29434397 shift
29444398
2945 srcname="$realname"
2946 test -n "$relink_command" && srcname="$realname"T
4399 srcname=$realname
4400 test -n "$relink_command" && srcname=${realname}T
29474401
29484402 # Install the shared library and build the symlinks.
2949 func_show_eval "$install_shared_prog $extra_mode $dir/$srcname $destdir/$realname" \
4403 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
29504404 'exit $?'
2951 tstripme="$stripme"
4405 tstripme=$stripme
29524406 case $host_os in
29534407 cygwin* | mingw* | pw32* | cegcc*)
29544408 case $realname in
29554409 *.dll.a)
2956 tstripme=""
4410 tstripme=
4411 ;;
4412 esac
4413 ;;
4414 os2*)
4415 case $realname in
4416 *_dll.a)
4417 tstripme=
29574418 ;;
29584419 esac
29594420 ;;
29644425
29654426 if test "$#" -gt 0; then
29664427 # Delete the old symlinks, and create new ones.
2967 # Try `ln -sf' first, because the `ln' binary might depend on
4428 # Try 'ln -sf' first, because the 'ln' binary might depend on
29684429 # the symlink we replace! Solaris /bin/ln does not understand -f,
29694430 # so we also need to try rm && ln -s.
29704431 for linkname
29754436 fi
29764437
29774438 # Do each command in the postinstall commands.
2978 lib="$destdir/$realname"
4439 lib=$destdir/$realname
29794440 func_execute_cmds "$postinstall_cmds" 'exit $?'
29804441 fi
29814442
29824443 # Install the pseudo-library for information purposes.
29834444 func_basename "$file"
2984 name="$func_basename_result"
2985 instname="$dir/$name"i
2986 func_show_eval "$install_prog $extra_mode $instname $destdir/$name" 'exit $?'
4445 name=$func_basename_result
4446 instname=$dir/${name}i
4447 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
29874448
29884449 # Maybe install the static library, too.
29894450 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
29944455
29954456 # Figure out destination file name, if it wasn't already specified.
29964457 if test -n "$destname"; then
2997 destfile="$destdir/$destname"
4458 destfile=$destdir/$destname
29984459 else
29994460 func_basename "$file"
3000 destfile="$func_basename_result"
3001 destfile="$destdir/$destfile"
4461 destfile=$func_basename_result
4462 destfile=$destdir/$destfile
30024463 fi
30034464
30044465 # Deduce the name of the destination old-style object file.
30084469 staticdest=$func_lo2o_result
30094470 ;;
30104471 *.$objext)
3011 staticdest="$destfile"
4472 staticdest=$destfile
30124473 destfile=
30134474 ;;
30144475 *)
3015 func_fatal_help "cannot copy a libtool object to \`$destfile'"
4476 func_fatal_help "cannot copy a libtool object to '$destfile'"
30164477 ;;
30174478 esac
30184479
30194480 # Install the libtool object if requested.
30204481 test -n "$destfile" && \
3021 func_show_eval "$install_prog $extra_mode $file $destfile" 'exit $?'
4482 func_show_eval "$install_prog $file $destfile" 'exit $?'
30224483
30234484 # Install the old object if enabled.
3024 if test "$build_old_libs" = yes; then
4485 if test yes = "$build_old_libs"; then
30254486 # Deduce the name of the old-style object file.
30264487 func_lo2o "$file"
30274488 staticobj=$func_lo2o_result
3028 func_show_eval "$install_prog $extra_mode \$staticobj \$staticdest" 'exit $?'
4489 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
30294490 fi
30304491 exit $EXIT_SUCCESS
30314492 ;;
30334494 *)
30344495 # Figure out destination file name, if it wasn't already specified.
30354496 if test -n "$destname"; then
3036 destfile="$destdir/$destname"
4497 destfile=$destdir/$destname
30374498 else
30384499 func_basename "$file"
3039 destfile="$func_basename_result"
3040 destfile="$destdir/$destfile"
4500 destfile=$func_basename_result
4501 destfile=$destdir/$destfile
30414502 fi
30424503
30434504 # If the file is missing, and there is a .exe on the end, strip it
30444505 # because it is most likely a libtool script we actually want to
30454506 # install
3046 stripped_ext=""
4507 stripped_ext=
30474508 case $file in
30484509 *.exe)
30494510 if test ! -f "$file"; then
30504511 func_stripname '' '.exe' "$file"
30514512 file=$func_stripname_result
3052 stripped_ext=".exe"
4513 stripped_ext=.exe
30534514 fi
30544515 ;;
30554516 esac
30774538
30784539 # Check the variables that should have been set.
30794540 test -z "$generated_by_libtool_version" && \
3080 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3081
3082 finalize=yes
4541 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4542
4543 finalize=:
30834544 for lib in $notinst_deplibs; do
30844545 # Check to see that each library is installed.
30854546 libdir=
30864547 if test -f "$lib"; then
30874548 func_source "$lib"
30884549 fi
3089 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
4550 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
30904551 if test -n "$libdir" && test ! -f "$libfile"; then
3091 func_warning "\`$lib' has not been installed in \`$libdir'"
3092 finalize=no
4552 func_warning "'$lib' has not been installed in '$libdir'"
4553 finalize=false
30934554 fi
30944555 done
30954556
30974558 func_source "$wrapper"
30984559
30994560 outputname=
3100 if test "$fast_install" = no && test -n "$relink_command"; then
4561 if test no = "$fast_install" && test -n "$relink_command"; then
31014562 $opt_dry_run || {
3102 if test "$finalize" = yes; then
4563 if $finalize; then
31034564 tmpdir=`func_mktempdir`
31044565 func_basename "$file$stripped_ext"
3105 file="$func_basename_result"
3106 outputname="$tmpdir/$file"
4566 file=$func_basename_result
4567 outputname=$tmpdir/$file
31074568 # Replace the output file specification.
31084569 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
31094570
3110 $opt_silent || {
4571 $opt_quiet || {
31114572 func_quote_for_expand "$relink_command"
31124573 eval "func_echo $func_quote_for_expand_result"
31134574 }
31144575 if eval "$relink_command"; then :
31154576 else
3116 func_error "error: relink \`$file' with the above command before installing it"
4577 func_error "error: relink '$file' with the above command before installing it"
31174578 $opt_dry_run || ${RM}r "$tmpdir"
31184579 continue
31194580 fi
3120 file="$outputname"
4581 file=$outputname
31214582 else
3122 func_warning "cannot relink \`$file'"
4583 func_warning "cannot relink '$file'"
31234584 fi
31244585 }
31254586 else
31564617
31574618 for file in $staticlibs; do
31584619 func_basename "$file"
3159 name="$func_basename_result"
4620 name=$func_basename_result
31604621
31614622 # Set up the ranlib parameters.
3162 oldlib="$destdir/$name"
4623 oldlib=$destdir/$name
31634624 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
31644625 tool_oldlib=$func_to_tool_file_result
31654626
31744635 done
31754636
31764637 test -n "$future_libdirs" && \
3177 func_warning "remember to run \`$progname --finish$future_libdirs'"
4638 func_warning "remember to run '$progname --finish$future_libdirs'"
31784639
31794640 if test -n "$current_libdirs"; then
31804641 # Maybe just do a dry run.
31814642 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3182 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
4643 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
31834644 else
31844645 exit $EXIT_SUCCESS
31854646 fi
31864647 }
31874648
3188 test "$opt_mode" = install && func_mode_install ${1+"$@"}
4649 test install = "$opt_mode" && func_mode_install ${1+"$@"}
31894650
31904651
31914652 # func_generate_dlsyms outputname originator pic_p
31934654 # a dlpreopen symbol table.
31944655 func_generate_dlsyms ()
31954656 {
3196 $opt_debug
3197 my_outputname="$1"
3198 my_originator="$2"
3199 my_pic_p="${3-no}"
3200 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
4657 $debug_cmd
4658
4659 my_outputname=$1
4660 my_originator=$2
4661 my_pic_p=${3-false}
4662 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
32014663 my_dlsyms=
32024664
3203 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4665 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
32044666 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3205 my_dlsyms="${my_outputname}S.c"
4667 my_dlsyms=${my_outputname}S.c
32064668 else
32074669 func_error "not configured to extract global symbols from dlpreopened files"
32084670 fi
32134675 "") ;;
32144676 *.c)
32154677 # Discover the nlist of each of the dlfiles.
3216 nlist="$output_objdir/${my_outputname}.nm"
4678 nlist=$output_objdir/$my_outputname.nm
32174679
32184680 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
32194681
32214683 func_verbose "creating $output_objdir/$my_dlsyms"
32224684
32234685 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3224 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3225 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
4686 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4687 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
32264688
32274689 #ifdef __cplusplus
32284690 extern \"C\" {
32294691 #endif
32304692
3231 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4693 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
32324694 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
32334695 #endif
32344696
32354697 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3236 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3237 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4698 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4699 /* DATA imports from DLLs on WIN32 can't be const, because runtime
32384700 relocations are performed -- see ld's documentation on pseudo-relocs. */
32394701 # define LT_DLSYM_CONST
3240 #elif defined(__osf__)
4702 #elif defined __osf__
32414703 /* This system does not cope well with relocations in const data. */
32424704 # define LT_DLSYM_CONST
32434705 #else
32444706 # define LT_DLSYM_CONST const
32454707 #endif
32464708
4709 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4710
32474711 /* External symbol declarations for the compiler. */\
32484712 "
32494713
3250 if test "$dlself" = yes; then
3251 func_verbose "generating symbol list for \`$output'"
4714 if test yes = "$dlself"; then
4715 func_verbose "generating symbol list for '$output'"
32524716
32534717 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
32544718
32564720 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
32574721 for progfile in $progfiles; do
32584722 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3259 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
4723 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
32604724 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
32614725 done
32624726
32764740
32774741 # Prepare the list of exported symbols
32784742 if test -z "$export_symbols"; then
3279 export_symbols="$output_objdir/$outputname.exp"
4743 export_symbols=$output_objdir/$outputname.exp
32804744 $opt_dry_run || {
32814745 $RM $export_symbols
3282 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4746 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
32834747 case $host in
32844748 *cygwin* | *mingw* | *cegcc* )
32854749 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
32894753 }
32904754 else
32914755 $opt_dry_run || {
3292 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4756 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
32934757 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
32944758 eval '$MV "$nlist"T "$nlist"'
32954759 case $host in
33034767 fi
33044768
33054769 for dlprefile in $dlprefiles; do
3306 func_verbose "extracting global C symbols from \`$dlprefile'"
4770 func_verbose "extracting global C symbols from '$dlprefile'"
33074771 func_basename "$dlprefile"
3308 name="$func_basename_result"
4772 name=$func_basename_result
33094773 case $host in
33104774 *cygwin* | *mingw* | *cegcc* )
33114775 # if an import library, we need to obtain dlname
33124776 if func_win32_import_lib_p "$dlprefile"; then
33134777 func_tr_sh "$dlprefile"
33144778 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3315 dlprefile_dlbasename=""
4779 dlprefile_dlbasename=
33164780 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
33174781 # Use subshell, to avoid clobbering current variable values
33184782 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3319 if test -n "$dlprefile_dlname" ; then
4783 if test -n "$dlprefile_dlname"; then
33204784 func_basename "$dlprefile_dlname"
3321 dlprefile_dlbasename="$func_basename_result"
4785 dlprefile_dlbasename=$func_basename_result
33224786 else
33234787 # no lafile. user explicitly requested -dlpreopen <import library>.
33244788 $sharedlib_from_linklib_cmd "$dlprefile"
33264790 fi
33274791 fi
33284792 $opt_dry_run || {
3329 if test -n "$dlprefile_dlbasename" ; then
4793 if test -n "$dlprefile_dlbasename"; then
33304794 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
33314795 else
33324796 func_warning "Could not compute DLL name from $name"
33824846 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
33834847 fi
33844848
4849 func_show_eval '$RM "${nlist}I"'
4850 if test -n "$global_symbol_to_import"; then
4851 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4852 fi
4853
33854854 echo >> "$output_objdir/$my_dlsyms" "\
33864855
33874856 /* The mapping between symbol names and symbols. */
33904859 void *address;
33914860 } lt_dlsymlist;
33924861 extern LT_DLSYM_CONST lt_dlsymlist
3393 lt_${my_prefix}_LTX_preloaded_symbols[];
4862 lt_${my_prefix}_LTX_preloaded_symbols[];\
4863 "
4864
4865 if test -s "$nlist"I; then
4866 echo >> "$output_objdir/$my_dlsyms" "\
4867 static void lt_syminit(void)
4868 {
4869 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4870 for (; symbol->name; ++symbol)
4871 {"
4872 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4873 echo >> "$output_objdir/$my_dlsyms" "\
4874 }
4875 }"
4876 fi
4877 echo >> "$output_objdir/$my_dlsyms" "\
33944878 LT_DLSYM_CONST lt_dlsymlist
33954879 lt_${my_prefix}_LTX_preloaded_symbols[] =
3396 {\
3397 { \"$my_originator\", (void *) 0 },"
4880 { {\"$my_originator\", (void *) 0},"
4881
4882 if test -s "$nlist"I; then
4883 echo >> "$output_objdir/$my_dlsyms" "\
4884 {\"@INIT@\", (void *) &lt_syminit},"
4885 fi
33984886
33994887 case $need_lib_prefix in
34004888 no)
34364924 *-*-hpux*)
34374925 pic_flag_for_symtable=" $pic_flag" ;;
34384926 *)
3439 if test "X$my_pic_p" != Xno; then
3440 pic_flag_for_symtable=" $pic_flag"
3441 fi
4927 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
34424928 ;;
34434929 esac
34444930 ;;
34554941 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
34564942
34574943 # Clean up the generated files.
3458 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
4944 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
34594945
34604946 # Transform the symbol file into the correct name.
3461 symfileobj="$output_objdir/${my_outputname}S.$objext"
4947 symfileobj=$output_objdir/${my_outputname}S.$objext
34624948 case $host in
34634949 *cygwin* | *mingw* | *cegcc* )
34644950 if test -f "$output_objdir/$my_outputname.def"; then
34764962 esac
34774963 ;;
34784964 *)
3479 func_fatal_error "unknown suffix for \`$my_dlsyms'"
4965 func_fatal_error "unknown suffix for '$my_dlsyms'"
34804966 ;;
34814967 esac
34824968 else
34884974 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
34894975 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
34904976 fi
4977 }
4978
4979 # func_cygming_gnu_implib_p ARG
4980 # This predicate returns with zero status (TRUE) if
4981 # ARG is a GNU/binutils-style import library. Returns
4982 # with nonzero status (FALSE) otherwise.
4983 func_cygming_gnu_implib_p ()
4984 {
4985 $debug_cmd
4986
4987 func_to_tool_file "$1" func_convert_file_msys_to_w32
4988 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
4989 test -n "$func_cygming_gnu_implib_tmp"
4990 }
4991
4992 # func_cygming_ms_implib_p ARG
4993 # This predicate returns with zero status (TRUE) if
4994 # ARG is an MS-style import library. Returns
4995 # with nonzero status (FALSE) otherwise.
4996 func_cygming_ms_implib_p ()
4997 {
4998 $debug_cmd
4999
5000 func_to_tool_file "$1" func_convert_file_msys_to_w32
5001 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
5002 test -n "$func_cygming_ms_implib_tmp"
34915003 }
34925004
34935005 # func_win32_libid arg
34995011 # Despite the name, also deal with 64 bit binaries.
35005012 func_win32_libid ()
35015013 {
3502 $opt_debug
3503 win32_libid_type="unknown"
5014 $debug_cmd
5015
5016 win32_libid_type=unknown
35045017 win32_fileres=`file -L $1 2>/dev/null`
35055018 case $win32_fileres in
35065019 *ar\ archive\ import\ library*) # definitely import
35105023 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
35115024 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
35125025 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3513 func_to_tool_file "$1" func_convert_file_msys_to_w32
3514 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3515 $SED -n -e '
5026 case $nm_interface in
5027 "MS dumpbin")
5028 if func_cygming_ms_implib_p "$1" ||
5029 func_cygming_gnu_implib_p "$1"
5030 then
5031 win32_nmres=import
5032 else
5033 win32_nmres=
5034 fi
5035 ;;
5036 *)
5037 func_to_tool_file "$1" func_convert_file_msys_to_w32
5038 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5039 $SED -n -e '
35165040 1,100{
35175041 / I /{
3518 s,.*,import,
5042 s|.*|import|
35195043 p
35205044 q
35215045 }
35225046 }'`
5047 ;;
5048 esac
35235049 case $win32_nmres in
35245050 import*) win32_libid_type="x86 archive import";;
35255051 *) win32_libid_type="x86 archive static";;
35515077 # $sharedlib_from_linklib_result
35525078 func_cygming_dll_for_implib ()
35535079 {
3554 $opt_debug
5080 $debug_cmd
5081
35555082 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
35565083 }
35575084
35685095 # specified import library.
35695096 func_cygming_dll_for_implib_fallback_core ()
35705097 {
3571 $opt_debug
5098 $debug_cmd
5099
35725100 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
35735101 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
35745102 $SED '/^Contents of section '"$match_literal"':/{
36045132 /./p' |
36055133 # we now have a list, one entry per line, of the stringified
36065134 # contents of the appropriate section of all members of the
3607 # archive which possess that section. Heuristic: eliminate
3608 # all those which have a first or second character that is
5135 # archive that possess that section. Heuristic: eliminate
5136 # all those that have a first or second character that is
36095137 # a '.' (that is, objdump's representation of an unprintable
36105138 # character.) This should work for all archives with less than
36115139 # 0x302f exports -- but will fail for DLLs whose name actually
36145142 #
36155143 # Of those that remain, print the first one.
36165144 $SED -e '/^\./d;/^.\./d;q'
3617 }
3618
3619 # func_cygming_gnu_implib_p ARG
3620 # This predicate returns with zero status (TRUE) if
3621 # ARG is a GNU/binutils-style import library. Returns
3622 # with nonzero status (FALSE) otherwise.
3623 func_cygming_gnu_implib_p ()
3624 {
3625 $opt_debug
3626 func_to_tool_file "$1" func_convert_file_msys_to_w32
3627 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3628 test -n "$func_cygming_gnu_implib_tmp"
3629 }
3630
3631 # func_cygming_ms_implib_p ARG
3632 # This predicate returns with zero status (TRUE) if
3633 # ARG is an MS-style import library. Returns
3634 # with nonzero status (FALSE) otherwise.
3635 func_cygming_ms_implib_p ()
3636 {
3637 $opt_debug
3638 func_to_tool_file "$1" func_convert_file_msys_to_w32
3639 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3640 test -n "$func_cygming_ms_implib_tmp"
36415145 }
36425146
36435147 # func_cygming_dll_for_implib_fallback ARG
36535157 # $sharedlib_from_linklib_result
36545158 func_cygming_dll_for_implib_fallback ()
36555159 {
3656 $opt_debug
3657 if func_cygming_gnu_implib_p "$1" ; then
5160 $debug_cmd
5161
5162 if func_cygming_gnu_implib_p "$1"; then
36585163 # binutils import library
36595164 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3660 elif func_cygming_ms_implib_p "$1" ; then
5165 elif func_cygming_ms_implib_p "$1"; then
36615166 # ms-generated import library
36625167 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
36635168 else
36645169 # unknown
3665 sharedlib_from_linklib_result=""
5170 sharedlib_from_linklib_result=
36665171 fi
36675172 }
36685173
36705175 # func_extract_an_archive dir oldlib
36715176 func_extract_an_archive ()
36725177 {
3673 $opt_debug
3674 f_ex_an_ar_dir="$1"; shift
3675 f_ex_an_ar_oldlib="$1"
3676 if test "$lock_old_archive_extraction" = yes; then
5178 $debug_cmd
5179
5180 f_ex_an_ar_dir=$1; shift
5181 f_ex_an_ar_oldlib=$1
5182 if test yes = "$lock_old_archive_extraction"; then
36775183 lockfile=$f_ex_an_ar_oldlib.lock
36785184 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
36795185 func_echo "Waiting for $lockfile to be removed"
36825188 fi
36835189 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
36845190 'stat=$?; rm -f "$lockfile"; exit $stat'
3685 if test "$lock_old_archive_extraction" = yes; then
5191 if test yes = "$lock_old_archive_extraction"; then
36865192 $opt_dry_run || rm -f "$lockfile"
36875193 fi
36885194 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
36965202 # func_extract_archives gentop oldlib ...
36975203 func_extract_archives ()
36985204 {
3699 $opt_debug
3700 my_gentop="$1"; shift
5205 $debug_cmd
5206
5207 my_gentop=$1; shift
37015208 my_oldlibs=${1+"$@"}
3702 my_oldobjs=""
3703 my_xlib=""
3704 my_xabs=""
3705 my_xdir=""
5209 my_oldobjs=
5210 my_xlib=
5211 my_xabs=
5212 my_xdir=
37065213
37075214 for my_xlib in $my_oldlibs; do
37085215 # Extract the objects.
37095216 case $my_xlib in
3710 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
5217 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
37115218 *) my_xabs=`pwd`"/$my_xlib" ;;
37125219 esac
37135220 func_basename "$my_xlib"
3714 my_xlib="$func_basename_result"
5221 my_xlib=$func_basename_result
37155222 my_xlib_u=$my_xlib
37165223 while :; do
37175224 case " $extracted_archives " in
37235230 esac
37245231 done
37255232 extracted_archives="$extracted_archives $my_xlib_u"
3726 my_xdir="$my_gentop/$my_xlib_u"
5233 my_xdir=$my_gentop/$my_xlib_u
37275234
37285235 func_mkdir_p "$my_xdir"
37295236
37365243 cd $my_xdir || exit $?
37375244 darwin_archive=$my_xabs
37385245 darwin_curdir=`pwd`
3739 darwin_base_archive=`basename "$darwin_archive"`
5246 func_basename "$darwin_archive"
5247 darwin_base_archive=$func_basename_result
37405248 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
37415249 if test -n "$darwin_arches"; then
37425250 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
37435251 darwin_arch=
37445252 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3745 for darwin_arch in $darwin_arches ; do
3746 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3747 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3748 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3749 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
5253 for darwin_arch in $darwin_arches; do
5254 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5255 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5256 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5257 func_extract_an_archive "`pwd`" "$darwin_base_archive"
37505258 cd "$darwin_curdir"
3751 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
5259 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
37525260 done # $darwin_arches
37535261 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3754 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
5262 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
37555263 darwin_file=
37565264 darwin_files=
37575265 for darwin_file in $darwin_filelist; do
37735281 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
37745282 done
37755283
3776 func_extract_archives_result="$my_oldobjs"
5284 func_extract_archives_result=$my_oldobjs
37775285 }
37785286
37795287
37885296 #
37895297 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
37905298 # variable will take. If 'yes', then the emitted script
3791 # will assume that the directory in which it is stored is
5299 # will assume that the directory where it is stored is
37925300 # the $objdir directory. This is a cygwin/mingw-specific
37935301 # behavior.
37945302 func_emit_wrapper ()
37995307 #! $SHELL
38005308
38015309 # $output - temporary wrapper script for $objdir/$outputname
3802 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5310 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
38035311 #
38045312 # The $output program cannot be directly executed until all the libtool
38055313 # libraries that it depends on are installed.
38565364
38575365 # Very basic option parsing. These options are (a) specific to
38585366 # the libtool wrapper, (b) are identical between the wrapper
3859 # /script/ and the wrapper /executable/ which is used only on
5367 # /script/ and the wrapper /executable/ that is used only on
38605368 # windows platforms, and (c) all begin with the string "--lt-"
3861 # (application programs are unlikely to have options which match
5369 # (application programs are unlikely to have options that match
38625370 # this pattern).
38635371 #
38645372 # There are only two supported options: --lt-debug and
38915399
38925400 # Print the debug banner immediately:
38935401 if test -n \"\$lt_option_debug\"; then
3894 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
5402 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
38955403 fi
38965404 }
38975405
39025410 lt_dump_args_N=1;
39035411 for lt_arg
39045412 do
3905 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
5413 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
39065414 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
39075415 done
39085416 }
39165424 *-*-mingw | *-*-os2* | *-cegcc*)
39175425 $ECHO "\
39185426 if test -n \"\$lt_option_debug\"; then
3919 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
5427 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
39205428 func_lt_dump_args \${1+\"\$@\"} 1>&2
39215429 fi
39225430 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
39265434 *)
39275435 $ECHO "\
39285436 if test -n \"\$lt_option_debug\"; then
3929 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
5437 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
39305438 func_lt_dump_args \${1+\"\$@\"} 1>&2
39315439 fi
39325440 exec \"\$progdir/\$program\" \${1+\"\$@\"}
40015509 test -n \"\$absdir\" && thisdir=\"\$absdir\"
40025510 "
40035511
4004 if test "$fast_install" = yes; then
5512 if test yes = "$fast_install"; then
40055513 $ECHO "\
40065514 program=lt-'$outputname'$exeext
40075515 progdir=\"\$thisdir/$objdir\"
40085516
40095517 if test ! -f \"\$progdir/\$program\" ||
4010 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5518 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
40115519 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
40125520
40135521 file=\"\$\$-\$program\"
40245532 if test -n \"\$relink_command\"; then
40255533 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
40265534 else
4027 $ECHO \"\$relink_command_output\" >&2
5535 \$ECHO \"\$relink_command_output\" >&2
40285536 $RM \"\$progdir/\$file\"
40295537 exit 1
40305538 fi
40595567 fi
40605568
40615569 # Export our shlibpath_var if we have one.
4062 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5570 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
40635571 $ECHO "\
40645572 # Add our own library path to $shlibpath_var
40655573 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
40795587 fi
40805588 else
40815589 # The program doesn't exist.
4082 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5590 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
40835591 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
40845592 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
40855593 exit 1
40985606 cat <<EOF
40995607
41005608 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4101 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5609 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
41025610
41035611 The $output program cannot be directly executed until all the libtool
41045612 libraries that it depends on are installed.
41335641 #include <fcntl.h>
41345642 #include <sys/stat.h>
41355643
5644 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5645
41365646 /* declarations of non-ANSI functions */
4137 #if defined(__MINGW32__)
5647 #if defined __MINGW32__
41385648 # ifdef __STRICT_ANSI__
41395649 int _putenv (const char *);
41405650 # endif
4141 #elif defined(__CYGWIN__)
5651 #elif defined __CYGWIN__
41425652 # ifdef __STRICT_ANSI__
41435653 char *realpath (const char *, char *);
41445654 int putenv (char *);
41455655 int setenv (const char *, const char *, int);
41465656 # endif
4147 /* #elif defined (other platforms) ... */
5657 /* #elif defined other_platform || defined ... */
41485658 #endif
41495659
41505660 /* portability defines, excluding path handling macros */
4151 #if defined(_MSC_VER)
5661 #if defined _MSC_VER
41525662 # define setmode _setmode
41535663 # define stat _stat
41545664 # define chmod _chmod
41555665 # define getcwd _getcwd
41565666 # define putenv _putenv
41575667 # define S_IXUSR _S_IEXEC
4158 # ifndef _INTPTR_T_DEFINED
4159 # define _INTPTR_T_DEFINED
4160 # define intptr_t int
4161 # endif
4162 #elif defined(__MINGW32__)
5668 #elif defined __MINGW32__
41635669 # define setmode _setmode
41645670 # define stat _stat
41655671 # define chmod _chmod
41665672 # define getcwd _getcwd
41675673 # define putenv _putenv
4168 #elif defined(__CYGWIN__)
5674 #elif defined __CYGWIN__
41695675 # define HAVE_SETENV
41705676 # define FOPEN_WB "wb"
4171 /* #elif defined (other platforms) ... */
5677 /* #elif defined other platforms ... */
41725678 #endif
41735679
4174 #if defined(PATH_MAX)
5680 #if defined PATH_MAX
41755681 # define LT_PATHMAX PATH_MAX
4176 #elif defined(MAXPATHLEN)
5682 #elif defined MAXPATHLEN
41775683 # define LT_PATHMAX MAXPATHLEN
41785684 #else
41795685 # define LT_PATHMAX 1024
41925698 # define PATH_SEPARATOR ':'
41935699 #endif
41945700
4195 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4196 defined (__OS2__)
5701 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5702 defined __OS2__
41975703 # define HAVE_DOS_BASED_FILE_SYSTEM
41985704 # define FOPEN_WB "wb"
41995705 # ifndef DIR_SEPARATOR_2
42265732
42275733 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
42285734 #define XFREE(stale) do { \
4229 if (stale) { free ((void *) stale); stale = 0; } \
5735 if (stale) { free (stale); stale = 0; } \
42305736 } while (0)
42315737
4232 #if defined(LT_DEBUGWRAPPER)
5738 #if defined LT_DEBUGWRAPPER
42335739 static int lt_debug = 1;
42345740 #else
42355741 static int lt_debug = 0;
42585764 EOF
42595765
42605766 cat <<EOF
4261 volatile const char * MAGIC_EXE = "$magic_exe";
5767 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5768 # define externally_visible volatile
5769 #else
5770 # define externally_visible __attribute__((externally_visible)) volatile
5771 #endif
5772 externally_visible const char * MAGIC_EXE = "$magic_exe";
42625773 const char * LIB_PATH_VARNAME = "$shlibpath_var";
42635774 EOF
42645775
4265 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5776 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
42665777 func_to_host_path "$temp_rpath"
42675778 cat <<EOF
42685779 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
42865797 EOF
42875798 fi
42885799
4289 if test "$fast_install" = yes; then
5800 if test yes = "$fast_install"; then
42905801 cat <<EOF
42915802 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
42925803 EOF
43155826 char *actual_cwrapper_name;
43165827 char *target_name;
43175828 char *lt_argv_zero;
4318 intptr_t rval = 127;
5829 int rval = 127;
43195830
43205831 int i;
43215832
43225833 program_name = (char *) xstrdup (base_name (argv[0]));
4323 newargz = XMALLOC (char *, argc + 1);
5834 newargz = XMALLOC (char *, (size_t) argc + 1);
43245835
43255836 /* very simple arg parsing; don't want to rely on getopt
43265837 * also, copy all non cwrapper options to newargz, except
43295840 newargc=0;
43305841 for (i = 1; i < argc; i++)
43315842 {
4332 if (strcmp (argv[i], dumpscript_opt) == 0)
5843 if (STREQ (argv[i], dumpscript_opt))
43335844 {
43345845 EOF
4335 case "$host" in
5846 case $host in
43365847 *mingw* | *cygwin* )
43375848 # make stdout use "unix" line endings
43385849 echo " setmode(1,_O_BINARY);"
43435854 lt_dump_script (stdout);
43445855 return 0;
43455856 }
4346 if (strcmp (argv[i], debug_opt) == 0)
5857 if (STREQ (argv[i], debug_opt))
43475858 {
43485859 lt_debug = 1;
43495860 continue;
43505861 }
4351 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
5862 if (STREQ (argv[i], ltwrapper_option_prefix))
43525863 {
43535864 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
43545865 namespace, but it is not one of the ones we know about and
43715882 EOF
43725883 cat <<EOF
43735884 /* The GNU banner must be the first non-error debug message */
4374 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
5885 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
43755886 EOF
43765887 cat <<"EOF"
43775888 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
44825993 cat <<"EOF"
44835994 /* execv doesn't actually work on mingw as expected on unix */
44845995 newargz = prepare_spawn (newargz);
4485 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5996 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
44865997 if (rval == -1)
44875998 {
44885999 /* failed to start process */
45276038 {
45286039 const char *base;
45296040
4530 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6041 #if defined HAVE_DOS_BASED_FILE_SYSTEM
45316042 /* Skip over the disk name in MSDOS pathnames. */
45326043 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
45336044 name += 2;
45866097 const char *p_next;
45876098 /* static buffer for getcwd */
45886099 char tmp[LT_PATHMAX + 1];
4589 int tmp_len;
6100 size_t tmp_len;
45906101 char *concat_name;
45916102
45926103 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
45966107 return NULL;
45976108
45986109 /* Absolute path? */
4599 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6110 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46006111 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
46016112 {
46026113 concat_name = xstrdup (wrapper);
46146125 return concat_name;
46156126 XFREE (concat_name);
46166127 }
4617 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6128 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46186129 }
46196130 #endif
46206131
46376148 for (q = p; *q; q++)
46386149 if (IS_PATH_SEPARATOR (*q))
46396150 break;
4640 p_len = q - p;
6151 p_len = (size_t) (q - p);
46416152 p_next = (*q == '\0' ? q : q + 1);
46426153 if (p_len == 0)
46436154 {
47566267 if (patlen <= len)
47576268 {
47586269 str += len - patlen;
4759 if (strcmp (str, pat) == 0)
6270 if (STREQ (str, pat))
47606271 *str = '\0';
47616272 }
47626273 return str;
48216332 char *str = xstrdup (value);
48226333 setenv (name, str, 1);
48236334 #else
4824 int len = strlen (name) + 1 + strlen (value) + 1;
6335 size_t len = strlen (name) + 1 + strlen (value) + 1;
48256336 char *str = XMALLOC (char, len);
48266337 sprintf (str, "%s=%s", name, value);
48276338 if (putenv (str) != EXIT_SUCCESS)
48386349 char *new_value;
48396350 if (orig_value && *orig_value)
48406351 {
4841 int orig_value_len = strlen (orig_value);
4842 int add_len = strlen (add);
6352 size_t orig_value_len = strlen (orig_value);
6353 size_t add_len = strlen (add);
48436354 new_value = XMALLOC (char, add_len + orig_value_len + 1);
48446355 if (to_end)
48456356 {
48706381 {
48716382 char *new_value = lt_extend_str (getenv (name), value, 0);
48726383 /* some systems can't cope with a ':'-terminated path #' */
4873 int len = strlen (new_value);
4874 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6384 size_t len = strlen (new_value);
6385 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
48756386 {
4876 new_value[len-1] = '\0';
6387 new_value[--len] = '\0';
48776388 }
48786389 lt_setenv (name, new_value);
48796390 XFREE (new_value);
50406551 # True if ARG is an import lib, as indicated by $file_magic_cmd
50416552 func_win32_import_lib_p ()
50426553 {
5043 $opt_debug
6554 $debug_cmd
6555
50446556 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
50456557 *import*) : ;;
50466558 *) false ;;
50476559 esac
50486560 }
50496561
6562 # func_suncc_cstd_abi
6563 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6564 # Several compiler flags select an ABI that is incompatible with the
6565 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6566 func_suncc_cstd_abi ()
6567 {
6568 $debug_cmd
6569
6570 case " $compile_command " in
6571 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6572 suncc_use_cstd_abi=no
6573 ;;
6574 *)
6575 suncc_use_cstd_abi=yes
6576 ;;
6577 esac
6578 }
6579
50506580 # func_mode_link arg...
50516581 func_mode_link ()
50526582 {
5053 $opt_debug
6583 $debug_cmd
6584
50546585 case $host in
50556586 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
50566587 # It is impossible to link a dll without this setting, and
50576588 # we shouldn't force the makefile maintainer to figure out
5058 # which system we are compiling for in order to pass an extra
6589 # what system we are compiling for in order to pass an extra
50596590 # flag for every libtool invocation.
50606591 # allow_undefined=no
50616592
50626593 # FIXME: Unfortunately, there are problems with the above when trying
5063 # to make a dll which has undefined symbols, in which case not
6594 # to make a dll that has undefined symbols, in which case not
50646595 # even a static library is built. For now, we need to specify
50656596 # -no-undefined on the libtool link line when we can be certain
50666597 # that all symbols are satisfied, otherwise we get a static library.
51046635 module=no
51056636 no_install=no
51066637 objs=
6638 os2dllname=
51076639 non_pic_objects=
51086640 precious_files_regex=
51096641 prefer_static_libs=no
5110 preload=no
6642 preload=false
51116643 prev=
51126644 prevarg=
51136645 release=
51196651 vinfo=
51206652 vinfo_number=no
51216653 weak_libs=
5122 single_module="${wl}-single_module"
6654 single_module=$wl-single_module
51236655 func_infer_tag $base_compile
51246656
51256657 # We need to know -static, to get the right output filenames.
51276659 do
51286660 case $arg in
51296661 -shared)
5130 test "$build_libtool_libs" != yes && \
5131 func_fatal_configuration "can not build a shared library"
6662 test yes != "$build_libtool_libs" \
6663 && func_fatal_configuration "cannot build a shared library"
51326664 build_old_libs=no
51336665 break
51346666 ;;
51356667 -all-static | -static | -static-libtool-libs)
51366668 case $arg in
51376669 -all-static)
5138 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
6670 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
51396671 func_warning "complete static linking is impossible in this configuration"
51406672 fi
51416673 if test -n "$link_static_flag"; then
51686700
51696701 # Go through the arguments, transforming them on the way.
51706702 while test "$#" -gt 0; do
5171 arg="$1"
6703 arg=$1
51726704 shift
51736705 func_quote_for_eval "$arg"
51746706 qarg=$func_quote_for_eval_unquoted_result
51856717
51866718 case $prev in
51876719 bindir)
5188 bindir="$arg"
6720 bindir=$arg
51896721 prev=
51906722 continue
51916723 ;;
51926724 dlfiles|dlprefiles)
5193 if test "$preload" = no; then
6725 $preload || {
51946726 # Add the symbol object into the linking commands.
51956727 func_append compile_command " @SYMFILE@"
51966728 func_append finalize_command " @SYMFILE@"
5197 preload=yes
5198 fi
6729 preload=:
6730 }
51996731 case $arg in
52006732 *.la | *.lo) ;; # We handle these cases below.
52016733 force)
5202 if test "$dlself" = no; then
6734 if test no = "$dlself"; then
52036735 dlself=needless
52046736 export_dynamic=yes
52056737 fi
52076739 continue
52086740 ;;
52096741 self)
5210 if test "$prev" = dlprefiles; then
6742 if test dlprefiles = "$prev"; then
52116743 dlself=yes
5212 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
6744 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
52136745 dlself=yes
52146746 else
52156747 dlself=needless
52196751 continue
52206752 ;;
52216753 *)
5222 if test "$prev" = dlfiles; then
6754 if test dlfiles = "$prev"; then
52236755 func_append dlfiles " $arg"
52246756 else
52256757 func_append dlprefiles " $arg"
52306762 esac
52316763 ;;
52326764 expsyms)
5233 export_symbols="$arg"
6765 export_symbols=$arg
52346766 test -f "$arg" \
5235 || func_fatal_error "symbol file \`$arg' does not exist"
6767 || func_fatal_error "symbol file '$arg' does not exist"
52366768 prev=
52376769 continue
52386770 ;;
52396771 expsyms_regex)
5240 export_symbols_regex="$arg"
6772 export_symbols_regex=$arg
52416773 prev=
52426774 continue
52436775 ;;
52556787 continue
52566788 ;;
52576789 inst_prefix)
5258 inst_prefix_dir="$arg"
6790 inst_prefix_dir=$arg
6791 prev=
6792 continue
6793 ;;
6794 mllvm)
6795 # Clang does not use LLVM to link, so we can simply discard any
6796 # '-mllvm $arg' options when doing the link step.
52596797 prev=
52606798 continue
52616799 ;;
52796817
52806818 if test -z "$pic_object" ||
52816819 test -z "$non_pic_object" ||
5282 test "$pic_object" = none &&
5283 test "$non_pic_object" = none; then
5284 func_fatal_error "cannot find name of object for \`$arg'"
6820 test none = "$pic_object" &&
6821 test none = "$non_pic_object"; then
6822 func_fatal_error "cannot find name of object for '$arg'"
52856823 fi
52866824
52876825 # Extract subdirectory from the argument.
52886826 func_dirname "$arg" "/" ""
5289 xdir="$func_dirname_result"
5290
5291 if test "$pic_object" != none; then
6827 xdir=$func_dirname_result
6828
6829 if test none != "$pic_object"; then
52926830 # Prepend the subdirectory the object is found in.
5293 pic_object="$xdir$pic_object"
5294
5295 if test "$prev" = dlfiles; then
5296 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
6831 pic_object=$xdir$pic_object
6832
6833 if test dlfiles = "$prev"; then
6834 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
52976835 func_append dlfiles " $pic_object"
52986836 prev=
52996837 continue
53046842 fi
53056843
53066844 # CHECK ME: I think I busted this. -Ossama
5307 if test "$prev" = dlprefiles; then
6845 if test dlprefiles = "$prev"; then
53086846 # Preload the old-style object.
53096847 func_append dlprefiles " $pic_object"
53106848 prev=
53126850
53136851 # A PIC object.
53146852 func_append libobjs " $pic_object"
5315 arg="$pic_object"
6853 arg=$pic_object
53166854 fi
53176855
53186856 # Non-PIC object.
5319 if test "$non_pic_object" != none; then
6857 if test none != "$non_pic_object"; then
53206858 # Prepend the subdirectory the object is found in.
5321 non_pic_object="$xdir$non_pic_object"
6859 non_pic_object=$xdir$non_pic_object
53226860
53236861 # A standard non-PIC object
53246862 func_append non_pic_objects " $non_pic_object"
5325 if test -z "$pic_object" || test "$pic_object" = none ; then
5326 arg="$non_pic_object"
6863 if test -z "$pic_object" || test none = "$pic_object"; then
6864 arg=$non_pic_object
53276865 fi
53286866 else
53296867 # If the PIC object exists, use it instead.
53306868 # $xdir was prepended to $pic_object above.
5331 non_pic_object="$pic_object"
6869 non_pic_object=$pic_object
53326870 func_append non_pic_objects " $non_pic_object"
53336871 fi
53346872 else
53366874 if $opt_dry_run; then
53376875 # Extract subdirectory from the argument.
53386876 func_dirname "$arg" "/" ""
5339 xdir="$func_dirname_result"
6877 xdir=$func_dirname_result
53406878
53416879 func_lo2o "$arg"
53426880 pic_object=$xdir$objdir/$func_lo2o_result
53446882 func_append libobjs " $pic_object"
53456883 func_append non_pic_objects " $non_pic_object"
53466884 else
5347 func_fatal_error "\`$arg' is not a valid libtool object"
6885 func_fatal_error "'$arg' is not a valid libtool object"
53486886 fi
53496887 fi
53506888 done
53516889 else
5352 func_fatal_error "link input file \`$arg' does not exist"
6890 func_fatal_error "link input file '$arg' does not exist"
53536891 fi
53546892 arg=$save_arg
53556893 prev=
53566894 continue
53576895 ;;
6896 os2dllname)
6897 os2dllname=$arg
6898 prev=
6899 continue
6900 ;;
53586901 precious_regex)
5359 precious_files_regex="$arg"
6902 precious_files_regex=$arg
53606903 prev=
53616904 continue
53626905 ;;
53636906 release)
5364 release="-$arg"
6907 release=-$arg
53656908 prev=
53666909 continue
53676910 ;;
53736916 func_fatal_error "only absolute run-paths are allowed"
53746917 ;;
53756918 esac
5376 if test "$prev" = rpath; then
6919 if test rpath = "$prev"; then
53776920 case "$rpath " in
53786921 *" $arg "*) ;;
53796922 *) func_append rpath " $arg" ;;
53886931 continue
53896932 ;;
53906933 shrext)
5391 shrext_cmds="$arg"
6934 shrext_cmds=$arg
53926935 prev=
53936936 continue
53946937 ;;
54286971 esac
54296972 fi # test -n "$prev"
54306973
5431 prevarg="$arg"
6974 prevarg=$arg
54326975
54336976 case $arg in
54346977 -all-static)
54426985
54436986 -allow-undefined)
54446987 # FIXME: remove this flag sometime in the future.
5445 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
6988 func_fatal_error "'-allow-undefined' must not be used because it is the default"
54466989 ;;
54476990
54486991 -avoid-version)
54747017 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
54757018 func_fatal_error "more than one -exported-symbols argument is not allowed"
54767019 fi
5477 if test "X$arg" = "X-export-symbols"; then
7020 if test X-export-symbols = "X$arg"; then
54787021 prev=expsyms
54797022 else
54807023 prev=expsyms_regex
55087051 func_stripname "-L" '' "$arg"
55097052 if test -z "$func_stripname_result"; then
55107053 if test "$#" -gt 0; then
5511 func_fatal_error "require no space between \`-L' and \`$1'"
7054 func_fatal_error "require no space between '-L' and '$1'"
55127055 else
5513 func_fatal_error "need path for \`-L' option"
7056 func_fatal_error "need path for '-L' option"
55147057 fi
55157058 fi
55167059 func_resolve_sysroot "$func_stripname_result"
55217064 *)
55227065 absdir=`cd "$dir" && pwd`
55237066 test -z "$absdir" && \
5524 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5525 dir="$absdir"
7067 func_fatal_error "cannot determine absolute directory name of '$dir'"
7068 dir=$absdir
55267069 ;;
55277070 esac
55287071 case "$deplibs " in
55577100 ;;
55587101
55597102 -l*)
5560 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7103 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
55617104 case $host in
55627105 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
55637106 # These systems don't actually have a C or math library (as such)
55657108 ;;
55667109 *-*-os2*)
55677110 # These systems don't actually have a C library (as such)
5568 test "X$arg" = "X-lc" && continue
7111 test X-lc = "X$arg" && continue
55697112 ;;
5570 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7113 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
55717114 # Do not include libc due to us having libc/libc_r.
5572 test "X$arg" = "X-lc" && continue
7115 test X-lc = "X$arg" && continue
55737116 ;;
55747117 *-*-rhapsody* | *-*-darwin1.[012])
55757118 # Rhapsody C and math libraries are in the System framework
55787121 ;;
55797122 *-*-sco3.2v5* | *-*-sco5v6*)
55807123 # Causes problems with __ctype
5581 test "X$arg" = "X-lc" && continue
7124 test X-lc = "X$arg" && continue
55827125 ;;
55837126 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
55847127 # Compiler inserts libc in the correct place for threads to work
5585 test "X$arg" = "X-lc" && continue
7128 test X-lc = "X$arg" && continue
55867129 ;;
55877130 esac
5588 elif test "X$arg" = "X-lc_r"; then
7131 elif test X-lc_r = "X$arg"; then
55897132 case $host in
5590 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7133 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
55917134 # Do not include libc_r directly, use -pthread flag.
55927135 continue
55937136 ;;
55947137 esac
55957138 fi
55967139 func_append deplibs " $arg"
7140 continue
7141 ;;
7142
7143 -mllvm)
7144 prev=mllvm
55977145 continue
55987146 ;;
55997147
56187166 func_append compiler_flags " $arg"
56197167 func_append compile_command " $arg"
56207168 func_append finalize_command " $arg"
5621 func_append deplibs " $arg"
56227169 case "$new_inherited_linker_flags " in
56237170 *" $arg "*) ;;
56247171 * ) func_append new_inherited_linker_flags " $arg" ;;
56277174 ;;
56287175
56297176 -multi_module)
5630 single_module="${wl}-multi_module"
7177 single_module=$wl-multi_module
56317178 continue
56327179 ;;
56337180
56417188 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
56427189 # The PATH hackery in wrapper scripts is required on Windows
56437190 # and Darwin in order for the loader to find any dlls it needs.
5644 func_warning "\`-no-install' is ignored for $host"
5645 func_warning "assuming \`-no-fast-install' instead"
7191 func_warning "'-no-install' is ignored for $host"
7192 func_warning "assuming '-no-fast-install' instead"
56467193 fast_install=no
56477194 ;;
56487195 *) no_install=yes ;;
56577204
56587205 -objectlist)
56597206 prev=objectlist
7207 continue
7208 ;;
7209
7210 -os2dllname)
7211 prev=os2dllname
56607212 continue
56617213 ;;
56627214
57477299 func_stripname '-Wc,' '' "$arg"
57487300 args=$func_stripname_result
57497301 arg=
5750 save_ifs="$IFS"; IFS=','
7302 save_ifs=$IFS; IFS=,
57517303 for flag in $args; do
5752 IFS="$save_ifs"
7304 IFS=$save_ifs
57537305 func_quote_for_eval "$flag"
57547306 func_append arg " $func_quote_for_eval_result"
57557307 func_append compiler_flags " $func_quote_for_eval_result"
57567308 done
5757 IFS="$save_ifs"
7309 IFS=$save_ifs
57587310 func_stripname ' ' '' "$arg"
57597311 arg=$func_stripname_result
57607312 ;;
57637315 func_stripname '-Wl,' '' "$arg"
57647316 args=$func_stripname_result
57657317 arg=
5766 save_ifs="$IFS"; IFS=','
7318 save_ifs=$IFS; IFS=,
57677319 for flag in $args; do
5768 IFS="$save_ifs"
7320 IFS=$save_ifs
57697321 func_quote_for_eval "$flag"
57707322 func_append arg " $wl$func_quote_for_eval_result"
57717323 func_append compiler_flags " $wl$func_quote_for_eval_result"
57727324 func_append linker_flags " $func_quote_for_eval_result"
57737325 done
5774 IFS="$save_ifs"
7326 IFS=$save_ifs
57757327 func_stripname ' ' '' "$arg"
57767328 arg=$func_stripname_result
57777329 ;;
57947346 # -msg_* for osf cc
57957347 -msg_*)
57967348 func_quote_for_eval "$arg"
5797 arg="$func_quote_for_eval_result"
7349 arg=$func_quote_for_eval_result
57987350 ;;
57997351
58007352 # Flags to be passed through unchanged, with rationale:
58067358 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
58077359 # -F/path path to uninstalled frameworks, gcc on darwin
58087360 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7361 # -fstack-protector* stack protector flags for GCC
58097362 # @file GCC response files
58107363 # -tp=* Portland pgcc target processor selection
58117364 # --sysroot=* for sysroot support
5812 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7365 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7366 # -specs=* GCC specs files
7367 # -stdlib=* select c++ std lib with clang
7368 # -fsanitize=* Clang/GCC memory and address sanitizer
7369 # -fuse-ld=* Linker select flags for GCC
7370 # -static-* direct GCC to link specific libraries statically
7371 # -fcilkplus Cilk Plus language extension features for C/C++
58137372 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
58147373 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5815 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
7374 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7375 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus)
58167376 func_quote_for_eval "$arg"
5817 arg="$func_quote_for_eval_result"
7377 arg=$func_quote_for_eval_result
58187378 func_append compile_command " $arg"
58197379 func_append finalize_command " $arg"
58207380 func_append compiler_flags " $arg"
58217381 continue
58227382 ;;
58237383
7384 -Z*)
7385 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7386 # OS/2 uses -Zxxx to specify OS/2-specific options
7387 compiler_flags="$compiler_flags $arg"
7388 func_append compile_command " $arg"
7389 func_append finalize_command " $arg"
7390 case $arg in
7391 -Zlinker | -Zstack)
7392 prev=xcompiler
7393 ;;
7394 esac
7395 continue
7396 else
7397 # Otherwise treat like 'Some other compiler flag' below
7398 func_quote_for_eval "$arg"
7399 arg=$func_quote_for_eval_result
7400 fi
7401 ;;
7402
58247403 # Some other compiler flag.
58257404 -* | +*)
58267405 func_quote_for_eval "$arg"
5827 arg="$func_quote_for_eval_result"
7406 arg=$func_quote_for_eval_result
58287407 ;;
58297408
58307409 *.$objext)
58457424
58467425 if test -z "$pic_object" ||
58477426 test -z "$non_pic_object" ||
5848 test "$pic_object" = none &&
5849 test "$non_pic_object" = none; then
5850 func_fatal_error "cannot find name of object for \`$arg'"
7427 test none = "$pic_object" &&
7428 test none = "$non_pic_object"; then
7429 func_fatal_error "cannot find name of object for '$arg'"
58517430 fi
58527431
58537432 # Extract subdirectory from the argument.
58547433 func_dirname "$arg" "/" ""
5855 xdir="$func_dirname_result"
5856
5857 if test "$pic_object" != none; then
7434 xdir=$func_dirname_result
7435
7436 test none = "$pic_object" || {
58587437 # Prepend the subdirectory the object is found in.
5859 pic_object="$xdir$pic_object"
5860
5861 if test "$prev" = dlfiles; then
5862 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
7438 pic_object=$xdir$pic_object
7439
7440 if test dlfiles = "$prev"; then
7441 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
58637442 func_append dlfiles " $pic_object"
58647443 prev=
58657444 continue
58707449 fi
58717450
58727451 # CHECK ME: I think I busted this. -Ossama
5873 if test "$prev" = dlprefiles; then
7452 if test dlprefiles = "$prev"; then
58747453 # Preload the old-style object.
58757454 func_append dlprefiles " $pic_object"
58767455 prev=
58787457
58797458 # A PIC object.
58807459 func_append libobjs " $pic_object"
5881 arg="$pic_object"
5882 fi
7460 arg=$pic_object
7461 }
58837462
58847463 # Non-PIC object.
5885 if test "$non_pic_object" != none; then
7464 if test none != "$non_pic_object"; then
58867465 # Prepend the subdirectory the object is found in.
5887 non_pic_object="$xdir$non_pic_object"
7466 non_pic_object=$xdir$non_pic_object
58887467
58897468 # A standard non-PIC object
58907469 func_append non_pic_objects " $non_pic_object"
5891 if test -z "$pic_object" || test "$pic_object" = none ; then
5892 arg="$non_pic_object"
7470 if test -z "$pic_object" || test none = "$pic_object"; then
7471 arg=$non_pic_object
58937472 fi
58947473 else
58957474 # If the PIC object exists, use it instead.
58967475 # $xdir was prepended to $pic_object above.
5897 non_pic_object="$pic_object"
7476 non_pic_object=$pic_object
58987477 func_append non_pic_objects " $non_pic_object"
58997478 fi
59007479 else
59027481 if $opt_dry_run; then
59037482 # Extract subdirectory from the argument.
59047483 func_dirname "$arg" "/" ""
5905 xdir="$func_dirname_result"
7484 xdir=$func_dirname_result
59067485
59077486 func_lo2o "$arg"
59087487 pic_object=$xdir$objdir/$func_lo2o_result
59107489 func_append libobjs " $pic_object"
59117490 func_append non_pic_objects " $non_pic_object"
59127491 else
5913 func_fatal_error "\`$arg' is not a valid libtool object"
7492 func_fatal_error "'$arg' is not a valid libtool object"
59147493 fi
59157494 fi
59167495 ;;
59267505 # A libtool-controlled library.
59277506
59287507 func_resolve_sysroot "$arg"
5929 if test "$prev" = dlfiles; then
7508 if test dlfiles = "$prev"; then
59307509 # This library was specified with -dlopen.
59317510 func_append dlfiles " $func_resolve_sysroot_result"
59327511 prev=
5933 elif test "$prev" = dlprefiles; then
7512 elif test dlprefiles = "$prev"; then
59347513 # The library was specified with -dlpreopen.
59357514 func_append dlprefiles " $func_resolve_sysroot_result"
59367515 prev=
59457524 # Unknown arguments in both finalize_command and compile_command need
59467525 # to be aesthetically quoted because they are evaled later.
59477526 func_quote_for_eval "$arg"
5948 arg="$func_quote_for_eval_result"
7527 arg=$func_quote_for_eval_result
59497528 ;;
59507529 esac # arg
59517530
59577536 done # argument parsing loop
59587537
59597538 test -n "$prev" && \
5960 func_fatal_help "the \`$prevarg' option requires an argument"
5961
5962 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
7539 func_fatal_help "the '$prevarg' option requires an argument"
7540
7541 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
59637542 eval arg=\"$export_dynamic_flag_spec\"
59647543 func_append compile_command " $arg"
59657544 func_append finalize_command " $arg"
59687547 oldlibs=
59697548 # calculate the name of the file, without its directory
59707549 func_basename "$output"
5971 outputname="$func_basename_result"
5972 libobjs_save="$libobjs"
7550 outputname=$func_basename_result
7551 libobjs_save=$libobjs
59737552
59747553 if test -n "$shlibpath_var"; then
59757554 # get the directories listed in $shlibpath_var
5976 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
7555 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
59777556 else
59787557 shlib_search_path=
59797558 fi
59807559 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
59817560 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
59827561
7562 # Definition is injected by LT_CONFIG during libtool generation.
7563 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7564
59837565 func_dirname "$output" "/" ""
5984 output_objdir="$func_dirname_result$objdir"
7566 output_objdir=$func_dirname_result$objdir
59857567 func_to_tool_file "$output_objdir/"
59867568 tool_output_objdir=$func_to_tool_file_result
59877569 # Create the object directory.
60047586 # Find all interdependent deplibs by searching for libraries
60057587 # that are linked more than once (e.g. -la -lb -la)
60067588 for deplib in $deplibs; do
6007 if $opt_preserve_dup_deps ; then
7589 if $opt_preserve_dup_deps; then
60087590 case "$libs " in
60097591 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
60107592 esac
60127594 func_append libs " $deplib"
60137595 done
60147596
6015 if test "$linkmode" = lib; then
7597 if test lib = "$linkmode"; then
60167598 libs="$predeps $libs $compiler_lib_search_path $postdeps"
60177599
60187600 # Compute libraries that are listed more than once in $predeps
60447626 case $file in
60457627 *.la) ;;
60467628 *)
6047 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
7629 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
60487630 ;;
60497631 esac
60507632 done
60527634 prog)
60537635 compile_deplibs=
60547636 finalize_deplibs=
6055 alldeplibs=no
7637 alldeplibs=false
60567638 newdlfiles=
60577639 newdlprefiles=
60587640 passes="conv scan dlopen dlpreopen link"
60647646 for pass in $passes; do
60657647 # The preopen pass in lib mode reverses $deplibs; put it back here
60667648 # so that -L comes before libs that need it for instance...
6067 if test "$linkmode,$pass" = "lib,link"; then
7649 if test lib,link = "$linkmode,$pass"; then
60687650 ## FIXME: Find the place where the list is rebuilt in the wrong
60697651 ## order, and fix it there properly
60707652 tmp_deplibs=
60717653 for deplib in $deplibs; do
60727654 tmp_deplibs="$deplib $tmp_deplibs"
60737655 done
6074 deplibs="$tmp_deplibs"
7656 deplibs=$tmp_deplibs
60757657 fi
60767658
6077 if test "$linkmode,$pass" = "lib,link" ||
6078 test "$linkmode,$pass" = "prog,scan"; then
6079 libs="$deplibs"
7659 if test lib,link = "$linkmode,$pass" ||
7660 test prog,scan = "$linkmode,$pass"; then
7661 libs=$deplibs
60807662 deplibs=
60817663 fi
6082 if test "$linkmode" = prog; then
7664 if test prog = "$linkmode"; then
60837665 case $pass in
6084 dlopen) libs="$dlfiles" ;;
6085 dlpreopen) libs="$dlprefiles" ;;
6086 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
7666 dlopen) libs=$dlfiles ;;
7667 dlpreopen) libs=$dlprefiles ;;
7668 link)
7669 libs="$deplibs %DEPLIBS%"
7670 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7671 ;;
60877672 esac
60887673 fi
6089 if test "$linkmode,$pass" = "lib,dlpreopen"; then
7674 if test lib,dlpreopen = "$linkmode,$pass"; then
60907675 # Collect and forward deplibs of preopened libtool libs
60917676 for lib in $dlprefiles; do
60927677 # Ignore non-libtool-libs
61077692 esac
61087693 done
61097694 done
6110 libs="$dlprefiles"
7695 libs=$dlprefiles
61117696 fi
6112 if test "$pass" = dlopen; then
7697 if test dlopen = "$pass"; then
61137698 # Collect dlpreopened libraries
6114 save_deplibs="$deplibs"
7699 save_deplibs=$deplibs
61157700 deplibs=
61167701 fi
61177702
61187703 for deplib in $libs; do
61197704 lib=
6120 found=no
7705 found=false
61217706 case $deplib in
61227707 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
61237708 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6124 if test "$linkmode,$pass" = "prog,link"; then
7709 if test prog,link = "$linkmode,$pass"; then
61257710 compile_deplibs="$deplib $compile_deplibs"
61267711 finalize_deplibs="$deplib $finalize_deplibs"
61277712 else
61287713 func_append compiler_flags " $deplib"
6129 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6130 if test "$linkmode" = lib ; then
7714 if test lib = "$linkmode"; then
61317715 case "$new_inherited_linker_flags " in
61327716 *" $deplib "*) ;;
61337717 * ) func_append new_inherited_linker_flags " $deplib" ;;
61377721 continue
61387722 ;;
61397723 -l*)
6140 if test "$linkmode" != lib && test "$linkmode" != prog; then
6141 func_warning "\`-l' is ignored for archives/objects"
7724 if test lib != "$linkmode" && test prog != "$linkmode"; then
7725 func_warning "'-l' is ignored for archives/objects"
61427726 continue
61437727 fi
61447728 func_stripname '-l' '' "$deplib"
61457729 name=$func_stripname_result
6146 if test "$linkmode" = lib; then
7730 if test lib = "$linkmode"; then
61477731 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
61487732 else
61497733 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
61517735 for searchdir in $searchdirs; do
61527736 for search_ext in .la $std_shrext .so .a; do
61537737 # Search the libtool library
6154 lib="$searchdir/lib${name}${search_ext}"
7738 lib=$searchdir/lib$name$search_ext
61557739 if test -f "$lib"; then
6156 if test "$search_ext" = ".la"; then
6157 found=yes
7740 if test .la = "$search_ext"; then
7741 found=:
61587742 else
6159 found=no
7743 found=false
61607744 fi
61617745 break 2
61627746 fi
61637747 done
61647748 done
6165 if test "$found" != yes; then
6166 # deplib doesn't seem to be a libtool library
6167 if test "$linkmode,$pass" = "prog,link"; then
6168 compile_deplibs="$deplib $compile_deplibs"
6169 finalize_deplibs="$deplib $finalize_deplibs"
6170 else
6171 deplibs="$deplib $deplibs"
6172 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6173 fi
6174 continue
6175 else # deplib is a libtool library
7749 if $found; then
7750 # deplib is a libtool library
61767751 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
61777752 # We need to do some special things here, and not later.
6178 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7753 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
61797754 case " $predeps $postdeps " in
61807755 *" $deplib "*)
61817756 if func_lalib_p "$lib"; then
61837758 old_library=
61847759 func_source "$lib"
61857760 for l in $old_library $library_names; do
6186 ll="$l"
7761 ll=$l
61877762 done
6188 if test "X$ll" = "X$old_library" ; then # only static version available
6189 found=no
7763 if test "X$ll" = "X$old_library"; then # only static version available
7764 found=false
61907765 func_dirname "$lib" "" "."
6191 ladir="$func_dirname_result"
7766 ladir=$func_dirname_result
61927767 lib=$ladir/$old_library
6193 if test "$linkmode,$pass" = "prog,link"; then
7768 if test prog,link = "$linkmode,$pass"; then
61947769 compile_deplibs="$deplib $compile_deplibs"
61957770 finalize_deplibs="$deplib $finalize_deplibs"
61967771 else
61977772 deplibs="$deplib $deplibs"
6198 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
7773 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
61997774 fi
62007775 continue
62017776 fi
62047779 *) ;;
62057780 esac
62067781 fi
7782 else
7783 # deplib doesn't seem to be a libtool library
7784 if test prog,link = "$linkmode,$pass"; then
7785 compile_deplibs="$deplib $compile_deplibs"
7786 finalize_deplibs="$deplib $finalize_deplibs"
7787 else
7788 deplibs="$deplib $deplibs"
7789 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7790 fi
7791 continue
62077792 fi
62087793 ;; # -l
62097794 *.ltframework)
6210 if test "$linkmode,$pass" = "prog,link"; then
7795 if test prog,link = "$linkmode,$pass"; then
62117796 compile_deplibs="$deplib $compile_deplibs"
62127797 finalize_deplibs="$deplib $finalize_deplibs"
62137798 else
62147799 deplibs="$deplib $deplibs"
6215 if test "$linkmode" = lib ; then
7800 if test lib = "$linkmode"; then
62167801 case "$new_inherited_linker_flags " in
62177802 *" $deplib "*) ;;
62187803 * ) func_append new_inherited_linker_flags " $deplib" ;;
62257810 case $linkmode in
62267811 lib)
62277812 deplibs="$deplib $deplibs"
6228 test "$pass" = conv && continue
7813 test conv = "$pass" && continue
62297814 newdependency_libs="$deplib $newdependency_libs"
62307815 func_stripname '-L' '' "$deplib"
62317816 func_resolve_sysroot "$func_stripname_result"
62327817 func_append newlib_search_path " $func_resolve_sysroot_result"
62337818 ;;
62347819 prog)
6235 if test "$pass" = conv; then
7820 if test conv = "$pass"; then
62367821 deplibs="$deplib $deplibs"
62377822 continue
62387823 fi
6239 if test "$pass" = scan; then
7824 if test scan = "$pass"; then
62407825 deplibs="$deplib $deplibs"
62417826 else
62427827 compile_deplibs="$deplib $compile_deplibs"
62477832 func_append newlib_search_path " $func_resolve_sysroot_result"
62487833 ;;
62497834 *)
6250 func_warning "\`-L' is ignored for archives/objects"
7835 func_warning "'-L' is ignored for archives/objects"
62517836 ;;
62527837 esac # linkmode
62537838 continue
62547839 ;; # -L
62557840 -R*)
6256 if test "$pass" = link; then
7841 if test link = "$pass"; then
62577842 func_stripname '-R' '' "$deplib"
62587843 func_resolve_sysroot "$func_stripname_result"
62597844 dir=$func_resolve_sysroot_result
62717856 lib=$func_resolve_sysroot_result
62727857 ;;
62737858 *.$libext)
6274 if test "$pass" = conv; then
7859 if test conv = "$pass"; then
62757860 deplibs="$deplib $deplibs"
62767861 continue
62777862 fi
62827867 case " $dlpreconveniencelibs " in
62837868 *" $deplib "*) ;;
62847869 *)
6285 valid_a_lib=no
7870 valid_a_lib=false
62867871 case $deplibs_check_method in
62877872 match_pattern*)
62887873 set dummy $deplibs_check_method; shift
62897874 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
62907875 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
62917876 | $EGREP "$match_pattern_regex" > /dev/null; then
6292 valid_a_lib=yes
7877 valid_a_lib=:
62937878 fi
62947879 ;;
62957880 pass_all)
6296 valid_a_lib=yes
7881 valid_a_lib=:
62977882 ;;
62987883 esac
6299 if test "$valid_a_lib" != yes; then
7884 if $valid_a_lib; then
7885 echo
7886 $ECHO "*** Warning: Linking the shared library $output against the"
7887 $ECHO "*** static library $deplib is not portable!"
7888 deplibs="$deplib $deplibs"
7889 else
63007890 echo
63017891 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
63027892 echo "*** I have the capability to make that library automatically link in when"
63047894 echo "*** shared version of the library, which you do not appear to have"
63057895 echo "*** because the file extensions .$libext of this argument makes me believe"
63067896 echo "*** that it is just a static archive that I should not use here."
6307 else
6308 echo
6309 $ECHO "*** Warning: Linking the shared library $output against the"
6310 $ECHO "*** static library $deplib is not portable!"
6311 deplibs="$deplib $deplibs"
63127897 fi
63137898 ;;
63147899 esac
63157900 continue
63167901 ;;
63177902 prog)
6318 if test "$pass" != link; then
7903 if test link != "$pass"; then
63197904 deplibs="$deplib $deplibs"
63207905 else
63217906 compile_deplibs="$deplib $compile_deplibs"
63267911 esac # linkmode
63277912 ;; # *.$libext
63287913 *.lo | *.$objext)
6329 if test "$pass" = conv; then
7914 if test conv = "$pass"; then
63307915 deplibs="$deplib $deplibs"
6331 elif test "$linkmode" = prog; then
6332 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
7916 elif test prog = "$linkmode"; then
7917 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
63337918 # If there is no dlopen support or we're linking statically,
63347919 # we need to preload.
63357920 func_append newdlprefiles " $deplib"
63427927 continue
63437928 ;;
63447929 %DEPLIBS%)
6345 alldeplibs=yes
7930 alldeplibs=:
63467931 continue
63477932 ;;
63487933 esac # case $deplib
63497934
6350 if test "$found" = yes || test -f "$lib"; then :
6351 else
6352 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6353 fi
7935 $found || test -f "$lib" \
7936 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
63547937
63557938 # Check to see that this really is a libtool archive.
63567939 func_lalib_unsafe_p "$lib" \
6357 || func_fatal_error "\`$lib' is not a valid libtool archive"
7940 || func_fatal_error "'$lib' is not a valid libtool archive"
63587941
63597942 func_dirname "$lib" "" "."
6360 ladir="$func_dirname_result"
7943 ladir=$func_dirname_result
63617944
63627945 dlname=
63637946 dlopen=
63877970 done
63887971 fi
63897972 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6390 if test "$linkmode,$pass" = "lib,link" ||
6391 test "$linkmode,$pass" = "prog,scan" ||
6392 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
7973 if test lib,link = "$linkmode,$pass" ||
7974 test prog,scan = "$linkmode,$pass" ||
7975 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
63937976 test -n "$dlopen" && func_append dlfiles " $dlopen"
63947977 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
63957978 fi
63967979
6397 if test "$pass" = conv; then
7980 if test conv = "$pass"; then
63987981 # Only check for convenience libraries
63997982 deplibs="$lib $deplibs"
64007983 if test -z "$libdir"; then
64017984 if test -z "$old_library"; then
6402 func_fatal_error "cannot find name of link library for \`$lib'"
7985 func_fatal_error "cannot find name of link library for '$lib'"
64037986 fi
64047987 # It is a libtool convenience library, so add in its objects.
64057988 func_append convenience " $ladir/$objdir/$old_library"
64067989 func_append old_convenience " $ladir/$objdir/$old_library"
6407 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6408 func_fatal_error "\`$lib' is not a convenience library"
7990 tmp_libs=
7991 for deplib in $dependency_libs; do
7992 deplibs="$deplib $deplibs"
7993 if $opt_preserve_dup_deps; then
7994 case "$tmp_libs " in
7995 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
7996 esac
7997 fi
7998 func_append tmp_libs " $deplib"
7999 done
8000 elif test prog != "$linkmode" && test lib != "$linkmode"; then
8001 func_fatal_error "'$lib' is not a convenience library"
64098002 fi
6410 tmp_libs=
6411 for deplib in $dependency_libs; do
6412 deplibs="$deplib $deplibs"
6413 if $opt_preserve_dup_deps ; then
6414 case "$tmp_libs " in
6415 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6416 esac
6417 fi
6418 func_append tmp_libs " $deplib"
6419 done
64208003 continue
64218004 fi # $pass = conv
64228005
64248007 # Get the name of the library we link against.
64258008 linklib=
64268009 if test -n "$old_library" &&
6427 { test "$prefer_static_libs" = yes ||
6428 test "$prefer_static_libs,$installed" = "built,no"; }; then
8010 { test yes = "$prefer_static_libs" ||
8011 test built,no = "$prefer_static_libs,$installed"; }; then
64298012 linklib=$old_library
64308013 else
64318014 for l in $old_library $library_names; do
6432 linklib="$l"
8015 linklib=$l
64338016 done
64348017 fi
64358018 if test -z "$linklib"; then
6436 func_fatal_error "cannot find name of link library for \`$lib'"
8019 func_fatal_error "cannot find name of link library for '$lib'"
64378020 fi
64388021
64398022 # This library was specified with -dlopen.
6440 if test "$pass" = dlopen; then
6441 if test -z "$libdir"; then
6442 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6443 fi
8023 if test dlopen = "$pass"; then
8024 test -z "$libdir" \
8025 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
64448026 if test -z "$dlname" ||
6445 test "$dlopen_support" != yes ||
6446 test "$build_libtool_libs" = no; then
8027 test yes != "$dlopen_support" ||
8028 test no = "$build_libtool_libs"
8029 then
64478030 # If there is no dlname, no dlopen support or we're linking
64488031 # statically, we need to preload. We also need to preload any
64498032 # dependent libraries so libltdl's deplib preloader doesn't
64578040
64588041 # We need an absolute path.
64598042 case $ladir in
6460 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
8043 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
64618044 *)
64628045 abs_ladir=`cd "$ladir" && pwd`
64638046 if test -z "$abs_ladir"; then
6464 func_warning "cannot determine absolute directory name of \`$ladir'"
8047 func_warning "cannot determine absolute directory name of '$ladir'"
64658048 func_warning "passing it literally to the linker, although it might fail"
6466 abs_ladir="$ladir"
8049 abs_ladir=$ladir
64678050 fi
64688051 ;;
64698052 esac
64708053 func_basename "$lib"
6471 laname="$func_basename_result"
8054 laname=$func_basename_result
64728055
64738056 # Find the relevant object directory and library name.
6474 if test "X$installed" = Xyes; then
8057 if test yes = "$installed"; then
64758058 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6476 func_warning "library \`$lib' was moved."
6477 dir="$ladir"
6478 absdir="$abs_ladir"
6479 libdir="$abs_ladir"
8059 func_warning "library '$lib' was moved."
8060 dir=$ladir
8061 absdir=$abs_ladir
8062 libdir=$abs_ladir
64808063 else
6481 dir="$lt_sysroot$libdir"
6482 absdir="$lt_sysroot$libdir"
8064 dir=$lt_sysroot$libdir
8065 absdir=$lt_sysroot$libdir
64838066 fi
6484 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
8067 test yes = "$hardcode_automatic" && avoidtemprpath=yes
64858068 else
64868069 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6487 dir="$ladir"
6488 absdir="$abs_ladir"
8070 dir=$ladir
8071 absdir=$abs_ladir
64898072 # Remove this search path later
64908073 func_append notinst_path " $abs_ladir"
64918074 else
6492 dir="$ladir/$objdir"
6493 absdir="$abs_ladir/$objdir"
8075 dir=$ladir/$objdir
8076 absdir=$abs_ladir/$objdir
64948077 # Remove this search path later
64958078 func_append notinst_path " $abs_ladir"
64968079 fi
64998082 name=$func_stripname_result
65008083
65018084 # This library was specified with -dlpreopen.
6502 if test "$pass" = dlpreopen; then
6503 if test -z "$libdir" && test "$linkmode" = prog; then
6504 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
8085 if test dlpreopen = "$pass"; then
8086 if test -z "$libdir" && test prog = "$linkmode"; then
8087 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
65058088 fi
6506 case "$host" in
8089 case $host in
65078090 # special handling for platforms with PE-DLLs.
65088091 *cygwin* | *mingw* | *cegcc* )
65098092 # Linker will automatically link against shared library if both
65478130
65488131 if test -z "$libdir"; then
65498132 # Link the convenience library
6550 if test "$linkmode" = lib; then
8133 if test lib = "$linkmode"; then
65518134 deplibs="$dir/$old_library $deplibs"
6552 elif test "$linkmode,$pass" = "prog,link"; then
8135 elif test prog,link = "$linkmode,$pass"; then
65538136 compile_deplibs="$dir/$old_library $compile_deplibs"
65548137 finalize_deplibs="$dir/$old_library $finalize_deplibs"
65558138 else
65598142 fi
65608143
65618144
6562 if test "$linkmode" = prog && test "$pass" != link; then
8145 if test prog = "$linkmode" && test link != "$pass"; then
65638146 func_append newlib_search_path " $ladir"
65648147 deplibs="$lib $deplibs"
65658148
6566 linkalldeplibs=no
6567 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6568 test "$build_libtool_libs" = no; then
6569 linkalldeplibs=yes
8149 linkalldeplibs=false
8150 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8151 test no = "$build_libtool_libs"; then
8152 linkalldeplibs=:
65708153 fi
65718154
65728155 tmp_libs=
65788161 ;;
65798162 esac
65808163 # Need to link against all dependency_libs?
6581 if test "$linkalldeplibs" = yes; then
8164 if $linkalldeplibs; then
65828165 deplibs="$deplib $deplibs"
65838166 else
65848167 # Need to hardcode shared library paths
65858168 # or/and link against static libraries
65868169 newdependency_libs="$deplib $newdependency_libs"
65878170 fi
6588 if $opt_preserve_dup_deps ; then
8171 if $opt_preserve_dup_deps; then
65898172 case "$tmp_libs " in
65908173 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
65918174 esac
65958178 continue
65968179 fi # $linkmode = prog...
65978180
6598 if test "$linkmode,$pass" = "prog,link"; then
8181 if test prog,link = "$linkmode,$pass"; then
65998182 if test -n "$library_names" &&
6600 { { test "$prefer_static_libs" = no ||
6601 test "$prefer_static_libs,$installed" = "built,yes"; } ||
8183 { { test no = "$prefer_static_libs" ||
8184 test built,yes = "$prefer_static_libs,$installed"; } ||
66028185 test -z "$old_library"; }; then
66038186 # We need to hardcode the library path
6604 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
8187 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
66058188 # Make sure the rpath contains only unique directories.
6606 case "$temp_rpath:" in
8189 case $temp_rpath: in
66078190 *"$absdir:"*) ;;
66088191 *) func_append temp_rpath "$absdir:" ;;
66098192 esac
66328215 esac
66338216 fi # $linkmode,$pass = prog,link...
66348217
6635 if test "$alldeplibs" = yes &&
6636 { test "$deplibs_check_method" = pass_all ||
6637 { test "$build_libtool_libs" = yes &&
8218 if $alldeplibs &&
8219 { test pass_all = "$deplibs_check_method" ||
8220 { test yes = "$build_libtool_libs" &&
66388221 test -n "$library_names"; }; }; then
66398222 # We only need to search for static libraries
66408223 continue
66438226
66448227 link_static=no # Whether the deplib will be linked statically
66458228 use_static_libs=$prefer_static_libs
6646 if test "$use_static_libs" = built && test "$installed" = yes; then
8229 if test built = "$use_static_libs" && test yes = "$installed"; then
66478230 use_static_libs=no
66488231 fi
66498232 if test -n "$library_names" &&
6650 { test "$use_static_libs" = no || test -z "$old_library"; }; then
8233 { test no = "$use_static_libs" || test -z "$old_library"; }; then
66518234 case $host in
6652 *cygwin* | *mingw* | *cegcc*)
8235 *cygwin* | *mingw* | *cegcc* | *os2*)
66538236 # No point in relinking DLLs because paths are not encoded
66548237 func_append notinst_deplibs " $lib"
66558238 need_relink=no
66568239 ;;
66578240 *)
6658 if test "$installed" = no; then
8241 if test no = "$installed"; then
66598242 func_append notinst_deplibs " $lib"
6660 test -z "$DESTDIR" && need_relink=yes
8243 need_relink=yes
66618244 fi
66628245 ;;
66638246 esac
66658248
66668249 # Warn about portability, can't link against -module's on some
66678250 # systems (darwin). Don't bleat about dlopened modules though!
6668 dlopenmodule=""
8251 dlopenmodule=
66698252 for dlpremoduletest in $dlprefiles; do
66708253 if test "X$dlpremoduletest" = "X$lib"; then
6671 dlopenmodule="$dlpremoduletest"
8254 dlopenmodule=$dlpremoduletest
66728255 break
66738256 fi
66748257 done
6675 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
8258 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
66768259 echo
6677 if test "$linkmode" = prog; then
8260 if test prog = "$linkmode"; then
66788261 $ECHO "*** Warning: Linking the executable $output against the loadable module"
66798262 else
66808263 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
66818264 fi
66828265 $ECHO "*** $linklib is not portable!"
66838266 fi
6684 if test "$linkmode" = lib &&
6685 test "$hardcode_into_libs" = yes; then
8267 if test lib = "$linkmode" &&
8268 test yes = "$hardcode_into_libs"; then
66868269 # Hardcode the library path.
66878270 # Skip directories that are in the system default run-time
66888271 # search path.
67108293 # figure out the soname
67118294 set dummy $library_names
67128295 shift
6713 realname="$1"
8296 realname=$1
67148297 shift
67158298 libname=`eval "\\$ECHO \"$libname_spec\""`
67168299 # use dlname if we got it. it's perfectly good, no?
67178300 if test -n "$dlname"; then
6718 soname="$dlname"
8301 soname=$dlname
67198302 elif test -n "$soname_spec"; then
67208303 # bleh windows
67218304 case $host in
6722 *cygwin* | mingw* | *cegcc*)
8305 *cygwin* | mingw* | *cegcc* | *os2*)
67238306 func_arith $current - $age
67248307 major=$func_arith_result
6725 versuffix="-$major"
8308 versuffix=-$major
67268309 ;;
67278310 esac
67288311 eval soname=\"$soname_spec\"
67298312 else
6730 soname="$realname"
8313 soname=$realname
67318314 fi
67328315
67338316 # Make a new name for the extract_expsyms_cmds to use
6734 soroot="$soname"
8317 soroot=$soname
67358318 func_basename "$soroot"
6736 soname="$func_basename_result"
8319 soname=$func_basename_result
67378320 func_stripname 'lib' '.dll' "$soname"
67388321 newlib=libimp-$func_stripname_result.a
67398322
67408323 # If the library has no export list, then create one now
67418324 if test -f "$output_objdir/$soname-def"; then :
67428325 else
6743 func_verbose "extracting exported symbol list from \`$soname'"
8326 func_verbose "extracting exported symbol list from '$soname'"
67448327 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
67458328 fi
67468329
67478330 # Create $newlib
67488331 if test -f "$output_objdir/$newlib"; then :; else
6749 func_verbose "generating import library for \`$soname'"
8332 func_verbose "generating import library for '$soname'"
67508333 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
67518334 fi
67528335 # make sure the library variables are pointing to the new library
67548337 linklib=$newlib
67558338 fi # test -n "$old_archive_from_expsyms_cmds"
67568339
6757 if test "$linkmode" = prog || test "$opt_mode" != relink; then
8340 if test prog = "$linkmode" || test relink != "$opt_mode"; then
67588341 add_shlibpath=
67598342 add_dir=
67608343 add=
67618344 lib_linked=yes
67628345 case $hardcode_action in
67638346 immediate | unsupported)
6764 if test "$hardcode_direct" = no; then
6765 add="$dir/$linklib"
8347 if test no = "$hardcode_direct"; then
8348 add=$dir/$linklib
67668349 case $host in
6767 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6768 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
8350 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8351 *-*-sysv4*uw2*) add_dir=-L$dir ;;
67698352 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6770 *-*-unixware7*) add_dir="-L$dir" ;;
8353 *-*-unixware7*) add_dir=-L$dir ;;
67718354 *-*-darwin* )
6772 # if the lib is a (non-dlopened) module then we can not
8355 # if the lib is a (non-dlopened) module then we cannot
67738356 # link against it, someone is ignoring the earlier warnings
67748357 if /usr/bin/file -L $add 2> /dev/null |
6775 $GREP ": [^:]* bundle" >/dev/null ; then
8358 $GREP ": [^:]* bundle" >/dev/null; then
67768359 if test "X$dlopenmodule" != "X$lib"; then
67778360 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6778 if test -z "$old_library" ; then
8361 if test -z "$old_library"; then
67798362 echo
67808363 echo "*** And there doesn't seem to be a static archive available"
67818364 echo "*** The link will probably fail, sorry"
67828365 else
6783 add="$dir/$old_library"
8366 add=$dir/$old_library
67848367 fi
67858368 elif test -n "$old_library"; then
6786 add="$dir/$old_library"
8369 add=$dir/$old_library
67878370 fi
67888371 fi
67898372 esac
6790 elif test "$hardcode_minus_L" = no; then
8373 elif test no = "$hardcode_minus_L"; then
67918374 case $host in
6792 *-*-sunos*) add_shlibpath="$dir" ;;
8375 *-*-sunos*) add_shlibpath=$dir ;;
67938376 esac
6794 add_dir="-L$dir"
6795 add="-l$name"
6796 elif test "$hardcode_shlibpath_var" = no; then
6797 add_shlibpath="$dir"
6798 add="-l$name"
8377 add_dir=-L$dir
8378 add=-l$name
8379 elif test no = "$hardcode_shlibpath_var"; then
8380 add_shlibpath=$dir
8381 add=-l$name
67998382 else
68008383 lib_linked=no
68018384 fi
68028385 ;;
68038386 relink)
6804 if test "$hardcode_direct" = yes &&
6805 test "$hardcode_direct_absolute" = no; then
6806 add="$dir/$linklib"
6807 elif test "$hardcode_minus_L" = yes; then
6808 add_dir="-L$absdir"
8387 if test yes = "$hardcode_direct" &&
8388 test no = "$hardcode_direct_absolute"; then
8389 add=$dir/$linklib
8390 elif test yes = "$hardcode_minus_L"; then
8391 add_dir=-L$absdir
68098392 # Try looking first in the location we're being installed to.
68108393 if test -n "$inst_prefix_dir"; then
68118394 case $libdir in
68148397 ;;
68158398 esac
68168399 fi
6817 add="-l$name"
6818 elif test "$hardcode_shlibpath_var" = yes; then
6819 add_shlibpath="$dir"
6820 add="-l$name"
8400 add=-l$name
8401 elif test yes = "$hardcode_shlibpath_var"; then
8402 add_shlibpath=$dir
8403 add=-l$name
68218404 else
68228405 lib_linked=no
68238406 fi
68258408 *) lib_linked=no ;;
68268409 esac
68278410
6828 if test "$lib_linked" != yes; then
8411 if test yes != "$lib_linked"; then
68298412 func_fatal_configuration "unsupported hardcode properties"
68308413 fi
68318414
68358418 *) func_append compile_shlibpath "$add_shlibpath:" ;;
68368419 esac
68378420 fi
6838 if test "$linkmode" = prog; then
8421 if test prog = "$linkmode"; then
68398422 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
68408423 test -n "$add" && compile_deplibs="$add $compile_deplibs"
68418424 else
68428425 test -n "$add_dir" && deplibs="$add_dir $deplibs"
68438426 test -n "$add" && deplibs="$add $deplibs"
6844 if test "$hardcode_direct" != yes &&
6845 test "$hardcode_minus_L" != yes &&
6846 test "$hardcode_shlibpath_var" = yes; then
8427 if test yes != "$hardcode_direct" &&
8428 test yes != "$hardcode_minus_L" &&
8429 test yes = "$hardcode_shlibpath_var"; then
68478430 case :$finalize_shlibpath: in
68488431 *":$libdir:"*) ;;
68498432 *) func_append finalize_shlibpath "$libdir:" ;;
68528435 fi
68538436 fi
68548437
6855 if test "$linkmode" = prog || test "$opt_mode" = relink; then
8438 if test prog = "$linkmode" || test relink = "$opt_mode"; then
68568439 add_shlibpath=
68578440 add_dir=
68588441 add=
68598442 # Finalize command for both is simple: just hardcode it.
6860 if test "$hardcode_direct" = yes &&
6861 test "$hardcode_direct_absolute" = no; then
6862 add="$libdir/$linklib"
6863 elif test "$hardcode_minus_L" = yes; then
6864 add_dir="-L$libdir"
6865 add="-l$name"
6866 elif test "$hardcode_shlibpath_var" = yes; then
8443 if test yes = "$hardcode_direct" &&
8444 test no = "$hardcode_direct_absolute"; then
8445 add=$libdir/$linklib
8446 elif test yes = "$hardcode_minus_L"; then
8447 add_dir=-L$libdir
8448 add=-l$name
8449 elif test yes = "$hardcode_shlibpath_var"; then
68678450 case :$finalize_shlibpath: in
68688451 *":$libdir:"*) ;;
68698452 *) func_append finalize_shlibpath "$libdir:" ;;
68708453 esac
6871 add="-l$name"
6872 elif test "$hardcode_automatic" = yes; then
8454 add=-l$name
8455 elif test yes = "$hardcode_automatic"; then
68738456 if test -n "$inst_prefix_dir" &&
6874 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6875 add="$inst_prefix_dir$libdir/$linklib"
8457 test -f "$inst_prefix_dir$libdir/$linklib"; then
8458 add=$inst_prefix_dir$libdir/$linklib
68768459 else
6877 add="$libdir/$linklib"
8460 add=$libdir/$linklib
68788461 fi
68798462 else
68808463 # We cannot seem to hardcode it, guess we'll fake it.
6881 add_dir="-L$libdir"
8464 add_dir=-L$libdir
68828465 # Try looking first in the location we're being installed to.
68838466 if test -n "$inst_prefix_dir"; then
68848467 case $libdir in
68878470 ;;
68888471 esac
68898472 fi
6890 add="-l$name"
8473 add=-l$name
68918474 fi
68928475
6893 if test "$linkmode" = prog; then
8476 if test prog = "$linkmode"; then
68948477 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
68958478 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
68968479 else
68988481 test -n "$add" && deplibs="$add $deplibs"
68998482 fi
69008483 fi
6901 elif test "$linkmode" = prog; then
8484 elif test prog = "$linkmode"; then
69028485 # Here we assume that one of hardcode_direct or hardcode_minus_L
69038486 # is not unsupported. This is valid on all known static and
69048487 # shared platforms.
6905 if test "$hardcode_direct" != unsupported; then
6906 test -n "$old_library" && linklib="$old_library"
8488 if test unsupported != "$hardcode_direct"; then
8489 test -n "$old_library" && linklib=$old_library
69078490 compile_deplibs="$dir/$linklib $compile_deplibs"
69088491 finalize_deplibs="$dir/$linklib $finalize_deplibs"
69098492 else
69108493 compile_deplibs="-l$name -L$dir $compile_deplibs"
69118494 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
69128495 fi
6913 elif test "$build_libtool_libs" = yes; then
8496 elif test yes = "$build_libtool_libs"; then
69148497 # Not a shared library
6915 if test "$deplibs_check_method" != pass_all; then
8498 if test pass_all != "$deplibs_check_method"; then
69168499 # We're trying link a shared library against a static one
69178500 # but the system doesn't support it.
69188501
69198502 # Just print a warning and add the library to dependency_libs so
69208503 # that the program can be linked against the static library.
69218504 echo
6922 $ECHO "*** Warning: This system can not link to static lib archive $lib."
8505 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
69238506 echo "*** I have the capability to make that library automatically link in when"
69248507 echo "*** you link to this library. But I can only do this if you have a"
69258508 echo "*** shared version of the library, which you do not appear to have."
6926 if test "$module" = yes; then
8509 if test yes = "$module"; then
69278510 echo "*** But as you try to build a module library, libtool will still create "
69288511 echo "*** a static module, that should work as long as the dlopening application"
69298512 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
69308513 if test -z "$global_symbol_pipe"; then
69318514 echo
69328515 echo "*** However, this would only work if libtool was able to extract symbol"
6933 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8516 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
69348517 echo "*** not find such a program. So, this module is probably useless."
6935 echo "*** \`nm' from GNU binutils and a full rebuild may help."
8518 echo "*** 'nm' from GNU binutils and a full rebuild may help."
69368519 fi
6937 if test "$build_old_libs" = no; then
8520 if test no = "$build_old_libs"; then
69388521 build_libtool_libs=module
69398522 build_old_libs=yes
69408523 else
69478530 fi
69488531 fi # link shared/static library?
69498532
6950 if test "$linkmode" = lib; then
8533 if test lib = "$linkmode"; then
69518534 if test -n "$dependency_libs" &&
6952 { test "$hardcode_into_libs" != yes ||
6953 test "$build_old_libs" = yes ||
6954 test "$link_static" = yes; }; then
8535 { test yes != "$hardcode_into_libs" ||
8536 test yes = "$build_old_libs" ||
8537 test yes = "$link_static"; }; then
69558538 # Extract -R from dependency_libs
69568539 temp_deplibs=
69578540 for libdir in $dependency_libs; do
69658548 *) func_append temp_deplibs " $libdir";;
69668549 esac
69678550 done
6968 dependency_libs="$temp_deplibs"
8551 dependency_libs=$temp_deplibs
69698552 fi
69708553
69718554 func_append newlib_search_path " $absdir"
69728555 # Link against this library
6973 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8556 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
69748557 # ... and its dependency_libs
69758558 tmp_libs=
69768559 for deplib in $dependency_libs; do
69808563 func_resolve_sysroot "$func_stripname_result";;
69818564 *) func_resolve_sysroot "$deplib" ;;
69828565 esac
6983 if $opt_preserve_dup_deps ; then
8566 if $opt_preserve_dup_deps; then
69848567 case "$tmp_libs " in
69858568 *" $func_resolve_sysroot_result "*)
69868569 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
69898572 func_append tmp_libs " $func_resolve_sysroot_result"
69908573 done
69918574
6992 if test "$link_all_deplibs" != no; then
8575 if test no != "$link_all_deplibs"; then
69938576 # Add the search paths of all dependency libraries
69948577 for deplib in $dependency_libs; do
69958578 path=
69968579 case $deplib in
6997 -L*) path="$deplib" ;;
8580 -L*) path=$deplib ;;
69988581 *.la)
69998582 func_resolve_sysroot "$deplib"
70008583 deplib=$func_resolve_sysroot_result
70028585 dir=$func_dirname_result
70038586 # We need an absolute path.
70048587 case $dir in
7005 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
8588 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
70068589 *)
70078590 absdir=`cd "$dir" && pwd`
70088591 if test -z "$absdir"; then
7009 func_warning "cannot determine absolute directory name of \`$dir'"
7010 absdir="$dir"
8592 func_warning "cannot determine absolute directory name of '$dir'"
8593 absdir=$dir
70118594 fi
70128595 ;;
70138596 esac
70158598 case $host in
70168599 *-*-darwin*)
70178600 depdepl=
7018 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7019 if test -n "$deplibrary_names" ; then
7020 for tmp in $deplibrary_names ; do
8601 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8602 if test -n "$deplibrary_names"; then
8603 for tmp in $deplibrary_names; do
70218604 depdepl=$tmp
70228605 done
7023 if test -f "$absdir/$objdir/$depdepl" ; then
7024 depdepl="$absdir/$objdir/$depdepl"
7025 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8606 if test -f "$absdir/$objdir/$depdepl"; then
8607 depdepl=$absdir/$objdir/$depdepl
8608 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70268609 if test -z "$darwin_install_name"; then
7027 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8610 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70288611 fi
7029 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7030 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
8612 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8613 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
70318614 path=
70328615 fi
70338616 fi
70348617 ;;
70358618 *)
7036 path="-L$absdir/$objdir"
8619 path=-L$absdir/$objdir
70378620 ;;
70388621 esac
70398622 else
7040 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8623 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
70418624 test -z "$libdir" && \
7042 func_fatal_error "\`$deplib' is not a valid libtool archive"
8625 func_fatal_error "'$deplib' is not a valid libtool archive"
70438626 test "$absdir" != "$libdir" && \
7044 func_warning "\`$deplib' seems to be moved"
7045
7046 path="-L$absdir"
8627 func_warning "'$deplib' seems to be moved"
8628
8629 path=-L$absdir
70478630 fi
70488631 ;;
70498632 esac
70558638 fi # link_all_deplibs != no
70568639 fi # linkmode = lib
70578640 done # for deplib in $libs
7058 if test "$pass" = link; then
7059 if test "$linkmode" = "prog"; then
8641 if test link = "$pass"; then
8642 if test prog = "$linkmode"; then
70608643 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
70618644 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
70628645 else
70638646 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
70648647 fi
70658648 fi
7066 dependency_libs="$newdependency_libs"
7067 if test "$pass" = dlpreopen; then
8649 dependency_libs=$newdependency_libs
8650 if test dlpreopen = "$pass"; then
70688651 # Link the dlpreopened libraries before other libraries
70698652 for deplib in $save_deplibs; do
70708653 deplibs="$deplib $deplibs"
70718654 done
70728655 fi
7073 if test "$pass" != dlopen; then
7074 if test "$pass" != conv; then
8656 if test dlopen != "$pass"; then
8657 test conv = "$pass" || {
70758658 # Make sure lib_search_path contains only unique directories.
70768659 lib_search_path=
70778660 for dir in $newlib_search_path; do
70818664 esac
70828665 done
70838666 newlib_search_path=
7084 fi
7085
7086 if test "$linkmode,$pass" != "prog,link"; then
7087 vars="deplibs"
8667 }
8668
8669 if test prog,link = "$linkmode,$pass"; then
8670 vars="compile_deplibs finalize_deplibs"
70888671 else
7089 vars="compile_deplibs finalize_deplibs"
8672 vars=deplibs
70908673 fi
70918674 for var in $vars dependency_libs; do
70928675 # Add libraries to $var in reverse order
71448727 eval $var=\"$tmp_libs\"
71458728 done # for var
71468729 fi
8730
8731 # Add Sun CC postdeps if required:
8732 test CXX = "$tagname" && {
8733 case $host_os in
8734 linux*)
8735 case `$CC -V 2>&1 | sed 5q` in
8736 *Sun\ C*) # Sun C++ 5.9
8737 func_suncc_cstd_abi
8738
8739 if test no != "$suncc_use_cstd_abi"; then
8740 func_append postdeps ' -library=Cstd -library=Crun'
8741 fi
8742 ;;
8743 esac
8744 ;;
8745
8746 solaris*)
8747 func_cc_basename "$CC"
8748 case $func_cc_basename_result in
8749 CC* | sunCC*)
8750 func_suncc_cstd_abi
8751
8752 if test no != "$suncc_use_cstd_abi"; then
8753 func_append postdeps ' -library=Cstd -library=Crun'
8754 fi
8755 ;;
8756 esac
8757 ;;
8758 esac
8759 }
8760
71478761 # Last step: remove runtime libs from dependency_libs
71488762 # (they stay in deplibs)
71498763 tmp_libs=
7150 for i in $dependency_libs ; do
8764 for i in $dependency_libs; do
71518765 case " $predeps $postdeps $compiler_lib_search_path " in
71528766 *" $i "*)
7153 i=""
8767 i=
71548768 ;;
71558769 esac
7156 if test -n "$i" ; then
8770 if test -n "$i"; then
71578771 func_append tmp_libs " $i"
71588772 fi
71598773 done
71608774 dependency_libs=$tmp_libs
71618775 done # for pass
7162 if test "$linkmode" = prog; then
7163 dlfiles="$newdlfiles"
8776 if test prog = "$linkmode"; then
8777 dlfiles=$newdlfiles
71648778 fi
7165 if test "$linkmode" = prog || test "$linkmode" = lib; then
7166 dlprefiles="$newdlprefiles"
8779 if test prog = "$linkmode" || test lib = "$linkmode"; then
8780 dlprefiles=$newdlprefiles
71678781 fi
71688782
71698783 case $linkmode in
71708784 oldlib)
7171 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7172 func_warning "\`-dlopen' is ignored for archives"
8785 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8786 func_warning "'-dlopen' is ignored for archives"
71738787 fi
71748788
71758789 case " $deplibs" in
71768790 *\ -l* | *\ -L*)
7177 func_warning "\`-l' and \`-L' are ignored for archives" ;;
8791 func_warning "'-l' and '-L' are ignored for archives" ;;
71788792 esac
71798793
71808794 test -n "$rpath" && \
7181 func_warning "\`-rpath' is ignored for archives"
8795 func_warning "'-rpath' is ignored for archives"
71828796
71838797 test -n "$xrpath" && \
7184 func_warning "\`-R' is ignored for archives"
8798 func_warning "'-R' is ignored for archives"
71858799
71868800 test -n "$vinfo" && \
7187 func_warning "\`-version-info/-version-number' is ignored for archives"
8801 func_warning "'-version-info/-version-number' is ignored for archives"
71888802
71898803 test -n "$release" && \
7190 func_warning "\`-release' is ignored for archives"
8804 func_warning "'-release' is ignored for archives"
71918805
71928806 test -n "$export_symbols$export_symbols_regex" && \
7193 func_warning "\`-export-symbols' is ignored for archives"
8807 func_warning "'-export-symbols' is ignored for archives"
71948808
71958809 # Now set the variables for building old libraries.
71968810 build_libtool_libs=no
7197 oldlibs="$output"
8811 oldlibs=$output
71988812 func_append objs "$old_deplibs"
71998813 ;;
72008814
72018815 lib)
7202 # Make sure we only generate libraries of the form `libNAME.la'.
8816 # Make sure we only generate libraries of the form 'libNAME.la'.
72038817 case $outputname in
72048818 lib*)
72058819 func_stripname 'lib' '.la' "$outputname"
72088822 eval libname=\"$libname_spec\"
72098823 ;;
72108824 *)
7211 test "$module" = no && \
7212 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7213
7214 if test "$need_lib_prefix" != no; then
8825 test no = "$module" \
8826 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8827
8828 if test no != "$need_lib_prefix"; then
72158829 # Add the "lib" prefix for modules if required
72168830 func_stripname '' '.la' "$outputname"
72178831 name=$func_stripname_result
72258839 esac
72268840
72278841 if test -n "$objs"; then
7228 if test "$deplibs_check_method" != pass_all; then
7229 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
8842 if test pass_all != "$deplibs_check_method"; then
8843 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
72308844 else
72318845 echo
72328846 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
72358849 fi
72368850 fi
72378851
7238 test "$dlself" != no && \
7239 func_warning "\`-dlopen self' is ignored for libtool libraries"
8852 test no = "$dlself" \
8853 || func_warning "'-dlopen self' is ignored for libtool libraries"
72408854
72418855 set dummy $rpath
72428856 shift
7243 test "$#" -gt 1 && \
7244 func_warning "ignoring multiple \`-rpath's for a libtool library"
7245
7246 install_libdir="$1"
8857 test 1 -lt "$#" \
8858 && func_warning "ignoring multiple '-rpath's for a libtool library"
8859
8860 install_libdir=$1
72478861
72488862 oldlibs=
72498863 if test -z "$rpath"; then
7250 if test "$build_libtool_libs" = yes; then
8864 if test yes = "$build_libtool_libs"; then
72518865 # Building a libtool convenience library.
7252 # Some compilers have problems with a `.al' extension so
8866 # Some compilers have problems with a '.al' extension so
72538867 # convenience libraries should have the same extension an
72548868 # archive normally would.
72558869 oldlibs="$output_objdir/$libname.$libext $oldlibs"
72588872 fi
72598873
72608874 test -n "$vinfo" && \
7261 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
8875 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
72628876
72638877 test -n "$release" && \
7264 func_warning "\`-release' is ignored for convenience libraries"
8878 func_warning "'-release' is ignored for convenience libraries"
72658879 else
72668880
72678881 # Parse the version information argument.
7268 save_ifs="$IFS"; IFS=':'
8882 save_ifs=$IFS; IFS=:
72698883 set dummy $vinfo 0 0 0
72708884 shift
7271 IFS="$save_ifs"
8885 IFS=$save_ifs
72728886
72738887 test -n "$7" && \
7274 func_fatal_help "too many parameters to \`-version-info'"
8888 func_fatal_help "too many parameters to '-version-info'"
72758889
72768890 # convert absolute version numbers to libtool ages
72778891 # this retains compatibility with .la files and attempts
72798893
72808894 case $vinfo_number in
72818895 yes)
7282 number_major="$1"
7283 number_minor="$2"
7284 number_revision="$3"
8896 number_major=$1
8897 number_minor=$2
8898 number_revision=$3
72858899 #
72868900 # There are really only two kinds -- those that
72878901 # use the current revision as the major version
72888902 # and those that subtract age and use age as
72898903 # a minor version. But, then there is irix
7290 # which has an extra 1 added just for fun
8904 # that has an extra 1 added just for fun
72918905 #
72928906 case $version_type in
72938907 # correct linux to gnu/linux during the next big refactor
7294 darwin|linux|osf|windows|none)
8908 darwin|freebsd-elf|linux|osf|windows|none)
72958909 func_arith $number_major + $number_minor
72968910 current=$func_arith_result
7297 age="$number_minor"
7298 revision="$number_revision"
8911 age=$number_minor
8912 revision=$number_revision
72998913 ;;
7300 freebsd-aout|freebsd-elf|qnx|sunos)
7301 current="$number_major"
7302 revision="$number_minor"
7303 age="0"
8914 freebsd-aout|qnx|sunos)
8915 current=$number_major
8916 revision=$number_minor
8917 age=0
73048918 ;;
73058919 irix|nonstopux)
73068920 func_arith $number_major + $number_minor
73078921 current=$func_arith_result
7308 age="$number_minor"
7309 revision="$number_minor"
8922 age=$number_minor
8923 revision=$number_minor
73108924 lt_irix_increment=no
8925 ;;
8926 *)
8927 func_fatal_configuration "$modename: unknown library version type '$version_type'"
73118928 ;;
73128929 esac
73138930 ;;
73148931 no)
7315 current="$1"
7316 revision="$2"
7317 age="$3"
8932 current=$1
8933 revision=$2
8934 age=$3
73188935 ;;
73198936 esac
73208937
73228939 case $current in
73238940 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73248941 *)
7325 func_error "CURRENT \`$current' must be a nonnegative integer"
7326 func_fatal_error "\`$vinfo' is not valid version information"
8942 func_error "CURRENT '$current' must be a nonnegative integer"
8943 func_fatal_error "'$vinfo' is not valid version information"
73278944 ;;
73288945 esac
73298946
73308947 case $revision in
73318948 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73328949 *)
7333 func_error "REVISION \`$revision' must be a nonnegative integer"
7334 func_fatal_error "\`$vinfo' is not valid version information"
8950 func_error "REVISION '$revision' must be a nonnegative integer"
8951 func_fatal_error "'$vinfo' is not valid version information"
73358952 ;;
73368953 esac
73378954
73388955 case $age in
73398956 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73408957 *)
7341 func_error "AGE \`$age' must be a nonnegative integer"
7342 func_fatal_error "\`$vinfo' is not valid version information"
8958 func_error "AGE '$age' must be a nonnegative integer"
8959 func_fatal_error "'$vinfo' is not valid version information"
73438960 ;;
73448961 esac
73458962
73468963 if test "$age" -gt "$current"; then
7347 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7348 func_fatal_error "\`$vinfo' is not valid version information"
8964 func_error "AGE '$age' is greater than the current interface number '$current'"
8965 func_fatal_error "'$vinfo' is not valid version information"
73498966 fi
73508967
73518968 # Calculate the version variables.
73608977 # verstring for coding it into the library header
73618978 func_arith $current - $age
73628979 major=.$func_arith_result
7363 versuffix="$major.$age.$revision"
8980 versuffix=$major.$age.$revision
73648981 # Darwin ld doesn't like 0 for these options...
73658982 func_arith $current + 1
73668983 minor_current=$func_arith_result
7367 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
8984 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
73688985 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8986 # On Darwin other compilers
8987 case $CC in
8988 nagfor*)
8989 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8990 ;;
8991 *)
8992 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8993 ;;
8994 esac
73698995 ;;
73708996
73718997 freebsd-aout)
7372 major=".$current"
7373 versuffix=".$current.$revision";
8998 major=.$current
8999 versuffix=.$current.$revision
73749000 ;;
73759001
73769002 freebsd-elf)
7377 major=".$current"
7378 versuffix=".$current"
9003 func_arith $current - $age
9004 major=.$func_arith_result
9005 versuffix=$major.$age.$revision
73799006 ;;
73809007
73819008 irix | nonstopux)
7382 if test "X$lt_irix_increment" = "Xno"; then
9009 if test no = "$lt_irix_increment"; then
73839010 func_arith $current - $age
73849011 else
73859012 func_arith $current - $age + 1
73909017 nonstopux) verstring_prefix=nonstopux ;;
73919018 *) verstring_prefix=sgi ;;
73929019 esac
7393 verstring="$verstring_prefix$major.$revision"
9020 verstring=$verstring_prefix$major.$revision
73949021
73959022 # Add in all the interfaces that we are compatible with.
73969023 loop=$revision
7397 while test "$loop" -ne 0; do
9024 while test 0 -ne "$loop"; do
73989025 func_arith $revision - $loop
73999026 iface=$func_arith_result
74009027 func_arith $loop - 1
74019028 loop=$func_arith_result
7402 verstring="$verstring_prefix$major.$iface:$verstring"
9029 verstring=$verstring_prefix$major.$iface:$verstring
74039030 done
74049031
7405 # Before this point, $major must not contain `.'.
9032 # Before this point, $major must not contain '.'.
74069033 major=.$major
7407 versuffix="$major.$revision"
9034 versuffix=$major.$revision
74089035 ;;
74099036
74109037 linux) # correct to gnu/linux during the next big refactor
74119038 func_arith $current - $age
74129039 major=.$func_arith_result
7413 versuffix="$major.$age.$revision"
9040 versuffix=$major.$age.$revision
74149041 ;;
74159042
74169043 osf)
74179044 func_arith $current - $age
74189045 major=.$func_arith_result
7419 versuffix=".$current.$age.$revision"
7420 verstring="$current.$age.$revision"
9046 versuffix=.$current.$age.$revision
9047 verstring=$current.$age.$revision
74219048
74229049 # Add in all the interfaces that we are compatible with.
74239050 loop=$age
7424 while test "$loop" -ne 0; do
9051 while test 0 -ne "$loop"; do
74259052 func_arith $current - $loop
74269053 iface=$func_arith_result
74279054 func_arith $loop - 1
74289055 loop=$func_arith_result
7429 verstring="$verstring:${iface}.0"
9056 verstring=$verstring:$iface.0
74309057 done
74319058
74329059 # Make executables depend on our current version.
7433 func_append verstring ":${current}.0"
9060 func_append verstring ":$current.0"
74349061 ;;
74359062
74369063 qnx)
7437 major=".$current"
7438 versuffix=".$current"
9064 major=.$current
9065 versuffix=.$current
74399066 ;;
74409067
9068 sco)
9069 major=.$current
9070 versuffix=.$current
9071 ;;
9072
74419073 sunos)
7442 major=".$current"
7443 versuffix=".$current.$revision"
9074 major=.$current
9075 versuffix=.$current.$revision
74449076 ;;
74459077
74469078 windows)
74479079 # Use '-' rather than '.', since we only want one
7448 # extension on DOS 8.3 filesystems.
9080 # extension on DOS 8.3 file systems.
74499081 func_arith $current - $age
74509082 major=$func_arith_result
7451 versuffix="-$major"
9083 versuffix=-$major
74529084 ;;
74539085
74549086 *)
7455 func_fatal_configuration "unknown library version type \`$version_type'"
9087 func_fatal_configuration "unknown library version type '$version_type'"
74569088 ;;
74579089 esac
74589090
74669098 verstring=
74679099 ;;
74689100 *)
7469 verstring="0.0"
9101 verstring=0.0
74709102 ;;
74719103 esac
7472 if test "$need_version" = no; then
9104 if test no = "$need_version"; then
74739105 versuffix=
74749106 else
7475 versuffix=".0.0"
9107 versuffix=.0.0
74769108 fi
74779109 fi
74789110
74799111 # Remove version info from name if versioning should be avoided
7480 if test "$avoid_version" = yes && test "$need_version" = no; then
9112 if test yes,no = "$avoid_version,$need_version"; then
74819113 major=
74829114 versuffix=
7483 verstring=""
7484 else
7485 # XXX
7486 tmp=`echo $libname|sed -e 's,+,_,g' -e 's,-,_,g' -e 's,\.,_,g'`
7487 eval tmp2=\$${tmp}_ltversion
7488 if ! test -z "${SHARED_LIBS_LOG}"; then
7489 if ! test -f ${SHARED_LIBS_LOG}; then
7490 echo "# SHARED_LIBS+= <libname> <obsd version> # <orig version>" >${SHARED_LIBS_LOG}
7491 fi
7492 tmp4=`echo $libname|sed -e 's/^lib//'`
7493 printf "SHARED_LIBS +=\t%-20s %-8s # %s\n" "$tmp4" "$tmp2" "$versuffix" >>${SHARED_LIBS_LOG}
7494 fi
7495 if test -n "$versuffix" && test -n "$tmp2"; then
7496 versuffix=".$tmp2"
7497 fi
9115 verstring=
74989116 fi
74999117
75009118 # Check to see if the archive will have undefined symbols.
7501 if test "$allow_undefined" = yes; then
7502 if test "$allow_undefined_flag" = unsupported; then
7503 func_warning "undefined symbols not allowed in $host shared libraries"
7504 build_libtool_libs=no
7505 build_old_libs=yes
9119 if test yes = "$allow_undefined"; then
9120 if test unsupported = "$allow_undefined_flag"; then
9121 if test yes = "$build_old_libs"; then
9122 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9123 build_libtool_libs=no
9124 else
9125 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9126 fi
75069127 fi
75079128 else
75089129 # Don't allow undefined symbols.
7509 allow_undefined_flag="$no_undefined_flag"
9130 allow_undefined_flag=$no_undefined_flag
75109131 fi
75119132
75129133 fi
75139134
7514 func_generate_dlsyms "$libname" "$libname" "yes"
9135 func_generate_dlsyms "$libname" "$libname" :
75159136 func_append libobjs " $symfileobj"
7516 test "X$libobjs" = "X " && libobjs=
7517
7518 if test "$opt_mode" != relink; then
9137 test " " = "$libobjs" && libobjs=
9138
9139 if test relink != "$opt_mode"; then
75199140 # Remove our outputs, but don't remove object files since they
75209141 # may have been created when compiling PIC objects.
75219142 removelist=
75249145 case $p in
75259146 *.$objext | *.gcno)
75269147 ;;
7527 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7528 if test "X$precious_files_regex" != "X"; then
9148 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9149 if test -n "$precious_files_regex"; then
75299150 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
75309151 then
75319152 continue
75419162 fi
75429163
75439164 # Now set the variables for building old libraries.
7544 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
9165 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
75459166 func_append oldlibs " $output_objdir/$libname.$libext"
75469167
75479168 # Transform .lo files to .o files.
7548 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
9169 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
75499170 fi
75509171
75519172 # Eliminate all temporary directories.
75669187 *) func_append finalize_rpath " $libdir" ;;
75679188 esac
75689189 done
7569 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
9190 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
75709191 dependency_libs="$temp_xrpath $dependency_libs"
75719192 fi
75729193 fi
75739194
75749195 # Make sure dlfiles contains only unique files that won't be dlpreopened
7575 old_dlfiles="$dlfiles"
9196 old_dlfiles=$dlfiles
75769197 dlfiles=
75779198 for lib in $old_dlfiles; do
75789199 case " $dlprefiles $dlfiles " in
75829203 done
75839204
75849205 # Make sure dlprefiles contains only unique files
7585 old_dlprefiles="$dlprefiles"
9206 old_dlprefiles=$dlprefiles
75869207 dlprefiles=
75879208 for lib in $old_dlprefiles; do
75889209 case "$dlprefiles " in
75919212 esac
75929213 done
75939214
7594 if test "$build_libtool_libs" = yes; then
9215 if test yes = "$build_libtool_libs"; then
75959216 if test -n "$rpath"; then
75969217 case $host in
75979218 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
76159236 ;;
76169237 *)
76179238 # Add libc to deplibs on all other systems if necessary.
7618 if test "$build_libtool_need_lc" = "yes"; then
9239 if test yes = "$build_libtool_need_lc"; then
76199240 func_append deplibs " -lc"
76209241 fi
76219242 ;;
76319252 # I'm not sure if I'm treating the release correctly. I think
76329253 # release should show up in the -l (ie -lgmp5) so we don't want to
76339254 # add it in twice. Is that correct?
7634 release=""
7635 versuffix=""
7636 major=""
9255 release=
9256 versuffix=
9257 major=
76379258 newdeplibs=
76389259 droppeddeps=no
76399260 case $deplibs_check_method in
76629283 -l*)
76639284 func_stripname -l '' "$i"
76649285 name=$func_stripname_result
7665 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9286 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
76669287 case " $predeps $postdeps " in
76679288 *" $i "*)
76689289 func_append newdeplibs " $i"
7669 i=""
9290 i=
76709291 ;;
76719292 esac
76729293 fi
7673 if test -n "$i" ; then
9294 if test -n "$i"; then
76749295 libname=`eval "\\$ECHO \"$libname_spec\""`
76759296 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
76769297 set dummy $deplib_matches; shift
76779298 deplib_match=$1
7678 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9299 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
76799300 func_append newdeplibs " $i"
76809301 else
76819302 droppeddeps=yes
77059326 $opt_dry_run || $RM conftest
77069327 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
77079328 ldd_output=`ldd conftest`
7708 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9329 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77099330 case " $predeps $postdeps " in
77109331 *" $i "*)
77119332 func_append newdeplibs " $i"
7712 i=""
9333 i=
77139334 ;;
77149335 esac
77159336 fi
7716 if test -n "$i" ; then
9337 if test -n "$i"; then
77179338 libname=`eval "\\$ECHO \"$libname_spec\""`
77189339 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77199340 set dummy $deplib_matches; shift
77209341 deplib_match=$1
7721 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9342 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77229343 func_append newdeplibs " $i"
77239344 else
77249345 droppeddeps=yes
77559376 -l*)
77569377 func_stripname -l '' "$a_deplib"
77579378 name=$func_stripname_result
7758 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9379 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77599380 case " $predeps $postdeps " in
77609381 *" $a_deplib "*)
77619382 func_append newdeplibs " $a_deplib"
7762 a_deplib=""
9383 a_deplib=
77639384 ;;
77649385 esac
77659386 fi
7766 if test -n "$a_deplib" ; then
9387 if test -n "$a_deplib"; then
77679388 libname=`eval "\\$ECHO \"$libname_spec\""`
77689389 if test -n "$file_magic_glob"; then
77699390 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
77709391 else
77719392 libnameglob=$libname
77729393 fi
7773 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
9394 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
77749395 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7775 if test "$want_nocaseglob" = yes; then
9396 if test yes = "$want_nocaseglob"; then
77769397 shopt -s nocaseglob
77779398 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
77789399 $nocaseglob
77909411 # We might still enter an endless loop, since a link
77919412 # loop can be closed while we follow links,
77929413 # but so what?
7793 potlib="$potent_lib"
9414 potlib=$potent_lib
77949415 while test -h "$potlib" 2>/dev/null; do
7795 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
9416 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
77969417 case $potliblink in
7797 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7798 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
9418 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9419 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
77999420 esac
78009421 done
78019422 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
78029423 $SED -e 10q |
78039424 $EGREP "$file_magic_regex" > /dev/null; then
78049425 func_append newdeplibs " $a_deplib"
7805 a_deplib=""
9426 a_deplib=
78069427 break 2
78079428 fi
78089429 done
78099430 done
78109431 fi
7811 if test -n "$a_deplib" ; then
9432 if test -n "$a_deplib"; then
78129433 droppeddeps=yes
78139434 echo
78149435 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78169437 echo "*** you link to this library. But I can only do this if you have a"
78179438 echo "*** shared version of the library, which you do not appear to have"
78189439 echo "*** because I did check the linker path looking for a file starting"
7819 if test -z "$potlib" ; then
9440 if test -z "$potlib"; then
78209441 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
78219442 else
78229443 $ECHO "*** with $libname and none of the candidates passed a file format test"
78399460 -l*)
78409461 func_stripname -l '' "$a_deplib"
78419462 name=$func_stripname_result
7842 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9463 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
78439464 case " $predeps $postdeps " in
78449465 *" $a_deplib "*)
78459466 func_append newdeplibs " $a_deplib"
7846 a_deplib=""
9467 a_deplib=
78479468 ;;
78489469 esac
78499470 fi
7850 if test -n "$a_deplib" ; then
9471 if test -n "$a_deplib"; then
78519472 libname=`eval "\\$ECHO \"$libname_spec\""`
78529473 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
78539474 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78549475 for potent_lib in $potential_libs; do
7855 potlib="$potent_lib" # see symlink-check above in file_magic test
9476 potlib=$potent_lib # see symlink-check above in file_magic test
78569477 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
78579478 $EGREP "$match_pattern_regex" > /dev/null; then
78589479 func_append newdeplibs " $a_deplib"
7859 a_deplib=""
9480 a_deplib=
78609481 break 2
78619482 fi
78629483 done
78639484 done
78649485 fi
7865 if test -n "$a_deplib" ; then
9486 if test -n "$a_deplib"; then
78669487 droppeddeps=yes
78679488 echo
78689489 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78709491 echo "*** you link to this library. But I can only do this if you have a"
78719492 echo "*** shared version of the library, which you do not appear to have"
78729493 echo "*** because I did check the linker path looking for a file starting"
7873 if test -z "$potlib" ; then
9494 if test -z "$potlib"; then
78749495 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
78759496 else
78769497 $ECHO "*** with $libname and none of the candidates passed a file format test"
78869507 done # Gone through all deplibs.
78879508 ;;
78889509 none | unknown | *)
7889 newdeplibs=""
9510 newdeplibs=
78909511 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7891 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7892 for i in $predeps $postdeps ; do
9512 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9513 for i in $predeps $postdeps; do
78939514 # can't use Xsed below, because $i might contain '/'
7894 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
9515 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
78959516 done
78969517 fi
78979518 case $tmp_deplibs in
78989519 *[!\ \ ]*)
78999520 echo
7900 if test "X$deplibs_check_method" = "Xnone"; then
9521 if test none = "$deplibs_check_method"; then
79019522 echo "*** Warning: inter-library dependencies are not supported in this platform."
79029523 else
79039524 echo "*** Warning: inter-library dependencies are not known to be supported."
79219542 ;;
79229543 esac
79239544
7924 if test "$droppeddeps" = yes; then
7925 if test "$module" = yes; then
9545 if test yes = "$droppeddeps"; then
9546 if test yes = "$module"; then
79269547 echo
79279548 echo "*** Warning: libtool could not satisfy all declared inter-library"
79289549 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
79319552 if test -z "$global_symbol_pipe"; then
79329553 echo
79339554 echo "*** However, this would only work if libtool was able to extract symbol"
7934 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
9555 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
79359556 echo "*** not find such a program. So, this module is probably useless."
7936 echo "*** \`nm' from GNU binutils and a full rebuild may help."
9557 echo "*** 'nm' from GNU binutils and a full rebuild may help."
79379558 fi
7938 if test "$build_old_libs" = no; then
7939 oldlibs="$output_objdir/$libname.$libext"
9559 if test no = "$build_old_libs"; then
9560 oldlibs=$output_objdir/$libname.$libext
79409561 build_libtool_libs=module
79419562 build_old_libs=yes
79429563 else
79479568 echo "*** automatically added whenever a program is linked with this library"
79489569 echo "*** or is declared to -dlopen it."
79499570
7950 if test "$allow_undefined" = no; then
9571 if test no = "$allow_undefined"; then
79519572 echo
79529573 echo "*** Since this library must not contain undefined symbols,"
79539574 echo "*** because either the platform does not support them or"
79549575 echo "*** it was explicitly requested with -no-undefined,"
79559576 echo "*** libtool will only create a static version of it."
7956 if test "$build_old_libs" = no; then
7957 oldlibs="$output_objdir/$libname.$libext"
9577 if test no = "$build_old_libs"; then
9578 oldlibs=$output_objdir/$libname.$libext
79589579 build_libtool_libs=module
79599580 build_old_libs=yes
79609581 else
80009621 *) func_append new_libs " $deplib" ;;
80019622 esac
80029623 done
8003 deplibs="$new_libs"
9624 deplibs=$new_libs
80049625
80059626 # All the library-specific variables (install_libdir is set above).
80069627 library_names=
80089629 dlname=
80099630
80109631 # Test again, we may have decided not to build it any more
8011 if test "$build_libtool_libs" = yes; then
8012 # Remove ${wl} instances when linking with ld.
9632 if test yes = "$build_libtool_libs"; then
9633 # Remove $wl instances when linking with ld.
80139634 # FIXME: should test the right _cmds variable.
80149635 case $archive_cmds in
80159636 *\$LD\ *) wl= ;;
80169637 esac
8017 if test "$hardcode_into_libs" = yes; then
9638 if test yes = "$hardcode_into_libs"; then
80189639 # Hardcode the library paths
80199640 hardcode_libdirs=
80209641 dep_rpath=
8021 rpath="$finalize_rpath"
8022 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
9642 rpath=$finalize_rpath
9643 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
80239644 for libdir in $rpath; do
80249645 if test -n "$hardcode_libdir_flag_spec"; then
80259646 if test -n "$hardcode_libdir_separator"; then
80269647 func_replace_sysroot "$libdir"
80279648 libdir=$func_replace_sysroot_result
80289649 if test -z "$hardcode_libdirs"; then
8029 hardcode_libdirs="$libdir"
9650 hardcode_libdirs=$libdir
80309651 else
80319652 # Just accumulate the unique libdirs.
80329653 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
80519672 # Substitute the hardcoded libdirs into the rpath.
80529673 if test -n "$hardcode_libdir_separator" &&
80539674 test -n "$hardcode_libdirs"; then
8054 libdir="$hardcode_libdirs"
9675 libdir=$hardcode_libdirs
80559676 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
80569677 fi
80579678 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80659686 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
80669687 fi
80679688
8068 shlibpath="$finalize_shlibpath"
8069 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
9689 shlibpath=$finalize_shlibpath
9690 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
80709691 if test -n "$shlibpath"; then
80719692 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
80729693 fi
80769697 eval library_names=\"$library_names_spec\"
80779698 set dummy $library_names
80789699 shift
8079 realname="$1"
9700 realname=$1
80809701 shift
80819702
80829703 if test -n "$soname_spec"; then
80839704 eval soname=\"$soname_spec\"
80849705 else
8085 soname="$realname"
9706 soname=$realname
80869707 fi
80879708 if test -z "$dlname"; then
80889709 dlname=$soname
80899710 fi
80909711
8091 lib="$output_objdir/$realname"
9712 lib=$output_objdir/$realname
80929713 linknames=
80939714 for link
80949715 do
81029723 delfiles=
81039724 if test -n "$export_symbols" && test -n "$include_expsyms"; then
81049725 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8105 export_symbols="$output_objdir/$libname.uexp"
9726 export_symbols=$output_objdir/$libname.uexp
81069727 func_append delfiles " $export_symbols"
81079728 fi
81089729
81119732 cygwin* | mingw* | cegcc*)
81129733 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
81139734 # exporting using user supplied symfile
8114 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
9735 func_dll_def_p "$export_symbols" || {
81159736 # and it's NOT already a .def file. Must figure out
81169737 # which of the given symbols are data symbols and tag
81179738 # them as such. So, trigger use of export_symbols_cmds.
81189739 # export_symbols gets reassigned inside the "prepare
81199740 # the list of exported symbols" if statement, so the
81209741 # include_expsyms logic still works.
8121 orig_export_symbols="$export_symbols"
9742 orig_export_symbols=$export_symbols
81229743 export_symbols=
81239744 always_export_symbols=yes
8124 fi
9745 }
81259746 fi
81269747 ;;
81279748 esac
81289749
81299750 # Prepare the list of exported symbols
81309751 if test -z "$export_symbols"; then
8131 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8132 func_verbose "generating symbol list for \`$libname.la'"
8133 export_symbols="$output_objdir/$libname.exp"
9752 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9753 func_verbose "generating symbol list for '$libname.la'"
9754 export_symbols=$output_objdir/$libname.exp
81349755 $opt_dry_run || $RM $export_symbols
81359756 cmds=$export_symbols_cmds
8136 save_ifs="$IFS"; IFS='~'
9757 save_ifs=$IFS; IFS='~'
81379758 for cmd1 in $cmds; do
8138 IFS="$save_ifs"
9759 IFS=$save_ifs
81399760 # Take the normal branch if the nm_file_list_spec branch
81409761 # doesn't work or if tool conversion is not needed.
81419762 case $nm_file_list_spec~$to_tool_file_cmd in
81499770 try_normal_branch=no
81509771 ;;
81519772 esac
8152 if test "$try_normal_branch" = yes \
9773 if test yes = "$try_normal_branch" \
81539774 && { test "$len" -lt "$max_cmd_len" \
81549775 || test "$max_cmd_len" -le -1; }
81559776 then
81609781 output_la=$func_basename_result
81619782 save_libobjs=$libobjs
81629783 save_output=$output
8163 output=${output_objdir}/${output_la}.nm
9784 output=$output_objdir/$output_la.nm
81649785 func_to_tool_file "$output"
81659786 libobjs=$nm_file_list_spec$func_to_tool_file_result
81669787 func_append delfiles " $output"
81839804 break
81849805 fi
81859806 done
8186 IFS="$save_ifs"
8187 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
9807 IFS=$save_ifs
9808 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
81889809 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
81899810 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
81909811 fi
81929813 fi
81939814
81949815 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8195 tmp_export_symbols="$export_symbols"
8196 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9816 tmp_export_symbols=$export_symbols
9817 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
81979818 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
81989819 fi
81999820
8200 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
9821 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
82019822 # The given exports_symbols file has to be filtered, so filter it.
8202 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9823 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
82039824 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8204 # 's' commands which not all seds can handle. GNU sed should be fine
9825 # 's' commands, which not all seds can handle. GNU sed should be fine
82059826 # though. Also, the filter scales superlinearly with the number of
82069827 # global variables. join(1) would be nice here, but unfortunately
82079828 # isn't a blessed tool.
82209841 ;;
82219842 esac
82229843 done
8223 deplibs="$tmp_deplibs"
9844 deplibs=$tmp_deplibs
82249845
82259846 if test -n "$convenience"; then
82269847 if test -n "$whole_archive_flag_spec" &&
8227 test "$compiler_needs_object" = yes &&
9848 test yes = "$compiler_needs_object" &&
82289849 test -z "$libobjs"; then
82299850 # extract the archives, so we have objects to list.
82309851 # TODO: could optimize this to just extract one archive.
82359856 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
82369857 test "X$libobjs" = "X " && libobjs=
82379858 else
8238 gentop="$output_objdir/${outputname}x"
9859 gentop=$output_objdir/${outputname}x
82399860 func_append generated " $gentop"
82409861
82419862 func_extract_archives $gentop $convenience
82449865 fi
82459866 fi
82469867
8247 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
9868 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
82489869 eval flag=\"$thread_safe_flag_spec\"
82499870 func_append linker_flags " $flag"
82509871 fi
82519872
82529873 # Make a backup of the uninstalled library when relinking
8253 if test "$opt_mode" = relink; then
9874 if test relink = "$opt_mode"; then
82549875 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
82559876 fi
82569877
82579878 # Do each of the archive commands.
8258 if test "$module" = yes && test -n "$module_cmds" ; then
9879 if test yes = "$module" && test -n "$module_cmds"; then
82599880 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
82609881 eval test_cmds=\"$module_expsym_cmds\"
82619882 cmds=$module_expsym_cmds
82739894 fi
82749895 fi
82759896
8276 if test "X$skipped_export" != "X:" &&
9897 if test : != "$skipped_export" &&
82779898 func_len " $test_cmds" &&
82789899 len=$func_len_result &&
82799900 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
83069927 last_robj=
83079928 k=1
83089929
8309 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8310 output=${output_objdir}/${output_la}.lnkscript
9930 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9931 output=$output_objdir/$output_la.lnkscript
83119932 func_verbose "creating GNU ld script: $output"
83129933 echo 'INPUT (' > $output
83139934 for obj in $save_libobjs
83199940 func_append delfiles " $output"
83209941 func_to_tool_file "$output"
83219942 output=$func_to_tool_file_result
8322 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8323 output=${output_objdir}/${output_la}.lnk
9943 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9944 output=$output_objdir/$output_la.lnk
83249945 func_verbose "creating linker input file list: $output"
83259946 : > $output
83269947 set x $save_libobjs
83279948 shift
83289949 firstobj=
8329 if test "$compiler_needs_object" = yes; then
9950 if test yes = "$compiler_needs_object"; then
83309951 firstobj="$1 "
83319952 shift
83329953 fi
83419962 else
83429963 if test -n "$save_libobjs"; then
83439964 func_verbose "creating reloadable object files..."
8344 output=$output_objdir/$output_la-${k}.$objext
9965 output=$output_objdir/$output_la-$k.$objext
83459966 eval test_cmds=\"$reload_cmds\"
83469967 func_len " $test_cmds"
83479968 len0=$func_len_result
83539974 func_len " $obj"
83549975 func_arith $len + $func_len_result
83559976 len=$func_arith_result
8356 if test "X$objlist" = X ||
9977 if test -z "$objlist" ||
83579978 test "$len" -lt "$max_cmd_len"; then
83589979 func_append objlist " $obj"
83599980 else
83609981 # The command $test_cmds is almost too long, add a
83619982 # command to the queue.
8362 if test "$k" -eq 1 ; then
9983 if test 1 -eq "$k"; then
83639984 # The first file doesn't have a previous command to add.
83649985 reload_objs=$objlist
83659986 eval concat_cmds=\"$reload_cmds\"
83699990 reload_objs="$objlist $last_robj"
83709991 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
83719992 fi
8372 last_robj=$output_objdir/$output_la-${k}.$objext
9993 last_robj=$output_objdir/$output_la-$k.$objext
83739994 func_arith $k + 1
83749995 k=$func_arith_result
8375 output=$output_objdir/$output_la-${k}.$objext
9996 output=$output_objdir/$output_la-$k.$objext
83769997 objlist=" $obj"
83779998 func_len " $last_robj"
83789999 func_arith $len0 + $func_len_result
838410005 # files will link in the last one created.
838510006 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
838610007 reload_objs="$objlist $last_robj"
8387 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
10008 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
838810009 if test -n "$last_robj"; then
8389 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
10010 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
839010011 fi
839110012 func_append delfiles " $output"
839210013
839410015 output=
839510016 fi
839610017
8397 if ${skipped_export-false}; then
8398 func_verbose "generating symbol list for \`$libname.la'"
8399 export_symbols="$output_objdir/$libname.exp"
10018 ${skipped_export-false} && {
10019 func_verbose "generating symbol list for '$libname.la'"
10020 export_symbols=$output_objdir/$libname.exp
840010021 $opt_dry_run || $RM $export_symbols
840110022 libobjs=$output
840210023 # Append the command to create the export file.
840510026 if test -n "$last_robj"; then
840610027 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
840710028 fi
8408 fi
10029 }
840910030
841010031 test -n "$save_libobjs" &&
841110032 func_verbose "creating a temporary reloadable object file: $output"
841210033
841310034 # Loop through the commands generated above and execute them.
8414 save_ifs="$IFS"; IFS='~'
10035 save_ifs=$IFS; IFS='~'
841510036 for cmd in $concat_cmds; do
8416 IFS="$save_ifs"
8417 $opt_silent || {
10037 IFS=$save_ifs
10038 $opt_quiet || {
841810039 func_quote_for_expand "$cmd"
841910040 eval "func_echo $func_quote_for_expand_result"
842010041 }
842210043 lt_exit=$?
842310044
842410045 # Restore the uninstalled library and exit
8425 if test "$opt_mode" = relink; then
10046 if test relink = "$opt_mode"; then
842610047 ( cd "$output_objdir" && \
842710048 $RM "${realname}T" && \
842810049 $MV "${realname}U" "$realname" )
843110052 exit $lt_exit
843210053 }
843310054 done
8434 IFS="$save_ifs"
10055 IFS=$save_ifs
843510056
843610057 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
843710058 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
843910060 fi
844010061 fi
844110062
8442 if ${skipped_export-false}; then
10063 ${skipped_export-false} && {
844310064 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8444 tmp_export_symbols="$export_symbols"
8445 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
10065 tmp_export_symbols=$export_symbols
10066 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
844610067 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
844710068 fi
844810069
844910070 if test -n "$orig_export_symbols"; then
845010071 # The given exports_symbols file has to be filtered, so filter it.
8451 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
10072 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
845210073 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8453 # 's' commands which not all seds can handle. GNU sed should be fine
10074 # 's' commands, which not all seds can handle. GNU sed should be fine
845410075 # though. Also, the filter scales superlinearly with the number of
845510076 # global variables. join(1) would be nice here, but unfortunately
845610077 # isn't a blessed tool.
845910080 export_symbols=$output_objdir/$libname.def
846010081 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
846110082 fi
8462 fi
10083 }
846310084
846410085 libobjs=$output
846510086 # Restore the value of output.
847310094 # value of $libobjs for piecewise linking.
847410095
847510096 # Do each of the archive commands.
8476 if test "$module" = yes && test -n "$module_cmds" ; then
10097 if test yes = "$module" && test -n "$module_cmds"; then
847710098 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
847810099 cmds=$module_expsym_cmds
847910100 else
849510116
849610117 # Add any objects from preloaded convenience libraries
849710118 if test -n "$dlprefiles"; then
8498 gentop="$output_objdir/${outputname}x"
10119 gentop=$output_objdir/${outputname}x
849910120 func_append generated " $gentop"
850010121
850110122 func_extract_archives $gentop $dlprefiles
850310124 test "X$libobjs" = "X " && libobjs=
850410125 fi
850510126
8506 save_ifs="$IFS"; IFS='~'
10127 save_ifs=$IFS; IFS='~'
850710128 for cmd in $cmds; do
8508 IFS="$save_ifs"
10129 IFS=$sp$nl
850910130 eval cmd=\"$cmd\"
8510 $opt_silent || {
10131 IFS=$save_ifs
10132 $opt_quiet || {
851110133 func_quote_for_expand "$cmd"
851210134 eval "func_echo $func_quote_for_expand_result"
851310135 }
851510137 lt_exit=$?
851610138
851710139 # Restore the uninstalled library and exit
8518 if test "$opt_mode" = relink; then
10140 if test relink = "$opt_mode"; then
851910141 ( cd "$output_objdir" && \
852010142 $RM "${realname}T" && \
852110143 $MV "${realname}U" "$realname" )
852410146 exit $lt_exit
852510147 }
852610148 done
8527 IFS="$save_ifs"
10149 IFS=$save_ifs
852810150
852910151 # Restore the uninstalled library and exit
8530 if test "$opt_mode" = relink; then
10152 if test relink = "$opt_mode"; then
853110153 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
853210154
853310155 if test -n "$convenience"; then
854710169 done
854810170
854910171 # If -module or -export-dynamic was specified, set the dlname.
8550 if test "$module" = yes || test "$export_dynamic" = yes; then
10172 if test yes = "$module" || test yes = "$export_dynamic"; then
855110173 # On all known operating systems, these are identical.
8552 dlname="$soname"
10174 dlname=$soname
855310175 fi
855410176 fi
855510177 ;;
855610178
855710179 obj)
8558 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8559 func_warning "\`-dlopen' is ignored for objects"
10180 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10181 func_warning "'-dlopen' is ignored for objects"
856010182 fi
856110183
856210184 case " $deplibs" in
856310185 *\ -l* | *\ -L*)
8564 func_warning "\`-l' and \`-L' are ignored for objects" ;;
10186 func_warning "'-l' and '-L' are ignored for objects" ;;
856510187 esac
856610188
856710189 test -n "$rpath" && \
8568 func_warning "\`-rpath' is ignored for objects"
10190 func_warning "'-rpath' is ignored for objects"
856910191
857010192 test -n "$xrpath" && \
8571 func_warning "\`-R' is ignored for objects"
10193 func_warning "'-R' is ignored for objects"
857210194
857310195 test -n "$vinfo" && \
8574 func_warning "\`-version-info' is ignored for objects"
10196 func_warning "'-version-info' is ignored for objects"
857510197
857610198 test -n "$release" && \
8577 func_warning "\`-release' is ignored for objects"
10199 func_warning "'-release' is ignored for objects"
857810200
857910201 case $output in
858010202 *.lo)
858110203 test -n "$objs$old_deplibs" && \
8582 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
10204 func_fatal_error "cannot build library object '$output' from non-libtool objects"
858310205
858410206 libobj=$output
858510207 func_lo2o "$libobj"
858710209 ;;
858810210 *)
858910211 libobj=
8590 obj="$output"
10212 obj=$output
859110213 ;;
859210214 esac
859310215
860010222 # the extraction.
860110223 reload_conv_objs=
860210224 gentop=
8603 # reload_cmds runs $LD directly, so let us get rid of
8604 # -Wl from whole_archive_flag_spec and hope we can get by with
8605 # turning comma into space..
8606 wl=
8607
10225 # if reload_cmds runs $LD directly, get rid of -Wl from
10226 # whole_archive_flag_spec and hope we can get by with turning comma
10227 # into space.
10228 case $reload_cmds in
10229 *\$LD[\ \$]*) wl= ;;
10230 esac
860810231 if test -n "$convenience"; then
860910232 if test -n "$whole_archive_flag_spec"; then
861010233 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8611 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10234 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10235 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
861210236 else
8613 gentop="$output_objdir/${obj}x"
10237 gentop=$output_objdir/${obj}x
861410238 func_append generated " $gentop"
861510239
861610240 func_extract_archives $gentop $convenience
861910243 fi
862010244
862110245 # If we're not building shared, we need to use non_pic_objs
8622 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
10246 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
862310247
862410248 # Create the old-style object.
8625 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8626
8627 output="$obj"
10249 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10250
10251 output=$obj
862810252 func_execute_cmds "$reload_cmds" 'exit $?'
862910253
863010254 # Exit if we aren't doing a library object file.
863610260 exit $EXIT_SUCCESS
863710261 fi
863810262
8639 if test "$build_libtool_libs" != yes; then
10263 test yes = "$build_libtool_libs" || {
864010264 if test -n "$gentop"; then
864110265 func_show_eval '${RM}r "$gentop"'
864210266 fi
864610270 # $show "echo timestamp > $libobj"
864710271 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
864810272 exit $EXIT_SUCCESS
8649 fi
8650
8651 if test -n "$pic_flag" || test "$pic_mode" != default; then
10273 }
10274
10275 if test -n "$pic_flag" || test default != "$pic_mode"; then
865210276 # Only do commands if we really have different PIC objects.
865310277 reload_objs="$libobjs $reload_conv_objs"
8654 output="$libobj"
10278 output=$libobj
865510279 func_execute_cmds "$reload_cmds" 'exit $?'
865610280 fi
865710281
866810292 output=$func_stripname_result.exe;;
866910293 esac
867010294 test -n "$vinfo" && \
8671 func_warning "\`-version-info' is ignored for programs"
10295 func_warning "'-version-info' is ignored for programs"
867210296
867310297 test -n "$release" && \
8674 func_warning "\`-release' is ignored for programs"
8675
8676 test "$preload" = yes \
8677 && test "$dlopen_support" = unknown \
8678 && test "$dlopen_self" = unknown \
8679 && test "$dlopen_self_static" = unknown && \
8680 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
10298 func_warning "'-release' is ignored for programs"
10299
10300 $preload \
10301 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10302 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
868110303
868210304 case $host in
868310305 *-*-rhapsody* | *-*-darwin1.[012])
869110313 *-*-darwin*)
869210314 # Don't allow lazy linking, it breaks C++ global constructors
869310315 # But is supposedly fixed on 10.4 or later (yay!).
8694 if test "$tagname" = CXX ; then
10316 if test CXX = "$tagname"; then
869510317 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
869610318 10.[0123])
8697 func_append compile_command " ${wl}-bind_at_load"
8698 func_append finalize_command " ${wl}-bind_at_load"
10319 func_append compile_command " $wl-bind_at_load"
10320 func_append finalize_command " $wl-bind_at_load"
869910321 ;;
870010322 esac
870110323 fi
873110353 *) func_append new_libs " $deplib" ;;
873210354 esac
873310355 done
8734 compile_deplibs="$new_libs"
10356 compile_deplibs=$new_libs
873510357
873610358
873710359 func_append compile_command " $compile_deplibs"
875510377 if test -n "$hardcode_libdir_flag_spec"; then
875610378 if test -n "$hardcode_libdir_separator"; then
875710379 if test -z "$hardcode_libdirs"; then
8758 hardcode_libdirs="$libdir"
10380 hardcode_libdirs=$libdir
875910381 else
876010382 # Just accumulate the unique libdirs.
876110383 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
877810400 fi
877910401 case $host in
878010402 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8781 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
10403 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
878210404 case :$dllsearchpath: in
878310405 *":$libdir:"*) ;;
878410406 ::) dllsearchpath=$libdir;;
879510417 # Substitute the hardcoded libdirs into the rpath.
879610418 if test -n "$hardcode_libdir_separator" &&
879710419 test -n "$hardcode_libdirs"; then
8798 libdir="$hardcode_libdirs"
10420 libdir=$hardcode_libdirs
879910421 eval rpath=\" $hardcode_libdir_flag_spec\"
880010422 fi
8801 compile_rpath="$rpath"
10423 compile_rpath=$rpath
880210424
880310425 rpath=
880410426 hardcode_libdirs=
880610428 if test -n "$hardcode_libdir_flag_spec"; then
880710429 if test -n "$hardcode_libdir_separator"; then
880810430 if test -z "$hardcode_libdirs"; then
8809 hardcode_libdirs="$libdir"
10431 hardcode_libdirs=$libdir
881010432 else
881110433 # Just accumulate the unique libdirs.
881210434 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
883110453 # Substitute the hardcoded libdirs into the rpath.
883210454 if test -n "$hardcode_libdir_separator" &&
883310455 test -n "$hardcode_libdirs"; then
8834 libdir="$hardcode_libdirs"
10456 libdir=$hardcode_libdirs
883510457 eval rpath=\" $hardcode_libdir_flag_spec\"
883610458 fi
8837 finalize_rpath="$rpath"
8838
8839 if test -n "$libobjs" && test "$build_old_libs" = yes; then
10459 finalize_rpath=$rpath
10460
10461 if test -n "$libobjs" && test yes = "$build_old_libs"; then
884010462 # Transform all the library objects into standard objects.
884110463 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
884210464 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
884310465 fi
884410466
8845 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
10467 func_generate_dlsyms "$outputname" "@PROGRAM@" false
884610468
884710469 # template prelinking step
884810470 if test -n "$prelink_cmds"; then
884910471 func_execute_cmds "$prelink_cmds" 'exit $?'
885010472 fi
885110473
8852 wrappers_required=yes
10474 wrappers_required=:
885310475 case $host in
885410476 *cegcc* | *mingw32ce*)
885510477 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8856 wrappers_required=no
10478 wrappers_required=false
885710479 ;;
885810480 *cygwin* | *mingw* )
8859 if test "$build_libtool_libs" != yes; then
8860 wrappers_required=no
8861 fi
10481 test yes = "$build_libtool_libs" || wrappers_required=false
886210482 ;;
886310483 *)
8864 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8865 wrappers_required=no
10484 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10485 wrappers_required=false
886610486 fi
886710487 ;;
886810488 esac
8869 if test "$wrappers_required" = no; then
10489 $wrappers_required || {
887010490 # Replace the output file specification.
887110491 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8872 link_command="$compile_command$compile_rpath"
10492 link_command=$compile_command$compile_rpath
887310493
887410494 # We have no uninstalled library dependencies, so finalize right now.
887510495 exit_status=0
888210502 fi
888310503
888410504 # Delete the generated files.
8885 if test -f "$output_objdir/${outputname}S.${objext}"; then
8886 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
10505 if test -f "$output_objdir/${outputname}S.$objext"; then
10506 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
888710507 fi
888810508
888910509 exit $exit_status
8890 fi
10510 }
889110511
889210512 if test -n "$compile_shlibpath$finalize_shlibpath"; then
889310513 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
891710537 fi
891810538 fi
891910539
8920 if test "$no_install" = yes; then
10540 if test yes = "$no_install"; then
892110541 # We don't need to create a wrapper script.
8922 link_command="$compile_var$compile_command$compile_rpath"
10542 link_command=$compile_var$compile_command$compile_rpath
892310543 # Replace the output file specification.
892410544 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
892510545 # Delete the old output file.
893610556 exit $EXIT_SUCCESS
893710557 fi
893810558
8939 if test "$hardcode_action" = relink; then
8940 # Fast installation is not supported
8941 link_command="$compile_var$compile_command$compile_rpath"
8942 relink_command="$finalize_var$finalize_command$finalize_rpath"
8943
8944 func_warning "this platform does not like uninstalled shared libraries"
8945 func_warning "\`$output' will be relinked during installation"
8946 else
8947 if test "$fast_install" != no; then
8948 link_command="$finalize_var$compile_command$finalize_rpath"
8949 if test "$fast_install" = yes; then
8950 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8951 else
8952 # fast_install is set to needless
8953 relink_command=
8954 fi
8955 else
8956 link_command="$compile_var$compile_command$compile_rpath"
8957 relink_command="$finalize_var$finalize_command$finalize_rpath"
8958 fi
8959 fi
10559 case $hardcode_action,$fast_install in
10560 relink,*)
10561 # Fast installation is not supported
10562 link_command=$compile_var$compile_command$compile_rpath
10563 relink_command=$finalize_var$finalize_command$finalize_rpath
10564
10565 func_warning "this platform does not like uninstalled shared libraries"
10566 func_warning "'$output' will be relinked during installation"
10567 ;;
10568 *,yes)
10569 link_command=$finalize_var$compile_command$finalize_rpath
10570 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10571 ;;
10572 *,no)
10573 link_command=$compile_var$compile_command$compile_rpath
10574 relink_command=$finalize_var$finalize_command$finalize_rpath
10575 ;;
10576 *,needless)
10577 link_command=$finalize_var$compile_command$finalize_rpath
10578 relink_command=
10579 ;;
10580 esac
896010581
896110582 # Replace the output file specification.
896210583 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
901310634 func_dirname_and_basename "$output" "" "."
901410635 output_name=$func_basename_result
901510636 output_path=$func_dirname_result
9016 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9017 cwrapper="$output_path/$output_name.exe"
10637 cwrappersource=$output_path/$objdir/lt-$output_name.c
10638 cwrapper=$output_path/$output_name.exe
901810639 $RM $cwrappersource $cwrapper
901910640 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
902010641
903510656 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
903610657 $opt_dry_run || {
903710658 # note: this script will not be executed, so do not chmod.
9038 if test "x$build" = "x$host" ; then
10659 if test "x$build" = "x$host"; then
903910660 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
904010661 else
904110662 func_emit_wrapper no > $func_ltwrapper_scriptname_result
905810679 # See if we need to build an old-fashioned archive.
905910680 for oldlib in $oldlibs; do
906010681
9061 if test "$build_libtool_libs" = convenience; then
9062 oldobjs="$libobjs_save $symfileobj"
9063 addlibs="$convenience"
9064 build_libtool_libs=no
9065 else
9066 if test "$build_libtool_libs" = module; then
9067 oldobjs="$libobjs_save"
10682 case $build_libtool_libs in
10683 convenience)
10684 oldobjs="$libobjs_save $symfileobj"
10685 addlibs=$convenience
906810686 build_libtool_libs=no
9069 else
10687 ;;
10688 module)
10689 oldobjs=$libobjs_save
10690 addlibs=$old_convenience
10691 build_libtool_libs=no
10692 ;;
10693 *)
907010694 oldobjs="$old_deplibs $non_pic_objects"
9071 if test "$preload" = yes && test -f "$symfileobj"; then
9072 func_append oldobjs " $symfileobj"
9073 fi
9074 fi
9075 addlibs="$old_convenience"
9076 fi
10695 $preload && test -f "$symfileobj" \
10696 && func_append oldobjs " $symfileobj"
10697 addlibs=$old_convenience
10698 ;;
10699 esac
907710700
907810701 if test -n "$addlibs"; then
9079 gentop="$output_objdir/${outputname}x"
10702 gentop=$output_objdir/${outputname}x
908010703 func_append generated " $gentop"
908110704
908210705 func_extract_archives $gentop $addlibs
908410707 fi
908510708
908610709 # Do each command in the archive commands.
9087 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
10710 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
908810711 cmds=$old_archive_from_new_cmds
908910712 else
909010713
909110714 # Add any objects from preloaded convenience libraries
909210715 if test -n "$dlprefiles"; then
9093 gentop="$output_objdir/${outputname}x"
10716 gentop=$output_objdir/${outputname}x
909410717 func_append generated " $gentop"
909510718
909610719 func_extract_archives $gentop $dlprefiles
911110734 :
911210735 else
911310736 echo "copying selected object files to avoid basename conflicts..."
9114 gentop="$output_objdir/${outputname}x"
10737 gentop=$output_objdir/${outputname}x
911510738 func_append generated " $gentop"
911610739 func_mkdir_p "$gentop"
911710740 save_oldobjs=$oldobjs
912010743 for obj in $save_oldobjs
912110744 do
912210745 func_basename "$obj"
9123 objbase="$func_basename_result"
10746 objbase=$func_basename_result
912410747 case " $oldobjs " in
912510748 " ") oldobjs=$obj ;;
912610749 *[\ /]"$objbase "*)
918910812 else
919010813 # the above command should be used before it gets too long
919110814 oldobjs=$objlist
9192 if test "$obj" = "$last_oldobj" ; then
10815 if test "$obj" = "$last_oldobj"; then
919310816 RANLIB=$save_RANLIB
919410817 fi
919510818 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9196 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
10819 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
919710820 objlist=
919810821 len=$len0
919910822 fi
920010823 done
920110824 RANLIB=$save_RANLIB
920210825 oldobjs=$objlist
9203 if test "X$oldobjs" = "X" ; then
10826 if test -z "$oldobjs"; then
920410827 eval cmds=\"\$concat_cmds\"
920510828 else
920610829 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
921710840 case $output in
921810841 *.la)
921910842 old_library=
9220 test "$build_old_libs" = yes && old_library="$libname.$libext"
10843 test yes = "$build_old_libs" && old_library=$libname.$libext
922110844 func_verbose "creating $output"
922210845
922310846 # Preserve any variables that may affect compiler behavior
923210855 fi
923310856 done
923410857 # Quote the link command for shipping.
9235 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10858 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
923610859 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9237 if test "$hardcode_automatic" = yes ; then
10860 if test yes = "$hardcode_automatic"; then
923810861 relink_command=
923910862 fi
924010863
924110864 # Only create the output if not a dry run.
924210865 $opt_dry_run || {
924310866 for installed in no yes; do
9244 if test "$installed" = yes; then
10867 if test yes = "$installed"; then
924510868 if test -z "$install_libdir"; then
924610869 break
924710870 fi
9248 output="$output_objdir/$outputname"i
10871 output=$output_objdir/${outputname}i
924910872 # Replace all uninstalled libtool libraries with the installed ones
925010873 newdependency_libs=
925110874 for deplib in $dependency_libs; do
925210875 case $deplib in
925310876 *.la)
925410877 func_basename "$deplib"
9255 name="$func_basename_result"
10878 name=$func_basename_result
925610879 func_resolve_sysroot "$deplib"
9257 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10880 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
925810881 test -z "$libdir" && \
9259 func_fatal_error "\`$deplib' is not a valid libtool archive"
10882 func_fatal_error "'$deplib' is not a valid libtool archive"
926010883 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
926110884 ;;
926210885 -L*)
927210895 *) func_append newdependency_libs " $deplib" ;;
927310896 esac
927410897 done
9275 dependency_libs="$newdependency_libs"
10898 dependency_libs=$newdependency_libs
927610899 newdlfiles=
927710900
927810901 for lib in $dlfiles; do
927910902 case $lib in
928010903 *.la)
928110904 func_basename "$lib"
9282 name="$func_basename_result"
9283 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10905 name=$func_basename_result
10906 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
928410907 test -z "$libdir" && \
9285 func_fatal_error "\`$lib' is not a valid libtool archive"
10908 func_fatal_error "'$lib' is not a valid libtool archive"
928610909 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
928710910 ;;
928810911 *) func_append newdlfiles " $lib" ;;
928910912 esac
929010913 done
9291 dlfiles="$newdlfiles"
10914 dlfiles=$newdlfiles
929210915 newdlprefiles=
929310916 for lib in $dlprefiles; do
929410917 case $lib in
929810921 # didn't already link the preopened objects directly into
929910922 # the library:
930010923 func_basename "$lib"
9301 name="$func_basename_result"
9302 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10924 name=$func_basename_result
10925 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
930310926 test -z "$libdir" && \
9304 func_fatal_error "\`$lib' is not a valid libtool archive"
10927 func_fatal_error "'$lib' is not a valid libtool archive"
930510928 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
930610929 ;;
930710930 esac
930810931 done
9309 dlprefiles="$newdlprefiles"
10932 dlprefiles=$newdlprefiles
931010933 else
931110934 newdlfiles=
931210935 for lib in $dlfiles; do
931310936 case $lib in
9314 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10937 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
931510938 *) abs=`pwd`"/$lib" ;;
931610939 esac
931710940 func_append newdlfiles " $abs"
931810941 done
9319 dlfiles="$newdlfiles"
10942 dlfiles=$newdlfiles
932010943 newdlprefiles=
932110944 for lib in $dlprefiles; do
932210945 case $lib in
9323 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10946 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
932410947 *) abs=`pwd`"/$lib" ;;
932510948 esac
932610949 func_append newdlprefiles " $abs"
932710950 done
9328 dlprefiles="$newdlprefiles"
10951 dlprefiles=$newdlprefiles
932910952 fi
933010953 $RM $output
933110954 # place dlname in correct position for cygwin
934110964 case $host,$output,$installed,$module,$dlname in
934210965 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
934310966 # If a -bindir argument was supplied, place the dll there.
9344 if test "x$bindir" != x ;
9345 then
10967 if test -n "$bindir"; then
934610968 func_relative_path "$install_libdir" "$bindir"
9347 tdlname=$func_relative_path_result$dlname
10969 tdlname=$func_relative_path_result/$dlname
934810970 else
934910971 # Otherwise fall back on heuristic.
935010972 tdlname=../bin/$dlname
935310975 esac
935410976 $ECHO > $output "\
935510977 # $outputname - a libtool library file
9356 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
10978 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
935710979 #
935810980 # Please DO NOT delete this file!
935910981 # It is necessary for linking the library.
936710989 # The name of the static archive.
936810990 old_library='$old_library'
936910991
9370 # Linker flags that can not go in dependency_libs.
10992 # Linker flags that cannot go in dependency_libs.
937110993 inherited_linker_flags='$new_inherited_linker_flags'
937210994
937310995 # Libraries that this one depends upon.
939311015
939411016 # Directory that this library needs to be installed in:
939511017 libdir='$install_libdir'"
9396 if test "$installed" = no && test "$need_relink" = yes; then
11018 if test no,yes = "$installed,$need_relink"; then
939711019 $ECHO >> $output "\
939811020 relink_command=\"$relink_command\""
939911021 fi
940811030 exit $EXIT_SUCCESS
940911031 }
941011032
9411 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9412 func_mode_link ${1+"$@"}
11033 if test link = "$opt_mode" || test relink = "$opt_mode"; then
11034 func_mode_link ${1+"$@"}
11035 fi
941311036
941411037
941511038 # func_mode_uninstall arg...
941611039 func_mode_uninstall ()
941711040 {
9418 $opt_debug
9419 RM="$nonopt"
11041 $debug_cmd
11042
11043 RM=$nonopt
942011044 files=
9421 rmforce=
11045 rmforce=false
942211046 exit_status=0
942311047
942411048 # This variable tells wrapper scripts just to set variables rather
942511049 # than running their programs.
9426 libtool_install_magic="$magic"
11050 libtool_install_magic=$magic
942711051
942811052 for arg
942911053 do
943011054 case $arg in
9431 -f) func_append RM " $arg"; rmforce=yes ;;
11055 -f) func_append RM " $arg"; rmforce=: ;;
943211056 -*) func_append RM " $arg" ;;
943311057 *) func_append files " $arg" ;;
943411058 esac
944111065
944211066 for file in $files; do
944311067 func_dirname "$file" "" "."
9444 dir="$func_dirname_result"
9445 if test "X$dir" = X.; then
9446 odir="$objdir"
11068 dir=$func_dirname_result
11069 if test . = "$dir"; then
11070 odir=$objdir
944711071 else
9448 odir="$dir/$objdir"
11072 odir=$dir/$objdir
944911073 fi
945011074 func_basename "$file"
9451 name="$func_basename_result"
9452 test "$opt_mode" = uninstall && odir="$dir"
11075 name=$func_basename_result
11076 test uninstall = "$opt_mode" && odir=$dir
945311077
945411078 # Remember odir for removal later, being careful to avoid duplicates
9455 if test "$opt_mode" = clean; then
11079 if test clean = "$opt_mode"; then
945611080 case " $rmdirs " in
945711081 *" $odir "*) ;;
945811082 *) func_append rmdirs " $odir" ;;
946711091 elif test -d "$file"; then
946811092 exit_status=1
946911093 continue
9470 elif test "$rmforce" = yes; then
11094 elif $rmforce; then
947111095 continue
947211096 fi
947311097
9474 rmfiles="$file"
11098 rmfiles=$file
947511099
947611100 case $name in
947711101 *.la)
948511109 done
948611110 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
948711111
9488 case "$opt_mode" in
11112 case $opt_mode in
948911113 clean)
949011114 case " $library_names " in
949111115 *" $dlname "*) ;;
949611120 uninstall)
949711121 if test -n "$library_names"; then
949811122 # Do each command in the postuninstall commands.
9499 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11123 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
950011124 fi
950111125
950211126 if test -n "$old_library"; then
950311127 # Do each command in the old_postuninstall commands.
9504 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11128 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
950511129 fi
950611130 # FIXME: should reinstall the best remaining shared library.
950711131 ;;
951711141 func_source $dir/$name
951811142
951911143 # Add PIC object to the list of files to remove.
9520 if test -n "$pic_object" &&
9521 test "$pic_object" != none; then
11144 if test -n "$pic_object" && test none != "$pic_object"; then
952211145 func_append rmfiles " $dir/$pic_object"
952311146 fi
952411147
952511148 # Add non-PIC object to the list of files to remove.
9526 if test -n "$non_pic_object" &&
9527 test "$non_pic_object" != none; then
11149 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
952811150 func_append rmfiles " $dir/$non_pic_object"
952911151 fi
953011152 fi
953111153 ;;
953211154
953311155 *)
9534 if test "$opt_mode" = clean ; then
11156 if test clean = "$opt_mode"; then
953511157 noexename=$name
953611158 case $file in
953711159 *.exe)
955811180
955911181 # note $name still contains .exe if it was in $file originally
956011182 # as does the version of $file that was added into $rmfiles
9561 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9562 if test "$fast_install" = yes && test -n "$relink_command"; then
11183 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11184 if test yes = "$fast_install" && test -n "$relink_command"; then
956311185 func_append rmfiles " $odir/lt-$name"
956411186 fi
9565 if test "X$noexename" != "X$name" ; then
9566 func_append rmfiles " $odir/lt-${noexename}.c"
11187 if test "X$noexename" != "X$name"; then
11188 func_append rmfiles " $odir/lt-$noexename.c"
956711189 fi
956811190 fi
956911191 fi
957211194 func_show_eval "$RM $rmfiles" 'exit_status=1'
957311195 done
957411196
9575 # Try to remove the ${objdir}s in the directories where we deleted files
11197 # Try to remove the $objdir's in the directories where we deleted files
957611198 for dir in $rmdirs; do
957711199 if test -d "$dir"; then
957811200 func_show_eval "rmdir $dir >/dev/null 2>&1"
958211204 exit $exit_status
958311205 }
958411206
9585 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9586 func_mode_uninstall ${1+"$@"}
11207 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11208 func_mode_uninstall ${1+"$@"}
11209 fi
958711210
958811211 test -z "$opt_mode" && {
9589 help="$generic_help"
11212 help=$generic_help
959011213 func_fatal_help "you must specify a MODE"
959111214 }
959211215
959311216 test -z "$exec_cmd" && \
9594 func_fatal_help "invalid operation mode \`$opt_mode'"
11217 func_fatal_help "invalid operation mode '$opt_mode'"
959511218
959611219 if test -n "$exec_cmd"; then
959711220 eval exec "$exec_cmd"
960211225
960311226
960411227 # The TAGs below are defined such that we never get into a situation
9605 # in which we disable both kinds of libraries. Given conflicting
11228 # where we disable both kinds of libraries. Given conflicting
960611229 # choices, we go for a static library, that is the most portable,
960711230 # since we can't tell whether shared libraries were disabled because
960811231 # the user asked for that or because the platform doesn't support
962511248 # mode:shell-script
962611249 # sh-indentation:2
962711250 # End:
9628 # vi:sw=2
9629
00 #! /bin/sh
11 # Common wrapper for a few potentially missing GNU programs.
22
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
1616 # GNU General Public License for more details.
1717
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
100100 exit $st
101101 fi
102102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
103 perl_URL=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://www.gnu.org/software
106106
107107 program_details ()
108108 {
206206 exit $st
207207
208208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
209 # eval: (add-hook 'before-save-hook 'time-stamp)
210210 # time-stamp-start: "scriptversion="
211211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC"
212 # time-stamp-time-zone: "UTC0"
213213 # time-stamp-end: "; # UTC"
214214 # End:
+0
-162
mkinstalldirs less more
0 #! /bin/sh
1 # mkinstalldirs --- make directory hierarchy
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Original author: Noah Friedman <friedman@prep.ai.mit.edu>
6 # Created: 1993-05-16
7 # Public domain.
8 #
9 # This file is maintained in Automake, please report
10 # bugs to <bug-automake@gnu.org> or send patches to
11 # <automake-patches@gnu.org>.
12
13 nl='
14 '
15 IFS=" "" $nl"
16 errstatus=0
17 dirmode=
18
19 usage="\
20 Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
21
22 Create each directory DIR (with mode MODE, if specified), including all
23 leading file name components.
24
25 Report bugs to <bug-automake@gnu.org>."
26
27 # process command line arguments
28 while test $# -gt 0 ; do
29 case $1 in
30 -h | --help | --h*) # -h for help
31 echo "$usage"
32 exit $?
33 ;;
34 -m) # -m PERM arg
35 shift
36 test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
37 dirmode=$1
38 shift
39 ;;
40 --version)
41 echo "$0 $scriptversion"
42 exit $?
43 ;;
44 --) # stop option processing
45 shift
46 break
47 ;;
48 -*) # unknown option
49 echo "$usage" 1>&2
50 exit 1
51 ;;
52 *) # first non-opt arg
53 break
54 ;;
55 esac
56 done
57
58 for file
59 do
60 if test -d "$file"; then
61 shift
62 else
63 break
64 fi
65 done
66
67 case $# in
68 0) exit 0 ;;
69 esac
70
71 # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
72 # mkdir -p a/c at the same time, both will detect that a is missing,
73 # one will create a, then the other will try to create a and die with
74 # a "File exists" error. This is a problem when calling mkinstalldirs
75 # from a parallel make. We use --version in the probe to restrict
76 # ourselves to GNU mkdir, which is thread-safe.
77 case $dirmode in
78 '')
79 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
80 echo "mkdir -p -- $*"
81 exec mkdir -p -- "$@"
82 else
83 # On NextStep and OpenStep, the 'mkdir' command does not
84 # recognize any option. It will interpret all options as
85 # directories to create, and then abort because '.' already
86 # exists.
87 test -d ./-p && rmdir ./-p
88 test -d ./--version && rmdir ./--version
89 fi
90 ;;
91 *)
92 if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
93 test ! -d ./--version; then
94 echo "mkdir -m $dirmode -p -- $*"
95 exec mkdir -m "$dirmode" -p -- "$@"
96 else
97 # Clean up after NextStep and OpenStep mkdir.
98 for d in ./-m ./-p ./--version "./$dirmode";
99 do
100 test -d $d && rmdir $d
101 done
102 fi
103 ;;
104 esac
105
106 for file
107 do
108 case $file in
109 /*) pathcomp=/ ;;
110 *) pathcomp= ;;
111 esac
112 oIFS=$IFS
113 IFS=/
114 set fnord $file
115 shift
116 IFS=$oIFS
117
118 for d
119 do
120 test "x$d" = x && continue
121
122 pathcomp=$pathcomp$d
123 case $pathcomp in
124 -*) pathcomp=./$pathcomp ;;
125 esac
126
127 if test ! -d "$pathcomp"; then
128 echo "mkdir $pathcomp"
129
130 mkdir "$pathcomp" || lasterr=$?
131
132 if test ! -d "$pathcomp"; then
133 errstatus=$lasterr
134 else
135 if test ! -z "$dirmode"; then
136 echo "chmod $dirmode $pathcomp"
137 lasterr=
138 chmod "$dirmode" "$pathcomp" || lasterr=$?
139
140 if test ! -z "$lasterr"; then
141 errstatus=$lasterr
142 fi
143 fi
144 fi
145 fi
146
147 pathcomp=$pathcomp/
148 done
149 done
150
151 exit $errstatus
152
153 # Local Variables:
154 # mode: shell-script
155 # sh-indentation: 2
156 # eval: (add-hook 'write-file-hooks 'time-stamp)
157 # time-stamp-start: "scriptversion="
158 # time-stamp-format: "%:y-%02m-%02d.%02H"
159 # time-stamp-time-zone: "UTC"
160 # time-stamp-end: "; # UTC"
161 # End:
88 "Report-Msgid-Bugs-To: \n"
99 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
1010 "PO-Revision-Date: 2018-04-25 12:56+0000\n"
11 "Last-Translator: Zmicer Turok <zmicerturok@gmail.com>\n"
11 "Last-Translator: Zmicer Turok <nashtlumach@gmail.com>\n"
1212 "Language-Team: Belarusian (http://www.transifex.com/xfce/xfce-panel-plugins/language/be/)\n"
1313 "MIME-Version: 1.0\n"
1414 "Content-Type: text/plain; charset=UTF-8\n"
22 # This file is distributed under the same license as the PACKAGE package.
33 #
44 # Translators:
5 # Georgi Georgiev <georgiev_1994@abv.bg>, 2014
5 # Georgi Georgiev, 2014
66 msgid ""
77 msgstr ""
88 "Project-Id-Version: Xfce Panel Plugins\n"
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the PACKAGE package.
3 #
4 # Translators:
5 # Steve Harris <steve@cultureofweb.com>, 2020
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: Xfce Panel Plugins\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
11 "PO-Revision-Date: 2020-06-26 01:40+0000\n"
12 "Last-Translator: Steve Harris <steve@cultureofweb.com>\n"
13 "Language-Team: English (Canada) (http://www.transifex.com/xfce/xfce-panel-plugins/language/en_CA/)\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: en_CA\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20 #: ../src/smartbookmark.c:90
21 #, c-format
22 msgid "Failed to send %s to your preferred browser"
23 msgstr "Failed to send %s to your preferred browser"
24
25 #: ../src/smartbookmark.c:259
26 msgid "Smartbookmark"
27 msgstr "Smartbookmark"
28
29 #: ../src/smartbookmark.c:264
30 msgid "Preferences"
31 msgstr "Preferences"
32
33 #. text label
34 #: ../src/smartbookmark.c:279
35 msgid "Label:"
36 msgstr "Label:"
37
38 #. size label
39 #: ../src/smartbookmark.c:294
40 msgid "Size:"
41 msgstr "Size:"
42
43 #. Hide label option
44 #: ../src/smartbookmark.c:305
45 msgid "Hide label"
46 msgstr "Hide label"
47
48 #. url label
49 #: ../src/smartbookmark.c:316
50 msgid "URL: "
51 msgstr "URL: "
52
53 #: ../src/smartbookmark.desktop.in.h:1
54 msgid "SmartBookmark"
55 msgstr "SmartBookmark"
56
57 #: ../src/smartbookmark.desktop.in.h:2
58 msgid "Query websites from the Xfce panel"
59 msgstr "Query websites from the Xfce panel"
33 #
44 # Translators:
55 # <abel.martin.ruiz@gmail.com>, 2009
6 # Pablo Lezaeta Reyes [pˈaβ̞lo lˌe̞θaˈeta rˈejɛ] <prflr88@gmail.com>, 2014
6 # prflr88 <prflr88@gmail.com>, 2014
77 msgid ""
88 msgstr ""
99 "Project-Id-Version: Xfce Panel Plugins\n"
1010 "Report-Msgid-Bugs-To: \n"
1111 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
1212 "PO-Revision-Date: 2017-09-19 18:06+0000\n"
13 "Last-Translator: Pablo Lezaeta Reyes [pˈaβ̞lo lˌe̞θaˈeta rˈejɛ] <prflr88@gmail.com>\n"
13 "Last-Translator: prflr88 <prflr88@gmail.com>\n"
1414 "Language-Team: Spanish (http://www.transifex.com/xfce/xfce-panel-plugins/language/es/)\n"
1515 "MIME-Version: 1.0\n"
1616 "Content-Type: text/plain; charset=UTF-8\n"
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the PACKAGE package.
3 #
4 # Translators:
5 # Priit Jõerüüt <transifex@joeruut.com>, 2020
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: Xfce Panel Plugins\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
11 "PO-Revision-Date: 2020-05-23 22:23+0000\n"
12 "Last-Translator: Priit Jõerüüt <transifex@joeruut.com>\n"
13 "Language-Team: Estonian (http://www.transifex.com/xfce/xfce-panel-plugins/language/et/)\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: et\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20 #: ../src/smartbookmark.c:90
21 #, c-format
22 msgid "Failed to send %s to your preferred browser"
23 msgstr "Päringu %s saatmine sinu eelistatud veebibrauserisse ei õnnestunud"
24
25 #: ../src/smartbookmark.c:259
26 msgid "Smartbookmark"
27 msgstr "Nutikas järjehoidja"
28
29 #: ../src/smartbookmark.c:264
30 msgid "Preferences"
31 msgstr "Eelistus"
32
33 #. text label
34 #: ../src/smartbookmark.c:279
35 msgid "Label:"
36 msgstr "Silt:"
37
38 #. size label
39 #: ../src/smartbookmark.c:294
40 msgid "Size:"
41 msgstr "Suurus:"
42
43 #. Hide label option
44 #: ../src/smartbookmark.c:305
45 msgid "Hide label"
46 msgstr "Peida silt"
47
48 #. url label
49 #: ../src/smartbookmark.c:316
50 msgid "URL: "
51 msgstr "URL: "
52
53 #: ../src/smartbookmark.desktop.in.h:1
54 msgid "SmartBookmark"
55 msgstr "Nutikas järjehoidja"
56
57 #: ../src/smartbookmark.desktop.in.h:2
58 msgid "Query websites from the Xfce panel"
59 msgstr "Tee veebipäringuid Xfce ribalt"
22 # This file is distributed under the same license as the PACKAGE package.
33 #
44 # Translators:
5 # Daniel Muñiz Fontoira <dani@damufo.com>, 2018
5 # Daniel Muñiz Fontoira <dani@damufo.com>, 2018-2019
66 # Leandro Regueiro <leandro.regueiro@gmail.com>, 2008-2009
77 msgid ""
88 msgstr ""
99 "Project-Id-Version: Xfce Panel Plugins\n"
1010 "Report-Msgid-Bugs-To: \n"
1111 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
12 "PO-Revision-Date: 2018-08-03 15:11+0000\n"
12 "PO-Revision-Date: 2019-08-21 14:49+0000\n"
1313 "Last-Translator: Daniel Muñiz Fontoira <dani@damufo.com>\n"
1414 "Language-Team: Galician (http://www.transifex.com/xfce/xfce-panel-plugins/language/gl/)\n"
1515 "MIME-Version: 1.0\n"
4444 #. Hide label option
4545 #: ../src/smartbookmark.c:305
4646 msgid "Hide label"
47 msgstr "Ocultar a etiqueta"
47 msgstr "Agochar a etiqueta"
4848
4949 #. url label
5050 #: ../src/smartbookmark.c:316
5757
5858 #: ../src/smartbookmark.desktop.in.h:2
5959 msgid "Query websites from the Xfce panel"
60 msgstr "Visitar sitios web dende o panel de Xfce"
60 msgstr "Visitar sitios web desde o panel do Xfce"
22 # This file is distributed under the same license as the PACKAGE package.
33 #
44 # Translators:
5 # Elishai Eliyahu <e1907@mm.st>, 2016
5 # Elishai Eliyahu <elishai@mailfence.com>, 2016
6 # Omer I.S., 2020
67 msgid ""
78 msgstr ""
89 "Project-Id-Version: Xfce Panel Plugins\n"
910 "Report-Msgid-Bugs-To: \n"
1011 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
11 "PO-Revision-Date: 2017-09-19 18:06+0000\n"
12 "Last-Translator: Elishai Eliyahu <e1907@mm.st>\n"
12 "PO-Revision-Date: 2020-05-26 13:32+0000\n"
13 "Last-Translator: Omer I.S.\n"
1314 "Language-Team: Hebrew (http://www.transifex.com/xfce/xfce-panel-plugins/language/he/)\n"
1415 "MIME-Version: 1.0\n"
1516 "Content-Type: text/plain; charset=UTF-8\n"
5657
5758 #: ../src/smartbookmark.desktop.in.h:2
5859 msgid "Query websites from the Xfce panel"
59 msgstr "תשאל אתרים מפאנל Xfce "
60 msgstr "תשאל אתרים מלוח Xfce "
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the PACKAGE package.
3 #
4 # Translators:
5 # Panwar108 <caspian7pena@gmail.com>, 2019
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: Xfce Panel Plugins\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
11 "PO-Revision-Date: 2019-08-17 08:05+0000\n"
12 "Last-Translator: Panwar108 <caspian7pena@gmail.com>\n"
13 "Language-Team: Hindi (http://www.transifex.com/xfce/xfce-panel-plugins/language/hi/)\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: hi\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20 #: ../src/smartbookmark.c:90
21 #, c-format
22 msgid "Failed to send %s to your preferred browser"
23 msgstr "आपके पसंदीदा ब्राउज़र पर %s भेजने में विफल"
24
25 #: ../src/smartbookmark.c:259
26 msgid "Smartbookmark"
27 msgstr "स्मार्ट बुकमार्क"
28
29 #: ../src/smartbookmark.c:264
30 msgid "Preferences"
31 msgstr "सेटिंग्स"
32
33 #. text label
34 #: ../src/smartbookmark.c:279
35 msgid "Label:"
36 msgstr "लेबल :"
37
38 #. size label
39 #: ../src/smartbookmark.c:294
40 msgid "Size:"
41 msgstr "आकार :"
42
43 #. Hide label option
44 #: ../src/smartbookmark.c:305
45 msgid "Hide label"
46 msgstr "लेबल छुपाएँ"
47
48 #. url label
49 #: ../src/smartbookmark.c:316
50 msgid "URL: "
51 msgstr "यूआरएल :"
52
53 #: ../src/smartbookmark.desktop.in.h:1
54 msgid "SmartBookmark"
55 msgstr "स्मार्ट बुकमार्क"
56
57 #: ../src/smartbookmark.desktop.in.h:2
58 msgid "Query websites from the Xfce panel"
59 msgstr "Xfce पैनल द्वारा वेबसाइट आदि खोजें"
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the PACKAGE package.
3 #
4 # Translators:
5 # Vahe Safaryan <vahe.safaryan@realschool.am>, 2020
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: Xfce Panel Plugins\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
11 "PO-Revision-Date: 2020-06-10 07:31+0000\n"
12 "Last-Translator: Vahe Safaryan <vahe.safaryan@realschool.am>\n"
13 "Language-Team: Eastern Armenian (http://www.transifex.com/xfce/xfce-panel-plugins/language/hye/)\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: hye\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20 #: ../src/smartbookmark.c:90
21 #, c-format
22 msgid "Failed to send %s to your preferred browser"
23 msgstr "Չյաջողուեց ուղարկել %s ձեր նախընտրած զննիչին"
24
25 #: ../src/smartbookmark.c:259
26 msgid "Smartbookmark"
27 msgstr "Խելացի գրքի նշան"
28
29 #: ../src/smartbookmark.c:264
30 msgid "Preferences"
31 msgstr "Նախապատվութիւններ"
32
33 #. text label
34 #: ../src/smartbookmark.c:279
35 msgid "Label:"
36 msgstr "Պիտակ․"
37
38 #. size label
39 #: ../src/smartbookmark.c:294
40 msgid "Size:"
41 msgstr "Չափս․"
42
43 #. Hide label option
44 #: ../src/smartbookmark.c:305
45 msgid "Hide label"
46 msgstr "Թաքցնել պիտակը"
47
48 #. url label
49 #: ../src/smartbookmark.c:316
50 msgid "URL: "
51 msgstr "URL: "
52
53 #: ../src/smartbookmark.desktop.in.h:1
54 msgid "SmartBookmark"
55 msgstr "Խելացի գրքի նշան"
56
57 #: ../src/smartbookmark.desktop.in.h:2
58 msgid "Query websites from the Xfce panel"
59 msgstr "Հարցնել կայքին Xfce վահանակից"
22 # This file is distributed under the same license as the PACKAGE package.
33 #
44 # Translators:
5 # Sveinn í Felli <sv1@fellsnet.is>, 2013-2014
5 # Sveinn í Felli <sv1@fellsnet.is>, 2013-2014,2019
66 # Sveinn í Felli <sv1@fellsnet.is>, 2019
77 # Sveinn í Felli <sveinki@nett.is>, 2013
88 msgid ""
33 #
44 # Translators:
55 # Slavko <linux@slavino.sk>, 2015
6 # Tomáš Vadina <inactive+kyberdev@transifex.com>, 2011
6 # 7dcd6f74323fe8d9c477949ff8fcbb1c_c427b63 <3fcd202e3dfab15fda15b8e88e54d449_7173>, 2011
77 msgid ""
88 msgstr ""
99 "Project-Id-Version: Xfce Panel Plugins\n"
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the PACKAGE package.
3 #
4 # Translators:
5 # Arnold Marko <arnold.marko@gmail.com>, 2019
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: Xfce Panel Plugins\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
11 "PO-Revision-Date: 2019-11-03 19:29+0000\n"
12 "Last-Translator: Arnold Marko <arnold.marko@gmail.com>\n"
13 "Language-Team: Slovenian (http://www.transifex.com/xfce/xfce-panel-plugins/language/sl/)\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: sl\n"
18 "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
19
20 #: ../src/smartbookmark.c:90
21 #, c-format
22 msgid "Failed to send %s to your preferred browser"
23 msgstr "Neuspešno pošiljanja %s v vaš prednostni brskalnik"
24
25 #: ../src/smartbookmark.c:259
26 msgid "Smartbookmark"
27 msgstr "Pametni zaznamek"
28
29 #: ../src/smartbookmark.c:264
30 msgid "Preferences"
31 msgstr "Lastnosti"
32
33 #. text label
34 #: ../src/smartbookmark.c:279
35 msgid "Label:"
36 msgstr "Oznake:"
37
38 #. size label
39 #: ../src/smartbookmark.c:294
40 msgid "Size:"
41 msgstr "Velikost:"
42
43 #. Hide label option
44 #: ../src/smartbookmark.c:305
45 msgid "Hide label"
46 msgstr "Skrij oznako"
47
48 #. url label
49 #: ../src/smartbookmark.c:316
50 msgid "URL: "
51 msgstr "URL:"
52
53 #: ../src/smartbookmark.desktop.in.h:1
54 msgid "SmartBookmark"
55 msgstr "Pametni zaznamek"
56
57 #: ../src/smartbookmark.desktop.in.h:2
58 msgid "Query websites from the Xfce panel"
59 msgstr "Preišči spletne strani iz Xfce pulta"
22 # This file is distributed under the same license as the PACKAGE package.
33 #
44 # Translators:
5 # Besnik <besnik@programeshqip.org>, 2007
5 # Besnik Bleta <besnik@programeshqip.org>, 2007,2020
6 # Besnik Bleta <besnik@programeshqip.org>, 2007
67 msgid ""
78 msgstr ""
89 "Project-Id-Version: Xfce Panel Plugins\n"
910 "Report-Msgid-Bugs-To: \n"
1011 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
11 "PO-Revision-Date: 2017-09-19 18:06+0000\n"
12 "Last-Translator: Nick Schermer <nick@xfce.org>\n"
12 "PO-Revision-Date: 2020-01-29 12:13+0000\n"
13 "Last-Translator: Besnik Bleta <besnik@programeshqip.org>\n"
1314 "Language-Team: Albanian (http://www.transifex.com/xfce/xfce-panel-plugins/language/sq/)\n"
1415 "MIME-Version: 1.0\n"
1516 "Content-Type: text/plain; charset=UTF-8\n"
2021 #: ../src/smartbookmark.c:90
2122 #, c-format
2223 msgid "Failed to send %s to your preferred browser"
23 msgstr ""
24 msgstr "S’u arrit të dërgohej %s te shfletuesi juaj i parapëlqyer"
2425
2526 #: ../src/smartbookmark.c:259
2627 msgid "Smartbookmark"
5253
5354 #: ../src/smartbookmark.desktop.in.h:1
5455 msgid "SmartBookmark"
55 msgstr ""
56 msgstr "Faqerojtës të mençur"
5657
5758 #: ../src/smartbookmark.desktop.in.h:2
5859 msgid "Query websites from the Xfce panel"
59 msgstr "Kërkoni nëpër site-e web që prej panelit Xfce"
60 msgstr "Kërkoni nëpër sajte që prej panelit Xfce"
22 # This file is distributed under the same license as the PACKAGE package.
33 #
44 # Translators:
5 # Emin Tufan <etcetin@gmail.com>, 2020
56 # Necdet Yücel <necdetyucel@gmail.com>, 2013
67 msgid ""
78 msgstr ""
89 "Project-Id-Version: Xfce Panel Plugins\n"
910 "Report-Msgid-Bugs-To: \n"
1011 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
11 "PO-Revision-Date: 2017-09-19 18:06+0000\n"
12 "Last-Translator: Necdet Yücel <necdetyucel@gmail.com>\n"
12 "PO-Revision-Date: 2020-11-16 01:16+0000\n"
13 "Last-Translator: Emin Tufan <etcetin@gmail.com>\n"
1314 "Language-Team: Turkish (http://www.transifex.com/xfce/xfce-panel-plugins/language/tr/)\n"
1415 "MIME-Version: 1.0\n"
1516 "Content-Type: text/plain; charset=UTF-8\n"
2021 #: ../src/smartbookmark.c:90
2122 #, c-format
2223 msgid "Failed to send %s to your preferred browser"
23 msgstr "%s tercih ettiğiniz tarayıcıya gönderilemedi"
24 msgstr "%s yeğlediğiniz tarayıcıya gönderilemedi"
2425
2526 #: ../src/smartbookmark.c:259
2627 msgid "Smartbookmark"
27 msgstr "Smartbookmark "
28 msgstr "Smartbookmark"
2829
2930 #: ../src/smartbookmark.c:264
3031 msgid "Preferences"
5657
5758 #: ../src/smartbookmark.desktop.in.h:2
5859 msgid "Query websites from the Xfce panel"
59 msgstr "Web sitelerini Xfce panelinden sorgulayın"
60 msgstr "Web sitelerini Xfce panelinden sorgula"
88 "Report-Msgid-Bugs-To: \n"
99 "POT-Creation-Date: 2013-07-03 21:17+0200\n"
1010 "PO-Revision-Date: 2017-09-23 19:03+0000\n"
11 "Last-Translator: Gheyret Kenji\n"
12 "Language-Team: Uighur (http://www.transifex.com/xfce/xfce-panel-plugins/language/ug/)\n"
11 "Last-Translator: Gheyret Kenji <gheyret@yahoo.com>\n"
12 "Language-Team: Uyghur (http://www.transifex.com/xfce/xfce-panel-plugins/language/ug/)\n"
1313 "MIME-Version: 1.0\n"
1414 "Content-Type: text/plain; charset=UTF-8\n"
1515 "Content-Transfer-Encoding: 8bit\n"
1616 "Language: ug\n"
17 "Plural-Forms: nplurals=1; plural=0;\n"
17 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
1818
1919 #: ../src/smartbookmark.c:90
2020 #, c-format
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1515
1616
1717 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
1929 am__make_running_with_option = \
2030 case $${target_option-} in \
2131 ?) ;; \
7989 build_triplet = @build@
8090 host_triplet = @host@
8191 subdir = src
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp
8492 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8593 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8694 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8795 $(ACLOCAL_M4)
88 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
96 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
97 mkinstalldirs = $(install_sh) -d
8998 CONFIG_HEADER = $(top_builddir)/config.h
9099 CONFIG_CLEAN_FILES =
91100 CONFIG_CLEAN_VPATH_FILES =
143152 am__v_at_1 =
144153 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
145154 depcomp = $(SHELL) $(top_srcdir)/depcomp
146 am__depfiles_maybe = depfiles
155 am__maybe_remake_depfiles = depfiles
156 am__depfiles_remade = \
157 ./$(DEPDIR)/libsmartbookmark_la-smartbookmark.Plo
147158 am__mv = mv -f
148159 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
149160 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
190201 done | $(am__uniquify_input)`
191202 ETAGS = etags
192203 CTAGS = ctags
204 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
193205 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
194206 ACLOCAL = @ACLOCAL@
195207 ALL_LINGUAS = @ALL_LINGUAS@
256268 LIPO = @LIPO@
257269 LN_S = @LN_S@
258270 LTLIBOBJS = @LTLIBOBJS@
271 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
259272 MAINT = @MAINT@
260273 MAKEINFO = @MAKEINFO@
261274 MANIFEST_TOOL = @MANIFEST_TOOL@
340353 prefix = @prefix@
341354 program_transform_name = @program_transform_name@
342355 psdir = @psdir@
356 runstatedir = @runstatedir@
343357 sbindir = @sbindir@
344358 sharedstatedir = @sharedstatedir@
345359 srcdir = @srcdir@
390404 exit 1;; \
391405 esac; \
392406 done; \
393 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
407 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
394408 $(am__cd) $(top_srcdir) && \
395 $(AUTOMAKE) --gnu src/Makefile
396 .PRECIOUS: Makefile
409 $(AUTOMAKE) --foreign src/Makefile
397410 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
398411 @case '$?' in \
399412 *config.status*) \
400413 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
401414 *) \
402 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
403 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
415 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
416 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
404417 esac;
405418
406419 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
456469 distclean-compile:
457470 -rm -f *.tab.c
458471
459 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsmartbookmark_la-smartbookmark.Plo@am__quote@
472 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsmartbookmark_la-smartbookmark.Plo@am__quote@ # am--include-marker
473
474 $(am__depfiles_remade):
475 @$(MKDIR_P) $(@D)
476 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
477
478 am--depfiles: $(am__depfiles_remade)
460479
461480 .c.o:
462481 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
565584 distclean-tags:
566585 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
567586
568 distdir: $(DISTFILES)
587 distdir: $(BUILT_SOURCES)
588 $(MAKE) $(AM_MAKEFLAGS) distdir-am
589
590 distdir-am: $(DISTFILES)
569591 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
570592 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
571593 list='$(DISTFILES)'; \
639661 mostlyclean-am
640662
641663 distclean: distclean-am
642 -rm -rf ./$(DEPDIR)
664 -rm -f ./$(DEPDIR)/libsmartbookmark_la-smartbookmark.Plo
643665 -rm -f Makefile
644666 distclean-am: clean-am distclean-compile distclean-generic \
645667 distclean-tags
685707 installcheck-am:
686708
687709 maintainer-clean: maintainer-clean-am
688 -rm -rf ./$(DEPDIR)
710 -rm -f ./$(DEPDIR)/libsmartbookmark_la-smartbookmark.Plo
689711 -rm -f Makefile
690712 maintainer-clean-am: distclean-am maintainer-clean-generic
691713
706728
707729 .MAKE: install-am install-strip
708730
709 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
710 clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \
711 ctags-am distclean distclean-compile distclean-generic \
712 distclean-libtool distclean-tags distdir dvi dvi-am html \
713 html-am info info-am install install-am install-data \
714 install-data-am install-desktopDATA install-dvi install-dvi-am \
715 install-exec install-exec-am install-html install-html-am \
716 install-info install-info-am install-man install-pdf \
717 install-pdf-am install-pluginLTLIBRARIES install-ps \
718 install-ps-am install-strip installcheck installcheck-am \
719 installdirs maintainer-clean maintainer-clean-generic \
720 mostlyclean mostlyclean-compile mostlyclean-generic \
721 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
722 uninstall-am uninstall-desktopDATA uninstall-pluginLTLIBRARIES
731 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
732 clean-generic clean-libtool clean-pluginLTLIBRARIES \
733 cscopelist-am ctags ctags-am distclean distclean-compile \
734 distclean-generic distclean-libtool distclean-tags distdir dvi \
735 dvi-am html html-am info info-am install install-am \
736 install-data install-data-am install-desktopDATA install-dvi \
737 install-dvi-am install-exec install-exec-am install-html \
738 install-html-am install-info install-info-am install-man \
739 install-pdf install-pdf-am install-pluginLTLIBRARIES \
740 install-ps install-ps-am install-strip installcheck \
741 installcheck-am installdirs maintainer-clean \
742 maintainer-clean-generic mostlyclean mostlyclean-compile \
743 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
744 tags tags-am uninstall uninstall-am uninstall-desktopDATA \
745 uninstall-pluginLTLIBRARIES
746
747 .PRECIOUS: Makefile
723748
724749 @INTLTOOL_DESKTOP_RULE@
725750
4040
4141 #include <libxfce4util/libxfce4util.h>
4242 #include <libxfce4ui/libxfce4ui.h>
43 #include <libxfce4panel/xfce-panel-plugin.h>
43 #include <libxfce4panel/libxfce4panel.h>
4444
4545 /*
4646 * Types
7474
7575 static gboolean do_search(const char *url, const char *keyword)
7676 {
77 DBG ("Do search");
7877 gchar *argv[] = { "exo-open", "--launch", "WebBrowser", NULL, NULL };
7978 GError *error = NULL;
8079 gchar *complete_url;
8180 gboolean success;
8281 complete_url = g_strconcat(url, keyword, NULL);
8382 argv[3] = complete_url;
83 DBG ("Do search");
8484
8585 success = g_spawn_async(NULL, (gchar **)argv, NULL,
8686 G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error);
172172 gtk_widget_set_valign(GTK_WIDGET(search->box), GTK_ALIGN_CENTER);
173173
174174 /* default options */
175 search->url = "http://bugs.debian.org/";
175 search->url = "https://bugs.debian.org/";
176176 search->label_text = "BTS";
177177 search->size = 5;
178178 search->hide_label = FALSE;
208208 if( (rcfile = xfce_rc_simple_open(filename, TRUE) ))
209209 {
210210 xfce_rc_set_group(rcfile, NULL);
211 search->url = g_strdup(xfce_rc_read_entry(rcfile,"url","http://bugs.debian.org/"));
211 search->url = g_strdup(xfce_rc_read_entry(rcfile,"url","https://bugs.debian.org/"));
212212 search->label_text = g_strdup(xfce_rc_read_entry(rcfile,"value","DBS"));
213213 search->size = xfce_rc_read_int_entry(rcfile, "size", 5);
214214 search->hide_label = xfce_rc_read_bool_entry(rcfile, "hidelabel", FALSE);
243243 static void search_create_options(XfcePanelPlugin *plugin, t_search *search)
244244 {
245245 GtkWidget *grid, *vbox;
246 GtkWidget *urllabel, *textlabel, *sizelabel;
247 GtkAdjustment *spinner_adj;
246248 xfce_panel_plugin_block_menu(plugin);
247 GtkWidget *urllabel, *textlabel, *sizelabel;
248249 DBG ("search_create_options");
249250 search->opt_dialog = xfce_titled_dialog_new_with_buttons(_("Smartbookmark"),
250251 GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))),
311312 gtk_label_set_xalign (GTK_LABEL (sizelabel), 0.0f);
312313 gtk_grid_attach(GTK_GRID(grid), sizelabel, 0, 2, 1, 1);
313314 /* size spinner */
314 GtkAdjustment* spinner_adj = gtk_adjustment_new (search->size, 2.0, 30.0, 1.0, 5.0, 0);
315 spinner_adj = gtk_adjustment_new (search->size, 2.0, 30.0, 1.0, 5.0, 0);
315316 search->size_spinner = gtk_spin_button_new(GTK_ADJUSTMENT(spinner_adj), 1.0, 0);
316317 gtk_widget_set_halign (GTK_WIDGET (search->size_spinner), GTK_ALIGN_START);
317318 gtk_grid_attach(GTK_GRID(grid), GTK_WIDGET(search->size_spinner), 1, 2, 1, 1);
330331 static void
331332 smartbookmark_construct(XfcePanelPlugin *plugin)
332333 {
334 t_search *search = search_new(plugin);
333335 DBG ("Creating SmartBookMark");
334 t_search *search = search_new(plugin);
335336 xfce_textdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
336337
337338 g_signal_connect (plugin, "size-changed",