Codebase list telepathy-idle / 9abc57d
New upstream version 0.2.2 Laurent Bigonville 3 years ago
54 changed file(s) with 10962 addition(s) and 7184 deletion(s). Raw diff Collapse all Expand all
0 commit 02d03c57cb5f061e374fe375c9b82f3c826cb538
1 Author: Alexander Akulich <akulichalexander@gmail.com>
2 Date: 2020-11-01 18:57:58 +0300
3
4 Update NEWS for 0.2.2 release
5
6 commit bbcf090b9cb4ca97cbf8875e06e8166fc5322a5c
7 Author: Alexander Akulich <akulichalexander@gmail.com>
8 Date: 2020-11-01 18:19:16 +0300
9
10 Meson: Omit twisted_tests arg (make the script read it from file)
11
12 Meson pass the argument without quotes and the script accept only $1.
13 Just omit the argument to make script read the tests list from file.
14
15 commit 5b97f9d348c400630a61f8fe47f188f63e5a9b2a
16 Author: Alexander Akulich <akulichalexander@gmail.com>
17 Date: 2020-11-01 18:10:22 +0300
18
19 Adjust tests/twisted/tools/exec-with-log.sh to optionally omit libtool
20
21 commit d47f2fbe9d027ddd6dd45d3bfc8ded06395ba951
22 Author: Alexander Akulich <akulichalexander@gmail.com>
23 Date: 2020-11-01 18:09:47 +0300
24
25 Make .in script files executable (for the sake of Meson)
26
27 commit ad485b602adb5b07058c27919d6230afc6e9a9a4
28 Author: Alexander Akulich <akulichalexander@gmail.com>
29 Date: 2020-11-01 16:01:42 +0300
30
31 Tests: Omit messages/invalid-utf8.py for now
32
33 commit 008cd4810ae8857f6527a1fc0923c8d06b21e68e
34 Author: Alexander Akulich <akulichalexander@gmail.com>
35 Date: 2020-11-01 15:37:04 +0300
36
37 Port tests to Python 3
38
39 commit 07f5b8e2be0d1f1e7838e8ed68c34b7e0e8b8863
40 Author: Alexander Akulich <akulichalexander@gmail.com>
41 Date: 2020-11-01 15:17:48 +0300
42
43 Meson: Fix the build for 0.2 branch
44
45 commit 3a1ce69b1a316f9547ff2e49a65cf8f501df279b
46 Author: Alexander Akulich <akulichalexander@gmail.com>
47 Date: 2020-11-01 15:06:59 +0300
48
49 Meson: Use Python 3
50
51 commit a4b0667200ecb4ad5e9bc0cc579f04e35d68aeef
52 Author: Alexander Akulich <akulichalexander@gmail.com>
53 Date: 2020-11-01 15:04:31 +0300
54
55 NEWS: Fix 0.2.1 release notes
56
57 commit 0b32d6601442edc7220819a32b8cd8054cb7d825
58 Author: Alexander Akulich <akulichalexander@gmail.com>
59 Date: 2020-11-01 15:03:44 +0300
60
61 Prepare 0.2.2 release
62
63 commit b0f139ff63c4d5f9471423422f298443ae222f9a
64 Author: Alexander Akulich <akulichalexander@gmail.com>
65 Date: 2020-11-01 01:20:32 +0300
66
67 Prepare 0.2.1
68
69 commit 108e30c59bf2c7f96611129c67d060f232ddbaf4
70 Author: Jan Tojnar <jtojnar@gmail.com>
71 Date: 2018-11-18 16:12:13 +0100
72
73 build: Add meson build system
74
75 commit 71ea7e98a1e68c5a51b0a36e662a95d07a04a3d7
76 Author: Daniel Landau <daniel@landau.fi>
77 Date: 2016-11-09 21:27:11 +0200
78
79 Handle modechars properly
80
81 Never strip out modechars unless we are explicitly trying to parse
82 a nickname with modechars, i.e., atom 'C'
83
84 commit c1ae3d2bdc7801cdf60adb6a5cdb6390a0749014
85 Author: Daniel Landau <daniel@landau.fi>
86 Date: 2016-11-09 00:09:17 +0200
87
88 Channel names can start with a '!'
89
90 According to RFC2811 (https://tools.ietf.org/html/rfc2811#section-3.2)
91 channel names can start with a bang. Without this check the initial bang
92 gets stripped out and Telepathy tries to ensure as a channel without the
93 prefix. That obviously fails, leading to the messages from that channel
94 arriving as "private" messages.
95
96 commit 07d021e5e1c11e9ecda0907038bb7a6fa7f18c58
97 Author: David Heidelberg <david@ixit.cz>
98 Date: 2019-10-27 17:25:35 +0100
99
100 fix compilation on GCC 9.x, add #pragma
101
102 Fixes:
103 In function 'strncpy',
104 inlined from 'idle_server_connection_send_async' at idle-server-connection.c:593:2:
105 /usr/include/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 512 equals destination size [-Werror=stringop-truncation]
106 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
107 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
108 cc1: all warnings being treated as errors
109
110 Signed-off-by: David Heidelberg <david@ixit.cz>
111
112 commit c9b6a16206dd25c37ea3fc43f2b8870bfe410e52
113 Author: Alexander Akulich <akulichalexander@gmail.com>
114 Date: 2020-11-01 01:33:47 +0300
115
116 tools/make-release-mail: Update from telepathy-glib (fix for python 3)
117
118 commit 6967ca8e1f8d8f7948a430fea0bf159e126042be
119 Author: Michael Catanzaro <mcatanzaro@gnome.org>
120 Date: 2020-09-24 07:03:10 -0500
121
122 Properly handle long IRC messages
123
124 IRC messages are delimited by CRLF. When the string passed to
125 idle_parser_receive() doesn't end in \r or \n, the remaining parts get
126 stashed away to be used to form a message on the next call to
127 idle_parser_receive(). But telepathy-idle improperly assumes that the
128 next call to idle_parser_receive() will definitely contain \r or \n,
129 i.e. it assumes that an IRC message cannot be split between three calls
130 to idle_parser_receive(). That assumption is wrong.
131
132 Fixes polari#147
133
134 commit 3f04a0d60fdc653bffd6919cb374a8d496771a8e
135 Author: Michael Catanzaro <mcatanzaro@gnome.org>
136 Date: 2020-09-23 17:25:10 -0500
137
138 Fix build with python3
139
140 Hello from 2020!
141
142 Fixes taken from Bastien's Fedora patches. Thanks Bastien!
143
144 commit 5e5b677173ef64055b4a7073cb5a15066fc03f70
145 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
146 Date: 2014-02-14 12:12:54 +0100
147
148 idle-connection: make sure to always reset force_disconnect_id
149
150 Recent GLib raises a critical when trying to remove an invalid source.
151
152 (cherry picked from commit 12211654baa75db13a05b5c2b3293d1378fcf7a2)
153
154 commit acf5fcf4d830ae0b5953d8ded8eba4c17726c6f3
155 Author: Diane Trout <diane@ghic.org>
156 Date: 2017-11-06 21:46:00 -0800
157
158 Returning FALSE from the timer function causes the timeout to be destroyed
159
160 I asked one of the polari devs and was told that yes it is ok to set
161 the timer id to zero in the timer function.
162
163 With this patch make check works without changing any of the expected
164 test results and without any coredumps
165
166 commit 0ce3a8fa2bd3f4e72358bb53ecd0acf8fe448483
167 Author: Diane Trout <diane@ghic.org>
168 Date: 2017-11-04 23:32:32 -0700
169
170 Avoid errors from Python caused by the deliberatly invalid Unicode
171
172 Because stream.nick is Unicode when sendMessage combines the command,
173 nick, and invalid utf8 python 2.7 ends up converting everything to
174 Unicode. Since this test deliberately includes invalid Unicode, Python
175 notices and throws an exception.
176
177 In Python 3, network traffic is usually encoded as bytes. So I thought
178 coercing the nick to bytes would be appropriate, and as bytes can contain
179 anything including invalid Unicode, Python doesn't throw an exception.
180
181 commit 5a2510ddea8f165f0808a8841e1dca311c003e20
182 Author: Diane Trout <diane@ghic.org>
183 Date: 2017-11-04 23:03:26 -0700
184
185 Update self-signed certificate to 2048 bytes with SHA-256 signature
186
187 Valid for 10 years
188
189 commit bf6d596e40e5b9426a68dcd22aa62a697457c4f7
190 Author: Florian Müllner <fmuellner@gnome.org>
191 Date: 2016-02-13 10:08:42 +0100
192
193 ctcp: Don't bling the non-bling
194
195 When stripping color codes, we currently remove any sequence of digits
196 following ^C. As color codes use at most two digits, this means that we
197 also remove any numbers at the start of the colored text - make sure we
198 stop doing that and only remove digits that are actually part of a color
199 code.
200
201 https://bugs.freedesktop.org/show_bug.cgi?id=94189
202
203 commit dc7568986824c07cd841d002ef7f15f65a16846a
204 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
205 Date: 2013-10-03 14:14:44 +0200
206
207 set nano version
208
0209 commit 22371837e080c41343600ca773fd987e5310baf2
1210 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2211 Date: 2013-10-03 11:28:25 +0200
8421051 Merge branch 'catch-up'
8431052
8441053 Conflicts:
845 configure.ac
846 src/idle-muc-channel.c
1054 configure.ac
1055 src/idle-muc-channel.c
8471056
8481057 commit f8bec1f34af87c4bc044b022abc69f1176ba1f33
8491058 Author: Jonny Lamb <jonny.lamb@collabora.co.uk>
31033312 Merge branch 'master' into channel-manager
31043313
31053314 Conflicts:
3106 src/idle-muc-manager.c
3107 tests/twisted/Makefile.am
3315 src/idle-muc-manager.c
3316 tests/twisted/Makefile.am
31083317
31093318 commit 66d5954213d167425218a9b977d6b55506e62685
31103319 Author: Will Thompson <will.thompson@collabora.co.uk>
33423551 Merge branch 'long-message-split'
33433552
33443553 Conflicts:
3345 tests/twisted/Makefile.am
3554 tests/twisted/Makefile.am
33463555
33473556 commit 619cc9d78913d8f0a0d48e5e52aeb404e46884c6
33483557 Merge: 98c90f3 8cb7eba
33593568 Merge branch 'invalid-nick'
33603569
33613570 Conflicts:
3362 tests/twisted/Makefile.am
3571 tests/twisted/Makefile.am
33633572
33643573 commit 8cb7ebaddd424c08a686edf5b46f71125b3a1945
33653574 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
35223731
35233732 Conflicts:
35243733
3525 src/idle-server-connection.c
3734 src/idle-server-connection.c
35263735
35273736 commit fda62472258ddbb0cb512de5958763ada028e5d1
35283737 Merge: 39ee883 ae92668
35513760
35523761 Conflicts:
35533762
3554 src/idle-ssl-server-connection.c
3763 src/idle-ssl-server-connection.c
35553764
35563765 commit 18a3cd12be7976cb00123537b2575d572feedf61
35573766 Merge: 7730041 40fa184
41234332
41244333 Conflicts:
41254334
4126 configure.ac
4335 configure.ac
41274336
41284337 commit 5ae7920bb0282fa080cff5d2db6191dcdca35769
41294338 Author: Will Thompson <will.thompson@collabora.co.uk>
+170
-172
INSTALL less more
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
4 Inc.
3 Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
4 Foundation, Inc.
55
66 Copying and distribution of this file, with or without modification,
77 are permitted in any medium without royalty provided the copyright
1111 Basic Installation
1212 ==================
1313
14 Briefly, the shell commands `./configure; make; make install' should
15 configure, build, and install this package. The following
16 more-detailed instructions are generic; see the `README' file for
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
1717 instructions specific to this package. Some packages provide this
18 `INSTALL' file but do not implement all of the features documented
18 'INSTALL' file but do not implement all of the features documented
1919 below. The lack of an optional feature in a given package is not
2020 necessarily a bug. More recommendations for GNU packages can be found
2121 in *note Makefile Conventions: (standards)Makefile Conventions.
2222
23 The `configure' shell script attempts to guess correct values for
23 The 'configure' shell script attempts to guess correct values for
2424 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
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
2828 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.
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' and
33 enabled with '--cache-file=config.cache' or simply '-C') that saves the
34 results of its tests to speed up reconfiguring. Caching is disabled by
35 default to prevent problems with accidental use of stale cache files.
3736
3837 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
38 to figure out how 'configure' could check whether to do them, and mail
39 diffs or instructions to the address given in the 'README' so they can
4140 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
41 some point 'config.cache' contains results you don't want to keep, you
4342 may remove or edit it.
4443
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'.
44 The file 'configure.ac' (or 'configure.in') is used to create
45 'configure' by a program called 'autoconf'. You need 'configure.ac' if
46 you want to change it or regenerate 'configure' using a newer version of
47 'autoconf'.
4948
5049 The simplest way to compile this package is:
5150
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
51 1. 'cd' to the directory containing the package's source code and type
52 './configure' to configure the package for your system.
53
54 Running 'configure' might take a while. While running, it prints
5655 some messages telling which features it is checking for.
5756
58 2. Type `make' to compile the package.
59
60 3. Optionally, type `make check' to run any self-tests that come with
57 2. Type 'make' to compile the package.
58
59 3. Optionally, type 'make check' to run any self-tests that come with
6160 the package, generally using the just-built uninstalled binaries.
6261
63 4. Type `make install' to install the programs and any data files and
62 4. Type 'make install' to install the programs and any data files and
6463 documentation. When installing into a prefix owned by root, it is
6564 recommended that the package be configured and built as a regular
66 user, and only the `make install' phase executed with root
65 user, and only the 'make install' phase executed with root
6766 privileges.
6867
69 5. Optionally, type `make installcheck' to repeat any self-tests, but
68 5. Optionally, type 'make installcheck' to repeat any self-tests, but
7069 this time using the binaries in their final installed location.
7170 This target does not install anything. Running this target as a
72 regular user, particularly if the prior `make install' required
71 regular user, particularly if the prior 'make install' required
7372 root privileges, verifies that the installation completed
7473 correctly.
7574
7675 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
76 source code directory by typing 'make clean'. To also remove the
77 files that 'configure' created (so you can compile the package for
78 a different kind of computer), type 'make distclean'. There is
79 also a 'make maintainer-clean' target, but that is intended mainly
8180 for the package's developers. If you use it, you may have to get
8281 all sorts of other programs in order to regenerate files that came
8382 with the distribution.
8483
85 7. Often, you can also type `make uninstall' to remove the installed
84 7. Often, you can also type 'make uninstall' to remove the installed
8685 files again. In practice, not all packages have tested that
8786 uninstallation works correctly, even though it is required by the
8887 GNU Coding Standards.
8988
90 8. Some packages, particularly those that use Automake, provide `make
89 8. Some packages, particularly those that use Automake, provide 'make
9190 distcheck', which can by used by developers to test that all other
92 targets like `make install' and `make uninstall' work correctly.
91 targets like 'make install' and 'make uninstall' work correctly.
9392 This target is generally not run by end users.
9493
9594 Compilers and Options
9695 =====================
9796
9897 Some systems require unusual options for compilation or linking that
99 the `configure' script does not know about. Run `./configure --help'
98 the 'configure' script does not know about. Run './configure --help'
10099 for details on some of the pertinent environment variables.
101100
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:
101 You can give 'configure' initial values for configuration parameters
102 by setting variables in the command line or in the environment. Here is
103 an example:
105104
106105 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
107106
112111
113112 You can compile the package for more than one kind of computer at the
114113 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
114 own directory. To do this, you can use GNU 'make'. 'cd' to the
116115 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
116 the 'configure' script. 'configure' automatically checks for the source
117 code in the directory that 'configure' is in and in '..'. This is known
118 as a "VPATH" build.
119
120 With a non-GNU 'make', it is safer to compile the package for one
122121 architecture at a time in the source code directory. After you have
123 installed the package for one architecture, use `make distclean' before
122 installed the package for one architecture, use 'make distclean' before
124123 reconfiguring for another architecture.
125124
126125 On MacOS X 10.5 and later systems, you can create libraries and
127126 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
127 "universal" binaries--by specifying multiple '-arch' options to the
128 compiler but only a single '-arch' option to the preprocessor. Like
130129 this:
131130
132131 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
135134
136135 This is not guaranteed to produce working output in all cases, you
137136 may have to build one architecture at a time and combine the results
138 using the `lipo' tool if you have problems.
137 using the 'lipo' tool if you have problems.
139138
140139 Installation Names
141140 ==================
142141
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
142 By default, 'make install' installs the package's commands under
143 '/usr/local/bin', include files under '/usr/local/include', etc. You
144 can specify an installation prefix other than '/usr/local' by giving
145 'configure' the option '--prefix=PREFIX', where PREFIX must be an
147146 absolute file name.
148147
149148 You can specify separate installation prefixes for
150149 architecture-specific files and architecture-independent files. If you
151 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
150 pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
152151 PREFIX as the prefix for installing programs and libraries.
153152 Documentation and other data files still use the regular prefix.
154153
155154 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
155 options like '--bindir=DIR' to specify different values for particular
156 kinds of files. Run 'configure --help' for a list of the directories
157 you can set and what kinds of files go in them. In general, the default
158 for these options is expressed in terms of '${prefix}', so that
159 specifying just '--prefix' will affect all of the other directory
161160 specifications that were not explicitly provided.
162161
163162 The most portable way to affect installation locations is to pass the
164 correct locations to `configure'; however, many packages provide one or
163 correct locations to 'configure'; however, many packages provide one or
165164 both of the following shortcuts of passing variable assignments to the
166 `make install' command line to change installation locations without
165 'make install' command line to change installation locations without
167166 having to reconfigure or recompile.
168167
169168 The first method involves providing an override variable for each
170 affected directory. For example, `make install
169 affected directory. For example, 'make install
171170 prefix=/alternate/directory' will choose an alternate location for all
172171 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
172 '${prefix}'. Any directories that were specified during 'configure',
173 but not in terms of '${prefix}', must each be overridden at install time
174 for the entire installation to be relocated. The approach of makefile
175 variable overrides for each directory variable is required by the GNU
176 Coding Standards, and ideally causes no recompilation. However, some
177 platforms have known limitations with the semantics of shared libraries
178 that end up requiring recompilation when using this method, particularly
179 noticeable in packages that use GNU Libtool.
180
181 The second method involves providing the 'DESTDIR' variable. For
182 example, 'make install DESTDIR=/alternate/directory' will prepend
183 '/alternate/directory' before all installation names. The approach of
184 'DESTDIR' overrides is not required by the GNU Coding Standards, and
186185 does not work on platforms that have drive letters. On the other hand,
187186 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.
187 when some directory options were not specified in terms of '${prefix}'
188 at 'configure' time.
190189
191190 Optional Features
192191 =================
193192
194193 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
194 with an extra prefix or suffix on their names by giving 'configure' the
195 option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
196
197 Some packages pay attention to '--enable-FEATURE' options to
198 'configure', where FEATURE indicates an optional part of the package.
199 They may also pay attention to '--with-PACKAGE' options, where PACKAGE
200 is something like 'gnu-as' or 'x' (for the X Window System). The
201 'README' should mention any '--enable-' and '--with-' options that the
203202 package recognizes.
204203
205 For packages that use the X Window System, `configure' can usually
204 For packages that use the X Window System, 'configure' can usually
206205 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.
206 you can use the 'configure' options '--x-includes=DIR' and
207 '--x-libraries=DIR' to specify their locations.
209208
210209 Some packages offer the ability to configure how verbose the
211 execution of `make' will be. For these packages, running `./configure
210 execution of 'make' will be. For these packages, running './configure
212211 --enable-silent-rules' sets the default to minimal output, which can be
213 overridden with `make V=1'; while running `./configure
212 overridden with 'make V=1'; while running './configure
214213 --disable-silent-rules' sets the default to verbose, which can be
215 overridden with `make V=0'.
214 overridden with 'make V=0'.
216215
217216 Particular systems
218217 ==================
219218
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
219 On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC
220 is not installed, it is recommended to use the following options in
222221 order to use an ANSI C compiler:
223222
224223 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
225224
226225 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227226
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.
227 HP-UX 'make' updates targets which have the same time stamps as their
228 prerequisites, which makes it generally unusable when shipped generated
229 files such as 'configure' are involved. Use GNU 'make' instead.
232230
233231 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
232 parse its '<wchar.h>' header file. The option '-nodtk' can be used as a
233 workaround. If GNU CC is not installed, it is therefore recommended to
234 try
237235
238236 ./configure CC="cc"
239237
241239
242240 ./configure CC="cc -nodtk"
243241
244 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
242 On Solaris, don't put '/usr/ucb' early in your 'PATH'. This
245243 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:
244 these programs are available in '/usr/bin'. So, if you need '/usr/ucb'
245 in your 'PATH', put it _after_ '/usr/bin'.
246
247 On Haiku, software installed for all users goes in '/boot/common',
248 not '/usr/local'. It is recommended to use the following options:
251249
252250 ./configure --prefix=/boot/common
253251
254252 Specifying the System Type
255253 ==========================
256254
257 There may be some features `configure' cannot figure out
255 There may be some features 'configure' cannot figure out
258256 automatically, but needs to determine by the type of machine the package
259257 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
258 _same_ architectures, 'configure' can figure that out, but if it prints
261259 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:
260 '--build=TYPE' option. TYPE can either be a short name for the system
261 type, such as 'sun4', or a canonical name which has the form:
264262
265263 CPU-COMPANY-SYSTEM
266264
269267 OS
270268 KERNEL-OS
271269
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
270 See the file 'config.sub' for the possible values of each field. If
271 'config.sub' isn't included in this package, then this package doesn't
274272 need to know the machine type.
275273
276274 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
275 use the option '--target=TYPE' to select the type of system they will
278276 produce code for.
279277
280278 If you want to _use_ a cross compiler, that generates code for a
281279 platform different from the build platform, you should specify the
282280 "host" platform (i.e., that on which the generated programs will
283 eventually be run) with `--host=TYPE'.
281 eventually be run) with '--host=TYPE'.
284282
285283 Sharing Defaults
286284 ================
287285
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.
286 If you want to set default values for 'configure' scripts to share,
287 you can create a site shell script called 'config.site' that gives
288 default values for variables like 'CC', 'cache_file', and 'prefix'.
289 'configure' looks for 'PREFIX/share/config.site' if it exists, then
290 'PREFIX/etc/config.site' if it exists. Or, you can set the
291 'CONFIG_SITE' environment variable to the location of the site script.
292 A warning: not all 'configure' scripts look for a site script.
295293
296294 Defining Variables
297295 ==================
298296
299297 Variables not defined in a site shell script can be set in the
300 environment passed to `configure'. However, some packages may run
298 environment passed to 'configure'. However, some packages may run
301299 configure again during the build, and the customized values of these
302300 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:
301 them in the 'configure' command line, using 'VAR=value'. For example:
304302
305303 ./configure CC=/usr/local2/bin/gcc
306304
307 causes the specified `gcc' to be used as the C compiler (unless it is
305 causes the specified 'gcc' to be used as the C compiler (unless it is
308306 overridden in the site shell script).
309307
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:
308 Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
309 Autoconf limitation. Until the limitation is lifted, you can use this
310 workaround:
313311
314312 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
315313
316 `configure' Invocation
314 'configure' Invocation
317315 ======================
318316
319 `configure' recognizes the following options to control how it
317 'configure' recognizes the following options to control how it
320318 operates.
321319
322 `--help'
323 `-h'
324 Print a summary of all of the options to `configure', and exit.
325
326 `--help=short'
327 `--help=recursive'
320 '--help'
321 '-h'
322 Print a summary of all of the options to 'configure', and exit.
323
324 '--help=short'
325 '--help=recursive'
328326 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'
327 'configure', and exit. The 'short' variant lists options used only
328 in the top level, while the 'recursive' variant lists options also
329 present in any nested packages.
330
331 '--version'
332 '-V'
333 Print the version of Autoconf used to generate the 'configure'
336334 script, and exit.
337335
338 `--cache-file=FILE'
336 '--cache-file=FILE'
339337 Enable the cache: use and save the results of the tests in FILE,
340 traditionally `config.cache'. FILE defaults to `/dev/null' to
338 traditionally 'config.cache'. FILE defaults to '/dev/null' to
341339 disable caching.
342340
343 `--config-cache'
344 `-C'
345 Alias for `--cache-file=config.cache'.
346
347 `--quiet'
348 `--silent'
349 `-q'
341 '--config-cache'
342 '-C'
343 Alias for '--cache-file=config.cache'.
344
345 '--quiet'
346 '--silent'
347 '-q'
350348 Do not print messages saying which checks are being made. To
351 suppress all normal output, redirect it to `/dev/null' (any error
349 suppress all normal output, redirect it to '/dev/null' (any error
352350 messages will still be shown).
353351
354 `--srcdir=DIR'
352 '--srcdir=DIR'
355353 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'
354 'configure' can determine that directory automatically.
355
356 '--prefix=DIR'
357 Use DIR as the installation prefix. *note Installation Names:: for
358 more details, including other options available for fine-tuning the
359 installation locations.
360
361 '--no-create'
362 '-n'
365363 Run the configure checks, but stop before creating any output
366364 files.
367365
368 `configure' also accepts some other, not widely useful, options. Run
369 `configure --help' for more details.
366 'configure' also accepts some other, not widely useful, options. Run
367 'configure --help' for more details.
0 # Makefile.in generated by automake 1.13.4 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 ?) ;; \
7686 POST_UNINSTALL = :
7787 build_triplet = @build@
7888 host_triplet = @host@
79 DIST_COMMON = $(srcdir)/tools/telepathy.am INSTALL NEWS README AUTHORS \
80 ChangeLog $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
81 $(top_srcdir)/configure $(am__configure_deps) \
82 $(srcdir)/config.h.in COPYING config.guess config.sub depcomp \
83 install-sh missing ltmain.sh
8489 subdir = .
8590 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8691 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
9297 $(top_srcdir)/m4/tp-linker-flag.m4 $(top_srcdir)/configure.ac
9398 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9499 $(ACLOCAL_M4)
100 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
101 $(am__configure_deps) $(am__DIST_COMMON)
95102 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
96103 configure.lineno config.status.lineno
97104 mkinstalldirs = $(install_sh) -d
132139 $(RECURSIVE_CLEAN_TARGETS) \
133140 $(am__extra_recursive_targets)
134141 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
135 cscope distdir dist dist-all distcheck
142 cscope distdir distdir-am dist dist-all distcheck
136143 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
137144 $(LISP)config.h.in
138145 # Read a list of newline-separated strings from the standard input,
155162 CTAGS = ctags
156163 CSCOPE = cscope
157164 DIST_SUBDIRS = $(SUBDIRS)
165 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
166 $(srcdir)/tools/telepathy.am AUTHORS COPYING ChangeLog INSTALL \
167 NEWS README compile config.guess config.sub install-sh \
168 ltmain.sh missing
158169 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
159170 distdir = $(PACKAGE)-$(VERSION)
160171 top_distdir = $(distdir)
246257 LIPO = @LIPO@
247258 LN_S = @LN_S@
248259 LTLIBOBJS = @LTLIBOBJS@
260 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
249261 MAKEINFO = @MAKEINFO@
250262 MANIFEST_TOOL = @MANIFEST_TOOL@
251263 MKDIR_P = @MKDIR_P@
329341 psdir = @psdir@
330342 pyexecdir = @pyexecdir@
331343 pythondir = @pythondir@
344 runstatedir = @runstatedir@
332345 sbindir = @sbindir@
333346 sharedstatedir = @sharedstatedir@
334347 srcdir = @srcdir@
358371 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
359372 $(am__cd) $(top_srcdir) && \
360373 $(AUTOMAKE) --gnu Makefile
361 .PRECIOUS: Makefile
362374 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
363375 @case '$?' in \
364376 *config.status*) \
365377 echo ' $(SHELL) ./config.status'; \
366378 $(SHELL) ./config.status;; \
367379 *) \
368 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
369 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
380 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
381 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
370382 esac;
371 $(srcdir)/tools/telepathy.am:
383 $(srcdir)/tools/telepathy.am $(am__empty):
372384
373385 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
374386 $(SHELL) ./config.status --recheck
380392 $(am__aclocal_m4_deps):
381393
382394 config.h: stamp-h1
383 @if test ! -f $@; then rm -f stamp-h1; else :; fi
384 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
395 @test -f $@ || rm -f stamp-h1
396 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
385397
386398 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
387399 @rm -f stamp-h1
509521 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
510522 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
511523
512 distdir: $(DISTFILES)
524 distdir: $(BUILT_SOURCES)
525 $(MAKE) $(AM_MAKEFLAGS) distdir-am
526
527 distdir-am: $(DISTFILES)
513528 $(am__remove_distdir)
514529 test -d "$(distdir)" || mkdir "$(distdir)"
515530 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
577592 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
578593 || chmod -R a+r "$(distdir)"
579594 dist-gzip: distdir
580 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
595 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
581596 $(am__post_remove_distdir)
582597
583598 dist-bzip2: distdir
593608 $(am__post_remove_distdir)
594609
595610 dist-tarZ: distdir
611 @echo WARNING: "Support for distribution archives compressed with" \
612 "legacy program 'compress' is deprecated." >&2
613 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
596614 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
597615 $(am__post_remove_distdir)
598616
599617 dist-shar: distdir
600 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
618 @echo WARNING: "Support for shar distribution archives is" \
619 "deprecated." >&2
620 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
621 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
601622 $(am__post_remove_distdir)
602623
603624 dist-zip: distdir
615636 distcheck: dist
616637 case '$(DIST_ARCHIVES)' in \
617638 *.tar.gz*) \
618 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
639 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
619640 *.tar.bz2*) \
620641 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
621642 *.tar.lz*) \
625646 *.tar.Z*) \
626647 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
627648 *.shar.gz*) \
628 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
649 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
629650 *.zip*) \
630651 unzip $(distdir).zip ;;\
631652 esac
632653 chmod -R a-w $(distdir)
633654 chmod u+w $(distdir)
634 mkdir $(distdir)/_build $(distdir)/_inst
655 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
635656 chmod a-w $(distdir)
636657 test -d $(distdir)/_build || exit 0; \
637658 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
638659 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
639660 && $(MAKE) $(AM_MAKEFLAGS) distcheck-hook \
640661 && am__cwd=`pwd` \
641 && $(am__cd) $(distdir)/_build \
642 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
662 && $(am__cd) $(distdir)/_build/sub \
663 && ../../configure \
643664 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
644665 $(DISTCHECK_CONFIGURE_FLAGS) \
666 --srcdir=../.. --prefix="$$dc_install_base" \
645667 && $(MAKE) $(AM_MAKEFLAGS) \
646668 && $(MAKE) $(AM_MAKEFLAGS) dvi \
647669 && $(MAKE) $(AM_MAKEFLAGS) check \
818840 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
819841 tags tags-am uninstall uninstall-am
820842
843 .PRECIOUS: Makefile
844
821845
822846 check-twisted : all
823847 $(MAKE) -C tests/twisted check-twisted
0 telepathy-idle 0.2.2 (2020-11-01)
1 =================================
2
3 Enhancements:
4
5 • Port tests to Python 3
6
7 • Adjust code Meson to use Python 3
8
9 Fixes:
10
11 • Fix twisted tests for Meson
12
13
14 telepathy-idle 0.2.1 (2020-11-01)
15 ==================================
16
17 Enhancements:
18
19 • Port build tools to Python 3 (Michael Catanzaro)
20
21 • Add meson build system (Jan Tojnar)
22
23 Fixes:
24
25 • Properly handle long IRC messages (polari#147, Michael Catanzaro)
26
27 • Fix a critical message from GLib on disconnecting (Guillaume, Diane Trout)
28
29 • Fix message corruption on accident bling removal (Florian Muellner)
30
31 • Update the certificate for tests (Diane Trout)
32
33 • Fix "Invalid utf8" test for Python 3 (Diane Trout)
34
35 • Properly handle channels with a '!' at the start of name (Daniel Landau)
36
37 • Properly handle modechars (Daniel Landau)
38
39
040 telepathy-idle 0.2.0 (2013-10-03)
141 =================================
242
0 # generated automatically by aclocal 1.13.4 -*- 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,
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'.])])
2121
22 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 # serial 1 (pkg-config-0.24)
24 #
25 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 #
27 # This program is free software; you can redistribute it and/or modify
28 # it under the terms of the GNU General Public License as published by
29 # the Free Software Foundation; either version 2 of the License, or
30 # (at your option) any later version.
31 #
32 # This program is distributed in the hope that it will be useful, but
33 # WITHOUT ANY WARRANTY; without even the implied warranty of
34 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35 # General Public License for more details.
36 #
37 # You should have received a copy of the GNU General Public License
38 # along with this program; if not, write to the Free Software
39 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40 #
41 # As a special exception to the GNU General Public License, if you
42 # distribute this file as part of a program that contains a
43 # configuration script generated by Autoconf, you may include it under
44 # the same distribution terms that you use for the rest of that program.
45
46 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
47 # ----------------------------------
22 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 # serial 12 (pkg-config-0.29.2)
24
25 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
27 dnl
28 dnl This program is free software; you can redistribute it and/or modify
29 dnl it under the terms of the GNU General Public License as published by
30 dnl the Free Software Foundation; either version 2 of the License, or
31 dnl (at your option) any later version.
32 dnl
33 dnl This program is distributed in the hope that it will be useful, but
34 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
35 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36 dnl General Public License for more details.
37 dnl
38 dnl You should have received a copy of the GNU General Public License
39 dnl along with this program; if not, write to the Free Software
40 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
41 dnl 02111-1307, USA.
42 dnl
43 dnl As a special exception to the GNU General Public License, if you
44 dnl distribute this file as part of a program that contains a
45 dnl configuration script generated by Autoconf, you may include it under
46 dnl the same distribution terms that you use for the rest of that
47 dnl program.
48
49 dnl PKG_PREREQ(MIN-VERSION)
50 dnl -----------------------
51 dnl Since: 0.29
52 dnl
53 dnl Verify that the version of the pkg-config macros are at least
54 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
55 dnl installed version of pkg-config, this checks the developer's version
56 dnl of pkg.m4 when generating configure.
57 dnl
58 dnl To ensure that this macro is defined, also add:
59 dnl m4_ifndef([PKG_PREREQ],
60 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
61 dnl
62 dnl See the "Since" comment for each macro you use to see what version
63 dnl of the macros you require.
64 m4_defun([PKG_PREREQ],
65 [m4_define([PKG_MACROS_VERSION], [0.29.2])
66 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
67 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
68 ])dnl PKG_PREREQ
69
70 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
71 dnl ----------------------------------
72 dnl Since: 0.16
73 dnl
74 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
75 dnl first found in the path. Checks that the version of pkg-config found
76 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
77 dnl used since that's the first version where most current features of
78 dnl pkg-config existed.
4879 AC_DEFUN([PKG_PROG_PKG_CONFIG],
4980 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
5081 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
6697 PKG_CONFIG=""
6798 fi
6899 fi[]dnl
69 ])# PKG_PROG_PKG_CONFIG
70
71 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
72 #
73 # Check to see whether a particular set of modules exists. Similar
74 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
75 #
76 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
77 # only at the first occurence in configure.ac, so if the first place
78 # it's called might be skipped (such as if it is within an "if", you
79 # have to call PKG_CHECK_EXISTS manually
80 # --------------------------------------------------------------
100 ])dnl PKG_PROG_PKG_CONFIG
101
102 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
103 dnl -------------------------------------------------------------------
104 dnl Since: 0.18
105 dnl
106 dnl Check to see whether a particular set of modules exists. Similar to
107 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
108 dnl
109 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
110 dnl only at the first occurence in configure.ac, so if the first place
111 dnl it's called might be skipped (such as if it is within an "if", you
112 dnl have to call PKG_CHECK_EXISTS manually
81113 AC_DEFUN([PKG_CHECK_EXISTS],
82114 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
83115 if test -n "$PKG_CONFIG" && \
87119 $3])dnl
88120 fi])
89121
90 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
91 # ---------------------------------------------
122 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
123 dnl ---------------------------------------------
124 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
125 dnl pkg_failed based on the result.
92126 m4_define([_PKG_CONFIG],
93127 [if test -n "$$1"; then
94128 pkg_cv_[]$1="$$1"
100134 else
101135 pkg_failed=untried
102136 fi[]dnl
103 ])# _PKG_CONFIG
104
105 # _PKG_SHORT_ERRORS_SUPPORTED
106 # -----------------------------
137 ])dnl _PKG_CONFIG
138
139 dnl _PKG_SHORT_ERRORS_SUPPORTED
140 dnl ---------------------------
141 dnl Internal check to see if pkg-config supports short errors.
107142 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
108143 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
109144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
111146 else
112147 _pkg_short_errors_supported=no
113148 fi[]dnl
114 ])# _PKG_SHORT_ERRORS_SUPPORTED
115
116
117 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
118 # [ACTION-IF-NOT-FOUND])
119 #
120 #
121 # Note that if there is a possibility the first call to
122 # PKG_CHECK_MODULES might not happen, you should be sure to include an
123 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
124 #
125 #
126 # --------------------------------------------------------------
149 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
150
151
152 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
153 dnl [ACTION-IF-NOT-FOUND])
154 dnl --------------------------------------------------------------
155 dnl Since: 0.4.0
156 dnl
157 dnl Note that if there is a possibility the first call to
158 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
159 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
127160 AC_DEFUN([PKG_CHECK_MODULES],
128161 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
129162 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
130163 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
131164
132165 pkg_failed=no
133 AC_MSG_CHECKING([for $1])
166 AC_MSG_CHECKING([for $2])
134167
135168 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
136169 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
140173 See the pkg-config man page for more details.])
141174
142175 if test $pkg_failed = yes; then
143 AC_MSG_RESULT([no])
176 AC_MSG_RESULT([no])
144177 _PKG_SHORT_ERRORS_SUPPORTED
145178 if test $_pkg_short_errors_supported = yes; then
146179 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
147 else
180 else
148181 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
149182 fi
150183 # Put the nasty error message in config.log where it belongs
161194 _PKG_TEXT])[]dnl
162195 ])
163196 elif test $pkg_failed = untried; then
164 AC_MSG_RESULT([no])
197 AC_MSG_RESULT([no])
165198 m4_default([$4], [AC_MSG_FAILURE(
166199 [The pkg-config script could not be found or is too old. Make sure it
167200 is in your PATH or set the PKG_CONFIG environment variable to the full
177210 AC_MSG_RESULT([yes])
178211 $3
179212 fi[]dnl
180 ])# PKG_CHECK_MODULES
181
182
183 # PKG_INSTALLDIR(DIRECTORY)
184 # -------------------------
185 # Substitutes the variable pkgconfigdir as the location where a module
186 # should install pkg-config .pc files. By default the directory is
187 # $libdir/pkgconfig, but the default can be changed by passing
188 # DIRECTORY. The user can override through the --with-pkgconfigdir
189 # parameter.
213 ])dnl PKG_CHECK_MODULES
214
215
216 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
217 dnl [ACTION-IF-NOT-FOUND])
218 dnl ---------------------------------------------------------------------
219 dnl Since: 0.29
220 dnl
221 dnl Checks for existence of MODULES and gathers its build flags with
222 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
223 dnl and VARIABLE-PREFIX_LIBS from --libs.
224 dnl
225 dnl Note that if there is a possibility the first call to
226 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
227 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
228 dnl configure.ac.
229 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
230 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
231 _save_PKG_CONFIG=$PKG_CONFIG
232 PKG_CONFIG="$PKG_CONFIG --static"
233 PKG_CHECK_MODULES($@)
234 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
235 ])dnl PKG_CHECK_MODULES_STATIC
236
237
238 dnl PKG_INSTALLDIR([DIRECTORY])
239 dnl -------------------------
240 dnl Since: 0.27
241 dnl
242 dnl Substitutes the variable pkgconfigdir as the location where a module
243 dnl should install pkg-config .pc files. By default the directory is
244 dnl $libdir/pkgconfig, but the default can be changed by passing
245 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
246 dnl parameter.
190247 AC_DEFUN([PKG_INSTALLDIR],
191248 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
192249 m4_pushdef([pkg_description],
197254 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
198255 m4_popdef([pkg_default])
199256 m4_popdef([pkg_description])
200 ]) dnl PKG_INSTALLDIR
201
202
203 # PKG_NOARCH_INSTALLDIR(DIRECTORY)
204 # -------------------------
205 # Substitutes the variable noarch_pkgconfigdir as the location where a
206 # module should install arch-independent pkg-config .pc files. By
207 # default the directory is $datadir/pkgconfig, but the default can be
208 # changed by passing DIRECTORY. The user can override through the
209 # --with-noarch-pkgconfigdir parameter.
257 ])dnl PKG_INSTALLDIR
258
259
260 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
261 dnl --------------------------------
262 dnl Since: 0.27
263 dnl
264 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
265 dnl module should install arch-independent pkg-config .pc files. By
266 dnl default the directory is $datadir/pkgconfig, but the default can be
267 dnl changed by passing DIRECTORY. The user can override through the
268 dnl --with-noarch-pkgconfigdir parameter.
210269 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
211270 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
212271 m4_pushdef([pkg_description],
217276 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
218277 m4_popdef([pkg_default])
219278 m4_popdef([pkg_description])
220 ]) dnl PKG_NOARCH_INSTALLDIR
221
222 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
279 ])dnl PKG_NOARCH_INSTALLDIR
280
281
282 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
283 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
284 dnl -------------------------------------------
285 dnl Since: 0.28
286 dnl
287 dnl Retrieves the value of the pkg-config variable for the given module.
288 AC_DEFUN([PKG_CHECK_VAR],
289 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
290 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
291
292 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
293 AS_VAR_COPY([$1], [pkg_cv_][$1])
294
295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296 ])dnl PKG_CHECK_VAR
297
298 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
223299 #
224300 # This file is free software; the Free Software Foundation
225301 # gives unlimited permission to copy and/or distribute it,
231307 # generated from the m4 files accompanying Automake X.Y.
232308 # (This private macro should not be called outside this file.)
233309 AC_DEFUN([AM_AUTOMAKE_VERSION],
234 [am__api_version='1.13'
310 [am__api_version='1.16'
235311 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
236312 dnl require some minimum version. Point them to the right macro.
237 m4_if([$1], [1.13.4], [],
313 m4_if([$1], [1.16.1], [],
238314 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
239315 ])
240316
250326 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
251327 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
252328 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
253 [AM_AUTOMAKE_VERSION([1.13.4])dnl
329 [AM_AUTOMAKE_VERSION([1.16.1])dnl
254330 m4_ifndef([AC_AUTOCONF_VERSION],
255331 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
256332 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
257333
258334 # Figure out how to run the assembler. -*- Autoconf -*-
259335
260 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
336 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
261337 #
262338 # This file is free software; the Free Software Foundation
263339 # gives unlimited permission to copy and/or distribute it,
277353
278354 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
279355
280 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
356 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
281357 #
282358 # This file is free software; the Free Software Foundation
283359 # gives unlimited permission to copy and/or distribute it,
322398 # configured tree to be moved without reconfiguration.
323399
324400 AC_DEFUN([AM_AUX_DIR_EXPAND],
325 [dnl Rely on autoconf to set up CDPATH properly.
326 AC_PREREQ([2.50])dnl
327 # expand $ac_aux_dir to an absolute path
328 am_aux_dir=`cd $ac_aux_dir && pwd`
401 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
402 # Expand $ac_aux_dir to an absolute path.
403 am_aux_dir=`cd "$ac_aux_dir" && pwd`
329404 ])
330405
331406 # AM_CONDITIONAL -*- Autoconf -*-
332407
333 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
408 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
334409 #
335410 # This file is free software; the Free Software Foundation
336411 # gives unlimited permission to copy and/or distribute it,
361436 Usually this means the macro was only invoked conditionally.]])
362437 fi])])
363438
364 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
439 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
365440 #
366441 # This file is free software; the Free Software Foundation
367442 # gives unlimited permission to copy and/or distribute it,
552627
553628 # Generate code to set up dependency tracking. -*- Autoconf -*-
554629
555 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
556 #
557 # This file is free software; the Free Software Foundation
558 # gives unlimited permission to copy and/or distribute it,
559 # with or without modifications, as long as this notice is preserved.
560
630 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
631 #
632 # This file is free software; the Free Software Foundation
633 # gives unlimited permission to copy and/or distribute it,
634 # with or without modifications, as long as this notice is preserved.
561635
562636 # _AM_OUTPUT_DEPENDENCY_COMMANDS
563637 # ------------------------------
566640 # Older Autoconf quotes --file arguments for eval, but not when files
567641 # are listed without --file. Let's play safe and only enable the eval
568642 # if we detect the quoting.
569 case $CONFIG_FILES in
570 *\'*) eval set x "$CONFIG_FILES" ;;
571 *) set x $CONFIG_FILES ;;
572 esac
643 # TODO: see whether this extra hack can be removed once we start
644 # requiring Autoconf 2.70 or later.
645 AS_CASE([$CONFIG_FILES],
646 [*\'*], [eval set x "$CONFIG_FILES"],
647 [*], [set x $CONFIG_FILES])
573648 shift
574 for mf
649 # Used to flag and report bootstrapping failures.
650 am_rc=0
651 for am_mf
575652 do
576653 # Strip MF so we end up with the name of the file.
577 mf=`echo "$mf" | sed -e 's/:.*$//'`
578 # Check whether this is an Automake generated Makefile or not.
579 # We used to match only the files named 'Makefile.in', but
580 # some people rename them; so instead we look at the file content.
581 # Grep'ing the first line is not enough: some people post-process
582 # each Makefile.in and add a new line on top of each file to say so.
583 # Grep'ing the whole file is not good either: AIX grep has a line
654 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
655 # Check whether this is an Automake generated Makefile which includes
656 # dependency-tracking related rules and includes.
657 # Grep'ing the whole file directly is not great: AIX grep has a line
584658 # limit of 2048, but all sed's we know have understand at least 4000.
585 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
586 dirpart=`AS_DIRNAME("$mf")`
587 else
588 continue
589 fi
590 # Extract the definition of DEPDIR, am__include, and am__quote
591 # from the Makefile without running 'make'.
592 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
593 test -z "$DEPDIR" && continue
594 am__include=`sed -n 's/^am__include = //p' < "$mf"`
595 test -z "$am__include" && continue
596 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
597 # Find all dependency output files, they are included files with
598 # $(DEPDIR) in their names. We invoke sed twice because it is the
599 # simplest approach to changing $(DEPDIR) to its actual value in the
600 # expansion.
601 for file in `sed -n "
602 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
603 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
604 # Make sure the directory exists.
605 test -f "$dirpart/$file" && continue
606 fdir=`AS_DIRNAME(["$file"])`
607 AS_MKDIR_P([$dirpart/$fdir])
608 # echo "creating $dirpart/$file"
609 echo '# dummy' > "$dirpart/$file"
610 done
659 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
660 || continue
661 am_dirpart=`AS_DIRNAME(["$am_mf"])`
662 am_filepart=`AS_BASENAME(["$am_mf"])`
663 AM_RUN_LOG([cd "$am_dirpart" \
664 && sed -e '/# am--include-marker/d' "$am_filepart" \
665 | $MAKE -f - am--depfiles]) || am_rc=$?
611666 done
667 if test $am_rc -ne 0; then
668 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
669 for automatic dependency tracking. Try re-running configure with the
670 '--disable-dependency-tracking' option to at least be able to build
671 the package (albeit without support for automatic dependency tracking).])
672 fi
673 AS_UNSET([am_dirpart])
674 AS_UNSET([am_filepart])
675 AS_UNSET([am_mf])
676 AS_UNSET([am_rc])
677 rm -f conftest-deps.mk
612678 }
613679 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
614680
617683 # -----------------------------
618684 # This macro should only be invoked once -- use via AC_REQUIRE.
619685 #
620 # This code is only required when automatic dependency tracking
621 # is enabled. FIXME. This creates each '.P' file that we will
622 # need in order to bootstrap the dependency handling code.
686 # This code is only required when automatic dependency tracking is enabled.
687 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
688 # order to bootstrap the dependency handling code.
623689 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
624690 [AC_CONFIG_COMMANDS([depfiles],
625691 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
626 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
627 ])
692 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
628693
629694 # Do all the work for Automake. -*- Autoconf -*-
630695
631 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
696 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
632697 #
633698 # This file is free software; the Free Software Foundation
634699 # gives unlimited permission to copy and/or distribute it,
636701
637702 # This macro actually does too much. Some checks are only needed if
638703 # your package does certain things. But this isn't really a big deal.
704
705 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
706 m4_define([AC_PROG_CC],
707 m4_defn([AC_PROG_CC])
708 [_AM_PROG_CC_C_O
709 ])
639710
640711 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
641712 # AM_INIT_AUTOMAKE([OPTIONS])
709780 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
710781 # For better backward compatibility. To be removed once Automake 1.9.x
711782 # dies out for good. For more background, see:
712 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
713 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
783 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
784 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
714785 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
715 # We need awk for the "check" target. The system "awk" is bad on
716 # some platforms.
786 # We need awk for the "check" target (and possibly the TAP driver). The
787 # system "awk" is bad on some platforms.
717788 AC_REQUIRE([AC_PROG_AWK])dnl
718789 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
719790 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
745816 AC_CONFIG_COMMANDS_PRE(dnl
746817 [m4_provide_if([_AM_COMPILER_EXEEXT],
747818 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
819
820 # POSIX will say in a future version that running "rm -f" with no argument
821 # is OK; and we want to be able to make that assumption in our Makefile
822 # recipes. So use an aggressive probe to check that the usage we want is
823 # actually supported "in the wild" to an acceptable degree.
824 # See automake bug#10828.
825 # To make any issue more visible, cause the running configure to be aborted
826 # by default if the 'rm' program in use doesn't match our expectations; the
827 # user can still override this though.
828 if rm -f && rm -fr && rm -rf; then : OK; else
829 cat >&2 <<'END'
830 Oops!
831
832 Your 'rm' program seems unable to run without file operands specified
833 on the command line, even when the '-f' option is present. This is contrary
834 to the behaviour of most rm programs out there, and not conforming with
835 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
836
837 Please tell bug-automake@gnu.org about your system, including the value
838 of your $PATH and any error possibly output before this message. This
839 can help us improve future automake versions.
840
841 END
842 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
843 echo 'Configuration will proceed anyway, since you have set the' >&2
844 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
845 echo >&2
846 else
847 cat >&2 <<'END'
848 Aborting the configuration process, to ensure you take notice of the issue.
849
850 You can download and install GNU coreutils to get an 'rm' implementation
851 that behaves properly: <https://www.gnu.org/software/coreutils/>.
852
853 If you want to complete the configuration process using your problematic
854 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
855 to "yes", and re-run configure.
856
857 END
858 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
859 fi
860 fi
861 dnl The trailing newline in this macro's definition is deliberate, for
862 dnl backward compatibility and to allow trailing 'dnl'-style comments
863 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
748864 ])
749865
750866 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
752868 dnl mangled by Autoconf and run in a shell conditional statement.
753869 m4_define([_AC_COMPILER_EXEEXT],
754870 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
755
756871
757872 # When config.status generates a header, we must update the stamp-h file.
758873 # This file resides in the same directory as the config header
775890 done
776891 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
777892
778 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
893 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
779894 #
780895 # This file is free software; the Free Software Foundation
781896 # gives unlimited permission to copy and/or distribute it,
786901 # Define $install_sh.
787902 AC_DEFUN([AM_PROG_INSTALL_SH],
788903 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
789 if test x"${install_sh}" != xset; then
904 if test x"${install_sh+set}" != xset; then
790905 case $am_aux_dir in
791906 *\ * | *\ *)
792907 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
796911 fi
797912 AC_SUBST([install_sh])])
798913
799 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
914 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
800915 #
801916 # This file is free software; the Free Software Foundation
802917 # gives unlimited permission to copy and/or distribute it,
817932
818933 # Check to see how 'make' treats includes. -*- Autoconf -*-
819934
820 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
935 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
821936 #
822937 # This file is free software; the Free Software Foundation
823938 # gives unlimited permission to copy and/or distribute it,
825940
826941 # AM_MAKE_INCLUDE()
827942 # -----------------
828 # Check to see how make treats includes.
943 # Check whether make has an 'include' directive that can support all
944 # the idioms we need for our automatic dependency tracking code.
829945 AC_DEFUN([AM_MAKE_INCLUDE],
830 [am_make=${MAKE-make}
831 cat > confinc << 'END'
946 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
947 cat > confinc.mk << 'END'
832948 am__doit:
833 @echo this is the am__doit target
949 @echo this is the am__doit target >confinc.out
834950 .PHONY: am__doit
835951 END
836 # If we don't find an include directive, just comment out the code.
837 AC_MSG_CHECKING([for style of include used by $am_make])
838952 am__include="#"
839953 am__quote=
840 _am_result=none
841 # First try GNU make style include.
842 echo "include confinc" > confmf
843 # Ignore all kinds of additional output from 'make'.
844 case `$am_make -s -f confmf 2> /dev/null` in #(
845 *the\ am__doit\ target*)
846 am__include=include
847 am__quote=
848 _am_result=GNU
849 ;;
850 esac
851 # Now try BSD make style include.
852 if test "$am__include" = "#"; then
853 echo '.include "confinc"' > confmf
854 case `$am_make -s -f confmf 2> /dev/null` in #(
855 *the\ am__doit\ target*)
856 am__include=.include
857 am__quote="\""
858 _am_result=BSD
859 ;;
860 esac
861 fi
862 AC_SUBST([am__include])
863 AC_SUBST([am__quote])
864 AC_MSG_RESULT([$_am_result])
865 rm -f confinc confmf
866 ])
954 # BSD make does it like this.
955 echo '.include "confinc.mk" # ignored' > confmf.BSD
956 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
957 echo 'include confinc.mk # ignored' > confmf.GNU
958 _am_result=no
959 for s in GNU BSD; do
960 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
961 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
962 ['0:this is the am__doit target'],
963 [AS_CASE([$s],
964 [BSD], [am__include='.include' am__quote='"'],
965 [am__include='include' am__quote=''])])
966 if test "$am__include" != "#"; then
967 _am_result="yes ($s style)"
968 break
969 fi
970 done
971 rm -f confinc.* confmf.*
972 AC_MSG_RESULT([${_am_result}])
973 AC_SUBST([am__include])])
974 AC_SUBST([am__quote])])
867975
868976 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
869977
870 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
978 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
871979 #
872980 # This file is free software; the Free Software Foundation
873981 # gives unlimited permission to copy and/or distribute it,
9041012 fi
9051013 ])
9061014
907 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
1015 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
9081016 #
9091017 # This file is free software; the Free Software Foundation
9101018 # gives unlimited permission to copy and/or distribute it,
9401048 # Obsolete and "removed" macros, that must however still report explicit
9411049 # error messages when used, to smooth transition.
9421050 #
943 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1051 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
9441052 #
9451053 # This file is free software; the Free Software Foundation
9461054 # gives unlimited permission to copy and/or distribute it,
9671075
9681076 # Helper functions for option handling. -*- Autoconf -*-
9691077
970 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1078 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
9711079 #
9721080 # This file is free software; the Free Software Foundation
9731081 # gives unlimited permission to copy and/or distribute it,
9961104 AC_DEFUN([_AM_IF_OPTION],
9971105 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9981106
999 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1107 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
1108 #
1109 # This file is free software; the Free Software Foundation
1110 # gives unlimited permission to copy and/or distribute it,
1111 # with or without modifications, as long as this notice is preserved.
1112
1113 # _AM_PROG_CC_C_O
1114 # ---------------
1115 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1116 # to automatically call this.
1117 AC_DEFUN([_AM_PROG_CC_C_O],
1118 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1119 AC_REQUIRE_AUX_FILE([compile])dnl
1120 AC_LANG_PUSH([C])dnl
1121 AC_CACHE_CHECK(
1122 [whether $CC understands -c and -o together],
1123 [am_cv_prog_cc_c_o],
1124 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1125 # Make sure it works both with $CC and with simple cc.
1126 # Following AC_PROG_CC_C_O, we do the test twice because some
1127 # compilers refuse to overwrite an existing .o file with -o,
1128 # though they will create one.
1129 am_cv_prog_cc_c_o=yes
1130 for am_i in 1 2; do
1131 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1132 && test -f conftest2.$ac_objext; then
1133 : OK
1134 else
1135 am_cv_prog_cc_c_o=no
1136 break
1137 fi
1138 done
1139 rm -f core conftest*
1140 unset am_i])
1141 if test "$am_cv_prog_cc_c_o" != yes; then
1142 # Losing compiler, so override with the script.
1143 # FIXME: It is wrong to rewrite CC.
1144 # But if we don't then we get into trouble of one sort or another.
1145 # A longer-term fix would be to have automake use am__CC in this case,
1146 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1147 CC="$am_aux_dir/compile $CC"
1148 fi
1149 AC_LANG_POP([C])])
1150
1151 # For backward compatibility.
1152 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1153
1154 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
10001155 #
10011156 # This file is free software; the Free Software Foundation
10021157 # gives unlimited permission to copy and/or distribute it,
10301185 dnl Find a Python interpreter. Python versions prior to 2.0 are not
10311186 dnl supported. (2.0 was released on October 16, 2000).
10321187 m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
1033 [python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
1034 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
1188 [python python2 python3 dnl
1189 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
1190 python3.2 python3.1 python3.0 dnl
1191 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
1192 python2.0])
10351193
10361194 AC_ARG_VAR([PYTHON], [the Python interpreter])
10371195
12311389 sys.exit(sys.hexversion < minverhex)"
12321390 AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
12331391
1234 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1392 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
12351393 #
12361394 # This file is free software; the Free Software Foundation
12371395 # gives unlimited permission to copy and/or distribute it,
12501408
12511409 # Check to make sure that the build environment is sane. -*- Autoconf -*-
12521410
1253 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1411 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
12541412 #
12551413 # This file is free software; the Free Software Foundation
12561414 # gives unlimited permission to copy and/or distribute it,
13311489 rm -f conftest.file
13321490 ])
13331491
1334 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1492 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
13351493 #
13361494 # This file is free software; the Free Software Foundation
13371495 # gives unlimited permission to copy and/or distribute it,
13911549 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
13921550 ])
13931551
1394 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1552 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
13951553 #
13961554 # This file is free software; the Free Software Foundation
13971555 # gives unlimited permission to copy and/or distribute it,
14191577 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14201578 AC_SUBST([INSTALL_STRIP_PROGRAM])])
14211579
1422 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1580 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
14231581 #
14241582 # This file is free software; the Free Software Foundation
14251583 # gives unlimited permission to copy and/or distribute it,
14381596
14391597 # Check how to create a tarball. -*- Autoconf -*-
14401598
1441 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1599 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
14421600 #
14431601 # This file is free software; the Free Software Foundation
14441602 # gives unlimited permission to copy and/or distribute it,
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
259 func_cl_wrapper "$@" # Doesn't return...
260 ;;
261 esac
262
263 ofile=
264 cfile=
265
266 for arg
267 do
268 if test -n "$eat"; then
269 eat=
270 else
271 case $1 in
272 -o)
273 # configure might choose to run compile as 'compile cc -o foo foo.c'.
274 # So we strip '-o arg' only if arg is an object.
275 eat=1
276 case $2 in
277 *.o | *.obj)
278 ofile=$2
279 ;;
280 *)
281 set x "$@" -o "$2"
282 shift
283 ;;
284 esac
285 ;;
286 *.c)
287 cfile=$1
288 set x "$@" "$1"
289 shift
290 ;;
291 *)
292 set x "$@" "$1"
293 shift
294 ;;
295 esac
296 fi
297 shift
298 done
299
300 if test -z "$ofile" || test -z "$cfile"; then
301 # If no '-o' option was seen then we might have been invoked from a
302 # pattern rule where we don't need one. That is ok -- this is a
303 # normal compilation that the losing compiler can handle. If no
304 # '.c' file was seen then we are probably linking. That is also
305 # ok.
306 exec "$@"
307 fi
308
309 # Name of file we expect compiler to create.
310 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
311
312 # Create the lock directory.
313 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
314 # that we are using for the .o file. Also, base the name on the expected
315 # object file name, since that is what matters with a parallel build.
316 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
317 while true; do
318 if mkdir "$lockdir" >/dev/null 2>&1; then
319 break
320 fi
321 sleep 1
322 done
323 # FIXME: race condition here if user kills between mkdir and trap.
324 trap "rmdir '$lockdir'; exit 1" 1 2 15
325
326 # Run the compile.
327 "$@"
328 ret=$?
329
330 if test -f "$cofile"; then
331 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
332 elif test -f "${cofile}bj"; then
333 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
334 fi
335
336 rmdir "$lockdir"
337 exit $ret
338
339 # Local Variables:
340 # mode: shell-script
341 # sh-indentation: 2
342 # eval: (add-hook 'before-save-hook 'time-stamp)
343 # time-stamp-start: "scriptversion="
344 # time-stamp-format: "%:y-%02m-%02d.%02H"
345 # time-stamp-time-zone: "UTC0"
346 # time-stamp-end: "; # UTC"
347 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-06-10'
2 # Copyright 1992-2020 Free Software Foundation, Inc.
3
4 timestamp='2020-04-26'
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-2020 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."
8383 exit 1
8484 fi
8585
86 trap 'exit 1' 1 2 15
87
8886 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
8987 # compiler to aid in system detection is discouraged as it requires
9088 # temporary files to be created and, as you can see below, it is a
9593
9694 # Portable tmp directory creation inspired by the Autoconf team.
9795
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > $dummy.c ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
96 tmp=
97 # shellcheck disable=SC2172
98 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
99
100 set_cc_for_build() {
101 # prevent multiple calls if $tmp is already set
102 test "$tmp" && return 0
103 : "${TMPDIR=/tmp}"
104 # shellcheck disable=SC2039
105 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
106 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
107 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
108 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
109 dummy=$tmp/dummy
110 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
111 ,,) echo "int x;" > "$dummy.c"
112 for driver in cc gcc c89 c99 ; do
113 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
114 CC_FOR_BUILD="$driver"
115 break
116 fi
117 done
118 if test x"$CC_FOR_BUILD" = x ; then
119 CC_FOR_BUILD=no_compiler_found
120 fi
121 ;;
122 ,,*) CC_FOR_BUILD=$CC ;;
123 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
124 esac
125 }
122126
123127 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124128 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
129 if test -f /.attbin/uname ; then
126130 PATH=$PATH:/.attbin ; export PATH
127131 fi
128132
131135 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132136 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133137
134 case "${UNAME_SYSTEM}" in
138 case "$UNAME_SYSTEM" in
135139 Linux|GNU|GNU/*)
136140 # If the system lacks a compiler, then just pick glibc.
137141 # We could probably try harder.
138142 LIBC=gnu
139143
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
144 set_cc_for_build
145 cat <<-EOF > "$dummy.c"
142146 #include <features.h>
143147 #if defined(__UCLIBC__)
144148 LIBC=uclibc
148152 LIBC=gnu
149153 #endif
150154 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
155 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
156
157 # If ldd exists, use it to detect musl libc.
158 if command -v ldd >/dev/null && \
159 ldd --version 2>&1 | grep -q ^musl
160 then
161 LIBC=musl
162 fi
152163 ;;
153164 esac
154165
155166 # Note: order is significant - the case branches are not exclusive.
156167
157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
168 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
158169 *:NetBSD:*:*)
159170 # NetBSD (nbsd) targets should (where applicable) match one or
160171 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
167178 # Note: NetBSD doesn't particularly care about the vendor
168179 # portion of the name. We always set it to "unknown".
169180 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
181 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
182 "/sbin/$sysctl" 2>/dev/null || \
183 "/usr/sbin/$sysctl" 2>/dev/null || \
184 echo unknown)`
185 case "$UNAME_MACHINE_ARCH" in
173186 armeb) machine=armeb-unknown ;;
174187 arm*) machine=arm-unknown ;;
175188 sh3el) machine=shl-unknown ;;
176189 sh3eb) machine=sh-unknown ;;
177190 sh5el) machine=sh5le-unknown ;;
178 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
191 earmv*)
192 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
193 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
194 machine="${arch}${endian}"-unknown
195 ;;
196 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
179197 esac
180198 # 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
199 # to ELF recently (or will in the future) and ABI.
200 case "$UNAME_MACHINE_ARCH" in
201 earm*)
202 os=netbsdelf
203 ;;
183204 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
184 eval $set_cc_for_build
205 set_cc_for_build
185206 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
186207 | grep -q __ELF__
187208 then
196217 os=netbsd
197218 ;;
198219 esac
220 # Determine ABI tags.
221 case "$UNAME_MACHINE_ARCH" in
222 earm*)
223 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
224 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
225 ;;
226 esac
199227 # The OS release
200228 # Debian GNU/NetBSD machines have a different userland, and
201229 # thus, need a distinct triplet. However, they do not need
202230 # kernel version information, so it can be replaced with a
203231 # suitable tag, in the style of linux-gnu.
204 case "${UNAME_VERSION}" in
232 case "$UNAME_VERSION" in
205233 Debian*)
206234 release='-gnu'
207235 ;;
208236 *)
209 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
237 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
210238 ;;
211239 esac
212240 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
213241 # contains redundant information, the shorter form:
214242 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
215 echo "${machine}-${os}${release}"
243 echo "$machine-${os}${release}${abi-}"
216244 exit ;;
217245 *:Bitrig:*:*)
218246 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
219 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
247 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
220248 exit ;;
221249 *:OpenBSD:*:*)
222250 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
223 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
251 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
252 exit ;;
253 *:LibertyBSD:*:*)
254 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
255 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
256 exit ;;
257 *:MidnightBSD:*:*)
258 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
224259 exit ;;
225260 *:ekkoBSD:*:*)
226 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
261 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
227262 exit ;;
228263 *:SolidBSD:*:*)
229 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
264 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
265 exit ;;
266 *:OS108:*:*)
267 echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE"
230268 exit ;;
231269 macppc:MirBSD:*:*)
232 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
270 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
233271 exit ;;
234272 *:MirBSD:*:*)
235 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
273 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
274 exit ;;
275 *:Sortix:*:*)
276 echo "$UNAME_MACHINE"-unknown-sortix
277 exit ;;
278 *:Twizzler:*:*)
279 echo "$UNAME_MACHINE"-unknown-twizzler
280 exit ;;
281 *:Redox:*:*)
282 echo "$UNAME_MACHINE"-unknown-redox
283 exit ;;
284 mips:OSF1:*.*)
285 echo mips-dec-osf1
236286 exit ;;
237287 alpha:OSF1:*:*)
238288 case $UNAME_RELEASE in
250300 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
251301 case "$ALPHA_CPU_TYPE" in
252302 "EV4 (21064)")
253 UNAME_MACHINE="alpha" ;;
303 UNAME_MACHINE=alpha ;;
254304 "EV4.5 (21064)")
255 UNAME_MACHINE="alpha" ;;
305 UNAME_MACHINE=alpha ;;
256306 "LCA4 (21066/21068)")
257 UNAME_MACHINE="alpha" ;;
307 UNAME_MACHINE=alpha ;;
258308 "EV5 (21164)")
259 UNAME_MACHINE="alphaev5" ;;
309 UNAME_MACHINE=alphaev5 ;;
260310 "EV5.6 (21164A)")
261 UNAME_MACHINE="alphaev56" ;;
311 UNAME_MACHINE=alphaev56 ;;
262312 "EV5.6 (21164PC)")
263 UNAME_MACHINE="alphapca56" ;;
313 UNAME_MACHINE=alphapca56 ;;
264314 "EV5.7 (21164PC)")
265 UNAME_MACHINE="alphapca57" ;;
315 UNAME_MACHINE=alphapca57 ;;
266316 "EV6 (21264)")
267 UNAME_MACHINE="alphaev6" ;;
317 UNAME_MACHINE=alphaev6 ;;
268318 "EV6.7 (21264A)")
269 UNAME_MACHINE="alphaev67" ;;
319 UNAME_MACHINE=alphaev67 ;;
270320 "EV6.8CB (21264C)")
271 UNAME_MACHINE="alphaev68" ;;
321 UNAME_MACHINE=alphaev68 ;;
272322 "EV6.8AL (21264B)")
273 UNAME_MACHINE="alphaev68" ;;
323 UNAME_MACHINE=alphaev68 ;;
274324 "EV6.8CX (21264D)")
275 UNAME_MACHINE="alphaev68" ;;
325 UNAME_MACHINE=alphaev68 ;;
276326 "EV6.9A (21264/EV69A)")
277 UNAME_MACHINE="alphaev69" ;;
327 UNAME_MACHINE=alphaev69 ;;
278328 "EV7 (21364)")
279 UNAME_MACHINE="alphaev7" ;;
329 UNAME_MACHINE=alphaev7 ;;
280330 "EV7.9 (21364A)")
281 UNAME_MACHINE="alphaev79" ;;
331 UNAME_MACHINE=alphaev79 ;;
282332 esac
283333 # A Pn.n version is a patched version.
284334 # A Vn.n version is a released version.
285335 # A Tn.n version is a released field test version.
286336 # A Xn.n version is an unreleased experimental baselevel.
287337 # 1.2 uses "1.2" for uname -r.
288 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
338 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
289339 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
290340 exitcode=$?
291341 trap '' 0
292342 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 ;;
302343 Amiga*:UNIX_System_V:4.0:*)
303344 echo m68k-unknown-sysv4
304345 exit ;;
305346 *:[Aa]miga[Oo][Ss]:*:*)
306 echo ${UNAME_MACHINE}-unknown-amigaos
347 echo "$UNAME_MACHINE"-unknown-amigaos
307348 exit ;;
308349 *:[Mm]orph[Oo][Ss]:*:*)
309 echo ${UNAME_MACHINE}-unknown-morphos
350 echo "$UNAME_MACHINE"-unknown-morphos
310351 exit ;;
311352 *:OS/390:*:*)
312353 echo i370-ibm-openedition
318359 echo powerpc-ibm-os400
319360 exit ;;
320361 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
321 echo arm-acorn-riscix${UNAME_RELEASE}
362 echo arm-acorn-riscix"$UNAME_RELEASE"
322363 exit ;;
323364 arm*:riscos:*:*|arm*:RISCOS:*:*)
324365 echo arm-unknown-riscos
345386 sparc) echo sparc-icl-nx7; exit ;;
346387 esac ;;
347388 s390x:SunOS:*:*)
348 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
389 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
349390 exit ;;
350391 sun4H:SunOS:5.*:*)
351 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
392 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
352393 exit ;;
353394 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
354 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
395 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
355396 exit ;;
356397 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
357 echo i386-pc-auroraux${UNAME_RELEASE}
398 echo i386-pc-auroraux"$UNAME_RELEASE"
358399 exit ;;
359400 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
360 eval $set_cc_for_build
361 SUN_ARCH="i386"
401 set_cc_for_build
402 SUN_ARCH=i386
362403 # If there is a compiler, see if it is configured for 64-bit objects.
363404 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
364405 # This test works for both compilers.
365 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
406 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
366407 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
367 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
408 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
368409 grep IS_64BIT_ARCH >/dev/null
369410 then
370 SUN_ARCH="x86_64"
411 SUN_ARCH=x86_64
371412 fi
372413 fi
373 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
414 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
374415 exit ;;
375416 sun4*:SunOS:6*:*)
376417 # According to config.sub, this is the proper way to canonicalize
377418 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
378419 # it's likely to be more like Solaris than SunOS4.
379 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
420 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
380421 exit ;;
381422 sun4*:SunOS:*:*)
382423 case "`/usr/bin/arch -k`" in
385426 ;;
386427 esac
387428 # Japanese Language versions have a version number like `4.1.3-JL'.
388 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
429 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
389430 exit ;;
390431 sun3*:SunOS:*:*)
391 echo m68k-sun-sunos${UNAME_RELEASE}
432 echo m68k-sun-sunos"$UNAME_RELEASE"
392433 exit ;;
393434 sun*:*:4.2BSD:*)
394435 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
395 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
436 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
396437 case "`/bin/arch`" in
397438 sun3)
398 echo m68k-sun-sunos${UNAME_RELEASE}
439 echo m68k-sun-sunos"$UNAME_RELEASE"
399440 ;;
400441 sun4)
401 echo sparc-sun-sunos${UNAME_RELEASE}
442 echo sparc-sun-sunos"$UNAME_RELEASE"
402443 ;;
403444 esac
404445 exit ;;
405446 aushp:SunOS:*:*)
406 echo sparc-auspex-sunos${UNAME_RELEASE}
447 echo sparc-auspex-sunos"$UNAME_RELEASE"
407448 exit ;;
408449 # The situation for MiNT is a little confusing. The machine name
409450 # can be virtually everything (everything which is not
414455 # MiNT. But MiNT is downward compatible to TOS, so this should
415456 # be no problem.
416457 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
417 echo m68k-atari-mint${UNAME_RELEASE}
458 echo m68k-atari-mint"$UNAME_RELEASE"
418459 exit ;;
419460 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
420 echo m68k-atari-mint${UNAME_RELEASE}
461 echo m68k-atari-mint"$UNAME_RELEASE"
421462 exit ;;
422463 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
423 echo m68k-atari-mint${UNAME_RELEASE}
464 echo m68k-atari-mint"$UNAME_RELEASE"
424465 exit ;;
425466 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
426 echo m68k-milan-mint${UNAME_RELEASE}
467 echo m68k-milan-mint"$UNAME_RELEASE"
427468 exit ;;
428469 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
429 echo m68k-hades-mint${UNAME_RELEASE}
470 echo m68k-hades-mint"$UNAME_RELEASE"
430471 exit ;;
431472 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
432 echo m68k-unknown-mint${UNAME_RELEASE}
473 echo m68k-unknown-mint"$UNAME_RELEASE"
433474 exit ;;
434475 m68k:machten:*:*)
435 echo m68k-apple-machten${UNAME_RELEASE}
476 echo m68k-apple-machten"$UNAME_RELEASE"
436477 exit ;;
437478 powerpc:machten:*:*)
438 echo powerpc-apple-machten${UNAME_RELEASE}
479 echo powerpc-apple-machten"$UNAME_RELEASE"
439480 exit ;;
440481 RISC*:Mach:*:*)
441482 echo mips-dec-mach_bsd4.3
442483 exit ;;
443484 RISC*:ULTRIX:*:*)
444 echo mips-dec-ultrix${UNAME_RELEASE}
485 echo mips-dec-ultrix"$UNAME_RELEASE"
445486 exit ;;
446487 VAX*:ULTRIX*:*:*)
447 echo vax-dec-ultrix${UNAME_RELEASE}
488 echo vax-dec-ultrix"$UNAME_RELEASE"
448489 exit ;;
449490 2020:CLIX:*:* | 2430:CLIX:*:*)
450 echo clipper-intergraph-clix${UNAME_RELEASE}
491 echo clipper-intergraph-clix"$UNAME_RELEASE"
451492 exit ;;
452493 mips:*:*:UMIPS | mips:*:*:RISCos)
453 eval $set_cc_for_build
454 sed 's/^ //' << EOF >$dummy.c
494 set_cc_for_build
495 sed 's/^ //' << EOF > "$dummy.c"
455496 #ifdef __cplusplus
456497 #include <stdio.h> /* for printf() prototype */
457498 int main (int argc, char *argv[]) {
460501 #endif
461502 #if defined (host_mips) && defined (MIPSEB)
462503 #if defined (SYSTYPE_SYSV)
463 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
504 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
464505 #endif
465506 #if defined (SYSTYPE_SVR4)
466 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
507 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
467508 #endif
468509 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
469 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
510 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
470511 #endif
471512 #endif
472513 exit (-1);
473514 }
474515 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` &&
516 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
517 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
518 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
478519 { echo "$SYSTEM_NAME"; exit; }
479 echo mips-mips-riscos${UNAME_RELEASE}
520 echo mips-mips-riscos"$UNAME_RELEASE"
480521 exit ;;
481522 Motorola:PowerMAX_OS:*:*)
482523 echo powerpc-motorola-powermax
502543 AViiON:dgux:*:*)
503544 # DG/UX returns AViiON for all architectures
504545 UNAME_PROCESSOR=`/usr/bin/uname -p`
505 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
546 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
506547 then
507 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
508 [ ${TARGET_BINARY_INTERFACE}x = x ]
548 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
549 [ "$TARGET_BINARY_INTERFACE"x = x ]
509550 then
510 echo m88k-dg-dgux${UNAME_RELEASE}
551 echo m88k-dg-dgux"$UNAME_RELEASE"
511552 else
512 echo m88k-dg-dguxbcs${UNAME_RELEASE}
553 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
513554 fi
514555 else
515 echo i586-dg-dgux${UNAME_RELEASE}
556 echo i586-dg-dgux"$UNAME_RELEASE"
516557 fi
517558 exit ;;
518559 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
529570 echo m68k-tektronix-bsd
530571 exit ;;
531572 *:IRIX*:*:*)
532 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
573 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
533574 exit ;;
534575 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
535576 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
541582 if [ -x /usr/bin/oslevel ] ; then
542583 IBM_REV=`/usr/bin/oslevel`
543584 else
544 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
545 fi
546 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
585 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
586 fi
587 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
547588 exit ;;
548589 *:AIX:2:3)
549590 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
550 eval $set_cc_for_build
551 sed 's/^ //' << EOF >$dummy.c
591 set_cc_for_build
592 sed 's/^ //' << EOF > "$dummy.c"
552593 #include <sys/systemcfg.h>
553594
554595 main()
559600 exit(0);
560601 }
561602 EOF
562 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
603 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
563604 then
564605 echo "$SYSTEM_NAME"
565606 else
573614 exit ;;
574615 *:AIX:*:[4567])
575616 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
617 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
577618 IBM_ARCH=rs6000
578619 else
579620 IBM_ARCH=powerpc
580621 fi
581 if [ -x /usr/bin/oslevel ] ; then
582 IBM_REV=`/usr/bin/oslevel`
622 if [ -x /usr/bin/lslpp ] ; then
623 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
624 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
583625 else
584 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
585 fi
586 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
626 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
627 fi
628 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
587629 exit ;;
588630 *:AIX:*:*)
589631 echo rs6000-ibm-aix
590632 exit ;;
591 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
633 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
592634 echo romp-ibm-bsd4.4
593635 exit ;;
594636 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
595 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
637 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
596638 exit ;; # report: romp-ibm BSD 4.3
597639 *:BOSX:*:*)
598640 echo rs6000-bull-bosx
607649 echo m68k-hp-bsd4.4
608650 exit ;;
609651 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 ;;
652 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
653 case "$UNAME_MACHINE" in
654 9000/31?) HP_ARCH=m68000 ;;
655 9000/[34]??) HP_ARCH=m68k ;;
614656 9000/[678][0-9][0-9])
615657 if [ -x /usr/bin/getconf ]; then
616658 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
617659 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
660 case "$sc_cpu_version" in
661 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
662 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
621663 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
664 case "$sc_kernel_bits" in
665 32) HP_ARCH=hppa2.0n ;;
666 64) HP_ARCH=hppa2.0w ;;
667 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
626668 esac ;;
627669 esac
628670 fi
629 if [ "${HP_ARCH}" = "" ]; then
630 eval $set_cc_for_build
631 sed 's/^ //' << EOF >$dummy.c
671 if [ "$HP_ARCH" = "" ]; then
672 set_cc_for_build
673 sed 's/^ //' << EOF > "$dummy.c"
632674
633675 #define _HPUX_SOURCE
634676 #include <stdlib.h>
661703 exit (0);
662704 }
663705 EOF
664 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
706 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
665707 test -z "$HP_ARCH" && HP_ARCH=hppa
666708 fi ;;
667709 esac
668 if [ ${HP_ARCH} = "hppa2.0w" ]
710 if [ "$HP_ARCH" = hppa2.0w ]
669711 then
670 eval $set_cc_for_build
712 set_cc_for_build
671713
672714 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
673715 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
678720 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
679721 # => hppa64-hp-hpux11.23
680722
681 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
723 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
682724 grep -q __LP64__
683725 then
684 HP_ARCH="hppa2.0w"
726 HP_ARCH=hppa2.0w
685727 else
686 HP_ARCH="hppa64"
728 HP_ARCH=hppa64
687729 fi
688730 fi
689 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
731 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
690732 exit ;;
691733 ia64:HP-UX:*:*)
692 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
693 echo ia64-hp-hpux${HPUX_REV}
734 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
735 echo ia64-hp-hpux"$HPUX_REV"
694736 exit ;;
695737 3050*:HI-UX:*:*)
696 eval $set_cc_for_build
697 sed 's/^ //' << EOF >$dummy.c
738 set_cc_for_build
739 sed 's/^ //' << EOF > "$dummy.c"
698740 #include <unistd.h>
699741 int
700742 main ()
719761 exit (0);
720762 }
721763 EOF
722 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
764 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
723765 { echo "$SYSTEM_NAME"; exit; }
724766 echo unknown-hitachi-hiuxwe2
725767 exit ;;
726 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
768 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
727769 echo hppa1.1-hp-bsd
728770 exit ;;
729771 9000/8??:4.3bsd:*:*)
732774 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
733775 echo hppa1.0-hp-mpeix
734776 exit ;;
735 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
777 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
736778 echo hppa1.1-hp-osf
737779 exit ;;
738780 hp8??:OSF1:*:*)
740782 exit ;;
741783 i*86:OSF1:*:*)
742784 if [ -x /usr/sbin/sysversion ] ; then
743 echo ${UNAME_MACHINE}-unknown-osf1mk
785 echo "$UNAME_MACHINE"-unknown-osf1mk
744786 else
745 echo ${UNAME_MACHINE}-unknown-osf1
787 echo "$UNAME_MACHINE"-unknown-osf1
746788 fi
747789 exit ;;
748790 parisc*:Lites*:*:*)
767809 echo c4-convex-bsd
768810 exit ;;
769811 CRAY*Y-MP:*:*:*)
770 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
812 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
771813 exit ;;
772814 CRAY*[A-Z]90:*:*:*)
773 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
815 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
774816 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
775817 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
776818 -e 's/\.[^.]*$/.X/'
777819 exit ;;
778820 CRAY*TS:*:*:*)
779 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
821 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
780822 exit ;;
781823 CRAY*T3E:*:*:*)
782 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
824 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
783825 exit ;;
784826 CRAY*SV1:*:*:*)
785 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
827 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
786828 exit ;;
787829 *:UNICOS/mp:*:*)
788 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
830 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
789831 exit ;;
790832 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/ /_/'`
833 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
834 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
835 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
794836 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
795837 exit ;;
796838 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/ /_/'`
839 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
840 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
799841 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
800842 exit ;;
801843 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
802 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
844 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
803845 exit ;;
804846 sparc*:BSD/OS:*:*)
805 echo sparc-unknown-bsdi${UNAME_RELEASE}
847 echo sparc-unknown-bsdi"$UNAME_RELEASE"
806848 exit ;;
807849 *:BSD/OS:*:*)
808 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
850 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
851 exit ;;
852 arm:FreeBSD:*:*)
853 UNAME_PROCESSOR=`uname -p`
854 set_cc_for_build
855 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
856 | grep -q __ARM_PCS_VFP
857 then
858 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
859 else
860 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
861 fi
809862 exit ;;
810863 *:FreeBSD:*:*)
811864 UNAME_PROCESSOR=`/usr/bin/uname -p`
812 case ${UNAME_PROCESSOR} in
865 case "$UNAME_PROCESSOR" in
813866 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/[-(].*//'` ;;
867 UNAME_PROCESSOR=x86_64 ;;
868 i386)
869 UNAME_PROCESSOR=i586 ;;
817870 esac
871 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
818872 exit ;;
819873 i*:CYGWIN*:*)
820 echo ${UNAME_MACHINE}-pc-cygwin
874 echo "$UNAME_MACHINE"-pc-cygwin
821875 exit ;;
822876 *:MINGW64*:*)
823 echo ${UNAME_MACHINE}-pc-mingw64
877 echo "$UNAME_MACHINE"-pc-mingw64
824878 exit ;;
825879 *: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
880 echo "$UNAME_MACHINE"-pc-mingw32
881 exit ;;
882 *:MSYS*:*)
883 echo "$UNAME_MACHINE"-pc-msys
834884 exit ;;
835885 i*:PW*:*)
836 echo ${UNAME_MACHINE}-pc-pw32
886 echo "$UNAME_MACHINE"-pc-pw32
837887 exit ;;
838888 *:Interix*:*)
839 case ${UNAME_MACHINE} in
889 case "$UNAME_MACHINE" in
840890 x86)
841 echo i586-pc-interix${UNAME_RELEASE}
891 echo i586-pc-interix"$UNAME_RELEASE"
842892 exit ;;
843893 authenticamd | genuineintel | EM64T)
844 echo x86_64-unknown-interix${UNAME_RELEASE}
894 echo x86_64-unknown-interix"$UNAME_RELEASE"
845895 exit ;;
846896 IA64)
847 echo ia64-unknown-interix${UNAME_RELEASE}
897 echo ia64-unknown-interix"$UNAME_RELEASE"
848898 exit ;;
849899 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 ;;
862900 i*:UWIN*:*)
863 echo ${UNAME_MACHINE}-pc-uwin
901 echo "$UNAME_MACHINE"-pc-uwin
864902 exit ;;
865903 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
866 echo x86_64-unknown-cygwin
867 exit ;;
868 p*:CYGWIN*:*)
869 echo powerpcle-unknown-cygwin
904 echo x86_64-pc-cygwin
870905 exit ;;
871906 prep*:SunOS:5.*:*)
872 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
907 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
873908 exit ;;
874909 *:GNU:*:*)
875910 # the GNU system
876 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
911 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
877912 exit ;;
878913 *:GNU/*:*:*)
879914 # 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}
881 exit ;;
882 i*86:Minix:*:*)
883 echo ${UNAME_MACHINE}-pc-minix
915 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
916 exit ;;
917 *:Minix:*:*)
918 echo "$UNAME_MACHINE"-unknown-minix
884919 exit ;;
885920 aarch64:Linux:*:*)
886 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
887922 exit ;;
888923 aarch64_be:Linux:*:*)
889924 UNAME_MACHINE=aarch64_be
890 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
925 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
891926 exit ;;
892927 alpha:Linux:*:*)
893 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
928 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
894929 EV5) UNAME_MACHINE=alphaev5 ;;
895930 EV56) UNAME_MACHINE=alphaev56 ;;
896931 PCA56) UNAME_MACHINE=alphapca56 ;;
900935 EV68*) UNAME_MACHINE=alphaev68 ;;
901936 esac
902937 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}
938 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
939 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905940 exit ;;
906941 arc:Linux:*:* | arceb:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
942 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
908943 exit ;;
909944 arm*:Linux:*:*)
910 eval $set_cc_for_build
945 set_cc_for_build
911946 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
912947 | grep -q __ARM_EABI__
913948 then
914 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
915950 else
916951 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
917952 | grep -q __ARM_PCS_VFP
918953 then
919 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
954 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
920955 else
921 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
956 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
922957 fi
923958 fi
924959 exit ;;
925960 avr32*:Linux:*:*)
926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
927962 exit ;;
928963 cris:Linux:*:*)
929 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
964 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
930965 exit ;;
931966 crisv32:Linux:*:*)
932 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
967 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
968 exit ;;
969 e2k:Linux:*:*)
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
933971 exit ;;
934972 frv:Linux:*:*)
935 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
936974 exit ;;
937975 hexagon:Linux:*:*)
938 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
976 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
939977 exit ;;
940978 i*86:Linux:*:*)
941 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
979 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
942980 exit ;;
943981 ia64:Linux:*:*)
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
982 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
983 exit ;;
984 k1om:Linux:*:*)
985 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
945986 exit ;;
946987 m32r*:Linux:*:*)
947 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
988 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
948989 exit ;;
949990 m68*:Linux:*:*)
950 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
991 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
951992 exit ;;
952993 mips:Linux:*:* | mips64:Linux:*:*)
953 eval $set_cc_for_build
954 sed 's/^ //' << EOF >$dummy.c
994 set_cc_for_build
995 IS_GLIBC=0
996 test x"${LIBC}" = xgnu && IS_GLIBC=1
997 sed 's/^ //' << EOF > "$dummy.c"
955998 #undef CPU
956 #undef ${UNAME_MACHINE}
957 #undef ${UNAME_MACHINE}el
999 #undef mips
1000 #undef mipsel
1001 #undef mips64
1002 #undef mips64el
1003 #if ${IS_GLIBC} && defined(_ABI64)
1004 LIBCABI=gnuabi64
1005 #else
1006 #if ${IS_GLIBC} && defined(_ABIN32)
1007 LIBCABI=gnuabin32
1008 #else
1009 LIBCABI=${LIBC}
1010 #endif
1011 #endif
1012
1013 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1014 CPU=mipsisa64r6
1015 #else
1016 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1017 CPU=mipsisa32r6
1018 #else
1019 #if defined(__mips64)
1020 CPU=mips64
1021 #else
1022 CPU=mips
1023 #endif
1024 #endif
1025 #endif
1026
9581027 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
959 CPU=${UNAME_MACHINE}el
1028 MIPS_ENDIAN=el
9601029 #else
9611030 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
962 CPU=${UNAME_MACHINE}
1031 MIPS_ENDIAN=
9631032 #else
964 CPU=
1033 MIPS_ENDIAN=
9651034 #endif
9661035 #endif
9671036 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; }
1037 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`"
1038 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
9701039 ;;
971 or1k:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 exit ;;
974 or32:Linux:*:*)
975 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1040 mips64el:Linux:*:*)
1041 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1042 exit ;;
1043 openrisc*:Linux:*:*)
1044 echo or1k-unknown-linux-"$LIBC"
1045 exit ;;
1046 or32:Linux:*:* | or1k*:Linux:*:*)
1047 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
9761048 exit ;;
9771049 padre:Linux:*:*)
978 echo sparc-unknown-linux-${LIBC}
1050 echo sparc-unknown-linux-"$LIBC"
9791051 exit ;;
9801052 parisc64:Linux:*:* | hppa64:Linux:*:*)
981 echo hppa64-unknown-linux-${LIBC}
1053 echo hppa64-unknown-linux-"$LIBC"
9821054 exit ;;
9831055 parisc:Linux:*:* | hppa:Linux:*:*)
9841056 # Look for CPU level
9851057 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} ;;
1058 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1059 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1060 *) echo hppa-unknown-linux-"$LIBC" ;;
9891061 esac
9901062 exit ;;
9911063 ppc64:Linux:*:*)
992 echo powerpc64-unknown-linux-${LIBC}
1064 echo powerpc64-unknown-linux-"$LIBC"
9931065 exit ;;
9941066 ppc:Linux:*:*)
995 echo powerpc-unknown-linux-${LIBC}
1067 echo powerpc-unknown-linux-"$LIBC"
9961068 exit ;;
9971069 ppc64le:Linux:*:*)
998 echo powerpc64le-unknown-linux-${LIBC}
1070 echo powerpc64le-unknown-linux-"$LIBC"
9991071 exit ;;
10001072 ppcle:Linux:*:*)
1001 echo powerpcle-unknown-linux-${LIBC}
1073 echo powerpcle-unknown-linux-"$LIBC"
1074 exit ;;
1075 riscv32:Linux:*:* | riscv64:Linux:*:*)
1076 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10021077 exit ;;
10031078 s390:Linux:*:* | s390x:Linux:*:*)
1004 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1079 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
10051080 exit ;;
10061081 sh64*:Linux:*:*)
1007 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1082 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10081083 exit ;;
10091084 sh*:Linux:*:*)
1010 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1085 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10111086 exit ;;
10121087 sparc:Linux:*:* | sparc64:Linux:*:*)
1013 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1088 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10141089 exit ;;
10151090 tile*:Linux:*:*)
1016 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1091 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10171092 exit ;;
10181093 vax:Linux:*:*)
1019 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1094 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
10201095 exit ;;
10211096 x86_64:Linux:*:*)
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1097 set_cc_for_build
1098 LIBCABI=$LIBC
1099 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1100 if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
1101 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1102 grep IS_X32 >/dev/null
1103 then
1104 LIBCABI="$LIBC"x32
1105 fi
1106 fi
1107 echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI"
10231108 exit ;;
10241109 xtensa*:Linux:*:*)
1025 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1110 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10261111 exit ;;
10271112 i*86:DYNIX/ptx:4*:*)
10281113 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10361121 # I am not positive that other SVR4 systems won't match this,
10371122 # I just have to hope. -- rms.
10381123 # Use sysv4.2uw... so that sysv4* matches it.
1039 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1124 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
10401125 exit ;;
10411126 i*86:OS/2:*:*)
10421127 # If we were able to find `uname', then EMX Unix compatibility
10431128 # is probably installed.
1044 echo ${UNAME_MACHINE}-pc-os2-emx
1129 echo "$UNAME_MACHINE"-pc-os2-emx
10451130 exit ;;
10461131 i*86:XTS-300:*:STOP)
1047 echo ${UNAME_MACHINE}-unknown-stop
1132 echo "$UNAME_MACHINE"-unknown-stop
10481133 exit ;;
10491134 i*86:atheos:*:*)
1050 echo ${UNAME_MACHINE}-unknown-atheos
1135 echo "$UNAME_MACHINE"-unknown-atheos
10511136 exit ;;
10521137 i*86:syllable:*:*)
1053 echo ${UNAME_MACHINE}-pc-syllable
1138 echo "$UNAME_MACHINE"-pc-syllable
10541139 exit ;;
10551140 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1056 echo i386-unknown-lynxos${UNAME_RELEASE}
1141 echo i386-unknown-lynxos"$UNAME_RELEASE"
10571142 exit ;;
10581143 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$//'`
1144 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1145 exit ;;
1146 i*86:*:4.*:*)
1147 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10631148 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1064 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1149 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
10651150 else
1066 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1151 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
10671152 fi
10681153 exit ;;
10691154 i*86:*:5:[678]*)
10731158 *Pentium) UNAME_MACHINE=i586 ;;
10741159 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10751160 esac
1076 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1161 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}"
10771162 exit ;;
10781163 i*86:*:3.2:*)
10791164 if test -f /usr/options/cb.name; then
10801165 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1081 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1166 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
10821167 elif /bin/uname -X 2>/dev/null >/dev/null ; then
10831168 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
10841169 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
10881173 && UNAME_MACHINE=i686
10891174 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
10901175 && UNAME_MACHINE=i686
1091 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1176 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
10921177 else
1093 echo ${UNAME_MACHINE}-pc-sysv32
1178 echo "$UNAME_MACHINE"-pc-sysv32
10941179 fi
10951180 exit ;;
10961181 pc:*:*:*)
10981183 # uname -m prints for DJGPP always 'pc', but it prints nothing about
10991184 # the processor, so we play safe by assuming i586.
11001185 # 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
1186 # prints for the "djgpp" host, or else GDB configure will decide that
11021187 # this is a cross-build.
11031188 echo i586-pc-msdosdjgpp
11041189 exit ;;
11101195 exit ;;
11111196 i860:*:4.*:*) # i860-SVR4
11121197 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1113 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1198 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
11141199 else # Add other i860-SVR4 vendors below as they are discovered.
1115 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1200 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
11161201 fi
11171202 exit ;;
11181203 mini*:CTIX:SYS*5:*)
11321217 test -r /etc/.relid \
11331218 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11341219 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1135 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1220 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11361221 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1137 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1222 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11381223 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11391224 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11401225 && { echo i486-ncr-sysv4; exit; } ;;
11431228 test -r /etc/.relid \
11441229 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11451230 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1146 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1231 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11471232 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1148 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1233 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11491234 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1150 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1235 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11511236 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1152 echo m68k-unknown-lynxos${UNAME_RELEASE}
1237 echo m68k-unknown-lynxos"$UNAME_RELEASE"
11531238 exit ;;
11541239 mc68030:UNIX_System_V:4.*:*)
11551240 echo m68k-atari-sysv4
11561241 exit ;;
11571242 TSUNAMI:LynxOS:2.*:*)
1158 echo sparc-unknown-lynxos${UNAME_RELEASE}
1243 echo sparc-unknown-lynxos"$UNAME_RELEASE"
11591244 exit ;;
11601245 rs6000:LynxOS:2.*:*)
1161 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1246 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
11621247 exit ;;
11631248 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1164 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1249 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
11651250 exit ;;
11661251 SM[BE]S:UNIX_SV:*:*)
1167 echo mips-dde-sysv${UNAME_RELEASE}
1252 echo mips-dde-sysv"$UNAME_RELEASE"
11681253 exit ;;
11691254 RM*:ReliantUNIX-*:*:*)
11701255 echo mips-sni-sysv4
11751260 *:SINIX-*:*:*)
11761261 if uname -p 2>/dev/null >/dev/null ; then
11771262 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1178 echo ${UNAME_MACHINE}-sni-sysv4
1263 echo "$UNAME_MACHINE"-sni-sysv4
11791264 else
11801265 echo ns32k-sni-sysv
11811266 fi
11951280 exit ;;
11961281 i*86:VOS:*:*)
11971282 # From Paul.Green@stratus.com.
1198 echo ${UNAME_MACHINE}-stratus-vos
1283 echo "$UNAME_MACHINE"-stratus-vos
11991284 exit ;;
12001285 *:VOS:*:*)
12011286 # From Paul.Green@stratus.com.
12021287 echo hppa1.1-stratus-vos
12031288 exit ;;
12041289 mc68*:A/UX:*:*)
1205 echo m68k-apple-aux${UNAME_RELEASE}
1290 echo m68k-apple-aux"$UNAME_RELEASE"
12061291 exit ;;
12071292 news*:NEWS-OS:6*:*)
12081293 echo mips-sony-newsos6
12091294 exit ;;
12101295 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12111296 if [ -d /usr/nec ]; then
1212 echo mips-nec-sysv${UNAME_RELEASE}
1297 echo mips-nec-sysv"$UNAME_RELEASE"
12131298 else
1214 echo mips-unknown-sysv${UNAME_RELEASE}
1299 echo mips-unknown-sysv"$UNAME_RELEASE"
12151300 fi
12161301 exit ;;
12171302 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12301315 echo x86_64-unknown-haiku
12311316 exit ;;
12321317 SX-4:SUPER-UX:*:*)
1233 echo sx4-nec-superux${UNAME_RELEASE}
1318 echo sx4-nec-superux"$UNAME_RELEASE"
12341319 exit ;;
12351320 SX-5:SUPER-UX:*:*)
1236 echo sx5-nec-superux${UNAME_RELEASE}
1321 echo sx5-nec-superux"$UNAME_RELEASE"
12371322 exit ;;
12381323 SX-6:SUPER-UX:*:*)
1239 echo sx6-nec-superux${UNAME_RELEASE}
1324 echo sx6-nec-superux"$UNAME_RELEASE"
12401325 exit ;;
12411326 SX-7:SUPER-UX:*:*)
1242 echo sx7-nec-superux${UNAME_RELEASE}
1327 echo sx7-nec-superux"$UNAME_RELEASE"
12431328 exit ;;
12441329 SX-8:SUPER-UX:*:*)
1245 echo sx8-nec-superux${UNAME_RELEASE}
1330 echo sx8-nec-superux"$UNAME_RELEASE"
12461331 exit ;;
12471332 SX-8R:SUPER-UX:*:*)
1248 echo sx8r-nec-superux${UNAME_RELEASE}
1333 echo sx8r-nec-superux"$UNAME_RELEASE"
1334 exit ;;
1335 SX-ACE:SUPER-UX:*:*)
1336 echo sxace-nec-superux"$UNAME_RELEASE"
12491337 exit ;;
12501338 Power*:Rhapsody:*:*)
1251 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1339 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
12521340 exit ;;
12531341 *:Rhapsody:*:*)
1254 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1342 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
12551343 exit ;;
12561344 *:Darwin:*:*)
1257 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1258 eval $set_cc_for_build
1259 if test "$UNAME_PROCESSOR" = unknown ; then
1260 UNAME_PROCESSOR=powerpc
1261 fi
1262 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1345 UNAME_PROCESSOR=`uname -p`
1346 case $UNAME_PROCESSOR in
1347 unknown) UNAME_PROCESSOR=powerpc ;;
1348 esac
1349 if command -v xcode-select > /dev/null 2> /dev/null && \
1350 ! xcode-select --print-path > /dev/null 2> /dev/null ; then
1351 # Avoid executing cc if there is no toolchain installed as
1352 # cc will be a stub that puts up a graphical alert
1353 # prompting the user to install developer tools.
1354 CC_FOR_BUILD=no_compiler_found
1355 else
1356 set_cc_for_build
1357 fi
1358 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
12631359 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1264 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1265 grep IS_64BIT_ARCH >/dev/null
1360 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1361 grep IS_64BIT_ARCH >/dev/null
12661362 then
12671363 case $UNAME_PROCESSOR in
12681364 i386) UNAME_PROCESSOR=x86_64 ;;
12691365 powerpc) UNAME_PROCESSOR=powerpc64 ;;
12701366 esac
12711367 fi
1272 fi
1273 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1368 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1369 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1370 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1371 grep IS_PPC >/dev/null
1372 then
1373 UNAME_PROCESSOR=powerpc
1374 fi
1375 elif test "$UNAME_PROCESSOR" = i386 ; then
1376 # uname -m returns i386 or x86_64
1377 UNAME_PROCESSOR=$UNAME_MACHINE
1378 fi
1379 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
12741380 exit ;;
12751381 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12761382 UNAME_PROCESSOR=`uname -p`
1277 if test "$UNAME_PROCESSOR" = "x86"; then
1383 if test "$UNAME_PROCESSOR" = x86; then
12781384 UNAME_PROCESSOR=i386
12791385 UNAME_MACHINE=pc
12801386 fi
1281 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1387 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
12821388 exit ;;
12831389 *:QNX:*:4*)
12841390 echo i386-pc-qnx
12851391 exit ;;
1286 NEO-?:NONSTOP_KERNEL:*:*)
1287 echo neo-tandem-nsk${UNAME_RELEASE}
1392 NEO-*:NONSTOP_KERNEL:*:*)
1393 echo neo-tandem-nsk"$UNAME_RELEASE"
12881394 exit ;;
12891395 NSE-*:NONSTOP_KERNEL:*:*)
1290 echo nse-tandem-nsk${UNAME_RELEASE}
1291 exit ;;
1292 NSR-?:NONSTOP_KERNEL:*:*)
1293 echo nsr-tandem-nsk${UNAME_RELEASE}
1396 echo nse-tandem-nsk"$UNAME_RELEASE"
1397 exit ;;
1398 NSR-*:NONSTOP_KERNEL:*:*)
1399 echo nsr-tandem-nsk"$UNAME_RELEASE"
1400 exit ;;
1401 NSV-*:NONSTOP_KERNEL:*:*)
1402 echo nsv-tandem-nsk"$UNAME_RELEASE"
1403 exit ;;
1404 NSX-*:NONSTOP_KERNEL:*:*)
1405 echo nsx-tandem-nsk"$UNAME_RELEASE"
12941406 exit ;;
12951407 *:NonStop-UX:*:*)
12961408 echo mips-compaq-nonstopux
12991411 echo bs2000-siemens-sysv
13001412 exit ;;
13011413 DS/*:UNIX_System_V:*:*)
1302 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1414 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
13031415 exit ;;
13041416 *:Plan9:*:*)
13051417 # "uname -m" is not consistent, so use $cputype instead. 386
13061418 # is converted to i386 for consistency with other x86
13071419 # operating systems.
1308 if test "$cputype" = "386"; then
1420 # shellcheck disable=SC2154
1421 if test "$cputype" = 386; then
13091422 UNAME_MACHINE=i386
13101423 else
13111424 UNAME_MACHINE="$cputype"
13121425 fi
1313 echo ${UNAME_MACHINE}-unknown-plan9
1426 echo "$UNAME_MACHINE"-unknown-plan9
13141427 exit ;;
13151428 *:TOPS-10:*:*)
13161429 echo pdp10-unknown-tops10
13311444 echo pdp10-unknown-its
13321445 exit ;;
13331446 SEI:*:*:SEIUX)
1334 echo mips-sei-seiux${UNAME_RELEASE}
1447 echo mips-sei-seiux"$UNAME_RELEASE"
13351448 exit ;;
13361449 *:DragonFly:*:*)
1337 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1450 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
13381451 exit ;;
13391452 *:*VMS:*:*)
13401453 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1341 case "${UNAME_MACHINE}" in
1454 case "$UNAME_MACHINE" in
13421455 A*) echo alpha-dec-vms ; exit ;;
13431456 I*) echo ia64-dec-vms ; exit ;;
13441457 V*) echo vax-dec-vms ; exit ;;
13471460 echo i386-pc-xenix
13481461 exit ;;
13491462 i*86:skyos:*:*)
1350 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1463 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
13511464 exit ;;
13521465 i*86:rdos:*:*)
1353 echo ${UNAME_MACHINE}-pc-rdos
1466 echo "$UNAME_MACHINE"-pc-rdos
13541467 exit ;;
13551468 i*86:AROS:*:*)
1356 echo ${UNAME_MACHINE}-pc-aros
1469 echo "$UNAME_MACHINE"-pc-aros
13571470 exit ;;
13581471 x86_64:VMkernel:*:*)
1359 echo ${UNAME_MACHINE}-unknown-esx
1472 echo "$UNAME_MACHINE"-unknown-esx
1473 exit ;;
1474 amd64:Isilon\ OneFS:*:*)
1475 echo x86_64-unknown-onefs
1476 exit ;;
1477 *:Unleashed:*:*)
1478 echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE"
13601479 exit ;;
13611480 esac
13621481
1363 eval $set_cc_for_build
1364 cat >$dummy.c <<EOF
1482 # No uname command or uname output not recognized.
1483 set_cc_for_build
1484 cat > "$dummy.c" <<EOF
13651485 #ifdef _SEQUENT_
1366 # include <sys/types.h>
1367 # include <sys/utsname.h>
1486 #include <sys/types.h>
1487 #include <sys/utsname.h>
1488 #endif
1489 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1490 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1491 #include <signal.h>
1492 #if defined(_SIZE_T_) || defined(SIGLOST)
1493 #include <sys/utsname.h>
1494 #endif
1495 #endif
13681496 #endif
13691497 main ()
13701498 {
13771505 #include <sys/param.h>
13781506 printf ("m68k-sony-newsos%s\n",
13791507 #ifdef NEWSOS4
1380 "4"
1508 "4"
13811509 #else
1382 ""
1383 #endif
1384 ); exit (0);
1385 #endif
1386 #endif
1387
1388 #if defined (__arm) && defined (__acorn) && defined (__unix)
1389 printf ("arm-acorn-riscix\n"); exit (0);
1390 #endif
1391
1392 #if defined (hp300) && !defined (hpux)
1393 printf ("m68k-hp-bsd\n"); exit (0);
1510 ""
1511 #endif
1512 ); exit (0);
1513 #endif
13941514 #endif
13951515
13961516 #if defined (NeXT)
14321552 #endif
14331553
14341554 #if defined (_SEQUENT_)
1435 struct utsname un;
1436
1437 uname(&un);
1438
1439 if (strncmp(un.version, "V2", 2) == 0) {
1440 printf ("i386-sequent-ptx2\n"); exit (0);
1441 }
1442 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1443 printf ("i386-sequent-ptx1\n"); exit (0);
1444 }
1445 printf ("i386-sequent-ptx\n"); exit (0);
1446
1555 struct utsname un;
1556
1557 uname(&un);
1558 if (strncmp(un.version, "V2", 2) == 0) {
1559 printf ("i386-sequent-ptx2\n"); exit (0);
1560 }
1561 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1562 printf ("i386-sequent-ptx1\n"); exit (0);
1563 }
1564 printf ("i386-sequent-ptx\n"); exit (0);
14471565 #endif
14481566
14491567 #if defined (vax)
1450 # if !defined (ultrix)
1451 # include <sys/param.h>
1452 # if defined (BSD)
1453 # if BSD == 43
1454 printf ("vax-dec-bsd4.3\n"); exit (0);
1455 # else
1456 # if BSD == 199006
1457 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1458 # else
1459 printf ("vax-dec-bsd\n"); exit (0);
1460 # endif
1461 # endif
1462 # else
1463 printf ("vax-dec-bsd\n"); exit (0);
1464 # endif
1465 # else
1466 printf ("vax-dec-ultrix\n"); exit (0);
1467 # endif
1568 #if !defined (ultrix)
1569 #include <sys/param.h>
1570 #if defined (BSD)
1571 #if BSD == 43
1572 printf ("vax-dec-bsd4.3\n"); exit (0);
1573 #else
1574 #if BSD == 199006
1575 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1576 #else
1577 printf ("vax-dec-bsd\n"); exit (0);
1578 #endif
1579 #endif
1580 #else
1581 printf ("vax-dec-bsd\n"); exit (0);
1582 #endif
1583 #else
1584 #if defined(_SIZE_T_) || defined(SIGLOST)
1585 struct utsname un;
1586 uname (&un);
1587 printf ("vax-dec-ultrix%s\n", un.release); exit (0);
1588 #else
1589 printf ("vax-dec-ultrix\n"); exit (0);
1590 #endif
1591 #endif
1592 #endif
1593 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1594 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1595 #if defined(_SIZE_T_) || defined(SIGLOST)
1596 struct utsname *un;
1597 uname (&un);
1598 printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1599 #else
1600 printf ("mips-dec-ultrix\n"); exit (0);
1601 #endif
1602 #endif
14681603 #endif
14691604
14701605 #if defined (alliant) && defined (i860)
14751610 }
14761611 EOF
14771612
1478 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1613 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` &&
14791614 { echo "$SYSTEM_NAME"; exit; }
14801615
14811616 # Apollos put the system type in the environment.
1482
1483 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1484
1485 # Convex versions that predate uname can use getsysinfo(1)
1486
1487 if [ -x /usr/convex/getsysinfo ]
1488 then
1489 case `getsysinfo -f cpu_type` in
1490 c1*)
1491 echo c1-convex-bsd
1492 exit ;;
1493 c2*)
1494 if getsysinfo -f scalar_acc
1495 then echo c32-convex-bsd
1496 else echo c2-convex-bsd
1497 fi
1498 exit ;;
1499 c34*)
1500 echo c34-convex-bsd
1501 exit ;;
1502 c38*)
1503 echo c38-convex-bsd
1504 exit ;;
1505 c4*)
1506 echo c4-convex-bsd
1507 exit ;;
1508 esac
1509 fi
1617 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
1618
1619 echo "$0: unable to guess system type" >&2
1620
1621 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1622 mips:Linux | mips64:Linux)
1623 # If we got here on MIPS GNU/Linux, output extra information.
1624 cat >&2 <<EOF
1625
1626 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1627 the system type. Please install a C compiler and try again.
1628 EOF
1629 ;;
1630 esac
15101631
15111632 cat >&2 <<EOF
1512 $0: unable to guess system type
1513
1514 This script, last modified $timestamp, has failed to recognize
1515 the operating system you are using. It is advised that you
1516 download the most up to date version of the config scripts from
1517
1518 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1633
1634 This script (version $timestamp), has failed to recognize the
1635 operating system you are using. If your script is old, overwrite *all*
1636 copies of config.guess and config.sub with the latest versions from:
1637
1638 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
15191639 and
1520 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1521
1522 If the version you run ($0) is already up to date, please
1523 send the following data and any information you think might be
1524 pertinent to <config-patches@gnu.org> in order to provide the needed
1525 information to handle your system.
1640 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1641 EOF
1642
1643 year=`echo $timestamp | sed 's,-.*,,'`
1644 # shellcheck disable=SC2003
1645 if test "`expr "\`date +%Y\`" - "$year"`" -lt 3 ; then
1646 cat >&2 <<EOF
1647
1648 If $0 has already been updated, send the following data and any
1649 information you think might be pertinent to config-patches@gnu.org to
1650 provide the necessary information to handle your system.
15261651
15271652 config.guess timestamp = $timestamp
15281653
15411666 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
15421667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
15431668
1544 UNAME_MACHINE = ${UNAME_MACHINE}
1545 UNAME_RELEASE = ${UNAME_RELEASE}
1546 UNAME_SYSTEM = ${UNAME_SYSTEM}
1547 UNAME_VERSION = ${UNAME_VERSION}
1669 UNAME_MACHINE = "$UNAME_MACHINE"
1670 UNAME_RELEASE = "$UNAME_RELEASE"
1671 UNAME_SYSTEM = "$UNAME_SYSTEM"
1672 UNAME_VERSION = "$UNAME_VERSION"
15481673 EOF
1674 fi
15491675
15501676 exit 1
15511677
15521678 # Local variables:
1553 # eval: (add-hook 'write-file-hooks 'time-stamp)
1679 # eval: (add-hook 'before-save-hook 'time-stamp)
15541680 # time-stamp-start: "timestamp='"
15551681 # time-stamp-format: "%:y-%02m-%02d"
15561682 # time-stamp-end: "'"
4141 /* Define to 1 if you have the <unistd.h> header file. */
4242 #undef HAVE_UNISTD_H
4343
44 /* Define to the sub-directory in which libtool stores uninstalled libraries.
45 */
44 /* Define to the sub-directory where libtool stores uninstalled libraries. */
4645 #undef LT_OBJDIR
4746
4847 /* Name of package */
+1509
-1480
config.sub less more
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-04-24'
2 # Copyright 1992-2020 Free Software Foundation, Inc.
3
4 timestamp='2020-06-20'
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-2020 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."
8988 - ) # Use stdin as input.
9089 break ;;
9190 -* )
92 echo "$me: invalid option $1$help"
91 echo "$me: invalid option $1$help" >&2
9392 exit 1 ;;
9493
9594 *local*)
9695 # First pass through any local machine types.
97 echo $1
96 echo "$1"
9897 exit ;;
9998
10099 * )
110109 exit 1;;
111110 esac
112111
113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114 # Here we must recognize all the valid KERNEL-OS combinations.
115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116 case $maybe_os in
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
120 kopensolaris*-gnu* | \
121 storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 android-linux)
126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128 ;;
129 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
133 else os=; fi
134 ;;
112 # Split fields of configuration type
113 # shellcheck disable=SC2162
114 IFS="-" read field1 field2 field3 field4 <<EOF
115 $1
116 EOF
117
118 # Separate into logical components for further validation
119 case $1 in
120 *-*-*-*-*)
121 echo Invalid configuration \`"$1"\': more than four components >&2
122 exit 1
123 ;;
124 *-*-*-*)
125 basic_machine=$field1-$field2
126 os=$field3-$field4
127 ;;
128 *-*-*)
129 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
130 # parts
131 maybe_os=$field2-$field3
132 case $maybe_os in
133 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
134 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
135 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
136 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
137 | storm-chaos* | os2-emx* | rtmk-nova*)
138 basic_machine=$field1
139 os=$maybe_os
140 ;;
141 android-linux)
142 basic_machine=$field1-unknown
143 os=linux-android
144 ;;
145 *)
146 basic_machine=$field1-$field2
147 os=$field3
148 ;;
149 esac
150 ;;
151 *-*)
152 # A lone config we happen to match not fitting any pattern
153 case $field1-$field2 in
154 decstation-3100)
155 basic_machine=mips-dec
156 os=
157 ;;
158 *-*)
159 # Second component is usually, but not always the OS
160 case $field2 in
161 # Prevent following clause from handling this valid os
162 sun*os*)
163 basic_machine=$field1
164 os=$field2
165 ;;
166 # Manufacturers
167 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
168 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
169 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
170 | convergent* | ncr* | news | 32* | 3600* | 3100* \
171 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
172 | ultra | tti* | harris | dolphin | highlevel | gould \
173 | cbm | ns | masscomp | apple | axis | knuth | cray \
174 | microblaze* | sim | cisco \
175 | oki | wec | wrs | winbond)
176 basic_machine=$field1-$field2
177 os=
178 ;;
179 *)
180 basic_machine=$field1
181 os=$field2
182 ;;
183 esac
184 ;;
185 esac
186 ;;
187 *)
188 # Convert single-component short-hands not valid as part of
189 # multi-component configurations.
190 case $field1 in
191 386bsd)
192 basic_machine=i386-pc
193 os=bsd
194 ;;
195 a29khif)
196 basic_machine=a29k-amd
197 os=udi
198 ;;
199 adobe68k)
200 basic_machine=m68010-adobe
201 os=scout
202 ;;
203 alliant)
204 basic_machine=fx80-alliant
205 os=
206 ;;
207 altos | altos3068)
208 basic_machine=m68k-altos
209 os=
210 ;;
211 am29k)
212 basic_machine=a29k-none
213 os=bsd
214 ;;
215 amdahl)
216 basic_machine=580-amdahl
217 os=sysv
218 ;;
219 amiga)
220 basic_machine=m68k-unknown
221 os=
222 ;;
223 amigaos | amigados)
224 basic_machine=m68k-unknown
225 os=amigaos
226 ;;
227 amigaunix | amix)
228 basic_machine=m68k-unknown
229 os=sysv4
230 ;;
231 apollo68)
232 basic_machine=m68k-apollo
233 os=sysv
234 ;;
235 apollo68bsd)
236 basic_machine=m68k-apollo
237 os=bsd
238 ;;
239 aros)
240 basic_machine=i386-pc
241 os=aros
242 ;;
243 aux)
244 basic_machine=m68k-apple
245 os=aux
246 ;;
247 balance)
248 basic_machine=ns32k-sequent
249 os=dynix
250 ;;
251 blackfin)
252 basic_machine=bfin-unknown
253 os=linux
254 ;;
255 cegcc)
256 basic_machine=arm-unknown
257 os=cegcc
258 ;;
259 convex-c1)
260 basic_machine=c1-convex
261 os=bsd
262 ;;
263 convex-c2)
264 basic_machine=c2-convex
265 os=bsd
266 ;;
267 convex-c32)
268 basic_machine=c32-convex
269 os=bsd
270 ;;
271 convex-c34)
272 basic_machine=c34-convex
273 os=bsd
274 ;;
275 convex-c38)
276 basic_machine=c38-convex
277 os=bsd
278 ;;
279 cray)
280 basic_machine=j90-cray
281 os=unicos
282 ;;
283 crds | unos)
284 basic_machine=m68k-crds
285 os=
286 ;;
287 da30)
288 basic_machine=m68k-da30
289 os=
290 ;;
291 decstation | pmax | pmin | dec3100 | decstatn)
292 basic_machine=mips-dec
293 os=
294 ;;
295 delta88)
296 basic_machine=m88k-motorola
297 os=sysv3
298 ;;
299 dicos)
300 basic_machine=i686-pc
301 os=dicos
302 ;;
303 djgpp)
304 basic_machine=i586-pc
305 os=msdosdjgpp
306 ;;
307 ebmon29k)
308 basic_machine=a29k-amd
309 os=ebmon
310 ;;
311 es1800 | OSE68k | ose68k | ose | OSE)
312 basic_machine=m68k-ericsson
313 os=ose
314 ;;
315 gmicro)
316 basic_machine=tron-gmicro
317 os=sysv
318 ;;
319 go32)
320 basic_machine=i386-pc
321 os=go32
322 ;;
323 h8300hms)
324 basic_machine=h8300-hitachi
325 os=hms
326 ;;
327 h8300xray)
328 basic_machine=h8300-hitachi
329 os=xray
330 ;;
331 h8500hms)
332 basic_machine=h8500-hitachi
333 os=hms
334 ;;
335 harris)
336 basic_machine=m88k-harris
337 os=sysv3
338 ;;
339 hp300 | hp300hpux)
340 basic_machine=m68k-hp
341 os=hpux
342 ;;
343 hp300bsd)
344 basic_machine=m68k-hp
345 os=bsd
346 ;;
347 hppaosf)
348 basic_machine=hppa1.1-hp
349 os=osf
350 ;;
351 hppro)
352 basic_machine=hppa1.1-hp
353 os=proelf
354 ;;
355 i386mach)
356 basic_machine=i386-mach
357 os=mach
358 ;;
359 isi68 | isi)
360 basic_machine=m68k-isi
361 os=sysv
362 ;;
363 m68knommu)
364 basic_machine=m68k-unknown
365 os=linux
366 ;;
367 magnum | m3230)
368 basic_machine=mips-mips
369 os=sysv
370 ;;
371 merlin)
372 basic_machine=ns32k-utek
373 os=sysv
374 ;;
375 mingw64)
376 basic_machine=x86_64-pc
377 os=mingw64
378 ;;
379 mingw32)
380 basic_machine=i686-pc
381 os=mingw32
382 ;;
383 mingw32ce)
384 basic_machine=arm-unknown
385 os=mingw32ce
386 ;;
387 monitor)
388 basic_machine=m68k-rom68k
389 os=coff
390 ;;
391 morphos)
392 basic_machine=powerpc-unknown
393 os=morphos
394 ;;
395 moxiebox)
396 basic_machine=moxie-unknown
397 os=moxiebox
398 ;;
399 msdos)
400 basic_machine=i386-pc
401 os=msdos
402 ;;
403 msys)
404 basic_machine=i686-pc
405 os=msys
406 ;;
407 mvs)
408 basic_machine=i370-ibm
409 os=mvs
410 ;;
411 nacl)
412 basic_machine=le32-unknown
413 os=nacl
414 ;;
415 ncr3000)
416 basic_machine=i486-ncr
417 os=sysv4
418 ;;
419 netbsd386)
420 basic_machine=i386-pc
421 os=netbsd
422 ;;
423 netwinder)
424 basic_machine=armv4l-rebel
425 os=linux
426 ;;
427 news | news700 | news800 | news900)
428 basic_machine=m68k-sony
429 os=newsos
430 ;;
431 news1000)
432 basic_machine=m68030-sony
433 os=newsos
434 ;;
435 necv70)
436 basic_machine=v70-nec
437 os=sysv
438 ;;
439 nh3000)
440 basic_machine=m68k-harris
441 os=cxux
442 ;;
443 nh[45]000)
444 basic_machine=m88k-harris
445 os=cxux
446 ;;
447 nindy960)
448 basic_machine=i960-intel
449 os=nindy
450 ;;
451 mon960)
452 basic_machine=i960-intel
453 os=mon960
454 ;;
455 nonstopux)
456 basic_machine=mips-compaq
457 os=nonstopux
458 ;;
459 os400)
460 basic_machine=powerpc-ibm
461 os=os400
462 ;;
463 OSE68000 | ose68000)
464 basic_machine=m68000-ericsson
465 os=ose
466 ;;
467 os68k)
468 basic_machine=m68k-none
469 os=os68k
470 ;;
471 paragon)
472 basic_machine=i860-intel
473 os=osf
474 ;;
475 parisc)
476 basic_machine=hppa-unknown
477 os=linux
478 ;;
479 psp)
480 basic_machine=mipsallegrexel-sony
481 os=psp
482 ;;
483 pw32)
484 basic_machine=i586-unknown
485 os=pw32
486 ;;
487 rdos | rdos64)
488 basic_machine=x86_64-pc
489 os=rdos
490 ;;
491 rdos32)
492 basic_machine=i386-pc
493 os=rdos
494 ;;
495 rom68k)
496 basic_machine=m68k-rom68k
497 os=coff
498 ;;
499 sa29200)
500 basic_machine=a29k-amd
501 os=udi
502 ;;
503 sei)
504 basic_machine=mips-sei
505 os=seiux
506 ;;
507 sequent)
508 basic_machine=i386-sequent
509 os=
510 ;;
511 sps7)
512 basic_machine=m68k-bull
513 os=sysv2
514 ;;
515 st2000)
516 basic_machine=m68k-tandem
517 os=
518 ;;
519 stratus)
520 basic_machine=i860-stratus
521 os=sysv4
522 ;;
523 sun2)
524 basic_machine=m68000-sun
525 os=
526 ;;
527 sun2os3)
528 basic_machine=m68000-sun
529 os=sunos3
530 ;;
531 sun2os4)
532 basic_machine=m68000-sun
533 os=sunos4
534 ;;
535 sun3)
536 basic_machine=m68k-sun
537 os=
538 ;;
539 sun3os3)
540 basic_machine=m68k-sun
541 os=sunos3
542 ;;
543 sun3os4)
544 basic_machine=m68k-sun
545 os=sunos4
546 ;;
547 sun4)
548 basic_machine=sparc-sun
549 os=
550 ;;
551 sun4os3)
552 basic_machine=sparc-sun
553 os=sunos3
554 ;;
555 sun4os4)
556 basic_machine=sparc-sun
557 os=sunos4
558 ;;
559 sun4sol2)
560 basic_machine=sparc-sun
561 os=solaris2
562 ;;
563 sun386 | sun386i | roadrunner)
564 basic_machine=i386-sun
565 os=
566 ;;
567 sv1)
568 basic_machine=sv1-cray
569 os=unicos
570 ;;
571 symmetry)
572 basic_machine=i386-sequent
573 os=dynix
574 ;;
575 t3e)
576 basic_machine=alphaev5-cray
577 os=unicos
578 ;;
579 t90)
580 basic_machine=t90-cray
581 os=unicos
582 ;;
583 toad1)
584 basic_machine=pdp10-xkl
585 os=tops20
586 ;;
587 tpf)
588 basic_machine=s390x-ibm
589 os=tpf
590 ;;
591 udi29k)
592 basic_machine=a29k-amd
593 os=udi
594 ;;
595 ultra3)
596 basic_machine=a29k-nyu
597 os=sym1
598 ;;
599 v810 | necv810)
600 basic_machine=v810-nec
601 os=none
602 ;;
603 vaxv)
604 basic_machine=vax-dec
605 os=sysv
606 ;;
607 vms)
608 basic_machine=vax-dec
609 os=vms
610 ;;
611 vsta)
612 basic_machine=i386-pc
613 os=vsta
614 ;;
615 vxworks960)
616 basic_machine=i960-wrs
617 os=vxworks
618 ;;
619 vxworks68)
620 basic_machine=m68k-wrs
621 os=vxworks
622 ;;
623 vxworks29k)
624 basic_machine=a29k-wrs
625 os=vxworks
626 ;;
627 xbox)
628 basic_machine=i686-pc
629 os=mingw32
630 ;;
631 ymp)
632 basic_machine=ymp-cray
633 os=unicos
634 ;;
635 *)
636 basic_machine=$1
637 os=
638 ;;
639 esac
640 ;;
135641 esac
136642
137 ### Let's recognize common machines as not being operating systems so
138 ### that things like config.sub decstation-3100 work. We also
139 ### recognize some manufacturers as not being operating systems, so we
140 ### can provide default operating systems below.
141 case $os in
142 -sun*os*)
143 # Prevent following clause from handling this invalid input.
144 ;;
145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray | -microblaze*)
152 os=
153 basic_machine=$1
154 ;;
155 -bluegene*)
156 os=-cnk
157 ;;
158 -sim | -cisco | -oki | -wec | -winbond)
159 os=
160 basic_machine=$1
161 ;;
162 -scout)
163 ;;
164 -wrs)
165 os=-vxworks
166 basic_machine=$1
167 ;;
168 -chorusos*)
169 os=-chorusos
170 basic_machine=$1
171 ;;
172 -chorusrdb)
173 os=-chorusrdb
174 basic_machine=$1
175 ;;
176 -hiux*)
177 os=-hiuxwe2
178 ;;
179 -sco6)
180 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco5)
184 os=-sco3.2v5
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco4)
188 os=-sco3.2v4
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2.[4-9]*)
192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco3.2v[4-9]*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco5v6*)
200 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -sco*)
204 os=-sco3.2v2
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206 ;;
207 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -isc)
211 os=-isc2.2
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
213 ;;
214 -clix*)
215 basic_machine=clipper-intergraph
216 ;;
217 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -lynx*178)
221 os=-lynxos178
222 ;;
223 -lynx*5)
224 os=-lynxos5
225 ;;
226 -lynx*)
227 os=-lynxos
228 ;;
229 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`
234 ;;
235 -psos*)
236 os=-psos
237 ;;
238 -mint | -mint[0-9]*)
239 basic_machine=m68k-atari
240 os=-mint
241 ;;
242 esac
243
244 # Decode aliases for certain CPU-COMPANY combinations.
643 # Decode 1-component or ad-hoc basic machines
245644 case $basic_machine in
246 # Recognize the basic CPU types without company name.
247 # Some are omitted here because they have special meanings below.
248 1750a | 580 \
249 | a29k \
250 | aarch64 | aarch64_be \
251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
253 | am33_2.0 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | be32 | be64 \
258 | bfin \
259 | c4x | clipper \
260 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
262 | fido | fr30 | frv \
263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264 | hexagon \
265 | i370 | i860 | i960 | ia64 \
266 | ip2k | iq2000 \
267 | le32 | le64 \
268 | lm32 \
269 | m32c | m32r | m32rle | m68000 | m68k | m88k \
270 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
271 | mips | mipsbe | mipseb | mipsel | mipsle \
272 | mips16 \
273 | mips64 | mips64el \
274 | mips64octeon | mips64octeonel \
275 | mips64orion | mips64orionel \
276 | mips64r5900 | mips64r5900el \
277 | mips64vr | mips64vrel \
278 | mips64vr4100 | mips64vr4100el \
279 | mips64vr4300 | mips64vr4300el \
280 | mips64vr5000 | mips64vr5000el \
281 | mips64vr5900 | mips64vr5900el \
282 | mipsisa32 | mipsisa32el \
283 | mipsisa32r2 | mipsisa32r2el \
284 | mipsisa64 | mipsisa64el \
285 | mipsisa64r2 | mipsisa64r2el \
286 | mipsisa64sb1 | mipsisa64sb1el \
287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
289 | mipstx39 | mipstx39el \
290 | mn10200 | mn10300 \
291 | moxie \
292 | mt \
293 | msp430 \
294 | nds32 | nds32le | nds32be \
295 | nios | nios2 | nios2eb | nios2el \
296 | ns16k | ns32k \
297 | open8 \
298 | or1k | or32 \
299 | pdp10 | pdp11 | pj | pjl \
300 | powerpc | powerpc64 | powerpc64le | powerpcle \
301 | pyramid \
302 | rl78 | rx \
303 | score \
304 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
305 | sh64 | sh64le \
306 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
307 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
308 | spu \
309 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
310 | ubicom32 \
311 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
312 | we32k \
313 | x86 | xc16x | xstormy16 | xtensa \
314 | z8k | z80)
315 basic_machine=$basic_machine-unknown
316 ;;
317 c54x)
318 basic_machine=tic54x-unknown
319 ;;
320 c55x)
321 basic_machine=tic55x-unknown
322 ;;
323 c6x)
324 basic_machine=tic6x-unknown
325 ;;
326 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
327 basic_machine=$basic_machine-unknown
328 os=-none
329 ;;
330 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
331 ;;
332 ms1)
333 basic_machine=mt-unknown
334 ;;
335
336 strongarm | thumb | xscale)
337 basic_machine=arm-unknown
338 ;;
339 xgate)
340 basic_machine=$basic_machine-unknown
341 os=-none
342 ;;
343 xscaleeb)
344 basic_machine=armeb-unknown
345 ;;
346
347 xscaleel)
348 basic_machine=armel-unknown
349 ;;
350
645 # Here we handle the default manufacturer of certain CPU types. It is in
646 # some cases the only manufacturer, in others, it is the most popular.
647 w89k)
648 cpu=hppa1.1
649 vendor=winbond
650 ;;
651 op50n)
652 cpu=hppa1.1
653 vendor=oki
654 ;;
655 op60c)
656 cpu=hppa1.1
657 vendor=oki
658 ;;
659 ibm*)
660 cpu=i370
661 vendor=ibm
662 ;;
663 orion105)
664 cpu=clipper
665 vendor=highlevel
666 ;;
667 mac | mpw | mac-mpw)
668 cpu=m68k
669 vendor=apple
670 ;;
671 pmac | pmac-mpw)
672 cpu=powerpc
673 vendor=apple
674 ;;
675
676 # Recognize the various machine names and aliases which stand
677 # for a CPU type and a company and sometimes even an OS.
678 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
679 cpu=m68000
680 vendor=att
681 ;;
682 3b*)
683 cpu=we32k
684 vendor=att
685 ;;
686 bluegene*)
687 cpu=powerpc
688 vendor=ibm
689 os=cnk
690 ;;
691 decsystem10* | dec10*)
692 cpu=pdp10
693 vendor=dec
694 os=tops10
695 ;;
696 decsystem20* | dec20*)
697 cpu=pdp10
698 vendor=dec
699 os=tops20
700 ;;
701 delta | 3300 | motorola-3300 | motorola-delta \
702 | 3300-motorola | delta-motorola)
703 cpu=m68k
704 vendor=motorola
705 ;;
706 dpx2*)
707 cpu=m68k
708 vendor=bull
709 os=sysv3
710 ;;
711 encore | umax | mmax)
712 cpu=ns32k
713 vendor=encore
714 ;;
715 elxsi)
716 cpu=elxsi
717 vendor=elxsi
718 os=${os:-bsd}
719 ;;
720 fx2800)
721 cpu=i860
722 vendor=alliant
723 ;;
724 genix)
725 cpu=ns32k
726 vendor=ns
727 ;;
728 h3050r* | hiux*)
729 cpu=hppa1.1
730 vendor=hitachi
731 os=hiuxwe2
732 ;;
733 hp3k9[0-9][0-9] | hp9[0-9][0-9])
734 cpu=hppa1.0
735 vendor=hp
736 ;;
737 hp9k2[0-9][0-9] | hp9k31[0-9])
738 cpu=m68000
739 vendor=hp
740 ;;
741 hp9k3[2-9][0-9])
742 cpu=m68k
743 vendor=hp
744 ;;
745 hp9k6[0-9][0-9] | hp6[0-9][0-9])
746 cpu=hppa1.0
747 vendor=hp
748 ;;
749 hp9k7[0-79][0-9] | hp7[0-79][0-9])
750 cpu=hppa1.1
751 vendor=hp
752 ;;
753 hp9k78[0-9] | hp78[0-9])
754 # FIXME: really hppa2.0-hp
755 cpu=hppa1.1
756 vendor=hp
757 ;;
758 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
759 # FIXME: really hppa2.0-hp
760 cpu=hppa1.1
761 vendor=hp
762 ;;
763 hp9k8[0-9][13679] | hp8[0-9][13679])
764 cpu=hppa1.1
765 vendor=hp
766 ;;
767 hp9k8[0-9][0-9] | hp8[0-9][0-9])
768 cpu=hppa1.0
769 vendor=hp
770 ;;
771 i*86v32)
772 cpu=`echo "$1" | sed -e 's/86.*/86/'`
773 vendor=pc
774 os=sysv32
775 ;;
776 i*86v4*)
777 cpu=`echo "$1" | sed -e 's/86.*/86/'`
778 vendor=pc
779 os=sysv4
780 ;;
781 i*86v)
782 cpu=`echo "$1" | sed -e 's/86.*/86/'`
783 vendor=pc
784 os=sysv
785 ;;
786 i*86sol2)
787 cpu=`echo "$1" | sed -e 's/86.*/86/'`
788 vendor=pc
789 os=solaris2
790 ;;
791 j90 | j90-cray)
792 cpu=j90
793 vendor=cray
794 os=${os:-unicos}
795 ;;
796 iris | iris4d)
797 cpu=mips
798 vendor=sgi
799 case $os in
800 irix*)
801 ;;
802 *)
803 os=irix4
804 ;;
805 esac
806 ;;
807 miniframe)
808 cpu=m68000
809 vendor=convergent
810 ;;
811 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
812 cpu=m68k
813 vendor=atari
814 os=mint
815 ;;
816 mipsEE* | ee)
817 cpu=mips64r5900el
818 vendor=scei
819 case $os in
820 linux*)
821 ;;
822 *)
823 os=elf
824 ;;
825 esac
826 ;;
827 iop)
828 cpu=mipsel
829 vendor=scei
830 os=irx
831 ;;
832 dvp)
833 cpu=dvp
834 vendor=scei
835 os=elf
836 ;;
837 news-3600 | risc-news)
838 cpu=mips
839 vendor=sony
840 os=newsos
841 ;;
842 next | m*-next)
843 cpu=m68k
844 vendor=next
845 case $os in
846 openstep*)
847 ;;
848 nextstep*)
849 ;;
850 ns2*)
851 os=nextstep2
852 ;;
853 *)
854 os=nextstep3
855 ;;
856 esac
857 ;;
858 np1)
859 cpu=np1
860 vendor=gould
861 ;;
862 op50n-* | op60c-*)
863 cpu=hppa1.1
864 vendor=oki
865 os=proelf
866 ;;
867 pa-hitachi)
868 cpu=hppa1.1
869 vendor=hitachi
870 os=hiuxwe2
871 ;;
872 pbd)
873 cpu=sparc
874 vendor=tti
875 ;;
876 pbb)
877 cpu=m68k
878 vendor=tti
879 ;;
880 pc532)
881 cpu=ns32k
882 vendor=pc532
883 ;;
884 pn)
885 cpu=pn
886 vendor=gould
887 ;;
888 power)
889 cpu=power
890 vendor=ibm
891 ;;
892 ps2)
893 cpu=i386
894 vendor=ibm
895 ;;
896 rm[46]00)
897 cpu=mips
898 vendor=siemens
899 ;;
900 rtpc | rtpc-*)
901 cpu=romp
902 vendor=ibm
903 ;;
904 sde)
905 cpu=mipsisa32
906 vendor=sde
907 os=${os:-elf}
908 ;;
909 simso-wrs)
910 cpu=sparclite
911 vendor=wrs
912 os=vxworks
913 ;;
914 tower | tower-32)
915 cpu=m68k
916 vendor=ncr
917 ;;
918 vpp*|vx|vx-*)
919 cpu=f301
920 vendor=fujitsu
921 ;;
922 w65)
923 cpu=w65
924 vendor=wdc
925 ;;
926 w89k-*)
927 cpu=hppa1.1
928 vendor=winbond
929 os=proelf
930 ;;
931 none)
932 cpu=none
933 vendor=none
934 ;;
935 leon|leon[3-9])
936 cpu=sparc
937 vendor=$basic_machine
938 ;;
939 leon-*|leon[3-9]-*)
940 cpu=sparc
941 vendor=`echo "$basic_machine" | sed 's/-.*//'`
942 ;;
943
944 *-*)
945 # shellcheck disable=SC2162
946 IFS="-" read cpu vendor <<EOF
947 $basic_machine
948 EOF
949 ;;
351950 # We use `pc' rather than `unknown'
352951 # because (1) that's what they normally are, and
353952 # (2) the word "unknown" tends to confuse beginning users.
354953 i*86 | x86_64)
355 basic_machine=$basic_machine-pc
356 ;;
357 # Object if more than one company name word.
358 *-*-*)
359 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
360 exit 1
361 ;;
362 # Recognize the basic CPU types with company name.
363 580-* \
364 | a29k-* \
365 | aarch64-* | aarch64_be-* \
366 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
367 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
368 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
369 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
370 | avr-* | avr32-* \
371 | be32-* | be64-* \
372 | bfin-* | bs2000-* \
373 | c[123]* | c30-* | [cjt]90-* | c4x-* \
374 | clipper-* | craynv-* | cydra-* \
375 | d10v-* | d30v-* | dlx-* \
376 | elxsi-* \
377 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
378 | h8300-* | h8500-* \
379 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
380 | hexagon-* \
381 | i*86-* | i860-* | i960-* | ia64-* \
382 | ip2k-* | iq2000-* \
383 | le32-* | le64-* \
384 | lm32-* \
385 | m32c-* | m32r-* | m32rle-* \
386 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
387 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
388 | microblaze-* | microblazeel-* \
389 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
390 | mips16-* \
391 | mips64-* | mips64el-* \
392 | mips64octeon-* | mips64octeonel-* \
393 | mips64orion-* | mips64orionel-* \
394 | mips64r5900-* | mips64r5900el-* \
395 | mips64vr-* | mips64vrel-* \
396 | mips64vr4100-* | mips64vr4100el-* \
397 | mips64vr4300-* | mips64vr4300el-* \
398 | mips64vr5000-* | mips64vr5000el-* \
399 | mips64vr5900-* | mips64vr5900el-* \
400 | mipsisa32-* | mipsisa32el-* \
401 | mipsisa32r2-* | mipsisa32r2el-* \
402 | mipsisa64-* | mipsisa64el-* \
403 | mipsisa64r2-* | mipsisa64r2el-* \
404 | mipsisa64sb1-* | mipsisa64sb1el-* \
405 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
406 | mipsr5900-* | mipsr5900el-* \
407 | mipstx39-* | mipstx39el-* \
408 | mmix-* \
409 | mt-* \
410 | msp430-* \
411 | nds32-* | nds32le-* | nds32be-* \
412 | nios-* | nios2-* | nios2eb-* | nios2el-* \
413 | none-* | np1-* | ns16k-* | ns32k-* \
414 | open8-* \
415 | orion-* \
416 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
417 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
418 | pyramid-* \
419 | rl78-* | romp-* | rs6000-* | rx-* \
420 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
421 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
422 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
423 | sparclite-* \
424 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
425 | tahoe-* \
426 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
427 | tile*-* \
428 | tron-* \
429 | ubicom32-* \
430 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
431 | vax-* \
432 | we32k-* \
433 | x86-* | x86_64-* | xc16x-* | xps100-* \
434 | xstormy16-* | xtensa*-* \
435 | ymp-* \
436 | z8k-* | z80-*)
437 ;;
438 # Recognize the basic CPU types without company name, with glob match.
439 xtensa*)
440 basic_machine=$basic_machine-unknown
441 ;;
442 # Recognize the various machine names and aliases which stand
443 # for a CPU type and a company and sometimes even an OS.
444 386bsd)
445 basic_machine=i386-unknown
446 os=-bsd
447 ;;
448 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
449 basic_machine=m68000-att
450 ;;
451 3b*)
452 basic_machine=we32k-att
453 ;;
454 a29khif)
455 basic_machine=a29k-amd
456 os=-udi
457 ;;
458 abacus)
459 basic_machine=abacus-unknown
460 ;;
461 adobe68k)
462 basic_machine=m68010-adobe
463 os=-scout
464 ;;
465 alliant | fx80)
466 basic_machine=fx80-alliant
467 ;;
468 altos | altos3068)
469 basic_machine=m68k-altos
470 ;;
471 am29k)
472 basic_machine=a29k-none
473 os=-bsd
474 ;;
475 amd64)
476 basic_machine=x86_64-pc
477 ;;
954 cpu=$basic_machine
955 vendor=pc
956 ;;
957 # These rules are duplicated from below for sake of the special case above;
958 # i.e. things that normalized to x86 arches should also default to "pc"
959 pc98)
960 cpu=i386
961 vendor=pc
962 ;;
963 x64 | amd64)
964 cpu=x86_64
965 vendor=pc
966 ;;
967 # Recognize the basic CPU types without company name.
968 *)
969 cpu=$basic_machine
970 vendor=unknown
971 ;;
972 esac
973
974 unset -v basic_machine
975
976 # Decode basic machines in the full and proper CPU-Company form.
977 case $cpu-$vendor in
978 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
979 # some cases the only manufacturer, in others, it is the most popular.
980 craynv-unknown)
981 vendor=cray
982 os=${os:-unicosmp}
983 ;;
984 c90-unknown | c90-cray)
985 vendor=cray
986 os=${os:-unicos}
987 ;;
988 fx80-unknown)
989 vendor=alliant
990 ;;
991 romp-unknown)
992 vendor=ibm
993 ;;
994 mmix-unknown)
995 vendor=knuth
996 ;;
997 microblaze-unknown | microblazeel-unknown)
998 vendor=xilinx
999 ;;
1000 rs6000-unknown)
1001 vendor=ibm
1002 ;;
1003 vax-unknown)
1004 vendor=dec
1005 ;;
1006 pdp11-unknown)
1007 vendor=dec
1008 ;;
1009 we32k-unknown)
1010 vendor=att
1011 ;;
1012 cydra-unknown)
1013 vendor=cydrome
1014 ;;
1015 i370-ibm*)
1016 vendor=ibm
1017 ;;
1018 orion-unknown)
1019 vendor=highlevel
1020 ;;
1021 xps-unknown | xps100-unknown)
1022 cpu=xps100
1023 vendor=honeywell
1024 ;;
1025
1026 # Here we normalize CPU types with a missing or matching vendor
1027 dpx20-unknown | dpx20-bull)
1028 cpu=rs6000
1029 vendor=bull
1030 os=${os:-bosx}
1031 ;;
1032
1033 # Here we normalize CPU types irrespective of the vendor
4781034 amd64-*)
479 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
480 ;;
481 amdahl)
482 basic_machine=580-amdahl
483 os=-sysv
484 ;;
485 amiga | amiga-*)
486 basic_machine=m68k-unknown
487 ;;
488 amigaos | amigados)
489 basic_machine=m68k-unknown
490 os=-amigaos
491 ;;
492 amigaunix | amix)
493 basic_machine=m68k-unknown
494 os=-sysv4
495 ;;
496 apollo68)
497 basic_machine=m68k-apollo
498 os=-sysv
499 ;;
500 apollo68bsd)
501 basic_machine=m68k-apollo
502 os=-bsd
503 ;;
504 aros)
505 basic_machine=i386-pc
506 os=-aros
507 ;;
508 aux)
509 basic_machine=m68k-apple
510 os=-aux
511 ;;
512 balance)
513 basic_machine=ns32k-sequent
514 os=-dynix
515 ;;
516 blackfin)
517 basic_machine=bfin-unknown
518 os=-linux
1035 cpu=x86_64
5191036 ;;
5201037 blackfin-*)
521 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
522 os=-linux
1038 cpu=bfin
1039 os=linux
1040 ;;
1041 c54x-*)
1042 cpu=tic54x
1043 ;;
1044 c55x-*)
1045 cpu=tic55x
1046 ;;
1047 c6x-*)
1048 cpu=tic6x
1049 ;;
1050 e500v[12]-*)
1051 cpu=powerpc
1052 os=$os"spe"
1053 ;;
1054 mips3*-*)
1055 cpu=mips64
1056 ;;
1057 ms1-*)
1058 cpu=mt
1059 ;;
1060 m68knommu-*)
1061 cpu=m68k
1062 os=linux
1063 ;;
1064 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1065 cpu=s12z
1066 ;;
1067 openrisc-*)
1068 cpu=or32
1069 ;;
1070 parisc-*)
1071 cpu=hppa
1072 os=linux
1073 ;;
1074 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1075 cpu=i586
1076 ;;
1077 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1078 cpu=i686
1079 ;;
1080 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1081 cpu=i686
1082 ;;
1083 pentium4-*)
1084 cpu=i786
1085 ;;
1086 pc98-*)
1087 cpu=i386
1088 ;;
1089 ppc-* | ppcbe-*)
1090 cpu=powerpc
1091 ;;
1092 ppcle-* | powerpclittle-*)
1093 cpu=powerpcle
1094 ;;
1095 ppc64-*)
1096 cpu=powerpc64
1097 ;;
1098 ppc64le-* | powerpc64little-*)
1099 cpu=powerpc64le
1100 ;;
1101 sb1-*)
1102 cpu=mipsisa64sb1
1103 ;;
1104 sb1el-*)
1105 cpu=mipsisa64sb1el
1106 ;;
1107 sh5e[lb]-*)
1108 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1109 ;;
1110 spur-*)
1111 cpu=spur
1112 ;;
1113 strongarm-* | thumb-*)
1114 cpu=arm
1115 ;;
1116 tx39-*)
1117 cpu=mipstx39
1118 ;;
1119 tx39el-*)
1120 cpu=mipstx39el
1121 ;;
1122 x64-*)
1123 cpu=x86_64
1124 ;;
1125 xscale-* | xscalee[bl]-*)
1126 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1127 ;;
1128
1129 # Recognize the canonical CPU Types that limit and/or modify the
1130 # company names they are paired with.
1131 cr16-*)
1132 os=${os:-elf}
1133 ;;
1134 crisv32-* | etraxfs*-*)
1135 cpu=crisv32
1136 vendor=axis
1137 ;;
1138 cris-* | etrax*-*)
1139 cpu=cris
1140 vendor=axis
1141 ;;
1142 crx-*)
1143 os=${os:-elf}
1144 ;;
1145 neo-tandem)
1146 cpu=neo
1147 vendor=tandem
1148 ;;
1149 nse-tandem)
1150 cpu=nse
1151 vendor=tandem
1152 ;;
1153 nsr-tandem)
1154 cpu=nsr
1155 vendor=tandem
1156 ;;
1157 nsv-tandem)
1158 cpu=nsv
1159 vendor=tandem
1160 ;;
1161 nsx-tandem)
1162 cpu=nsx
1163 vendor=tandem
1164 ;;
1165 mipsallegrexel-sony)
1166 cpu=mipsallegrexel
1167 vendor=sony
1168 ;;
1169 tile*-*)
1170 os=${os:-linux-gnu}
1171 ;;
1172
1173 *)
1174 # Recognize the canonical CPU types that are allowed with any
1175 # company name.
1176 case $cpu in
1177 1750a | 580 \
1178 | a29k \
1179 | aarch64 | aarch64_be \
1180 | abacus \
1181 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1182 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1183 | alphapca5[67] | alpha64pca5[67] \
1184 | am33_2.0 \
1185 | amdgcn \
1186 | arc | arceb \
1187 | arm | arm[lb]e | arme[lb] | armv* \
1188 | avr | avr32 \
1189 | asmjs \
1190 | ba \
1191 | be32 | be64 \
1192 | bfin | bpf | bs2000 \
1193 | c[123]* | c30 | [cjt]90 | c4x \
1194 | c8051 | clipper | craynv | csky | cydra \
1195 | d10v | d30v | dlx | dsp16xx | dvp \
1196 | e2k | elxsi | epiphany \
1197 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1198 | h8300 | h8500 \
1199 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1200 | hexagon \
1201 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1202 | ip2k | iq2000 \
1203 | k1om \
1204 | le32 | le64 \
1205 | lm32 \
1206 | m32c | m32r | m32rle \
1207 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1208 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1209 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1210 | microblaze | microblazeel \
1211 | mips | mipsbe | mipseb | mipsel | mipsle \
1212 | mips16 \
1213 | mips64 | mips64eb | mips64el \
1214 | mips64octeon | mips64octeonel \
1215 | mips64orion | mips64orionel \
1216 | mips64r5900 | mips64r5900el \
1217 | mips64vr | mips64vrel \
1218 | mips64vr4100 | mips64vr4100el \
1219 | mips64vr4300 | mips64vr4300el \
1220 | mips64vr5000 | mips64vr5000el \
1221 | mips64vr5900 | mips64vr5900el \
1222 | mipsisa32 | mipsisa32el \
1223 | mipsisa32r2 | mipsisa32r2el \
1224 | mipsisa32r6 | mipsisa32r6el \
1225 | mipsisa64 | mipsisa64el \
1226 | mipsisa64r2 | mipsisa64r2el \
1227 | mipsisa64r6 | mipsisa64r6el \
1228 | mipsisa64sb1 | mipsisa64sb1el \
1229 | mipsisa64sr71k | mipsisa64sr71kel \
1230 | mipsr5900 | mipsr5900el \
1231 | mipstx39 | mipstx39el \
1232 | mmix \
1233 | mn10200 | mn10300 \
1234 | moxie \
1235 | mt \
1236 | msp430 \
1237 | nds32 | nds32le | nds32be \
1238 | nfp \
1239 | nios | nios2 | nios2eb | nios2el \
1240 | none | np1 | ns16k | ns32k | nvptx \
1241 | open8 \
1242 | or1k* \
1243 | or32 \
1244 | orion \
1245 | picochip \
1246 | pdp10 | pdp11 | pj | pjl | pn | power \
1247 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1248 | pru \
1249 | pyramid \
1250 | riscv | riscv32 | riscv64 \
1251 | rl78 | romp | rs6000 | rx \
1252 | s390 | s390x \
1253 | score \
1254 | sh | shl \
1255 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1256 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1257 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1258 | sparclite \
1259 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1260 | spu \
1261 | tahoe \
1262 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1263 | tron \
1264 | ubicom32 \
1265 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1266 | vax \
1267 | visium \
1268 | w65 \
1269 | wasm32 | wasm64 \
1270 | we32k \
1271 | x86 | x86_64 | xc16x | xgate | xps100 \
1272 | xstormy16 | xtensa* \
1273 | ymp \
1274 | z8k | z80)
1275 ;;
1276
1277 *)
1278 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1279 exit 1
1280 ;;
1281 esac
1282 ;;
1283 esac
1284
1285 # Here we canonicalize certain aliases for manufacturers.
1286 case $vendor in
1287 digital*)
1288 vendor=dec
1289 ;;
1290 commodore*)
1291 vendor=cbm
1292 ;;
1293 *)
1294 ;;
1295 esac
1296
1297 # Decode manufacturer-specific aliases for certain operating systems.
1298
1299 if [ x$os != x ]
1300 then
1301 case $os in
1302 # First match some system type aliases that might get confused
1303 # with valid system types.
1304 # solaris* is a basic system type, with this one exception.
1305 auroraux)
1306 os=auroraux
5231307 ;;
5241308 bluegene*)
525 basic_machine=powerpc-ibm
526 os=-cnk
527 ;;
528 c54x-*)
529 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
530 ;;
531 c55x-*)
532 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
533 ;;
534 c6x-*)
535 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
536 ;;
537 c90)
538 basic_machine=c90-cray
539 os=-unicos
540 ;;
541 cegcc)
542 basic_machine=arm-unknown
543 os=-cegcc
544 ;;
545 convex-c1)
546 basic_machine=c1-convex
547 os=-bsd
548 ;;
549 convex-c2)
550 basic_machine=c2-convex
551 os=-bsd
552 ;;
553 convex-c32)
554 basic_machine=c32-convex
555 os=-bsd
556 ;;
557 convex-c34)
558 basic_machine=c34-convex
559 os=-bsd
560 ;;
561 convex-c38)
562 basic_machine=c38-convex
563 os=-bsd
564 ;;
565 cray | j90)
566 basic_machine=j90-cray
567 os=-unicos
568 ;;
569 craynv)
570 basic_machine=craynv-cray
571 os=-unicosmp
572 ;;
573 cr16 | cr16-*)
574 basic_machine=cr16-unknown
575 os=-elf
576 ;;
577 crds | unos)
578 basic_machine=m68k-crds
579 ;;
580 crisv32 | crisv32-* | etraxfs*)
581 basic_machine=crisv32-axis
582 ;;
583 cris | cris-* | etrax*)
584 basic_machine=cris-axis
585 ;;
586 crx)
587 basic_machine=crx-unknown
588 os=-elf
589 ;;
590 da30 | da30-*)
591 basic_machine=m68k-da30
592 ;;
593 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
594 basic_machine=mips-dec
595 ;;
596 decsystem10* | dec10*)
597 basic_machine=pdp10-dec
598 os=-tops10
599 ;;
600 decsystem20* | dec20*)
601 basic_machine=pdp10-dec
602 os=-tops20
603 ;;
604 delta | 3300 | motorola-3300 | motorola-delta \
605 | 3300-motorola | delta-motorola)
606 basic_machine=m68k-motorola
607 ;;
608 delta88)
609 basic_machine=m88k-motorola
610 os=-sysv3
611 ;;
612 dicos)
613 basic_machine=i686-pc
614 os=-dicos
615 ;;
616 djgpp)
617 basic_machine=i586-pc
618 os=-msdosdjgpp
619 ;;
620 dpx20 | dpx20-*)
621 basic_machine=rs6000-bull
622 os=-bosx
623 ;;
624 dpx2* | dpx2*-bull)
625 basic_machine=m68k-bull
626 os=-sysv3
627 ;;
628 ebmon29k)
629 basic_machine=a29k-amd
630 os=-ebmon
631 ;;
632 elxsi)
633 basic_machine=elxsi-elxsi
634 os=-bsd
635 ;;
636 encore | umax | mmax)
637 basic_machine=ns32k-encore
638 ;;
639 es1800 | OSE68k | ose68k | ose | OSE)
640 basic_machine=m68k-ericsson
641 os=-ose
642 ;;
643 fx2800)
644 basic_machine=i860-alliant
645 ;;
646 genix)
647 basic_machine=ns32k-ns
648 ;;
649 gmicro)
650 basic_machine=tron-gmicro
651 os=-sysv
652 ;;
653 go32)
654 basic_machine=i386-pc
655 os=-go32
656 ;;
657 h3050r* | hiux*)
658 basic_machine=hppa1.1-hitachi
659 os=-hiuxwe2
660 ;;
661 h8300hms)
662 basic_machine=h8300-hitachi
663 os=-hms
664 ;;
665 h8300xray)
666 basic_machine=h8300-hitachi
667 os=-xray
668 ;;
669 h8500hms)
670 basic_machine=h8500-hitachi
671 os=-hms
672 ;;
673 harris)
674 basic_machine=m88k-harris
675 os=-sysv3
676 ;;
677 hp300-*)
678 basic_machine=m68k-hp
679 ;;
680 hp300bsd)
681 basic_machine=m68k-hp
682 os=-bsd
683 ;;
684 hp300hpux)
685 basic_machine=m68k-hp
686 os=-hpux
687 ;;
688 hp3k9[0-9][0-9] | hp9[0-9][0-9])
689 basic_machine=hppa1.0-hp
690 ;;
691 hp9k2[0-9][0-9] | hp9k31[0-9])
692 basic_machine=m68000-hp
693 ;;
694 hp9k3[2-9][0-9])
695 basic_machine=m68k-hp
696 ;;
697 hp9k6[0-9][0-9] | hp6[0-9][0-9])
698 basic_machine=hppa1.0-hp
699 ;;
700 hp9k7[0-79][0-9] | hp7[0-79][0-9])
701 basic_machine=hppa1.1-hp
702 ;;
703 hp9k78[0-9] | hp78[0-9])
704 # FIXME: really hppa2.0-hp
705 basic_machine=hppa1.1-hp
706 ;;
707 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
708 # FIXME: really hppa2.0-hp
709 basic_machine=hppa1.1-hp
710 ;;
711 hp9k8[0-9][13679] | hp8[0-9][13679])
712 basic_machine=hppa1.1-hp
713 ;;
714 hp9k8[0-9][0-9] | hp8[0-9][0-9])
715 basic_machine=hppa1.0-hp
716 ;;
717 hppa-next)
718 os=-nextstep3
719 ;;
720 hppaosf)
721 basic_machine=hppa1.1-hp
722 os=-osf
723 ;;
724 hppro)
725 basic_machine=hppa1.1-hp
726 os=-proelf
727 ;;
728 i370-ibm* | ibm*)
729 basic_machine=i370-ibm
730 ;;
731 i*86v32)
732 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
733 os=-sysv32
734 ;;
735 i*86v4*)
736 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
737 os=-sysv4
738 ;;
739 i*86v)
740 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
741 os=-sysv
742 ;;
743 i*86sol2)
744 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
745 os=-solaris2
746 ;;
747 i386mach)
748 basic_machine=i386-mach
749 os=-mach
750 ;;
751 i386-vsta | vsta)
752 basic_machine=i386-unknown
753 os=-vsta
754 ;;
755 iris | iris4d)
756 basic_machine=mips-sgi
757 case $os in
758 -irix*)
1309 os=cnk
1310 ;;
1311 solaris1 | solaris1.*)
1312 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1313 ;;
1314 solaris)
1315 os=solaris2
1316 ;;
1317 unixware*)
1318 os=sysv4.2uw
1319 ;;
1320 gnu/linux*)
1321 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1322 ;;
1323 # es1800 is here to avoid being matched by es* (a different OS)
1324 es1800*)
1325 os=ose
1326 ;;
1327 # Some version numbers need modification
1328 chorusos*)
1329 os=chorusos
1330 ;;
1331 isc)
1332 os=isc2.2
1333 ;;
1334 sco6)
1335 os=sco5v6
1336 ;;
1337 sco5)
1338 os=sco3.2v5
1339 ;;
1340 sco4)
1341 os=sco3.2v4
1342 ;;
1343 sco3.2.[4-9]*)
1344 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1345 ;;
1346 sco3.2v[4-9]* | sco5v6*)
1347 # Don't forget version if it is 3.2v4 or newer.
1348 ;;
1349 scout)
1350 # Don't match below
1351 ;;
1352 sco*)
1353 os=sco3.2v2
1354 ;;
1355 psos*)
1356 os=psos
1357 ;;
1358 # Now accept the basic system types.
1359 # The portable systems comes first.
1360 # Each alternative MUST end in a * to match a version number.
1361 # sysv* is not here because it comes later, after sysvr4.
1362 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1363 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
1364 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1365 | sym* | kopensolaris* | plan9* \
1366 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1367 | aos* | aros* | cloudabi* | sortix* | twizzler* \
1368 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1369 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1370 | knetbsd* | mirbsd* | netbsd* \
1371 | bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \
1372 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
1373 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1374 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1375 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
1376 | chorusrdb* | cegcc* | glidix* \
1377 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1378 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
1379 | linux-newlib* | linux-musl* | linux-uclibc* \
1380 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1381 | interix* | uwin* | mks* | rhapsody* | darwin* \
1382 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1383 | storm-chaos* | tops10* | tenex* | tops20* | its* | irx* \
1384 | os2* | vos* | palmos* | uclinux* | nucleus* \
1385 | morphos* | superux* | rtmk* | windiss* \
1386 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1387 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1388 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1389 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1390 | nsk* | powerunix* | genode*)
1391 # Remember, each alternative MUST END IN *, to match a version number.
1392 ;;
1393 qnx*)
1394 case $cpu in
1395 x86 | i*86)
7591396 ;;
7601397 *)
761 os=-irix4
1398 os=nto-$os
7621399 ;;
7631400 esac
7641401 ;;
765 isi68 | isi)
766 basic_machine=m68k-isi
767 os=-sysv
768 ;;
769 m68knommu)
770 basic_machine=m68k-unknown
771 os=-linux
772 ;;
773 m68knommu-*)
774 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
775 os=-linux
776 ;;
777 m88k-omron*)
778 basic_machine=m88k-omron
779 ;;
780 magnum | m3230)
781 basic_machine=mips-mips
782 os=-sysv
783 ;;
784 merlin)
785 basic_machine=ns32k-utek
786 os=-sysv
787 ;;
788 microblaze*)
789 basic_machine=microblaze-xilinx
790 ;;
791 mingw64)
792 basic_machine=x86_64-pc
793 os=-mingw64
794 ;;
795 mingw32)
796 basic_machine=i386-pc
797 os=-mingw32
798 ;;
799 mingw32ce)
800 basic_machine=arm-unknown
801 os=-mingw32ce
802 ;;
803 miniframe)
804 basic_machine=m68000-convergent
805 ;;
806 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
807 basic_machine=m68k-atari
808 os=-mint
809 ;;
810 mips3*-*)
811 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
812 ;;
813 mips3*)
814 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
815 ;;
816 monitor)
817 basic_machine=m68k-rom68k
818 os=-coff
819 ;;
820 morphos)
821 basic_machine=powerpc-unknown
822 os=-morphos
823 ;;
824 msdos)
825 basic_machine=i386-pc
826 os=-msdos
827 ;;
828 ms1-*)
829 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
830 ;;
831 msys)
832 basic_machine=i386-pc
833 os=-msys
834 ;;
835 mvs)
836 basic_machine=i370-ibm
837 os=-mvs
838 ;;
839 nacl)
840 basic_machine=le32-unknown
841 os=-nacl
842 ;;
843 ncr3000)
844 basic_machine=i486-ncr
845 os=-sysv4
846 ;;
847 netbsd386)
848 basic_machine=i386-unknown
849 os=-netbsd
850 ;;
851 netwinder)
852 basic_machine=armv4l-rebel
853 os=-linux
854 ;;
855 news | news700 | news800 | news900)
856 basic_machine=m68k-sony
857 os=-newsos
858 ;;
859 news1000)
860 basic_machine=m68030-sony
861 os=-newsos
862 ;;
863 news-3600 | risc-news)
864 basic_machine=mips-sony
865 os=-newsos
866 ;;
867 necv70)
868 basic_machine=v70-nec
869 os=-sysv
870 ;;
871 next | m*-next )
872 basic_machine=m68k-next
873 case $os in
874 -nextstep* )
875 ;;
876 -ns2*)
877 os=-nextstep2
1402 hiux*)
1403 os=hiuxwe2
1404 ;;
1405 nto-qnx*)
1406 ;;
1407 nto*)
1408 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1409 ;;
1410 sim | xray | os68k* | v88r* \
1411 | windows* | osx | abug | netware* | os9* \
1412 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
1413 ;;
1414 linux-dietlibc)
1415 os=linux-dietlibc
1416 ;;
1417 linux*)
1418 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1419 ;;
1420 lynx*178)
1421 os=lynxos178
1422 ;;
1423 lynx*5)
1424 os=lynxos5
1425 ;;
1426 lynx*)
1427 os=lynxos
1428 ;;
1429 mac*)
1430 os=`echo "$os" | sed -e 's|mac|macos|'`
1431 ;;
1432 opened*)
1433 os=openedition
1434 ;;
1435 os400*)
1436 os=os400
1437 ;;
1438 sunos5*)
1439 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1440 ;;
1441 sunos6*)
1442 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1443 ;;
1444 wince*)
1445 os=wince
1446 ;;
1447 utek*)
1448 os=bsd
1449 ;;
1450 dynix*)
1451 os=bsd
1452 ;;
1453 acis*)
1454 os=aos
1455 ;;
1456 atheos*)
1457 os=atheos
1458 ;;
1459 syllable*)
1460 os=syllable
1461 ;;
1462 386bsd)
1463 os=bsd
1464 ;;
1465 ctix* | uts*)
1466 os=sysv
1467 ;;
1468 nova*)
1469 os=rtmk-nova
1470 ;;
1471 ns2)
1472 os=nextstep2
1473 ;;
1474 # Preserve the version number of sinix5.
1475 sinix5.*)
1476 os=`echo $os | sed -e 's|sinix|sysv|'`
1477 ;;
1478 sinix*)
1479 os=sysv4
1480 ;;
1481 tpf*)
1482 os=tpf
1483 ;;
1484 triton*)
1485 os=sysv3
1486 ;;
1487 oss*)
1488 os=sysv3
1489 ;;
1490 svr4*)
1491 os=sysv4
1492 ;;
1493 svr3)
1494 os=sysv3
1495 ;;
1496 sysvr4)
1497 os=sysv4
1498 ;;
1499 # This must come after sysvr4.
1500 sysv*)
1501 ;;
1502 ose*)
1503 os=ose
1504 ;;
1505 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1506 os=mint
1507 ;;
1508 zvmoe)
1509 os=zvmoe
1510 ;;
1511 dicos*)
1512 os=dicos
1513 ;;
1514 pikeos*)
1515 # Until real need of OS specific support for
1516 # particular features comes up, bare metal
1517 # configurations are quite functional.
1518 case $cpu in
1519 arm*)
1520 os=eabi
8781521 ;;
8791522 *)
880 os=-nextstep3
1523 os=elf
8811524 ;;
8821525 esac
8831526 ;;
884 nh3000)
885 basic_machine=m68k-harris
886 os=-cxux
887 ;;
888 nh[45]000)
889 basic_machine=m88k-harris
890 os=-cxux
891 ;;
892 nindy960)
893 basic_machine=i960-intel
894 os=-nindy
895 ;;
896 mon960)
897 basic_machine=i960-intel
898 os=-mon960
899 ;;
900 nonstopux)
901 basic_machine=mips-compaq
902 os=-nonstopux
903 ;;
904 np1)
905 basic_machine=np1-gould
906 ;;
907 neo-tandem)
908 basic_machine=neo-tandem
909 ;;
910 nse-tandem)
911 basic_machine=nse-tandem
912 ;;
913 nsr-tandem)
914 basic_machine=nsr-tandem
915 ;;
916 op50n-* | op60c-*)
917 basic_machine=hppa1.1-oki
918 os=-proelf
919 ;;
920 openrisc | openrisc-*)
921 basic_machine=or32-unknown
922 ;;
923 os400)
924 basic_machine=powerpc-ibm
925 os=-os400
926 ;;
927 OSE68000 | ose68000)
928 basic_machine=m68000-ericsson
929 os=-ose
930 ;;
931 os68k)
932 basic_machine=m68k-none
933 os=-os68k
934 ;;
935 pa-hitachi)
936 basic_machine=hppa1.1-hitachi
937 os=-hiuxwe2
938 ;;
939 paragon)
940 basic_machine=i860-intel
941 os=-osf
942 ;;
943 parisc)
944 basic_machine=hppa-unknown
945 os=-linux
946 ;;
947 parisc-*)
948 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
949 os=-linux
950 ;;
951 pbd)
952 basic_machine=sparc-tti
953 ;;
954 pbb)
955 basic_machine=m68k-tti
956 ;;
957 pc532 | pc532-*)
958 basic_machine=ns32k-pc532
959 ;;
960 pc98)
961 basic_machine=i386-pc
962 ;;
963 pc98-*)
964 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
965 ;;
966 pentium | p5 | k5 | k6 | nexgen | viac3)
967 basic_machine=i586-pc
968 ;;
969 pentiumpro | p6 | 6x86 | athlon | athlon_*)
970 basic_machine=i686-pc
971 ;;
972 pentiumii | pentium2 | pentiumiii | pentium3)
973 basic_machine=i686-pc
974 ;;
975 pentium4)
976 basic_machine=i786-pc
977 ;;
978 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
979 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
980 ;;
981 pentiumpro-* | p6-* | 6x86-* | athlon-*)
982 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
983 ;;
984 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
985 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
986 ;;
987 pentium4-*)
988 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
989 ;;
990 pn)
991 basic_machine=pn-gould
992 ;;
993 power) basic_machine=power-ibm
994 ;;
995 ppc | ppcbe) basic_machine=powerpc-unknown
996 ;;
997 ppc-* | ppcbe-*)
998 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
999 ;;
1000 ppcle | powerpclittle | ppc-le | powerpc-little)
1001 basic_machine=powerpcle-unknown
1002 ;;
1003 ppcle-* | powerpclittle-*)
1004 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1005 ;;
1006 ppc64) basic_machine=powerpc64-unknown
1007 ;;
1008 ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1009 ;;
1010 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1011 basic_machine=powerpc64le-unknown
1012 ;;
1013 ppc64le-* | powerpc64little-*)
1014 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1015 ;;
1016 ps2)
1017 basic_machine=i386-ibm
1018 ;;
1019 pw32)
1020 basic_machine=i586-unknown
1021 os=-pw32
1022 ;;
1023 rdos | rdos64)
1024 basic_machine=x86_64-pc
1025 os=-rdos
1026 ;;
1027 rdos32)
1028 basic_machine=i386-pc
1029 os=-rdos
1030 ;;
1031 rom68k)
1032 basic_machine=m68k-rom68k
1033 os=-coff
1034 ;;
1035 rm[46]00)
1036 basic_machine=mips-siemens
1037 ;;
1038 rtpc | rtpc-*)
1039 basic_machine=romp-ibm
1040 ;;
1041 s390 | s390-*)
1042 basic_machine=s390-ibm
1043 ;;
1044 s390x | s390x-*)
1045 basic_machine=s390x-ibm
1046 ;;
1047 sa29200)
1048 basic_machine=a29k-amd
1049 os=-udi
1050 ;;
1051 sb1)
1052 basic_machine=mipsisa64sb1-unknown
1053 ;;
1054 sb1el)
1055 basic_machine=mipsisa64sb1el-unknown
1056 ;;
1057 sde)
1058 basic_machine=mipsisa32-sde
1059 os=-elf
1060 ;;
1061 sei)
1062 basic_machine=mips-sei
1063 os=-seiux
1064 ;;
1065 sequent)
1066 basic_machine=i386-sequent
1067 ;;
1068 sh)
1069 basic_machine=sh-hitachi
1070 os=-hms
1071 ;;
1072 sh5el)
1073 basic_machine=sh5le-unknown
1074 ;;
1075 sh64)
1076 basic_machine=sh64-unknown
1077 ;;
1078 sparclite-wrs | simso-wrs)
1079 basic_machine=sparclite-wrs
1080 os=-vxworks
1081 ;;
1082 sps7)
1083 basic_machine=m68k-bull
1084 os=-sysv2
1085 ;;
1086 spur)
1087 basic_machine=spur-unknown
1088 ;;
1089 st2000)
1090 basic_machine=m68k-tandem
1091 ;;
1092 stratus)
1093 basic_machine=i860-stratus
1094 os=-sysv4
1095 ;;
1096 strongarm-* | thumb-*)
1097 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1098 ;;
1099 sun2)
1100 basic_machine=m68000-sun
1101 ;;
1102 sun2os3)
1103 basic_machine=m68000-sun
1104 os=-sunos3
1105 ;;
1106 sun2os4)
1107 basic_machine=m68000-sun
1108 os=-sunos4
1109 ;;
1110 sun3os3)
1111 basic_machine=m68k-sun
1112 os=-sunos3
1113 ;;
1114 sun3os4)
1115 basic_machine=m68k-sun
1116 os=-sunos4
1117 ;;
1118 sun4os3)
1119 basic_machine=sparc-sun
1120 os=-sunos3
1121 ;;
1122 sun4os4)
1123 basic_machine=sparc-sun
1124 os=-sunos4
1125 ;;
1126 sun4sol2)
1127 basic_machine=sparc-sun
1128 os=-solaris2
1129 ;;
1130 sun3 | sun3-*)
1131 basic_machine=m68k-sun
1132 ;;
1133 sun4)
1134 basic_machine=sparc-sun
1135 ;;
1136 sun386 | sun386i | roadrunner)
1137 basic_machine=i386-sun
1138 ;;
1139 sv1)
1140 basic_machine=sv1-cray
1141 os=-unicos
1142 ;;
1143 symmetry)
1144 basic_machine=i386-sequent
1145 os=-dynix
1146 ;;
1147 t3e)
1148 basic_machine=alphaev5-cray
1149 os=-unicos
1150 ;;
1151 t90)
1152 basic_machine=t90-cray
1153 os=-unicos
1154 ;;
1155 tile*)
1156 basic_machine=$basic_machine-unknown
1157 os=-linux-gnu
1158 ;;
1159 tx39)
1160 basic_machine=mipstx39-unknown
1161 ;;
1162 tx39el)
1163 basic_machine=mipstx39el-unknown
1164 ;;
1165 toad1)
1166 basic_machine=pdp10-xkl
1167 os=-tops20
1168 ;;
1169 tower | tower-32)
1170 basic_machine=m68k-ncr
1171 ;;
1172 tpf)
1173 basic_machine=s390x-ibm
1174 os=-tpf
1175 ;;
1176 udi29k)
1177 basic_machine=a29k-amd
1178 os=-udi
1179 ;;
1180 ultra3)
1181 basic_machine=a29k-nyu
1182 os=-sym1
1183 ;;
1184 v810 | necv810)
1185 basic_machine=v810-nec
1186 os=-none
1187 ;;
1188 vaxv)
1189 basic_machine=vax-dec
1190 os=-sysv
1191 ;;
1192 vms)
1193 basic_machine=vax-dec
1194 os=-vms
1195 ;;
1196 vpp*|vx|vx-*)
1197 basic_machine=f301-fujitsu
1198 ;;
1199 vxworks960)
1200 basic_machine=i960-wrs
1201 os=-vxworks
1202 ;;
1203 vxworks68)
1204 basic_machine=m68k-wrs
1205 os=-vxworks
1206 ;;
1207 vxworks29k)
1208 basic_machine=a29k-wrs
1209 os=-vxworks
1210 ;;
1211 w65*)
1212 basic_machine=w65-wdc
1213 os=-none
1214 ;;
1215 w89k-*)
1216 basic_machine=hppa1.1-winbond
1217 os=-proelf
1218 ;;
1219 xbox)
1220 basic_machine=i686-pc
1221 os=-mingw32
1222 ;;
1223 xps | xps100)
1224 basic_machine=xps100-honeywell
1225 ;;
1226 xscale-* | xscalee[bl]-*)
1227 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1228 ;;
1229 ymp)
1230 basic_machine=ymp-cray
1231 os=-unicos
1232 ;;
1233 z8k-*-coff)
1234 basic_machine=z8k-unknown
1235 os=-sim
1236 ;;
1237 z80-*-coff)
1238 basic_machine=z80-unknown
1239 os=-sim
1527 nacl*)
1528 ;;
1529 ios)
1530 ;;
1531 psp)
12401532 ;;
12411533 none)
1242 basic_machine=none-none
1243 os=-none
1244 ;;
1245
1246 # Here we handle the default manufacturer of certain CPU types. It is in
1247 # some cases the only manufacturer, in others, it is the most popular.
1248 w89k)
1249 basic_machine=hppa1.1-winbond
1250 ;;
1251 op50n)
1252 basic_machine=hppa1.1-oki
1253 ;;
1254 op60c)
1255 basic_machine=hppa1.1-oki
1256 ;;
1257 romp)
1258 basic_machine=romp-ibm
1259 ;;
1260 mmix)
1261 basic_machine=mmix-knuth
1262 ;;
1263 rs6000)
1264 basic_machine=rs6000-ibm
1265 ;;
1266 vax)
1267 basic_machine=vax-dec
1268 ;;
1269 pdp10)
1270 # there are many clones, so DEC is not a safe bet
1271 basic_machine=pdp10-unknown
1272 ;;
1273 pdp11)
1274 basic_machine=pdp11-dec
1275 ;;
1276 we32k)
1277 basic_machine=we32k-att
1278 ;;
1279 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1280 basic_machine=sh-unknown
1281 ;;
1282 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1283 basic_machine=sparc-sun
1284 ;;
1285 cydra)
1286 basic_machine=cydra-cydrome
1287 ;;
1288 orion)
1289 basic_machine=orion-highlevel
1290 ;;
1291 orion105)
1292 basic_machine=clipper-highlevel
1293 ;;
1294 mac | mpw | mac-mpw)
1295 basic_machine=m68k-apple
1296 ;;
1297 pmac | pmac-mpw)
1298 basic_machine=powerpc-apple
1299 ;;
1300 *-unknown)
1301 # Make sure to match an already-canonicalized machine name.
1534 ;;
1535 *-eabi)
13021536 ;;
13031537 *)
1304 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1305 exit 1
1306 ;;
1307 esac
1308
1309 # Here we canonicalize certain aliases for manufacturers.
1310 case $basic_machine in
1311 *-digital*)
1312 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1313 ;;
1314 *-commodore*)
1315 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1316 ;;
1317 *)
1318 ;;
1319 esac
1320
1321 # Decode manufacturer-specific aliases for certain operating systems.
1322
1323 if [ x"$os" != x"" ]
1324 then
1325 case $os in
1326 # First match some system type aliases
1327 # that might get confused with valid system types.
1328 # -solaris* is a basic system type, with this one exception.
1329 -auroraux)
1330 os=-auroraux
1331 ;;
1332 -solaris1 | -solaris1.*)
1333 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1334 ;;
1335 -solaris)
1336 os=-solaris2
1337 ;;
1338 -svr4*)
1339 os=-sysv4
1340 ;;
1341 -unixware*)
1342 os=-sysv4.2uw
1343 ;;
1344 -gnu/linux*)
1345 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1346 ;;
1347 # First accept the basic system types.
1348 # The portable systems comes first.
1349 # Each alternative MUST END IN A *, to match a version number.
1350 # -sysv* is not here because it comes later, after sysvr4.
1351 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1352 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1353 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1354 | -sym* | -kopensolaris* | -plan9* \
1355 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1356 | -aos* | -aros* \
1357 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1358 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1359 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1360 | -bitrig* | -openbsd* | -solidbsd* \
1361 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1362 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1363 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1364 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1365 | -chorusos* | -chorusrdb* | -cegcc* \
1366 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1367 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1368 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1369 | -uxpv* | -beos* | -mpeix* | -udk* \
1370 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1371 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1372 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1373 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1374 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1375 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1376 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1377 # Remember, each alternative MUST END IN *, to match a version number.
1378 ;;
1379 -qnx*)
1380 case $basic_machine in
1381 x86-* | i*86-*)
1382 ;;
1383 *)
1384 os=-nto$os
1385 ;;
1386 esac
1387 ;;
1388 -nto-qnx*)
1389 ;;
1390 -nto*)
1391 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1392 ;;
1393 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1394 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1395 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1396 ;;
1397 -mac*)
1398 os=`echo $os | sed -e 's|mac|macos|'`
1399 ;;
1400 -linux-dietlibc)
1401 os=-linux-dietlibc
1402 ;;
1403 -linux*)
1404 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1405 ;;
1406 -sunos5*)
1407 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1408 ;;
1409 -sunos6*)
1410 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1411 ;;
1412 -opened*)
1413 os=-openedition
1414 ;;
1415 -os400*)
1416 os=-os400
1417 ;;
1418 -wince*)
1419 os=-wince
1420 ;;
1421 -osfrose*)
1422 os=-osfrose
1423 ;;
1424 -osf*)
1425 os=-osf
1426 ;;
1427 -utek*)
1428 os=-bsd
1429 ;;
1430 -dynix*)
1431 os=-bsd
1432 ;;
1433 -acis*)
1434 os=-aos
1435 ;;
1436 -atheos*)
1437 os=-atheos
1438 ;;
1439 -syllable*)
1440 os=-syllable
1441 ;;
1442 -386bsd)
1443 os=-bsd
1444 ;;
1445 -ctix* | -uts*)
1446 os=-sysv
1447 ;;
1448 -nova*)
1449 os=-rtmk-nova
1450 ;;
1451 -ns2 )
1452 os=-nextstep2
1453 ;;
1454 -nsk*)
1455 os=-nsk
1456 ;;
1457 # Preserve the version number of sinix5.
1458 -sinix5.*)
1459 os=`echo $os | sed -e 's|sinix|sysv|'`
1460 ;;
1461 -sinix*)
1462 os=-sysv4
1463 ;;
1464 -tpf*)
1465 os=-tpf
1466 ;;
1467 -triton*)
1468 os=-sysv3
1469 ;;
1470 -oss*)
1471 os=-sysv3
1472 ;;
1473 -svr4)
1474 os=-sysv4
1475 ;;
1476 -svr3)
1477 os=-sysv3
1478 ;;
1479 -sysvr4)
1480 os=-sysv4
1481 ;;
1482 # This must come after -sysvr4.
1483 -sysv*)
1484 ;;
1485 -ose*)
1486 os=-ose
1487 ;;
1488 -es1800*)
1489 os=-ose
1490 ;;
1491 -xenix)
1492 os=-xenix
1493 ;;
1494 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1495 os=-mint
1496 ;;
1497 -aros*)
1498 os=-aros
1499 ;;
1500 -zvmoe)
1501 os=-zvmoe
1502 ;;
1503 -dicos*)
1504 os=-dicos
1505 ;;
1506 -nacl*)
1507 ;;
1508 -none)
1509 ;;
1510 *)
1511 # Get rid of the `-' at the beginning of $os.
1512 os=`echo $os | sed 's/[^-]*-//'`
1513 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1538 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
15141539 exit 1
15151540 ;;
15161541 esac
15261551 # will signal an error saying that MANUFACTURER isn't an operating
15271552 # system, and we'll never get to this point.
15281553
1529 case $basic_machine in
1554 case $cpu-$vendor in
15301555 score-*)
1531 os=-elf
1556 os=elf
15321557 ;;
15331558 spu-*)
1534 os=-elf
1559 os=elf
15351560 ;;
15361561 *-acorn)
1537 os=-riscix1.2
1562 os=riscix1.2
15381563 ;;
15391564 arm*-rebel)
1540 os=-linux
1565 os=linux
15411566 ;;
15421567 arm*-semi)
1543 os=-aout
1568 os=aout
15441569 ;;
15451570 c4x-* | tic4x-*)
1546 os=-coff
1571 os=coff
1572 ;;
1573 c8051-*)
1574 os=elf
1575 ;;
1576 clipper-intergraph)
1577 os=clix
15471578 ;;
15481579 hexagon-*)
1549 os=-elf
1580 os=elf
15501581 ;;
15511582 tic54x-*)
1552 os=-coff
1583 os=coff
15531584 ;;
15541585 tic55x-*)
1555 os=-coff
1586 os=coff
15561587 ;;
15571588 tic6x-*)
1558 os=-coff
1589 os=coff
15591590 ;;
15601591 # This must come before the *-dec entry.
15611592 pdp10-*)
1562 os=-tops20
1593 os=tops20
15631594 ;;
15641595 pdp11-*)
1565 os=-none
1596 os=none
15661597 ;;
15671598 *-dec | vax-*)
1568 os=-ultrix4.2
1599 os=ultrix4.2
15691600 ;;
15701601 m68*-apollo)
1571 os=-domain
1602 os=domain
15721603 ;;
15731604 i386-sun)
1574 os=-sunos4.0.2
1605 os=sunos4.0.2
15751606 ;;
15761607 m68000-sun)
1577 os=-sunos3
1608 os=sunos3
15781609 ;;
15791610 m68*-cisco)
1580 os=-aout
1611 os=aout
15811612 ;;
15821613 mep-*)
1583 os=-elf
1614 os=elf
15841615 ;;
15851616 mips*-cisco)
1586 os=-elf
1617 os=elf
15871618 ;;
15881619 mips*-*)
1589 os=-elf
1590 ;;
1591 or1k-*)
1592 os=-elf
1620 os=elf
15931621 ;;
15941622 or32-*)
1595 os=-coff
1623 os=coff
15961624 ;;
15971625 *-tti) # must be before sparc entry or we get the wrong os.
1598 os=-sysv3
1626 os=sysv3
15991627 ;;
16001628 sparc-* | *-sun)
1601 os=-sunos4.1.1
1629 os=sunos4.1.1
1630 ;;
1631 pru-*)
1632 os=elf
16021633 ;;
16031634 *-be)
1604 os=-beos
1605 ;;
1606 *-haiku)
1607 os=-haiku
1635 os=beos
16081636 ;;
16091637 *-ibm)
1610 os=-aix
1638 os=aix
16111639 ;;
16121640 *-knuth)
1613 os=-mmixware
1641 os=mmixware
16141642 ;;
16151643 *-wec)
1616 os=-proelf
1644 os=proelf
16171645 ;;
16181646 *-winbond)
1619 os=-proelf
1647 os=proelf
16201648 ;;
16211649 *-oki)
1622 os=-proelf
1650 os=proelf
16231651 ;;
16241652 *-hp)
1625 os=-hpux
1653 os=hpux
16261654 ;;
16271655 *-hitachi)
1628 os=-hiux
1656 os=hiux
16291657 ;;
16301658 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1631 os=-sysv
1659 os=sysv
16321660 ;;
16331661 *-cbm)
1634 os=-amigaos
1662 os=amigaos
16351663 ;;
16361664 *-dg)
1637 os=-dgux
1665 os=dgux
16381666 ;;
16391667 *-dolphin)
1640 os=-sysv3
1668 os=sysv3
16411669 ;;
16421670 m68k-ccur)
1643 os=-rtu
1671 os=rtu
16441672 ;;
16451673 m88k-omron*)
1646 os=-luna
1647 ;;
1648 *-next )
1649 os=-nextstep
1674 os=luna
1675 ;;
1676 *-next)
1677 os=nextstep
16501678 ;;
16511679 *-sequent)
1652 os=-ptx
1680 os=ptx
16531681 ;;
16541682 *-crds)
1655 os=-unos
1683 os=unos
16561684 ;;
16571685 *-ns)
1658 os=-genix
1686 os=genix
16591687 ;;
16601688 i370-*)
1661 os=-mvs
1662 ;;
1663 *-next)
1664 os=-nextstep3
1689 os=mvs
16651690 ;;
16661691 *-gould)
1667 os=-sysv
1692 os=sysv
16681693 ;;
16691694 *-highlevel)
1670 os=-bsd
1695 os=bsd
16711696 ;;
16721697 *-encore)
1673 os=-bsd
1698 os=bsd
16741699 ;;
16751700 *-sgi)
1676 os=-irix
1701 os=irix
16771702 ;;
16781703 *-siemens)
1679 os=-sysv4
1704 os=sysv4
16801705 ;;
16811706 *-masscomp)
1682 os=-rtu
1707 os=rtu
16831708 ;;
16841709 f30[01]-fujitsu | f700-fujitsu)
1685 os=-uxpv
1710 os=uxpv
16861711 ;;
16871712 *-rom68k)
1688 os=-coff
1713 os=coff
16891714 ;;
16901715 *-*bug)
1691 os=-coff
1716 os=coff
16921717 ;;
16931718 *-apple)
1694 os=-macos
1719 os=macos
16951720 ;;
16961721 *-atari*)
1697 os=-mint
1722 os=mint
1723 ;;
1724 *-wrs)
1725 os=vxworks
16981726 ;;
16991727 *)
1700 os=-none
1728 os=none
17011729 ;;
17021730 esac
17031731 fi
17041732
17051733 # Here we handle the case where we know the os, and the CPU type, but not the
17061734 # manufacturer. We pick the logical manufacturer.
1707 vendor=unknown
1708 case $basic_machine in
1709 *-unknown)
1735 case $vendor in
1736 unknown)
17101737 case $os in
1711 -riscix*)
1738 riscix*)
17121739 vendor=acorn
17131740 ;;
1714 -sunos*)
1741 sunos*)
17151742 vendor=sun
17161743 ;;
1717 -cnk*|-aix*)
1744 cnk*|-aix*)
17181745 vendor=ibm
17191746 ;;
1720 -beos*)
1747 beos*)
17211748 vendor=be
17221749 ;;
1723 -hpux*)
1750 hpux*)
17241751 vendor=hp
17251752 ;;
1726 -mpeix*)
1753 mpeix*)
17271754 vendor=hp
17281755 ;;
1729 -hiux*)
1756 hiux*)
17301757 vendor=hitachi
17311758 ;;
1732 -unos*)
1759 unos*)
17331760 vendor=crds
17341761 ;;
1735 -dgux*)
1762 dgux*)
17361763 vendor=dg
17371764 ;;
1738 -luna*)
1765 luna*)
17391766 vendor=omron
17401767 ;;
1741 -genix*)
1768 genix*)
17421769 vendor=ns
17431770 ;;
1744 -mvs* | -opened*)
1771 clix*)
1772 vendor=intergraph
1773 ;;
1774 mvs* | opened*)
17451775 vendor=ibm
17461776 ;;
1747 -os400*)
1777 os400*)
17481778 vendor=ibm
17491779 ;;
1750 -ptx*)
1780 ptx*)
17511781 vendor=sequent
17521782 ;;
1753 -tpf*)
1783 tpf*)
17541784 vendor=ibm
17551785 ;;
1756 -vxsim* | -vxworks* | -windiss*)
1786 vxsim* | vxworks* | windiss*)
17571787 vendor=wrs
17581788 ;;
1759 -aux*)
1789 aux*)
17601790 vendor=apple
17611791 ;;
1762 -hms*)
1792 hms*)
17631793 vendor=hitachi
17641794 ;;
1765 -mpw* | -macos*)
1795 mpw* | macos*)
17661796 vendor=apple
17671797 ;;
1768 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1798 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
17691799 vendor=atari
17701800 ;;
1771 -vos*)
1801 vos*)
17721802 vendor=stratus
17731803 ;;
17741804 esac
1775 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
17761805 ;;
17771806 esac
17781807
1779 echo $basic_machine$os
1808 echo "$cpu-$vendor-$os"
17801809 exit
17811810
17821811 # Local variables:
1783 # eval: (add-hook 'write-file-hooks 'time-stamp)
1812 # eval: (add-hook 'before-save-hook 'time-stamp)
17841813 # time-stamp-start: "timestamp='"
17851814 # time-stamp-format: "%:y-%02m-%02d"
17861815 # time-stamp-end: "'"
+1594
-993
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for telepathy-idle 0.2.0.
2 # Generated by GNU Autoconf 2.69 for telepathy-idle 0.2.2.
33 #
44 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=idle>.
55 #
590590 # Identity of this package.
591591 PACKAGE_NAME='telepathy-idle'
592592 PACKAGE_TARNAME='telepathy-idle'
593 PACKAGE_VERSION='0.2.0'
594 PACKAGE_STRING='telepathy-idle 0.2.0'
593 PACKAGE_VERSION='0.2.2'
594 PACKAGE_STRING='telepathy-idle 0.2.2'
595595 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=idle'
596596 PACKAGE_URL=''
597597
666666 CCASFLAGS
667667 CCAS
668668 CPP
669 LT_SYS_LIBRARY_PATH
669670 OTOOL64
670671 OTOOL
671672 LIPO
693694 AMDEPBACKSLASH
694695 AMDEP_FALSE
695696 AMDEP_TRUE
696 am__quote
697697 am__include
698698 DEPDIR
699699 OBJEXT
758758 docdir
759759 oldincludedir
760760 includedir
761 runstatedir
761762 localstatedir
762763 sharedstatedir
763764 sysconfdir
776777 PACKAGE_TARNAME
777778 PACKAGE_NAME
778779 PATH_SEPARATOR
779 SHELL'
780 SHELL
781 am__quote'
780782 ac_subst_files=''
781783 ac_user_opts='
782784 enable_option_checking
785787 enable_static
786788 with_pic
787789 enable_fast_install
790 with_aix_soname
788791 enable_dependency_tracking
789792 with_gnu_ld
790793 with_sysroot
800803 LDFLAGS
801804 LIBS
802805 CPPFLAGS
806 LT_SYS_LIBRARY_PATH
803807 CPP
804808 CCAS
805809 CCASFLAGS
851855 sysconfdir='${prefix}/etc'
852856 sharedstatedir='${prefix}/com'
853857 localstatedir='${prefix}/var'
858 runstatedir='${localstatedir}/run'
854859 includedir='${prefix}/include'
855860 oldincludedir='/usr/include'
856861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
11031108 | -silent | --silent | --silen | --sile | --sil)
11041109 silent=yes ;;
11051110
1111 -runstatedir | --runstatedir | --runstatedi | --runstated \
1112 | --runstate | --runstat | --runsta | --runst | --runs \
1113 | --run | --ru | --r)
1114 ac_prev=runstatedir ;;
1115 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117 | --run=* | --ru=* | --r=*)
1118 runstatedir=$ac_optarg ;;
1119
11061120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11071121 ac_prev=sbindir ;;
11081122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12401254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12411255 datadir sysconfdir sharedstatedir localstatedir includedir \
12421256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1257 libdir localedir mandir runstatedir
12441258 do
12451259 eval ac_val=\$$ac_var
12461260 # Remove trailing slashes.
13531367 # Omit some internal or obsolete options to make the list less imposing.
13541368 # This message is too long to be a string in the A/UX 3.1 sh.
13551369 cat <<_ACEOF
1356 \`configure' configures telepathy-idle 0.2.0 to adapt to many kinds of systems.
1370 \`configure' configures telepathy-idle 0.2.2 to adapt to many kinds of systems.
13571371
13581372 Usage: $0 [OPTION]... [VAR=VALUE]...
13591373
13931407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
13941408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
13951409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
13961411 --libdir=DIR object code libraries [EPREFIX/lib]
13971412 --includedir=DIR C header files [PREFIX/include]
13981413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
14231438
14241439 if test -n "$ac_init_help"; then
14251440 case $ac_init_help in
1426 short | recursive ) echo "Configuration of telepathy-idle 0.2.0:";;
1441 short | recursive ) echo "Configuration of telepathy-idle 0.2.2:";;
14271442 esac
14281443 cat <<\_ACEOF
14291444
14531468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
14541469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
14551470 both]
1471 --with-aix-soname=aix|svr4|both
1472 shared library versioning (aka "SONAME") variant to
1473 provide on AIX, [default=aix].
14561474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-sysroot=DIR Search for dependent libraries within DIR
1458 (or the compiler's sysroot if not specified).
1475 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1476 compiler's sysroot if not specified).
14591477
14601478 Some influential environment variables:
14611479 CC C compiler command
14651483 LIBS libraries to pass to the linker, e.g. -l<library>
14661484 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14671485 you have headers in a nonstandard directory <include dir>
1486 LT_SYS_LIBRARY_PATH
1487 User-defined run-time library search path.
14681488 CPP C preprocessor
14691489 CCAS assembler compiler command (defaults to CC)
14701490 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
15491569 test -n "$ac_init_help" && exit $ac_status
15501570 if $ac_init_version; then
15511571 cat <<\_ACEOF
1552 telepathy-idle configure 0.2.0
1572 telepathy-idle configure 0.2.2
15531573 generated by GNU Autoconf 2.69
15541574
15551575 Copyright (C) 2012 Free Software Foundation, Inc.
18271847 This file contains any messages produced by compilers while
18281848 running configure, to aid debugging if configure makes a mistake.
18291849
1830 It was created by telepathy-idle $as_me 0.2.0, which was
1850 It was created by telepathy-idle $as_me 0.2.2, which was
18311851 generated by GNU Autoconf 2.69. Invocation command line was
18321852
18331853 $ $0 $@
22212241 AM_BACKSLASH='\'
22222242
22232243
2224 am__api_version='1.13'
2244 am__api_version='1.16'
22252245
22262246 ac_aux_dir=
22272247 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
24222442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
24232443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
24242444
2425 # expand $ac_aux_dir to an absolute path
2426 am_aux_dir=`cd $ac_aux_dir && pwd`
2445 # Expand $ac_aux_dir to an absolute path.
2446 am_aux_dir=`cd "$ac_aux_dir" && pwd`
24272447
24282448 if test x"${MISSING+set}" != xset; then
24292449 case $am_aux_dir in
24422462 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
24432463 fi
24442464
2445 if test x"${install_sh}" != xset; then
2465 if test x"${install_sh+set}" != xset; then
24462466 case $am_aux_dir in
24472467 *\ * | *\ *)
24482468 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
26972717
26982718 # Define the identity of the package.
26992719 PACKAGE='telepathy-idle'
2700 VERSION='0.2.0'
2720 VERSION='0.2.2'
27012721
27022722
27032723 cat >>confdefs.h <<_ACEOF
27272747
27282748 # For better backward compatibility. To be removed once Automake 1.9.x
27292749 # dies out for good. For more background, see:
2730 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2731 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2750 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2751 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
27322752 mkdir_p='$(MKDIR_P)'
27332753
2734 # We need awk for the "check" target. The system "awk" is bad on
2735 # some platforms.
2754 # We need awk for the "check" target (and possibly the TAP driver). The
2755 # system "awk" is bad on some platforms.
27362756 # Always define AMTAR for backward compatibility. Yes, it's still used
27372757 # in the wild :-( We should find a proper way to deprecate it ...
27382758 AMTAR='$${TAR-tar}'
27472767
27482768
27492769
2770
2771 # POSIX will say in a future version that running "rm -f" with no argument
2772 # is OK; and we want to be able to make that assumption in our Makefile
2773 # recipes. So use an aggressive probe to check that the usage we want is
2774 # actually supported "in the wild" to an acceptable degree.
2775 # See automake bug#10828.
2776 # To make any issue more visible, cause the running configure to be aborted
2777 # by default if the 'rm' program in use doesn't match our expectations; the
2778 # user can still override this though.
2779 if rm -f && rm -fr && rm -rf; then : OK; else
2780 cat >&2 <<'END'
2781 Oops!
2782
2783 Your 'rm' program seems unable to run without file operands specified
2784 on the command line, even when the '-f' option is present. This is contrary
2785 to the behaviour of most rm programs out there, and not conforming with
2786 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2787
2788 Please tell bug-automake@gnu.org about your system, including the value
2789 of your $PATH and any error possibly output before this message. This
2790 can help us improve future automake versions.
2791
2792 END
2793 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2794 echo 'Configuration will proceed anyway, since you have set the' >&2
2795 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2796 echo >&2
2797 else
2798 cat >&2 <<'END'
2799 Aborting the configuration process, to ensure you take notice of the issue.
2800
2801 You can download and install GNU coreutils to get an 'rm' implementation
2802 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2803
2804 If you want to complete the configuration process using your problematic
2805 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2806 to "yes", and re-run configure.
2807
2808 END
2809 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2810 fi
2811 fi
27502812
27512813
27522814 case `pwd` in
27572819
27582820
27592821
2760 macro_version='2.4.2'
2761 macro_revision='1.3337'
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775 ltmain="$ac_aux_dir/ltmain.sh"
2822 macro_version='2.4.6'
2823 macro_revision='2.4.6'
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837 ltmain=$ac_aux_dir/ltmain.sh
27762838
27772839 # Make sure we can run config.sub.
27782840 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
28922954 $ECHO ""
28932955 }
28942956
2895 case "$ECHO" in
2957 case $ECHO in
28962958 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
28972959 $as_echo "printf" >&6; } ;;
28982960 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
29182980
29192981 ac_config_commands="$ac_config_commands depfiles"
29202982
2921
2922 am_make=${MAKE-make}
2923 cat > confinc << 'END'
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2984 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2985 cat > confinc.mk << 'END'
29242986 am__doit:
2925 @echo this is the am__doit target
2987 @echo this is the am__doit target >confinc.out
29262988 .PHONY: am__doit
29272989 END
2928 # If we don't find an include directive, just comment out the code.
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2930 $as_echo_n "checking for style of include used by $am_make... " >&6; }
29312990 am__include="#"
29322991 am__quote=
2933 _am_result=none
2934 # First try GNU make style include.
2935 echo "include confinc" > confmf
2936 # Ignore all kinds of additional output from 'make'.
2937 case `$am_make -s -f confmf 2> /dev/null` in #(
2938 *the\ am__doit\ target*)
2939 am__include=include
2940 am__quote=
2941 _am_result=GNU
2942 ;;
2992 # BSD make does it like this.
2993 echo '.include "confinc.mk" # ignored' > confmf.BSD
2994 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2995 echo 'include confinc.mk # ignored' > confmf.GNU
2996 _am_result=no
2997 for s in GNU BSD; do
2998 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2999 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3003 case $?:`cat confinc.out 2>/dev/null` in #(
3004 '0:this is the am__doit target') :
3005 case $s in #(
3006 BSD) :
3007 am__include='.include' am__quote='"' ;; #(
3008 *) :
3009 am__include='include' am__quote='' ;;
3010 esac ;; #(
3011 *) :
3012 ;;
29433013 esac
2944 # Now try BSD make style include.
2945 if test "$am__include" = "#"; then
2946 echo '.include "confinc"' > confmf
2947 case `$am_make -s -f confmf 2> /dev/null` in #(
2948 *the\ am__doit\ target*)
2949 am__include=.include
2950 am__quote="\""
2951 _am_result=BSD
2952 ;;
2953 esac
2954 fi
2955
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2958 $as_echo "$_am_result" >&6; }
2959 rm -f confinc confmf
3014 if test "$am__include" != "#"; then
3015 _am_result="yes ($s style)"
3016 break
3017 fi
3018 done
3019 rm -f confinc.* confmf.*
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3021 $as_echo "${_am_result}" >&6; }
29603022
29613023 # Check whether --enable-dependency-tracking was given.
29623024 if test "${enable_dependency_tracking+set}" = set; then :
37653827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37663828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37673829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3837 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3838 if ${am_cv_prog_cc_c_o+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843
3844 int
3845 main ()
3846 {
3847
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 # Make sure it works both with $CC and with simple cc.
3853 # Following AC_PROG_CC_C_O, we do the test twice because some
3854 # compilers refuse to overwrite an existing .o file with -o,
3855 # though they will create one.
3856 am_cv_prog_cc_c_o=yes
3857 for am_i in 1 2; do
3858 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3859 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } \
3863 && test -f conftest2.$ac_objext; then
3864 : OK
3865 else
3866 am_cv_prog_cc_c_o=no
3867 break
3868 fi
3869 done
3870 rm -f core conftest*
3871 unset am_i
3872 fi
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3874 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3875 if test "$am_cv_prog_cc_c_o" != yes; then
3876 # Losing compiler, so override with the script.
3877 # FIXME: It is wrong to rewrite CC.
3878 # But if we don't then we get into trouble of one sort or another.
3879 # A longer-term fix would be to have automake use am__CC in this case,
3880 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3881 CC="$am_aux_dir/compile $CC"
3882 fi
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
37683889
37693890 depcc="$CC" am_compiler_list=
37703891
41954316
41964317 # Check whether --with-gnu-ld was given.
41974318 if test "${with_gnu_ld+set}" = set; then :
4198 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4319 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
41994320 else
42004321 with_gnu_ld=no
42014322 fi
42024323
42034324 ac_prog=ld
4204 if test "$GCC" = yes; then
4325 if test yes = "$GCC"; then
42054326 # Check if gcc -print-prog-name=ld gives a path.
42064327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
42074328 $as_echo_n "checking for ld used by $CC... " >&6; }
42084329 case $host in
42094330 *-*-mingw*)
4210 # gcc leaves a trailing carriage return which upsets mingw
4331 # gcc leaves a trailing carriage return, which upsets mingw
42114332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
42124333 *)
42134334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
42214342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
42224343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
42234344 done
4224 test -z "$LD" && LD="$ac_prog"
4345 test -z "$LD" && LD=$ac_prog
42254346 ;;
42264347 "")
42274348 # If it fails, then pretend we aren't using GCC.
42324353 with_gnu_ld=unknown
42334354 ;;
42344355 esac
4235 elif test "$with_gnu_ld" = yes; then
4356 elif test yes = "$with_gnu_ld"; then
42364357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
42374358 $as_echo_n "checking for GNU ld... " >&6; }
42384359 else
42434364 $as_echo_n "(cached) " >&6
42444365 else
42454366 if test -z "$LD"; then
4246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4367 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
42474368 for ac_dir in $PATH; do
4248 IFS="$lt_save_ifs"
4369 IFS=$lt_save_ifs
42494370 test -z "$ac_dir" && ac_dir=.
42504371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4251 lt_cv_path_LD="$ac_dir/$ac_prog"
4372 lt_cv_path_LD=$ac_dir/$ac_prog
42524373 # Check to see if the program is GNU ld. I'd rather use --version,
42534374 # but apparently some variants of GNU ld only accept -v.
42544375 # Break only if it was the GNU/non-GNU ld that we prefer.
42554376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
42564377 *GNU* | *'with BFD'*)
4257 test "$with_gnu_ld" != no && break
4378 test no != "$with_gnu_ld" && break
42584379 ;;
42594380 *)
4260 test "$with_gnu_ld" != yes && break
4381 test yes != "$with_gnu_ld" && break
42614382 ;;
42624383 esac
42634384 fi
42644385 done
4265 IFS="$lt_save_ifs"
4266 else
4267 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4268 fi
4269 fi
4270
4271 LD="$lt_cv_path_LD"
4386 IFS=$lt_save_ifs
4387 else
4388 lt_cv_path_LD=$LD # Let the user override the test with a path.
4389 fi
4390 fi
4391
4392 LD=$lt_cv_path_LD
42724393 if test -n "$LD"; then
42734394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
42744395 $as_echo "$LD" >&6; }
43114432 else
43124433 if test -n "$NM"; then
43134434 # Let the user override the test.
4314 lt_cv_path_NM="$NM"
4315 else
4316 lt_nm_to_check="${ac_tool_prefix}nm"
4435 lt_cv_path_NM=$NM
4436 else
4437 lt_nm_to_check=${ac_tool_prefix}nm
43174438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
43184439 lt_nm_to_check="$lt_nm_to_check nm"
43194440 fi
43204441 for lt_tmp_nm in $lt_nm_to_check; do
4321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4442 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
43224443 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4323 IFS="$lt_save_ifs"
4444 IFS=$lt_save_ifs
43244445 test -z "$ac_dir" && ac_dir=.
4325 tmp_nm="$ac_dir/$lt_tmp_nm"
4326 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4446 tmp_nm=$ac_dir/$lt_tmp_nm
4447 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
43274448 # Check to see if the nm accepts a BSD-compat flag.
4328 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4449 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
43294450 # nm: unknown option "B" ignored
43304451 # Tru64's nm complains that /dev/null is an invalid object file
4331 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4332 */dev/null* | *'Invalid file or object type'*)
4452 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4453 case $build_os in
4454 mingw*) lt_bad_file=conftest.nm/nofile ;;
4455 *) lt_bad_file=/dev/null ;;
4456 esac
4457 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4458 *$lt_bad_file* | *'Invalid file or object type'*)
43334459 lt_cv_path_NM="$tmp_nm -B"
4334 break
4460 break 2
43354461 ;;
43364462 *)
43374463 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
43384464 */dev/null*)
43394465 lt_cv_path_NM="$tmp_nm -p"
4340 break
4466 break 2
43414467 ;;
43424468 *)
43434469 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
43484474 esac
43494475 fi
43504476 done
4351 IFS="$lt_save_ifs"
4477 IFS=$lt_save_ifs
43524478 done
43534479 : ${lt_cv_path_NM=no}
43544480 fi
43554481 fi
43564482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
43574483 $as_echo "$lt_cv_path_NM" >&6; }
4358 if test "$lt_cv_path_NM" != "no"; then
4359 NM="$lt_cv_path_NM"
4484 if test no != "$lt_cv_path_NM"; then
4485 NM=$lt_cv_path_NM
43604486 else
43614487 # Didn't find any BSD compatible name lister, look for dumpbin.
43624488 if test -n "$DUMPBIN"; then :
44624588 fi
44634589 fi
44644590
4465 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4591 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
44664592 *COFF*)
4467 DUMPBIN="$DUMPBIN -symbols"
4593 DUMPBIN="$DUMPBIN -symbols -headers"
44684594 ;;
44694595 *)
44704596 DUMPBIN=:
44724598 esac
44734599 fi
44744600
4475 if test "$DUMPBIN" != ":"; then
4476 NM="$DUMPBIN"
4601 if test : != "$DUMPBIN"; then
4602 NM=$DUMPBIN
44774603 fi
44784604 fi
44794605 test -z "$NM" && NM=nm
45244650 $as_echo_n "(cached) " >&6
45254651 else
45264652 i=0
4527 teststring="ABCD"
4653 teststring=ABCD
45284654
45294655 case $build_os in
45304656 msdosdjgpp*)
45584684 lt_cv_sys_max_cmd_len=8192;
45594685 ;;
45604686
4687 mint*)
4688 # On MiNT this can take a long time and run out of memory.
4689 lt_cv_sys_max_cmd_len=8192;
4690 ;;
4691
45614692 amigaos*)
45624693 # On AmigaOS with pdksh, this test takes hours, literally.
45634694 # So we just punt and use a minimum line length of 8192.
45644695 lt_cv_sys_max_cmd_len=8192;
45654696 ;;
45664697
4567 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4698 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
45684699 # This has been around since 386BSD, at least. Likely further.
45694700 if test -x /sbin/sysctl; then
45704701 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
46144745 ;;
46154746 *)
46164747 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4617 if test -n "$lt_cv_sys_max_cmd_len"; then
4748 if test -n "$lt_cv_sys_max_cmd_len" && \
4749 test undefined != "$lt_cv_sys_max_cmd_len"; then
46184750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
46194751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
46204752 else
46214753 # Make teststring a little bigger before we do anything with it.
46224754 # a 1K string should be a reasonable start.
4623 for i in 1 2 3 4 5 6 7 8 ; do
4755 for i in 1 2 3 4 5 6 7 8; do
46244756 teststring=$teststring$teststring
46254757 done
46264758 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
46274759 # If test is not a shell built-in, we'll probably end up computing a
46284760 # maximum length that is only half of the actual maximum length, but
46294761 # we can't tell.
4630 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4762 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
46314763 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4632 test $i != 17 # 1/2 MB should be enough
4764 test 17 != "$i" # 1/2 MB should be enough
46334765 do
46344766 i=`expr $i + 1`
46354767 teststring=$teststring$teststring
46474779
46484780 fi
46494781
4650 if test -n $lt_cv_sys_max_cmd_len ; then
4782 if test -n "$lt_cv_sys_max_cmd_len"; then
46514783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
46524784 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
46534785 else
46644796 : ${CP="cp -f"}
46654797 : ${MV="mv -f"}
46664798 : ${RM="rm -f"}
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4669 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4670 # Try some XSI features
4671 xsi_shell=no
4672 ( _lt_dummy="a/b/c"
4673 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4674 = c,a/b,b/c, \
4675 && eval 'test $(( 1 + 1 )) -eq 2 \
4676 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4677 && xsi_shell=yes
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4679 $as_echo "$xsi_shell" >&6; }
4680
4681
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4683 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4684 lt_shell_append=no
4685 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4686 >/dev/null 2>&1 \
4687 && lt_shell_append=yes
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4689 $as_echo "$lt_shell_append" >&6; }
4690
46914799
46924800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46934801 lt_unset=unset
48114919 reload_cmds='$LD$reload_flag -o $output$reload_objs'
48124920 case $host_os in
48134921 cygwin* | mingw* | pw32* | cegcc*)
4814 if test "$GCC" != yes; then
4922 if test yes != "$GCC"; then
48154923 reload_cmds=false
48164924 fi
48174925 ;;
48184926 darwin*)
4819 if test "$GCC" = yes; then
4820 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4927 if test yes = "$GCC"; then
4928 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
48214929 else
48224930 reload_cmds='$LD$reload_flag -o $output$reload_objs'
48234931 fi
49455053 # Need to set the preceding variable on all platforms that support
49465054 # interlibrary dependencies.
49475055 # 'none' -- dependencies not supported.
4948 # `unknown' -- same as none, but documents that we really don't know.
5056 # 'unknown' -- same as none, but documents that we really don't know.
49495057 # 'pass_all' -- all dependencies passed with no checks.
49505058 # 'test_compile' -- check by making test program.
49515059 # 'file_magic [[regex]]' -- check by looking for files in library path
4952 # which responds to the $file_magic_cmd with a given extended regex.
4953 # If you have `file' or equivalent on your system and you're not sure
4954 # whether `pass_all' will *always* work, you probably want this one.
5060 # that responds to the $file_magic_cmd with a given extended regex.
5061 # If you have 'file' or equivalent on your system and you're not sure
5062 # whether 'pass_all' will *always* work, you probably want this one.
49555063
49565064 case $host_os in
49575065 aix[4-9]*)
49785086 # Base MSYS/MinGW do not provide the 'file' command needed by
49795087 # func_win32_libid shell function, so use a weaker test based on 'objdump',
49805088 # unless we find 'file', for example because we are cross-compiling.
4981 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4982 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5089 if ( file / ) >/dev/null 2>&1; then
49835090 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
49845091 lt_cv_file_magic_cmd='func_win32_libid'
49855092 else
50135120 else
50145121 lt_cv_deplibs_check_method=pass_all
50155122 fi
5016 ;;
5017
5018 gnu*)
5019 lt_cv_deplibs_check_method=pass_all
50205123 ;;
50215124
50225125 haiku*)
50575160 ;;
50585161
50595162 # This must be glibc/ELF.
5060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5163 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
50615164 lt_cv_deplibs_check_method=pass_all
50625165 ;;
50635166
50795182 lt_cv_deplibs_check_method=pass_all
50805183 ;;
50815184
5082 openbsd*)
5083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5185 openbsd* | bitrig*)
5186 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
50845187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
50855188 else
50865189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
51335236 tpf*)
51345237 lt_cv_deplibs_check_method=pass_all
51355238 ;;
5239 os2*)
5240 lt_cv_deplibs_check_method=pass_all
5241 ;;
51365242 esac
51375243
51385244 fi
52905396
52915397 case $host_os in
52925398 cygwin* | mingw* | pw32* | cegcc*)
5293 # two different shell functions defined in ltmain.sh
5294 # decide which to use based on capabilities of $DLLTOOL
5399 # two different shell functions defined in ltmain.sh;
5400 # decide which one to use based on capabilities of $DLLTOOL
52955401 case `$DLLTOOL --help 2>&1` in
52965402 *--identify-strict*)
52975403 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
53035409 ;;
53045410 *)
53055411 # fallback: assume linklib IS sharedlib
5306 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5412 lt_cv_sharedlib_from_linklib_cmd=$ECHO
53075413 ;;
53085414 esac
53095415
54585564 ac_status=$?
54595565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54605566 test $ac_status = 0; }
5461 if test "$ac_status" -eq 0; then
5567 if test 0 -eq "$ac_status"; then
54625568 # Ensure the archiver fails upon bogus file names.
54635569 rm -f conftest.$ac_objext libconftest.a
54645570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
54665572 ac_status=$?
54675573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54685574 test $ac_status = 0; }
5469 if test "$ac_status" -ne 0; then
5575 if test 0 -ne "$ac_status"; then
54705576 lt_cv_ar_at_file=@
54715577 fi
54725578 fi
54795585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
54805586 $as_echo "$lt_cv_ar_at_file" >&6; }
54815587
5482 if test "x$lt_cv_ar_at_file" = xno; then
5588 if test no = "$lt_cv_ar_at_file"; then
54835589 archiver_list_spec=
54845590 else
54855591 archiver_list_spec=$lt_cv_ar_at_file
56965802
56975803 if test -n "$RANLIB"; then
56985804 case $host_os in
5699 openbsd*)
5805 bitrig* | openbsd*)
57005806 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
57015807 ;;
57025808 *)
57865892 symcode='[ABCDGISTW]'
57875893 ;;
57885894 hpux*)
5789 if test "$host_cpu" = ia64; then
5895 if test ia64 = "$host_cpu"; then
57905896 symcode='[ABCDEGRST]'
57915897 fi
57925898 ;;
58195925 symcode='[ABCDGIRSTW]' ;;
58205926 esac
58215927
5928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5929 # Gets list of data symbols to import.
5930 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5931 # Adjust the below global symbol transforms to fixup imported variables.
5932 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5933 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5934 lt_c_name_lib_hook="\
5935 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5936 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5937 else
5938 # Disable hooks by default.
5939 lt_cv_sys_global_symbol_to_import=
5940 lt_cdecl_hook=
5941 lt_c_name_hook=
5942 lt_c_name_lib_hook=
5943 fi
5944
58225945 # Transform an extracted symbol line into a proper C declaration.
58235946 # Some systems (esp. on ia64) link data and code symbols differently,
58245947 # so use this general approach.
5825 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5948 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5949 $lt_cdecl_hook\
5950 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5951 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
58265952
58275953 # Transform an extracted symbol line into symbol name and symbol address
5828 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5829 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'"
5954 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5955 $lt_c_name_hook\
5956 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5957 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5958
5959 # Transform an extracted symbol line into symbol name with lib prefix and
5960 # symbol address.
5961 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5962 $lt_c_name_lib_hook\
5963 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5964 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5965 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
58305966
58315967 # Handle CRLF in mingw tool chain
58325968 opt_cr=
58445980
58455981 # Write the raw and C identifiers.
58465982 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5847 # Fake it for dumpbin and say T for any non-static function
5848 # and D for any global variable.
5983 # Fake it for dumpbin and say T for any non-static function,
5984 # D for any global variable and I for any imported variable.
58495985 # Also find C++ and __fastcall symbols from MSVC++,
58505986 # which start with @ or ?.
58515987 lt_cv_sys_global_symbol_pipe="$AWK '"\
58525988 " {last_section=section; section=\$ 3};"\
58535989 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
58545990 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5991 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5992 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5993 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
58555994 " \$ 0!~/External *\|/{next};"\
58565995 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
58575996 " {if(hide[section]) next};"\
5858 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5859 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5860 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5861 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5997 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5998 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5999 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6000 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
58626001 " ' prfx=^$ac_symprfx"
58636002 else
58646003 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
59066045 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
59076046 cat <<_LT_EOF > conftest.$ac_ext
59086047 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5909 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5910 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6048 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6049 /* DATA imports from DLLs on WIN32 can't be const, because runtime
59116050 relocations are performed -- see ld's documentation on pseudo-relocs. */
59126051 # define LT_DLSYM_CONST
5913 #elif defined(__osf__)
6052 #elif defined __osf__
59146053 /* This system does not cope well with relocations in const data. */
59156054 # define LT_DLSYM_CONST
59166055 #else
59366075 {
59376076 { "@PROGRAM@", (void *) 0 },
59386077 _LT_EOF
5939 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6078 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
59406079 cat <<\_LT_EOF >> conftest.$ac_ext
59416080 {0, (void *) 0}
59426081 };
59566095 mv conftest.$ac_objext conftstm.$ac_objext
59576096 lt_globsym_save_LIBS=$LIBS
59586097 lt_globsym_save_CFLAGS=$CFLAGS
5959 LIBS="conftstm.$ac_objext"
6098 LIBS=conftstm.$ac_objext
59606099 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
59616100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59626101 (eval $ac_link) 2>&5
59636102 ac_status=$?
59646103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6104 test $ac_status = 0; } && test -s conftest$ac_exeext; then
59666105 pipe_works=yes
59676106 fi
59686107 LIBS=$lt_globsym_save_LIBS
59836122 rm -rf conftest* conftst*
59846123
59856124 # Do not use the global_symbol_pipe unless it works.
5986 if test "$pipe_works" = yes; then
6125 if test yes = "$pipe_works"; then
59876126 break
59886127 else
59896128 lt_cv_sys_global_symbol_pipe=
60366175
60376176
60386177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
60396188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
60406189 $as_echo_n "checking for sysroot... " >&6; }
60416190
60486197
60496198
60506199 lt_sysroot=
6051 case ${with_sysroot} in #(
6200 case $with_sysroot in #(
60526201 yes)
6053 if test "$GCC" = yes; then
6202 if test yes = "$GCC"; then
60546203 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
60556204 fi
60566205 ;; #(
60606209 no|'')
60616210 ;; #(
60626211 *)
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6064 $as_echo "${with_sysroot}" >&6; }
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6213 $as_echo "$with_sysroot" >&6; }
60656214 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
60666215 ;;
60676216 esac
60736222
60746223
60756224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6226 $as_echo_n "checking for a working dd... " >&6; }
6227 if ${ac_cv_path_lt_DD+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 printf 0123456789abcdef0123456789abcdef >conftest.i
6231 cat conftest.i conftest.i >conftest2.i
6232 : ${lt_DD:=$DD}
6233 if test -z "$lt_DD"; then
6234 ac_path_lt_DD_found=false
6235 # Loop through the user's path and test for each of PROGNAME-LIST
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_prog in dd; do
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6244 as_fn_executable_p "$ac_path_lt_DD" || continue
6245 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6246 cmp -s conftest.i conftest.out \
6247 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6248 fi
6249 $ac_path_lt_DD_found && break 3
6250 done
6251 done
6252 done
6253 IFS=$as_save_IFS
6254 if test -z "$ac_cv_path_lt_DD"; then
6255 :
6256 fi
6257 else
6258 ac_cv_path_lt_DD=$lt_DD
6259 fi
6260
6261 rm -f conftest.i conftest2.i conftest.out
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6264 $as_echo "$ac_cv_path_lt_DD" >&6; }
6265
6266
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6268 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6269 if ${lt_cv_truncate_bin+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 printf 0123456789abcdef0123456789abcdef >conftest.i
6273 cat conftest.i conftest.i >conftest2.i
6274 lt_cv_truncate_bin=
6275 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6276 cmp -s conftest.i conftest.out \
6277 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6278 fi
6279 rm -f conftest.i conftest2.i conftest.out
6280 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6283 $as_echo "$lt_cv_truncate_bin" >&6; }
6284
6285
6286
6287
6288
6289
6290
6291 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6292 func_cc_basename ()
6293 {
6294 for cc_temp in $*""; do
6295 case $cc_temp in
6296 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6297 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6298 \-*) ;;
6299 *) break;;
6300 esac
6301 done
6302 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6303 }
6304
60766305 # Check whether --enable-libtool-lock was given.
60776306 if test "${enable_libtool_lock+set}" = set; then :
60786307 enableval=$enable_libtool_lock;
60796308 fi
60806309
6081 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6310 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
60826311
60836312 # Some flags need to be propagated to the compiler or linker for good
60846313 # libtool support.
60856314 case $host in
60866315 ia64-*-hpux*)
6087 # Find out which ABI we are using.
6316 # Find out what ABI is being produced by ac_compile, and set mode
6317 # options accordingly.
60886318 echo 'int i;' > conftest.$ac_ext
60896319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
60906320 (eval $ac_compile) 2>&5
60936323 test $ac_status = 0; }; then
60946324 case `/usr/bin/file conftest.$ac_objext` in
60956325 *ELF-32*)
6096 HPUX_IA64_MODE="32"
6326 HPUX_IA64_MODE=32
60976327 ;;
60986328 *ELF-64*)
6099 HPUX_IA64_MODE="64"
6329 HPUX_IA64_MODE=64
61006330 ;;
61016331 esac
61026332 fi
61036333 rm -rf conftest*
61046334 ;;
61056335 *-*-irix6*)
6106 # Find out which ABI we are using.
6336 # Find out what ABI is being produced by ac_compile, and set linker
6337 # options accordingly.
61076338 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
61086339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
61096340 (eval $ac_compile) 2>&5
61106341 ac_status=$?
61116342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61126343 test $ac_status = 0; }; then
6113 if test "$lt_cv_prog_gnu_ld" = yes; then
6344 if test yes = "$lt_cv_prog_gnu_ld"; then
61146345 case `/usr/bin/file conftest.$ac_objext` in
61156346 *32-bit*)
61166347 LD="${LD-ld} -melf32bsmip"
61396370 rm -rf conftest*
61406371 ;;
61416372
6142 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6373 mips64*-*linux*)
6374 # Find out what ABI is being produced by ac_compile, and set linker
6375 # options accordingly.
6376 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6378 (eval $ac_compile) 2>&5
6379 ac_status=$?
6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; }; then
6382 emul=elf
6383 case `/usr/bin/file conftest.$ac_objext` in
6384 *32-bit*)
6385 emul="${emul}32"
6386 ;;
6387 *64-bit*)
6388 emul="${emul}64"
6389 ;;
6390 esac
6391 case `/usr/bin/file conftest.$ac_objext` in
6392 *MSB*)
6393 emul="${emul}btsmip"
6394 ;;
6395 *LSB*)
6396 emul="${emul}ltsmip"
6397 ;;
6398 esac
6399 case `/usr/bin/file conftest.$ac_objext` in
6400 *N32*)
6401 emul="${emul}n32"
6402 ;;
6403 esac
6404 LD="${LD-ld} -m $emul"
6405 fi
6406 rm -rf conftest*
6407 ;;
6408
6409 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
61436410 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6144 # Find out which ABI we are using.
6411 # Find out what ABI is being produced by ac_compile, and set linker
6412 # options accordingly. Note that the listed cases only cover the
6413 # situations where additional linker options are needed (such as when
6414 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6415 # vice versa); the common cases where no linker options are needed do
6416 # not appear in the list.
61456417 echo 'int i;' > conftest.$ac_ext
61466418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
61476419 (eval $ac_compile) 2>&5
61556427 LD="${LD-ld} -m elf_i386_fbsd"
61566428 ;;
61576429 x86_64-*linux*)
6158 LD="${LD-ld} -m elf_i386"
6430 case `/usr/bin/file conftest.o` in
6431 *x86-64*)
6432 LD="${LD-ld} -m elf32_x86_64"
6433 ;;
6434 *)
6435 LD="${LD-ld} -m elf_i386"
6436 ;;
6437 esac
61596438 ;;
6160 ppc64-*linux*|powerpc64-*linux*)
6439 powerpc64le-*linux*)
6440 LD="${LD-ld} -m elf32lppclinux"
6441 ;;
6442 powerpc64-*linux*)
61616443 LD="${LD-ld} -m elf32ppclinux"
61626444 ;;
61636445 s390x-*linux*)
61766458 x86_64-*linux*)
61776459 LD="${LD-ld} -m elf_x86_64"
61786460 ;;
6179 ppc*-*linux*|powerpc*-*linux*)
6461 powerpcle-*linux*|powerpc64le-*linux*)
6462 LD="${LD-ld} -m elf64lppc"
6463 ;;
6464 powerpc-*linux*|powerpc64-*linux*)
61806465 LD="${LD-ld} -m elf64ppc"
61816466 ;;
61826467 s390*-*linux*|s390*-*tpf*)
61946479
61956480 *-*-sco3.2v5*)
61966481 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6197 SAVE_CFLAGS="$CFLAGS"
6482 SAVE_CFLAGS=$CFLAGS
61986483 CFLAGS="$CFLAGS -belf"
61996484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
62006485 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
62346519 fi
62356520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
62366521 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6237 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6522 if test yes != "$lt_cv_cc_needs_belf"; then
62386523 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6239 CFLAGS="$SAVE_CFLAGS"
6524 CFLAGS=$SAVE_CFLAGS
62406525 fi
62416526 ;;
62426527 *-*solaris*)
6243 # Find out which ABI we are using.
6528 # Find out what ABI is being produced by ac_compile, and set linker
6529 # options accordingly.
62446530 echo 'int i;' > conftest.$ac_ext
62456531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
62466532 (eval $ac_compile) 2>&5
62526538 case $lt_cv_prog_gnu_ld in
62536539 yes*)
62546540 case $host in
6255 i?86-*-solaris*)
6541 i?86-*-solaris*|x86_64-*-solaris*)
62566542 LD="${LD-ld} -m elf_x86_64"
62576543 ;;
62586544 sparc*-*-solaris*)
62616547 esac
62626548 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
62636549 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6264 LD="${LD-ld}_sol2"
6550 LD=${LD-ld}_sol2
62656551 fi
62666552 ;;
62676553 *)
62776563 ;;
62786564 esac
62796565
6280 need_locks="$enable_libtool_lock"
6566 need_locks=$enable_libtool_lock
62816567
62826568 if test -n "$ac_tool_prefix"; then
62836569 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
63886674 fi
63896675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
63906676 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6391 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6677 if test yes != "$lt_cv_path_mainfest_tool"; then
63926678 MANIFEST_TOOL=:
63936679 fi
63946680
68917177 $as_echo_n "(cached) " >&6
68927178 else
68937179 lt_cv_apple_cc_single_mod=no
6894 if test -z "${LT_MULTI_MODULE}"; then
7180 if test -z "$LT_MULTI_MODULE"; then
68957181 # By default we will add the -single_module flag. You can override
68967182 # by either setting the environment variable LT_MULTI_MODULE
68977183 # non-empty at configure time, or by adding -multi_module to the
69097195 cat conftest.err >&5
69107196 # Otherwise, if the output was created with a 0 exit code from
69117197 # the compiler, it worked.
6912 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7198 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
69137199 lt_cv_apple_cc_single_mod=yes
69147200 else
69157201 cat conftest.err >&5
69487234 fi
69497235 rm -f core conftest.err conftest.$ac_objext \
69507236 conftest$ac_exeext conftest.$ac_ext
6951 LDFLAGS="$save_LDFLAGS"
7237 LDFLAGS=$save_LDFLAGS
69527238
69537239 fi
69547240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
69777263 _lt_result=$?
69787264 if test -s conftest.err && $GREP force_load conftest.err; then
69797265 cat conftest.err >&5
6980 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7266 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
69817267 lt_cv_ld_force_load=yes
69827268 else
69837269 cat conftest.err >&5
69907276 $as_echo "$lt_cv_ld_force_load" >&6; }
69917277 case $host_os in
69927278 rhapsody* | darwin1.[012])
6993 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7279 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
69947280 darwin1.*)
6995 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7281 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
69967282 darwin*) # darwin 5.x on
69977283 # if running on 10.5 or later, the deployment target defaults
69987284 # to the OS version, if on x86, and 10.4, the deployment
69997285 # target defaults to 10.4. Don't you love it?
70007286 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
70017287 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7002 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7003 10.[012]*)
7004 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7288 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7289 10.[012][,.]*)
7290 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
70057291 10.*)
7006 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7292 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
70077293 esac
70087294 ;;
70097295 esac
7010 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7296 if test yes = "$lt_cv_apple_cc_single_mod"; then
70117297 _lt_dar_single_mod='$single_module'
70127298 fi
7013 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7014 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7299 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7300 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
70157301 else
7016 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7302 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
70177303 fi
7018 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7304 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
70197305 _lt_dsymutil='~$DSYMUTIL $lib || :'
70207306 else
70217307 _lt_dsymutil=
70227308 fi
70237309 ;;
70247310 esac
7311
7312 # func_munge_path_list VARIABLE PATH
7313 # -----------------------------------
7314 # VARIABLE is name of variable containing _space_ separated list of
7315 # directories to be munged by the contents of PATH, which is string
7316 # having a format:
7317 # "DIR[:DIR]:"
7318 # string "DIR[ DIR]" will be prepended to VARIABLE
7319 # ":DIR[:DIR]"
7320 # string "DIR[ DIR]" will be appended to VARIABLE
7321 # "DIRP[:DIRP]::[DIRA:]DIRA"
7322 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7323 # "DIRA[ DIRA]" will be appended to VARIABLE
7324 # "DIR[:DIR]"
7325 # VARIABLE will be replaced by "DIR[ DIR]"
7326 func_munge_path_list ()
7327 {
7328 case x$2 in
7329 x)
7330 ;;
7331 *:)
7332 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7333 ;;
7334 x:*)
7335 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7336 ;;
7337 *::*)
7338 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7339 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7340 ;;
7341 *)
7342 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7343 ;;
7344 esac
7345 }
70257346
70267347 ac_ext=c
70277348 ac_cpp='$CPP $CPPFLAGS'
73267647 *)
73277648 enable_shared=no
73287649 # Look at the argument we got. We use all the common list separators.
7329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7650 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
73307651 for pkg in $enableval; do
7331 IFS="$lt_save_ifs"
7652 IFS=$lt_save_ifs
73327653 if test "X$pkg" = "X$p"; then
73337654 enable_shared=yes
73347655 fi
73357656 done
7336 IFS="$lt_save_ifs"
7657 IFS=$lt_save_ifs
73377658 ;;
73387659 esac
73397660 else
73577678 *)
73587679 enable_static=no
73597680 # Look at the argument we got. We use all the common list separators.
7360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7681 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
73617682 for pkg in $enableval; do
7362 IFS="$lt_save_ifs"
7683 IFS=$lt_save_ifs
73637684 if test "X$pkg" = "X$p"; then
73647685 enable_static=yes
73657686 fi
73667687 done
7367 IFS="$lt_save_ifs"
7688 IFS=$lt_save_ifs
73687689 ;;
73697690 esac
73707691 else
73887709 *)
73897710 pic_mode=default
73907711 # Look at the argument we got. We use all the common list separators.
7391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7712 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
73927713 for lt_pkg in $withval; do
7393 IFS="$lt_save_ifs"
7714 IFS=$lt_save_ifs
73947715 if test "X$lt_pkg" = "X$lt_p"; then
73957716 pic_mode=yes
73967717 fi
73977718 done
7398 IFS="$lt_save_ifs"
7719 IFS=$lt_save_ifs
73997720 ;;
74007721 esac
74017722 else
74027723 pic_mode=default
74037724 fi
74047725
7405
7406 test -z "$pic_mode" && pic_mode=default
74077726
74087727
74097728
74207739 *)
74217740 enable_fast_install=no
74227741 # Look at the argument we got. We use all the common list separators.
7423 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
74247743 for pkg in $enableval; do
7425 IFS="$lt_save_ifs"
7744 IFS=$lt_save_ifs
74267745 if test "X$pkg" = "X$p"; then
74277746 enable_fast_install=yes
74287747 fi
74297748 done
7430 IFS="$lt_save_ifs"
7749 IFS=$lt_save_ifs
74317750 ;;
74327751 esac
74337752 else
74417760
74427761
74437762
7763 shared_archive_member_spec=
7764 case $host,$enable_shared in
7765 power*-*-aix[5-9]*,yes)
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7767 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7768
7769 # Check whether --with-aix-soname was given.
7770 if test "${with_aix_soname+set}" = set; then :
7771 withval=$with_aix_soname; case $withval in
7772 aix|svr4|both)
7773 ;;
7774 *)
7775 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7776 ;;
7777 esac
7778 lt_cv_with_aix_soname=$with_aix_soname
7779 else
7780 if ${lt_cv_with_aix_soname+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 lt_cv_with_aix_soname=aix
7784 fi
7785
7786 with_aix_soname=$lt_cv_with_aix_soname
7787 fi
7788
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7790 $as_echo "$with_aix_soname" >&6; }
7791 if test aix != "$with_aix_soname"; then
7792 # For the AIX way of multilib, we name the shared archive member
7793 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7794 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7795 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7796 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7797 if test 64 = "${OBJECT_MODE-32}"; then
7798 shared_archive_member_spec=shr_64
7799 else
7800 shared_archive_member_spec=shr
7801 fi
7802 fi
7803 ;;
7804 *)
7805 with_aix_soname=aix
7806 ;;
7807 esac
7808
7809
7810
7811
7812
7813
7814
74447815
74457816
74467817
74477818 # This can be used to rebuild libtool when needed
7448 LIBTOOL_DEPS="$ltmain"
7819 LIBTOOL_DEPS=$ltmain
74497820
74507821 # Always use our own libtool.
74517822 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
74947865
74957866
74967867
7497 if test -n "${ZSH_VERSION+set}" ; then
7868 if test -n "${ZSH_VERSION+set}"; then
74987869 setopt NO_GLOB_SUBST
74997870 fi
75007871
75337904 # AIX sometimes has problems with the GCC collect2 program. For some
75347905 # reason, if we set the COLLECT_NAMES environment variable, the problems
75357906 # vanish in a puff of smoke.
7536 if test "X${COLLECT_NAMES+set}" != Xset; then
7907 if test set != "${COLLECT_NAMES+set}"; then
75377908 COLLECT_NAMES=
75387909 export COLLECT_NAMES
75397910 fi
75447915 ofile=libtool
75457916 can_build_shared=yes
75467917
7547 # All known linkers require a `.a' archive for static linking (except MSVC,
7918 # All known linkers require a '.a' archive for static linking (except MSVC,
75487919 # which needs '.lib').
75497920 libext=a
75507921
7551 with_gnu_ld="$lt_cv_prog_gnu_ld"
7552
7553 old_CC="$CC"
7554 old_CFLAGS="$CFLAGS"
7922 with_gnu_ld=$lt_cv_prog_gnu_ld
7923
7924 old_CC=$CC
7925 old_CFLAGS=$CFLAGS
75557926
75567927 # Set sane defaults for various variables
75577928 test -z "$CC" && CC=cc
75607931 test -z "$LD" && LD=ld
75617932 test -z "$ac_objext" && ac_objext=o
75627933
7563 for cc_temp in $compiler""; do
7564 case $cc_temp in
7565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7567 \-*) ;;
7568 *) break;;
7569 esac
7570 done
7571 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7934 func_cc_basename $compiler
7935 cc_basename=$func_cc_basename_result
75727936
75737937
75747938 # Only perform the check for file, if the check method requires it
75837947 else
75847948 case $MAGIC_CMD in
75857949 [\\/*] | ?:[\\/]*)
7586 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7950 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
75877951 ;;
75887952 *)
7589 lt_save_MAGIC_CMD="$MAGIC_CMD"
7590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7953 lt_save_MAGIC_CMD=$MAGIC_CMD
7954 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
75917955 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
75927956 for ac_dir in $ac_dummy; do
7593 IFS="$lt_save_ifs"
7957 IFS=$lt_save_ifs
75947958 test -z "$ac_dir" && ac_dir=.
7595 if test -f $ac_dir/${ac_tool_prefix}file; then
7596 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7959 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7960 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
75977961 if test -n "$file_magic_test_file"; then
75987962 case $deplibs_check_method in
75997963 "file_magic "*)
76007964 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7965 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
76027966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
76037967 $EGREP "$file_magic_regex" > /dev/null; then
76047968 :
76217985 break
76227986 fi
76237987 done
7624 IFS="$lt_save_ifs"
7625 MAGIC_CMD="$lt_save_MAGIC_CMD"
7988 IFS=$lt_save_ifs
7989 MAGIC_CMD=$lt_save_MAGIC_CMD
76267990 ;;
76277991 esac
76287992 fi
76297993
7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
76317995 if test -n "$MAGIC_CMD"; then
76327996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
76337997 $as_echo "$MAGIC_CMD" >&6; }
76498013 else
76508014 case $MAGIC_CMD in
76518015 [\\/*] | ?:[\\/]*)
7652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8016 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
76538017 ;;
76548018 *)
7655 lt_save_MAGIC_CMD="$MAGIC_CMD"
7656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8019 lt_save_MAGIC_CMD=$MAGIC_CMD
8020 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
76578021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
76588022 for ac_dir in $ac_dummy; do
7659 IFS="$lt_save_ifs"
8023 IFS=$lt_save_ifs
76608024 test -z "$ac_dir" && ac_dir=.
7661 if test -f $ac_dir/file; then
7662 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8025 if test -f "$ac_dir/file"; then
8026 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
76638027 if test -n "$file_magic_test_file"; then
76648028 case $deplibs_check_method in
76658029 "file_magic "*)
76668030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8031 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
76688032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
76698033 $EGREP "$file_magic_regex" > /dev/null; then
76708034 :
76878051 break
76888052 fi
76898053 done
7690 IFS="$lt_save_ifs"
7691 MAGIC_CMD="$lt_save_MAGIC_CMD"
8054 IFS=$lt_save_ifs
8055 MAGIC_CMD=$lt_save_MAGIC_CMD
76928056 ;;
76938057 esac
76948058 fi
76958059
7696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8060 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
76978061 if test -n "$MAGIC_CMD"; then
76988062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
76998063 $as_echo "$MAGIC_CMD" >&6; }
77148078
77158079 # Use C for the default configuration in the libtool script
77168080
7717 lt_save_CC="$CC"
8081 lt_save_CC=$CC
77188082 ac_ext=c
77198083 ac_cpp='$CPP $CPPFLAGS'
77208084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
77768140
77778141 lt_prog_compiler_no_builtin_flag=
77788142
7779 if test "$GCC" = yes; then
8143 if test yes = "$GCC"; then
77808144 case $cc_basename in
77818145 nvcc*)
77828146 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
77928156 lt_cv_prog_compiler_rtti_exceptions=no
77938157 ac_outfile=conftest.$ac_objext
77948158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7795 lt_compiler_flag="-fno-rtti -fno-exceptions"
8159 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
77968160 # Insert the option either (1) after the last *FLAGS variable, or
77978161 # (2) before a word containing "conftest.", or (3) at the end.
77988162 # Note that $ac_compile itself does not contain backslashes and begins
78228186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
78238187 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
78248188
7825 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8189 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
78268190 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
78278191 else
78288192 :
78408204 lt_prog_compiler_static=
78418205
78428206
7843 if test "$GCC" = yes; then
8207 if test yes = "$GCC"; then
78448208 lt_prog_compiler_wl='-Wl,'
78458209 lt_prog_compiler_static='-static'
78468210
78478211 case $host_os in
78488212 aix*)
78498213 # All AIX code is PIC.
7850 if test "$host_cpu" = ia64; then
8214 if test ia64 = "$host_cpu"; then
78518215 # AIX 5 now supports IA64 processor
78528216 lt_prog_compiler_static='-Bstatic'
78538217 fi
8218 lt_prog_compiler_pic='-fPIC'
78548219 ;;
78558220
78568221 amigaos*)
78618226 ;;
78628227 m68k)
78638228 # FIXME: we need at least 68020 code to build shared libraries, but
7864 # adding the `-m68020' flag to GCC prevents building anything better,
7865 # like `-m68040'.
8229 # adding the '-m68020' flag to GCC prevents building anything better,
8230 # like '-m68040'.
78668231 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
78678232 ;;
78688233 esac
78788243 # Although the cygwin gcc ignores -fPIC, still need this for old-style
78798244 # (--disable-auto-import) libraries
78808245 lt_prog_compiler_pic='-DDLL_EXPORT'
8246 case $host_os in
8247 os2*)
8248 lt_prog_compiler_static='$wl-static'
8249 ;;
8250 esac
78818251 ;;
78828252
78838253 darwin* | rhapsody*)
79488318 case $host_os in
79498319 aix*)
79508320 lt_prog_compiler_wl='-Wl,'
7951 if test "$host_cpu" = ia64; then
8321 if test ia64 = "$host_cpu"; then
79528322 # AIX 5 now supports IA64 processor
79538323 lt_prog_compiler_static='-Bstatic'
79548324 else
79568326 fi
79578327 ;;
79588328
8329 darwin* | rhapsody*)
8330 # PIC is the default on this platform
8331 # Common symbols not allowed in MH_DYLIB files
8332 lt_prog_compiler_pic='-fno-common'
8333 case $cc_basename in
8334 nagfor*)
8335 # NAG Fortran compiler
8336 lt_prog_compiler_wl='-Wl,-Wl,,'
8337 lt_prog_compiler_pic='-PIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 ;;
8340 esac
8341 ;;
8342
79598343 mingw* | cygwin* | pw32* | os2* | cegcc*)
79608344 # This hack is so that the source file can tell whether it is being
79618345 # built for inclusion in a dll (and should export symbols for example).
79628346 lt_prog_compiler_pic='-DDLL_EXPORT'
8347 case $host_os in
8348 os2*)
8349 lt_prog_compiler_static='$wl-static'
8350 ;;
8351 esac
79638352 ;;
79648353
79658354 hpux9* | hpux10* | hpux11*)
79758364 ;;
79768365 esac
79778366 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7978 lt_prog_compiler_static='${wl}-a ${wl}archive'
8367 lt_prog_compiler_static='$wl-a ${wl}archive'
79798368 ;;
79808369
79818370 irix5* | irix6* | nonstopux*)
79848373 lt_prog_compiler_static='-non_shared'
79858374 ;;
79868375
7987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8376 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
79888377 case $cc_basename in
7989 # old Intel for x86_64 which still supported -KPIC.
8378 # old Intel for x86_64, which still supported -KPIC.
79908379 ecc*)
79918380 lt_prog_compiler_wl='-Wl,'
79928381 lt_prog_compiler_pic='-KPIC'
80108399 lt_prog_compiler_wl='-Wl,-Wl,,'
80118400 lt_prog_compiler_pic='-PIC'
80128401 lt_prog_compiler_static='-Bstatic'
8402 ;;
8403 tcc*)
8404 # Fabrice Bellard et al's Tiny C Compiler
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_pic='-fPIC'
8407 lt_prog_compiler_static='-static'
80138408 ;;
80148409 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
80158410 # Portland Group compilers (*not* the Pentium gcc compiler,
81088503 ;;
81098504
81108505 sysv4*MP*)
8111 if test -d /usr/nec ;then
8506 if test -d /usr/nec; then
81128507 lt_prog_compiler_pic='-Kconform_pic'
81138508 lt_prog_compiler_static='-Bstatic'
81148509 fi
81378532 fi
81388533
81398534 case $host_os in
8140 # For platforms which do not support PIC, -DPIC is meaningless:
8535 # For platforms that do not support PIC, -DPIC is meaningless:
81418536 *djgpp*)
81428537 lt_prog_compiler_pic=
81438538 ;;
81698564 lt_cv_prog_compiler_pic_works=no
81708565 ac_outfile=conftest.$ac_objext
81718566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8172 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8567 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
81738568 # Insert the option either (1) after the last *FLAGS variable, or
81748569 # (2) before a word containing "conftest.", or (3) at the end.
81758570 # Note that $ac_compile itself does not contain backslashes and begins
81998594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
82008595 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
82018596
8202 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8597 if test yes = "$lt_cv_prog_compiler_pic_works"; then
82038598 case $lt_prog_compiler_pic in
82048599 "" | " "*) ;;
82058600 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
82318626 $as_echo_n "(cached) " >&6
82328627 else
82338628 lt_cv_prog_compiler_static_works=no
8234 save_LDFLAGS="$LDFLAGS"
8629 save_LDFLAGS=$LDFLAGS
82358630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
82368631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
82378632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
82508645 fi
82518646 fi
82528647 $RM -r conftest*
8253 LDFLAGS="$save_LDFLAGS"
8648 LDFLAGS=$save_LDFLAGS
82548649
82558650 fi
82568651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
82578652 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
82588653
8259 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8654 if test yes = "$lt_cv_prog_compiler_static_works"; then
82608655 :
82618656 else
82628657 lt_prog_compiler_static=
83768771
83778772
83788773
8379 hard_links="nottested"
8380 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8774 hard_links=nottested
8775 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
83818776 # do not overwrite the value of need_locks provided by the user
83828777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
83838778 $as_echo_n "checking if we can lock with hard links... " >&6; }
83898784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
83908785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
83918786 $as_echo "$hard_links" >&6; }
8392 if test "$hard_links" = no; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8394 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8787 if test no = "$hard_links"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8789 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
83958790 need_locks=warn
83968791 fi
83978792 else
84348829 # included in the symbol list
84358830 include_expsyms=
84368831 # exclude_expsyms can be an extended regexp of symbols to exclude
8437 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8438 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8439 # as well as any symbol that contains `d'.
8832 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8833 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8834 # as well as any symbol that contains 'd'.
84408835 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
84418836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
84428837 # platforms (ab)use it in PIC code, but their linkers get confused if
84518846 # FIXME: the MSVC++ port hasn't been tested in a loooong time
84528847 # When not using gcc, we currently assume that we are using
84538848 # Microsoft Visual C++.
8454 if test "$GCC" != yes; then
8849 if test yes != "$GCC"; then
84558850 with_gnu_ld=no
84568851 fi
84578852 ;;
84598854 # we just hope/assume this is gcc and not c89 (= MSVC++)
84608855 with_gnu_ld=yes
84618856 ;;
8462 openbsd*)
8857 openbsd* | bitrig*)
84638858 with_gnu_ld=no
84648859 ;;
84658860 esac
84698864 # On some targets, GNU ld is compatible enough with the native linker
84708865 # that we're better off using the native interface for both.
84718866 lt_use_gnu_ld_interface=no
8472 if test "$with_gnu_ld" = yes; then
8867 if test yes = "$with_gnu_ld"; then
84738868 case $host_os in
84748869 aix*)
84758870 # The AIX port of GNU ld has always aspired to compatibility
84918886 esac
84928887 fi
84938888
8494 if test "$lt_use_gnu_ld_interface" = yes; then
8889 if test yes = "$lt_use_gnu_ld_interface"; then
84958890 # If archive_cmds runs LD, not CC, wlarc should be empty
8496 wlarc='${wl}'
8891 wlarc='$wl'
84978892
84988893 # Set some defaults for GNU ld with shared library support. These
84998894 # are reset later if shared libraries are not supported. Putting them
85008895 # here allows them to be overridden if necessary.
85018896 runpath_var=LD_RUN_PATH
8502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8503 export_dynamic_flag_spec='${wl}--export-dynamic'
8897 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8898 export_dynamic_flag_spec='$wl--export-dynamic'
85048899 # ancient GNU ld didn't support --whole-archive et. al.
85058900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8506 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8901 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
85078902 else
85088903 whole_archive_flag_spec=
85098904 fi
85108905 supports_anon_versioning=no
8511 case `$LD -v 2>&1` in
8906 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
85128907 *GNU\ gold*) supports_anon_versioning=yes ;;
85138908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
85148909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
85218916 case $host_os in
85228917 aix[3-9]*)
85238918 # On AIX/PPC, the GNU linker is very broken
8524 if test "$host_cpu" != ia64; then
8919 if test ia64 != "$host_cpu"; then
85258920 ld_shlibs=no
85268921 cat <<_LT_EOF 1>&2
85278922
85408935 case $host_cpu in
85418936 powerpc)
85428937 # see comment about AmigaOS4 .so support
8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
85448939 archive_expsym_cmds=''
85458940 ;;
85468941 m68k)
85568951 allow_undefined_flag=unsupported
85578952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
85588953 # support --undefined. This deserves some investigation. FIXME
8559 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
85608955 else
85618956 ld_shlibs=no
85628957 fi
85668961 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
85678962 # as there is no search path for DLLs.
85688963 hardcode_libdir_flag_spec='-L$libdir'
8569 export_dynamic_flag_spec='${wl}--export-all-symbols'
8964 export_dynamic_flag_spec='$wl--export-all-symbols'
85708965 allow_undefined_flag=unsupported
85718966 always_export_symbols=no
85728967 enable_shared_with_static_runtimes=yes
85748969 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
85758970
85768971 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8578 # If the export-symbols file already is a .def file (1st line
8579 # is EXPORTS), use it as is; otherwise, prepend...
8580 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8581 cp $export_symbols $output_objdir/$soname.def;
8582 else
8583 echo EXPORTS > $output_objdir/$soname.def;
8584 cat $export_symbols >> $output_objdir/$soname.def;
8585 fi~
8586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8973 # If the export-symbols file already is a .def file, use it as
8974 # is; otherwise, prepend EXPORTS...
8975 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8976 cp $export_symbols $output_objdir/$soname.def;
8977 else
8978 echo EXPORTS > $output_objdir/$soname.def;
8979 cat $export_symbols >> $output_objdir/$soname.def;
8980 fi~
8981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
85878982 else
85888983 ld_shlibs=no
85898984 fi
85908985 ;;
85918986
85928987 haiku*)
8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
85948989 link_all_deplibs=yes
8990 ;;
8991
8992 os2*)
8993 hardcode_libdir_flag_spec='-L$libdir'
8994 hardcode_minus_L=yes
8995 allow_undefined_flag=unsupported
8996 shrext_cmds=.dll
8997 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8998 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8999 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9000 $ECHO EXPORTS >> $output_objdir/$libname.def~
9001 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9002 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9003 emximp -o $lib $output_objdir/$libname.def'
9004 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9005 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9006 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9007 $ECHO EXPORTS >> $output_objdir/$libname.def~
9008 prefix_cmds="$SED"~
9009 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9010 prefix_cmds="$prefix_cmds -e 1d";
9011 fi~
9012 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9013 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9014 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9015 emximp -o $lib $output_objdir/$libname.def'
9016 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9017 enable_shared_with_static_runtimes=yes
85959018 ;;
85969019
85979020 interix[3-9]*)
85989021 hardcode_direct=no
85999022 hardcode_shlibpath_var=no
8600 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8601 export_dynamic_flag_spec='${wl}-E'
9023 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9024 export_dynamic_flag_spec='$wl-E'
86029025 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
86039026 # Instead, shared libraries are loaded at an image base (0x10000000 by
86049027 # default) and relocated if they conflict, which is a slow very memory
86059028 # consuming and fragmenting process. To avoid this, we pick a random,
86069029 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
86079030 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8609 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'
9031 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9032 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'
86109033 ;;
86119034
86129035 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
86139036 tmp_diet=no
8614 if test "$host_os" = linux-dietlibc; then
9037 if test linux-dietlibc = "$host_os"; then
86159038 case $cc_basename in
86169039 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
86179040 esac
86189041 fi
86199042 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8620 && test "$tmp_diet" = no
9043 && test no = "$tmp_diet"
86219044 then
86229045 tmp_addflag=' $pic_flag'
86239046 tmp_sharedflag='-shared'
86249047 case $cc_basename,$host_cpu in
86259048 pgcc*) # Portland Group C compiler
8626 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'
9049 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'
86279050 tmp_addflag=' $pic_flag'
86289051 ;;
86299052 pgf77* | pgf90* | pgf95* | pgfortran*)
86309053 # Portland Group f77 and f90 compilers
8631 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'
9054 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'
86329055 tmp_addflag=' $pic_flag -Mnomain' ;;
86339056 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
86349057 tmp_addflag=' -i_dynamic' ;;
86399062 lf95*) # Lahey Fortran 8.1
86409063 whole_archive_flag_spec=
86419064 tmp_sharedflag='--shared' ;;
9065 nagfor*) # NAGFOR 5.3
9066 tmp_sharedflag='-Wl,-shared' ;;
86429067 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
86439068 tmp_sharedflag='-qmkshrobj'
86449069 tmp_addflag= ;;
86459070 nvcc*) # Cuda Compiler Driver 2.2
8646 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'
9071 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'
86479072 compiler_needs_object=yes
86489073 ;;
86499074 esac
86509075 case `$CC -V 2>&1 | sed 5q` in
86519076 *Sun\ C*) # Sun C 5.9
8652 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'
9077 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'
86539078 compiler_needs_object=yes
86549079 tmp_sharedflag='-G' ;;
86559080 *Sun\ F*) # Sun Fortran 8.3
86569081 tmp_sharedflag='-G' ;;
86579082 esac
8658 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659
8660 if test "x$supports_anon_versioning" = xyes; then
9083 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9084
9085 if test yes = "$supports_anon_versioning"; then
86619086 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8663 echo "local: *; };" >> $output_objdir/$libname.ver~
8664 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9088 echo "local: *; };" >> $output_objdir/$libname.ver~
9089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
86659090 fi
86669091
86679092 case $cc_basename in
9093 tcc*)
9094 export_dynamic_flag_spec='-rdynamic'
9095 ;;
86689096 xlf* | bgf* | bgxlf* | mpixlf*)
86699097 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
86709098 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9099 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
86729100 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8673 if test "x$supports_anon_versioning" = xyes; then
9101 if test yes = "$supports_anon_versioning"; then
86749102 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8676 echo "local: *; };" >> $output_objdir/$libname.ver~
8677 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9103 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9104 echo "local: *; };" >> $output_objdir/$libname.ver~
9105 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
86789106 fi
86799107 ;;
86809108 esac
86889116 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
86899117 wlarc=
86909118 else
8691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9120 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
86939121 fi
86949122 ;;
86959123
87079135
87089136 _LT_EOF
87099137 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9139 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
87129140 else
87139141 ld_shlibs=no
87149142 fi
87209148 ld_shlibs=no
87219149 cat <<_LT_EOF 1>&2
87229150
8723 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9151 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
87249152 *** reliably create shared libraries on SCO systems. Therefore, libtool
87259153 *** is disabling shared libraries support. We urge you to upgrade GNU
87269154 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
87359163 # DT_RUNPATH tag from executables and libraries. But doing so
87369164 # requires that you compile everything twice, which is a pain.
87379165 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9166 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
87419169 else
87429170 ld_shlibs=no
87439171 fi
87549182
87559183 *)
87569184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9186 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
87599187 else
87609188 ld_shlibs=no
87619189 fi
87629190 ;;
87639191 esac
87649192
8765 if test "$ld_shlibs" = no; then
9193 if test no = "$ld_shlibs"; then
87669194 runpath_var=
87679195 hardcode_libdir_flag_spec=
87689196 export_dynamic_flag_spec=
87789206 # Note: this linker hardcodes the directories in LIBPATH if there
87799207 # are no directories specified by -L.
87809208 hardcode_minus_L=yes
8781 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9209 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
87829210 # Neither direct hardcoding nor static linking is supported with a
87839211 # broken collect2.
87849212 hardcode_direct=unsupported
87869214 ;;
87879215
87889216 aix[4-9]*)
8789 if test "$host_cpu" = ia64; then
9217 if test ia64 = "$host_cpu"; then
87909218 # On IA64, the linker does run time linking by default, so we don't
87919219 # have to do anything special.
87929220 aix_use_runtimelinking=no
87939221 exp_sym_flag='-Bexport'
8794 no_entry_flag=""
9222 no_entry_flag=
87959223 else
87969224 # If we're using GNU nm, then we don't want the "-C" option.
8797 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8798 # Also, AIX nm treats weak defined symbols like other global
8799 # defined symbols, whereas GNU nm marks them as "W".
9225 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9226 # Without the "-l" option, or with the "-B" option, AIX nm treats
9227 # weak defined symbols like other global defined symbols, whereas
9228 # GNU nm marks them as "W".
9229 # While the 'weak' keyword is ignored in the Export File, we need
9230 # it in the Import File for the 'aix-soname' feature, so we have
9231 # to replace the "-B" option with "-P" for AIX nm.
88009232 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8801 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'
9233 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'
88029234 else
8803 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'
9235 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'
88049236 fi
88059237 aix_use_runtimelinking=no
88069238
88079239 # Test if we are trying to use run time linking or normal
88089240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8809 # need to do runtime linking.
9241 # have runtime linking enabled, and use it for executables.
9242 # For shared libraries, we enable/disable runtime linking
9243 # depending on the kind of the shared library created -
9244 # when "with_aix_soname,aix_use_runtimelinking" is:
9245 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9246 # "aix,yes" lib.so shared, rtl:yes, for executables
9247 # lib.a static archive
9248 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9249 # lib.a(lib.so.V) shared, rtl:no, for executables
9250 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9251 # lib.a(lib.so.V) shared, rtl:no
9252 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9253 # lib.a static archive
88109254 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
88119255 for ld_flag in $LDFLAGS; do
8812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9256 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
88139257 aix_use_runtimelinking=yes
88149258 break
88159259 fi
88169260 done
9261 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9262 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9263 # so we don't have lib.a shared libs to link our executables.
9264 # We have to force runtime linking in this case.
9265 aix_use_runtimelinking=yes
9266 LDFLAGS="$LDFLAGS -Wl,-brtl"
9267 fi
88179268 ;;
88189269 esac
88199270
88329283 hardcode_direct_absolute=yes
88339284 hardcode_libdir_separator=':'
88349285 link_all_deplibs=yes
8835 file_list_spec='${wl}-f,'
8836
8837 if test "$GCC" = yes; then
9286 file_list_spec='$wl-f,'
9287 case $with_aix_soname,$aix_use_runtimelinking in
9288 aix,*) ;; # traditional, no import file
9289 svr4,* | *,yes) # use import file
9290 # The Import File defines what to hardcode.
9291 hardcode_direct=no
9292 hardcode_direct_absolute=no
9293 ;;
9294 esac
9295
9296 if test yes = "$GCC"; then
88389297 case $host_os in aix4.[012]|aix4.[012].*)
88399298 # We only want to do this on AIX 4.2 and lower, the check
88409299 # below for broken collect2 doesn't work under 4.3+
8841 collect2name=`${CC} -print-prog-name=collect2`
9300 collect2name=`$CC -print-prog-name=collect2`
88429301 if test -f "$collect2name" &&
88439302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
88449303 then
88579316 ;;
88589317 esac
88599318 shared_flag='-shared'
8860 if test "$aix_use_runtimelinking" = yes; then
8861 shared_flag="$shared_flag "'${wl}-G'
9319 if test yes = "$aix_use_runtimelinking"; then
9320 shared_flag="$shared_flag "'$wl-G'
88629321 fi
9322 # Need to ensure runtime linking is disabled for the traditional
9323 # shared library, or the linker may eventually find shared libraries
9324 # /with/ Import File - we do not want to mix them.
9325 shared_flag_aix='-shared'
9326 shared_flag_svr4='-shared $wl-G'
88639327 else
88649328 # not using gcc
8865 if test "$host_cpu" = ia64; then
9329 if test ia64 = "$host_cpu"; then
88669330 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
88679331 # chokes on -Wl,-G. The following line is correct:
88689332 shared_flag='-G'
88699333 else
8870 if test "$aix_use_runtimelinking" = yes; then
8871 shared_flag='${wl}-G'
9334 if test yes = "$aix_use_runtimelinking"; then
9335 shared_flag='$wl-G'
88729336 else
8873 shared_flag='${wl}-bM:SRE'
9337 shared_flag='$wl-bM:SRE'
88749338 fi
9339 shared_flag_aix='$wl-bM:SRE'
9340 shared_flag_svr4='$wl-G'
88759341 fi
88769342 fi
88779343
8878 export_dynamic_flag_spec='${wl}-bexpall'
9344 export_dynamic_flag_spec='$wl-bexpall'
88799345 # It seems that -bexpall does not export symbols beginning with
88809346 # underscore (_), so it is better to generate a list of symbols to export.
88819347 always_export_symbols=yes
8882 if test "$aix_use_runtimelinking" = yes; then
9348 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
88839349 # Warning - without using the other runtime loading flags (-brtl),
88849350 # -berok will link without error, but may produce a broken library.
88859351 allow_undefined_flag='-berok'
88869352 # Determine the default libpath from the value encoded in an
88879353 # empty executable.
8888 if test "${lt_cv_aix_libpath+set}" = set; then
9354 if test set = "${lt_cv_aix_libpath+set}"; then
88899355 aix_libpath=$lt_cv_aix_libpath
88909356 else
88919357 if ${lt_cv_aix_libpath_+:} false; then :
89209386 rm -f core conftest.err conftest.$ac_objext \
89219387 conftest$ac_exeext conftest.$ac_ext
89229388 if test -z "$lt_cv_aix_libpath_"; then
8923 lt_cv_aix_libpath_="/usr/lib:/lib"
9389 lt_cv_aix_libpath_=/usr/lib:/lib
89249390 fi
89259391
89269392 fi
89289394 aix_libpath=$lt_cv_aix_libpath_
89299395 fi
89309396
8931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8932 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"
9397 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9398 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
89339399 else
8934 if test "$host_cpu" = ia64; then
8935 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9400 if test ia64 = "$host_cpu"; then
9401 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
89369402 allow_undefined_flag="-z nodefs"
8937 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"
9403 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"
89389404 else
89399405 # Determine the default libpath from the value encoded in an
89409406 # empty executable.
8941 if test "${lt_cv_aix_libpath+set}" = set; then
9407 if test set = "${lt_cv_aix_libpath+set}"; then
89429408 aix_libpath=$lt_cv_aix_libpath
89439409 else
89449410 if ${lt_cv_aix_libpath_+:} false; then :
89739439 rm -f core conftest.err conftest.$ac_objext \
89749440 conftest$ac_exeext conftest.$ac_ext
89759441 if test -z "$lt_cv_aix_libpath_"; then
8976 lt_cv_aix_libpath_="/usr/lib:/lib"
9442 lt_cv_aix_libpath_=/usr/lib:/lib
89779443 fi
89789444
89799445 fi
89819447 aix_libpath=$lt_cv_aix_libpath_
89829448 fi
89839449
8984 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9450 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
89859451 # Warning - without using the other run time loading flags,
89869452 # -berok will link without error, but may produce a broken library.
8987 no_undefined_flag=' ${wl}-bernotok'
8988 allow_undefined_flag=' ${wl}-berok'
8989 if test "$with_gnu_ld" = yes; then
9453 no_undefined_flag=' $wl-bernotok'
9454 allow_undefined_flag=' $wl-berok'
9455 if test yes = "$with_gnu_ld"; then
89909456 # We only use this code for GNU lds that support --whole-archive.
8991 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9457 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
89929458 else
89939459 # Exported symbols can be pulled into shared objects from archives
89949460 whole_archive_flag_spec='$convenience'
89959461 fi
89969462 archive_cmds_need_lc=yes
8997 # This is similar to how AIX traditionally builds its shared libraries.
8998 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'
9463 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9464 # -brtl affects multiple linker settings, -berok does not and is overridden later
9465 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9466 if test svr4 != "$with_aix_soname"; then
9467 # This is similar to how AIX traditionally builds its shared libraries.
9468 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'
9469 fi
9470 if test aix != "$with_aix_soname"; then
9471 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'
9472 else
9473 # used by -dlpreopen to get the symbols
9474 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9475 fi
9476 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
89999477 fi
90009478 fi
90019479 ;;
90049482 case $host_cpu in
90059483 powerpc)
90069484 # see comment about AmigaOS4 .so support
9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
90089486 archive_expsym_cmds=''
90099487 ;;
90109488 m68k)
90349512 # Tell ltmain to make .lib files, not .a files.
90359513 libext=lib
90369514 # Tell ltmain to make .dll files, not .so files.
9037 shrext_cmds=".dll"
9515 shrext_cmds=.dll
90389516 # FIXME: Setting linknames here is a bad hack.
9039 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9040 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9041 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9042 else
9043 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9044 fi~
9045 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9046 linknames='
9517 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9518 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9519 cp "$export_symbols" "$output_objdir/$soname.def";
9520 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9521 else
9522 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9523 fi~
9524 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9525 linknames='
90479526 # The linker will not automatically build a static lib if we build a DLL.
90489527 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
90499528 enable_shared_with_static_runtimes=yes
90529531 # Don't use ranlib
90539532 old_postinstall_cmds='chmod 644 $oldlib'
90549533 postlink_cmds='lt_outputfile="@OUTPUT@"~
9055 lt_tool_outputfile="@TOOL_OUTPUT@"~
9056 case $lt_outputfile in
9057 *.exe|*.EXE) ;;
9058 *)
9059 lt_outputfile="$lt_outputfile.exe"
9060 lt_tool_outputfile="$lt_tool_outputfile.exe"
9061 ;;
9062 esac~
9063 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9064 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9065 $RM "$lt_outputfile.manifest";
9066 fi'
9534 lt_tool_outputfile="@TOOL_OUTPUT@"~
9535 case $lt_outputfile in
9536 *.exe|*.EXE) ;;
9537 *)
9538 lt_outputfile=$lt_outputfile.exe
9539 lt_tool_outputfile=$lt_tool_outputfile.exe
9540 ;;
9541 esac~
9542 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9543 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9544 $RM "$lt_outputfile.manifest";
9545 fi'
90679546 ;;
90689547 *)
90699548 # Assume MSVC wrapper
90729551 # Tell ltmain to make .lib files, not .a files.
90739552 libext=lib
90749553 # Tell ltmain to make .dll files, not .so files.
9075 shrext_cmds=".dll"
9554 shrext_cmds=.dll
90769555 # FIXME: Setting linknames here is a bad hack.
90779556 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
90789557 # The linker will automatically build a .lib file if we build a DLL.
90919570 hardcode_direct=no
90929571 hardcode_automatic=yes
90939572 hardcode_shlibpath_var=unsupported
9094 if test "$lt_cv_ld_force_load" = "yes"; then
9095 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\"`'
9573 if test yes = "$lt_cv_ld_force_load"; then
9574 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\"`'
90969575
90979576 else
90989577 whole_archive_flag_spec=''
90999578 fi
91009579 link_all_deplibs=yes
9101 allow_undefined_flag="$_lt_dar_allow_undefined"
9580 allow_undefined_flag=$_lt_dar_allow_undefined
91029581 case $cc_basename in
9103 ifort*) _lt_dar_can_shared=yes ;;
9582 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
91049583 *) _lt_dar_can_shared=$GCC ;;
91059584 esac
9106 if test "$_lt_dar_can_shared" = "yes"; then
9585 if test yes = "$_lt_dar_can_shared"; then
91079586 output_verbose_link_cmd=func_echo_all
9108 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9109 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9110 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}"
9111 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}"
9587 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9588 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9589 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"
9590 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"
91129591
91139592 else
91149593 ld_shlibs=no
91509629 ;;
91519630
91529631 hpux9*)
9153 if test "$GCC" = yes; then
9154 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'
9632 if test yes = "$GCC"; then
9633 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'
91559634 else
9156 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'
9635 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'
91579636 fi
9158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9637 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
91599638 hardcode_libdir_separator=:
91609639 hardcode_direct=yes
91619640
91629641 # hardcode_minus_L: Not really in the search PATH,
91639642 # but as the default location of the library.
91649643 hardcode_minus_L=yes
9165 export_dynamic_flag_spec='${wl}-E'
9644 export_dynamic_flag_spec='$wl-E'
91669645 ;;
91679646
91689647 hpux10*)
9169 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9170 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9648 if test yes,no = "$GCC,$with_gnu_ld"; then
9649 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
91719650 else
91729651 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
91739652 fi
9174 if test "$with_gnu_ld" = no; then
9175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9653 if test no = "$with_gnu_ld"; then
9654 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
91769655 hardcode_libdir_separator=:
91779656 hardcode_direct=yes
91789657 hardcode_direct_absolute=yes
9179 export_dynamic_flag_spec='${wl}-E'
9658 export_dynamic_flag_spec='$wl-E'
91809659 # hardcode_minus_L: Not really in the search PATH,
91819660 # but as the default location of the library.
91829661 hardcode_minus_L=yes
91849663 ;;
91859664
91869665 hpux11*)
9187 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9666 if test yes,no = "$GCC,$with_gnu_ld"; then
91889667 case $host_cpu in
91899668 hppa*64*)
9190 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
91919670 ;;
91929671 ia64*)
9193 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
91949673 ;;
91959674 *)
9196 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9675 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
91979676 ;;
91989677 esac
91999678 else
92009679 case $host_cpu in
92019680 hppa*64*)
9202 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
92039682 ;;
92049683 ia64*)
9205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9684 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
92069685 ;;
92079686 *)
92089687
92149693 $as_echo_n "(cached) " >&6
92159694 else
92169695 lt_cv_prog_compiler__b=no
9217 save_LDFLAGS="$LDFLAGS"
9696 save_LDFLAGS=$LDFLAGS
92189697 LDFLAGS="$LDFLAGS -b"
92199698 echo "$lt_simple_link_test_code" > conftest.$ac_ext
92209699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
92339712 fi
92349713 fi
92359714 $RM -r conftest*
9236 LDFLAGS="$save_LDFLAGS"
9715 LDFLAGS=$save_LDFLAGS
92379716
92389717 fi
92399718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
92409719 $as_echo "$lt_cv_prog_compiler__b" >&6; }
92419720
9242 if test x"$lt_cv_prog_compiler__b" = xyes; then
9243 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9721 if test yes = "$lt_cv_prog_compiler__b"; then
9722 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
92449723 else
92459724 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
92469725 fi
92489727 ;;
92499728 esac
92509729 fi
9251 if test "$with_gnu_ld" = no; then
9252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9730 if test no = "$with_gnu_ld"; then
9731 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
92539732 hardcode_libdir_separator=:
92549733
92559734 case $host_cpu in
92609739 *)
92619740 hardcode_direct=yes
92629741 hardcode_direct_absolute=yes
9263 export_dynamic_flag_spec='${wl}-E'
9742 export_dynamic_flag_spec='$wl-E'
92649743
92659744 # hardcode_minus_L: Not really in the search PATH,
92669745 # but as the default location of the library.
92719750 ;;
92729751
92739752 irix5* | irix6* | nonstopux*)
9274 if test "$GCC" = yes; then
9275 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'
9753 if test yes = "$GCC"; then
9754 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'
92769755 # Try to use the -exported_symbol ld option, if it does not
92779756 # work, assume that -exports_file does not work either and
92789757 # implicitly export all symbols.
92829761 if ${lt_cv_irix_exported_symbol+:} false; then :
92839762 $as_echo_n "(cached) " >&6
92849763 else
9285 save_LDFLAGS="$LDFLAGS"
9286 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9764 save_LDFLAGS=$LDFLAGS
9765 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
92879766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92889767 /* end confdefs.h. */
92899768 int foo (void) { return 0; }
92959774 fi
92969775 rm -f core conftest.err conftest.$ac_objext \
92979776 conftest$ac_exeext conftest.$ac_ext
9298 LDFLAGS="$save_LDFLAGS"
9777 LDFLAGS=$save_LDFLAGS
92999778 fi
93009779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
93019780 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9302 if test "$lt_cv_irix_exported_symbol" = yes; then
9303 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'
9781 if test yes = "$lt_cv_irix_exported_symbol"; then
9782 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'
93049783 fi
93059784 else
9306 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'
9307 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'
9785 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'
9786 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'
93089787 fi
93099788 archive_cmds_need_lc='no'
9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9789 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
93119790 hardcode_libdir_separator=:
93129791 inherit_rpath=yes
93139792 link_all_deplibs=yes
9793 ;;
9794
9795 linux*)
9796 case $cc_basename in
9797 tcc*)
9798 # Fabrice Bellard et al's Tiny C Compiler
9799 ld_shlibs=yes
9800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9801 ;;
9802 esac
93149803 ;;
93159804
93169805 netbsd*)
93279816 newsos6)
93289817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
93299818 hardcode_direct=yes
9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
93319820 hardcode_libdir_separator=:
93329821 hardcode_shlibpath_var=no
93339822 ;;
93359824 *nto* | *qnx*)
93369825 ;;
93379826
9338 openbsd*)
9827 openbsd* | bitrig*)
93399828 if test -f /usr/libexec/ld.so; then
93409829 hardcode_direct=yes
93419830 hardcode_shlibpath_var=no
93429831 hardcode_direct_absolute=yes
9343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
93449833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9345 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347 export_dynamic_flag_spec='${wl}-E'
9834 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9835 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9836 export_dynamic_flag_spec='$wl-E'
93489837 else
9349 case $host_os in
9350 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_libdir_flag_spec='-R$libdir'
9353 ;;
9354 *)
9355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9357 ;;
9358 esac
9838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9839 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
93599840 fi
93609841 else
93619842 ld_shlibs=no
93669847 hardcode_libdir_flag_spec='-L$libdir'
93679848 hardcode_minus_L=yes
93689849 allow_undefined_flag=unsupported
9369 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'
9370 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9850 shrext_cmds=.dll
9851 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9852 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9853 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9854 $ECHO EXPORTS >> $output_objdir/$libname.def~
9855 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9856 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9857 emximp -o $lib $output_objdir/$libname.def'
9858 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9859 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9860 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9861 $ECHO EXPORTS >> $output_objdir/$libname.def~
9862 prefix_cmds="$SED"~
9863 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9864 prefix_cmds="$prefix_cmds -e 1d";
9865 fi~
9866 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9867 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9868 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9869 emximp -o $lib $output_objdir/$libname.def'
9870 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9871 enable_shared_with_static_runtimes=yes
93719872 ;;
93729873
93739874 osf3*)
9374 if test "$GCC" = yes; then
9375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9376 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'
9875 if test yes = "$GCC"; then
9876 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9877 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'
93779878 else
93789879 allow_undefined_flag=' -expect_unresolved \*'
9379 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'
9880 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'
93809881 fi
93819882 archive_cmds_need_lc='no'
9382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9883 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
93839884 hardcode_libdir_separator=:
93849885 ;;
93859886
93869887 osf4* | osf5*) # as osf3* with the addition of -msym flag
9387 if test "$GCC" = yes; then
9388 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9389 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'
9390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9888 if test yes = "$GCC"; then
9889 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9890 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'
9891 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
93919892 else
93929893 allow_undefined_flag=' -expect_unresolved \*'
9393 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'
9894 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'
93949895 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~
9395 $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'
9896 $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'
93969897
93979898 # Both c and cxx compiler support -rpath directly
93989899 hardcode_libdir_flag_spec='-rpath $libdir'
94039904
94049905 solaris*)
94059906 no_undefined_flag=' -z defs'
9406 if test "$GCC" = yes; then
9407 wlarc='${wl}'
9408 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9907 if test yes = "$GCC"; then
9908 wlarc='$wl'
9909 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
94099910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9410 $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'
9911 $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'
94119912 else
94129913 case `$CC -V 2>&1` in
94139914 *"Compilers 5.0"*)
94149915 wlarc=''
9415 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9916 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
94169917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9417 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9918 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
94189919 ;;
94199920 *)
9420 wlarc='${wl}'
9421 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9921 wlarc='$wl'
9922 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
94229923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9423 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9924 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
94249925 ;;
94259926 esac
94269927 fi
94309931 solaris2.[0-5] | solaris2.[0-5].*) ;;
94319932 *)
94329933 # The compiler driver will combine and reorder linker options,
9433 # but understands `-z linker_flag'. GCC discards it without `$wl',
9934 # but understands '-z linker_flag'. GCC discards it without '$wl',
94349935 # but is careful enough not to reorder.
94359936 # Supported since Solaris 2.6 (maybe 2.5.1?)
9436 if test "$GCC" = yes; then
9437 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9937 if test yes = "$GCC"; then
9938 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
94389939 else
94399940 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
94409941 fi
94449945 ;;
94459946
94469947 sunos4*)
9447 if test "x$host_vendor" = xsequent; then
9948 if test sequent = "$host_vendor"; then
94489949 # Use $CC to link under sequent, because it throws in some extra .o
94499950 # files that make .init and .fini sections work.
9450 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
94519952 else
94529953 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
94539954 fi
94969997 ;;
94979998
94989999 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9499 no_undefined_flag='${wl}-z,text'
10000 no_undefined_flag='$wl-z,text'
950010001 archive_cmds_need_lc=no
950110002 hardcode_shlibpath_var=no
950210003 runpath_var='LD_RUN_PATH'
950310004
9504 if test "$GCC" = yes; then
9505 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10005 if test yes = "$GCC"; then
10006 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
950710008 else
9508 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
951010011 fi
951110012 ;;
951210013
951310014 sysv5* | sco3.2v5* | sco5v6*)
9514 # Note: We can NOT use -z defs as we might desire, because we do not
10015 # Note: We CANNOT use -z defs as we might desire, because we do not
951510016 # link with -lc, and that would cause any symbols used from libc to
951610017 # always be unresolved, which means just about no library would
951710018 # ever link correctly. If we're not using GNU ld we use -z text
951810019 # though, which does catch some bad symbols but isn't as heavy-handed
951910020 # as -z defs.
9520 no_undefined_flag='${wl}-z,text'
9521 allow_undefined_flag='${wl}-z,nodefs'
10021 no_undefined_flag='$wl-z,text'
10022 allow_undefined_flag='$wl-z,nodefs'
952210023 archive_cmds_need_lc=no
952310024 hardcode_shlibpath_var=no
9524 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10025 hardcode_libdir_flag_spec='$wl-R,$libdir'
952510026 hardcode_libdir_separator=':'
952610027 link_all_deplibs=yes
9527 export_dynamic_flag_spec='${wl}-Bexport'
10028 export_dynamic_flag_spec='$wl-Bexport'
952810029 runpath_var='LD_RUN_PATH'
952910030
9530 if test "$GCC" = yes; then
9531 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 if test yes = "$GCC"; then
10032 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
953310034 else
9534 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
953610037 fi
953710038 ;;
953810039
954710048 ;;
954810049 esac
954910050
9550 if test x$host_vendor = xsni; then
10051 if test sni = "$host_vendor"; then
955110052 case $host in
955210053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9553 export_dynamic_flag_spec='${wl}-Blargedynsym'
10054 export_dynamic_flag_spec='$wl-Blargedynsym'
955410055 ;;
955510056 esac
955610057 fi
955810059
955910060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
956010061 $as_echo "$ld_shlibs" >&6; }
9561 test "$ld_shlibs" = no && can_build_shared=no
10062 test no = "$ld_shlibs" && can_build_shared=no
956210063
956310064 with_gnu_ld=$with_gnu_ld
956410065
958410085 # Assume -lc should be added
958510086 archive_cmds_need_lc=yes
958610087
9587 if test "$enable_shared" = yes && test "$GCC" = yes; then
10088 if test yes,yes = "$GCC,$enable_shared"; then
958810089 case $archive_cmds in
958910090 *'~'*)
959010091 # FIXME: we may have to deal with multi-command sequences.
979910300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
980010301 $as_echo_n "checking dynamic linker characteristics... " >&6; }
980110302
9802 if test "$GCC" = yes; then
10303 if test yes = "$GCC"; then
980310304 case $host_os in
9804 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9805 *) lt_awk_arg="/^libraries:/" ;;
10305 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10306 *) lt_awk_arg='/^libraries:/' ;;
980610307 esac
980710308 case $host_os in
9808 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9809 *) lt_sed_strip_eq="s,=/,/,g" ;;
10309 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10310 *) lt_sed_strip_eq='s|=/|/|g' ;;
981010311 esac
981110312 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
981210313 case $lt_search_path_spec in
982210323 ;;
982310324 esac
982410325 # Ok, now we have the path, separated by spaces, we can step through it
9825 # and add multilib dir if necessary.
10326 # and add multilib dir if necessary...
982610327 lt_tmp_lt_search_path_spec=
9827 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10328 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10329 # ...but if some path component already ends with the multilib dir we assume
10330 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10331 case "$lt_multi_os_dir; $lt_search_path_spec " in
10332 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10333 lt_multi_os_dir=
10334 ;;
10335 esac
982810336 for lt_sys_path in $lt_search_path_spec; do
9829 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9830 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9831 else
10337 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10338 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10339 elif test -n "$lt_multi_os_dir"; then
983210340 test -d "$lt_sys_path" && \
983310341 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
983410342 fi
983510343 done
983610344 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9837 BEGIN {RS=" "; FS="/|\n";} {
9838 lt_foo="";
9839 lt_count=0;
10345 BEGIN {RS = " "; FS = "/|\n";} {
10346 lt_foo = "";
10347 lt_count = 0;
984010348 for (lt_i = NF; lt_i > 0; lt_i--) {
984110349 if ($lt_i != "" && $lt_i != ".") {
984210350 if ($lt_i == "..") {
984310351 lt_count++;
984410352 } else {
984510353 if (lt_count == 0) {
9846 lt_foo="/" $lt_i lt_foo;
10354 lt_foo = "/" $lt_i lt_foo;
984710355 } else {
984810356 lt_count--;
984910357 }
985710365 # for these hosts.
985810366 case $host_os in
985910367 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9860 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10368 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
986110369 esac
986210370 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
986310371 else
986610374 library_names_spec=
986710375 libname_spec='lib$name'
986810376 soname_spec=
9869 shrext_cmds=".so"
10377 shrext_cmds=.so
987010378 postinstall_cmds=
987110379 postuninstall_cmds=
987210380 finish_cmds=
988310391 # flags to be left without arguments
988410392 need_version=unknown
988510393
10394
10395
988610396 case $host_os in
988710397 aix3*)
988810398 version_type=linux # correct to gnu/linux during the next big refactor
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10399 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
989010400 shlibpath_var=LIBPATH
989110401
989210402 # AIX 3 has no versioning support, so we append a major version to the name.
9893 soname_spec='${libname}${release}${shared_ext}$major'
10403 soname_spec='$libname$release$shared_ext$major'
989410404 ;;
989510405
989610406 aix[4-9]*)
989810408 need_lib_prefix=no
989910409 need_version=no
990010410 hardcode_into_libs=yes
9901 if test "$host_cpu" = ia64; then
10411 if test ia64 = "$host_cpu"; then
990210412 # AIX 5 supports IA64
9903 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10413 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
990410414 shlibpath_var=LD_LIBRARY_PATH
990510415 else
990610416 # With GCC up to 2.95.x, collect2 would create an import file
990710417 # for dependence libraries. The import file would start with
9908 # the line `#! .'. This would cause the generated library to
9909 # depend on `.', always an invalid library. This was fixed in
10418 # the line '#! .'. This would cause the generated library to
10419 # depend on '.', always an invalid library. This was fixed in
991010420 # development snapshots of GCC prior to 3.0.
991110421 case $host_os in
991210422 aix4 | aix4.[01] | aix4.[01].*)
991310423 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
991410424 echo ' yes '
9915 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10425 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
991610426 :
991710427 else
991810428 can_build_shared=no
991910429 fi
992010430 ;;
992110431 esac
9922 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10432 # Using Import Files as archive members, it is possible to support
10433 # filename-based versioning of shared library archives on AIX. While
10434 # this would work for both with and without runtime linking, it will
10435 # prevent static linking of such archives. So we do filename-based
10436 # shared library versioning with .so extension only, which is used
10437 # when both runtime linking and shared linking is enabled.
10438 # Unfortunately, runtime linking may impact performance, so we do
10439 # not want this to be the default eventually. Also, we use the
10440 # versioned .so libs for executables only if there is the -brtl
10441 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10442 # To allow for filename-based versioning support, we need to create
10443 # libNAME.so.V as an archive file, containing:
10444 # *) an Import File, referring to the versioned filename of the
10445 # archive as well as the shared archive member, telling the
10446 # bitwidth (32 or 64) of that shared object, and providing the
10447 # list of exported symbols of that shared object, eventually
10448 # decorated with the 'weak' keyword
10449 # *) the shared object with the F_LOADONLY flag set, to really avoid
10450 # it being seen by the linker.
10451 # At run time we better use the real file rather than another symlink,
10452 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10453
10454 case $with_aix_soname,$aix_use_runtimelinking in
10455 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
992310456 # soname into executable. Probably we can add versioning support to
992410457 # collect2, so additional links can be useful in future.
9925 if test "$aix_use_runtimelinking" = yes; then
10458 aix,yes) # traditional libtool
10459 dynamic_linker='AIX unversionable lib.so'
992610460 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
992710461 # instead of lib<name>.a to let people know that these are not
992810462 # typical AIX shared libraries.
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 else
10463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10464 ;;
10465 aix,no) # traditional AIX only
10466 dynamic_linker='AIX lib.a(lib.so.V)'
993110467 # We preserve .a as extension for shared libraries through AIX4.2
993210468 # and later when we are not doing run time linking.
9933 library_names_spec='${libname}${release}.a $libname.a'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 fi
10469 library_names_spec='$libname$release.a $libname.a'
10470 soname_spec='$libname$release$shared_ext$major'
10471 ;;
10472 svr4,*) # full svr4 only
10473 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10474 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10475 # We do not specify a path in Import Files, so LIBPATH fires.
10476 shlibpath_overrides_runpath=yes
10477 ;;
10478 *,yes) # both, prefer svr4
10479 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10480 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10481 # unpreferred sharedlib libNAME.a needs extra handling
10482 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"'
10483 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"'
10484 # We do not specify a path in Import Files, so LIBPATH fires.
10485 shlibpath_overrides_runpath=yes
10486 ;;
10487 *,no) # both, prefer aix
10488 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10489 library_names_spec='$libname$release.a $libname.a'
10490 soname_spec='$libname$release$shared_ext$major'
10491 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10492 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)'
10493 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"'
10494 ;;
10495 esac
993610496 shlibpath_var=LIBPATH
993710497 fi
993810498 ;;
994210502 powerpc)
994310503 # Since July 2007 AmigaOS4 officially supports .so libraries.
994410504 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
994610506 ;;
994710507 m68k)
994810508 library_names_spec='$libname.ixlibrary $libname.a'
994910509 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9950 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'
10510 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'
995110511 ;;
995210512 esac
995310513 ;;
995410514
995510515 beos*)
9956 library_names_spec='${libname}${shared_ext}'
10516 library_names_spec='$libname$shared_ext'
995710517 dynamic_linker="$host_os ld.so"
995810518 shlibpath_var=LIBRARY_PATH
995910519 ;;
996110521 bsdi[45]*)
996210522 version_type=linux # correct to gnu/linux during the next big refactor
996310523 need_version=no
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
10524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10525 soname_spec='$libname$release$shared_ext$major'
996610526 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
996710527 shlibpath_var=LD_LIBRARY_PATH
996810528 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
997410534
997510535 cygwin* | mingw* | pw32* | cegcc*)
997610536 version_type=windows
9977 shrext_cmds=".dll"
10537 shrext_cmds=.dll
997810538 need_version=no
997910539 need_lib_prefix=no
998010540
998310543 # gcc
998410544 library_names_spec='$libname.dll.a'
998510545 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9986 postinstall_cmds='base_file=`basename \${file}`~
9987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10546 postinstall_cmds='base_file=`basename \$file`~
10547 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
998810548 dldir=$destdir/`dirname \$dlpath`~
998910549 test -d \$dldir || mkdir -p \$dldir~
999010550 $install_prog $dir/$dlname \$dldir/$dlname~
1000010560 case $host_os in
1000110561 cygwin*)
1000210562 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10563 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1000410564
1000510565 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1000610566 ;;
1000710567 mingw* | cegcc*)
1000810568 # MinGW DLLs use traditional 'lib' prefix
10009 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10569 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1001010570 ;;
1001110571 pw32*)
1001210572 # pw32 DLLs use 'pw' prefix rather than 'lib'
10013 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10573 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1001410574 ;;
1001510575 esac
1001610576 dynamic_linker='Win32 ld.exe'
1001910579 *,cl*)
1002010580 # Native MSVC
1002110581 libname_spec='$name'
10022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023 library_names_spec='${libname}.dll.lib'
10582 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10583 library_names_spec='$libname.dll.lib'
1002410584
1002510585 case $build_os in
1002610586 mingw*)
1004710607 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1004810608 ;;
1004910609 *)
10050 sys_lib_search_path_spec="$LIB"
10610 sys_lib_search_path_spec=$LIB
1005110611 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1005210612 # It is most probably a Windows format PATH.
1005310613 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1006010620 esac
1006110621
1006210622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10063 postinstall_cmds='base_file=`basename \${file}`~
10064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10623 postinstall_cmds='base_file=`basename \$file`~
10624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1006510625 dldir=$destdir/`dirname \$dlpath`~
1006610626 test -d \$dldir || mkdir -p \$dldir~
1006710627 $install_prog $dir/$dlname \$dldir/$dlname'
1007410634
1007510635 *)
1007610636 # Assume MSVC wrapper
10077 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10637 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1007810638 dynamic_linker='Win32 ld.exe'
1007910639 ;;
1008010640 esac
1008710647 version_type=darwin
1008810648 need_lib_prefix=no
1008910649 need_version=no
10090 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10091 soname_spec='${libname}${release}${major}$shared_ext'
10650 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
10651 soname_spec='$libname$release$major$shared_ext'
1009210652 shlibpath_overrides_runpath=yes
1009310653 shlibpath_var=DYLD_LIBRARY_PATH
10094 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10654 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
1009510655
1009610656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1009710657 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1010110661 version_type=linux # correct to gnu/linux during the next big refactor
1010210662 need_lib_prefix=no
1010310663 need_version=no
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10665 soname_spec='$libname$release$shared_ext$major'
1010610666 shlibpath_var=LD_LIBRARY_PATH
1010710667 ;;
1010810668
1011710677 *) objformat=elf ;;
1011810678 esac
1011910679 fi
10120 version_type=freebsd-$objformat
10680 # Handle Gentoo/FreeBSD as it was Linux
10681 case $host_vendor in
10682 gentoo)
10683 version_type=linux ;;
10684 *)
10685 version_type=freebsd-$objformat ;;
10686 esac
10687
1012110688 case $version_type in
1012210689 freebsd-elf*)
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10691 soname_spec='$libname$release$shared_ext$major'
1012410692 need_version=no
1012510693 need_lib_prefix=no
1012610694 ;;
1012710695 freebsd-*)
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1012910697 need_version=yes
10698 ;;
10699 linux)
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 need_lib_prefix=no
10703 need_version=no
1013010704 ;;
1013110705 esac
1013210706 shlibpath_var=LD_LIBRARY_PATH
1015010724 esac
1015110725 ;;
1015210726
10153 gnu*)
10154 version_type=linux # correct to gnu/linux during the next big refactor
10155 need_lib_prefix=no
10156 need_version=no
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 shlibpath_overrides_runpath=no
10161 hardcode_into_libs=yes
10162 ;;
10163
1016410727 haiku*)
1016510728 version_type=linux # correct to gnu/linux during the next big refactor
1016610729 need_lib_prefix=no
1016710730 need_version=no
1016810731 dynamic_linker="$host_os runtime_loader"
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10733 soname_spec='$libname$release$shared_ext$major'
1017110734 shlibpath_var=LIBRARY_PATH
10172 shlibpath_overrides_runpath=yes
10735 shlibpath_overrides_runpath=no
1017310736 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1017410737 hardcode_into_libs=yes
1017510738 ;;
1018710750 dynamic_linker="$host_os dld.so"
1018810751 shlibpath_var=LD_LIBRARY_PATH
1018910752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 if test "X$HPUX_IA64_MODE" = X32; then
10753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10754 soname_spec='$libname$release$shared_ext$major'
10755 if test 32 = "$HPUX_IA64_MODE"; then
1019310756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10757 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1019410758 else
1019510759 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10760 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1019610761 fi
10197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1019810762 ;;
1019910763 hppa*64*)
1020010764 shrext_cmds='.sl'
1020210766 dynamic_linker="$host_os dld.sl"
1020310767 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1020410768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10770 soname_spec='$libname$release$shared_ext$major'
1020710771 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1020810772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1020910773 ;;
1021210776 dynamic_linker="$host_os dld.sl"
1021310777 shlibpath_var=SHLIB_PATH
1021410778 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10780 soname_spec='$libname$release$shared_ext$major'
1021710781 ;;
1021810782 esac
1021910783 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1022610790 version_type=linux # correct to gnu/linux during the next big refactor
1022710791 need_lib_prefix=no
1022810792 need_version=no
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10794 soname_spec='$libname$release$shared_ext$major'
1023110795 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1023210796 shlibpath_var=LD_LIBRARY_PATH
1023310797 shlibpath_overrides_runpath=no
1023810802 case $host_os in
1023910803 nonstopux*) version_type=nonstopux ;;
1024010804 *)
10241 if test "$lt_cv_prog_gnu_ld" = yes; then
10805 if test yes = "$lt_cv_prog_gnu_ld"; then
1024210806 version_type=linux # correct to gnu/linux during the next big refactor
1024310807 else
1024410808 version_type=irix
1024610810 esac
1024710811 need_lib_prefix=no
1024810812 need_version=no
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10813 soname_spec='$libname$release$shared_ext$major'
10814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1025110815 case $host_os in
1025210816 irix5* | nonstopux*)
1025310817 libsuff= shlibsuff=
1026610830 esac
1026710831 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1026810832 shlibpath_overrides_runpath=no
10269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10833 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10834 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1027110835 hardcode_into_libs=yes
1027210836 ;;
1027310837
1027610840 dynamic_linker=no
1027710841 ;;
1027810842
10843 linux*android*)
10844 version_type=none # Android doesn't support versioned libraries.
10845 need_lib_prefix=no
10846 need_version=no
10847 library_names_spec='$libname$release$shared_ext'
10848 soname_spec='$libname$release$shared_ext'
10849 finish_cmds=
10850 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10852
10853 # This implies no fast_install, which is unacceptable.
10854 # Some rework will be needed to allow for fast_install
10855 # before this can be enabled.
10856 hardcode_into_libs=yes
10857
10858 dynamic_linker='Android linker'
10859 # Don't embed -rpath directories since the linker doesn't support them.
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 ;;
10862
1027910863 # This must be glibc/ELF.
10280 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10864 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1028110865 version_type=linux # correct to gnu/linux during the next big refactor
1028210866 need_lib_prefix=no
1028310867 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869 soname_spec='$libname$release$shared_ext$major'
1028610870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1028710871 shlibpath_var=LD_LIBRARY_PATH
1028810872 shlibpath_overrides_runpath=no
1032610910 # before this can be enabled.
1032710911 hardcode_into_libs=yes
1032810912
10329 # Add ABI-specific directories to the system library path.
10330 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10331
10332 # Append ld.so.conf contents to the search path
10913 # Ideally, we could use ldconfig to report *all* directores which are
10914 # searched for libraries, however this is still not possible. Aside from not
10915 # being certain /sbin/ldconfig is available, command
10916 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10917 # even though it is searched at run-time. Try to do the best guess by
10918 # appending ld.so.conf contents (and includes) to the search path.
1033310919 if test -f /etc/ld.so.conf; then
1033410920 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' ' '`
10335 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10336
10921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1033710922 fi
1033810923
1033910924 # We used to test for /lib/ld.so.1 and disable shared libraries on
1035010935 need_lib_prefix=no
1035110936 need_version=no
1035210937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1035410939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1035510940 dynamic_linker='NetBSD (a.out) ld.so'
1035610941 else
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10943 soname_spec='$libname$release$shared_ext$major'
1035910944 dynamic_linker='NetBSD ld.elf_so'
1036010945 fi
1036110946 shlibpath_var=LD_LIBRARY_PATH
1036510950
1036610951 newsos6)
1036710952 version_type=linux # correct to gnu/linux during the next big refactor
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1036910954 shlibpath_var=LD_LIBRARY_PATH
1037010955 shlibpath_overrides_runpath=yes
1037110956 ;;
1037410959 version_type=qnx
1037510960 need_lib_prefix=no
1037610961 need_version=no
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10963 soname_spec='$libname$release$shared_ext$major'
1037910964 shlibpath_var=LD_LIBRARY_PATH
1038010965 shlibpath_overrides_runpath=no
1038110966 hardcode_into_libs=yes
1038210967 dynamic_linker='ldqnx.so'
1038310968 ;;
1038410969
10385 openbsd*)
10970 openbsd* | bitrig*)
1038610971 version_type=sunos
10387 sys_lib_dlsearch_path_spec="/usr/lib"
10972 sys_lib_dlsearch_path_spec=/usr/lib
1038810973 need_lib_prefix=no
10389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10390 case $host_os in
10391 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10392 *) need_version=no ;;
10393 esac
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10975 need_version=no
10976 else
10977 need_version=yes
10978 fi
10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1039510980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1039610981 shlibpath_var=LD_LIBRARY_PATH
10397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10398 case $host_os in
10399 openbsd2.[89] | openbsd2.[89].*)
10400 shlibpath_overrides_runpath=no
10401 ;;
10402 *)
10403 shlibpath_overrides_runpath=yes
10404 ;;
10405 esac
10406 else
10407 shlibpath_overrides_runpath=yes
10408 fi
10982 shlibpath_overrides_runpath=yes
1040910983 ;;
1041010984
1041110985 os2*)
1041210986 libname_spec='$name'
10413 shrext_cmds=".dll"
10987 version_type=windows
10988 shrext_cmds=.dll
10989 need_version=no
1041410990 need_lib_prefix=no
10415 library_names_spec='$libname${shared_ext} $libname.a'
10991 # OS/2 can only load a DLL with a base name of 8 characters or less.
10992 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10993 v=$($ECHO $release$versuffix | tr -d .-);
10994 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10995 $ECHO $n$v`$shared_ext'
10996 library_names_spec='${libname}_dll.$libext'
1041610997 dynamic_linker='OS/2 ld.exe'
10417 shlibpath_var=LIBPATH
10998 shlibpath_var=BEGINLIBPATH
10999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11001 postinstall_cmds='base_file=`basename \$file`~
11002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11003 dldir=$destdir/`dirname \$dlpath`~
11004 test -d \$dldir || mkdir -p \$dldir~
11005 $install_prog $dir/$dlname \$dldir/$dlname~
11006 chmod a+x \$dldir/$dlname~
11007 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11008 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11009 fi'
11010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11011 dlpath=$dir/\$dldll~
11012 $RM \$dlpath'
1041811013 ;;
1041911014
1042011015 osf3* | osf4* | osf5*)
1042111016 version_type=osf
1042211017 need_lib_prefix=no
1042311018 need_version=no
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 soname_spec='$libname$release$shared_ext$major'
11020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1042611021 shlibpath_var=LD_LIBRARY_PATH
1042711022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10428 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1042911024 ;;
1043011025
1043111026 rdos*)
1043611031 version_type=linux # correct to gnu/linux during the next big refactor
1043711032 need_lib_prefix=no
1043811033 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
11034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11035 soname_spec='$libname$release$shared_ext$major'
1044111036 shlibpath_var=LD_LIBRARY_PATH
1044211037 shlibpath_overrides_runpath=yes
1044311038 hardcode_into_libs=yes
1044711042
1044811043 sunos4*)
1044911044 version_type=sunos
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1045111046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1045211047 shlibpath_var=LD_LIBRARY_PATH
1045311048 shlibpath_overrides_runpath=yes
10454 if test "$with_gnu_ld" = yes; then
11049 if test yes = "$with_gnu_ld"; then
1045511050 need_lib_prefix=no
1045611051 fi
1045711052 need_version=yes
1045911054
1046011055 sysv4 | sysv4.3*)
1046111056 version_type=linux # correct to gnu/linux during the next big refactor
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
11057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11058 soname_spec='$libname$release$shared_ext$major'
1046411059 shlibpath_var=LD_LIBRARY_PATH
1046511060 case $host_vendor in
1046611061 sni)
1048111076 ;;
1048211077
1048311078 sysv4*MP*)
10484 if test -d /usr/nec ;then
11079 if test -d /usr/nec; then
1048511080 version_type=linux # correct to gnu/linux during the next big refactor
10486 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10487 soname_spec='$libname${shared_ext}.$major'
11081 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11082 soname_spec='$libname$shared_ext.$major'
1048811083 shlibpath_var=LD_LIBRARY_PATH
1048911084 fi
1049011085 ;;
1049111086
1049211087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10493 version_type=freebsd-elf
11088 version_type=sco
1049411089 need_lib_prefix=no
1049511090 need_version=no
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10497 soname_spec='${libname}${release}${shared_ext}$major'
11091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11092 soname_spec='$libname$release$shared_ext$major'
1049811093 shlibpath_var=LD_LIBRARY_PATH
1049911094 shlibpath_overrides_runpath=yes
1050011095 hardcode_into_libs=yes
10501 if test "$with_gnu_ld" = yes; then
11096 if test yes = "$with_gnu_ld"; then
1050211097 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1050311098 else
1050411099 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1051611111 version_type=linux # correct to gnu/linux during the next big refactor
1051711112 need_lib_prefix=no
1051811113 need_version=no
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1052011115 shlibpath_var=LD_LIBRARY_PATH
1052111116 shlibpath_overrides_runpath=no
1052211117 hardcode_into_libs=yes
1052411119
1052511120 uts4*)
1052611121 version_type=linux # correct to gnu/linux during the next big refactor
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123 soname_spec='$libname$release$shared_ext$major'
1052911124 shlibpath_var=LD_LIBRARY_PATH
1053011125 ;;
1053111126
1053511130 esac
1053611131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1053711132 $as_echo "$dynamic_linker" >&6; }
10538 test "$dynamic_linker" = no && can_build_shared=no
11133 test no = "$dynamic_linker" && can_build_shared=no
1053911134
1054011135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10541 if test "$GCC" = yes; then
11136 if test yes = "$GCC"; then
1054211137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1054311138 fi
1054411139
10545 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10546 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10547 fi
10548 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10549 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10550 fi
11140 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11141 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11142 fi
11143
11144 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11145 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11146 fi
11147
11148 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11149 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11150
11151 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11152 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11153
11154 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11155 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11156
11157
11158
11159
11160
1055111161
1055211162
1055311163
1064511255 hardcode_action=
1064611256 if test -n "$hardcode_libdir_flag_spec" ||
1064711257 test -n "$runpath_var" ||
10648 test "X$hardcode_automatic" = "Xyes" ; then
11258 test yes = "$hardcode_automatic"; then
1064911259
1065011260 # We can hardcode non-existent directories.
10651 if test "$hardcode_direct" != no &&
11261 if test no != "$hardcode_direct" &&
1065211262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1065311263 # have to relink, otherwise we might link with an installed library
1065411264 # when we should be linking with a yet-to-be-installed one
10655 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10656 test "$hardcode_minus_L" != no; then
11265 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11266 test no != "$hardcode_minus_L"; then
1065711267 # Linking always hardcodes the temporary library directory.
1065811268 hardcode_action=relink
1065911269 else
1066811278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1066911279 $as_echo "$hardcode_action" >&6; }
1067011280
10671 if test "$hardcode_action" = relink ||
10672 test "$inherit_rpath" = yes; then
11281 if test relink = "$hardcode_action" ||
11282 test yes = "$inherit_rpath"; then
1067311283 # Fast installation is not supported
1067411284 enable_fast_install=no
10675 elif test "$shlibpath_overrides_runpath" = yes ||
10676 test "$enable_shared" = no; then
11285 elif test yes = "$shlibpath_overrides_runpath" ||
11286 test no = "$enable_shared"; then
1067711287 # Fast installation is not necessary
1067811288 enable_fast_install=needless
1067911289 fi
1068311293
1068411294
1068511295
10686 if test "x$enable_dlopen" != xyes; then
11296 if test yes != "$enable_dlopen"; then
1068711297 enable_dlopen=unknown
1068811298 enable_dlopen_self=unknown
1068911299 enable_dlopen_self_static=unknown
1069311303
1069411304 case $host_os in
1069511305 beos*)
10696 lt_cv_dlopen="load_add_on"
11306 lt_cv_dlopen=load_add_on
1069711307 lt_cv_dlopen_libs=
1069811308 lt_cv_dlopen_self=yes
1069911309 ;;
1070011310
1070111311 mingw* | pw32* | cegcc*)
10702 lt_cv_dlopen="LoadLibrary"
11312 lt_cv_dlopen=LoadLibrary
1070311313 lt_cv_dlopen_libs=
1070411314 ;;
1070511315
1070611316 cygwin*)
10707 lt_cv_dlopen="dlopen"
11317 lt_cv_dlopen=dlopen
1070811318 lt_cv_dlopen_libs=
1070911319 ;;
1071011320
1071111321 darwin*)
10712 # if libdl is installed we need to link against it
11322 # if libdl is installed we need to link against it
1071311323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1071411324 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1071511325 if ${ac_cv_lib_dl_dlopen+:} false; then :
1074711357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1074811358 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1074911359 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10751 else
10752
10753 lt_cv_dlopen="dyld"
11360 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11361 else
11362
11363 lt_cv_dlopen=dyld
1075411364 lt_cv_dlopen_libs=
1075511365 lt_cv_dlopen_self=yes
1075611366
1075711367 fi
1075811368
11369 ;;
11370
11371 tpf*)
11372 # Don't try to run any link tests for TPF. We know it's impossible
11373 # because TPF is a cross-compiler, and we know how we open DSOs.
11374 lt_cv_dlopen=dlopen
11375 lt_cv_dlopen_libs=
11376 lt_cv_dlopen_self=no
1075911377 ;;
1076011378
1076111379 *)
1076211380 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1076311381 if test "x$ac_cv_func_shl_load" = xyes; then :
10764 lt_cv_dlopen="shl_load"
11382 lt_cv_dlopen=shl_load
1076511383 else
1076611384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1076711385 $as_echo_n "checking for shl_load in -ldld... " >&6; }
1080011418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1080111419 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1080211420 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11421 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1080411422 else
1080511423 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1080611424 if test "x$ac_cv_func_dlopen" = xyes; then :
10807 lt_cv_dlopen="dlopen"
11425 lt_cv_dlopen=dlopen
1080811426 else
1080911427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1081011428 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1084311461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1084411462 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1084511463 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11464 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1084711465 else
1084811466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1084911467 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1088211500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1088311501 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1088411502 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11503 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1088611504 else
1088711505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1088811506 $as_echo_n "checking for dld_link in -ldld... " >&6; }
1092111539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1092211540 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1092311541 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10924 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11542 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1092511543 fi
1092611544
1092711545
1094211560 ;;
1094311561 esac
1094411562
10945 if test "x$lt_cv_dlopen" != xno; then
11563 if test no = "$lt_cv_dlopen"; then
11564 enable_dlopen=no
11565 else
1094611566 enable_dlopen=yes
10947 else
10948 enable_dlopen=no
1094911567 fi
1095011568
1095111569 case $lt_cv_dlopen in
1095211570 dlopen)
10953 save_CPPFLAGS="$CPPFLAGS"
10954 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10955
10956 save_LDFLAGS="$LDFLAGS"
11571 save_CPPFLAGS=$CPPFLAGS
11572 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11573
11574 save_LDFLAGS=$LDFLAGS
1095711575 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1095811576
10959 save_LIBS="$LIBS"
11577 save_LIBS=$LIBS
1096011578 LIBS="$lt_cv_dlopen_libs $LIBS"
1096111579
1096211580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1096411582 if ${lt_cv_dlopen_self+:} false; then :
1096511583 $as_echo_n "(cached) " >&6
1096611584 else
10967 if test "$cross_compiling" = yes; then :
11585 if test yes = "$cross_compiling"; then :
1096811586 lt_cv_dlopen_self=cross
1096911587 else
1097011588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1101111629 # endif
1101211630 #endif
1101311631
11014 /* When -fvisbility=hidden is used, assume the code has been annotated
11632 /* When -fvisibility=hidden is used, assume the code has been annotated
1101511633 correspondingly for the symbols needed. */
11016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11634 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1101711635 int fnord () __attribute__((visibility("default")));
1101811636 #endif
1101911637
1104311661 (eval $ac_link) 2>&5
1104411662 ac_status=$?
1104511663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11046 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11664 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1104711665 (./conftest; exit; ) >&5 2>/dev/null
1104811666 lt_status=$?
1104911667 case x$lt_status in
1106311681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1106411682 $as_echo "$lt_cv_dlopen_self" >&6; }
1106511683
11066 if test "x$lt_cv_dlopen_self" = xyes; then
11684 if test yes = "$lt_cv_dlopen_self"; then
1106711685 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1106811686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1106911687 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1107011688 if ${lt_cv_dlopen_self_static+:} false; then :
1107111689 $as_echo_n "(cached) " >&6
1107211690 else
11073 if test "$cross_compiling" = yes; then :
11691 if test yes = "$cross_compiling"; then :
1107411692 lt_cv_dlopen_self_static=cross
1107511693 else
1107611694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1111711735 # endif
1111811736 #endif
1111911737
11120 /* When -fvisbility=hidden is used, assume the code has been annotated
11738 /* When -fvisibility=hidden is used, assume the code has been annotated
1112111739 correspondingly for the symbols needed. */
11122 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11740 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1112311741 int fnord () __attribute__((visibility("default")));
1112411742 #endif
1112511743
1114911767 (eval $ac_link) 2>&5
1115011768 ac_status=$?
1115111769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11770 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1115311771 (./conftest; exit; ) >&5 2>/dev/null
1115411772 lt_status=$?
1115511773 case x$lt_status in
1117011788 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1117111789 fi
1117211790
11173 CPPFLAGS="$save_CPPFLAGS"
11174 LDFLAGS="$save_LDFLAGS"
11175 LIBS="$save_LIBS"
11791 CPPFLAGS=$save_CPPFLAGS
11792 LDFLAGS=$save_LDFLAGS
11793 LIBS=$save_LIBS
1117611794 ;;
1117711795 esac
1117811796
1121611834 # FIXME - insert some real tests, host_os isn't really good enough
1121711835 case $host_os in
1121811836 darwin*)
11219 if test -n "$STRIP" ; then
11837 if test -n "$STRIP"; then
1122011838 striplib="$STRIP -x"
1122111839 old_striplib="$STRIP -S"
1122211840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1124411862
1124511863
1124611864
11247 # Report which library types will actually be built
11865 # Report what library types will actually be built
1124811866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1124911867 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1125011868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1125211870
1125311871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1125411872 $as_echo_n "checking whether to build shared libraries... " >&6; }
11255 test "$can_build_shared" = "no" && enable_shared=no
11873 test no = "$can_build_shared" && enable_shared=no
1125611874
1125711875 # On AIX, shared libraries and static libraries use the same namespace, and
1125811876 # are all built from PIC.
1125911877 case $host_os in
1126011878 aix3*)
11261 test "$enable_shared" = yes && enable_static=no
11879 test yes = "$enable_shared" && enable_static=no
1126211880 if test -n "$RANLIB"; then
1126311881 archive_cmds="$archive_cmds~\$RANLIB \$lib"
1126411882 postinstall_cmds='$RANLIB $lib'
1126611884 ;;
1126711885
1126811886 aix[4-9]*)
11269 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11270 test "$enable_shared" = yes && enable_static=no
11887 if test ia64 != "$host_cpu"; then
11888 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11889 yes,aix,yes) ;; # shared object as lib.so file only
11890 yes,svr4,*) ;; # shared object as lib.so archive member only
11891 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11892 esac
1127111893 fi
1127211894 ;;
1127311895 esac
1127711899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1127811900 $as_echo_n "checking whether to build static libraries... " >&6; }
1127911901 # Make sure either enable_shared or enable_static is yes.
11280 test "$enable_shared" = yes || enable_static=yes
11902 test yes = "$enable_shared" || enable_static=yes
1128111903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1128211904 $as_echo "$enable_static" >&6; }
1128311905
1129111913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1129211914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1129311915
11294 CC="$lt_save_CC"
11916 CC=$lt_save_CC
1129511917
1129611918
1129711919
1186312485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186412486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1186512487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12488
12489 ac_ext=c
12490 ac_cpp='$CPP $CPPFLAGS'
12491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12495 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12496 if ${am_cv_prog_cc_c_o+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501
12502 int
12503 main ()
12504 {
12505
12506 ;
12507 return 0;
12508 }
12509 _ACEOF
12510 # Make sure it works both with $CC and with simple cc.
12511 # Following AC_PROG_CC_C_O, we do the test twice because some
12512 # compilers refuse to overwrite an existing .o file with -o,
12513 # though they will create one.
12514 am_cv_prog_cc_c_o=yes
12515 for am_i in 1 2; do
12516 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12517 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } \
12521 && test -f conftest2.$ac_objext; then
12522 : OK
12523 else
12524 am_cv_prog_cc_c_o=no
12525 break
12526 fi
12527 done
12528 rm -f core conftest*
12529 unset am_i
12530 fi
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12532 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12533 if test "$am_cv_prog_cc_c_o" != yes; then
12534 # Losing compiler, so override with the script.
12535 # FIXME: It is wrong to rewrite CC.
12536 # But if we don't then we get into trouble of one sort or another.
12537 # A longer-term fix would be to have automake use am__CC in this case,
12538 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12539 CC="$am_aux_dir/compile $CC"
12540 fi
12541 ac_ext=c
12542 ac_cpp='$CPP $CPPFLAGS'
12543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12546
1186612547
1186712548 depcc="$CC" am_compiler_list=
1186812549
1299313674 fi
1299413675
1299513676 pkg_failed=no
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12997 $as_echo_n "checking for GLIB... " >&6; }
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.32.0, gobject-2.0 >= 2.32.0, gio-2.0 >= 2.32.0 " >&5
13678 $as_echo_n "checking for glib-2.0 >= 2.32.0, gobject-2.0 >= 2.32.0, gio-2.0 >= 2.32.0 ... " >&6; }
1299813679
1299913680 if test -n "$GLIB_CFLAGS"; then
1300013681 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
1303413715
1303513716
1303613717 if test $pkg_failed = yes; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1303813719 $as_echo "no" >&6; }
1303913720
1304013721 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1306113742 and GLIB_LIBS to avoid the need to call pkg-config.
1306213743 See the pkg-config man page for more details." "$LINENO" 5
1306313744 elif test $pkg_failed = untried; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1306513746 $as_echo "no" >&6; }
1306613747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1306713748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1308513766
1308613767
1308713768 pkg_failed=no
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
13089 $as_echo_n "checking for DBUS... " >&6; }
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 0.51, dbus-glib-1 >= 0.51" >&5
13770 $as_echo_n "checking for dbus-1 >= 0.51, dbus-glib-1 >= 0.51... " >&6; }
1309013771
1309113772 if test -n "$DBUS_CFLAGS"; then
1309213773 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
1312613807
1312713808
1312813809 if test $pkg_failed = yes; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1313013811 $as_echo "no" >&6; }
1313113812
1313213813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1315313834 and DBUS_LIBS to avoid the need to call pkg-config.
1315413835 See the pkg-config man page for more details." "$LINENO" 5
1315513836 elif test $pkg_failed = untried; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1315713838 $as_echo "no" >&6; }
1315813839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1315913840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1318913870
1319013871
1319113872 pkg_failed=no
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TELEPATHY" >&5
13193 $as_echo_n "checking for TELEPATHY... " >&6; }
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for telepathy-glib >= 0.21" >&5
13874 $as_echo_n "checking for telepathy-glib >= 0.21... " >&6; }
1319413875
1319513876 if test -n "$TELEPATHY_CFLAGS"; then
1319613877 pkg_cv_TELEPATHY_CFLAGS="$TELEPATHY_CFLAGS"
1323013911
1323113912
1323213913 if test $pkg_failed = yes; then
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1323413915 $as_echo "no" >&6; }
1323513916
1323613917 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1325713938 and TELEPATHY_LIBS to avoid the need to call pkg-config.
1325813939 See the pkg-config man page for more details." "$LINENO" 5
1325913940 elif test $pkg_failed = untried; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1326113942 $as_echo "no" >&6; }
1326213943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1326313944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1336714048 $as_echo_n "(cached) " >&6
1336814049 else
1336914050
13370 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14051 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
1337114052 test "$am_cv_pathless_PYTHON" = none && break
1337214053 prog="import sys
1337314054 # split strings by '.' and convert to numeric. Append some zeros
1421514896 # report actual input values of CONFIG_FILES etc. instead of their
1421614897 # values after options handling.
1421714898 ac_log="
14218 This file was extended by telepathy-idle $as_me 0.2.0, which was
14899 This file was extended by telepathy-idle $as_me 0.2.2, which was
1421914900 generated by GNU Autoconf 2.69. Invocation command line was
1422014901
1422114902 CONFIG_FILES = $CONFIG_FILES
1428114962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1428214963 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1428314964 ac_cs_version="\\
14284 telepathy-idle config.status 0.2.0
14965 telepathy-idle config.status 0.2.2
1428514966 configured by $0, generated by GNU Autoconf 2.69,
1428614967 with options \\"\$ac_cs_config\\"
1428714968
1440015081 #
1440115082 # INIT-COMMANDS
1440215083 #
14403 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15084 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1440415085
1440515086
1440615087 # The HP-UX ksh and POSIX shell print the target directory to stdout
1441615097 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1441715098 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1441815099 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15100 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1441915101 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1442015102 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1442115103 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1446515147 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1446615148 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1446715149 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15150 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1446815151 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1446915152 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"`'
15153 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1447015154 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1447115155 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15156 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1447215157 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1447315158 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1447415159 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1453315218 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1453415219 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1453515220 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14536 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15221 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15222 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1453715223 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1453815224 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1453915225 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1458415270 compiler \
1458515271 lt_cv_sys_global_symbol_pipe \
1458615272 lt_cv_sys_global_symbol_to_cdecl \
15273 lt_cv_sys_global_symbol_to_import \
1458715274 lt_cv_sys_global_symbol_to_c_name_address \
1458815275 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15276 lt_cv_nm_interface \
1458915277 nm_file_list_spec \
15278 lt_cv_truncate_bin \
1459015279 lt_prog_compiler_no_builtin_flag \
1459115280 lt_prog_compiler_pic \
1459215281 lt_prog_compiler_wl \
1462115310 striplib; do
1462215311 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1462315312 *[\\\\\\\`\\"\\\$]*)
14624 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15313 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1462515314 ;;
1462615315 *)
1462715316 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1464815337 postuninstall_cmds \
1464915338 finish_cmds \
1465015339 sys_lib_search_path_spec \
14651 sys_lib_dlsearch_path_spec; do
15340 configure_time_dlsearch_path \
15341 configure_time_lt_sys_library_path; do
1465215342 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1465315343 *[\\\\\\\`\\"\\\$]*)
14654 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15344 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1465515345 ;;
1465615346 *)
1465715347 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1466015350 done
1466115351
1466215352 ac_aux_dir='$ac_aux_dir'
14663 xsi_shell='$xsi_shell'
14664 lt_shell_append='$lt_shell_append'
14665
14666 # See if we are running on zsh, and set the options which allow our
15353
15354 # See if we are running on zsh, and set the options that allow our
1466715355 # commands through without removal of \ escapes INIT.
14668 if test -n "\${ZSH_VERSION+set}" ; then
15356 if test -n "\${ZSH_VERSION+set}"; then
1466915357 setopt NO_GLOB_SUBST
1467015358 fi
1467115359
1467215360
1467315361 PACKAGE='$PACKAGE'
1467415362 VERSION='$VERSION'
14675 TIMESTAMP='$TIMESTAMP'
1467615363 RM='$RM'
1467715364 ofile='$ofile'
1467815365
1529815985 # Older Autoconf quotes --file arguments for eval, but not when files
1529915986 # are listed without --file. Let's play safe and only enable the eval
1530015987 # if we detect the quoting.
15301 case $CONFIG_FILES in
15302 *\'*) eval set x "$CONFIG_FILES" ;;
15303 *) set x $CONFIG_FILES ;;
15304 esac
15988 # TODO: see whether this extra hack can be removed once we start
15989 # requiring Autoconf 2.70 or later.
15990 case $CONFIG_FILES in #(
15991 *\'*) :
15992 eval set x "$CONFIG_FILES" ;; #(
15993 *) :
15994 set x $CONFIG_FILES ;; #(
15995 *) :
15996 ;;
15997 esac
1530515998 shift
15306 for mf
15999 # Used to flag and report bootstrapping failures.
16000 am_rc=0
16001 for am_mf
1530716002 do
1530816003 # Strip MF so we end up with the name of the file.
15309 mf=`echo "$mf" | sed -e 's/:.*$//'`
15310 # Check whether this is an Automake generated Makefile or not.
15311 # We used to match only the files named 'Makefile.in', but
15312 # some people rename them; so instead we look at the file content.
15313 # Grep'ing the first line is not enough: some people post-process
15314 # each Makefile.in and add a new line on top of each file to say so.
15315 # Grep'ing the whole file is not good either: AIX grep has a line
16004 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16005 # Check whether this is an Automake generated Makefile which includes
16006 # dependency-tracking related rules and includes.
16007 # Grep'ing the whole file directly is not great: AIX grep has a line
1531616008 # limit of 2048, but all sed's we know have understand at least 4000.
15317 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15318 dirpart=`$as_dirname -- "$mf" ||
15319 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15320 X"$mf" : 'X\(//\)[^/]' \| \
15321 X"$mf" : 'X\(//\)$' \| \
15322 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15323 $as_echo X"$mf" |
16009 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16010 || continue
16011 am_dirpart=`$as_dirname -- "$am_mf" ||
16012 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16013 X"$am_mf" : 'X\(//\)[^/]' \| \
16014 X"$am_mf" : 'X\(//\)$' \| \
16015 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16016 $as_echo X"$am_mf" |
1532416017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1532516018 s//\1/
1532616019 q
1533816031 q
1533916032 }
1534016033 s/.*/./; q'`
15341 else
15342 continue
15343 fi
15344 # Extract the definition of DEPDIR, am__include, and am__quote
15345 # from the Makefile without running 'make'.
15346 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15347 test -z "$DEPDIR" && continue
15348 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15349 test -z "$am__include" && continue
15350 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15351 # Find all dependency output files, they are included files with
15352 # $(DEPDIR) in their names. We invoke sed twice because it is the
15353 # simplest approach to changing $(DEPDIR) to its actual value in the
15354 # expansion.
15355 for file in `sed -n "
15356 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15357 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15358 # Make sure the directory exists.
15359 test -f "$dirpart/$file" && continue
15360 fdir=`$as_dirname -- "$file" ||
15361 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15362 X"$file" : 'X\(//\)[^/]' \| \
15363 X"$file" : 'X\(//\)$' \| \
15364 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15365 $as_echo X"$file" |
15366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16034 am_filepart=`$as_basename -- "$am_mf" ||
16035 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16036 X"$am_mf" : 'X\(//\)$' \| \
16037 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16038 $as_echo X/"$am_mf" |
16039 sed '/^.*\/\([^/][^/]*\)\/*$/{
1536716040 s//\1/
1536816041 q
1536916042 }
15370 /^X\(\/\/\)[^/].*/{
16043 /^X\/\(\/\/\)$/{
1537116044 s//\1/
1537216045 q
1537316046 }
15374 /^X\(\/\/\)$/{
15375 s//\1/
15376 q
15377 }
15378 /^X\(\/\).*/{
16047 /^X\/\(\/\).*/{
1537916048 s//\1/
1538016049 q
1538116050 }
1538216051 s/.*/./; q'`
15383 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15384 # echo "creating $dirpart/$file"
15385 echo '# dummy' > "$dirpart/$file"
15386 done
16052 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16053 && sed -e '/# am--include-marker/d' "$am_filepart" \
16054 | $MAKE -f - am--depfiles" >&5
16055 (cd "$am_dirpart" \
16056 && sed -e '/# am--include-marker/d' "$am_filepart" \
16057 | $MAKE -f - am--depfiles) >&5 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } || am_rc=$?
1538716061 done
16062 if test $am_rc -ne 0; then
16063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16065 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16066 for automatic dependency tracking. Try re-running configure with the
16067 '--disable-dependency-tracking' option to at least be able to build
16068 the package (albeit without support for automatic dependency tracking).
16069 See \`config.log' for more details" "$LINENO" 5; }
16070 fi
16071 { am_dirpart=; unset am_dirpart;}
16072 { am_filepart=; unset am_filepart;}
16073 { am_mf=; unset am_mf;}
16074 { am_rc=; unset am_rc;}
16075 rm -f conftest-deps.mk
1538816076 }
1538916077 ;;
1539016078 "libtool":C)
1539116079
15392 # See if we are running on zsh, and set the options which allow our
16080 # See if we are running on zsh, and set the options that allow our
1539316081 # commands through without removal of \ escapes.
15394 if test -n "${ZSH_VERSION+set}" ; then
16082 if test -n "${ZSH_VERSION+set}"; then
1539516083 setopt NO_GLOB_SUBST
1539616084 fi
1539716085
15398 cfgfile="${ofile}T"
16086 cfgfile=${ofile}T
1539916087 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1540016088 $RM "$cfgfile"
1540116089
1540216090 cat <<_LT_EOF >> "$cfgfile"
1540316091 #! $SHELL
15404
15405 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15406 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16092 # Generated automatically by $as_me ($PACKAGE) $VERSION
1540716093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1540816094 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16095
16096 # Provide generalized library-building support services.
16097 # Written by Gordon Matzigkeit, 1996
16098
16099 # Copyright (C) 2014 Free Software Foundation, Inc.
16100 # This is free software; see the source for copying conditions. There is NO
16101 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16102
16103 # GNU Libtool is free software; you can redistribute it and/or modify
16104 # it under the terms of the GNU General Public License as published by
16105 # the Free Software Foundation; either version 2 of of the License, or
16106 # (at your option) any later version.
1540916107 #
15410 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15411 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15412 # Foundation, Inc.
15413 # Written by Gordon Matzigkeit, 1996
16108 # As a special exception to the GNU General Public License, if you
16109 # distribute this file as part of a program or library that is built
16110 # using GNU Libtool, you may include this file under the same
16111 # distribution terms that you use for the rest of that program.
1541416112 #
15415 # This file is part of GNU Libtool.
15416 #
15417 # GNU Libtool is free software; you can redistribute it and/or
15418 # modify it under the terms of the GNU General Public License as
15419 # published by the Free Software Foundation; either version 2 of
15420 # the License, or (at your option) any later version.
15421 #
15422 # As a special exception to the GNU General Public License,
15423 # if you distribute this file as part of a program or library that
15424 # is built using GNU Libtool, you may include this file under the
15425 # same distribution terms that you use for the rest of that program.
15426 #
15427 # GNU Libtool is distributed in the hope that it will be useful,
15428 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16113 # GNU Libtool is distributed in the hope that it will be useful, but
16114 # WITHOUT ANY WARRANTY; without even the implied warranty of
1542916115 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1543016116 # GNU General Public License for more details.
1543116117 #
1543216118 # You should have received a copy of the GNU General Public License
15433 # along with GNU Libtool; see the file COPYING. If not, a copy
15434 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15435 # obtained by writing to the Free Software Foundation, Inc.,
15436 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16119 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1543716120
1543816121
1543916122 # The names of the tagged configurations supported by this script.
15440 available_tags=""
16123 available_tags=''
16124
16125 # Configured defaults for sys_lib_dlsearch_path munging.
16126 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1544116127
1544216128 # ### BEGIN LIBTOOL CONFIG
1544316129
1545616142
1545716143 # Whether or not to optimize for fast installation.
1545816144 fast_install=$enable_fast_install
16145
16146 # Shared archive member basename,for filename based shared library versioning on AIX.
16147 shared_archive_member_spec=$shared_archive_member_spec
1545916148
1546016149 # Shell to use when invoking shell scripts.
1546116150 SHELL=$lt_SHELL
1557416263 # Transform the output of nm in a proper C declaration.
1557516264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1557616265
16266 # Transform the output of nm into a list of symbols to manually relocate.
16267 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16268
1557716269 # Transform the output of nm in a C name address pair.
1557816270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1557916271
1558016272 # Transform the output of nm in a C name address pair when lib prefix is needed.
1558116273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1558216274
16275 # The name lister interface.
16276 nm_interface=$lt_lt_cv_nm_interface
16277
1558316278 # Specify filename containing input files for \$NM.
1558416279 nm_file_list_spec=$lt_nm_file_list_spec
1558516280
15586 # The root where to search for dependent libraries,and in which our libraries should be installed.
16281 # The root where to search for dependent libraries,and where our libraries should be installed.
1558716282 lt_sysroot=$lt_sysroot
16283
16284 # Command to truncate a binary pipe.
16285 lt_truncate_bin=$lt_lt_cv_truncate_bin
1558816286
1558916287 # The name of the directory that contains temporary libtool files.
1559016288 objdir=$objdir
1567616374 # Compile-time system search path for libraries.
1567716375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1567816376
15679 # Run-time system search path for libraries.
15680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16377 # Detected run-time system search path for libraries.
16378 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16379
16380 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16381 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1568116382
1568216383 # Whether dlopen is supported.
1568316384 dlopen_support=$enable_dlopen
1577016471 # Whether we need a single "-rpath" flag with a separated argument.
1577116472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1577216473
15773 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16474 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1577416475 # DIR into the resulting binary.
1577516476 hardcode_direct=$hardcode_direct
1577616477
15777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16478 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1577816479 # DIR into the resulting binary and the resulting library dependency is
15779 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16480 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1578016481 # library is relocated.
1578116482 hardcode_direct_absolute=$hardcode_direct_absolute
1578216483
1582516526 hardcode_action=$hardcode_action
1582616527
1582716528 # ### END LIBTOOL CONFIG
16529
16530 _LT_EOF
16531
16532 cat <<'_LT_EOF' >> "$cfgfile"
16533
16534 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16535
16536 # func_munge_path_list VARIABLE PATH
16537 # -----------------------------------
16538 # VARIABLE is name of variable containing _space_ separated list of
16539 # directories to be munged by the contents of PATH, which is string
16540 # having a format:
16541 # "DIR[:DIR]:"
16542 # string "DIR[ DIR]" will be prepended to VARIABLE
16543 # ":DIR[:DIR]"
16544 # string "DIR[ DIR]" will be appended to VARIABLE
16545 # "DIRP[:DIRP]::[DIRA:]DIRA"
16546 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16547 # "DIRA[ DIRA]" will be appended to VARIABLE
16548 # "DIR[:DIR]"
16549 # VARIABLE will be replaced by "DIR[ DIR]"
16550 func_munge_path_list ()
16551 {
16552 case x$2 in
16553 x)
16554 ;;
16555 *:)
16556 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16557 ;;
16558 x:*)
16559 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16560 ;;
16561 *::*)
16562 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16563 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16564 ;;
16565 *)
16566 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16567 ;;
16568 esac
16569 }
16570
16571
16572 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16573 func_cc_basename ()
16574 {
16575 for cc_temp in $*""; do
16576 case $cc_temp in
16577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16579 \-*) ;;
16580 *) break;;
16581 esac
16582 done
16583 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16584 }
16585
16586
16587 # ### END FUNCTIONS SHARED WITH CONFIGURE
1582816588
1582916589 _LT_EOF
1583016590
1583416594 # AIX sometimes has problems with the GCC collect2 program. For some
1583516595 # reason, if we set the COLLECT_NAMES environment variable, the problems
1583616596 # vanish in a puff of smoke.
15837 if test "X${COLLECT_NAMES+set}" != Xset; then
16597 if test set != "${COLLECT_NAMES+set}"; then
1583816598 COLLECT_NAMES=
1583916599 export COLLECT_NAMES
1584016600 fi
1584316603 esac
1584416604
1584516605
15846 ltmain="$ac_aux_dir/ltmain.sh"
16606 ltmain=$ac_aux_dir/ltmain.sh
1584716607
1584816608
1584916609 # We use sed instead of cat because bash on DJGPP gets confused if
1585216612 # is reportedly fixed, but why not run on old versions too?
1585316613 sed '$q' "$ltmain" >> "$cfgfile" \
1585416614 || (rm -f "$cfgfile"; exit 1)
15855
15856 if test x"$xsi_shell" = xyes; then
15857 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15858 func_dirname ()\
15859 {\
15860 \ case ${1} in\
15861 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15862 \ * ) func_dirname_result="${3}" ;;\
15863 \ esac\
15864 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15865 && mv -f "$cfgfile.tmp" "$cfgfile" \
15866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15867 test 0 -eq $? || _lt_function_replace_fail=:
15868
15869
15870 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15871 func_basename ()\
15872 {\
15873 \ func_basename_result="${1##*/}"\
15874 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15875 && mv -f "$cfgfile.tmp" "$cfgfile" \
15876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15877 test 0 -eq $? || _lt_function_replace_fail=:
15878
15879
15880 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15881 func_dirname_and_basename ()\
15882 {\
15883 \ case ${1} in\
15884 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15885 \ * ) func_dirname_result="${3}" ;;\
15886 \ esac\
15887 \ func_basename_result="${1##*/}"\
15888 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15889 && mv -f "$cfgfile.tmp" "$cfgfile" \
15890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15891 test 0 -eq $? || _lt_function_replace_fail=:
15892
15893
15894 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15895 func_stripname ()\
15896 {\
15897 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15898 \ # positional parameters, so assign one to ordinary parameter first.\
15899 \ func_stripname_result=${3}\
15900 \ func_stripname_result=${func_stripname_result#"${1}"}\
15901 \ func_stripname_result=${func_stripname_result%"${2}"}\
15902 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15903 && mv -f "$cfgfile.tmp" "$cfgfile" \
15904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15905 test 0 -eq $? || _lt_function_replace_fail=:
15906
15907
15908 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15909 func_split_long_opt ()\
15910 {\
15911 \ func_split_long_opt_name=${1%%=*}\
15912 \ func_split_long_opt_arg=${1#*=}\
15913 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15914 && mv -f "$cfgfile.tmp" "$cfgfile" \
15915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15916 test 0 -eq $? || _lt_function_replace_fail=:
15917
15918
15919 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15920 func_split_short_opt ()\
15921 {\
15922 \ func_split_short_opt_arg=${1#??}\
15923 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15924 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15925 && mv -f "$cfgfile.tmp" "$cfgfile" \
15926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15927 test 0 -eq $? || _lt_function_replace_fail=:
15928
15929
15930 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15931 func_lo2o ()\
15932 {\
15933 \ case ${1} in\
15934 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15935 \ *) func_lo2o_result=${1} ;;\
15936 \ esac\
15937 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15938 && mv -f "$cfgfile.tmp" "$cfgfile" \
15939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15940 test 0 -eq $? || _lt_function_replace_fail=:
15941
15942
15943 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15944 func_xform ()\
15945 {\
15946 func_xform_result=${1%.*}.lo\
15947 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15948 && mv -f "$cfgfile.tmp" "$cfgfile" \
15949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15950 test 0 -eq $? || _lt_function_replace_fail=:
15951
15952
15953 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15954 func_arith ()\
15955 {\
15956 func_arith_result=$(( $* ))\
15957 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15958 && mv -f "$cfgfile.tmp" "$cfgfile" \
15959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15960 test 0 -eq $? || _lt_function_replace_fail=:
15961
15962
15963 sed -e '/^func_len ()$/,/^} # func_len /c\
15964 func_len ()\
15965 {\
15966 func_len_result=${#1}\
15967 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15968 && mv -f "$cfgfile.tmp" "$cfgfile" \
15969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15970 test 0 -eq $? || _lt_function_replace_fail=:
15971
15972 fi
15973
15974 if test x"$lt_shell_append" = xyes; then
15975 sed -e '/^func_append ()$/,/^} # func_append /c\
15976 func_append ()\
15977 {\
15978 eval "${1}+=\\${2}"\
15979 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15980 && mv -f "$cfgfile.tmp" "$cfgfile" \
15981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15982 test 0 -eq $? || _lt_function_replace_fail=:
15983
15984
15985 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15986 func_append_quoted ()\
15987 {\
15988 \ func_quote_for_eval "${2}"\
15989 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15990 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15991 && mv -f "$cfgfile.tmp" "$cfgfile" \
15992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15993 test 0 -eq $? || _lt_function_replace_fail=:
15994
15995
15996 # Save a `func_append' function call where possible by direct use of '+='
15997 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15998 && mv -f "$cfgfile.tmp" "$cfgfile" \
15999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16000 test 0 -eq $? || _lt_function_replace_fail=:
16001 else
16002 # Save a `func_append' function call even when '+=' is not available
16003 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16004 && mv -f "$cfgfile.tmp" "$cfgfile" \
16005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16006 test 0 -eq $? || _lt_function_replace_fail=:
16007 fi
16008
16009 if test x"$_lt_function_replace_fail" = x":"; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16011 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16012 fi
16013
1601416615
1601516616 mv -f "$cfgfile" "$ofile" ||
1601616617 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1010
1111 m4_define([idle_major_version], [0])
1212 m4_define([idle_minor_version], [2])
13 m4_define([idle_micro_version], [0])
13 m4_define([idle_micro_version], [2])
1414 m4_define([idle_nano_version], [0])
1515
1616 m4_define([idle_base_version],
0 # Makefile.in generated by automake 1.13.4 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,
1414 @SET_MAKE@
1515
1616 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
1828 am__make_running_with_option = \
1929 case $${target_option-} in \
2030 ?) ;; \
7888 build_triplet = @build@
7989 host_triplet = @host@
8090 subdir = data
81 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8291 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8392 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
8493 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
8998 $(top_srcdir)/m4/tp-linker-flag.m4 $(top_srcdir)/configure.ac
9099 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
91100 $(ACLOCAL_M4)
101 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
92102 mkinstalldirs = $(install_sh) -d
93103 CONFIG_HEADER = $(top_builddir)/config.h
94104 CONFIG_CLEAN_FILES =
142152 am__installdirs = "$(DESTDIR)$(managerdir)" "$(DESTDIR)$(servicedir)"
143153 DATA = $(manager_DATA) $(service_DATA)
144154 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
155 am__DIST_COMMON = $(srcdir)/Makefile.in
145156 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
146157 ACLOCAL = @ACLOCAL@
147158 AMTAR = @AMTAR@
192203 LIPO = @LIPO@
193204 LN_S = @LN_S@
194205 LTLIBOBJS = @LTLIBOBJS@
206 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
195207 MAKEINFO = @MAKEINFO@
196208 MANIFEST_TOOL = @MANIFEST_TOOL@
197209 MKDIR_P = @MKDIR_P@
275287 psdir = @psdir@
276288 pyexecdir = @pyexecdir@
277289 pythondir = @pythondir@
290 runstatedir = @runstatedir@
278291 sbindir = @sbindir@
279292 sharedstatedir = @sharedstatedir@
280293 srcdir = @srcdir@
313326 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/Makefile'; \
314327 $(am__cd) $(top_srcdir) && \
315328 $(AUTOMAKE) --gnu data/Makefile
316 .PRECIOUS: Makefile
317329 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
318330 @case '$?' in \
319331 *config.status*) \
320332 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
321333 *) \
322 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
323 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
334 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
335 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
324336 esac;
325337
326338 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
386398 cscope cscopelist:
387399
388400
389 distdir: $(DISTFILES)
401 distdir: $(BUILT_SOURCES)
402 $(MAKE) $(AM_MAKEFLAGS) distdir-am
403
404 distdir-am: $(DISTFILES)
390405 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391406 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392407 list='$(DISTFILES)'; \
535550 mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
536551 uninstall-am uninstall-managerDATA uninstall-serviceDATA
537552
553 .PRECIOUS: Makefile
554
538555
539556 # Rule to make the service file with libexecdir expanded
540557 $(service_DATA): $(service_in_files) Makefile
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:
0 # Makefile.in generated by automake 1.13.4 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,
1414 @SET_MAKE@
1515
1616 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
1828 am__make_running_with_option = \
1929 case $${target_option-} in \
2030 ?) ;; \
7888 build_triplet = @build@
7989 host_triplet = @host@
8090 subdir = extensions
81 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
82 $(top_srcdir)/depcomp
8391 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8492 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
8593 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
9098 $(top_srcdir)/m4/tp-linker-flag.m4 $(top_srcdir)/configure.ac
9199 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
92100 $(ACLOCAL_M4)
101 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
93102 mkinstalldirs = $(install_sh) -d
94103 CONFIG_HEADER = $(top_builddir)/config.h
95104 CONFIG_CLEAN_FILES =
118127 am__v_at_1 =
119128 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
120129 depcomp = $(SHELL) $(top_srcdir)/depcomp
121 am__depfiles_maybe = depfiles
130 am__maybe_remake_depfiles = depfiles
131 am__depfiles_remade = ./$(DEPDIR)/svc.Plo
122132 am__mv = mv -f
123133 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
124134 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
165175 done | $(am__uniquify_input)`
166176 ETAGS = etags
167177 CTAGS = ctags
178 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
168179 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
169180 ACLOCAL = @ACLOCAL@
170181 AMTAR = @AMTAR@
215226 LIPO = @LIPO@
216227 LN_S = @LN_S@
217228 LTLIBOBJS = @LTLIBOBJS@
229 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
218230 MAKEINFO = @MAKEINFO@
219231 MANIFEST_TOOL = @MANIFEST_TOOL@
220232 MKDIR_P = @MKDIR_P@
298310 psdir = @psdir@
299311 pyexecdir = @pyexecdir@
300312 pythondir = @pythondir@
313 runstatedir = @runstatedir@
301314 sbindir = @sbindir@
302315 sharedstatedir = @sharedstatedir@
303316 srcdir = @srcdir@
351364 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu extensions/Makefile'; \
352365 $(am__cd) $(top_srcdir) && \
353366 $(AUTOMAKE) --gnu extensions/Makefile
354 .PRECIOUS: Makefile
355367 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
356368 @case '$?' in \
357369 *config.status*) \
358370 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
359371 *) \
360 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
361 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
372 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
373 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
362374 esac;
363375
364376 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
390402 distclean-compile:
391403 -rm -f *.tab.c
392404
393 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/svc.Plo@am__quote@
405 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/svc.Plo@am__quote@ # am--include-marker
406
407 $(am__depfiles_remade):
408 @$(MKDIR_P) $(@D)
409 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
410
411 am--depfiles: $(am__depfiles_remade)
394412
395413 .c.o:
396414 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
397415 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
398416 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
399417 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
418 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
401419
402420 .c.obj:
403421 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
404422 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
405423 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
406424 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
407 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
425 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
408426
409427 .c.lo:
410428 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
478496 distclean-tags:
479497 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
480498
481 distdir: $(DISTFILES)
499 distdir: $(BUILT_SOURCES)
500 $(MAKE) $(AM_MAKEFLAGS) distdir-am
501
502 distdir-am: $(DISTFILES)
482503 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
483504 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
484505 list='$(DISTFILES)'; \
552573 mostlyclean-am
553574
554575 distclean: distclean-am
555 -rm -rf ./$(DEPDIR)
576 -rm -f ./$(DEPDIR)/svc.Plo
556577 -rm -f Makefile
557578 distclean-am: clean-am distclean-compile distclean-generic \
558579 distclean-tags
598619 installcheck-am:
599620
600621 maintainer-clean: maintainer-clean-am
601 -rm -rf ./$(DEPDIR)
622 -rm -f ./$(DEPDIR)/svc.Plo
602623 -rm -f Makefile
603624 maintainer-clean-am: distclean-am maintainer-clean-generic
604625
619640
620641 .MAKE: all check install install-am install-strip
621642
622 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
623 clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
624 ctags-am distclean distclean-compile distclean-generic \
625 distclean-libtool distclean-tags distdir dvi dvi-am html \
626 html-am info info-am install install-am install-data \
627 install-data-am install-dvi install-dvi-am install-exec \
628 install-exec-am install-html install-html-am install-info \
629 install-info-am install-man install-pdf install-pdf-am \
630 install-ps install-ps-am install-strip installcheck \
631 installcheck-am installdirs maintainer-clean \
643 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
644 clean-generic clean-libtool clean-noinstLTLIBRARIES \
645 cscopelist-am ctags ctags-am distclean distclean-compile \
646 distclean-generic distclean-libtool distclean-tags distdir dvi \
647 dvi-am html html-am info info-am install install-am \
648 install-data install-data-am install-dvi install-dvi-am \
649 install-exec install-exec-am install-html install-html-am \
650 install-info install-info-am install-man install-pdf \
651 install-pdf-am install-ps install-ps-am install-strip \
652 installcheck installcheck-am installdirs maintainer-clean \
632653 maintainer-clean-generic mostlyclean mostlyclean-compile \
633654 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
634655 tags tags-am uninstall uninstall-am
656
657 .PRECIOUS: Makefile
635658
636659
637660 _gen/all.xml: all.xml $(wildcard $(srcdir)/*.xml)
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:
+3719
-2164
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
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-10-04.22; # 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='eval 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 ARG
1094 # --------------
1095 # Aesthetically quote one ARG, store the result into $func_quote_result. Note
1096 # that we keep attention to performance here (so far O(N) complexity as long as
1097 # func_append is O(1)).
1098 func_quote ()
1099 {
1100 $debug_cmd
1101
1102 func_quote_result=$1
1103
1104 case $func_quote_result in
1105 *[\\\`\"\$]*)
1106 case $func_quote_result in
1107 *[\[\*\?]*)
1108 func_quote_result=`$ECHO "$func_quote_result" | $SED "$sed_quote_subst"`
1109 return 0
1110 ;;
1111 esac
1112
1113 func_quote_old_IFS=$IFS
1114 for _G_char in '\' '`' '"' '$'
1115 do
1116 # STATE($1) PREV($2) SEPARATOR($3)
1117 set start "" ""
1118 func_quote_result=dummy"$_G_char$func_quote_result$_G_char"dummy
1119 IFS=$_G_char
1120 for _G_part in $func_quote_result
1121 do
1122 case $1 in
1123 quote)
1124 func_append func_quote_result "$3$2"
1125 set quote "$_G_part" "\\$_G_char"
1126 ;;
1127 start)
1128 set first "" ""
1129 func_quote_result=
1130 ;;
1131 first)
1132 set quote "$_G_part" ""
1133 ;;
1134 esac
1135 done
1136 IFS=$func_quote_old_IFS
1137 done
1138 ;;
1139 *) ;;
1140 esac
1141 }
1142
1143
1144 # func_quote_for_eval ARG...
1145 # --------------------------
1146 # Aesthetically quote ARGs to be evaled later.
1147 # This function returns two values:
1148 # i) func_quote_for_eval_result
1149 # double-quoted, suitable for a subsequent eval
1150 # ii) func_quote_for_eval_unquoted_result
1151 # has all characters that are still active within double
1152 # quotes backslashified.
1153 func_quote_for_eval ()
1154 {
1155 $debug_cmd
1156
1157 func_quote_for_eval_unquoted_result=
1158 func_quote_for_eval_result=
1159 while test 0 -lt $#; do
1160 func_quote "$1"
1161 _G_unquoted_arg=$func_quote_result
1162 if test -n "$func_quote_for_eval_unquoted_result"; then
1163 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1164 else
1165 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
1166 fi
1167
1168 case $_G_unquoted_arg in
1169 # Double-quote args containing shell metacharacters to delay
1170 # word splitting, command substitution and variable expansion
1171 # for a subsequent eval.
1172 # Many Bourne shells cannot handle close brackets correctly
1173 # in scan sets, so we specify it separately.
1174 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1175 _G_quoted_arg=\"$_G_unquoted_arg\"
1176 ;;
1177 *)
1178 _G_quoted_arg=$_G_unquoted_arg
1179 ;;
5191180 esac
5201181
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
1182 if test -n "$func_quote_for_eval_result"; then
1183 func_append func_quote_for_eval_result " $_G_quoted_arg"
1184 else
1185 func_append func_quote_for_eval_result "$_G_quoted_arg"
5761186 fi
577
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
1187 shift
1188 done
1189 }
1190
1191
1192 # func_quote_for_expand ARG
1193 # -------------------------
6181194 # Aesthetically quote ARG to be evaled later; same as above,
6191195 # but do not quote variable references.
6201196 func_quote_for_expand ()
6211197 {
1198 $debug_cmd
1199
6221200 case $1 in
6231201 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
1202 _G_arg=`$ECHO "$1" | $SED \
1203 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
6261204 *)
627 my_arg="$1" ;;
1205 _G_arg=$1 ;;
6281206 esac
6291207
630 case $my_arg in
1208 case $_G_arg in
6311209 # Double-quote args containing shell metacharacters to delay
6321210 # word splitting and command substitution for a subsequent eval.
6331211 # Many Bourne shells cannot handle close brackets correctly
6341212 # in scan sets, so we specify it separately.
6351213 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
636 my_arg="\"$my_arg\""
1214 _G_arg=\"$_G_arg\"
6371215 ;;
6381216 esac
6391217
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
1218 func_quote_for_expand_result=$_G_arg
1219 }
1220
1221
1222 # func_stripname PREFIX SUFFIX NAME
1223 # ---------------------------------
1224 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1225 # PREFIX and SUFFIX must not contain globbing or regex special
1226 # characters, hashes, percent signs, but SUFFIX may contain a leading
1227 # dot (in which case that matches only a dot).
1228 if test yes = "$_G_HAVE_XSI_OPS"; then
1229 eval 'func_stripname ()
1230 {
1231 $debug_cmd
1232
1233 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1234 # positional parameters, so assign one to ordinary variable first.
1235 func_stripname_result=$3
1236 func_stripname_result=${func_stripname_result#"$1"}
1237 func_stripname_result=${func_stripname_result%"$2"}
1238 }'
1239 else
1240 func_stripname ()
1241 {
1242 $debug_cmd
1243
1244 case $2 in
1245 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1246 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1247 esac
1248 }
1249 fi
1250
1251
1252 # func_show_eval CMD [FAIL_EXP]
1253 # -----------------------------
1254 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6461255 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6471256 # is given, then evaluate it.
6481257 func_show_eval ()
6491258 {
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"
1259 $debug_cmd
1260
1261 _G_cmd=$1
1262 _G_fail_exp=${2-':'}
1263
1264 func_quote_for_expand "$_G_cmd"
1265 eval "func_notquiet $func_quote_for_expand_result"
1266
1267 $opt_dry_run || {
1268 eval "$_G_cmd"
1269 _G_status=$?
1270 if test 0 -ne "$_G_status"; then
1271 eval "(exit $_G_status); $_G_fail_exp"
1272 fi
6561273 }
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
1274 }
1275
1276
1277 # func_show_eval_locale CMD [FAIL_EXP]
1278 # ------------------------------------
1279 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6701280 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6711281 # is given, then evaluate it. Use the saved locale for evaluation.
6721282 func_show_eval_locale ()
6731283 {
674 my_cmd="$1"
675 my_fail_exp="${2-:}"
676
677 ${opt_silent-false} || {
678 func_quote_for_expand "$my_cmd"
1284 $debug_cmd
1285
1286 _G_cmd=$1
1287 _G_fail_exp=${2-':'}
1288
1289 $opt_quiet || {
1290 func_quote_for_expand "$_G_cmd"
6791291 eval "func_echo $func_quote_for_expand_result"
6801292 }
6811293
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"
1294 $opt_dry_run || {
1295 eval "$_G_user_locale
1296 $_G_cmd"
1297 _G_status=$?
1298 eval "$_G_safe_locale"
1299 if test 0 -ne "$_G_status"; then
1300 eval "(exit $_G_status); $_G_fail_exp"
6891301 fi
690 fi
691 }
1302 }
1303 }
1304
6921305
6931306 # func_tr_sh
1307 # ----------
6941308 # Turn $1 into a string suitable for a shell variable name.
6951309 # Result is stored in $func_tr_sh_result. All characters
6961310 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
6971311 # if $1 begins with a digit, a '_' is prepended as well.
6981312 func_tr_sh ()
6991313 {
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.
1314 $debug_cmd
1315
1316 case $1 in
1317 [0-9]* | *[!a-zA-Z0-9_]*)
1318 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1319 ;;
1320 * )
1321 func_tr_sh_result=$1
1322 ;;
1323 esac
1324 }
1325
1326
1327 # func_verbose ARG...
1328 # -------------------
1329 # Echo program name prefixed message in verbose mode only.
1330 func_verbose ()
1331 {
1332 $debug_cmd
1333
1334 $opt_verbose && func_echo "$*"
1335
1336 :
1337 }
1338
1339
1340 # func_warn_and_continue ARG...
1341 # -----------------------------
1342 # Echo program name prefixed warning message to standard error.
1343 func_warn_and_continue ()
1344 {
1345 $debug_cmd
1346
1347 $require_term_colors
1348
1349 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1350 }
1351
1352
1353 # func_warning CATEGORY ARG...
1354 # ----------------------------
1355 # Echo program name prefixed warning message to standard error. Warning
1356 # messages can be filtered according to CATEGORY, where this function
1357 # elides messages where CATEGORY is not listed in the global variable
1358 # 'opt_warning_types'.
1359 func_warning ()
1360 {
1361 $debug_cmd
1362
1363 # CATEGORY must be in the warning_categories list!
1364 case " $warning_categories " in
1365 *" $1 "*) ;;
1366 *) func_internal_error "invalid warning category '$1'" ;;
1367 esac
1368
1369 _G_category=$1
1370 shift
1371
1372 case " $opt_warning_types " in
1373 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1374 esac
1375 }
1376
1377
1378 # func_sort_ver VER1 VER2
1379 # -----------------------
1380 # 'sort -V' is not generally available.
1381 # Note this deviates from the version comparison in automake
1382 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1383 # but this should suffice as we won't be specifying old
1384 # version formats or redundant trailing .0 in bootstrap.conf.
1385 # If we did want full compatibility then we should probably
1386 # use m4_version_compare from autoconf.
1387 func_sort_ver ()
1388 {
1389 $debug_cmd
1390
1391 printf '%s\n%s\n' "$1" "$2" \
1392 | 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
1393 }
1394
1395 # func_lt_ver PREV CURR
1396 # ---------------------
1397 # Return true if PREV and CURR are in the correct order according to
1398 # func_sort_ver, otherwise false. Use it like this:
1399 #
1400 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1401 func_lt_ver ()
1402 {
1403 $debug_cmd
1404
1405 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1406 }
1407
1408
1409 # Local variables:
1410 # mode: shell-script
1411 # sh-indentation: 2
1412 # eval: (add-hook 'before-save-hook 'time-stamp)
1413 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1414 # time-stamp-time-zone: "UTC"
1415 # End:
1416 #! /bin/sh
1417
1418 # Set a version string for this script.
1419 scriptversion=2014-01-07.03; # UTC
1420
1421 # A portable, pluggable option parser for Bourne shell.
1422 # Written by Gary V. Vaughan, 2010
1423
1424 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1425 # This is free software; see the source for copying conditions. There is NO
1426 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1427
1428 # This program is free software: you can redistribute it and/or modify
1429 # it under the terms of the GNU General Public License as published by
1430 # the Free Software Foundation, either version 3 of the License, or
1431 # (at your option) any later version.
1432
1433 # This program is distributed in the hope that it will be useful,
1434 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1435 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1436 # GNU General Public License for more details.
1437
1438 # You should have received a copy of the GNU General Public License
1439 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1440
1441 # Please report bugs or propose patches to gary@gnu.org.
1442
1443
1444 ## ------ ##
1445 ## Usage. ##
1446 ## ------ ##
1447
1448 # This file is a library for parsing options in your shell scripts along
1449 # with assorted other useful supporting features that you can make use
1450 # of too.
1451 #
1452 # For the simplest scripts you might need only:
1453 #
1454 # #!/bin/sh
1455 # . relative/path/to/funclib.sh
1456 # . relative/path/to/options-parser
1457 # scriptversion=1.0
1458 # func_options ${1+"$@"}
1459 # eval set dummy "$func_options_result"; shift
1460 # ...rest of your script...
1461 #
1462 # In order for the '--version' option to work, you will need to have a
1463 # suitably formatted comment like the one at the top of this file
1464 # starting with '# Written by ' and ending with '# warranty; '.
1465 #
1466 # For '-h' and '--help' to work, you will also need a one line
1467 # description of your script's purpose in a comment directly above the
1468 # '# Written by ' line, like the one at the top of this file.
1469 #
1470 # The default options also support '--debug', which will turn on shell
1471 # execution tracing (see the comment above debug_cmd below for another
1472 # use), and '--verbose' and the func_verbose function to allow your script
1473 # to display verbose messages only when your user has specified
1474 # '--verbose'.
1475 #
1476 # After sourcing this file, you can plug processing for additional
1477 # options by amending the variables from the 'Configuration' section
1478 # below, and following the instructions in the 'Option parsing'
1479 # section further down.
1480
1481 ## -------------- ##
1482 ## Configuration. ##
1483 ## -------------- ##
1484
1485 # You should override these variables in your script after sourcing this
1486 # file so that they reflect the customisations you have added to the
1487 # option parser.
1488
1489 # The usage line for option parsing errors and the start of '-h' and
1490 # '--help' output messages. You can embed shell variables for delayed
1491 # expansion at the time the message is displayed, but you will need to
1492 # quote other shell meta-characters carefully to prevent them being
1493 # expanded when the contents are evaled.
1494 usage='$progpath [OPTION]...'
1495
1496 # Short help message in response to '-h' and '--help'. Add to this or
1497 # override it after sourcing this library to reflect the full set of
1498 # options your script accepts.
1499 usage_message="\
1500 --debug enable verbose shell tracing
1501 -W, --warnings=CATEGORY
1502 report the warnings falling in CATEGORY [all]
1503 -v, --verbose verbosely report processing
1504 --version print version information and exit
1505 -h, --help print short or long help message and exit
1506 "
1507
1508 # Additional text appended to 'usage_message' in response to '--help'.
1509 long_help_message="
1510 Warning categories include:
1511 'all' show all warnings
1512 'none' turn off all the warnings
1513 'error' warnings are treated as fatal errors"
1514
1515 # Help message printed before fatal option parsing errors.
1516 fatal_help="Try '\$progname --help' for more information."
1517
1518
1519
1520 ## ------------------------- ##
1521 ## Hook function management. ##
1522 ## ------------------------- ##
1523
1524 # This section contains functions for adding, removing, and running hooks
1525 # to the main code. A hook is just a named list of of function, that can
1526 # be run in order later on.
1527
1528 # func_hookable FUNC_NAME
1529 # -----------------------
1530 # Declare that FUNC_NAME will run hooks added with
1531 # 'func_add_hook FUNC_NAME ...'.
1532 func_hookable ()
1533 {
1534 $debug_cmd
1535
1536 func_append hookable_fns " $1"
1537 }
1538
1539
1540 # func_add_hook FUNC_NAME HOOK_FUNC
1541 # ---------------------------------
1542 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1543 # first have been declared "hookable" by a call to 'func_hookable'.
1544 func_add_hook ()
1545 {
1546 $debug_cmd
1547
1548 case " $hookable_fns " in
1549 *" $1 "*) ;;
1550 *) func_fatal_error "'$1' does not accept hook functions." ;;
1551 esac
1552
1553 eval func_append ${1}_hooks '" $2"'
1554 }
1555
1556
1557 # func_remove_hook FUNC_NAME HOOK_FUNC
1558 # ------------------------------------
1559 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1560 func_remove_hook ()
1561 {
1562 $debug_cmd
1563
1564 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1565 }
1566
1567
1568 # func_run_hooks FUNC_NAME [ARG]...
1569 # ---------------------------------
1570 # Run all hook functions registered to FUNC_NAME.
1571 # It is assumed that the list of hook functions contains nothing more
1572 # than a whitespace-delimited list of legal shell function names, and
1573 # no effort is wasted trying to catch shell meta-characters or preserve
1574 # whitespace.
1575 func_run_hooks ()
1576 {
1577 $debug_cmd
1578
1579 case " $hookable_fns " in
1580 *" $1 "*) ;;
1581 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1582 esac
1583
1584 eval _G_hook_fns=\$$1_hooks; shift
1585
1586 for _G_hook in $_G_hook_fns; do
1587 eval $_G_hook '"$@"'
1588
1589 # store returned options list back into positional
1590 # parameters for next 'cmd' execution.
1591 eval _G_hook_result=\$${_G_hook}_result
1592 eval set dummy "$_G_hook_result"; shift
1593 done
1594
1595 func_quote_for_eval ${1+"$@"}
1596 func_run_hooks_result=$func_quote_for_eval_result
1597 }
1598
1599
1600
1601 ## --------------- ##
1602 ## Option parsing. ##
1603 ## --------------- ##
1604
1605 # In order to add your own option parsing hooks, you must accept the
1606 # full positional parameter list in your hook function, remove any
1607 # options that you action, and then pass back the remaining unprocessed
1608 # options in '<hooked_function_name>_result', escaped suitably for
1609 # 'eval'. Like this:
1610 #
1611 # my_options_prep ()
1612 # {
1613 # $debug_cmd
1614 #
1615 # # Extend the existing usage message.
1616 # usage_message=$usage_message'
1617 # -s, --silent don'\''t print informational messages
1618 # '
1619 #
1620 # func_quote_for_eval ${1+"$@"}
1621 # my_options_prep_result=$func_quote_for_eval_result
1622 # }
1623 # func_add_hook func_options_prep my_options_prep
1624 #
1625 #
1626 # my_silent_option ()
1627 # {
1628 # $debug_cmd
1629 #
1630 # # Note that for efficiency, we parse as many options as we can
1631 # # recognise in a loop before passing the remainder back to the
1632 # # caller on the first unrecognised argument we encounter.
1633 # while test $# -gt 0; do
1634 # opt=$1; shift
1635 # case $opt in
1636 # --silent|-s) opt_silent=: ;;
1637 # # Separate non-argument short options:
1638 # -s*) func_split_short_opt "$_G_opt"
1639 # set dummy "$func_split_short_opt_name" \
1640 # "-$func_split_short_opt_arg" ${1+"$@"}
1641 # shift
1642 # ;;
1643 # *) set dummy "$_G_opt" "$*"; shift; break ;;
1644 # esac
1645 # done
1646 #
1647 # func_quote_for_eval ${1+"$@"}
1648 # my_silent_option_result=$func_quote_for_eval_result
1649 # }
1650 # func_add_hook func_parse_options my_silent_option
1651 #
1652 #
1653 # my_option_validation ()
1654 # {
1655 # $debug_cmd
1656 #
1657 # $opt_silent && $opt_verbose && func_fatal_help "\
1658 # '--silent' and '--verbose' options are mutually exclusive."
1659 #
1660 # func_quote_for_eval ${1+"$@"}
1661 # my_option_validation_result=$func_quote_for_eval_result
1662 # }
1663 # func_add_hook func_validate_options my_option_validation
1664 #
1665 # You'll alse need to manually amend $usage_message to reflect the extra
1666 # options you parse. It's preferable to append if you can, so that
1667 # multiple option parsing hooks can be added safely.
1668
1669
1670 # func_options [ARG]...
1671 # ---------------------
1672 # All the functions called inside func_options are hookable. See the
1673 # individual implementations for details.
1674 func_hookable func_options
1675 func_options ()
1676 {
1677 $debug_cmd
1678
1679 func_options_prep ${1+"$@"}
1680 eval func_parse_options \
1681 ${func_options_prep_result+"$func_options_prep_result"}
1682 eval func_validate_options \
1683 ${func_parse_options_result+"$func_parse_options_result"}
1684
1685 eval func_run_hooks func_options \
1686 ${func_validate_options_result+"$func_validate_options_result"}
1687
1688 # save modified positional parameters for caller
1689 func_options_result=$func_run_hooks_result
1690 }
1691
1692
1693 # func_options_prep [ARG]...
1694 # --------------------------
1695 # All initialisations required before starting the option parse loop.
1696 # Note that when calling hook functions, we pass through the list of
1697 # positional parameters. If a hook function modifies that list, and
1698 # needs to propogate that back to rest of this script, then the complete
1699 # modified list must be put in 'func_run_hooks_result' before
1700 # returning.
1701 func_hookable func_options_prep
1702 func_options_prep ()
1703 {
1704 $debug_cmd
1705
1706 # Option defaults:
1707 opt_verbose=false
1708 opt_warning_types=
1709
1710 func_run_hooks func_options_prep ${1+"$@"}
1711
1712 # save modified positional parameters for caller
1713 func_options_prep_result=$func_run_hooks_result
1714 }
1715
1716
1717 # func_parse_options [ARG]...
1718 # ---------------------------
1719 # The main option parsing loop.
1720 func_hookable func_parse_options
1721 func_parse_options ()
1722 {
1723 $debug_cmd
1724
1725 func_parse_options_result=
1726
1727 # this just eases exit handling
1728 while test $# -gt 0; do
1729 # Defer to hook functions for initial option parsing, so they
1730 # get priority in the event of reusing an option name.
1731 func_run_hooks func_parse_options ${1+"$@"}
1732
1733 # Adjust func_parse_options positional parameters to match
1734 eval set dummy "$func_run_hooks_result"; shift
1735
1736 # Break out of the loop if we already parsed every option.
1737 test $# -gt 0 || break
1738
1739 _G_opt=$1
1740 shift
1741 case $_G_opt in
1742 --debug|-x) debug_cmd='set -x'
1743 func_echo "enabling shell trace mode"
1744 $debug_cmd
1745 ;;
1746
1747 --no-warnings|--no-warning|--no-warn)
1748 set dummy --warnings none ${1+"$@"}
1749 shift
1750 ;;
1751
1752 --warnings|--warning|-W)
1753 test $# = 0 && func_missing_arg $_G_opt && break
1754 case " $warning_categories $1" in
1755 *" $1 "*)
1756 # trailing space prevents matching last $1 above
1757 func_append_uniq opt_warning_types " $1"
1758 ;;
1759 *all)
1760 opt_warning_types=$warning_categories
1761 ;;
1762 *none)
1763 opt_warning_types=none
1764 warning_func=:
1765 ;;
1766 *error)
1767 opt_warning_types=$warning_categories
1768 warning_func=func_fatal_error
1769 ;;
1770 *)
1771 func_fatal_error \
1772 "unsupported warning category: '$1'"
1773 ;;
1774 esac
1775 shift
1776 ;;
1777
1778 --verbose|-v) opt_verbose=: ;;
1779 --version) func_version ;;
1780 -\?|-h) func_usage ;;
1781 --help) func_help ;;
1782
1783 # Separate optargs to long options (plugins may need this):
1784 --*=*) func_split_equals "$_G_opt"
1785 set dummy "$func_split_equals_lhs" \
1786 "$func_split_equals_rhs" ${1+"$@"}
1787 shift
1788 ;;
1789
1790 # Separate optargs to short options:
1791 -W*)
1792 func_split_short_opt "$_G_opt"
1793 set dummy "$func_split_short_opt_name" \
1794 "$func_split_short_opt_arg" ${1+"$@"}
1795 shift
1796 ;;
1797
1798 # Separate non-argument short options:
1799 -\?*|-h*|-v*|-x*)
1800 func_split_short_opt "$_G_opt"
1801 set dummy "$func_split_short_opt_name" \
1802 "-$func_split_short_opt_arg" ${1+"$@"}
1803 shift
1804 ;;
1805
1806 --) break ;;
1807 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1808 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1809 esac
1810 done
1811
1812 # save modified positional parameters for caller
1813 func_quote_for_eval ${1+"$@"}
1814 func_parse_options_result=$func_quote_for_eval_result
1815 }
1816
1817
1818 # func_validate_options [ARG]...
1819 # ------------------------------
1820 # Perform any sanity checks on option settings and/or unconsumed
1821 # arguments.
1822 func_hookable func_validate_options
1823 func_validate_options ()
1824 {
1825 $debug_cmd
1826
1827 # Display all warnings if -W was not given.
1828 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1829
1830 func_run_hooks func_validate_options ${1+"$@"}
1831
1832 # Bail if the options were screwed!
1833 $exit_cmd $EXIT_FAILURE
1834
1835 # save modified positional parameters for caller
1836 func_validate_options_result=$func_run_hooks_result
1837 }
1838
1839
1840
1841 ## ----------------- ##
1842 ## Helper functions. ##
1843 ## ----------------- ##
1844
1845 # This section contains the helper functions used by the rest of the
1846 # hookable option parser framework in ascii-betical order.
1847
1848
1849 # func_fatal_help ARG...
1850 # ----------------------
1851 # Echo program name prefixed message to standard error, followed by
1852 # a help hint, and exit.
1853 func_fatal_help ()
1854 {
1855 $debug_cmd
1856
1857 eval \$ECHO \""Usage: $usage"\"
1858 eval \$ECHO \""$fatal_help"\"
1859 func_error ${1+"$@"}
1860 exit $EXIT_FAILURE
1861 }
1862
1863
1864 # func_help
1865 # ---------
1866 # Echo long help message to standard output and exit.
7541867 func_help ()
7551868 {
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
1869 $debug_cmd
1870
1871 func_usage_message
1872 $ECHO "$long_help_message"
1873 exit 0
1874 }
1875
1876
1877 # func_missing_arg ARGNAME
1878 # ------------------------
7841879 # Echo program name prefixed message to standard error and set global
7851880 # exit_cmd.
7861881 func_missing_arg ()
7871882 {
788 $opt_debug
789
790 func_error "missing argument for $1."
1883 $debug_cmd
1884
1885 func_error "Missing argument for '$1'."
7911886 exit_cmd=exit
7921887 }
7931888
7941889
795 # func_split_short_opt shortopt
1890 # func_split_equals STRING
1891 # ------------------------
1892 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1893 # splitting STRING at the '=' sign.
1894 test -z "$_G_HAVE_XSI_OPS" \
1895 && (eval 'x=a/b/c;
1896 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1897 && _G_HAVE_XSI_OPS=yes
1898
1899 if test yes = "$_G_HAVE_XSI_OPS"
1900 then
1901 # This is an XSI compatible shell, allowing a faster implementation...
1902 eval 'func_split_equals ()
1903 {
1904 $debug_cmd
1905
1906 func_split_equals_lhs=${1%%=*}
1907 func_split_equals_rhs=${1#*=}
1908 test "x$func_split_equals_lhs" = "x$1" \
1909 && func_split_equals_rhs=
1910 }'
1911 else
1912 # ...otherwise fall back to using expr, which is often a shell builtin.
1913 func_split_equals ()
1914 {
1915 $debug_cmd
1916
1917 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1918 func_split_equals_rhs=
1919 test "x$func_split_equals_lhs" = "x$1" \
1920 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1921 }
1922 fi #func_split_equals
1923
1924
1925 # func_split_short_opt SHORTOPT
1926 # -----------------------------
7961927 # Set func_split_short_opt_name and func_split_short_opt_arg shell
7971928 # 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...
1929 if test yes = "$_G_HAVE_XSI_OPS"
1930 then
1931 # This is an XSI compatible shell, allowing a faster implementation...
1932 eval 'func_split_short_opt ()
1933 {
1934 $debug_cmd
1935
1936 func_split_short_opt_arg=${1#??}
1937 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1938 }'
1939 else
1940 # ...otherwise fall back to using expr, which is often a shell builtin.
1941 func_split_short_opt ()
1942 {
1943 $debug_cmd
1944
1945 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1946 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1947 }
1948 fi #func_split_short_opt
1949
1950
1951 # func_usage
1952 # ----------
1953 # Echo short help message to standard output and exit.
1954 func_usage ()
1955 {
1956 $debug_cmd
1957
1958 func_usage_message
1959 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1960 exit 0
1961 }
1962
1963
1964 # func_usage_message
1965 # ------------------
1966 # Echo short help message to standard output.
1967 func_usage_message ()
1968 {
1969 $debug_cmd
1970
1971 eval \$ECHO \""Usage: $usage"\"
1972 echo
1973 $SED -n 's|^# ||
1974 /^Written by/{
1975 x;p;x
1976 }
1977 h
1978 /^Written by/q' < "$progpath"
1979 echo
1980 eval \$ECHO \""$usage_message"\"
1981 }
1982
1983
1984 # func_version
1985 # ------------
1986 # Echo version message to standard output and exit.
1987 func_version ()
1988 {
1989 $debug_cmd
1990
1991 printf '%s\n' "$progname $scriptversion"
1992 $SED -n '
1993 /(C)/!b go
1994 :more
1995 /\./!{
1996 N
1997 s|\n# | |
1998 b more
1999 }
2000 :go
2001 /^# Written by /,/# warranty; / {
2002 s|^# ||
2003 s|^# *$||
2004 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2005 p
2006 }
2007 /^# Written by / {
2008 s|^# ||
2009 p
2010 }
2011 /^warranty; /q' < "$progpath"
2012
2013 exit $?
2014 }
2015
2016
2017 # Local variables:
2018 # mode: shell-script
2019 # sh-indentation: 2
2020 # eval: (add-hook 'before-save-hook 'time-stamp)
2021 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2022 # time-stamp-time-zone: "UTC"
2023 # End:
2024
2025 # Set a version string.
2026 scriptversion='(GNU libtool) 2.4.6'
2027
2028
2029 # func_echo ARG...
2030 # ----------------
2031 # Libtool also displays the current mode in messages, so override
2032 # funclib.sh func_echo with this custom definition.
2033 func_echo ()
2034 {
2035 $debug_cmd
2036
2037 _G_message=$*
2038
2039 func_echo_IFS=$IFS
2040 IFS=$nl
2041 for _G_line in $_G_message; do
2042 IFS=$func_echo_IFS
2043 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
2044 done
2045 IFS=$func_echo_IFS
2046 }
2047
2048
2049 # func_warning ARG...
2050 # -------------------
2051 # Libtool warnings are not categorized, so override funclib.sh
2052 # func_warning with this simpler definition.
2053 func_warning ()
2054 {
2055 $debug_cmd
2056
2057 $warning_func ${1+"$@"}
2058 }
2059
2060
2061 ## ---------------- ##
2062 ## Options parsing. ##
2063 ## ---------------- ##
2064
2065 # Hook in the functions to make sure our own options are parsed during
2066 # the option parsing loop.
2067
2068 usage='$progpath [OPTION]... [MODE-ARG]...'
2069
2070 # Short help message in response to '-h'.
2071 usage_message="Options:
2072 --config show all configuration variables
2073 --debug enable verbose shell tracing
2074 -n, --dry-run display commands without modifying any files
2075 --features display basic configuration information and exit
2076 --mode=MODE use operation mode MODE
2077 --no-warnings equivalent to '-Wnone'
2078 --preserve-dup-deps don't remove duplicate dependency libraries
2079 --quiet, --silent don't print informational messages
2080 --tag=TAG use configuration variables from tag TAG
2081 -v, --verbose print more informational messages than default
2082 --version print version information
2083 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2084 -h, --help, --help-all print short, long, or detailed help message
2085 "
2086
2087 # Additional text appended to 'usage_message' in response to '--help'.
2088 func_help ()
2089 {
2090 $debug_cmd
2091
2092 func_usage_message
2093 $ECHO "$long_help_message
2094
2095 MODE must be one of the following:
2096
2097 clean remove files from the build directory
2098 compile compile a source file into a libtool object
2099 execute automatically set library path, then run a program
2100 finish complete the installation of libtool libraries
2101 install install libraries or executables
2102 link create a library or an executable
2103 uninstall remove libraries from an installed directory
2104
2105 MODE-ARGS vary depending on the MODE. When passed as first option,
2106 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2107 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2108
2109 When reporting a bug, please describe a test case to reproduce it and
2110 include the following information:
2111
2112 host-triplet: $host
2113 shell: $SHELL
2114 compiler: $LTCC
2115 compiler flags: $LTCFLAGS
2116 linker: $LD (gnu? $with_gnu_ld)
2117 version: $progname (GNU libtool) 2.4.6
2118 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2119 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2120
2121 Report bugs to <bug-libtool@gnu.org>.
2122 GNU libtool home page: <http://www.gnu.org/software/libtool/>.
2123 General help using GNU software: <http://www.gnu.org/gethelp/>."
2124 exit 0
2125 }
2126
2127
2128 # func_lo2o OBJECT-NAME
2129 # ---------------------
2130 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2131 # object suffix.
2132
2133 lo2o=s/\\.lo\$/.$objext/
2134 o2lo=s/\\.$objext\$/.lo/
2135
2136 if test yes = "$_G_HAVE_XSI_OPS"; then
2137 eval 'func_lo2o ()
2138 {
2139 case $1 in
2140 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2141 * ) func_lo2o_result=$1 ;;
2142 esac
2143 }'
2144
2145 # func_xform LIBOBJ-OR-SOURCE
2146 # ---------------------------
2147 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2148 # suffix to a '.lo' libtool-object suffix.
2149 eval 'func_xform ()
2150 {
2151 func_xform_result=${1%.*}.lo
2152 }'
2153 else
2154 # ...otherwise fall back to using sed.
2155 func_lo2o ()
2156 {
2157 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2158 }
2159
2160 func_xform ()
2161 {
2162 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2163 }
2164 fi
2165
2166
2167 # func_fatal_configuration ARG...
2168 # -------------------------------
8892169 # Echo program name prefixed message to standard error, followed by
8902170 # a configuration failure hint, and exit.
8912171 func_fatal_configuration ()
8922172 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
2173 func__fatal_error ${1+"$@"} \
2174 "See the $PACKAGE documentation for more information." \
2175 "Fatal configuration error."
8962176 }
8972177
8982178
8992179 # func_config
2180 # -----------
9002181 # Display the configuration for all the tags in this script.
9012182 func_config ()
9022183 {
9142195 exit $?
9152196 }
9162197
2198
9172199 # func_features
2200 # -------------
9182201 # Display the features supported by this script.
9192202 func_features ()
9202203 {
9212204 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
2205 if test yes = "$build_libtool_libs"; then
9232206 echo "enable shared libraries"
9242207 else
9252208 echo "disable shared libraries"
9262209 fi
927 if test "$build_old_libs" = yes; then
2210 if test yes = "$build_old_libs"; then
9282211 echo "enable static libraries"
9292212 else
9302213 echo "disable static libraries"
9332216 exit $?
9342217 }
9352218
936 # func_enable_tag tagname
2219
2220 # func_enable_tag TAGNAME
2221 # -----------------------
9372222 # Verify that TAGNAME is valid, and either flag an error and exit, or
9382223 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
9392224 # variable here.
9402225 func_enable_tag ()
9412226 {
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) ;;
2227 # Global variable:
2228 tagname=$1
2229
2230 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2231 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2232 sed_extractcf=/$re_begincf/,/$re_endcf/p
2233
2234 # Validate tagname.
2235 case $tagname in
2236 *[!-_A-Za-z0-9,/]*)
2237 func_fatal_error "invalid tag name: $tagname"
2238 ;;
2239 esac
2240
2241 # Don't test for the "default" C tag, as we know it's
2242 # there but not specially marked.
2243 case $tagname in
2244 CC) ;;
9602245 *)
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 }
2246 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2247 taglist="$taglist $tagname"
2248
2249 # Evaluate the configuration. Be careful to quote the path
2250 # and the sed script, to avoid splitting on whitespace, but
2251 # also don't use non-portable quotes within backquotes within
2252 # quotes we have to do it in 2 steps:
2253 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2254 eval "$extractedcf"
2255 else
2256 func_error "ignoring unknown tag $tagname"
2257 fi
2258 ;;
2259 esac
2260 }
2261
9762262
9772263 # func_check_version_match
2264 # ------------------------
9782265 # Ensure that we are using m4 macros, and libtool script from the same
9792266 # release of libtool.
9802267 func_check_version_match ()
9812268 {
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
2269 if test "$package_revision" != "$macro_revision"; then
2270 if test "$VERSION" != "$macro_version"; then
2271 if test -z "$macro_version"; then
2272 cat >&2 <<_LT_EOF
9862273 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9872274 $progname: definition of this LT_INIT comes from an older release.
9882275 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9892276 $progname: and run autoconf again.
9902277 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
2278 else
2279 cat >&2 <<_LT_EOF
9932280 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9942281 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
9952282 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9962283 $progname: and run autoconf again.
9972284 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
2285 fi
2286 else
2287 cat >&2 <<_LT_EOF
10012288 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
10022289 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
10032290 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
10042291 $progname: of $PACKAGE $VERSION and run autoconf again.
10052292 _LT_EOF
2293 fi
2294
2295 exit $EXIT_MISMATCH
10062296 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 ;;
2297 }
2298
2299
2300 # libtool_options_prep [ARG]...
2301 # -----------------------------
2302 # Preparation for options parsed by libtool.
2303 libtool_options_prep ()
2304 {
2305 $debug_mode
2306
2307 # Option defaults:
2308 opt_config=false
2309 opt_dlopen=
2310 opt_dry_run=false
2311 opt_help=false
2312 opt_mode=
2313 opt_preserve_dup_deps=false
2314 opt_quiet=false
2315
2316 nonopt=
2317 preserve_args=
2318
2319 # Shorthand for --mode=foo, only valid as the first argument
2320 case $1 in
2321 clean|clea|cle|cl)
2322 shift; set dummy --mode clean ${1+"$@"}; shift
2323 ;;
2324 compile|compil|compi|comp|com|co|c)
2325 shift; set dummy --mode compile ${1+"$@"}; shift
2326 ;;
2327 execute|execut|execu|exec|exe|ex|e)
2328 shift; set dummy --mode execute ${1+"$@"}; shift
2329 ;;
2330 finish|finis|fini|fin|fi|f)
2331 shift; set dummy --mode finish ${1+"$@"}; shift
2332 ;;
2333 install|instal|insta|inst|ins|in|i)
2334 shift; set dummy --mode install ${1+"$@"}; shift
2335 ;;
2336 link|lin|li|l)
2337 shift; set dummy --mode link ${1+"$@"}; shift
2338 ;;
2339 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2340 shift; set dummy --mode uninstall ${1+"$@"}; shift
2341 ;;
11672342 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=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
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"
2343
2344 # Pass back the list of options.
2345 func_quote_for_eval ${1+"$@"}
2346 libtool_options_prep_result=$func_quote_for_eval_result
2347 }
2348 func_add_hook func_options_prep libtool_options_prep
2349
2350
2351 # libtool_parse_options [ARG]...
2352 # ---------------------------------
2353 # Provide handling for libtool specific options.
2354 libtool_parse_options ()
2355 {
2356 $debug_cmd
2357
2358 # Perform our own loop to consume as many options as possible in
2359 # each iteration.
2360 while test $# -gt 0; do
2361 _G_opt=$1
2362 shift
2363 case $_G_opt in
2364 --dry-run|--dryrun|-n)
2365 opt_dry_run=:
2366 ;;
2367
2368 --config) func_config ;;
2369
2370 --dlopen|-dlopen)
2371 opt_dlopen="${opt_dlopen+$opt_dlopen
2372 }$1"
2373 shift
2374 ;;
2375
2376 --preserve-dup-deps)
2377 opt_preserve_dup_deps=: ;;
2378
2379 --features) func_features ;;
2380
2381 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2382
2383 --help) opt_help=: ;;
2384
2385 --help-all) opt_help=': help-all' ;;
2386
2387 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2388 opt_mode=$1
2389 case $1 in
2390 # Valid mode arguments:
2391 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2392
2393 # Catch anything else as an error
2394 *) func_error "invalid argument for $_G_opt"
2395 exit_cmd=exit
2396 break
2397 ;;
2398 esac
2399 shift
2400 ;;
2401
2402 --no-silent|--no-quiet)
2403 opt_quiet=false
2404 func_append preserve_args " $_G_opt"
2405 ;;
2406
2407 --no-warnings|--no-warning|--no-warn)
2408 opt_warning=false
2409 func_append preserve_args " $_G_opt"
2410 ;;
2411
2412 --no-verbose)
2413 opt_verbose=false
2414 func_append preserve_args " $_G_opt"
2415 ;;
2416
2417 --silent|--quiet)
2418 opt_quiet=:
2419 opt_verbose=false
2420 func_append preserve_args " $_G_opt"
2421 ;;
2422
2423 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2424 opt_tag=$1
2425 func_append preserve_args " $_G_opt $1"
2426 func_enable_tag "$1"
2427 shift
2428 ;;
2429
2430 --verbose|-v) opt_quiet=false
2431 opt_verbose=:
2432 func_append preserve_args " $_G_opt"
2433 ;;
2434
2435 # An option not handled by this hook function:
2436 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2437 esac
2438 done
2439
2440
2441 # save modified positional parameters for caller
2442 func_quote_for_eval ${1+"$@"}
2443 libtool_parse_options_result=$func_quote_for_eval_result
2444 }
2445 func_add_hook func_parse_options libtool_parse_options
2446
2447
2448
2449 # libtool_validate_options [ARG]...
2450 # ---------------------------------
2451 # Perform any sanity checks on option settings and/or unconsumed
2452 # arguments.
2453 libtool_validate_options ()
2454 {
2455 # save first non-option argument
2456 if test 0 -lt $#; then
2457 nonopt=$1
2458 shift
11972459 fi
11982460
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
1207 fi
1208
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
2461 # preserve --debug
2462 test : = "$debug_cmd" || func_append preserve_args " --debug"
2463
2464 case $host in
2465 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2466 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2467 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2468 # don't eliminate duplications in $postdeps and $predeps
2469 opt_duplicate_compiler_generated_deps=:
2470 ;;
2471 *)
2472 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2473 ;;
2474 esac
2475
2476 $opt_help || {
2477 # Sanity checks first:
2478 func_check_version_match
2479
2480 test yes != "$build_libtool_libs" \
2481 && test yes != "$build_old_libs" \
2482 && func_fatal_configuration "not configured to build any kind of library"
2483
2484 # Darwin sucks
2485 eval std_shrext=\"$shrext_cmds\"
2486
2487 # Only execute mode is allowed to have -dlopen flags.
2488 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2489 func_error "unrecognized option '-dlopen'"
2490 $ECHO "$help" 1>&2
2491 exit $EXIT_FAILURE
2492 fi
2493
2494 # Change the help message to a mode-specific one.
2495 generic_help=$help
2496 help="Try '$progname --help --mode=$opt_mode' for more information."
2497 }
2498
2499 # Pass back the unparsed argument list
2500 func_quote_for_eval ${1+"$@"}
2501 libtool_validate_options_result=$func_quote_for_eval_result
2502 }
2503 func_add_hook func_validate_options libtool_validate_options
2504
2505
2506 # Process options as early as possible so that --help and --version
2507 # can return quickly.
2508 func_options ${1+"$@"}
2509 eval set dummy "$func_options_result"; shift
12192510
12202511
12212512
12232514 ## Main. ##
12242515 ## ----------- ##
12252516
2517 magic='%%%MAGIC variable%%%'
2518 magic_exe='%%%MAGIC EXE variable%%%'
2519
2520 # Global variables.
2521 extracted_archives=
2522 extracted_serial=0
2523
2524 # If this variable is set in any of the actions, the command in it
2525 # will be execed at the end. This prevents here-documents from being
2526 # left over by shells.
2527 exec_cmd=
2528
2529
2530 # A function that is used when there is no print builtin or printf.
2531 func_fallback_echo ()
2532 {
2533 eval 'cat <<_LTECHO_EOF
2534 $1
2535 _LTECHO_EOF'
2536 }
2537
2538 # func_generated_by_libtool
2539 # True iff stdin has been generated by Libtool. This function is only
2540 # a basic sanity check; it will hardly flush out determined imposters.
2541 func_generated_by_libtool_p ()
2542 {
2543 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2544 }
2545
12262546 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
2547 # True iff FILE is a libtool '.la' library or '.lo' object file.
12282548 # This function is only a basic sanity check; it will hardly flush out
12292549 # determined imposters.
12302550 func_lalib_p ()
12312551 {
12322552 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2553 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
12352554 }
12362555
12372556 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
2557 # True iff FILE is a libtool '.la' library or '.lo' object file.
12392558 # This function implements the same check as func_lalib_p without
12402559 # resorting to external programs. To this end, it redirects stdin and
12412560 # closes it afterwards, without saving the original file descriptor.
12422561 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
2562 # fatal anyway. Works if 'file' does not exist.
12442563 func_lalib_unsafe_p ()
12452564 {
12462565 lalib_p=no
12482567 for lalib_p_l in 1 2 3 4
12492568 do
12502569 read lalib_p_line
1251 case "$lalib_p_line" in
2570 case $lalib_p_line in
12522571 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
12532572 esac
12542573 done
12552574 exec 0<&5 5<&-
12562575 fi
1257 test "$lalib_p" = yes
2576 test yes = "$lalib_p"
12582577 }
12592578
12602579 # func_ltwrapper_script_p file
12632582 # determined imposters.
12642583 func_ltwrapper_script_p ()
12652584 {
1266 func_lalib_p "$1"
2585 test -f "$1" &&
2586 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
12672587 }
12682588
12692589 # func_ltwrapper_executable_p file
12882608 {
12892609 func_dirname_and_basename "$1" "" "."
12902610 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
2611 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
12922612 }
12932613
12942614 # func_ltwrapper_p file
13072627 # FAIL_CMD may read-access the current command in variable CMD!
13082628 func_execute_cmds ()
13092629 {
1310 $opt_debug
2630 $debug_cmd
2631
13112632 save_ifs=$IFS; IFS='~'
13122633 for cmd in $1; do
2634 IFS=$sp$nl
2635 eval cmd=\"$cmd\"
13132636 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
13152637 func_show_eval "$cmd" "${2-:}"
13162638 done
13172639 IFS=$save_ifs
13232645 # Note that it is not necessary on cygwin/mingw to append a dot to
13242646 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
13252647 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
2648 # 'FILE.' does not work on cygwin managed mounts.
13272649 func_source ()
13282650 {
1329 $opt_debug
2651 $debug_cmd
2652
13302653 case $1 in
13312654 */* | *\\*) . "$1" ;;
13322655 *) . "./$1" ;;
13532676 # store the result into func_replace_sysroot_result.
13542677 func_replace_sysroot ()
13552678 {
1356 case "$lt_sysroot:$1" in
2679 case $lt_sysroot:$1 in
13572680 ?*:"$lt_sysroot"*)
13582681 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
2682 func_replace_sysroot_result='='$func_stripname_result
13602683 ;;
13612684 *)
13622685 # Including no sysroot.
13732696 # arg is usually of the form 'gcc ...'
13742697 func_infer_tag ()
13752698 {
1376 $opt_debug
2699 $debug_cmd
2700
13772701 if test -n "$available_tags" && test -z "$tagname"; then
13782702 CC_quoted=
13792703 for arg in $CC; do
13922716 for z in $available_tags; do
13932717 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
13942718 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2719 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
13962720 CC_quoted=
13972721 for arg in $CC; do
13982722 # Double-quote args containing other shell metacharacters.
14172741 # line option must be used.
14182742 if test -z "$tagname"; then
14192743 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
2744 func_fatal_error "specify a tag with '--tag'"
14212745 # else
14222746 # func_verbose "using $tagname tagged configuration"
14232747 fi
14332757 # but don't create it if we're doing a dry run.
14342758 func_write_libtool_object ()
14352759 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
2760 write_libobj=$1
2761 if test yes = "$build_libtool_libs"; then
2762 write_lobj=\'$2\'
14392763 else
14402764 write_lobj=none
14412765 fi
14422766
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
2767 if test yes = "$build_old_libs"; then
2768 write_oldobj=\'$3\'
14452769 else
14462770 write_oldobj=none
14472771 fi
14492773 $opt_dry_run || {
14502774 cat >${write_libobj}T <<EOF
14512775 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2776 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
14532777 #
14542778 # Please DO NOT delete this file!
14552779 # It is necessary for linking the library.
14612785 non_pic_object=$write_oldobj
14622786
14632787 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
2788 $MV "${write_libobj}T" "$write_libobj"
14652789 }
14662790 }
14672791
14812805 # be empty on error (or when ARG is empty)
14822806 func_convert_core_file_wine_to_w32 ()
14832807 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
2808 $debug_cmd
2809
2810 func_convert_core_file_wine_to_w32_result=$1
14862811 if test -n "$1"; then
14872812 # Unfortunately, winepath does not exit with a non-zero error code, so we
14882813 # are forced to check the contents of stdout. On the other hand, if the
14902815 # *an error message* to stdout. So we must check for both error code of
14912816 # zero AND non-empty stdout, which explains the odd construction:
14922817 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
2818 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
14942819 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
2820 $SED -e "$sed_naive_backslashify"`
14962821 else
14972822 func_convert_core_file_wine_to_w32_result=
14982823 fi
15132838 # are convertible, then the result may be empty.
15142839 func_convert_core_path_wine_to_w32 ()
15152840 {
1516 $opt_debug
2841 $debug_cmd
2842
15172843 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
2844 func_convert_core_path_wine_to_w32_result=
15192845 if test -n "$1"; then
15202846 oldIFS=$IFS
15212847 IFS=:
15222848 for func_convert_core_path_wine_to_w32_f in $1; do
15232849 IFS=$oldIFS
15242850 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
2851 if test -n "$func_convert_core_file_wine_to_w32_result"; then
15262852 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"
2853 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
15282854 else
15292855 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
15302856 fi
15532879 # environment variable; do not put it in $PATH.
15542880 func_cygpath ()
15552881 {
1556 $opt_debug
2882 $debug_cmd
2883
15572884 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
15582885 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
15592886 if test "$?" -ne 0; then
15622889 fi
15632890 else
15642891 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
2892 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
15662893 fi
15672894 }
15682895 #end: func_cygpath
15732900 # result in func_convert_core_msys_to_w32_result.
15742901 func_convert_core_msys_to_w32 ()
15752902 {
1576 $opt_debug
2903 $debug_cmd
2904
15772905 # awkward: cmd appends spaces to result
15782906 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2907 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
15802908 }
15812909 #end: func_convert_core_msys_to_w32
15822910
15872915 # func_to_host_file_result to ARG1).
15882916 func_convert_file_check ()
15892917 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
2918 $debug_cmd
2919
2920 if test -z "$2" && test -n "$1"; then
15922921 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
2922 func_error " '$1'"
15942923 func_error "Continuing, but uninstalled executables may not work."
15952924 # Fallback:
1596 func_to_host_file_result="$1"
2925 func_to_host_file_result=$1
15972926 fi
15982927 }
15992928 # end func_convert_file_check
16052934 # func_to_host_file_result to a simplistic fallback value (see below).
16062935 func_convert_path_check ()
16072936 {
1608 $opt_debug
2937 $debug_cmd
2938
16092939 if test -z "$4" && test -n "$3"; then
16102940 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
2941 func_error " '$3'"
16122942 func_error "Continuing, but uninstalled executables may not work."
16132943 # Fallback. This is a deliberately simplistic "conversion" and
16142944 # should not be "improved". See libtool.info.
16172947 func_to_host_path_result=`echo "$3" |
16182948 $SED -e "$lt_replace_pathsep_chars"`
16192949 else
1620 func_to_host_path_result="$3"
2950 func_to_host_path_result=$3
16212951 fi
16222952 fi
16232953 }
16292959 # and appending REPL if ORIG matches BACKPAT.
16302960 func_convert_path_front_back_pathsep ()
16312961 {
1632 $opt_debug
2962 $debug_cmd
2963
16332964 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
2965 $1 ) func_to_host_path_result=$3$func_to_host_path_result
16352966 ;;
16362967 esac
16372968 case $4 in
16452976 ##################################################
16462977 # $build to $host FILE NAME CONVERSION FUNCTIONS #
16472978 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
2979 # invoked via '$to_host_file_cmd ARG'
16492980 #
16502981 # In each case, ARG is the path to be converted from $build to $host format.
16512982 # Result will be available in $func_to_host_file_result.
16562987 # in func_to_host_file_result.
16572988 func_to_host_file ()
16582989 {
1659 $opt_debug
2990 $debug_cmd
2991
16602992 $to_host_file_cmd "$1"
16612993 }
16622994 # end func_to_host_file
16683000 # in (the comma separated) LAZY, no conversion takes place.
16693001 func_to_tool_file ()
16703002 {
1671 $opt_debug
3003 $debug_cmd
3004
16723005 case ,$2, in
16733006 *,"$to_tool_file_cmd",*)
16743007 func_to_tool_file_result=$1
16863019 # Copy ARG to func_to_host_file_result.
16873020 func_convert_file_noop ()
16883021 {
1689 func_to_host_file_result="$1"
3022 func_to_host_file_result=$1
16903023 }
16913024 # end func_convert_file_noop
16923025
16973030 # func_to_host_file_result.
16983031 func_convert_file_msys_to_w32 ()
16993032 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
3033 $debug_cmd
3034
3035 func_to_host_file_result=$1
17023036 if test -n "$1"; then
17033037 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
3038 func_to_host_file_result=$func_convert_core_msys_to_w32_result
17053039 fi
17063040 func_convert_file_check "$1" "$func_to_host_file_result"
17073041 }
17133047 # func_to_host_file_result.
17143048 func_convert_file_cygwin_to_w32 ()
17153049 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
3050 $debug_cmd
3051
3052 func_to_host_file_result=$1
17183053 if test -n "$1"; then
17193054 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
17203055 # LT_CYGPATH in this case.
17303065 # and a working winepath. Returns result in func_to_host_file_result.
17313066 func_convert_file_nix_to_w32 ()
17323067 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
3068 $debug_cmd
3069
3070 func_to_host_file_result=$1
17353071 if test -n "$1"; then
17363072 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
3073 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
17383074 fi
17393075 func_convert_file_check "$1" "$func_to_host_file_result"
17403076 }
17463082 # Returns result in func_to_host_file_result.
17473083 func_convert_file_msys_to_cygwin ()
17483084 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
3085 $debug_cmd
3086
3087 func_to_host_file_result=$1
17513088 if test -n "$1"; then
17523089 func_convert_core_msys_to_w32 "$1"
17533090 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
3091 func_to_host_file_result=$func_cygpath_result
17553092 fi
17563093 func_convert_file_check "$1" "$func_to_host_file_result"
17573094 }
17643101 # in func_to_host_file_result.
17653102 func_convert_file_nix_to_cygwin ()
17663103 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
3104 $debug_cmd
3105
3106 func_to_host_file_result=$1
17693107 if test -n "$1"; then
17703108 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
17713109 func_convert_core_file_wine_to_w32 "$1"
17723110 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
3111 func_to_host_file_result=$func_cygpath_result
17743112 fi
17753113 func_convert_file_check "$1" "$func_to_host_file_result"
17763114 }
17803118 #############################################
17813119 # $build to $host PATH CONVERSION FUNCTIONS #
17823120 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
3121 # invoked via '$to_host_path_cmd ARG'
17843122 #
17853123 # In each case, ARG is the path to be converted from $build to $host format.
17863124 # The result will be available in $func_to_host_path_result.
18043142 to_host_path_cmd=
18053143 func_init_to_host_path_cmd ()
18063144 {
1807 $opt_debug
3145 $debug_cmd
3146
18083147 if test -z "$to_host_path_cmd"; then
18093148 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
3149 to_host_path_cmd=func_convert_path_$func_stripname_result
18113150 fi
18123151 }
18133152
18173156 # in func_to_host_path_result.
18183157 func_to_host_path ()
18193158 {
1820 $opt_debug
3159 $debug_cmd
3160
18213161 func_init_to_host_path_cmd
18223162 $to_host_path_cmd "$1"
18233163 }
18283168 # Copy ARG to func_to_host_path_result.
18293169 func_convert_path_noop ()
18303170 {
1831 func_to_host_path_result="$1"
3171 func_to_host_path_result=$1
18323172 }
18333173 # end func_convert_path_noop
18343174
18393179 # func_to_host_path_result.
18403180 func_convert_path_msys_to_w32 ()
18413181 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
3182 $debug_cmd
3183
3184 func_to_host_path_result=$1
18443185 if test -n "$1"; then
18453186 # Remove leading and trailing path separator characters from ARG. MSYS
18463187 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
18483189 func_stripname : : "$1"
18493190 func_to_host_path_tmp1=$func_stripname_result
18503191 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
3192 func_to_host_path_result=$func_convert_core_msys_to_w32_result
18523193 func_convert_path_check : ";" \
18533194 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18543195 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
18623203 # func_to_host_file_result.
18633204 func_convert_path_cygwin_to_w32 ()
18643205 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
3206 $debug_cmd
3207
3208 func_to_host_path_result=$1
18673209 if test -n "$1"; then
18683210 # See func_convert_path_msys_to_w32:
18693211 func_stripname : : "$1"
18823224 # a working winepath. Returns result in func_to_host_file_result.
18833225 func_convert_path_nix_to_w32 ()
18843226 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
3227 $debug_cmd
3228
3229 func_to_host_path_result=$1
18873230 if test -n "$1"; then
18883231 # See func_convert_path_msys_to_w32:
18893232 func_stripname : : "$1"
18903233 func_to_host_path_tmp1=$func_stripname_result
18913234 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"
3235 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
18933236 func_convert_path_check : ";" \
18943237 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18953238 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
19033246 # Returns result in func_to_host_file_result.
19043247 func_convert_path_msys_to_cygwin ()
19053248 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
3249 $debug_cmd
3250
3251 func_to_host_path_result=$1
19083252 if test -n "$1"; then
19093253 # See func_convert_path_msys_to_w32:
19103254 func_stripname : : "$1"
19113255 func_to_host_path_tmp1=$func_stripname_result
19123256 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
19133257 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
3258 func_to_host_path_result=$func_cygpath_result
19153259 func_convert_path_check : : \
19163260 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19173261 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19263270 # func_to_host_file_result.
19273271 func_convert_path_nix_to_cygwin ()
19283272 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
3273 $debug_cmd
3274
3275 func_to_host_path_result=$1
19313276 if test -n "$1"; then
19323277 # Remove leading and trailing path separator characters from
19333278 # ARG. msys behavior is inconsistent here, cygpath turns them
19363281 func_to_host_path_tmp1=$func_stripname_result
19373282 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
19383283 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
3284 func_to_host_path_result=$func_cygpath_result
19403285 func_convert_path_check : : \
19413286 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19423287 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19453290 # end func_convert_path_nix_to_cygwin
19463291
19473292
3293 # func_dll_def_p FILE
3294 # True iff FILE is a Windows DLL '.def' file.
3295 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3296 func_dll_def_p ()
3297 {
3298 $debug_cmd
3299
3300 func_dll_def_p_tmp=`$SED -n \
3301 -e 's/^[ ]*//' \
3302 -e '/^\(;.*\)*$/d' \
3303 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3304 -e q \
3305 "$1"`
3306 test DEF = "$func_dll_def_p_tmp"
3307 }
3308
3309
19483310 # func_mode_compile arg...
19493311 func_mode_compile ()
19503312 {
1951 $opt_debug
3313 $debug_cmd
3314
19523315 # Get the compilation command and the source file.
19533316 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
3317 srcfile=$nonopt # always keep a non-empty value in "srcfile"
19553318 suppress_opt=yes
19563319 suppress_output=
19573320 arg_mode=normal
19643327 case $arg_mode in
19653328 arg )
19663329 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
3330 lastarg=$arg
19683331 arg_mode=normal
19693332 ;;
19703333
19713334 target )
1972 libobj="$arg"
3335 libobj=$arg
19733336 arg_mode=normal
19743337 continue
19753338 ;;
19793342 case $arg in
19803343 -o)
19813344 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
3345 func_fatal_error "you cannot specify '-o' more than once"
19833346 arg_mode=target
19843347 continue
19853348 ;;
20083371 func_stripname '-Wc,' '' "$arg"
20093372 args=$func_stripname_result
20103373 lastarg=
2011 save_ifs="$IFS"; IFS=','
3374 save_ifs=$IFS; IFS=,
20123375 for arg in $args; do
2013 IFS="$save_ifs"
3376 IFS=$save_ifs
20143377 func_append_quoted lastarg "$arg"
20153378 done
2016 IFS="$save_ifs"
3379 IFS=$save_ifs
20173380 func_stripname ' ' '' "$lastarg"
20183381 lastarg=$func_stripname_result
20193382
20263389 # Accept the current argument as the source file.
20273390 # The previous "srcfile" becomes the current argument.
20283391 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
3392 lastarg=$srcfile
3393 srcfile=$arg
20313394 ;;
20323395 esac # case $arg
20333396 ;;
20423405 func_fatal_error "you must specify an argument for -Xcompile"
20433406 ;;
20443407 target)
2045 func_fatal_error "you must specify a target with \`-o'"
3408 func_fatal_error "you must specify a target with '-o'"
20463409 ;;
20473410 *)
20483411 # Get the name of the library object.
20493412 test -z "$libobj" && {
20503413 func_basename "$srcfile"
2051 libobj="$func_basename_result"
3414 libobj=$func_basename_result
20523415 }
20533416 ;;
20543417 esac
20683431 case $libobj in
20693432 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
20703433 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
3434 func_fatal_error "cannot determine name of library object from '$libobj'"
20723435 ;;
20733436 esac
20743437
20773440 for arg in $later; do
20783441 case $arg in
20793442 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
3443 test yes = "$build_libtool_libs" \
3444 || func_fatal_configuration "cannot build a shared library"
20823445 build_old_libs=no
20833446 continue
20843447 ;;
21043467 func_quote_for_eval "$libobj"
21053468 test "X$libobj" != "X$func_quote_for_eval_result" \
21063469 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
3470 && func_warning "libobj name '$libobj' may not contain shell special characters."
21083471 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
3472 objname=$func_basename_result
3473 xdir=$func_dirname_result
3474 lobj=$xdir$objdir/$objname
21123475
21133476 test -z "$base_compile" && \
21143477 func_fatal_help "you must specify a compilation command"
21153478
21163479 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
3480 if test yes = "$build_old_libs"; then
21183481 removelist="$obj $lobj $libobj ${libobj}T"
21193482 else
21203483 removelist="$lobj $libobj ${libobj}T"
21263489 pic_mode=default
21273490 ;;
21283491 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
3492 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
21303493 # non-PIC code in shared libraries is not supported
21313494 pic_mode=default
21323495 fi
21333496
21343497 # Calculate the filename of the output object if compiler does
21353498 # 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"
3499 if test no = "$compiler_c_o"; then
3500 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3501 lockfile=$output_obj.lock
21393502 else
21403503 output_obj=
21413504 need_locks=no
21443507
21453508 # Lock this critical section if it is needed
21463509 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
3510 if test yes = "$need_locks"; then
21483511 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
21493512 func_echo "Waiting for $lockfile to be removed"
21503513 sleep 2
21513514 done
2152 elif test "$need_locks" = warn; then
3515 elif test warn = "$need_locks"; then
21533516 if test -f "$lockfile"; then
21543517 $ECHO "\
21553518 *** ERROR, $lockfile exists and contains:
21573520
21583521 This indicates that another process is trying to use the same
21593522 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
3523 your compiler does not support '-c' and '-o' together. If you
21613524 repeat this compilation, it may succeed, by chance, but you had better
21623525 avoid parallel builds (make -j) in this platform, or get a better
21633526 compiler."
21793542 qsrcfile=$func_quote_for_eval_result
21803543
21813544 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
3545 if test yes = "$build_libtool_libs"; then
21833546 # Without this assignment, base_compile gets emptied.
21843547 fbsd_hideous_sh_bug=$base_compile
21853548
2186 if test "$pic_mode" != no; then
3549 if test no != "$pic_mode"; then
21873550 command="$base_compile $qsrcfile $pic_flag"
21883551 else
21893552 # Don't build PIC code
22003563 func_show_eval_locale "$command" \
22013564 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
22023565
2203 if test "$need_locks" = warn &&
3566 if test warn = "$need_locks" &&
22043567 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22053568 $ECHO "\
22063569 *** ERROR, $lockfile contains:
22113574
22123575 This indicates that another process is trying to use the same
22133576 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
3577 your compiler does not support '-c' and '-o' together. If you
22153578 repeat this compilation, it may succeed, by chance, but you had better
22163579 avoid parallel builds (make -j) in this platform, or get a better
22173580 compiler."
22273590 fi
22283591
22293592 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
3593 if test yes = "$suppress_opt"; then
22313594 suppress_output=' >/dev/null 2>&1'
22323595 fi
22333596 fi
22343597
22353598 # 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
3599 if test yes = "$build_old_libs"; then
3600 if test yes != "$pic_mode"; then
22383601 # Don't build PIC code
22393602 command="$base_compile $qsrcfile$pie_flag"
22403603 else
22413604 command="$base_compile $qsrcfile $pic_flag"
22423605 fi
2243 if test "$compiler_c_o" = yes; then
3606 if test yes = "$compiler_c_o"; then
22443607 func_append command " -o $obj"
22453608 fi
22463609
22493612 func_show_eval_locale "$command" \
22503613 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
22513614
2252 if test "$need_locks" = warn &&
3615 if test warn = "$need_locks" &&
22533616 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22543617 $ECHO "\
22553618 *** ERROR, $lockfile contains:
22603623
22613624 This indicates that another process is trying to use the same
22623625 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
3626 your compiler does not support '-c' and '-o' together. If you
22643627 repeat this compilation, it may succeed, by chance, but you had better
22653628 avoid parallel builds (make -j) in this platform, or get a better
22663629 compiler."
22803643 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
22813644
22823645 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
3646 if test no != "$need_locks"; then
22843647 removelist=$lockfile
22853648 $RM "$lockfile"
22863649 fi
22903653 }
22913654
22923655 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
3656 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
22943657 }
22953658
22963659 func_mode_help ()
23103673 Remove files from the build directory.
23113674
23123675 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
3676 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
23143677 to RM.
23153678
23163679 If FILE is a libtool library, object or program, all the files associated
23293692 -no-suppress do not suppress compiler output for multiple passes
23303693 -prefer-pic try to build PIC objects only
23313694 -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
3695 -shared do not build a '.o' file suitable for static linking
3696 -static only build a '.o' file suitable for static linking
23343697 -Wc,FLAG pass FLAG directly to the compiler
23353698
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
3699 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
23373700 from the given SOURCEFILE.
23383701
23393702 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'."
3703 SOURCEFILE, then substituting the C source code suffix '.c' with the
3704 library object suffix, '.lo'."
23423705 ;;
23433706
23443707 execute)
23513714
23523715 -dlopen FILE add the directory containing FILE to the library path
23533716
2354 This mode sets the library path environment variable according to \`-dlopen'
3717 This mode sets the library path environment variable according to '-dlopen'
23553718 flags.
23563719
23573720 If any of the ARGS are libtool executable wrappers, then they are translated
23703733 Each LIBDIR is a directory that contains libtool libraries.
23713734
23723735 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."
3736 the '--dry-run' option if you just want to see what would be executed."
23743737 ;;
23753738
23763739 install)
23803743 Install executables or libraries.
23813744
23823745 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
3746 either the 'install' or 'cp' program.
23843747
23853748 The following components of INSTALL-COMMAND are treated specially:
23863749
24063769 -avoid-version do not add a version suffix if possible
24073770 -bindir BINDIR specify path to binaries directory (for systems where
24083771 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
3772 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
24103773 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
24113774 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
24123775 -export-symbols SYMFILE
24203783 -no-install link a not-installable executable
24213784 -no-undefined declare that a library does not refer to external symbols
24223785 -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
3786 -objectlist FILE use a list of object files found in FILE to specify objects
3787 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
24243788 -precious-files-regex REGEX
24253789 don't remove output files matching REGEX
24263790 -release RELEASE specify package release information
24403804 -Xlinker FLAG pass linker-specific FLAG directly to the linker
24413805 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
24423806
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
3807 All other options (arguments beginning with '-') are ignored.
3808
3809 Every other argument is treated as a filename. Files ending in '.la' are
24463810 treated as uninstalled libtool libraries, other files are standard or library
24473811 object files.
24483812
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
3813 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3814 only library objects ('.lo' files) may be specified, and '-rpath' is
24513815 required, except when creating a convenience library.
24523816
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
3817 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3818 using 'ar' and 'ranlib', or on Windows using 'lib'.
3819
3820 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
24573821 is created, otherwise an executable program is created."
24583822 ;;
24593823
24643828 Remove libraries from an installation directory.
24653829
24663830 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
3831 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
24683832 to RM.
24693833
24703834 If FILE is a libtool library, all the files associated with it are deleted.
24723836 ;;
24733837
24743838 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
3839 func_fatal_help "invalid operation mode '$opt_mode'"
24763840 ;;
24773841 esac
24783842
24793843 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
3844 $ECHO "Try '$progname --help' for more information about other modes."
24813845 }
24823846
24833847 # Now that we've collected a possible --mode arg, show help if necessary
24843848 if $opt_help; then
2485 if test "$opt_help" = :; then
3849 if test : = "$opt_help"; then
24863850 func_mode_help
24873851 else
24883852 {
24903854 for opt_mode in compile link execute install finish uninstall clean; do
24913855 func_mode_help
24923856 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
3857 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
24943858 {
24953859 func_help noexit
24963860 for opt_mode in compile link execute install finish uninstall clean; do
24983862 func_mode_help
24993863 done
25003864 } |
2501 sed '1d
3865 $SED '1d
25023866 /^When reporting/,/^Report/{
25033867 H
25043868 d
25153879 # func_mode_execute arg...
25163880 func_mode_execute ()
25173881 {
2518 $opt_debug
3882 $debug_cmd
3883
25193884 # The first argument is the command name.
2520 cmd="$nonopt"
3885 cmd=$nonopt
25213886 test -z "$cmd" && \
25223887 func_fatal_help "you must specify a COMMAND"
25233888
25243889 # Handle -dlopen flags immediately.
25253890 for file in $opt_dlopen; do
25263891 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
3892 || func_fatal_help "'$file' is not a file"
25283893
25293894 dir=
25303895 case $file in
25343899
25353900 # Check to see that this really is a libtool archive.
25363901 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
3902 || func_fatal_help "'$lib' is not a valid libtool archive"
25383903
25393904 # Read the libtool library.
25403905 dlname=
25453910 if test -z "$dlname"; then
25463911 # Warn if it was a shared library.
25473912 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
3913 func_warning "'$file' was not linked with '-export-dynamic'"
25493914 continue
25503915 fi
25513916
25523917 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
3918 dir=$func_dirname_result
25543919
25553920 if test -f "$dir/$objdir/$dlname"; then
25563921 func_append dir "/$objdir"
25573922 else
25583923 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
3924 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
25603925 fi
25613926 fi
25623927 ;;
25643929 *.lo)
25653930 # Just add the directory containing the .lo file.
25663931 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
3932 dir=$func_dirname_result
25683933 ;;
25693934
25703935 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
3936 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
25723937 continue
25733938 ;;
25743939 esac
25753940
25763941 # Get the absolute pathname.
25773942 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
3943 test -n "$absdir" && dir=$absdir
25793944
25803945 # Now add the directory to shlibpath_var.
25813946 if eval "test -z \"\$$shlibpath_var\""; then
25873952
25883953 # This variable tells wrapper scripts just to set shlibpath_var
25893954 # rather than running their programs.
2590 libtool_execute_magic="$magic"
3955 libtool_execute_magic=$magic
25913956
25923957 # Check if any of the arguments is a wrapper script.
25933958 args=
26003965 if func_ltwrapper_script_p "$file"; then
26013966 func_source "$file"
26023967 # Transform arg to wrapped name.
2603 file="$progdir/$program"
3968 file=$progdir/$program
26043969 elif func_ltwrapper_executable_p "$file"; then
26053970 func_ltwrapper_scriptname "$file"
26063971 func_source "$func_ltwrapper_scriptname_result"
26073972 # Transform arg to wrapped name.
2608 file="$progdir/$program"
3973 file=$progdir/$program
26093974 fi
26103975 ;;
26113976 esac
26133978 func_append_quoted args "$file"
26143979 done
26153980
2616 if test "X$opt_dry_run" = Xfalse; then
3981 if $opt_dry_run; then
3982 # Display what would be done.
3983 if test -n "$shlibpath_var"; then
3984 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
3985 echo "export $shlibpath_var"
3986 fi
3987 $ECHO "$cmd$args"
3988 exit $EXIT_SUCCESS
3989 else
26173990 if test -n "$shlibpath_var"; then
26183991 # Export the shlibpath_var.
26193992 eval "export $shlibpath_var"
26304003 done
26314004
26324005 # 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
4006 exec_cmd=\$cmd$args
26424007 fi
26434008 }
26444009
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
4010 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
26464011
26474012
26484013 # func_mode_finish arg...
26494014 func_mode_finish ()
26504015 {
2651 $opt_debug
4016 $debug_cmd
4017
26524018 libs=
26534019 libdirs=
26544020 admincmds=
26624028 if func_lalib_unsafe_p "$opt"; then
26634029 func_append libs " $opt"
26644030 else
2665 func_warning "\`$opt' is not a valid libtool archive"
4031 func_warning "'$opt' is not a valid libtool archive"
26664032 fi
26674033
26684034 else
2669 func_fatal_error "invalid argument \`$opt'"
4035 func_fatal_error "invalid argument '$opt'"
26704036 fi
26714037 done
26724038
26814047 # Remove sysroot references
26824048 if $opt_dry_run; then
26834049 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
4050 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
26854051 done
26864052 else
26874053 tmpdir=`func_mktempdir`
26884054 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4055 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26904056 > $tmpdir/tmp-la
26914057 mv -f $tmpdir/tmp-la $lib
26924058 done
27114077 fi
27124078
27134079 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
4080 $opt_quiet && exit $EXIT_SUCCESS
27154081
27164082 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
27174083 echo "----------------------------------------------------------------------"
27224088 echo
27234089 echo "If you ever happen to want to link against installed libraries"
27244090 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
4091 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
27264092 echo "flag during linking and do at least one of the following:"
27274093 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
4094 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
27294095 echo " during execution"
27304096 fi
27314097 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
4098 echo " - add LIBDIR to the '$runpath_var' environment variable"
27334099 echo " during linking"
27344100 fi
27354101 if test -n "$hardcode_libdir_flag_spec"; then
27364102 libdir=LIBDIR
27374103 eval flag=\"$hardcode_libdir_flag_spec\"
27384104
2739 $ECHO " - use the \`$flag' linker flag"
4105 $ECHO " - use the '$flag' linker flag"
27404106 fi
27414107 if test -n "$admincmds"; then
27424108 $ECHO " - have your system administrator run these commands:$admincmds"
27434109 fi
27444110 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
4111 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
27464112 fi
27474113 echo
27484114
27614127 exit $EXIT_SUCCESS
27624128 }
27634129
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
4130 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
27654131
27664132
27674133 # func_mode_install arg...
27684134 func_mode_install ()
27694135 {
2770 $opt_debug
4136 $debug_cmd
4137
27714138 # There may be an optional sh(1) argument at the beginning of
27724139 # install_prog (especially on Windows NT).
2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
4140 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
27744141 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
4142 case $nonopt in *shtool*) :;; *) false;; esac
4143 then
27764144 # Aesthetically quote it.
27774145 func_quote_for_eval "$nonopt"
27784146 install_prog="$func_quote_for_eval_result "
27994167 opts=
28004168 prev=
28014169 install_type=
2802 isdir=no
4170 isdir=false
28034171 stripme=
28044172 no_mode=:
28054173 for arg
28124180 fi
28134181
28144182 case $arg in
2815 -d) isdir=yes ;;
4183 -d) isdir=: ;;
28164184 -f)
28174185 if $install_cp; then :; else
28184186 prev=$arg
28304198 *)
28314199 # If the previous option needed an argument, then skip it.
28324200 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
4201 if test X-m = "X$prev" && test -n "$install_override_mode"; then
28344202 arg2=$install_override_mode
28354203 no_mode=false
28364204 fi
28554223 func_fatal_help "you must specify an install program"
28564224
28574225 test -n "$prev" && \
2858 func_fatal_help "the \`$prev' option requires an argument"
4226 func_fatal_help "the '$prev' option requires an argument"
28594227
28604228 if test -n "$install_override_mode" && $no_mode; then
28614229 if $install_cp; then :; else
28774245 dest=$func_stripname_result
28784246
28794247 # Check to see that the destination is a directory.
2880 test -d "$dest" && isdir=yes
2881 if test "$isdir" = yes; then
2882 destdir="$dest"
4248 test -d "$dest" && isdir=:
4249 if $isdir; then
4250 destdir=$dest
28834251 destname=
28844252 else
28854253 func_dirname_and_basename "$dest" "" "."
2886 destdir="$func_dirname_result"
2887 destname="$func_basename_result"
4254 destdir=$func_dirname_result
4255 destname=$func_basename_result
28884256
28894257 # Not a directory, so check to see that there is only one file specified.
28904258 set dummy $files; shift
28914259 test "$#" -gt 1 && \
2892 func_fatal_help "\`$dest' is not a directory"
4260 func_fatal_help "'$dest' is not a directory"
28934261 fi
28944262 case $destdir in
28954263 [\\/]* | [A-Za-z]:[\\/]*) ;;
28984266 case $file in
28994267 *.lo) ;;
29004268 *)
2901 func_fatal_help "\`$destdir' must be an absolute directory name"
4269 func_fatal_help "'$destdir' must be an absolute directory name"
29024270 ;;
29034271 esac
29044272 done
29074275
29084276 # This variable tells wrapper scripts just to set variables rather
29094277 # than running their programs.
2910 libtool_install_magic="$magic"
4278 libtool_install_magic=$magic
29114279
29124280 staticlibs=
29134281 future_libdirs=
29274295
29284296 # Check to see that this really is a libtool archive.
29294297 func_lalib_unsafe_p "$file" \
2930 || func_fatal_help "\`$file' is not a valid libtool archive"
4298 || func_fatal_help "'$file' is not a valid libtool archive"
29314299
29324300 library_names=
29334301 old_library=
29494317 fi
29504318
29514319 func_dirname "$file" "/" ""
2952 dir="$func_dirname_result"
4320 dir=$func_dirname_result
29534321 func_append dir "$objdir"
29544322
29554323 if test -n "$relink_command"; then
29634331 # are installed into $libdir/../bin (currently, that works fine)
29644332 # but it's something to keep an eye on.
29654333 test "$inst_prefix_dir" = "$destdir" && \
2966 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
4334 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
29674335
29684336 if test -n "$inst_prefix_dir"; then
29694337 # Stick the inst_prefix_dir data into the link command.
29724340 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
29734341 fi
29744342
2975 func_warning "relinking \`$file'"
4343 func_warning "relinking '$file'"
29764344 func_show_eval "$relink_command" \
2977 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
4345 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
29784346 fi
29794347
29804348 # See the names of the shared library.
29814349 set dummy $library_names; shift
29824350 if test -n "$1"; then
2983 realname="$1"
4351 realname=$1
29844352 shift
29854353
2986 srcname="$realname"
2987 test -n "$relink_command" && srcname="$realname"T
4354 srcname=$realname
4355 test -n "$relink_command" && srcname=${realname}T
29884356
29894357 # Install the shared library and build the symlinks.
29904358 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
29914359 'exit $?'
2992 tstripme="$stripme"
4360 tstripme=$stripme
29934361 case $host_os in
29944362 cygwin* | mingw* | pw32* | cegcc*)
29954363 case $realname in
29964364 *.dll.a)
2997 tstripme=""
4365 tstripme=
4366 ;;
4367 esac
4368 ;;
4369 os2*)
4370 case $realname in
4371 *_dll.a)
4372 tstripme=
29984373 ;;
29994374 esac
30004375 ;;
30054380
30064381 if test "$#" -gt 0; then
30074382 # Delete the old symlinks, and create new ones.
3008 # Try `ln -sf' first, because the `ln' binary might depend on
4383 # Try 'ln -sf' first, because the 'ln' binary might depend on
30094384 # the symlink we replace! Solaris /bin/ln does not understand -f,
30104385 # so we also need to try rm && ln -s.
30114386 for linkname
30164391 fi
30174392
30184393 # Do each command in the postinstall commands.
3019 lib="$destdir/$realname"
4394 lib=$destdir/$realname
30204395 func_execute_cmds "$postinstall_cmds" 'exit $?'
30214396 fi
30224397
30234398 # Install the pseudo-library for information purposes.
30244399 func_basename "$file"
3025 name="$func_basename_result"
3026 instname="$dir/$name"i
4400 name=$func_basename_result
4401 instname=$dir/${name}i
30274402 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
30284403
30294404 # Maybe install the static library, too.
30354410
30364411 # Figure out destination file name, if it wasn't already specified.
30374412 if test -n "$destname"; then
3038 destfile="$destdir/$destname"
4413 destfile=$destdir/$destname
30394414 else
30404415 func_basename "$file"
3041 destfile="$func_basename_result"
3042 destfile="$destdir/$destfile"
4416 destfile=$func_basename_result
4417 destfile=$destdir/$destfile
30434418 fi
30444419
30454420 # Deduce the name of the destination old-style object file.
30494424 staticdest=$func_lo2o_result
30504425 ;;
30514426 *.$objext)
3052 staticdest="$destfile"
4427 staticdest=$destfile
30534428 destfile=
30544429 ;;
30554430 *)
3056 func_fatal_help "cannot copy a libtool object to \`$destfile'"
4431 func_fatal_help "cannot copy a libtool object to '$destfile'"
30574432 ;;
30584433 esac
30594434
30624437 func_show_eval "$install_prog $file $destfile" 'exit $?'
30634438
30644439 # Install the old object if enabled.
3065 if test "$build_old_libs" = yes; then
4440 if test yes = "$build_old_libs"; then
30664441 # Deduce the name of the old-style object file.
30674442 func_lo2o "$file"
30684443 staticobj=$func_lo2o_result
30744449 *)
30754450 # Figure out destination file name, if it wasn't already specified.
30764451 if test -n "$destname"; then
3077 destfile="$destdir/$destname"
4452 destfile=$destdir/$destname
30784453 else
30794454 func_basename "$file"
3080 destfile="$func_basename_result"
3081 destfile="$destdir/$destfile"
4455 destfile=$func_basename_result
4456 destfile=$destdir/$destfile
30824457 fi
30834458
30844459 # If the file is missing, and there is a .exe on the end, strip it
30854460 # because it is most likely a libtool script we actually want to
30864461 # install
3087 stripped_ext=""
4462 stripped_ext=
30884463 case $file in
30894464 *.exe)
30904465 if test ! -f "$file"; then
30914466 func_stripname '' '.exe' "$file"
30924467 file=$func_stripname_result
3093 stripped_ext=".exe"
4468 stripped_ext=.exe
30944469 fi
30954470 ;;
30964471 esac
31184493
31194494 # Check the variables that should have been set.
31204495 test -z "$generated_by_libtool_version" && \
3121 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3122
3123 finalize=yes
4496 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4497
4498 finalize=:
31244499 for lib in $notinst_deplibs; do
31254500 # Check to see that each library is installed.
31264501 libdir=
31274502 if test -f "$lib"; then
31284503 func_source "$lib"
31294504 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
4505 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
31314506 if test -n "$libdir" && test ! -f "$libfile"; then
3132 func_warning "\`$lib' has not been installed in \`$libdir'"
3133 finalize=no
4507 func_warning "'$lib' has not been installed in '$libdir'"
4508 finalize=false
31344509 fi
31354510 done
31364511
31384513 func_source "$wrapper"
31394514
31404515 outputname=
3141 if test "$fast_install" = no && test -n "$relink_command"; then
4516 if test no = "$fast_install" && test -n "$relink_command"; then
31424517 $opt_dry_run || {
3143 if test "$finalize" = yes; then
4518 if $finalize; then
31444519 tmpdir=`func_mktempdir`
31454520 func_basename "$file$stripped_ext"
3146 file="$func_basename_result"
3147 outputname="$tmpdir/$file"
4521 file=$func_basename_result
4522 outputname=$tmpdir/$file
31484523 # Replace the output file specification.
31494524 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
31504525
3151 $opt_silent || {
4526 $opt_quiet || {
31524527 func_quote_for_expand "$relink_command"
31534528 eval "func_echo $func_quote_for_expand_result"
31544529 }
31554530 if eval "$relink_command"; then :
31564531 else
3157 func_error "error: relink \`$file' with the above command before installing it"
4532 func_error "error: relink '$file' with the above command before installing it"
31584533 $opt_dry_run || ${RM}r "$tmpdir"
31594534 continue
31604535 fi
3161 file="$outputname"
4536 file=$outputname
31624537 else
3163 func_warning "cannot relink \`$file'"
4538 func_warning "cannot relink '$file'"
31644539 fi
31654540 }
31664541 else
31974572
31984573 for file in $staticlibs; do
31994574 func_basename "$file"
3200 name="$func_basename_result"
4575 name=$func_basename_result
32014576
32024577 # Set up the ranlib parameters.
3203 oldlib="$destdir/$name"
4578 oldlib=$destdir/$name
32044579 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
32054580 tool_oldlib=$func_to_tool_file_result
32064581
32154590 done
32164591
32174592 test -n "$future_libdirs" && \
3218 func_warning "remember to run \`$progname --finish$future_libdirs'"
4593 func_warning "remember to run '$progname --finish$future_libdirs'"
32194594
32204595 if test -n "$current_libdirs"; then
32214596 # Maybe just do a dry run.
32224597 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
4598 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
32244599 else
32254600 exit $EXIT_SUCCESS
32264601 fi
32274602 }
32284603
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
4604 test install = "$opt_mode" && func_mode_install ${1+"$@"}
32304605
32314606
32324607 # func_generate_dlsyms outputname originator pic_p
32344609 # a dlpreopen symbol table.
32354610 func_generate_dlsyms ()
32364611 {
3237 $opt_debug
3238 my_outputname="$1"
3239 my_originator="$2"
3240 my_pic_p="${3-no}"
3241 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
4612 $debug_cmd
4613
4614 my_outputname=$1
4615 my_originator=$2
4616 my_pic_p=${3-false}
4617 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
32424618 my_dlsyms=
32434619
3244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4620 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
32454621 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3246 my_dlsyms="${my_outputname}S.c"
4622 my_dlsyms=${my_outputname}S.c
32474623 else
32484624 func_error "not configured to extract global symbols from dlpreopened files"
32494625 fi
32544630 "") ;;
32554631 *.c)
32564632 # Discover the nlist of each of the dlfiles.
3257 nlist="$output_objdir/${my_outputname}.nm"
4633 nlist=$output_objdir/$my_outputname.nm
32584634
32594635 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
32604636
32624638 func_verbose "creating $output_objdir/$my_dlsyms"
32634639
32644640 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3265 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3266 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
4641 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4642 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
32674643
32684644 #ifdef __cplusplus
32694645 extern \"C\" {
32704646 #endif
32714647
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4648 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
32734649 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
32744650 #endif
32754651
32764652 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4653 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4654 /* DATA imports from DLLs on WIN32 can't be const, because runtime
32794655 relocations are performed -- see ld's documentation on pseudo-relocs. */
32804656 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
4657 #elif defined __osf__
32824658 /* This system does not cope well with relocations in const data. */
32834659 # define LT_DLSYM_CONST
32844660 #else
32854661 # define LT_DLSYM_CONST const
32864662 #endif
32874663
4664 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4665
32884666 /* External symbol declarations for the compiler. */\
32894667 "
32904668
3291 if test "$dlself" = yes; then
3292 func_verbose "generating symbol list for \`$output'"
4669 if test yes = "$dlself"; then
4670 func_verbose "generating symbol list for '$output'"
32934671
32944672 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
32954673
32974675 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
32984676 for progfile in $progfiles; do
32994677 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
4678 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
33014679 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
33024680 done
33034681
33174695
33184696 # Prepare the list of exported symbols
33194697 if test -z "$export_symbols"; then
3320 export_symbols="$output_objdir/$outputname.exp"
4698 export_symbols=$output_objdir/$outputname.exp
33214699 $opt_dry_run || {
33224700 $RM $export_symbols
3323 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4701 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
33244702 case $host in
33254703 *cygwin* | *mingw* | *cegcc* )
33264704 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
33304708 }
33314709 else
33324710 $opt_dry_run || {
3333 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4711 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
33344712 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
33354713 eval '$MV "$nlist"T "$nlist"'
33364714 case $host in
33444722 fi
33454723
33464724 for dlprefile in $dlprefiles; do
3347 func_verbose "extracting global C symbols from \`$dlprefile'"
4725 func_verbose "extracting global C symbols from '$dlprefile'"
33484726 func_basename "$dlprefile"
3349 name="$func_basename_result"
4727 name=$func_basename_result
33504728 case $host in
33514729 *cygwin* | *mingw* | *cegcc* )
33524730 # if an import library, we need to obtain dlname
33534731 if func_win32_import_lib_p "$dlprefile"; then
33544732 func_tr_sh "$dlprefile"
33554733 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
4734 dlprefile_dlbasename=
33574735 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
33584736 # Use subshell, to avoid clobbering current variable values
33594737 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
4738 if test -n "$dlprefile_dlname"; then
33614739 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
4740 dlprefile_dlbasename=$func_basename_result
33634741 else
33644742 # no lafile. user explicitly requested -dlpreopen <import library>.
33654743 $sharedlib_from_linklib_cmd "$dlprefile"
33674745 fi
33684746 fi
33694747 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
4748 if test -n "$dlprefile_dlbasename"; then
33714749 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
33724750 else
33734751 func_warning "Could not compute DLL name from $name"
34234801 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
34244802 fi
34254803
4804 func_show_eval '$RM "${nlist}I"'
4805 if test -n "$global_symbol_to_import"; then
4806 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4807 fi
4808
34264809 echo >> "$output_objdir/$my_dlsyms" "\
34274810
34284811 /* The mapping between symbol names and symbols. */
34314814 void *address;
34324815 } lt_dlsymlist;
34334816 extern LT_DLSYM_CONST lt_dlsymlist
3434 lt_${my_prefix}_LTX_preloaded_symbols[];
4817 lt_${my_prefix}_LTX_preloaded_symbols[];\
4818 "
4819
4820 if test -s "$nlist"I; then
4821 echo >> "$output_objdir/$my_dlsyms" "\
4822 static void lt_syminit(void)
4823 {
4824 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4825 for (; symbol->name; ++symbol)
4826 {"
4827 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4828 echo >> "$output_objdir/$my_dlsyms" "\
4829 }
4830 }"
4831 fi
4832 echo >> "$output_objdir/$my_dlsyms" "\
34354833 LT_DLSYM_CONST lt_dlsymlist
34364834 lt_${my_prefix}_LTX_preloaded_symbols[] =
3437 {\
3438 { \"$my_originator\", (void *) 0 },"
4835 { {\"$my_originator\", (void *) 0},"
4836
4837 if test -s "$nlist"I; then
4838 echo >> "$output_objdir/$my_dlsyms" "\
4839 {\"@INIT@\", (void *) &lt_syminit},"
4840 fi
34394841
34404842 case $need_lib_prefix in
34414843 no)
34774879 *-*-hpux*)
34784880 pic_flag_for_symtable=" $pic_flag" ;;
34794881 *)
3480 if test "X$my_pic_p" != Xno; then
3481 pic_flag_for_symtable=" $pic_flag"
3482 fi
4882 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
34834883 ;;
34844884 esac
34854885 ;;
34964896 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
34974897
34984898 # Clean up the generated files.
3499 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
4899 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
35004900
35014901 # Transform the symbol file into the correct name.
3502 symfileobj="$output_objdir/${my_outputname}S.$objext"
4902 symfileobj=$output_objdir/${my_outputname}S.$objext
35034903 case $host in
35044904 *cygwin* | *mingw* | *cegcc* )
35054905 if test -f "$output_objdir/$my_outputname.def"; then
35174917 esac
35184918 ;;
35194919 *)
3520 func_fatal_error "unknown suffix for \`$my_dlsyms'"
4920 func_fatal_error "unknown suffix for '$my_dlsyms'"
35214921 ;;
35224922 esac
35234923 else
35294929 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
35304930 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
35314931 fi
4932 }
4933
4934 # func_cygming_gnu_implib_p ARG
4935 # This predicate returns with zero status (TRUE) if
4936 # ARG is a GNU/binutils-style import library. Returns
4937 # with nonzero status (FALSE) otherwise.
4938 func_cygming_gnu_implib_p ()
4939 {
4940 $debug_cmd
4941
4942 func_to_tool_file "$1" func_convert_file_msys_to_w32
4943 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)$'`
4944 test -n "$func_cygming_gnu_implib_tmp"
4945 }
4946
4947 # func_cygming_ms_implib_p ARG
4948 # This predicate returns with zero status (TRUE) if
4949 # ARG is an MS-style import library. Returns
4950 # with nonzero status (FALSE) otherwise.
4951 func_cygming_ms_implib_p ()
4952 {
4953 $debug_cmd
4954
4955 func_to_tool_file "$1" func_convert_file_msys_to_w32
4956 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
4957 test -n "$func_cygming_ms_implib_tmp"
35324958 }
35334959
35344960 # func_win32_libid arg
35404966 # Despite the name, also deal with 64 bit binaries.
35414967 func_win32_libid ()
35424968 {
3543 $opt_debug
3544 win32_libid_type="unknown"
4969 $debug_cmd
4970
4971 win32_libid_type=unknown
35454972 win32_fileres=`file -L $1 2>/dev/null`
35464973 case $win32_fileres in
35474974 *ar\ archive\ import\ library*) # definitely import
35514978 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
35524979 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
35534980 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3556 $SED -n -e '
4981 case $nm_interface in
4982 "MS dumpbin")
4983 if func_cygming_ms_implib_p "$1" ||
4984 func_cygming_gnu_implib_p "$1"
4985 then
4986 win32_nmres=import
4987 else
4988 win32_nmres=
4989 fi
4990 ;;
4991 *)
4992 func_to_tool_file "$1" func_convert_file_msys_to_w32
4993 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
4994 $SED -n -e '
35574995 1,100{
35584996 / I /{
3559 s,.*,import,
4997 s|.*|import|
35604998 p
35614999 q
35625000 }
35635001 }'`
5002 ;;
5003 esac
35645004 case $win32_nmres in
35655005 import*) win32_libid_type="x86 archive import";;
35665006 *) win32_libid_type="x86 archive static";;
35925032 # $sharedlib_from_linklib_result
35935033 func_cygming_dll_for_implib ()
35945034 {
3595 $opt_debug
5035 $debug_cmd
5036
35965037 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
35975038 }
35985039
36095050 # specified import library.
36105051 func_cygming_dll_for_implib_fallback_core ()
36115052 {
3612 $opt_debug
5053 $debug_cmd
5054
36135055 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
36145056 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
36155057 $SED '/^Contents of section '"$match_literal"':/{
36455087 /./p' |
36465088 # we now have a list, one entry per line, of the stringified
36475089 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
5090 # archive that possess that section. Heuristic: eliminate
5091 # all those that have a first or second character that is
36505092 # a '.' (that is, objdump's representation of an unprintable
36515093 # character.) This should work for all archives with less than
36525094 # 0x302f exports -- but will fail for DLLs whose name actually
36555097 #
36565098 # Of those that remain, print the first one.
36575099 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 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)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
36825100 }
36835101
36845102 # func_cygming_dll_for_implib_fallback ARG
36945112 # $sharedlib_from_linklib_result
36955113 func_cygming_dll_for_implib_fallback ()
36965114 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
5115 $debug_cmd
5116
5117 if func_cygming_gnu_implib_p "$1"; then
36995118 # binutils import library
37005119 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
5120 elif func_cygming_ms_implib_p "$1"; then
37025121 # ms-generated import library
37035122 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
37045123 else
37055124 # unknown
3706 sharedlib_from_linklib_result=""
5125 sharedlib_from_linklib_result=
37075126 fi
37085127 }
37095128
37115130 # func_extract_an_archive dir oldlib
37125131 func_extract_an_archive ()
37135132 {
3714 $opt_debug
3715 f_ex_an_ar_dir="$1"; shift
3716 f_ex_an_ar_oldlib="$1"
3717 if test "$lock_old_archive_extraction" = yes; then
5133 $debug_cmd
5134
5135 f_ex_an_ar_dir=$1; shift
5136 f_ex_an_ar_oldlib=$1
5137 if test yes = "$lock_old_archive_extraction"; then
37185138 lockfile=$f_ex_an_ar_oldlib.lock
37195139 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
37205140 func_echo "Waiting for $lockfile to be removed"
37235143 fi
37245144 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
37255145 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
5146 if test yes = "$lock_old_archive_extraction"; then
37275147 $opt_dry_run || rm -f "$lockfile"
37285148 fi
37295149 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
37375157 # func_extract_archives gentop oldlib ...
37385158 func_extract_archives ()
37395159 {
3740 $opt_debug
3741 my_gentop="$1"; shift
5160 $debug_cmd
5161
5162 my_gentop=$1; shift
37425163 my_oldlibs=${1+"$@"}
3743 my_oldobjs=""
3744 my_xlib=""
3745 my_xabs=""
3746 my_xdir=""
5164 my_oldobjs=
5165 my_xlib=
5166 my_xabs=
5167 my_xdir=
37475168
37485169 for my_xlib in $my_oldlibs; do
37495170 # Extract the objects.
37505171 case $my_xlib in
3751 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
5172 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
37525173 *) my_xabs=`pwd`"/$my_xlib" ;;
37535174 esac
37545175 func_basename "$my_xlib"
3755 my_xlib="$func_basename_result"
5176 my_xlib=$func_basename_result
37565177 my_xlib_u=$my_xlib
37575178 while :; do
37585179 case " $extracted_archives " in
37645185 esac
37655186 done
37665187 extracted_archives="$extracted_archives $my_xlib_u"
3767 my_xdir="$my_gentop/$my_xlib_u"
5188 my_xdir=$my_gentop/$my_xlib_u
37685189
37695190 func_mkdir_p "$my_xdir"
37705191
37775198 cd $my_xdir || exit $?
37785199 darwin_archive=$my_xabs
37795200 darwin_curdir=`pwd`
3780 darwin_base_archive=`basename "$darwin_archive"`
5201 func_basename "$darwin_archive"
5202 darwin_base_archive=$func_basename_result
37815203 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
37825204 if test -n "$darwin_arches"; then
37835205 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
37845206 darwin_arch=
37855207 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3786 for darwin_arch in $darwin_arches ; do
3787 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3788 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3789 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3790 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
5208 for darwin_arch in $darwin_arches; do
5209 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5210 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5211 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5212 func_extract_an_archive "`pwd`" "$darwin_base_archive"
37915213 cd "$darwin_curdir"
3792 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
5214 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
37935215 done # $darwin_arches
37945216 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3795 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
5217 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
37965218 darwin_file=
37975219 darwin_files=
37985220 for darwin_file in $darwin_filelist; do
38145236 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
38155237 done
38165238
3817 func_extract_archives_result="$my_oldobjs"
5239 func_extract_archives_result=$my_oldobjs
38185240 }
38195241
38205242
38295251 #
38305252 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
38315253 # variable will take. If 'yes', then the emitted script
3832 # will assume that the directory in which it is stored is
5254 # will assume that the directory where it is stored is
38335255 # the $objdir directory. This is a cygwin/mingw-specific
38345256 # behavior.
38355257 func_emit_wrapper ()
38405262 #! $SHELL
38415263
38425264 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5265 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
38445266 #
38455267 # The $output program cannot be directly executed until all the libtool
38465268 # libraries that it depends on are installed.
38825304 if test \"\$libtool_execute_magic\" != \"$magic\"; then
38835305 file=\"\$0\""
38845306
3885 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
5307 func_quote "$ECHO"
5308 qECHO=$func_quote_result
38865309 $ECHO "\
38875310
38885311 # A function that is used when there is no print builtin or printf.
38975320
38985321 # Very basic option parsing. These options are (a) specific to
38995322 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
5323 # /script/ and the wrapper /executable/ that is used only on
39015324 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
5325 # (application programs are unlikely to have options that match
39035326 # this pattern).
39045327 #
39055328 # There are only two supported options: --lt-debug and
39325355
39335356 # Print the debug banner immediately:
39345357 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
5358 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
39365359 fi
39375360 }
39385361
39435366 lt_dump_args_N=1;
39445367 for lt_arg
39455368 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
5369 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
39475370 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
39485371 done
39495372 }
39575380 *-*-mingw | *-*-os2* | *-cegcc*)
39585381 $ECHO "\
39595382 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
5383 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
39615384 func_lt_dump_args \${1+\"\$@\"} 1>&2
39625385 fi
39635386 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
39675390 *)
39685391 $ECHO "\
39695392 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
5393 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
39715394 func_lt_dump_args \${1+\"\$@\"} 1>&2
39725395 fi
39735396 exec \"\$progdir/\$program\" \${1+\"\$@\"}
40425465 test -n \"\$absdir\" && thisdir=\"\$absdir\"
40435466 "
40445467
4045 if test "$fast_install" = yes; then
5468 if test yes = "$fast_install"; then
40465469 $ECHO "\
40475470 program=lt-'$outputname'$exeext
40485471 progdir=\"\$thisdir/$objdir\"
40495472
40505473 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5474 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
40525475 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
40535476
40545477 file=\"\$\$-\$program\"
40655488 if test -n \"\$relink_command\"; then
40665489 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
40675490 else
4068 $ECHO \"\$relink_command_output\" >&2
5491 \$ECHO \"\$relink_command_output\" >&2
40695492 $RM \"\$progdir/\$file\"
40705493 exit 1
40715494 fi
41005523 fi
41015524
41025525 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5526 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
41045527 $ECHO "\
41055528 # Add our own library path to $shlibpath_var
41065529 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
41205543 fi
41215544 else
41225545 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5546 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
41245547 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
41255548 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
41265549 exit 1
41395562 cat <<EOF
41405563
41415564 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4142 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5565 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
41435566
41445567 The $output program cannot be directly executed until all the libtool
41455568 libraries that it depends on are installed.
41745597 #include <fcntl.h>
41755598 #include <sys/stat.h>
41765599
5600 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5601
41775602 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
5603 #if defined __MINGW32__
41795604 # ifdef __STRICT_ANSI__
41805605 int _putenv (const char *);
41815606 # endif
4182 #elif defined(__CYGWIN__)
5607 #elif defined __CYGWIN__
41835608 # ifdef __STRICT_ANSI__
41845609 char *realpath (const char *, char *);
41855610 int putenv (char *);
41865611 int setenv (const char *, const char *, int);
41875612 # endif
4188 /* #elif defined (other platforms) ... */
5613 /* #elif defined other_platform || defined ... */
41895614 #endif
41905615
41915616 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
5617 #if defined _MSC_VER
41935618 # define setmode _setmode
41945619 # define stat _stat
41955620 # define chmod _chmod
41965621 # define getcwd _getcwd
41975622 # define putenv _putenv
41985623 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
5624 #elif defined __MINGW32__
42045625 # define setmode _setmode
42055626 # define stat _stat
42065627 # define chmod _chmod
42075628 # define getcwd _getcwd
42085629 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
5630 #elif defined __CYGWIN__
42105631 # define HAVE_SETENV
42115632 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
5633 /* #elif defined other platforms ... */
42135634 #endif
42145635
4215 #if defined(PATH_MAX)
5636 #if defined PATH_MAX
42165637 # define LT_PATHMAX PATH_MAX
4217 #elif defined(MAXPATHLEN)
5638 #elif defined MAXPATHLEN
42185639 # define LT_PATHMAX MAXPATHLEN
42195640 #else
42205641 # define LT_PATHMAX 1024
42335654 # define PATH_SEPARATOR ':'
42345655 #endif
42355656
4236 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4237 defined (__OS2__)
5657 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5658 defined __OS2__
42385659 # define HAVE_DOS_BASED_FILE_SYSTEM
42395660 # define FOPEN_WB "wb"
42405661 # ifndef DIR_SEPARATOR_2
42675688
42685689 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
42695690 #define XFREE(stale) do { \
4270 if (stale) { free ((void *) stale); stale = 0; } \
5691 if (stale) { free (stale); stale = 0; } \
42715692 } while (0)
42725693
4273 #if defined(LT_DEBUGWRAPPER)
5694 #if defined LT_DEBUGWRAPPER
42745695 static int lt_debug = 1;
42755696 #else
42765697 static int lt_debug = 0;
42995720 EOF
43005721
43015722 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
5723 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5724 # define externally_visible volatile
5725 #else
5726 # define externally_visible __attribute__((externally_visible)) volatile
5727 #endif
5728 externally_visible const char * MAGIC_EXE = "$magic_exe";
43035729 const char * LIB_PATH_VARNAME = "$shlibpath_var";
43045730 EOF
43055731
4306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5732 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
43075733 func_to_host_path "$temp_rpath"
43085734 cat <<EOF
43095735 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
43275753 EOF
43285754 fi
43295755
4330 if test "$fast_install" = yes; then
5756 if test yes = "$fast_install"; then
43315757 cat <<EOF
43325758 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
43335759 EOF
43565782 char *actual_cwrapper_name;
43575783 char *target_name;
43585784 char *lt_argv_zero;
4359 intptr_t rval = 127;
5785 int rval = 127;
43605786
43615787 int i;
43625788
43635789 program_name = (char *) xstrdup (base_name (argv[0]));
4364 newargz = XMALLOC (char *, argc + 1);
5790 newargz = XMALLOC (char *, (size_t) argc + 1);
43655791
43665792 /* very simple arg parsing; don't want to rely on getopt
43675793 * also, copy all non cwrapper options to newargz, except
43705796 newargc=0;
43715797 for (i = 1; i < argc; i++)
43725798 {
4373 if (strcmp (argv[i], dumpscript_opt) == 0)
5799 if (STREQ (argv[i], dumpscript_opt))
43745800 {
43755801 EOF
4376 case "$host" in
5802 case $host in
43775803 *mingw* | *cygwin* )
43785804 # make stdout use "unix" line endings
43795805 echo " setmode(1,_O_BINARY);"
43845810 lt_dump_script (stdout);
43855811 return 0;
43865812 }
4387 if (strcmp (argv[i], debug_opt) == 0)
5813 if (STREQ (argv[i], debug_opt))
43885814 {
43895815 lt_debug = 1;
43905816 continue;
43915817 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
5818 if (STREQ (argv[i], ltwrapper_option_prefix))
43935819 {
43945820 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
43955821 namespace, but it is not one of the ones we know about and
44125838 EOF
44135839 cat <<EOF
44145840 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
5841 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
44165842 EOF
44175843 cat <<"EOF"
44185844 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
45235949 cat <<"EOF"
45245950 /* execv doesn't actually work on mingw as expected on unix */
45255951 newargz = prepare_spawn (newargz);
4526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5952 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
45275953 if (rval == -1)
45285954 {
45295955 /* failed to start process */
45685994 {
45695995 const char *base;
45705996
4571 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5997 #if defined HAVE_DOS_BASED_FILE_SYSTEM
45725998 /* Skip over the disk name in MSDOS pathnames. */
45735999 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
45746000 name += 2;
46276053 const char *p_next;
46286054 /* static buffer for getcwd */
46296055 char tmp[LT_PATHMAX + 1];
4630 int tmp_len;
6056 size_t tmp_len;
46316057 char *concat_name;
46326058
46336059 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
46376063 return NULL;
46386064
46396065 /* Absolute path? */
4640 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6066 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46416067 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
46426068 {
46436069 concat_name = xstrdup (wrapper);
46556081 return concat_name;
46566082 XFREE (concat_name);
46576083 }
4658 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6084 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46596085 }
46606086 #endif
46616087
46786104 for (q = p; *q; q++)
46796105 if (IS_PATH_SEPARATOR (*q))
46806106 break;
4681 p_len = q - p;
6107 p_len = (size_t) (q - p);
46826108 p_next = (*q == '\0' ? q : q + 1);
46836109 if (p_len == 0)
46846110 {
47976223 if (patlen <= len)
47986224 {
47996225 str += len - patlen;
4800 if (strcmp (str, pat) == 0)
6226 if (STREQ (str, pat))
48016227 *str = '\0';
48026228 }
48036229 return str;
48626288 char *str = xstrdup (value);
48636289 setenv (name, str, 1);
48646290 #else
4865 int len = strlen (name) + 1 + strlen (value) + 1;
6291 size_t len = strlen (name) + 1 + strlen (value) + 1;
48666292 char *str = XMALLOC (char, len);
48676293 sprintf (str, "%s=%s", name, value);
48686294 if (putenv (str) != EXIT_SUCCESS)
48796305 char *new_value;
48806306 if (orig_value && *orig_value)
48816307 {
4882 int orig_value_len = strlen (orig_value);
4883 int add_len = strlen (add);
6308 size_t orig_value_len = strlen (orig_value);
6309 size_t add_len = strlen (add);
48846310 new_value = XMALLOC (char, add_len + orig_value_len + 1);
48856311 if (to_end)
48866312 {
49116337 {
49126338 char *new_value = lt_extend_str (getenv (name), value, 0);
49136339 /* some systems can't cope with a ':'-terminated path #' */
4914 int len = strlen (new_value);
4915 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6340 size_t len = strlen (new_value);
6341 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
49166342 {
4917 new_value[len-1] = '\0';
6343 new_value[--len] = '\0';
49186344 }
49196345 lt_setenv (name, new_value);
49206346 XFREE (new_value);
50816507 # True if ARG is an import lib, as indicated by $file_magic_cmd
50826508 func_win32_import_lib_p ()
50836509 {
5084 $opt_debug
6510 $debug_cmd
6511
50856512 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
50866513 *import*) : ;;
50876514 *) false ;;
50886515 esac
50896516 }
50906517
6518 # func_suncc_cstd_abi
6519 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6520 # Several compiler flags select an ABI that is incompatible with the
6521 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6522 func_suncc_cstd_abi ()
6523 {
6524 $debug_cmd
6525
6526 case " $compile_command " in
6527 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6528 suncc_use_cstd_abi=no
6529 ;;
6530 *)
6531 suncc_use_cstd_abi=yes
6532 ;;
6533 esac
6534 }
6535
50916536 # func_mode_link arg...
50926537 func_mode_link ()
50936538 {
5094 $opt_debug
6539 $debug_cmd
6540
50956541 case $host in
50966542 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
50976543 # It is impossible to link a dll without this setting, and
50986544 # we shouldn't force the makefile maintainer to figure out
5099 # which system we are compiling for in order to pass an extra
6545 # what system we are compiling for in order to pass an extra
51006546 # flag for every libtool invocation.
51016547 # allow_undefined=no
51026548
51036549 # FIXME: Unfortunately, there are problems with the above when trying
5104 # to make a dll which has undefined symbols, in which case not
6550 # to make a dll that has undefined symbols, in which case not
51056551 # even a static library is built. For now, we need to specify
51066552 # -no-undefined on the libtool link line when we can be certain
51076553 # that all symbols are satisfied, otherwise we get a static library.
51456591 module=no
51466592 no_install=no
51476593 objs=
6594 os2dllname=
51486595 non_pic_objects=
51496596 precious_files_regex=
51506597 prefer_static_libs=no
5151 preload=no
6598 preload=false
51526599 prev=
51536600 prevarg=
51546601 release=
51606607 vinfo=
51616608 vinfo_number=no
51626609 weak_libs=
5163 single_module="${wl}-single_module"
6610 single_module=$wl-single_module
51646611 func_infer_tag $base_compile
51656612
51666613 # We need to know -static, to get the right output filenames.
51686615 do
51696616 case $arg in
51706617 -shared)
5171 test "$build_libtool_libs" != yes && \
5172 func_fatal_configuration "can not build a shared library"
6618 test yes != "$build_libtool_libs" \
6619 && func_fatal_configuration "cannot build a shared library"
51736620 build_old_libs=no
51746621 break
51756622 ;;
51766623 -all-static | -static | -static-libtool-libs)
51776624 case $arg in
51786625 -all-static)
5179 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
6626 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
51806627 func_warning "complete static linking is impossible in this configuration"
51816628 fi
51826629 if test -n "$link_static_flag"; then
52096656
52106657 # Go through the arguments, transforming them on the way.
52116658 while test "$#" -gt 0; do
5212 arg="$1"
6659 arg=$1
52136660 shift
52146661 func_quote_for_eval "$arg"
52156662 qarg=$func_quote_for_eval_unquoted_result
52266673
52276674 case $prev in
52286675 bindir)
5229 bindir="$arg"
6676 bindir=$arg
52306677 prev=
52316678 continue
52326679 ;;
52336680 dlfiles|dlprefiles)
5234 if test "$preload" = no; then
6681 $preload || {
52356682 # Add the symbol object into the linking commands.
52366683 func_append compile_command " @SYMFILE@"
52376684 func_append finalize_command " @SYMFILE@"
5238 preload=yes
5239 fi
6685 preload=:
6686 }
52406687 case $arg in
52416688 *.la | *.lo) ;; # We handle these cases below.
52426689 force)
5243 if test "$dlself" = no; then
6690 if test no = "$dlself"; then
52446691 dlself=needless
52456692 export_dynamic=yes
52466693 fi
52486695 continue
52496696 ;;
52506697 self)
5251 if test "$prev" = dlprefiles; then
6698 if test dlprefiles = "$prev"; then
52526699 dlself=yes
5253 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
6700 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
52546701 dlself=yes
52556702 else
52566703 dlself=needless
52606707 continue
52616708 ;;
52626709 *)
5263 if test "$prev" = dlfiles; then
6710 if test dlfiles = "$prev"; then
52646711 func_append dlfiles " $arg"
52656712 else
52666713 func_append dlprefiles " $arg"
52716718 esac
52726719 ;;
52736720 expsyms)
5274 export_symbols="$arg"
6721 export_symbols=$arg
52756722 test -f "$arg" \
5276 || func_fatal_error "symbol file \`$arg' does not exist"
6723 || func_fatal_error "symbol file '$arg' does not exist"
52776724 prev=
52786725 continue
52796726 ;;
52806727 expsyms_regex)
5281 export_symbols_regex="$arg"
6728 export_symbols_regex=$arg
52826729 prev=
52836730 continue
52846731 ;;
52966743 continue
52976744 ;;
52986745 inst_prefix)
5299 inst_prefix_dir="$arg"
6746 inst_prefix_dir=$arg
6747 prev=
6748 continue
6749 ;;
6750 mllvm)
6751 # Clang does not use LLVM to link, so we can simply discard any
6752 # '-mllvm $arg' options when doing the link step.
53006753 prev=
53016754 continue
53026755 ;;
53206773
53216774 if test -z "$pic_object" ||
53226775 test -z "$non_pic_object" ||
5323 test "$pic_object" = none &&
5324 test "$non_pic_object" = none; then
5325 func_fatal_error "cannot find name of object for \`$arg'"
6776 test none = "$pic_object" &&
6777 test none = "$non_pic_object"; then
6778 func_fatal_error "cannot find name of object for '$arg'"
53266779 fi
53276780
53286781 # Extract subdirectory from the argument.
53296782 func_dirname "$arg" "/" ""
5330 xdir="$func_dirname_result"
5331
5332 if test "$pic_object" != none; then
6783 xdir=$func_dirname_result
6784
6785 if test none != "$pic_object"; then
53336786 # Prepend the subdirectory the object is found in.
5334 pic_object="$xdir$pic_object"
5335
5336 if test "$prev" = dlfiles; then
5337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
6787 pic_object=$xdir$pic_object
6788
6789 if test dlfiles = "$prev"; then
6790 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
53386791 func_append dlfiles " $pic_object"
53396792 prev=
53406793 continue
53456798 fi
53466799
53476800 # CHECK ME: I think I busted this. -Ossama
5348 if test "$prev" = dlprefiles; then
6801 if test dlprefiles = "$prev"; then
53496802 # Preload the old-style object.
53506803 func_append dlprefiles " $pic_object"
53516804 prev=
53536806
53546807 # A PIC object.
53556808 func_append libobjs " $pic_object"
5356 arg="$pic_object"
6809 arg=$pic_object
53576810 fi
53586811
53596812 # Non-PIC object.
5360 if test "$non_pic_object" != none; then
6813 if test none != "$non_pic_object"; then
53616814 # Prepend the subdirectory the object is found in.
5362 non_pic_object="$xdir$non_pic_object"
6815 non_pic_object=$xdir$non_pic_object
53636816
53646817 # A standard non-PIC object
53656818 func_append non_pic_objects " $non_pic_object"
5366 if test -z "$pic_object" || test "$pic_object" = none ; then
5367 arg="$non_pic_object"
6819 if test -z "$pic_object" || test none = "$pic_object"; then
6820 arg=$non_pic_object
53686821 fi
53696822 else
53706823 # If the PIC object exists, use it instead.
53716824 # $xdir was prepended to $pic_object above.
5372 non_pic_object="$pic_object"
6825 non_pic_object=$pic_object
53736826 func_append non_pic_objects " $non_pic_object"
53746827 fi
53756828 else
53776830 if $opt_dry_run; then
53786831 # Extract subdirectory from the argument.
53796832 func_dirname "$arg" "/" ""
5380 xdir="$func_dirname_result"
6833 xdir=$func_dirname_result
53816834
53826835 func_lo2o "$arg"
53836836 pic_object=$xdir$objdir/$func_lo2o_result
53856838 func_append libobjs " $pic_object"
53866839 func_append non_pic_objects " $non_pic_object"
53876840 else
5388 func_fatal_error "\`$arg' is not a valid libtool object"
6841 func_fatal_error "'$arg' is not a valid libtool object"
53896842 fi
53906843 fi
53916844 done
53926845 else
5393 func_fatal_error "link input file \`$arg' does not exist"
6846 func_fatal_error "link input file '$arg' does not exist"
53946847 fi
53956848 arg=$save_arg
53966849 prev=
53976850 continue
53986851 ;;
6852 os2dllname)
6853 os2dllname=$arg
6854 prev=
6855 continue
6856 ;;
53996857 precious_regex)
5400 precious_files_regex="$arg"
6858 precious_files_regex=$arg
54016859 prev=
54026860 continue
54036861 ;;
54046862 release)
5405 release="-$arg"
6863 release=-$arg
54066864 prev=
54076865 continue
54086866 ;;
54146872 func_fatal_error "only absolute run-paths are allowed"
54156873 ;;
54166874 esac
5417 if test "$prev" = rpath; then
6875 if test rpath = "$prev"; then
54186876 case "$rpath " in
54196877 *" $arg "*) ;;
54206878 *) func_append rpath " $arg" ;;
54296887 continue
54306888 ;;
54316889 shrext)
5432 shrext_cmds="$arg"
6890 shrext_cmds=$arg
54336891 prev=
54346892 continue
54356893 ;;
54696927 esac
54706928 fi # test -n "$prev"
54716929
5472 prevarg="$arg"
6930 prevarg=$arg
54736931
54746932 case $arg in
54756933 -all-static)
54836941
54846942 -allow-undefined)
54856943 # FIXME: remove this flag sometime in the future.
5486 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
6944 func_fatal_error "'-allow-undefined' must not be used because it is the default"
54876945 ;;
54886946
54896947 -avoid-version)
55156973 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
55166974 func_fatal_error "more than one -exported-symbols argument is not allowed"
55176975 fi
5518 if test "X$arg" = "X-export-symbols"; then
6976 if test X-export-symbols = "X$arg"; then
55196977 prev=expsyms
55206978 else
55216979 prev=expsyms_regex
55497007 func_stripname "-L" '' "$arg"
55507008 if test -z "$func_stripname_result"; then
55517009 if test "$#" -gt 0; then
5552 func_fatal_error "require no space between \`-L' and \`$1'"
7010 func_fatal_error "require no space between '-L' and '$1'"
55537011 else
5554 func_fatal_error "need path for \`-L' option"
7012 func_fatal_error "need path for '-L' option"
55557013 fi
55567014 fi
55577015 func_resolve_sysroot "$func_stripname_result"
55627020 *)
55637021 absdir=`cd "$dir" && pwd`
55647022 test -z "$absdir" && \
5565 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5566 dir="$absdir"
7023 func_fatal_error "cannot determine absolute directory name of '$dir'"
7024 dir=$absdir
55677025 ;;
55687026 esac
55697027 case "$deplibs " in
55987056 ;;
55997057
56007058 -l*)
5601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7059 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
56027060 case $host in
56037061 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
56047062 # These systems don't actually have a C or math library (as such)
56067064 ;;
56077065 *-*-os2*)
56087066 # These systems don't actually have a C library (as such)
5609 test "X$arg" = "X-lc" && continue
7067 test X-lc = "X$arg" && continue
56107068 ;;
5611 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7069 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56127070 # Do not include libc due to us having libc/libc_r.
5613 test "X$arg" = "X-lc" && continue
7071 test X-lc = "X$arg" && continue
56147072 ;;
56157073 *-*-rhapsody* | *-*-darwin1.[012])
56167074 # Rhapsody C and math libraries are in the System framework
56197077 ;;
56207078 *-*-sco3.2v5* | *-*-sco5v6*)
56217079 # Causes problems with __ctype
5622 test "X$arg" = "X-lc" && continue
7080 test X-lc = "X$arg" && continue
56237081 ;;
56247082 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
56257083 # Compiler inserts libc in the correct place for threads to work
5626 test "X$arg" = "X-lc" && continue
7084 test X-lc = "X$arg" && continue
56277085 ;;
56287086 esac
5629 elif test "X$arg" = "X-lc_r"; then
7087 elif test X-lc_r = "X$arg"; then
56307088 case $host in
5631 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7089 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56327090 # Do not include libc_r directly, use -pthread flag.
56337091 continue
56347092 ;;
56357093 esac
56367094 fi
56377095 func_append deplibs " $arg"
7096 continue
7097 ;;
7098
7099 -mllvm)
7100 prev=mllvm
56387101 continue
56397102 ;;
56407103
56637126 *" $arg "*) ;;
56647127 * ) func_append new_inherited_linker_flags " $arg" ;;
56657128 esac
7129
7130 # As we are forced to pass -nostdlib to g++ during linking, the option
7131 # -pthread{,s} is not in effect; add the -lpthread to $deplist
7132 # explicitly to link correctly.
7133 if test "$tagname" = CXX -a x"$with_gcc" = xyes; then
7134 case "$arg" in
7135 -pthread*) func_append deplibs " -lpthread" ;;
7136 esac
7137 fi
7138
56667139 continue
56677140 ;;
56687141
56697142 -multi_module)
5670 single_module="${wl}-multi_module"
7143 single_module=$wl-multi_module
56717144 continue
56727145 ;;
56737146
56817154 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
56827155 # The PATH hackery in wrapper scripts is required on Windows
56837156 # and Darwin in order for the loader to find any dlls it needs.
5684 func_warning "\`-no-install' is ignored for $host"
5685 func_warning "assuming \`-no-fast-install' instead"
7157 func_warning "'-no-install' is ignored for $host"
7158 func_warning "assuming '-no-fast-install' instead"
56867159 fast_install=no
56877160 ;;
56887161 *) no_install=yes ;;
56977170
56987171 -objectlist)
56997172 prev=objectlist
7173 continue
7174 ;;
7175
7176 -os2dllname)
7177 prev=os2dllname
57007178 continue
57017179 ;;
57027180
57877265 func_stripname '-Wc,' '' "$arg"
57887266 args=$func_stripname_result
57897267 arg=
5790 save_ifs="$IFS"; IFS=','
7268 save_ifs=$IFS; IFS=,
57917269 for flag in $args; do
5792 IFS="$save_ifs"
7270 IFS=$save_ifs
57937271 func_quote_for_eval "$flag"
57947272 func_append arg " $func_quote_for_eval_result"
57957273 func_append compiler_flags " $func_quote_for_eval_result"
57967274 done
5797 IFS="$save_ifs"
7275 IFS=$save_ifs
57987276 func_stripname ' ' '' "$arg"
57997277 arg=$func_stripname_result
58007278 ;;
58037281 func_stripname '-Wl,' '' "$arg"
58047282 args=$func_stripname_result
58057283 arg=
5806 save_ifs="$IFS"; IFS=','
7284 save_ifs=$IFS; IFS=,
58077285 for flag in $args; do
5808 IFS="$save_ifs"
7286 IFS=$save_ifs
58097287 func_quote_for_eval "$flag"
58107288 func_append arg " $wl$func_quote_for_eval_result"
58117289 func_append compiler_flags " $wl$func_quote_for_eval_result"
58127290 func_append linker_flags " $func_quote_for_eval_result"
58137291 done
5814 IFS="$save_ifs"
7292 IFS=$save_ifs
58157293 func_stripname ' ' '' "$arg"
58167294 arg=$func_stripname_result
58177295 ;;
58347312 # -msg_* for osf cc
58357313 -msg_*)
58367314 func_quote_for_eval "$arg"
5837 arg="$func_quote_for_eval_result"
7315 arg=$func_quote_for_eval_result
58387316 ;;
58397317
58407318 # Flags to be passed through unchanged, with rationale:
58467324 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
58477325 # -F/path path to uninstalled frameworks, gcc on darwin
58487326 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7327 # -fstack-protector* stack protector flags for GCC
58497328 # @file GCC response files
58507329 # -tp=* Portland pgcc target processor selection
58517330 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7331 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7332 # -specs=* GCC specs files
7333 # -stdlib=* select c++ std lib with clang
7334 # -fsanitize=* Clang/GCC memory and address sanitizer
7335 # -fuse-ld=* Linker select flags for GCC
58537336 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
58547337 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
7338 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7339 -specs=*|-fsanitize=*|-fuse-ld=*)
58567340 func_quote_for_eval "$arg"
5857 arg="$func_quote_for_eval_result"
7341 arg=$func_quote_for_eval_result
58587342 func_append compile_command " $arg"
58597343 func_append finalize_command " $arg"
58607344 func_append compiler_flags " $arg"
58617345 continue
58627346 ;;
58637347
7348 -Z*)
7349 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7350 # OS/2 uses -Zxxx to specify OS/2-specific options
7351 compiler_flags="$compiler_flags $arg"
7352 func_append compile_command " $arg"
7353 func_append finalize_command " $arg"
7354 case $arg in
7355 -Zlinker | -Zstack)
7356 prev=xcompiler
7357 ;;
7358 esac
7359 continue
7360 else
7361 # Otherwise treat like 'Some other compiler flag' below
7362 func_quote_for_eval "$arg"
7363 arg=$func_quote_for_eval_result
7364 fi
7365 ;;
7366
58647367 # Some other compiler flag.
58657368 -* | +*)
58667369 func_quote_for_eval "$arg"
5867 arg="$func_quote_for_eval_result"
7370 arg=$func_quote_for_eval_result
58687371 ;;
58697372
58707373 *.$objext)
58857388
58867389 if test -z "$pic_object" ||
58877390 test -z "$non_pic_object" ||
5888 test "$pic_object" = none &&
5889 test "$non_pic_object" = none; then
5890 func_fatal_error "cannot find name of object for \`$arg'"
7391 test none = "$pic_object" &&
7392 test none = "$non_pic_object"; then
7393 func_fatal_error "cannot find name of object for '$arg'"
58917394 fi
58927395
58937396 # Extract subdirectory from the argument.
58947397 func_dirname "$arg" "/" ""
5895 xdir="$func_dirname_result"
5896
5897 if test "$pic_object" != none; then
7398 xdir=$func_dirname_result
7399
7400 test none = "$pic_object" || {
58987401 # Prepend the subdirectory the object is found in.
5899 pic_object="$xdir$pic_object"
5900
5901 if test "$prev" = dlfiles; then
5902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
7402 pic_object=$xdir$pic_object
7403
7404 if test dlfiles = "$prev"; then
7405 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
59037406 func_append dlfiles " $pic_object"
59047407 prev=
59057408 continue
59107413 fi
59117414
59127415 # CHECK ME: I think I busted this. -Ossama
5913 if test "$prev" = dlprefiles; then
7416 if test dlprefiles = "$prev"; then
59147417 # Preload the old-style object.
59157418 func_append dlprefiles " $pic_object"
59167419 prev=
59187421
59197422 # A PIC object.
59207423 func_append libobjs " $pic_object"
5921 arg="$pic_object"
5922 fi
7424 arg=$pic_object
7425 }
59237426
59247427 # Non-PIC object.
5925 if test "$non_pic_object" != none; then
7428 if test none != "$non_pic_object"; then
59267429 # Prepend the subdirectory the object is found in.
5927 non_pic_object="$xdir$non_pic_object"
7430 non_pic_object=$xdir$non_pic_object
59287431
59297432 # A standard non-PIC object
59307433 func_append non_pic_objects " $non_pic_object"
5931 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 arg="$non_pic_object"
7434 if test -z "$pic_object" || test none = "$pic_object"; then
7435 arg=$non_pic_object
59337436 fi
59347437 else
59357438 # If the PIC object exists, use it instead.
59367439 # $xdir was prepended to $pic_object above.
5937 non_pic_object="$pic_object"
7440 non_pic_object=$pic_object
59387441 func_append non_pic_objects " $non_pic_object"
59397442 fi
59407443 else
59427445 if $opt_dry_run; then
59437446 # Extract subdirectory from the argument.
59447447 func_dirname "$arg" "/" ""
5945 xdir="$func_dirname_result"
7448 xdir=$func_dirname_result
59467449
59477450 func_lo2o "$arg"
59487451 pic_object=$xdir$objdir/$func_lo2o_result
59507453 func_append libobjs " $pic_object"
59517454 func_append non_pic_objects " $non_pic_object"
59527455 else
5953 func_fatal_error "\`$arg' is not a valid libtool object"
7456 func_fatal_error "'$arg' is not a valid libtool object"
59547457 fi
59557458 fi
59567459 ;;
59667469 # A libtool-controlled library.
59677470
59687471 func_resolve_sysroot "$arg"
5969 if test "$prev" = dlfiles; then
7472 if test dlfiles = "$prev"; then
59707473 # This library was specified with -dlopen.
59717474 func_append dlfiles " $func_resolve_sysroot_result"
59727475 prev=
5973 elif test "$prev" = dlprefiles; then
7476 elif test dlprefiles = "$prev"; then
59747477 # The library was specified with -dlpreopen.
59757478 func_append dlprefiles " $func_resolve_sysroot_result"
59767479 prev=
59857488 # Unknown arguments in both finalize_command and compile_command need
59867489 # to be aesthetically quoted because they are evaled later.
59877490 func_quote_for_eval "$arg"
5988 arg="$func_quote_for_eval_result"
7491 arg=$func_quote_for_eval_result
59897492 ;;
59907493 esac # arg
59917494
59977500 done # argument parsing loop
59987501
59997502 test -n "$prev" && \
6000 func_fatal_help "the \`$prevarg' option requires an argument"
6001
6002 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
7503 func_fatal_help "the '$prevarg' option requires an argument"
7504
7505 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
60037506 eval arg=\"$export_dynamic_flag_spec\"
60047507 func_append compile_command " $arg"
60057508 func_append finalize_command " $arg"
60087511 oldlibs=
60097512 # calculate the name of the file, without its directory
60107513 func_basename "$output"
6011 outputname="$func_basename_result"
6012 libobjs_save="$libobjs"
7514 outputname=$func_basename_result
7515 libobjs_save=$libobjs
60137516
60147517 if test -n "$shlibpath_var"; then
60157518 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
7519 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
60177520 else
60187521 shlib_search_path=
60197522 fi
60207523 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
60217524 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
60227525
7526 # Definition is injected by LT_CONFIG during libtool generation.
7527 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7528
60237529 func_dirname "$output" "/" ""
6024 output_objdir="$func_dirname_result$objdir"
7530 output_objdir=$func_dirname_result$objdir
60257531 func_to_tool_file "$output_objdir/"
60267532 tool_output_objdir=$func_to_tool_file_result
60277533 # Create the object directory.
60447550 # Find all interdependent deplibs by searching for libraries
60457551 # that are linked more than once (e.g. -la -lb -la)
60467552 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
7553 if $opt_preserve_dup_deps; then
60487554 case "$libs " in
60497555 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
60507556 esac
60527558 func_append libs " $deplib"
60537559 done
60547560
6055 if test "$linkmode" = lib; then
7561 if test lib = "$linkmode"; then
60567562 libs="$predeps $libs $compiler_lib_search_path $postdeps"
60577563
60587564 # Compute libraries that are listed more than once in $predeps
60847590 case $file in
60857591 *.la) ;;
60867592 *)
6087 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
7593 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
60887594 ;;
60897595 esac
60907596 done
60927598 prog)
60937599 compile_deplibs=
60947600 finalize_deplibs=
6095 alldeplibs=no
7601 alldeplibs=false
60967602 newdlfiles=
60977603 newdlprefiles=
60987604 passes="conv scan dlopen dlpreopen link"
61047610 for pass in $passes; do
61057611 # The preopen pass in lib mode reverses $deplibs; put it back here
61067612 # so that -L comes before libs that need it for instance...
6107 if test "$linkmode,$pass" = "lib,link"; then
7613 if test lib,link = "$linkmode,$pass"; then
61087614 ## FIXME: Find the place where the list is rebuilt in the wrong
61097615 ## order, and fix it there properly
61107616 tmp_deplibs=
61117617 for deplib in $deplibs; do
61127618 tmp_deplibs="$deplib $tmp_deplibs"
61137619 done
6114 deplibs="$tmp_deplibs"
7620 deplibs=$tmp_deplibs
61157621 fi
61167622
6117 if test "$linkmode,$pass" = "lib,link" ||
6118 test "$linkmode,$pass" = "prog,scan"; then
6119 libs="$deplibs"
7623 if test lib,link = "$linkmode,$pass" ||
7624 test prog,scan = "$linkmode,$pass"; then
7625 libs=$deplibs
61207626 deplibs=
61217627 fi
6122 if test "$linkmode" = prog; then
7628 if test prog = "$linkmode"; then
61237629 case $pass in
6124 dlopen) libs="$dlfiles" ;;
6125 dlpreopen) libs="$dlprefiles" ;;
7630 dlopen) libs=$dlfiles ;;
7631 dlpreopen) libs=$dlprefiles ;;
61267632 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
61277633 esac
61287634 fi
6129 if test "$linkmode,$pass" = "lib,dlpreopen"; then
7635 if test lib,dlpreopen = "$linkmode,$pass"; then
61307636 # Collect and forward deplibs of preopened libtool libs
61317637 for lib in $dlprefiles; do
61327638 # Ignore non-libtool-libs
61477653 esac
61487654 done
61497655 done
6150 libs="$dlprefiles"
7656 libs=$dlprefiles
61517657 fi
6152 if test "$pass" = dlopen; then
7658 if test dlopen = "$pass"; then
61537659 # Collect dlpreopened libraries
6154 save_deplibs="$deplibs"
7660 save_deplibs=$deplibs
61557661 deplibs=
61567662 fi
61577663
61587664 for deplib in $libs; do
61597665 lib=
6160 found=no
7666 found=false
61617667 case $deplib in
61627668 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
61637669 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6164 if test "$linkmode,$pass" = "prog,link"; then
7670 if test prog,link = "$linkmode,$pass"; then
61657671 compile_deplibs="$deplib $compile_deplibs"
61667672 finalize_deplibs="$deplib $finalize_deplibs"
61677673 else
61687674 func_append compiler_flags " $deplib"
6169 if test "$linkmode" = lib ; then
7675 if test lib = "$linkmode"; then
61707676 case "$new_inherited_linker_flags " in
61717677 *" $deplib "*) ;;
61727678 * ) func_append new_inherited_linker_flags " $deplib" ;;
61767682 continue
61777683 ;;
61787684 -l*)
6179 if test "$linkmode" != lib && test "$linkmode" != prog; then
6180 func_warning "\`-l' is ignored for archives/objects"
7685 if test lib != "$linkmode" && test prog != "$linkmode"; then
7686 func_warning "'-l' is ignored for archives/objects"
61817687 continue
61827688 fi
61837689 func_stripname '-l' '' "$deplib"
61847690 name=$func_stripname_result
6185 if test "$linkmode" = lib; then
7691 if test lib = "$linkmode"; then
61867692 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
61877693 else
61887694 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
61907696 for searchdir in $searchdirs; do
61917697 for search_ext in .la $std_shrext .so .a; do
61927698 # Search the libtool library
6193 lib="$searchdir/lib${name}${search_ext}"
7699 lib=$searchdir/lib$name$search_ext
61947700 if test -f "$lib"; then
6195 if test "$search_ext" = ".la"; then
6196 found=yes
7701 if test .la = "$search_ext"; then
7702 found=:
61977703 else
6198 found=no
7704 found=false
61997705 fi
62007706 break 2
62017707 fi
62027708 done
62037709 done
6204 if test "$found" != yes; then
6205 # deplib doesn't seem to be a libtool library
6206 if test "$linkmode,$pass" = "prog,link"; then
6207 compile_deplibs="$deplib $compile_deplibs"
6208 finalize_deplibs="$deplib $finalize_deplibs"
6209 else
6210 deplibs="$deplib $deplibs"
6211 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6212 fi
6213 continue
6214 else # deplib is a libtool library
7710 if $found; then
7711 # deplib is a libtool library
62157712 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
62167713 # We need to do some special things here, and not later.
6217 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7714 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
62187715 case " $predeps $postdeps " in
62197716 *" $deplib "*)
62207717 if func_lalib_p "$lib"; then
62227719 old_library=
62237720 func_source "$lib"
62247721 for l in $old_library $library_names; do
6225 ll="$l"
7722 ll=$l
62267723 done
6227 if test "X$ll" = "X$old_library" ; then # only static version available
6228 found=no
7724 if test "X$ll" = "X$old_library"; then # only static version available
7725 found=false
62297726 func_dirname "$lib" "" "."
6230 ladir="$func_dirname_result"
7727 ladir=$func_dirname_result
62317728 lib=$ladir/$old_library
6232 if test "$linkmode,$pass" = "prog,link"; then
7729 if test prog,link = "$linkmode,$pass"; then
62337730 compile_deplibs="$deplib $compile_deplibs"
62347731 finalize_deplibs="$deplib $finalize_deplibs"
62357732 else
62367733 deplibs="$deplib $deplibs"
6237 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
7734 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
62387735 fi
62397736 continue
62407737 fi
62437740 *) ;;
62447741 esac
62457742 fi
7743 else
7744 # deplib doesn't seem to be a libtool library
7745 if test prog,link = "$linkmode,$pass"; then
7746 compile_deplibs="$deplib $compile_deplibs"
7747 finalize_deplibs="$deplib $finalize_deplibs"
7748 else
7749 deplibs="$deplib $deplibs"
7750 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7751 fi
7752 continue
62467753 fi
62477754 ;; # -l
62487755 *.ltframework)
6249 if test "$linkmode,$pass" = "prog,link"; then
7756 if test prog,link = "$linkmode,$pass"; then
62507757 compile_deplibs="$deplib $compile_deplibs"
62517758 finalize_deplibs="$deplib $finalize_deplibs"
62527759 else
62537760 deplibs="$deplib $deplibs"
6254 if test "$linkmode" = lib ; then
7761 if test lib = "$linkmode"; then
62557762 case "$new_inherited_linker_flags " in
62567763 *" $deplib "*) ;;
62577764 * ) func_append new_inherited_linker_flags " $deplib" ;;
62647771 case $linkmode in
62657772 lib)
62667773 deplibs="$deplib $deplibs"
6267 test "$pass" = conv && continue
7774 test conv = "$pass" && continue
62687775 newdependency_libs="$deplib $newdependency_libs"
62697776 func_stripname '-L' '' "$deplib"
62707777 func_resolve_sysroot "$func_stripname_result"
62717778 func_append newlib_search_path " $func_resolve_sysroot_result"
62727779 ;;
62737780 prog)
6274 if test "$pass" = conv; then
7781 if test conv = "$pass"; then
62757782 deplibs="$deplib $deplibs"
62767783 continue
62777784 fi
6278 if test "$pass" = scan; then
7785 if test scan = "$pass"; then
62797786 deplibs="$deplib $deplibs"
62807787 else
62817788 compile_deplibs="$deplib $compile_deplibs"
62867793 func_append newlib_search_path " $func_resolve_sysroot_result"
62877794 ;;
62887795 *)
6289 func_warning "\`-L' is ignored for archives/objects"
7796 func_warning "'-L' is ignored for archives/objects"
62907797 ;;
62917798 esac # linkmode
62927799 continue
62937800 ;; # -L
62947801 -R*)
6295 if test "$pass" = link; then
7802 if test link = "$pass"; then
62967803 func_stripname '-R' '' "$deplib"
62977804 func_resolve_sysroot "$func_stripname_result"
62987805 dir=$func_resolve_sysroot_result
63107817 lib=$func_resolve_sysroot_result
63117818 ;;
63127819 *.$libext)
6313 if test "$pass" = conv; then
7820 if test conv = "$pass"; then
63147821 deplibs="$deplib $deplibs"
63157822 continue
63167823 fi
63217828 case " $dlpreconveniencelibs " in
63227829 *" $deplib "*) ;;
63237830 *)
6324 valid_a_lib=no
7831 valid_a_lib=false
63257832 case $deplibs_check_method in
63267833 match_pattern*)
63277834 set dummy $deplibs_check_method; shift
63287835 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
63297836 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
63307837 | $EGREP "$match_pattern_regex" > /dev/null; then
6331 valid_a_lib=yes
7838 valid_a_lib=:
63327839 fi
63337840 ;;
63347841 pass_all)
6335 valid_a_lib=yes
7842 valid_a_lib=:
63367843 ;;
63377844 esac
6338 if test "$valid_a_lib" != yes; then
7845 if $valid_a_lib; then
7846 echo
7847 $ECHO "*** Warning: Linking the shared library $output against the"
7848 $ECHO "*** static library $deplib is not portable!"
7849 deplibs="$deplib $deplibs"
7850 else
63397851 echo
63407852 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
63417853 echo "*** I have the capability to make that library automatically link in when"
63437855 echo "*** shared version of the library, which you do not appear to have"
63447856 echo "*** because the file extensions .$libext of this argument makes me believe"
63457857 echo "*** that it is just a static archive that I should not use here."
6346 else
6347 echo
6348 $ECHO "*** Warning: Linking the shared library $output against the"
6349 $ECHO "*** static library $deplib is not portable!"
6350 deplibs="$deplib $deplibs"
63517858 fi
63527859 ;;
63537860 esac
63547861 continue
63557862 ;;
63567863 prog)
6357 if test "$pass" != link; then
7864 if test link != "$pass"; then
63587865 deplibs="$deplib $deplibs"
63597866 else
63607867 compile_deplibs="$deplib $compile_deplibs"
63657872 esac # linkmode
63667873 ;; # *.$libext
63677874 *.lo | *.$objext)
6368 if test "$pass" = conv; then
7875 if test conv = "$pass"; then
63697876 deplibs="$deplib $deplibs"
6370 elif test "$linkmode" = prog; then
6371 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
7877 elif test prog = "$linkmode"; then
7878 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
63727879 # If there is no dlopen support or we're linking statically,
63737880 # we need to preload.
63747881 func_append newdlprefiles " $deplib"
63817888 continue
63827889 ;;
63837890 %DEPLIBS%)
6384 alldeplibs=yes
7891 alldeplibs=:
63857892 continue
63867893 ;;
63877894 esac # case $deplib
63887895
6389 if test "$found" = yes || test -f "$lib"; then :
6390 else
6391 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6392 fi
7896 $found || test -f "$lib" \
7897 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
63937898
63947899 # Check to see that this really is a libtool archive.
63957900 func_lalib_unsafe_p "$lib" \
6396 || func_fatal_error "\`$lib' is not a valid libtool archive"
7901 || func_fatal_error "'$lib' is not a valid libtool archive"
63977902
63987903 func_dirname "$lib" "" "."
6399 ladir="$func_dirname_result"
7904 ladir=$func_dirname_result
64007905
64017906 dlname=
64027907 dlopen=
64267931 done
64277932 fi
64287933 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6429 if test "$linkmode,$pass" = "lib,link" ||
6430 test "$linkmode,$pass" = "prog,scan" ||
6431 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
7934 if test lib,link = "$linkmode,$pass" ||
7935 test prog,scan = "$linkmode,$pass" ||
7936 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
64327937 test -n "$dlopen" && func_append dlfiles " $dlopen"
64337938 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
64347939 fi
64357940
6436 if test "$pass" = conv; then
7941 if test conv = "$pass"; then
64377942 # Only check for convenience libraries
64387943 deplibs="$lib $deplibs"
64397944 if test -z "$libdir"; then
64407945 if test -z "$old_library"; then
6441 func_fatal_error "cannot find name of link library for \`$lib'"
7946 func_fatal_error "cannot find name of link library for '$lib'"
64427947 fi
64437948 # It is a libtool convenience library, so add in its objects.
64447949 func_append convenience " $ladir/$objdir/$old_library"
64457950 func_append old_convenience " $ladir/$objdir/$old_library"
6446 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6447 func_fatal_error "\`$lib' is not a convenience library"
7951 elif test prog != "$linkmode" && test lib != "$linkmode"; then
7952 func_fatal_error "'$lib' is not a convenience library"
64487953 fi
64497954 tmp_libs=
64507955 for deplib in $dependency_libs; do
64517956 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
7957 if $opt_preserve_dup_deps; then
64537958 case "$tmp_libs " in
64547959 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
64557960 esac
64637968 # Get the name of the library we link against.
64647969 linklib=
64657970 if test -n "$old_library" &&
6466 { test "$prefer_static_libs" = yes ||
6467 test "$prefer_static_libs,$installed" = "built,no"; }; then
7971 { test yes = "$prefer_static_libs" ||
7972 test built,no = "$prefer_static_libs,$installed"; }; then
64687973 linklib=$old_library
64697974 else
64707975 for l in $old_library $library_names; do
6471 linklib="$l"
7976 linklib=$l
64727977 done
64737978 fi
64747979 if test -z "$linklib"; then
6475 func_fatal_error "cannot find name of link library for \`$lib'"
7980 func_fatal_error "cannot find name of link library for '$lib'"
64767981 fi
64777982
64787983 # This library was specified with -dlopen.
6479 if test "$pass" = dlopen; then
6480 if test -z "$libdir"; then
6481 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6482 fi
7984 if test dlopen = "$pass"; then
7985 test -z "$libdir" \
7986 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
64837987 if test -z "$dlname" ||
6484 test "$dlopen_support" != yes ||
6485 test "$build_libtool_libs" = no; then
7988 test yes != "$dlopen_support" ||
7989 test no = "$build_libtool_libs"
7990 then
64867991 # If there is no dlname, no dlopen support or we're linking
64877992 # statically, we need to preload. We also need to preload any
64887993 # dependent libraries so libltdl's deplib preloader doesn't
64968001
64978002 # We need an absolute path.
64988003 case $ladir in
6499 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
8004 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
65008005 *)
65018006 abs_ladir=`cd "$ladir" && pwd`
65028007 if test -z "$abs_ladir"; then
6503 func_warning "cannot determine absolute directory name of \`$ladir'"
8008 func_warning "cannot determine absolute directory name of '$ladir'"
65048009 func_warning "passing it literally to the linker, although it might fail"
6505 abs_ladir="$ladir"
8010 abs_ladir=$ladir
65068011 fi
65078012 ;;
65088013 esac
65098014 func_basename "$lib"
6510 laname="$func_basename_result"
8015 laname=$func_basename_result
65118016
65128017 # Find the relevant object directory and library name.
6513 if test "X$installed" = Xyes; then
8018 if test yes = "$installed"; then
65148019 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6515 func_warning "library \`$lib' was moved."
6516 dir="$ladir"
6517 absdir="$abs_ladir"
6518 libdir="$abs_ladir"
8020 func_warning "library '$lib' was moved."
8021 dir=$ladir
8022 absdir=$abs_ladir
8023 libdir=$abs_ladir
65198024 else
6520 dir="$lt_sysroot$libdir"
6521 absdir="$lt_sysroot$libdir"
8025 dir=$lt_sysroot$libdir
8026 absdir=$lt_sysroot$libdir
65228027 fi
6523 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
8028 test yes = "$hardcode_automatic" && avoidtemprpath=yes
65248029 else
65258030 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6526 dir="$ladir"
6527 absdir="$abs_ladir"
8031 dir=$ladir
8032 absdir=$abs_ladir
65288033 # Remove this search path later
65298034 func_append notinst_path " $abs_ladir"
65308035 else
6531 dir="$ladir/$objdir"
6532 absdir="$abs_ladir/$objdir"
8036 dir=$ladir/$objdir
8037 absdir=$abs_ladir/$objdir
65338038 # Remove this search path later
65348039 func_append notinst_path " $abs_ladir"
65358040 fi
65388043 name=$func_stripname_result
65398044
65408045 # This library was specified with -dlpreopen.
6541 if test "$pass" = dlpreopen; then
6542 if test -z "$libdir" && test "$linkmode" = prog; then
6543 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
8046 if test dlpreopen = "$pass"; then
8047 if test -z "$libdir" && test prog = "$linkmode"; then
8048 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
65448049 fi
6545 case "$host" in
8050 case $host in
65468051 # special handling for platforms with PE-DLLs.
65478052 *cygwin* | *mingw* | *cegcc* )
65488053 # Linker will automatically link against shared library if both
65868091
65878092 if test -z "$libdir"; then
65888093 # Link the convenience library
6589 if test "$linkmode" = lib; then
8094 if test lib = "$linkmode"; then
65908095 deplibs="$dir/$old_library $deplibs"
6591 elif test "$linkmode,$pass" = "prog,link"; then
8096 elif test prog,link = "$linkmode,$pass"; then
65928097 compile_deplibs="$dir/$old_library $compile_deplibs"
65938098 finalize_deplibs="$dir/$old_library $finalize_deplibs"
65948099 else
65988103 fi
65998104
66008105
6601 if test "$linkmode" = prog && test "$pass" != link; then
8106 if test prog = "$linkmode" && test link != "$pass"; then
66028107 func_append newlib_search_path " $ladir"
66038108 deplibs="$lib $deplibs"
66048109
6605 linkalldeplibs=no
6606 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6607 test "$build_libtool_libs" = no; then
6608 linkalldeplibs=yes
8110 linkalldeplibs=false
8111 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8112 test no = "$build_libtool_libs"; then
8113 linkalldeplibs=:
66098114 fi
66108115
66118116 tmp_libs=
66178122 ;;
66188123 esac
66198124 # Need to link against all dependency_libs?
6620 if test "$linkalldeplibs" = yes; then
8125 if $linkalldeplibs; then
66218126 deplibs="$deplib $deplibs"
66228127 else
66238128 # Need to hardcode shared library paths
66248129 # or/and link against static libraries
66258130 newdependency_libs="$deplib $newdependency_libs"
66268131 fi
6627 if $opt_preserve_dup_deps ; then
8132 if $opt_preserve_dup_deps; then
66288133 case "$tmp_libs " in
66298134 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
66308135 esac
66348139 continue
66358140 fi # $linkmode = prog...
66368141
6637 if test "$linkmode,$pass" = "prog,link"; then
8142 if test prog,link = "$linkmode,$pass"; then
66388143 if test -n "$library_names" &&
6639 { { test "$prefer_static_libs" = no ||
6640 test "$prefer_static_libs,$installed" = "built,yes"; } ||
8144 { { test no = "$prefer_static_libs" ||
8145 test built,yes = "$prefer_static_libs,$installed"; } ||
66418146 test -z "$old_library"; }; then
66428147 # We need to hardcode the library path
6643 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
8148 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
66448149 # Make sure the rpath contains only unique directories.
6645 case "$temp_rpath:" in
8150 case $temp_rpath: in
66468151 *"$absdir:"*) ;;
66478152 *) func_append temp_rpath "$absdir:" ;;
66488153 esac
66718176 esac
66728177 fi # $linkmode,$pass = prog,link...
66738178
6674 if test "$alldeplibs" = yes &&
6675 { test "$deplibs_check_method" = pass_all ||
6676 { test "$build_libtool_libs" = yes &&
8179 if $alldeplibs &&
8180 { test pass_all = "$deplibs_check_method" ||
8181 { test yes = "$build_libtool_libs" &&
66778182 test -n "$library_names"; }; }; then
66788183 # We only need to search for static libraries
66798184 continue
66828187
66838188 link_static=no # Whether the deplib will be linked statically
66848189 use_static_libs=$prefer_static_libs
6685 if test "$use_static_libs" = built && test "$installed" = yes; then
8190 if test built = "$use_static_libs" && test yes = "$installed"; then
66868191 use_static_libs=no
66878192 fi
66888193 if test -n "$library_names" &&
6689 { test "$use_static_libs" = no || test -z "$old_library"; }; then
8194 { test no = "$use_static_libs" || test -z "$old_library"; }; then
66908195 case $host in
6691 *cygwin* | *mingw* | *cegcc*)
8196 *cygwin* | *mingw* | *cegcc* | *os2*)
66928197 # No point in relinking DLLs because paths are not encoded
66938198 func_append notinst_deplibs " $lib"
66948199 need_relink=no
66958200 ;;
66968201 *)
6697 if test "$installed" = no; then
8202 if test no = "$installed"; then
66988203 func_append notinst_deplibs " $lib"
66998204 need_relink=yes
67008205 fi
67048209
67058210 # Warn about portability, can't link against -module's on some
67068211 # systems (darwin). Don't bleat about dlopened modules though!
6707 dlopenmodule=""
8212 dlopenmodule=
67088213 for dlpremoduletest in $dlprefiles; do
67098214 if test "X$dlpremoduletest" = "X$lib"; then
6710 dlopenmodule="$dlpremoduletest"
8215 dlopenmodule=$dlpremoduletest
67118216 break
67128217 fi
67138218 done
6714 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
8219 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
67158220 echo
6716 if test "$linkmode" = prog; then
8221 if test prog = "$linkmode"; then
67178222 $ECHO "*** Warning: Linking the executable $output against the loadable module"
67188223 else
67198224 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
67208225 fi
67218226 $ECHO "*** $linklib is not portable!"
67228227 fi
6723 if test "$linkmode" = lib &&
6724 test "$hardcode_into_libs" = yes; then
8228 if test lib = "$linkmode" &&
8229 test yes = "$hardcode_into_libs"; then
67258230 # Hardcode the library path.
67268231 # Skip directories that are in the system default run-time
67278232 # search path.
67498254 # figure out the soname
67508255 set dummy $library_names
67518256 shift
6752 realname="$1"
8257 realname=$1
67538258 shift
67548259 libname=`eval "\\$ECHO \"$libname_spec\""`
67558260 # use dlname if we got it. it's perfectly good, no?
67568261 if test -n "$dlname"; then
6757 soname="$dlname"
8262 soname=$dlname
67588263 elif test -n "$soname_spec"; then
67598264 # bleh windows
67608265 case $host in
6761 *cygwin* | mingw* | *cegcc*)
8266 *cygwin* | mingw* | *cegcc* | *os2*)
67628267 func_arith $current - $age
67638268 major=$func_arith_result
6764 versuffix="-$major"
8269 versuffix=-$major
67658270 ;;
67668271 esac
67678272 eval soname=\"$soname_spec\"
67688273 else
6769 soname="$realname"
8274 soname=$realname
67708275 fi
67718276
67728277 # Make a new name for the extract_expsyms_cmds to use
6773 soroot="$soname"
8278 soroot=$soname
67748279 func_basename "$soroot"
6775 soname="$func_basename_result"
8280 soname=$func_basename_result
67768281 func_stripname 'lib' '.dll' "$soname"
67778282 newlib=libimp-$func_stripname_result.a
67788283
67798284 # If the library has no export list, then create one now
67808285 if test -f "$output_objdir/$soname-def"; then :
67818286 else
6782 func_verbose "extracting exported symbol list from \`$soname'"
8287 func_verbose "extracting exported symbol list from '$soname'"
67838288 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
67848289 fi
67858290
67868291 # Create $newlib
67878292 if test -f "$output_objdir/$newlib"; then :; else
6788 func_verbose "generating import library for \`$soname'"
8293 func_verbose "generating import library for '$soname'"
67898294 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
67908295 fi
67918296 # make sure the library variables are pointing to the new library
67938298 linklib=$newlib
67948299 fi # test -n "$old_archive_from_expsyms_cmds"
67958300
6796 if test "$linkmode" = prog || test "$opt_mode" != relink; then
8301 if test prog = "$linkmode" || test relink != "$opt_mode"; then
67978302 add_shlibpath=
67988303 add_dir=
67998304 add=
68008305 lib_linked=yes
68018306 case $hardcode_action in
68028307 immediate | unsupported)
6803 if test "$hardcode_direct" = no; then
6804 add="$dir/$linklib"
8308 if test no = "$hardcode_direct"; then
8309 add=$dir/$linklib
68058310 case $host in
6806 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6807 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
8311 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8312 *-*-sysv4*uw2*) add_dir=-L$dir ;;
68088313 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6809 *-*-unixware7*) add_dir="-L$dir" ;;
8314 *-*-unixware7*) add_dir=-L$dir ;;
68108315 *-*-darwin* )
6811 # if the lib is a (non-dlopened) module then we can not
8316 # if the lib is a (non-dlopened) module then we cannot
68128317 # link against it, someone is ignoring the earlier warnings
68138318 if /usr/bin/file -L $add 2> /dev/null |
6814 $GREP ": [^:]* bundle" >/dev/null ; then
8319 $GREP ": [^:]* bundle" >/dev/null; then
68158320 if test "X$dlopenmodule" != "X$lib"; then
68168321 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6817 if test -z "$old_library" ; then
8322 if test -z "$old_library"; then
68188323 echo
68198324 echo "*** And there doesn't seem to be a static archive available"
68208325 echo "*** The link will probably fail, sorry"
68218326 else
6822 add="$dir/$old_library"
8327 add=$dir/$old_library
68238328 fi
68248329 elif test -n "$old_library"; then
6825 add="$dir/$old_library"
8330 add=$dir/$old_library
68268331 fi
68278332 fi
68288333 esac
6829 elif test "$hardcode_minus_L" = no; then
8334 elif test no = "$hardcode_minus_L"; then
68308335 case $host in
6831 *-*-sunos*) add_shlibpath="$dir" ;;
8336 *-*-sunos*) add_shlibpath=$dir ;;
68328337 esac
6833 add_dir="-L$dir"
6834 add="-l$name"
6835 elif test "$hardcode_shlibpath_var" = no; then
6836 add_shlibpath="$dir"
6837 add="-l$name"
8338 add_dir=-L$dir
8339 add=-l$name
8340 elif test no = "$hardcode_shlibpath_var"; then
8341 add_shlibpath=$dir
8342 add=-l$name
68388343 else
68398344 lib_linked=no
68408345 fi
68418346 ;;
68428347 relink)
6843 if test "$hardcode_direct" = yes &&
6844 test "$hardcode_direct_absolute" = no; then
6845 add="$dir/$linklib"
6846 elif test "$hardcode_minus_L" = yes; then
6847 add_dir="-L$absdir"
8348 if test yes = "$hardcode_direct" &&
8349 test no = "$hardcode_direct_absolute"; then
8350 add=$dir/$linklib
8351 elif test yes = "$hardcode_minus_L"; then
8352 add_dir=-L$absdir
68488353 # Try looking first in the location we're being installed to.
68498354 if test -n "$inst_prefix_dir"; then
68508355 case $libdir in
68538358 ;;
68548359 esac
68558360 fi
6856 add="-l$name"
6857 elif test "$hardcode_shlibpath_var" = yes; then
6858 add_shlibpath="$dir"
6859 add="-l$name"
8361 add=-l$name
8362 elif test yes = "$hardcode_shlibpath_var"; then
8363 add_shlibpath=$dir
8364 add=-l$name
68608365 else
68618366 lib_linked=no
68628367 fi
68648369 *) lib_linked=no ;;
68658370 esac
68668371
6867 if test "$lib_linked" != yes; then
8372 if test yes != "$lib_linked"; then
68688373 func_fatal_configuration "unsupported hardcode properties"
68698374 fi
68708375
68748379 *) func_append compile_shlibpath "$add_shlibpath:" ;;
68758380 esac
68768381 fi
6877 if test "$linkmode" = prog; then
8382 if test prog = "$linkmode"; then
68788383 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
68798384 test -n "$add" && compile_deplibs="$add $compile_deplibs"
68808385 else
68818386 test -n "$add_dir" && deplibs="$add_dir $deplibs"
68828387 test -n "$add" && deplibs="$add $deplibs"
6883 if test "$hardcode_direct" != yes &&
6884 test "$hardcode_minus_L" != yes &&
6885 test "$hardcode_shlibpath_var" = yes; then
8388 if test yes != "$hardcode_direct" &&
8389 test yes != "$hardcode_minus_L" &&
8390 test yes = "$hardcode_shlibpath_var"; then
68868391 case :$finalize_shlibpath: in
68878392 *":$libdir:"*) ;;
68888393 *) func_append finalize_shlibpath "$libdir:" ;;
68918396 fi
68928397 fi
68938398
6894 if test "$linkmode" = prog || test "$opt_mode" = relink; then
8399 if test prog = "$linkmode" || test relink = "$opt_mode"; then
68958400 add_shlibpath=
68968401 add_dir=
68978402 add=
68988403 # Finalize command for both is simple: just hardcode it.
6899 if test "$hardcode_direct" = yes &&
6900 test "$hardcode_direct_absolute" = no; then
6901 add="$libdir/$linklib"
6902 elif test "$hardcode_minus_L" = yes; then
6903 add_dir="-L$libdir"
6904 add="-l$name"
6905 elif test "$hardcode_shlibpath_var" = yes; then
8404 if test yes = "$hardcode_direct" &&
8405 test no = "$hardcode_direct_absolute"; then
8406 add=$libdir/$linklib
8407 elif test yes = "$hardcode_minus_L"; then
8408 add_dir=-L$libdir
8409 add=-l$name
8410 elif test yes = "$hardcode_shlibpath_var"; then
69068411 case :$finalize_shlibpath: in
69078412 *":$libdir:"*) ;;
69088413 *) func_append finalize_shlibpath "$libdir:" ;;
69098414 esac
6910 add="-l$name"
6911 elif test "$hardcode_automatic" = yes; then
8415 add=-l$name
8416 elif test yes = "$hardcode_automatic"; then
69128417 if test -n "$inst_prefix_dir" &&
6913 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6914 add="$inst_prefix_dir$libdir/$linklib"
8418 test -f "$inst_prefix_dir$libdir/$linklib"; then
8419 add=$inst_prefix_dir$libdir/$linklib
69158420 else
6916 add="$libdir/$linklib"
8421 add=$libdir/$linklib
69178422 fi
69188423 else
69198424 # We cannot seem to hardcode it, guess we'll fake it.
6920 add_dir="-L$libdir"
8425 add_dir=-L$libdir
69218426 # Try looking first in the location we're being installed to.
69228427 if test -n "$inst_prefix_dir"; then
69238428 case $libdir in
69268431 ;;
69278432 esac
69288433 fi
6929 add="-l$name"
8434 add=-l$name
69308435 fi
69318436
6932 if test "$linkmode" = prog; then
8437 if test prog = "$linkmode"; then
69338438 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
69348439 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
69358440 else
69378442 test -n "$add" && deplibs="$add $deplibs"
69388443 fi
69398444 fi
6940 elif test "$linkmode" = prog; then
8445 elif test prog = "$linkmode"; then
69418446 # Here we assume that one of hardcode_direct or hardcode_minus_L
69428447 # is not unsupported. This is valid on all known static and
69438448 # shared platforms.
6944 if test "$hardcode_direct" != unsupported; then
6945 test -n "$old_library" && linklib="$old_library"
8449 if test unsupported != "$hardcode_direct"; then
8450 test -n "$old_library" && linklib=$old_library
69468451 compile_deplibs="$dir/$linklib $compile_deplibs"
69478452 finalize_deplibs="$dir/$linklib $finalize_deplibs"
69488453 else
69498454 compile_deplibs="-l$name -L$dir $compile_deplibs"
69508455 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
69518456 fi
6952 elif test "$build_libtool_libs" = yes; then
8457 elif test yes = "$build_libtool_libs"; then
69538458 # Not a shared library
6954 if test "$deplibs_check_method" != pass_all; then
8459 if test pass_all != "$deplibs_check_method"; then
69558460 # We're trying link a shared library against a static one
69568461 # but the system doesn't support it.
69578462
69588463 # Just print a warning and add the library to dependency_libs so
69598464 # that the program can be linked against the static library.
69608465 echo
6961 $ECHO "*** Warning: This system can not link to static lib archive $lib."
8466 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
69628467 echo "*** I have the capability to make that library automatically link in when"
69638468 echo "*** you link to this library. But I can only do this if you have a"
69648469 echo "*** shared version of the library, which you do not appear to have."
6965 if test "$module" = yes; then
8470 if test yes = "$module"; then
69668471 echo "*** But as you try to build a module library, libtool will still create "
69678472 echo "*** a static module, that should work as long as the dlopening application"
69688473 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
69698474 if test -z "$global_symbol_pipe"; then
69708475 echo
69718476 echo "*** However, this would only work if libtool was able to extract symbol"
6972 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8477 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
69738478 echo "*** not find such a program. So, this module is probably useless."
6974 echo "*** \`nm' from GNU binutils and a full rebuild may help."
8479 echo "*** 'nm' from GNU binutils and a full rebuild may help."
69758480 fi
6976 if test "$build_old_libs" = no; then
8481 if test no = "$build_old_libs"; then
69778482 build_libtool_libs=module
69788483 build_old_libs=yes
69798484 else
69868491 fi
69878492 fi # link shared/static library?
69888493
6989 if test "$linkmode" = lib; then
8494 if test lib = "$linkmode"; then
69908495 if test -n "$dependency_libs" &&
6991 { test "$hardcode_into_libs" != yes ||
6992 test "$build_old_libs" = yes ||
6993 test "$link_static" = yes; }; then
8496 { test yes != "$hardcode_into_libs" ||
8497 test yes = "$build_old_libs" ||
8498 test yes = "$link_static"; }; then
69948499 # Extract -R from dependency_libs
69958500 temp_deplibs=
69968501 for libdir in $dependency_libs; do
70048509 *) func_append temp_deplibs " $libdir";;
70058510 esac
70068511 done
7007 dependency_libs="$temp_deplibs"
8512 dependency_libs=$temp_deplibs
70088513 fi
70098514
70108515 func_append newlib_search_path " $absdir"
70118516 # Link against this library
7012 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8517 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
70138518 # ... and its dependency_libs
70148519 tmp_libs=
70158520 for deplib in $dependency_libs; do
70198524 func_resolve_sysroot "$func_stripname_result";;
70208525 *) func_resolve_sysroot "$deplib" ;;
70218526 esac
7022 if $opt_preserve_dup_deps ; then
8527 if $opt_preserve_dup_deps; then
70238528 case "$tmp_libs " in
70248529 *" $func_resolve_sysroot_result "*)
70258530 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
70288533 func_append tmp_libs " $func_resolve_sysroot_result"
70298534 done
70308535
7031 if test "$link_all_deplibs" != no; then
8536 if test no != "$link_all_deplibs"; then
70328537 # Add the search paths of all dependency libraries
70338538 for deplib in $dependency_libs; do
70348539 path=
70358540 case $deplib in
7036 -L*) path="$deplib" ;;
8541 -L*) path=$deplib ;;
70378542 *.la)
70388543 func_resolve_sysroot "$deplib"
70398544 deplib=$func_resolve_sysroot_result
70418546 dir=$func_dirname_result
70428547 # We need an absolute path.
70438548 case $dir in
7044 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
8549 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
70458550 *)
70468551 absdir=`cd "$dir" && pwd`
70478552 if test -z "$absdir"; then
7048 func_warning "cannot determine absolute directory name of \`$dir'"
7049 absdir="$dir"
8553 func_warning "cannot determine absolute directory name of '$dir'"
8554 absdir=$dir
70508555 fi
70518556 ;;
70528557 esac
70548559 case $host in
70558560 *-*-darwin*)
70568561 depdepl=
7057 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7058 if test -n "$deplibrary_names" ; then
7059 for tmp in $deplibrary_names ; do
8562 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8563 if test -n "$deplibrary_names"; then
8564 for tmp in $deplibrary_names; do
70608565 depdepl=$tmp
70618566 done
7062 if test -f "$absdir/$objdir/$depdepl" ; then
7063 depdepl="$absdir/$objdir/$depdepl"
7064 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8567 if test -f "$absdir/$objdir/$depdepl"; then
8568 depdepl=$absdir/$objdir/$depdepl
8569 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70658570 if test -z "$darwin_install_name"; then
7066 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8571 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70678572 fi
7068 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7069 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
8573 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8574 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
70708575 path=
70718576 fi
70728577 fi
70738578 ;;
70748579 *)
7075 path="-L$absdir/$objdir"
8580 path=-L$absdir/$objdir
70768581 ;;
70778582 esac
70788583 else
7079 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8584 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
70808585 test -z "$libdir" && \
7081 func_fatal_error "\`$deplib' is not a valid libtool archive"
8586 func_fatal_error "'$deplib' is not a valid libtool archive"
70828587 test "$absdir" != "$libdir" && \
7083 func_warning "\`$deplib' seems to be moved"
7084
7085 path="-L$absdir"
8588 func_warning "'$deplib' seems to be moved"
8589
8590 path=-L$absdir
70868591 fi
70878592 ;;
70888593 esac
70948599 fi # link_all_deplibs != no
70958600 fi # linkmode = lib
70968601 done # for deplib in $libs
7097 if test "$pass" = link; then
7098 if test "$linkmode" = "prog"; then
8602 if test link = "$pass"; then
8603 if test prog = "$linkmode"; then
70998604 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
71008605 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
71018606 else
71028607 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
71038608 fi
71048609 fi
7105 dependency_libs="$newdependency_libs"
7106 if test "$pass" = dlpreopen; then
8610 dependency_libs=$newdependency_libs
8611 if test dlpreopen = "$pass"; then
71078612 # Link the dlpreopened libraries before other libraries
71088613 for deplib in $save_deplibs; do
71098614 deplibs="$deplib $deplibs"
71108615 done
71118616 fi
7112 if test "$pass" != dlopen; then
7113 if test "$pass" != conv; then
8617 if test dlopen != "$pass"; then
8618 test conv = "$pass" || {
71148619 # Make sure lib_search_path contains only unique directories.
71158620 lib_search_path=
71168621 for dir in $newlib_search_path; do
71208625 esac
71218626 done
71228627 newlib_search_path=
7123 fi
7124
7125 if test "$linkmode,$pass" != "prog,link"; then
7126 vars="deplibs"
8628 }
8629
8630 if test prog,link = "$linkmode,$pass"; then
8631 vars="compile_deplibs finalize_deplibs"
71278632 else
7128 vars="compile_deplibs finalize_deplibs"
8633 vars=deplibs
71298634 fi
71308635 for var in $vars dependency_libs; do
71318636 # Add libraries to $var in reverse order
71838688 eval $var=\"$tmp_libs\"
71848689 done # for var
71858690 fi
8691
8692 # Add Sun CC postdeps if required:
8693 test CXX = "$tagname" && {
8694 case $host_os in
8695 linux*)
8696 case `$CC -V 2>&1 | sed 5q` in
8697 *Sun\ C*) # Sun C++ 5.9
8698 func_suncc_cstd_abi
8699
8700 if test no != "$suncc_use_cstd_abi"; then
8701 func_append postdeps ' -library=Cstd -library=Crun'
8702 fi
8703 ;;
8704 esac
8705 ;;
8706
8707 solaris*)
8708 func_cc_basename "$CC"
8709 case $func_cc_basename_result in
8710 CC* | sunCC*)
8711 func_suncc_cstd_abi
8712
8713 if test no != "$suncc_use_cstd_abi"; then
8714 func_append postdeps ' -library=Cstd -library=Crun'
8715 fi
8716 ;;
8717 esac
8718 ;;
8719 esac
8720 }
8721
71868722 # Last step: remove runtime libs from dependency_libs
71878723 # (they stay in deplibs)
71888724 tmp_libs=
7189 for i in $dependency_libs ; do
8725 for i in $dependency_libs; do
71908726 case " $predeps $postdeps $compiler_lib_search_path " in
71918727 *" $i "*)
7192 i=""
8728 i=
71938729 ;;
71948730 esac
7195 if test -n "$i" ; then
8731 if test -n "$i"; then
71968732 func_append tmp_libs " $i"
71978733 fi
71988734 done
71998735 dependency_libs=$tmp_libs
72008736 done # for pass
7201 if test "$linkmode" = prog; then
7202 dlfiles="$newdlfiles"
8737 if test prog = "$linkmode"; then
8738 dlfiles=$newdlfiles
72038739 fi
7204 if test "$linkmode" = prog || test "$linkmode" = lib; then
7205 dlprefiles="$newdlprefiles"
8740 if test prog = "$linkmode" || test lib = "$linkmode"; then
8741 dlprefiles=$newdlprefiles
72068742 fi
72078743
72088744 case $linkmode in
72098745 oldlib)
7210 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7211 func_warning "\`-dlopen' is ignored for archives"
8746 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8747 func_warning "'-dlopen' is ignored for archives"
72128748 fi
72138749
72148750 case " $deplibs" in
72158751 *\ -l* | *\ -L*)
7216 func_warning "\`-l' and \`-L' are ignored for archives" ;;
8752 func_warning "'-l' and '-L' are ignored for archives" ;;
72178753 esac
72188754
72198755 test -n "$rpath" && \
7220 func_warning "\`-rpath' is ignored for archives"
8756 func_warning "'-rpath' is ignored for archives"
72218757
72228758 test -n "$xrpath" && \
7223 func_warning "\`-R' is ignored for archives"
8759 func_warning "'-R' is ignored for archives"
72248760
72258761 test -n "$vinfo" && \
7226 func_warning "\`-version-info/-version-number' is ignored for archives"
8762 func_warning "'-version-info/-version-number' is ignored for archives"
72278763
72288764 test -n "$release" && \
7229 func_warning "\`-release' is ignored for archives"
8765 func_warning "'-release' is ignored for archives"
72308766
72318767 test -n "$export_symbols$export_symbols_regex" && \
7232 func_warning "\`-export-symbols' is ignored for archives"
8768 func_warning "'-export-symbols' is ignored for archives"
72338769
72348770 # Now set the variables for building old libraries.
72358771 build_libtool_libs=no
7236 oldlibs="$output"
8772 oldlibs=$output
72378773 func_append objs "$old_deplibs"
72388774 ;;
72398775
72408776 lib)
7241 # Make sure we only generate libraries of the form `libNAME.la'.
8777 # Make sure we only generate libraries of the form 'libNAME.la'.
72428778 case $outputname in
72438779 lib*)
72448780 func_stripname 'lib' '.la' "$outputname"
72478783 eval libname=\"$libname_spec\"
72488784 ;;
72498785 *)
7250 test "$module" = no && \
7251 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7252
7253 if test "$need_lib_prefix" != no; then
8786 test no = "$module" \
8787 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8788
8789 if test no != "$need_lib_prefix"; then
72548790 # Add the "lib" prefix for modules if required
72558791 func_stripname '' '.la' "$outputname"
72568792 name=$func_stripname_result
72648800 esac
72658801
72668802 if test -n "$objs"; then
7267 if test "$deplibs_check_method" != pass_all; then
7268 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
8803 if test pass_all != "$deplibs_check_method"; then
8804 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
72698805 else
72708806 echo
72718807 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
72748810 fi
72758811 fi
72768812
7277 test "$dlself" != no && \
7278 func_warning "\`-dlopen self' is ignored for libtool libraries"
8813 test no = "$dlself" \
8814 || func_warning "'-dlopen self' is ignored for libtool libraries"
72798815
72808816 set dummy $rpath
72818817 shift
7282 test "$#" -gt 1 && \
7283 func_warning "ignoring multiple \`-rpath's for a libtool library"
7284
7285 install_libdir="$1"
8818 test 1 -lt "$#" \
8819 && func_warning "ignoring multiple '-rpath's for a libtool library"
8820
8821 install_libdir=$1
72868822
72878823 oldlibs=
72888824 if test -z "$rpath"; then
7289 if test "$build_libtool_libs" = yes; then
8825 if test yes = "$build_libtool_libs"; then
72908826 # Building a libtool convenience library.
7291 # Some compilers have problems with a `.al' extension so
8827 # Some compilers have problems with a '.al' extension so
72928828 # convenience libraries should have the same extension an
72938829 # archive normally would.
72948830 oldlibs="$output_objdir/$libname.$libext $oldlibs"
72978833 fi
72988834
72998835 test -n "$vinfo" && \
7300 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
8836 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
73018837
73028838 test -n "$release" && \
7303 func_warning "\`-release' is ignored for convenience libraries"
8839 func_warning "'-release' is ignored for convenience libraries"
73048840 else
73058841
73068842 # Parse the version information argument.
7307 save_ifs="$IFS"; IFS=':'
8843 save_ifs=$IFS; IFS=:
73088844 set dummy $vinfo 0 0 0
73098845 shift
7310 IFS="$save_ifs"
8846 IFS=$save_ifs
73118847
73128848 test -n "$7" && \
7313 func_fatal_help "too many parameters to \`-version-info'"
8849 func_fatal_help "too many parameters to '-version-info'"
73148850
73158851 # convert absolute version numbers to libtool ages
73168852 # this retains compatibility with .la files and attempts
73188854
73198855 case $vinfo_number in
73208856 yes)
7321 number_major="$1"
7322 number_minor="$2"
7323 number_revision="$3"
8857 number_major=$1
8858 number_minor=$2
8859 number_revision=$3
73248860 #
73258861 # There are really only two kinds -- those that
73268862 # use the current revision as the major version
73278863 # and those that subtract age and use age as
73288864 # a minor version. But, then there is irix
7329 # which has an extra 1 added just for fun
8865 # that has an extra 1 added just for fun
73308866 #
73318867 case $version_type in
73328868 # correct linux to gnu/linux during the next big refactor
7333 darwin|linux|osf|windows|none)
8869 darwin|freebsd-elf|linux|osf|windows|none)
73348870 func_arith $number_major + $number_minor
73358871 current=$func_arith_result
7336 age="$number_minor"
7337 revision="$number_revision"
8872 age=$number_minor
8873 revision=$number_revision
73388874 ;;
7339 freebsd-aout|freebsd-elf|qnx|sunos)
7340 current="$number_major"
7341 revision="$number_minor"
7342 age="0"
8875 freebsd-aout|qnx|sunos)
8876 current=$number_major
8877 revision=$number_minor
8878 age=0
73438879 ;;
73448880 irix|nonstopux)
73458881 func_arith $number_major + $number_minor
73468882 current=$func_arith_result
7347 age="$number_minor"
7348 revision="$number_minor"
8883 age=$number_minor
8884 revision=$number_minor
73498885 lt_irix_increment=no
73508886 ;;
73518887 esac
73528888 ;;
73538889 no)
7354 current="$1"
7355 revision="$2"
7356 age="$3"
8890 current=$1
8891 revision=$2
8892 age=$3
73578893 ;;
73588894 esac
73598895
73618897 case $current in
73628898 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]) ;;
73638899 *)
7364 func_error "CURRENT \`$current' must be a nonnegative integer"
7365 func_fatal_error "\`$vinfo' is not valid version information"
8900 func_error "CURRENT '$current' must be a nonnegative integer"
8901 func_fatal_error "'$vinfo' is not valid version information"
73668902 ;;
73678903 esac
73688904
73698905 case $revision in
73708906 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]) ;;
73718907 *)
7372 func_error "REVISION \`$revision' must be a nonnegative integer"
7373 func_fatal_error "\`$vinfo' is not valid version information"
8908 func_error "REVISION '$revision' must be a nonnegative integer"
8909 func_fatal_error "'$vinfo' is not valid version information"
73748910 ;;
73758911 esac
73768912
73778913 case $age in
73788914 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]) ;;
73798915 *)
7380 func_error "AGE \`$age' must be a nonnegative integer"
7381 func_fatal_error "\`$vinfo' is not valid version information"
8916 func_error "AGE '$age' must be a nonnegative integer"
8917 func_fatal_error "'$vinfo' is not valid version information"
73828918 ;;
73838919 esac
73848920
73858921 if test "$age" -gt "$current"; then
7386 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7387 func_fatal_error "\`$vinfo' is not valid version information"
8922 func_error "AGE '$age' is greater than the current interface number '$current'"
8923 func_fatal_error "'$vinfo' is not valid version information"
73888924 fi
73898925
73908926 # Calculate the version variables.
73998935 # verstring for coding it into the library header
74008936 func_arith $current - $age
74018937 major=.$func_arith_result
7402 versuffix="$major.$age.$revision"
8938 versuffix=$major.$age.$revision
74038939 # Darwin ld doesn't like 0 for these options...
74048940 func_arith $current + 1
74058941 minor_current=$func_arith_result
7406 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
8942 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
74078943 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8944 # On Darwin other compilers
8945 case $CC in
8946 nagfor*)
8947 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8948 ;;
8949 *)
8950 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8951 ;;
8952 esac
74088953 ;;
74098954
74108955 freebsd-aout)
7411 major=".$current"
7412 versuffix=".$current.$revision";
8956 major=.$current
8957 versuffix=.$current.$revision
74138958 ;;
74148959
74158960 freebsd-elf)
7416 major=".$current"
7417 versuffix=".$current"
8961 func_arith $current - $age
8962 major=.$func_arith_result
8963 versuffix=$major.$age.$revision
74188964 ;;
74198965
74208966 irix | nonstopux)
7421 if test "X$lt_irix_increment" = "Xno"; then
8967 if test no = "$lt_irix_increment"; then
74228968 func_arith $current - $age
74238969 else
74248970 func_arith $current - $age + 1
74298975 nonstopux) verstring_prefix=nonstopux ;;
74308976 *) verstring_prefix=sgi ;;
74318977 esac
7432 verstring="$verstring_prefix$major.$revision"
8978 verstring=$verstring_prefix$major.$revision
74338979
74348980 # Add in all the interfaces that we are compatible with.
74358981 loop=$revision
7436 while test "$loop" -ne 0; do
8982 while test 0 -ne "$loop"; do
74378983 func_arith $revision - $loop
74388984 iface=$func_arith_result
74398985 func_arith $loop - 1
74408986 loop=$func_arith_result
7441 verstring="$verstring_prefix$major.$iface:$verstring"
8987 verstring=$verstring_prefix$major.$iface:$verstring
74428988 done
74438989
7444 # Before this point, $major must not contain `.'.
8990 # Before this point, $major must not contain '.'.
74458991 major=.$major
7446 versuffix="$major.$revision"
8992 versuffix=$major.$revision
74478993 ;;
74488994
74498995 linux) # correct to gnu/linux during the next big refactor
74508996 func_arith $current - $age
74518997 major=.$func_arith_result
7452 versuffix="$major.$age.$revision"
8998 versuffix=$major.$age.$revision
74538999 ;;
74549000
74559001 osf)
74569002 func_arith $current - $age
74579003 major=.$func_arith_result
7458 versuffix=".$current.$age.$revision"
7459 verstring="$current.$age.$revision"
9004 versuffix=.$current.$age.$revision
9005 verstring=$current.$age.$revision
74609006
74619007 # Add in all the interfaces that we are compatible with.
74629008 loop=$age
7463 while test "$loop" -ne 0; do
9009 while test 0 -ne "$loop"; do
74649010 func_arith $current - $loop
74659011 iface=$func_arith_result
74669012 func_arith $loop - 1
74679013 loop=$func_arith_result
7468 verstring="$verstring:${iface}.0"
9014 verstring=$verstring:$iface.0
74699015 done
74709016
74719017 # Make executables depend on our current version.
7472 func_append verstring ":${current}.0"
9018 func_append verstring ":$current.0"
74739019 ;;
74749020
74759021 qnx)
7476 major=".$current"
7477 versuffix=".$current"
9022 major=.$current
9023 versuffix=.$current
74789024 ;;
74799025
9026 sco)
9027 major=.$current
9028 versuffix=.$current
9029 ;;
9030
74809031 sunos)
7481 major=".$current"
7482 versuffix=".$current.$revision"
9032 major=.$current
9033 versuffix=.$current.$revision
74839034 ;;
74849035
74859036 windows)
74869037 # Use '-' rather than '.', since we only want one
7487 # extension on DOS 8.3 filesystems.
9038 # extension on DOS 8.3 file systems.
74889039 func_arith $current - $age
74899040 major=$func_arith_result
7490 versuffix="-$major"
9041 versuffix=-$major
74919042 ;;
74929043
74939044 *)
7494 func_fatal_configuration "unknown library version type \`$version_type'"
9045 func_fatal_configuration "unknown library version type '$version_type'"
74959046 ;;
74969047 esac
74979048
75059056 verstring=
75069057 ;;
75079058 *)
7508 verstring="0.0"
9059 verstring=0.0
75099060 ;;
75109061 esac
7511 if test "$need_version" = no; then
9062 if test no = "$need_version"; then
75129063 versuffix=
75139064 else
7514 versuffix=".0.0"
9065 versuffix=.0.0
75159066 fi
75169067 fi
75179068
75189069 # Remove version info from name if versioning should be avoided
7519 if test "$avoid_version" = yes && test "$need_version" = no; then
9070 if test yes,no = "$avoid_version,$need_version"; then
75209071 major=
75219072 versuffix=
7522 verstring=""
9073 verstring=
75239074 fi
75249075
75259076 # Check to see if the archive will have undefined symbols.
7526 if test "$allow_undefined" = yes; then
7527 if test "$allow_undefined_flag" = unsupported; then
7528 func_warning "undefined symbols not allowed in $host shared libraries"
7529 build_libtool_libs=no
7530 build_old_libs=yes
9077 if test yes = "$allow_undefined"; then
9078 if test unsupported = "$allow_undefined_flag"; then
9079 if test yes = "$build_old_libs"; then
9080 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9081 build_libtool_libs=no
9082 else
9083 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9084 fi
75319085 fi
75329086 else
75339087 # Don't allow undefined symbols.
7534 allow_undefined_flag="$no_undefined_flag"
9088 allow_undefined_flag=$no_undefined_flag
75359089 fi
75369090
75379091 fi
75389092
7539 func_generate_dlsyms "$libname" "$libname" "yes"
9093 func_generate_dlsyms "$libname" "$libname" :
75409094 func_append libobjs " $symfileobj"
7541 test "X$libobjs" = "X " && libobjs=
7542
7543 if test "$opt_mode" != relink; then
9095 test " " = "$libobjs" && libobjs=
9096
9097 if test relink != "$opt_mode"; then
75449098 # Remove our outputs, but don't remove object files since they
75459099 # may have been created when compiling PIC objects.
75469100 removelist=
75499103 case $p in
75509104 *.$objext | *.gcno)
75519105 ;;
7552 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7553 if test "X$precious_files_regex" != "X"; then
9106 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9107 if test -n "$precious_files_regex"; then
75549108 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
75559109 then
75569110 continue
75669120 fi
75679121
75689122 # Now set the variables for building old libraries.
7569 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
9123 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
75709124 func_append oldlibs " $output_objdir/$libname.$libext"
75719125
75729126 # Transform .lo files to .o files.
7573 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
9127 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
75749128 fi
75759129
75769130 # Eliminate all temporary directories.
75919145 *) func_append finalize_rpath " $libdir" ;;
75929146 esac
75939147 done
7594 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
9148 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
75959149 dependency_libs="$temp_xrpath $dependency_libs"
75969150 fi
75979151 fi
75989152
75999153 # Make sure dlfiles contains only unique files that won't be dlpreopened
7600 old_dlfiles="$dlfiles"
9154 old_dlfiles=$dlfiles
76019155 dlfiles=
76029156 for lib in $old_dlfiles; do
76039157 case " $dlprefiles $dlfiles " in
76079161 done
76089162
76099163 # Make sure dlprefiles contains only unique files
7610 old_dlprefiles="$dlprefiles"
9164 old_dlprefiles=$dlprefiles
76119165 dlprefiles=
76129166 for lib in $old_dlprefiles; do
76139167 case "$dlprefiles " in
76169170 esac
76179171 done
76189172
7619 if test "$build_libtool_libs" = yes; then
9173 if test yes = "$build_libtool_libs"; then
76209174 if test -n "$rpath"; then
76219175 case $host in
76229176 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
76409194 ;;
76419195 *)
76429196 # Add libc to deplibs on all other systems if necessary.
7643 if test "$build_libtool_need_lc" = "yes"; then
9197 if test yes = "$build_libtool_need_lc"; then
76449198 func_append deplibs " -lc"
76459199 fi
76469200 ;;
76569210 # I'm not sure if I'm treating the release correctly. I think
76579211 # release should show up in the -l (ie -lgmp5) so we don't want to
76589212 # add it in twice. Is that correct?
7659 release=""
7660 versuffix=""
7661 major=""
9213 release=
9214 versuffix=
9215 major=
76629216 newdeplibs=
76639217 droppeddeps=no
76649218 case $deplibs_check_method in
76879241 -l*)
76889242 func_stripname -l '' "$i"
76899243 name=$func_stripname_result
7690 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9244 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
76919245 case " $predeps $postdeps " in
76929246 *" $i "*)
76939247 func_append newdeplibs " $i"
7694 i=""
9248 i=
76959249 ;;
76969250 esac
76979251 fi
7698 if test -n "$i" ; then
9252 if test -n "$i"; then
76999253 libname=`eval "\\$ECHO \"$libname_spec\""`
77009254 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77019255 set dummy $deplib_matches; shift
77029256 deplib_match=$1
7703 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9257 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77049258 func_append newdeplibs " $i"
77059259 else
77069260 droppeddeps=yes
77309284 $opt_dry_run || $RM conftest
77319285 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
77329286 ldd_output=`ldd conftest`
7733 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9287 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77349288 case " $predeps $postdeps " in
77359289 *" $i "*)
77369290 func_append newdeplibs " $i"
7737 i=""
9291 i=
77389292 ;;
77399293 esac
77409294 fi
7741 if test -n "$i" ; then
9295 if test -n "$i"; then
77429296 libname=`eval "\\$ECHO \"$libname_spec\""`
77439297 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77449298 set dummy $deplib_matches; shift
77459299 deplib_match=$1
7746 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9300 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77479301 func_append newdeplibs " $i"
77489302 else
77499303 droppeddeps=yes
77809334 -l*)
77819335 func_stripname -l '' "$a_deplib"
77829336 name=$func_stripname_result
7783 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9337 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77849338 case " $predeps $postdeps " in
77859339 *" $a_deplib "*)
77869340 func_append newdeplibs " $a_deplib"
7787 a_deplib=""
9341 a_deplib=
77889342 ;;
77899343 esac
77909344 fi
7791 if test -n "$a_deplib" ; then
9345 if test -n "$a_deplib"; then
77929346 libname=`eval "\\$ECHO \"$libname_spec\""`
77939347 if test -n "$file_magic_glob"; then
77949348 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
77959349 else
77969350 libnameglob=$libname
77979351 fi
7798 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
9352 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
77999353 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7800 if test "$want_nocaseglob" = yes; then
9354 if test yes = "$want_nocaseglob"; then
78019355 shopt -s nocaseglob
78029356 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
78039357 $nocaseglob
78159369 # We might still enter an endless loop, since a link
78169370 # loop can be closed while we follow links,
78179371 # but so what?
7818 potlib="$potent_lib"
9372 potlib=$potent_lib
78199373 while test -h "$potlib" 2>/dev/null; do
7820 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
9374 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
78219375 case $potliblink in
7822 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7823 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
9376 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9377 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
78249378 esac
78259379 done
78269380 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
78279381 $SED -e 10q |
78289382 $EGREP "$file_magic_regex" > /dev/null; then
78299383 func_append newdeplibs " $a_deplib"
7830 a_deplib=""
9384 a_deplib=
78319385 break 2
78329386 fi
78339387 done
78349388 done
78359389 fi
7836 if test -n "$a_deplib" ; then
9390 if test -n "$a_deplib"; then
78379391 droppeddeps=yes
78389392 echo
78399393 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78419395 echo "*** you link to this library. But I can only do this if you have a"
78429396 echo "*** shared version of the library, which you do not appear to have"
78439397 echo "*** because I did check the linker path looking for a file starting"
7844 if test -z "$potlib" ; then
9398 if test -z "$potlib"; then
78459399 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
78469400 else
78479401 $ECHO "*** with $libname and none of the candidates passed a file format test"
78649418 -l*)
78659419 func_stripname -l '' "$a_deplib"
78669420 name=$func_stripname_result
7867 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9421 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
78689422 case " $predeps $postdeps " in
78699423 *" $a_deplib "*)
78709424 func_append newdeplibs " $a_deplib"
7871 a_deplib=""
9425 a_deplib=
78729426 ;;
78739427 esac
78749428 fi
7875 if test -n "$a_deplib" ; then
9429 if test -n "$a_deplib"; then
78769430 libname=`eval "\\$ECHO \"$libname_spec\""`
78779431 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
78789432 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78799433 for potent_lib in $potential_libs; do
7880 potlib="$potent_lib" # see symlink-check above in file_magic test
9434 potlib=$potent_lib # see symlink-check above in file_magic test
78819435 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
78829436 $EGREP "$match_pattern_regex" > /dev/null; then
78839437 func_append newdeplibs " $a_deplib"
7884 a_deplib=""
9438 a_deplib=
78859439 break 2
78869440 fi
78879441 done
78889442 done
78899443 fi
7890 if test -n "$a_deplib" ; then
9444 if test -n "$a_deplib"; then
78919445 droppeddeps=yes
78929446 echo
78939447 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78959449 echo "*** you link to this library. But I can only do this if you have a"
78969450 echo "*** shared version of the library, which you do not appear to have"
78979451 echo "*** because I did check the linker path looking for a file starting"
7898 if test -z "$potlib" ; then
9452 if test -z "$potlib"; then
78999453 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
79009454 else
79019455 $ECHO "*** with $libname and none of the candidates passed a file format test"
79119465 done # Gone through all deplibs.
79129466 ;;
79139467 none | unknown | *)
7914 newdeplibs=""
9468 newdeplibs=
79159469 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7916 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7917 for i in $predeps $postdeps ; do
9470 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9471 for i in $predeps $postdeps; do
79189472 # can't use Xsed below, because $i might contain '/'
7919 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
9473 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
79209474 done
79219475 fi
79229476 case $tmp_deplibs in
79239477 *[!\ \ ]*)
79249478 echo
7925 if test "X$deplibs_check_method" = "Xnone"; then
9479 if test none = "$deplibs_check_method"; then
79269480 echo "*** Warning: inter-library dependencies are not supported in this platform."
79279481 else
79289482 echo "*** Warning: inter-library dependencies are not known to be supported."
79469500 ;;
79479501 esac
79489502
7949 if test "$droppeddeps" = yes; then
7950 if test "$module" = yes; then
9503 if test yes = "$droppeddeps"; then
9504 if test yes = "$module"; then
79519505 echo
79529506 echo "*** Warning: libtool could not satisfy all declared inter-library"
79539507 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
79569510 if test -z "$global_symbol_pipe"; then
79579511 echo
79589512 echo "*** However, this would only work if libtool was able to extract symbol"
7959 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
9513 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
79609514 echo "*** not find such a program. So, this module is probably useless."
7961 echo "*** \`nm' from GNU binutils and a full rebuild may help."
9515 echo "*** 'nm' from GNU binutils and a full rebuild may help."
79629516 fi
7963 if test "$build_old_libs" = no; then
7964 oldlibs="$output_objdir/$libname.$libext"
9517 if test no = "$build_old_libs"; then
9518 oldlibs=$output_objdir/$libname.$libext
79659519 build_libtool_libs=module
79669520 build_old_libs=yes
79679521 else
79729526 echo "*** automatically added whenever a program is linked with this library"
79739527 echo "*** or is declared to -dlopen it."
79749528
7975 if test "$allow_undefined" = no; then
9529 if test no = "$allow_undefined"; then
79769530 echo
79779531 echo "*** Since this library must not contain undefined symbols,"
79789532 echo "*** because either the platform does not support them or"
79799533 echo "*** it was explicitly requested with -no-undefined,"
79809534 echo "*** libtool will only create a static version of it."
7981 if test "$build_old_libs" = no; then
7982 oldlibs="$output_objdir/$libname.$libext"
9535 if test no = "$build_old_libs"; then
9536 oldlibs=$output_objdir/$libname.$libext
79839537 build_libtool_libs=module
79849538 build_old_libs=yes
79859539 else
80259579 *) func_append new_libs " $deplib" ;;
80269580 esac
80279581 done
8028 deplibs="$new_libs"
9582 deplibs=$new_libs
80299583
80309584 # All the library-specific variables (install_libdir is set above).
80319585 library_names=
80339587 dlname=
80349588
80359589 # Test again, we may have decided not to build it any more
8036 if test "$build_libtool_libs" = yes; then
8037 # Remove ${wl} instances when linking with ld.
9590 if test yes = "$build_libtool_libs"; then
9591 # Remove $wl instances when linking with ld.
80389592 # FIXME: should test the right _cmds variable.
80399593 case $archive_cmds in
80409594 *\$LD\ *) wl= ;;
80419595 esac
8042 if test "$hardcode_into_libs" = yes; then
9596 if test yes = "$hardcode_into_libs"; then
80439597 # Hardcode the library paths
80449598 hardcode_libdirs=
80459599 dep_rpath=
8046 rpath="$finalize_rpath"
8047 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
9600 rpath=$finalize_rpath
9601 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
80489602 for libdir in $rpath; do
80499603 if test -n "$hardcode_libdir_flag_spec"; then
80509604 if test -n "$hardcode_libdir_separator"; then
80519605 func_replace_sysroot "$libdir"
80529606 libdir=$func_replace_sysroot_result
80539607 if test -z "$hardcode_libdirs"; then
8054 hardcode_libdirs="$libdir"
9608 hardcode_libdirs=$libdir
80559609 else
80569610 # Just accumulate the unique libdirs.
80579611 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
80769630 # Substitute the hardcoded libdirs into the rpath.
80779631 if test -n "$hardcode_libdir_separator" &&
80789632 test -n "$hardcode_libdirs"; then
8079 libdir="$hardcode_libdirs"
9633 libdir=$hardcode_libdirs
80809634 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
80819635 fi
80829636 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80909644 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
80919645 fi
80929646
8093 shlibpath="$finalize_shlibpath"
8094 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
9647 shlibpath=$finalize_shlibpath
9648 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
80959649 if test -n "$shlibpath"; then
80969650 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
80979651 fi
81019655 eval library_names=\"$library_names_spec\"
81029656 set dummy $library_names
81039657 shift
8104 realname="$1"
9658 realname=$1
81059659 shift
81069660
81079661 if test -n "$soname_spec"; then
81089662 eval soname=\"$soname_spec\"
81099663 else
8110 soname="$realname"
9664 soname=$realname
81119665 fi
81129666 if test -z "$dlname"; then
81139667 dlname=$soname
81149668 fi
81159669
8116 lib="$output_objdir/$realname"
9670 lib=$output_objdir/$realname
81179671 linknames=
81189672 for link
81199673 do
81279681 delfiles=
81289682 if test -n "$export_symbols" && test -n "$include_expsyms"; then
81299683 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8130 export_symbols="$output_objdir/$libname.uexp"
9684 export_symbols=$output_objdir/$libname.uexp
81319685 func_append delfiles " $export_symbols"
81329686 fi
81339687
81369690 cygwin* | mingw* | cegcc*)
81379691 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
81389692 # exporting using user supplied symfile
8139 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
9693 func_dll_def_p "$export_symbols" || {
81409694 # and it's NOT already a .def file. Must figure out
81419695 # which of the given symbols are data symbols and tag
81429696 # them as such. So, trigger use of export_symbols_cmds.
81439697 # export_symbols gets reassigned inside the "prepare
81449698 # the list of exported symbols" if statement, so the
81459699 # include_expsyms logic still works.
8146 orig_export_symbols="$export_symbols"
9700 orig_export_symbols=$export_symbols
81479701 export_symbols=
81489702 always_export_symbols=yes
8149 fi
9703 }
81509704 fi
81519705 ;;
81529706 esac
81539707
81549708 # Prepare the list of exported symbols
81559709 if test -z "$export_symbols"; then
8156 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8157 func_verbose "generating symbol list for \`$libname.la'"
8158 export_symbols="$output_objdir/$libname.exp"
9710 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9711 func_verbose "generating symbol list for '$libname.la'"
9712 export_symbols=$output_objdir/$libname.exp
81599713 $opt_dry_run || $RM $export_symbols
81609714 cmds=$export_symbols_cmds
8161 save_ifs="$IFS"; IFS='~'
9715 save_ifs=$IFS; IFS='~'
81629716 for cmd1 in $cmds; do
8163 IFS="$save_ifs"
9717 IFS=$save_ifs
81649718 # Take the normal branch if the nm_file_list_spec branch
81659719 # doesn't work or if tool conversion is not needed.
81669720 case $nm_file_list_spec~$to_tool_file_cmd in
81749728 try_normal_branch=no
81759729 ;;
81769730 esac
8177 if test "$try_normal_branch" = yes \
9731 if test yes = "$try_normal_branch" \
81789732 && { test "$len" -lt "$max_cmd_len" \
81799733 || test "$max_cmd_len" -le -1; }
81809734 then
81859739 output_la=$func_basename_result
81869740 save_libobjs=$libobjs
81879741 save_output=$output
8188 output=${output_objdir}/${output_la}.nm
9742 output=$output_objdir/$output_la.nm
81899743 func_to_tool_file "$output"
81909744 libobjs=$nm_file_list_spec$func_to_tool_file_result
81919745 func_append delfiles " $output"
82089762 break
82099763 fi
82109764 done
8211 IFS="$save_ifs"
8212 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
9765 IFS=$save_ifs
9766 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
82139767 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
82149768 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
82159769 fi
82179771 fi
82189772
82199773 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8220 tmp_export_symbols="$export_symbols"
8221 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9774 tmp_export_symbols=$export_symbols
9775 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
82229776 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
82239777 fi
82249778
8225 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
9779 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
82269780 # The given exports_symbols file has to be filtered, so filter it.
8227 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9781 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
82289782 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8229 # 's' commands which not all seds can handle. GNU sed should be fine
9783 # 's' commands, which not all seds can handle. GNU sed should be fine
82309784 # though. Also, the filter scales superlinearly with the number of
82319785 # global variables. join(1) would be nice here, but unfortunately
82329786 # isn't a blessed tool.
82459799 ;;
82469800 esac
82479801 done
8248 deplibs="$tmp_deplibs"
9802 deplibs=$tmp_deplibs
82499803
82509804 if test -n "$convenience"; then
82519805 if test -n "$whole_archive_flag_spec" &&
8252 test "$compiler_needs_object" = yes &&
9806 test yes = "$compiler_needs_object" &&
82539807 test -z "$libobjs"; then
82549808 # extract the archives, so we have objects to list.
82559809 # TODO: could optimize this to just extract one archive.
82609814 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
82619815 test "X$libobjs" = "X " && libobjs=
82629816 else
8263 gentop="$output_objdir/${outputname}x"
9817 gentop=$output_objdir/${outputname}x
82649818 func_append generated " $gentop"
82659819
82669820 func_extract_archives $gentop $convenience
82699823 fi
82709824 fi
82719825
8272 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
9826 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
82739827 eval flag=\"$thread_safe_flag_spec\"
82749828 func_append linker_flags " $flag"
82759829 fi
82769830
82779831 # Make a backup of the uninstalled library when relinking
8278 if test "$opt_mode" = relink; then
9832 if test relink = "$opt_mode"; then
82799833 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
82809834 fi
82819835
82829836 # Do each of the archive commands.
8283 if test "$module" = yes && test -n "$module_cmds" ; then
9837 if test yes = "$module" && test -n "$module_cmds"; then
82849838 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
82859839 eval test_cmds=\"$module_expsym_cmds\"
82869840 cmds=$module_expsym_cmds
82989852 fi
82999853 fi
83009854
8301 if test "X$skipped_export" != "X:" &&
9855 if test : != "$skipped_export" &&
83029856 func_len " $test_cmds" &&
83039857 len=$func_len_result &&
83049858 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
83319885 last_robj=
83329886 k=1
83339887
8334 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8335 output=${output_objdir}/${output_la}.lnkscript
9888 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9889 output=$output_objdir/$output_la.lnkscript
83369890 func_verbose "creating GNU ld script: $output"
83379891 echo 'INPUT (' > $output
83389892 for obj in $save_libobjs
83449898 func_append delfiles " $output"
83459899 func_to_tool_file "$output"
83469900 output=$func_to_tool_file_result
8347 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8348 output=${output_objdir}/${output_la}.lnk
9901 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9902 output=$output_objdir/$output_la.lnk
83499903 func_verbose "creating linker input file list: $output"
83509904 : > $output
83519905 set x $save_libobjs
83529906 shift
83539907 firstobj=
8354 if test "$compiler_needs_object" = yes; then
9908 if test yes = "$compiler_needs_object"; then
83559909 firstobj="$1 "
83569910 shift
83579911 fi
83669920 else
83679921 if test -n "$save_libobjs"; then
83689922 func_verbose "creating reloadable object files..."
8369 output=$output_objdir/$output_la-${k}.$objext
9923 output=$output_objdir/$output_la-$k.$objext
83709924 eval test_cmds=\"$reload_cmds\"
83719925 func_len " $test_cmds"
83729926 len0=$func_len_result
83789932 func_len " $obj"
83799933 func_arith $len + $func_len_result
83809934 len=$func_arith_result
8381 if test "X$objlist" = X ||
9935 if test -z "$objlist" ||
83829936 test "$len" -lt "$max_cmd_len"; then
83839937 func_append objlist " $obj"
83849938 else
83859939 # The command $test_cmds is almost too long, add a
83869940 # command to the queue.
8387 if test "$k" -eq 1 ; then
9941 if test 1 -eq "$k"; then
83889942 # The first file doesn't have a previous command to add.
83899943 reload_objs=$objlist
83909944 eval concat_cmds=\"$reload_cmds\"
83949948 reload_objs="$objlist $last_robj"
83959949 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
83969950 fi
8397 last_robj=$output_objdir/$output_la-${k}.$objext
9951 last_robj=$output_objdir/$output_la-$k.$objext
83989952 func_arith $k + 1
83999953 k=$func_arith_result
8400 output=$output_objdir/$output_la-${k}.$objext
9954 output=$output_objdir/$output_la-$k.$objext
84019955 objlist=" $obj"
84029956 func_len " $last_robj"
84039957 func_arith $len0 + $func_len_result
84099963 # files will link in the last one created.
84109964 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
84119965 reload_objs="$objlist $last_robj"
8412 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
9966 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
84139967 if test -n "$last_robj"; then
8414 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
9968 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84159969 fi
84169970 func_append delfiles " $output"
84179971
84199973 output=
84209974 fi
84219975
8422 if ${skipped_export-false}; then
8423 func_verbose "generating symbol list for \`$libname.la'"
8424 export_symbols="$output_objdir/$libname.exp"
9976 ${skipped_export-false} && {
9977 func_verbose "generating symbol list for '$libname.la'"
9978 export_symbols=$output_objdir/$libname.exp
84259979 $opt_dry_run || $RM $export_symbols
84269980 libobjs=$output
84279981 # Append the command to create the export file.
84309984 if test -n "$last_robj"; then
84319985 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84329986 fi
8433 fi
9987 }
84349988
84359989 test -n "$save_libobjs" &&
84369990 func_verbose "creating a temporary reloadable object file: $output"
84379991
84389992 # Loop through the commands generated above and execute them.
8439 save_ifs="$IFS"; IFS='~'
9993 save_ifs=$IFS; IFS='~'
84409994 for cmd in $concat_cmds; do
8441 IFS="$save_ifs"
8442 $opt_silent || {
9995 IFS=$save_ifs
9996 $opt_quiet || {
84439997 func_quote_for_expand "$cmd"
84449998 eval "func_echo $func_quote_for_expand_result"
84459999 }
844710001 lt_exit=$?
844810002
844910003 # Restore the uninstalled library and exit
8450 if test "$opt_mode" = relink; then
10004 if test relink = "$opt_mode"; then
845110005 ( cd "$output_objdir" && \
845210006 $RM "${realname}T" && \
845310007 $MV "${realname}U" "$realname" )
845610010 exit $lt_exit
845710011 }
845810012 done
8459 IFS="$save_ifs"
10013 IFS=$save_ifs
846010014
846110015 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
846210016 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
846410018 fi
846510019 fi
846610020
8467 if ${skipped_export-false}; then
10021 ${skipped_export-false} && {
846810022 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8469 tmp_export_symbols="$export_symbols"
8470 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
10023 tmp_export_symbols=$export_symbols
10024 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
847110025 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
847210026 fi
847310027
847410028 if test -n "$orig_export_symbols"; then
847510029 # The given exports_symbols file has to be filtered, so filter it.
8476 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
10030 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
847710031 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8478 # 's' commands which not all seds can handle. GNU sed should be fine
10032 # 's' commands, which not all seds can handle. GNU sed should be fine
847910033 # though. Also, the filter scales superlinearly with the number of
848010034 # global variables. join(1) would be nice here, but unfortunately
848110035 # isn't a blessed tool.
848410038 export_symbols=$output_objdir/$libname.def
848510039 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
848610040 fi
8487 fi
10041 }
848810042
848910043 libobjs=$output
849010044 # Restore the value of output.
849810052 # value of $libobjs for piecewise linking.
849910053
850010054 # Do each of the archive commands.
8501 if test "$module" = yes && test -n "$module_cmds" ; then
10055 if test yes = "$module" && test -n "$module_cmds"; then
850210056 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
850310057 cmds=$module_expsym_cmds
850410058 else
852010074
852110075 # Add any objects from preloaded convenience libraries
852210076 if test -n "$dlprefiles"; then
8523 gentop="$output_objdir/${outputname}x"
10077 gentop=$output_objdir/${outputname}x
852410078 func_append generated " $gentop"
852510079
852610080 func_extract_archives $gentop $dlprefiles
852810082 test "X$libobjs" = "X " && libobjs=
852910083 fi
853010084
8531 save_ifs="$IFS"; IFS='~'
10085 save_ifs=$IFS; IFS='~'
853210086 for cmd in $cmds; do
8533 IFS="$save_ifs"
10087 IFS=$sp$nl
853410088 eval cmd=\"$cmd\"
8535 $opt_silent || {
10089 IFS=$save_ifs
10090 $opt_quiet || {
853610091 func_quote_for_expand "$cmd"
853710092 eval "func_echo $func_quote_for_expand_result"
853810093 }
854010095 lt_exit=$?
854110096
854210097 # Restore the uninstalled library and exit
8543 if test "$opt_mode" = relink; then
10098 if test relink = "$opt_mode"; then
854410099 ( cd "$output_objdir" && \
854510100 $RM "${realname}T" && \
854610101 $MV "${realname}U" "$realname" )
854910104 exit $lt_exit
855010105 }
855110106 done
8552 IFS="$save_ifs"
10107 IFS=$save_ifs
855310108
855410109 # Restore the uninstalled library and exit
8555 if test "$opt_mode" = relink; then
10110 if test relink = "$opt_mode"; then
855610111 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
855710112
855810113 if test -n "$convenience"; then
857210127 done
857310128
857410129 # If -module or -export-dynamic was specified, set the dlname.
8575 if test "$module" = yes || test "$export_dynamic" = yes; then
10130 if test yes = "$module" || test yes = "$export_dynamic"; then
857610131 # On all known operating systems, these are identical.
8577 dlname="$soname"
10132 dlname=$soname
857810133 fi
857910134 fi
858010135 ;;
858110136
858210137 obj)
8583 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8584 func_warning "\`-dlopen' is ignored for objects"
10138 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10139 func_warning "'-dlopen' is ignored for objects"
858510140 fi
858610141
858710142 case " $deplibs" in
858810143 *\ -l* | *\ -L*)
8589 func_warning "\`-l' and \`-L' are ignored for objects" ;;
10144 func_warning "'-l' and '-L' are ignored for objects" ;;
859010145 esac
859110146
859210147 test -n "$rpath" && \
8593 func_warning "\`-rpath' is ignored for objects"
10148 func_warning "'-rpath' is ignored for objects"
859410149
859510150 test -n "$xrpath" && \
8596 func_warning "\`-R' is ignored for objects"
10151 func_warning "'-R' is ignored for objects"
859710152
859810153 test -n "$vinfo" && \
8599 func_warning "\`-version-info' is ignored for objects"
10154 func_warning "'-version-info' is ignored for objects"
860010155
860110156 test -n "$release" && \
8602 func_warning "\`-release' is ignored for objects"
10157 func_warning "'-release' is ignored for objects"
860310158
860410159 case $output in
860510160 *.lo)
860610161 test -n "$objs$old_deplibs" && \
8607 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
10162 func_fatal_error "cannot build library object '$output' from non-libtool objects"
860810163
860910164 libobj=$output
861010165 func_lo2o "$libobj"
861210167 ;;
861310168 *)
861410169 libobj=
8615 obj="$output"
10170 obj=$output
861610171 ;;
861710172 esac
861810173
862510180 # the extraction.
862610181 reload_conv_objs=
862710182 gentop=
8628 # reload_cmds runs $LD directly, so let us get rid of
8629 # -Wl from whole_archive_flag_spec and hope we can get by with
8630 # turning comma into space..
8631 wl=
8632
10183 # if reload_cmds runs $LD directly, get rid of -Wl from
10184 # whole_archive_flag_spec and hope we can get by with turning comma
10185 # into space.
10186 case $reload_cmds in
10187 *\$LD[\ \$]*) wl= ;;
10188 esac
863310189 if test -n "$convenience"; then
863410190 if test -n "$whole_archive_flag_spec"; then
863510191 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8636 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10192 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10193 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
863710194 else
8638 gentop="$output_objdir/${obj}x"
10195 gentop=$output_objdir/${obj}x
863910196 func_append generated " $gentop"
864010197
864110198 func_extract_archives $gentop $convenience
864410201 fi
864510202
864610203 # If we're not building shared, we need to use non_pic_objs
8647 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
10204 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
864810205
864910206 # Create the old-style object.
8650 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8651
8652 output="$obj"
10207 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10208
10209 output=$obj
865310210 func_execute_cmds "$reload_cmds" 'exit $?'
865410211
865510212 # Exit if we aren't doing a library object file.
866110218 exit $EXIT_SUCCESS
866210219 fi
866310220
8664 if test "$build_libtool_libs" != yes; then
10221 test yes = "$build_libtool_libs" || {
866510222 if test -n "$gentop"; then
866610223 func_show_eval '${RM}r "$gentop"'
866710224 fi
867110228 # $show "echo timestamp > $libobj"
867210229 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
867310230 exit $EXIT_SUCCESS
8674 fi
8675
8676 if test -n "$pic_flag" || test "$pic_mode" != default; then
10231 }
10232
10233 if test -n "$pic_flag" || test default != "$pic_mode"; then
867710234 # Only do commands if we really have different PIC objects.
867810235 reload_objs="$libobjs $reload_conv_objs"
8679 output="$libobj"
10236 output=$libobj
868010237 func_execute_cmds "$reload_cmds" 'exit $?'
868110238 fi
868210239
869310250 output=$func_stripname_result.exe;;
869410251 esac
869510252 test -n "$vinfo" && \
8696 func_warning "\`-version-info' is ignored for programs"
10253 func_warning "'-version-info' is ignored for programs"
869710254
869810255 test -n "$release" && \
8699 func_warning "\`-release' is ignored for programs"
8700
8701 test "$preload" = yes \
8702 && test "$dlopen_support" = unknown \
8703 && test "$dlopen_self" = unknown \
8704 && test "$dlopen_self_static" = unknown && \
8705 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
10256 func_warning "'-release' is ignored for programs"
10257
10258 $preload \
10259 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10260 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
870610261
870710262 case $host in
870810263 *-*-rhapsody* | *-*-darwin1.[012])
871610271 *-*-darwin*)
871710272 # Don't allow lazy linking, it breaks C++ global constructors
871810273 # But is supposedly fixed on 10.4 or later (yay!).
8719 if test "$tagname" = CXX ; then
10274 if test CXX = "$tagname"; then
872010275 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
872110276 10.[0123])
8722 func_append compile_command " ${wl}-bind_at_load"
8723 func_append finalize_command " ${wl}-bind_at_load"
10277 func_append compile_command " $wl-bind_at_load"
10278 func_append finalize_command " $wl-bind_at_load"
872410279 ;;
872510280 esac
872610281 fi
875610311 *) func_append new_libs " $deplib" ;;
875710312 esac
875810313 done
8759 compile_deplibs="$new_libs"
10314 compile_deplibs=$new_libs
876010315
876110316
876210317 func_append compile_command " $compile_deplibs"
878010335 if test -n "$hardcode_libdir_flag_spec"; then
878110336 if test -n "$hardcode_libdir_separator"; then
878210337 if test -z "$hardcode_libdirs"; then
8783 hardcode_libdirs="$libdir"
10338 hardcode_libdirs=$libdir
878410339 else
878510340 # Just accumulate the unique libdirs.
878610341 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
880310358 fi
880410359 case $host in
880510360 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8806 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
10361 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
880710362 case :$dllsearchpath: in
880810363 *":$libdir:"*) ;;
880910364 ::) dllsearchpath=$libdir;;
882010375 # Substitute the hardcoded libdirs into the rpath.
882110376 if test -n "$hardcode_libdir_separator" &&
882210377 test -n "$hardcode_libdirs"; then
8823 libdir="$hardcode_libdirs"
10378 libdir=$hardcode_libdirs
882410379 eval rpath=\" $hardcode_libdir_flag_spec\"
882510380 fi
8826 compile_rpath="$rpath"
10381 compile_rpath=$rpath
882710382
882810383 rpath=
882910384 hardcode_libdirs=
883110386 if test -n "$hardcode_libdir_flag_spec"; then
883210387 if test -n "$hardcode_libdir_separator"; then
883310388 if test -z "$hardcode_libdirs"; then
8834 hardcode_libdirs="$libdir"
10389 hardcode_libdirs=$libdir
883510390 else
883610391 # Just accumulate the unique libdirs.
883710392 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
885610411 # Substitute the hardcoded libdirs into the rpath.
885710412 if test -n "$hardcode_libdir_separator" &&
885810413 test -n "$hardcode_libdirs"; then
8859 libdir="$hardcode_libdirs"
10414 libdir=$hardcode_libdirs
886010415 eval rpath=\" $hardcode_libdir_flag_spec\"
886110416 fi
8862 finalize_rpath="$rpath"
8863
8864 if test -n "$libobjs" && test "$build_old_libs" = yes; then
10417 finalize_rpath=$rpath
10418
10419 if test -n "$libobjs" && test yes = "$build_old_libs"; then
886510420 # Transform all the library objects into standard objects.
886610421 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
886710422 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
886810423 fi
886910424
8870 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
10425 func_generate_dlsyms "$outputname" "@PROGRAM@" false
887110426
887210427 # template prelinking step
887310428 if test -n "$prelink_cmds"; then
887410429 func_execute_cmds "$prelink_cmds" 'exit $?'
887510430 fi
887610431
8877 wrappers_required=yes
10432 wrappers_required=:
887810433 case $host in
887910434 *cegcc* | *mingw32ce*)
888010435 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8881 wrappers_required=no
10436 wrappers_required=false
888210437 ;;
888310438 *cygwin* | *mingw* )
8884 if test "$build_libtool_libs" != yes; then
8885 wrappers_required=no
8886 fi
10439 test yes = "$build_libtool_libs" || wrappers_required=false
888710440 ;;
888810441 *)
8889 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8890 wrappers_required=no
10442 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10443 wrappers_required=false
889110444 fi
889210445 ;;
889310446 esac
8894 if test "$wrappers_required" = no; then
10447 $wrappers_required || {
889510448 # Replace the output file specification.
889610449 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8897 link_command="$compile_command$compile_rpath"
10450 link_command=$compile_command$compile_rpath
889810451
889910452 # We have no uninstalled library dependencies, so finalize right now.
890010453 exit_status=0
890710460 fi
890810461
890910462 # Delete the generated files.
8910 if test -f "$output_objdir/${outputname}S.${objext}"; then
8911 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
10463 if test -f "$output_objdir/${outputname}S.$objext"; then
10464 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
891210465 fi
891310466
891410467 exit $exit_status
8915 fi
10468 }
891610469
891710470 if test -n "$compile_shlibpath$finalize_shlibpath"; then
891810471 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
894210495 fi
894310496 fi
894410497
8945 if test "$no_install" = yes; then
10498 if test yes = "$no_install"; then
894610499 # We don't need to create a wrapper script.
8947 link_command="$compile_var$compile_command$compile_rpath"
10500 link_command=$compile_var$compile_command$compile_rpath
894810501 # Replace the output file specification.
894910502 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
895010503 # Delete the old output file.
896110514 exit $EXIT_SUCCESS
896210515 fi
896310516
8964 if test "$hardcode_action" = relink; then
8965 # Fast installation is not supported
8966 link_command="$compile_var$compile_command$compile_rpath"
8967 relink_command="$finalize_var$finalize_command$finalize_rpath"
8968
8969 func_warning "this platform does not like uninstalled shared libraries"
8970 func_warning "\`$output' will be relinked during installation"
8971 else
8972 if test "$fast_install" != no; then
8973 link_command="$finalize_var$compile_command$finalize_rpath"
8974 if test "$fast_install" = yes; then
8975 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8976 else
8977 # fast_install is set to needless
8978 relink_command=
8979 fi
8980 else
8981 link_command="$compile_var$compile_command$compile_rpath"
8982 relink_command="$finalize_var$finalize_command$finalize_rpath"
8983 fi
8984 fi
10517 case $hardcode_action,$fast_install in
10518 relink,*)
10519 # Fast installation is not supported
10520 link_command=$compile_var$compile_command$compile_rpath
10521 relink_command=$finalize_var$finalize_command$finalize_rpath
10522
10523 func_warning "this platform does not like uninstalled shared libraries"
10524 func_warning "'$output' will be relinked during installation"
10525 ;;
10526 *,yes)
10527 link_command=$finalize_var$compile_command$finalize_rpath
10528 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10529 ;;
10530 *,no)
10531 link_command=$compile_var$compile_command$compile_rpath
10532 relink_command=$finalize_var$finalize_command$finalize_rpath
10533 ;;
10534 *,needless)
10535 link_command=$finalize_var$compile_command$finalize_rpath
10536 relink_command=
10537 ;;
10538 esac
898510539
898610540 # Replace the output file specification.
898710541 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
901310567 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
901410568 fi
901510569 done
9016 relink_command="(cd `pwd`; $relink_command)"
9017 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10570 func_quote "(cd `pwd`; $relink_command)"
10571 relink_command=$func_quote_result
901810572 fi
901910573
902010574 # Only actually do things if not in dry run mode.
903810592 func_dirname_and_basename "$output" "" "."
903910593 output_name=$func_basename_result
904010594 output_path=$func_dirname_result
9041 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9042 cwrapper="$output_path/$output_name.exe"
10595 cwrappersource=$output_path/$objdir/lt-$output_name.c
10596 cwrapper=$output_path/$output_name.exe
904310597 $RM $cwrappersource $cwrapper
904410598 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
904510599
906010614 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
906110615 $opt_dry_run || {
906210616 # note: this script will not be executed, so do not chmod.
9063 if test "x$build" = "x$host" ; then
10617 if test "x$build" = "x$host"; then
906410618 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
906510619 else
906610620 func_emit_wrapper no > $func_ltwrapper_scriptname_result
908310637 # See if we need to build an old-fashioned archive.
908410638 for oldlib in $oldlibs; do
908510639
9086 if test "$build_libtool_libs" = convenience; then
9087 oldobjs="$libobjs_save $symfileobj"
9088 addlibs="$convenience"
9089 build_libtool_libs=no
9090 else
9091 if test "$build_libtool_libs" = module; then
9092 oldobjs="$libobjs_save"
10640 case $build_libtool_libs in
10641 convenience)
10642 oldobjs="$libobjs_save $symfileobj"
10643 addlibs=$convenience
909310644 build_libtool_libs=no
9094 else
10645 ;;
10646 module)
10647 oldobjs=$libobjs_save
10648 addlibs=$old_convenience
10649 build_libtool_libs=no
10650 ;;
10651 *)
909510652 oldobjs="$old_deplibs $non_pic_objects"
9096 if test "$preload" = yes && test -f "$symfileobj"; then
9097 func_append oldobjs " $symfileobj"
9098 fi
9099 fi
9100 addlibs="$old_convenience"
9101 fi
10653 $preload && test -f "$symfileobj" \
10654 && func_append oldobjs " $symfileobj"
10655 addlibs=$old_convenience
10656 ;;
10657 esac
910210658
910310659 if test -n "$addlibs"; then
9104 gentop="$output_objdir/${outputname}x"
10660 gentop=$output_objdir/${outputname}x
910510661 func_append generated " $gentop"
910610662
910710663 func_extract_archives $gentop $addlibs
910910665 fi
911010666
911110667 # Do each command in the archive commands.
9112 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
10668 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
911310669 cmds=$old_archive_from_new_cmds
911410670 else
911510671
911610672 # Add any objects from preloaded convenience libraries
911710673 if test -n "$dlprefiles"; then
9118 gentop="$output_objdir/${outputname}x"
10674 gentop=$output_objdir/${outputname}x
911910675 func_append generated " $gentop"
912010676
912110677 func_extract_archives $gentop $dlprefiles
913610692 :
913710693 else
913810694 echo "copying selected object files to avoid basename conflicts..."
9139 gentop="$output_objdir/${outputname}x"
10695 gentop=$output_objdir/${outputname}x
914010696 func_append generated " $gentop"
914110697 func_mkdir_p "$gentop"
914210698 save_oldobjs=$oldobjs
914510701 for obj in $save_oldobjs
914610702 do
914710703 func_basename "$obj"
9148 objbase="$func_basename_result"
10704 objbase=$func_basename_result
914910705 case " $oldobjs " in
915010706 " ") oldobjs=$obj ;;
915110707 *[\ /]"$objbase "*)
921410770 else
921510771 # the above command should be used before it gets too long
921610772 oldobjs=$objlist
9217 if test "$obj" = "$last_oldobj" ; then
10773 if test "$obj" = "$last_oldobj"; then
921810774 RANLIB=$save_RANLIB
921910775 fi
922010776 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9221 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
10777 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
922210778 objlist=
922310779 len=$len0
922410780 fi
922510781 done
922610782 RANLIB=$save_RANLIB
922710783 oldobjs=$objlist
9228 if test "X$oldobjs" = "X" ; then
10784 if test -z "$oldobjs"; then
922910785 eval cmds=\"\$concat_cmds\"
923010786 else
923110787 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
924210798 case $output in
924310799 *.la)
924410800 old_library=
9245 test "$build_old_libs" = yes && old_library="$libname.$libext"
10801 test yes = "$build_old_libs" && old_library=$libname.$libext
924610802 func_verbose "creating $output"
924710803
924810804 # Preserve any variables that may affect compiler behavior
925710813 fi
925810814 done
925910815 # Quote the link command for shipping.
9260 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9261 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9262 if test "$hardcode_automatic" = yes ; then
10816 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10817 func_quote "$relink_command"
10818 relink_command=$func_quote_result
10819 if test yes = "$hardcode_automatic"; then
926310820 relink_command=
926410821 fi
926510822
926610823 # Only create the output if not a dry run.
926710824 $opt_dry_run || {
926810825 for installed in no yes; do
9269 if test "$installed" = yes; then
10826 if test yes = "$installed"; then
927010827 if test -z "$install_libdir"; then
927110828 break
927210829 fi
9273 output="$output_objdir/$outputname"i
10830 output=$output_objdir/${outputname}i
927410831 # Replace all uninstalled libtool libraries with the installed ones
927510832 newdependency_libs=
927610833 for deplib in $dependency_libs; do
927710834 case $deplib in
927810835 *.la)
927910836 func_basename "$deplib"
9280 name="$func_basename_result"
10837 name=$func_basename_result
928110838 func_resolve_sysroot "$deplib"
9282 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10839 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
928310840 test -z "$libdir" && \
9284 func_fatal_error "\`$deplib' is not a valid libtool archive"
10841 func_fatal_error "'$deplib' is not a valid libtool archive"
928510842 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
928610843 ;;
928710844 -L*)
929710854 *) func_append newdependency_libs " $deplib" ;;
929810855 esac
929910856 done
9300 dependency_libs="$newdependency_libs"
10857 dependency_libs=$newdependency_libs
930110858 newdlfiles=
930210859
930310860 for lib in $dlfiles; do
930410861 case $lib in
930510862 *.la)
930610863 func_basename "$lib"
9307 name="$func_basename_result"
9308 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10864 name=$func_basename_result
10865 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
930910866 test -z "$libdir" && \
9310 func_fatal_error "\`$lib' is not a valid libtool archive"
10867 func_fatal_error "'$lib' is not a valid libtool archive"
931110868 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
931210869 ;;
931310870 *) func_append newdlfiles " $lib" ;;
931410871 esac
931510872 done
9316 dlfiles="$newdlfiles"
10873 dlfiles=$newdlfiles
931710874 newdlprefiles=
931810875 for lib in $dlprefiles; do
931910876 case $lib in
932310880 # didn't already link the preopened objects directly into
932410881 # the library:
932510882 func_basename "$lib"
9326 name="$func_basename_result"
9327 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10883 name=$func_basename_result
10884 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
932810885 test -z "$libdir" && \
9329 func_fatal_error "\`$lib' is not a valid libtool archive"
10886 func_fatal_error "'$lib' is not a valid libtool archive"
933010887 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
933110888 ;;
933210889 esac
933310890 done
9334 dlprefiles="$newdlprefiles"
10891 dlprefiles=$newdlprefiles
933510892 else
933610893 newdlfiles=
933710894 for lib in $dlfiles; do
933810895 case $lib in
9339 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10896 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
934010897 *) abs=`pwd`"/$lib" ;;
934110898 esac
934210899 func_append newdlfiles " $abs"
934310900 done
9344 dlfiles="$newdlfiles"
10901 dlfiles=$newdlfiles
934510902 newdlprefiles=
934610903 for lib in $dlprefiles; do
934710904 case $lib in
9348 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10905 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
934910906 *) abs=`pwd`"/$lib" ;;
935010907 esac
935110908 func_append newdlprefiles " $abs"
935210909 done
9353 dlprefiles="$newdlprefiles"
10910 dlprefiles=$newdlprefiles
935410911 fi
935510912 $RM $output
935610913 # place dlname in correct position for cygwin
936610923 case $host,$output,$installed,$module,$dlname in
936710924 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
936810925 # If a -bindir argument was supplied, place the dll there.
9369 if test "x$bindir" != x ;
9370 then
10926 if test -n "$bindir"; then
937110927 func_relative_path "$install_libdir" "$bindir"
9372 tdlname=$func_relative_path_result$dlname
10928 tdlname=$func_relative_path_result/$dlname
937310929 else
937410930 # Otherwise fall back on heuristic.
937510931 tdlname=../bin/$dlname
937810934 esac
937910935 $ECHO > $output "\
938010936 # $outputname - a libtool library file
9381 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
10937 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
938210938 #
938310939 # Please DO NOT delete this file!
938410940 # It is necessary for linking the library.
939210948 # The name of the static archive.
939310949 old_library='$old_library'
939410950
9395 # Linker flags that can not go in dependency_libs.
10951 # Linker flags that cannot go in dependency_libs.
939610952 inherited_linker_flags='$new_inherited_linker_flags'
939710953
939810954 # Libraries that this one depends upon.
941810974
941910975 # Directory that this library needs to be installed in:
942010976 libdir='$install_libdir'"
9421 if test "$installed" = no && test "$need_relink" = yes; then
10977 if test no,yes = "$installed,$need_relink"; then
942210978 $ECHO >> $output "\
942310979 relink_command=\"$relink_command\""
942410980 fi
943310989 exit $EXIT_SUCCESS
943410990 }
943510991
9436 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9437 func_mode_link ${1+"$@"}
10992 if test link = "$opt_mode" || test relink = "$opt_mode"; then
10993 func_mode_link ${1+"$@"}
10994 fi
943810995
943910996
944010997 # func_mode_uninstall arg...
944110998 func_mode_uninstall ()
944210999 {
9443 $opt_debug
9444 RM="$nonopt"
11000 $debug_cmd
11001
11002 RM=$nonopt
944511003 files=
9446 rmforce=
11004 rmforce=false
944711005 exit_status=0
944811006
944911007 # This variable tells wrapper scripts just to set variables rather
945011008 # than running their programs.
9451 libtool_install_magic="$magic"
11009 libtool_install_magic=$magic
945211010
945311011 for arg
945411012 do
945511013 case $arg in
9456 -f) func_append RM " $arg"; rmforce=yes ;;
11014 -f) func_append RM " $arg"; rmforce=: ;;
945711015 -*) func_append RM " $arg" ;;
945811016 *) func_append files " $arg" ;;
945911017 esac
946611024
946711025 for file in $files; do
946811026 func_dirname "$file" "" "."
9469 dir="$func_dirname_result"
9470 if test "X$dir" = X.; then
9471 odir="$objdir"
11027 dir=$func_dirname_result
11028 if test . = "$dir"; then
11029 odir=$objdir
947211030 else
9473 odir="$dir/$objdir"
11031 odir=$dir/$objdir
947411032 fi
947511033 func_basename "$file"
9476 name="$func_basename_result"
9477 test "$opt_mode" = uninstall && odir="$dir"
11034 name=$func_basename_result
11035 test uninstall = "$opt_mode" && odir=$dir
947811036
947911037 # Remember odir for removal later, being careful to avoid duplicates
9480 if test "$opt_mode" = clean; then
11038 if test clean = "$opt_mode"; then
948111039 case " $rmdirs " in
948211040 *" $odir "*) ;;
948311041 *) func_append rmdirs " $odir" ;;
949211050 elif test -d "$file"; then
949311051 exit_status=1
949411052 continue
9495 elif test "$rmforce" = yes; then
11053 elif $rmforce; then
949611054 continue
949711055 fi
949811056
9499 rmfiles="$file"
11057 rmfiles=$file
950011058
950111059 case $name in
950211060 *.la)
951011068 done
951111069 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
951211070
9513 case "$opt_mode" in
11071 case $opt_mode in
951411072 clean)
951511073 case " $library_names " in
951611074 *" $dlname "*) ;;
952111079 uninstall)
952211080 if test -n "$library_names"; then
952311081 # Do each command in the postuninstall commands.
9524 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11082 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
952511083 fi
952611084
952711085 if test -n "$old_library"; then
952811086 # Do each command in the old_postuninstall commands.
9529 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11087 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
953011088 fi
953111089 # FIXME: should reinstall the best remaining shared library.
953211090 ;;
954211100 func_source $dir/$name
954311101
954411102 # Add PIC object to the list of files to remove.
9545 if test -n "$pic_object" &&
9546 test "$pic_object" != none; then
11103 if test -n "$pic_object" && test none != "$pic_object"; then
954711104 func_append rmfiles " $dir/$pic_object"
954811105 fi
954911106
955011107 # Add non-PIC object to the list of files to remove.
9551 if test -n "$non_pic_object" &&
9552 test "$non_pic_object" != none; then
11108 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
955311109 func_append rmfiles " $dir/$non_pic_object"
955411110 fi
955511111 fi
955611112 ;;
955711113
955811114 *)
9559 if test "$opt_mode" = clean ; then
11115 if test clean = "$opt_mode"; then
956011116 noexename=$name
956111117 case $file in
956211118 *.exe)
958311139
958411140 # note $name still contains .exe if it was in $file originally
958511141 # as does the version of $file that was added into $rmfiles
9586 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9587 if test "$fast_install" = yes && test -n "$relink_command"; then
11142 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11143 if test yes = "$fast_install" && test -n "$relink_command"; then
958811144 func_append rmfiles " $odir/lt-$name"
958911145 fi
9590 if test "X$noexename" != "X$name" ; then
9591 func_append rmfiles " $odir/lt-${noexename}.c"
11146 if test "X$noexename" != "X$name"; then
11147 func_append rmfiles " $odir/lt-$noexename.c"
959211148 fi
959311149 fi
959411150 fi
959711153 func_show_eval "$RM $rmfiles" 'exit_status=1'
959811154 done
959911155
9600 # Try to remove the ${objdir}s in the directories where we deleted files
11156 # Try to remove the $objdir's in the directories where we deleted files
960111157 for dir in $rmdirs; do
960211158 if test -d "$dir"; then
960311159 func_show_eval "rmdir $dir >/dev/null 2>&1"
960711163 exit $exit_status
960811164 }
960911165
9610 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9611 func_mode_uninstall ${1+"$@"}
11166 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11167 func_mode_uninstall ${1+"$@"}
11168 fi
961211169
961311170 test -z "$opt_mode" && {
9614 help="$generic_help"
11171 help=$generic_help
961511172 func_fatal_help "you must specify a MODE"
961611173 }
961711174
961811175 test -z "$exec_cmd" && \
9619 func_fatal_help "invalid operation mode \`$opt_mode'"
11176 func_fatal_help "invalid operation mode '$opt_mode'"
962011177
962111178 if test -n "$exec_cmd"; then
962211179 eval exec "$exec_cmd"
962711184
962811185
962911186 # The TAGs below are defined such that we never get into a situation
9630 # in which we disable both kinds of libraries. Given conflicting
11187 # where we disable both kinds of libraries. Given conflicting
963111188 # choices, we go for a static library, that is the most portable,
963211189 # since we can't tell whether shared libraries were disabled because
963311190 # the user asked for that or because the platform doesn't support
965011207 # mode:shell-script
965111208 # sh-indentation:2
965211209 # End:
9653 # vi:sw=2
9654
0 # Makefile.in generated by automake 1.13.4 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 = m4
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8190 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8291 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
8392 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
8897 $(top_srcdir)/m4/tp-linker-flag.m4 $(top_srcdir)/configure.ac
8998 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9099 $(ACLOCAL_M4)
100 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
91101 mkinstalldirs = $(install_sh) -d
92102 CONFIG_HEADER = $(top_builddir)/config.h
93103 CONFIG_CLEAN_FILES =
112122 *) (install-info --version) >/dev/null 2>&1;; \
113123 esac
114124 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
125 am__DIST_COMMON = $(srcdir)/Makefile.in
115126 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
116127 ACLOCAL = @ACLOCAL@
117128 AMTAR = @AMTAR@
162173 LIPO = @LIPO@
163174 LN_S = @LN_S@
164175 LTLIBOBJS = @LTLIBOBJS@
176 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
165177 MAKEINFO = @MAKEINFO@
166178 MANIFEST_TOOL = @MANIFEST_TOOL@
167179 MKDIR_P = @MKDIR_P@
245257 psdir = @psdir@
246258 pyexecdir = @pyexecdir@
247259 pythondir = @pythondir@
260 runstatedir = @runstatedir@
248261 sbindir = @sbindir@
249262 sharedstatedir = @sharedstatedir@
250263 srcdir = @srcdir@
273286 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
274287 $(am__cd) $(top_srcdir) && \
275288 $(AUTOMAKE) --gnu m4/Makefile
276 .PRECIOUS: Makefile
277289 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
278290 @case '$?' in \
279291 *config.status*) \
280292 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
281293 *) \
282 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
283 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
294 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
295 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
284296 esac;
285297
286298 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
304316 cscope cscopelist:
305317
306318
307 distdir: $(DISTFILES)
319 distdir: $(BUILT_SOURCES)
320 $(MAKE) $(AM_MAKEFLAGS) distdir-am
321
322 distdir-am: $(DISTFILES)
308323 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
309324 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
310325 list='$(DISTFILES)'; \
448463 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
449464 tags-am uninstall uninstall-am
450465
466 .PRECIOUS: Makefile
467
451468
452469 # Tell versions [3.59,3.63) of GNU make to not export all variables.
453470 # Otherwise a system limit (for SysV at least) may be exceeded.
00 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
11 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
2 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
53 # Written by Gordon Matzigkeit, 1996
64 #
75 # This file is free software; the Free Software Foundation gives
97 # modifications, as long as this notice is preserved.
108
119 m4_define([_LT_COPYING], [dnl
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
15 # Written by Gordon Matzigkeit, 1996
10 # Copyright (C) 2014 Free Software Foundation, Inc.
11 # This is free software; see the source for copying conditions. There is NO
12 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 # GNU Libtool is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of of the License, or
17 # (at your option) any later version.
1618 #
17 # This file is part of GNU Libtool.
19 # As a special exception to the GNU General Public License, if you
20 # distribute this file as part of a program or library that is built
21 # using GNU Libtool, you may include this file under the same
22 # distribution terms that you use for the rest of that program.
1823 #
19 # GNU Libtool is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU General Public License as
21 # published by the Free Software Foundation; either version 2 of
22 # the License, or (at your option) any later version.
23 #
24 # As a special exception to the GNU General Public License,
25 # if you distribute this file as part of a program or library that
26 # is built using GNU Libtool, you may include this file under the
27 # same distribution terms that you use for the rest of that program.
28 #
29 # GNU Libtool is distributed in the hope that it will be useful,
30 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24 # GNU Libtool is distributed in the hope that it will be useful, but
25 # WITHOUT ANY WARRANTY; without even the implied warranty of
3126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3227 # GNU General Public License for more details.
3328 #
3429 # You should have received a copy of the GNU General Public License
35 # along with GNU Libtool; see the file COPYING. If not, a copy
36 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37 # obtained by writing to the Free Software Foundation, Inc.,
38 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30 # along with this program. If not, see <http://www.gnu.org/licenses/>.
3931 ])
4032
41 # serial 57 LT_INIT
33 # serial 58 LT_INIT
4234
4335
4436 # LT_PREREQ(VERSION)
6658 # LT_INIT([OPTIONS])
6759 # ------------------
6860 AC_DEFUN([LT_INIT],
69 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
61 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
7062 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
7163 AC_BEFORE([$0], [LT_LANG])dnl
7264 AC_BEFORE([$0], [LT_OUTPUT])dnl
9082 _LT_SET_OPTIONS([$0], [$1])
9183
9284 # This can be used to rebuild libtool when needed
93 LIBTOOL_DEPS="$ltmain"
85 LIBTOOL_DEPS=$ltmain
9486
9587 # Always use our own libtool.
9688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
110102 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
111103
112104
105 # _LT_PREPARE_CC_BASENAME
106 # -----------------------
107 m4_defun([_LT_PREPARE_CC_BASENAME], [
108 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
109 func_cc_basename ()
110 {
111 for cc_temp in @S|@*""; do
112 case $cc_temp in
113 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
114 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
115 \-*) ;;
116 *) break;;
117 esac
118 done
119 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
120 }
121 ])# _LT_PREPARE_CC_BASENAME
122
123
113124 # _LT_CC_BASENAME(CC)
114125 # -------------------
115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
126 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
127 # but that macro is also expanded into generated libtool script, which
128 # arranges for $SED and $ECHO to be set by different means.
116129 m4_defun([_LT_CC_BASENAME],
117 [for cc_temp in $1""; do
118 case $cc_temp in
119 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 \-*) ;;
122 *) break;;
123 esac
124 done
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
130 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
131 AC_REQUIRE([_LT_DECL_SED])dnl
132 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
133 func_cc_basename $1
134 cc_basename=$func_cc_basename_result
126135 ])
127136
128137
129138 # _LT_FILEUTILS_DEFAULTS
130139 # ----------------------
131140 # It is okay to use these file commands and assume they have been set
132 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
141 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
133142 m4_defun([_LT_FILEUTILS_DEFAULTS],
134143 [: ${CP="cp -f"}
135144 : ${MV="mv -f"}
176185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
177186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178187 m4_require([_LT_WITH_SYSROOT])dnl
188 m4_require([_LT_CMD_TRUNCATE])dnl
179189
180190 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
191 # See if we are running on zsh, and set the options that allow our
182192 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
193 if test -n "\${ZSH_VERSION+set}"; then
184194 setopt NO_GLOB_SUBST
185195 fi
186196 ])
187 if test -n "${ZSH_VERSION+set}" ; then
197 if test -n "${ZSH_VERSION+set}"; then
188198 setopt NO_GLOB_SUBST
189199 fi
190200
197207 # AIX sometimes has problems with the GCC collect2 program. For some
198208 # reason, if we set the COLLECT_NAMES environment variable, the problems
199209 # vanish in a puff of smoke.
200 if test "X${COLLECT_NAMES+set}" != Xset; then
210 if test set != "${COLLECT_NAMES+set}"; then
201211 COLLECT_NAMES=
202212 export COLLECT_NAMES
203213 fi
208218 ofile=libtool
209219 can_build_shared=yes
210220
211 # All known linkers require a `.a' archive for static linking (except MSVC,
221 # All known linkers require a '.a' archive for static linking (except MSVC,
212222 # which needs '.lib').
213223 libext=a
214224
215 with_gnu_ld="$lt_cv_prog_gnu_ld"
216
217 old_CC="$CC"
218 old_CFLAGS="$CFLAGS"
225 with_gnu_ld=$lt_cv_prog_gnu_ld
226
227 old_CC=$CC
228 old_CFLAGS=$CFLAGS
219229
220230 # Set sane defaults for various variables
221231 test -z "$CC" && CC=cc
268278
269279 # _LT_PROG_LTMAIN
270280 # ---------------
271 # Note that this code is called both from `configure', and `config.status'
281 # Note that this code is called both from 'configure', and 'config.status'
272282 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
273 # `config.status' has no value for ac_aux_dir unless we are using Automake,
283 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
274284 # so we pass a copy along to make sure it has a sensible value anyway.
275285 m4_defun([_LT_PROG_LTMAIN],
276286 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
277287 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
278 ltmain="$ac_aux_dir/ltmain.sh"
288 ltmain=$ac_aux_dir/ltmain.sh
279289 ])# _LT_PROG_LTMAIN
280290
281291
285295
286296 # So that we can recreate a full libtool script including additional
287297 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
288 # in macros and then make a single call at the end using the `libtool'
298 # in macros and then make a single call at the end using the 'libtool'
289299 # label.
290300
291301
420430
421431 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
422432 # ------------------------------------
423 # Quote a variable value, and forward it to `config.status' so that its
424 # declaration there will have the same value as in `configure'. VARNAME
433 # Quote a variable value, and forward it to 'config.status' so that its
434 # declaration there will have the same value as in 'configure'. VARNAME
425435 # must have a single quote delimited value for this to work.
426436 m4_define([_LT_CONFIG_STATUS_DECLARE],
427437 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
445455 # Output comment and list of tags supported by the script
446456 m4_defun([_LT_LIBTOOL_TAGS],
447457 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
448 available_tags="_LT_TAGS"dnl
458 available_tags='_LT_TAGS'dnl
449459 ])
450460
451461
473483 # _LT_LIBTOOL_CONFIG_VARS
474484 # -----------------------
475485 # Produce commented declarations of non-tagged libtool config variables
476 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
486 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
477487 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
478488 # section) are produced by _LT_LIBTOOL_TAG_VARS.
479489 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
499509 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
500510 # variables for single and double quote escaping we saved from calls
501511 # to _LT_DECL, we can put quote escaped variables declarations
502 # into `config.status', and then the shell code to quote escape them in
503 # for loops in `config.status'. Finally, any additional code accumulated
512 # into 'config.status', and then the shell code to quote escape them in
513 # for loops in 'config.status'. Finally, any additional code accumulated
504514 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
505515 m4_defun([_LT_CONFIG_COMMANDS],
506516 [AC_PROVIDE_IFELSE([LT_OUTPUT],
546556 ]], lt_decl_quote_varnames); do
547557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
548558 *[[\\\\\\\`\\"\\\$]]*)
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
550560 ;;
551561 *)
552562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
559569 ]], lt_decl_dquote_varnames); do
560570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
561571 *[[\\\\\\\`\\"\\\$]]*)
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
563573 ;;
564574 *)
565575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
575585 # Generate a child script FILE with all initialization necessary to
576586 # reuse the environment learned by the parent script, and make the
577587 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
588 # '#!' sequence but before initialization text begins. After this
579589 # macro, additional text can be appended to FILE to form the body of
580590 # the child script. The macro ends with non-zero status if the
581591 # file could not be fully written (such as if the disk is full).
597607 _AS_PREPARE
598608 exec AS_MESSAGE_FD>&1
599609 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
610 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
601611 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
602612
603613 # LT_OUTPUT
620630 } >&AS_MESSAGE_LOG_FD
621631
622632 lt_cl_help="\
623 \`$as_me' creates a local libtool stub from the current configuration,
633 '$as_me' creates a local libtool stub from the current configuration,
624634 for use in further configure time tests before the real libtool is
625635 generated.
626636
642652 This config.lt script is free software; the Free Software Foundation
643653 gives unlimited permision to copy, distribute and modify it."
644654
645 while test $[#] != 0
655 while test 0 != $[#]
646656 do
647657 case $[1] in
648658 --version | --v* | -V )
655665 lt_cl_silent=: ;;
656666
657667 -*) AC_MSG_ERROR([unrecognized option: $[1]
658 Try \`$[0] --help' for more information.]) ;;
668 Try '$[0] --help' for more information.]) ;;
659669
660670 *) AC_MSG_ERROR([unrecognized argument: $[1]
661 Try \`$[0] --help' for more information.]) ;;
671 Try '$[0] --help' for more information.]) ;;
662672 esac
663673 shift
664674 done
684694 # open by configure. Here we exec the FD to /dev/null, effectively closing
685695 # config.log, so it can be properly (re)opened and appended to by config.lt.
686696 lt_cl_success=:
687 test "$silent" = yes &&
697 test yes = "$silent" &&
688698 lt_config_lt_args="$lt_config_lt_args --quiet"
689699 exec AS_MESSAGE_LOG_FD>/dev/null
690700 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
704714 _LT_CONFIG_SAVE_COMMANDS([
705715 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
706716 m4_if(_LT_TAG, [C], [
707 # See if we are running on zsh, and set the options which allow our
717 # See if we are running on zsh, and set the options that allow our
708718 # commands through without removal of \ escapes.
709 if test -n "${ZSH_VERSION+set}" ; then
719 if test -n "${ZSH_VERSION+set}"; then
710720 setopt NO_GLOB_SUBST
711721 fi
712722
713 cfgfile="${ofile}T"
723 cfgfile=${ofile}T
714724 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
715725 $RM "$cfgfile"
716726
717727 cat <<_LT_EOF >> "$cfgfile"
718728 #! $SHELL
719
720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
729 # Generated automatically by $as_me ($PACKAGE) $VERSION
722730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
723731 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
732
733 # Provide generalized library-building support services.
734 # Written by Gordon Matzigkeit, 1996
735
725736 _LT_COPYING
726737 _LT_LIBTOOL_TAGS
738
739 # Configured defaults for sys_lib_dlsearch_path munging.
740 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
727741
728742 # ### BEGIN LIBTOOL CONFIG
729743 _LT_LIBTOOL_CONFIG_VARS
730744 _LT_LIBTOOL_TAG_VARS
731745 # ### END LIBTOOL CONFIG
746
747 _LT_EOF
748
749 cat <<'_LT_EOF' >> "$cfgfile"
750
751 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
752
753 _LT_PREPARE_MUNGE_PATH_LIST
754 _LT_PREPARE_CC_BASENAME
755
756 # ### END FUNCTIONS SHARED WITH CONFIGURE
732757
733758 _LT_EOF
734759
738763 # AIX sometimes has problems with the GCC collect2 program. For some
739764 # reason, if we set the COLLECT_NAMES environment variable, the problems
740765 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
766 if test set != "${COLLECT_NAMES+set}"; then
742767 COLLECT_NAMES=
743768 export COLLECT_NAMES
744769 fi
754779 # is reportedly fixed, but why not run on old versions too?
755780 sed '$q' "$ltmain" >> "$cfgfile" \
756781 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759782
760783 mv -f "$cfgfile" "$ofile" ||
761784 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
774797 [m4_if([$1], [], [
775798 PACKAGE='$PACKAGE'
776799 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778800 RM='$RM'
779801 ofile='$ofile'], [])
780802 ])dnl /_LT_CONFIG_SAVE_COMMANDS
973995
974996 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975997 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
998 if test -z "$LT_MULTI_MODULE"; then
977999 # By default we will add the -single_module flag. You can override
9781000 # by either setting the environment variable LT_MULTI_MODULE
9791001 # non-empty at configure time, or by adding -multi_module to the
9911013 cat conftest.err >&AS_MESSAGE_LOG_FD
9921014 # Otherwise, if the output was created with a 0 exit code from
9931015 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1016 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9951017 lt_cv_apple_cc_single_mod=yes
9961018 else
9971019 cat conftest.err >&AS_MESSAGE_LOG_FD
10091031 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
10101032 [lt_cv_ld_exported_symbols_list=yes],
10111033 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1034 LDFLAGS=$save_LDFLAGS
10131035 ])
10141036
10151037 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
10311053 _lt_result=$?
10321054 if test -s conftest.err && $GREP force_load conftest.err; then
10331055 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1056 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10351057 lt_cv_ld_force_load=yes
10361058 else
10371059 cat conftest.err >&AS_MESSAGE_LOG_FD
10411063 ])
10421064 case $host_os in
10431065 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1066 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10451067 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1068 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10471069 darwin*) # darwin 5.x on
10481070 # if running on 10.5 or later, the deployment target defaults
10491071 # to the OS version, if on x86, and 10.4, the deployment
10501072 # target defaults to 10.4. Don't you love it?
10511073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10521074 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 10.[[012]]*)
1055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1076 10.[[012]][[,.]]*)
1077 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10561078 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1079 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10581080 esac
10591081 ;;
10601082 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1083 if test yes = "$lt_cv_apple_cc_single_mod"; then
10621084 _lt_dar_single_mod='$single_module'
10631085 fi
1064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1086 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1087 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10661088 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1089 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10681090 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1091 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10701092 _lt_dsymutil='~$DSYMUTIL $lib || :'
10711093 else
10721094 _lt_dsymutil=
10861108 _LT_TAGVAR(hardcode_direct, $1)=no
10871109 _LT_TAGVAR(hardcode_automatic, $1)=yes
10881110 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _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\"`'
1111 if test yes = "$lt_cv_ld_force_load"; then
1112 _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\"`'
10911113 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
10921114 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
10931115 else
10941116 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
10951117 fi
10961118 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1119 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
10981120 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1121 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11001122 *) _lt_dar_can_shared=$GCC ;;
11011123 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1124 if test yes = "$_lt_dar_can_shared"; then
11031125 output_verbose_link_cmd=func_echo_all
1104 _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}"
1105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1106 _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}"
1107 _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}"
1126 _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"
1127 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1128 _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"
1129 _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"
11081130 m4_if([$1], [CXX],
1109 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1110 _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}"
1111 _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}"
1131 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1132 _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"
1133 _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"
11121134 fi
11131135 ],[])
11141136 else
11281150 # Allow to override them for all tags through lt_cv_aix_libpath.
11291151 m4_defun([_LT_SYS_MODULE_PATH_AIX],
11301152 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1153 if test set = "${lt_cv_aix_libpath+set}"; then
11321154 aix_libpath=$lt_cv_aix_libpath
11331155 else
11341156 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
11461168 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11471169 fi],[])
11481170 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1171 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
11501172 fi
11511173 ])
11521174 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
11661188 # -----------------------
11671189 # Find how we can fake an echo command that does not interpret backslash.
11681190 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
1191 # of the generated configure script that will find a shell with a builtin
1192 # printf (that we can use as an echo command).
11711193 m4_defun([_LT_PROG_ECHO_BACKSLASH],
11721194 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11731195 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11951217 # Invoke $ECHO with all args, space-separated.
11961218 func_echo_all ()
11971219 {
1198 $ECHO "$*"
1220 $ECHO "$*"
11991221 }
12001222
1201 case "$ECHO" in
1223 case $ECHO in
12021224 printf*) AC_MSG_RESULT([printf]) ;;
12031225 print*) AC_MSG_RESULT([print -r]) ;;
12041226 *) AC_MSG_RESULT([cat]) ;;
12241246 AC_DEFUN([_LT_WITH_SYSROOT],
12251247 [AC_MSG_CHECKING([for sysroot])
12261248 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1249 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1250 [Search for dependent libraries within DIR (or the compiler's sysroot
1251 if not specified).])],
12291252 [], [with_sysroot=no])
12301253
12311254 dnl lt_sysroot will always be passed unquoted. We quote it here
12321255 dnl in case the user passed a directory name.
12331256 lt_sysroot=
1234 case ${with_sysroot} in #(
1257 case $with_sysroot in #(
12351258 yes)
1236 if test "$GCC" = yes; then
1259 if test yes = "$GCC"; then
12371260 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12381261 fi
12391262 ;; #(
12431266 no|'')
12441267 ;; #(
12451268 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1269 AC_MSG_RESULT([$with_sysroot])
12471270 AC_MSG_ERROR([The sysroot must be an absolute path.])
12481271 ;;
12491272 esac
12501273
12511274 AC_MSG_RESULT([${lt_sysroot:-no}])
12521275 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1276 [dependent libraries, and where our libraries should be installed.])])
12541277
12551278 # _LT_ENABLE_LOCK
12561279 # ---------------
12581281 [AC_ARG_ENABLE([libtool-lock],
12591282 [AS_HELP_STRING([--disable-libtool-lock],
12601283 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1284 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12621285
12631286 # Some flags need to be propagated to the compiler or linker for good
12641287 # libtool support.
12651288 case $host in
12661289 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1290 # Find out what ABI is being produced by ac_compile, and set mode
1291 # options accordingly.
12681292 echo 'int i;' > conftest.$ac_ext
12691293 if AC_TRY_EVAL(ac_compile); then
12701294 case `/usr/bin/file conftest.$ac_objext` in
12711295 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1296 HPUX_IA64_MODE=32
12731297 ;;
12741298 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1299 HPUX_IA64_MODE=64
12761300 ;;
12771301 esac
12781302 fi
12791303 rm -rf conftest*
12801304 ;;
12811305 *-*-irix6*)
1282 # Find out which ABI we are using.
1306 # Find out what ABI is being produced by ac_compile, and set linker
1307 # options accordingly.
12831308 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12841309 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1310 if test yes = "$lt_cv_prog_gnu_ld"; then
12861311 case `/usr/bin/file conftest.$ac_objext` in
12871312 *32-bit*)
12881313 LD="${LD-ld} -melf32bsmip"
13111336 rm -rf conftest*
13121337 ;;
13131338
1314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1339 mips64*-*linux*)
1340 # Find out what ABI is being produced by ac_compile, and set linker
1341 # options accordingly.
1342 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1343 if AC_TRY_EVAL(ac_compile); then
1344 emul=elf
1345 case `/usr/bin/file conftest.$ac_objext` in
1346 *32-bit*)
1347 emul="${emul}32"
1348 ;;
1349 *64-bit*)
1350 emul="${emul}64"
1351 ;;
1352 esac
1353 case `/usr/bin/file conftest.$ac_objext` in
1354 *MSB*)
1355 emul="${emul}btsmip"
1356 ;;
1357 *LSB*)
1358 emul="${emul}ltsmip"
1359 ;;
1360 esac
1361 case `/usr/bin/file conftest.$ac_objext` in
1362 *N32*)
1363 emul="${emul}n32"
1364 ;;
1365 esac
1366 LD="${LD-ld} -m $emul"
1367 fi
1368 rm -rf conftest*
1369 ;;
1370
1371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13151372 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1373 # Find out what ABI is being produced by ac_compile, and set linker
1374 # options accordingly. Note that the listed cases only cover the
1375 # situations where additional linker options are needed (such as when
1376 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1377 # vice versa); the common cases where no linker options are needed do
1378 # not appear in the list.
13171379 echo 'int i;' > conftest.$ac_ext
13181380 if AC_TRY_EVAL(ac_compile); then
13191381 case `/usr/bin/file conftest.o` in
13231385 LD="${LD-ld} -m elf_i386_fbsd"
13241386 ;;
13251387 x86_64-*linux*)
1326 LD="${LD-ld} -m elf_i386"
1388 case `/usr/bin/file conftest.o` in
1389 *x86-64*)
1390 LD="${LD-ld} -m elf32_x86_64"
1391 ;;
1392 *)
1393 LD="${LD-ld} -m elf_i386"
1394 ;;
1395 esac
13271396 ;;
1328 ppc64-*linux*|powerpc64-*linux*)
1397 powerpc64le-*linux*)
1398 LD="${LD-ld} -m elf32lppclinux"
1399 ;;
1400 powerpc64-*linux*)
13291401 LD="${LD-ld} -m elf32ppclinux"
13301402 ;;
13311403 s390x-*linux*)
13441416 x86_64-*linux*)
13451417 LD="${LD-ld} -m elf_x86_64"
13461418 ;;
1347 ppc*-*linux*|powerpc*-*linux*)
1419 powerpcle-*linux*|powerpc64le-*linux*)
1420 LD="${LD-ld} -m elf64lppc"
1421 ;;
1422 powerpc-*linux*|powerpc64-*linux*)
13481423 LD="${LD-ld} -m elf64ppc"
13491424 ;;
13501425 s390*-*linux*|s390*-*tpf*)
13621437
13631438 *-*-sco3.2v5*)
13641439 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1365 SAVE_CFLAGS="$CFLAGS"
1440 SAVE_CFLAGS=$CFLAGS
13661441 CFLAGS="$CFLAGS -belf"
13671442 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
13681443 [AC_LANG_PUSH(C)
13691444 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13701445 AC_LANG_POP])
1371 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1446 if test yes != "$lt_cv_cc_needs_belf"; then
13721447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1373 CFLAGS="$SAVE_CFLAGS"
1448 CFLAGS=$SAVE_CFLAGS
13741449 fi
13751450 ;;
13761451 *-*solaris*)
1377 # Find out which ABI we are using.
1452 # Find out what ABI is being produced by ac_compile, and set linker
1453 # options accordingly.
13781454 echo 'int i;' > conftest.$ac_ext
13791455 if AC_TRY_EVAL(ac_compile); then
13801456 case `/usr/bin/file conftest.o` in
13821458 case $lt_cv_prog_gnu_ld in
13831459 yes*)
13841460 case $host in
1385 i?86-*-solaris*)
1461 i?86-*-solaris*|x86_64-*-solaris*)
13861462 LD="${LD-ld} -m elf_x86_64"
13871463 ;;
13881464 sparc*-*-solaris*)
13911467 esac
13921468 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13931469 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1394 LD="${LD-ld}_sol2"
1470 LD=${LD-ld}_sol2
13951471 fi
13961472 ;;
13971473 *)
14071483 ;;
14081484 esac
14091485
1410 need_locks="$enable_libtool_lock"
1486 need_locks=$enable_libtool_lock
14111487 ])# _LT_ENABLE_LOCK
14121488
14131489
14261502 [echo conftest.$ac_objext > conftest.lst
14271503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
14281504 AC_TRY_EVAL([lt_ar_try])
1429 if test "$ac_status" -eq 0; then
1505 if test 0 -eq "$ac_status"; then
14301506 # Ensure the archiver fails upon bogus file names.
14311507 rm -f conftest.$ac_objext libconftest.a
14321508 AC_TRY_EVAL([lt_ar_try])
1433 if test "$ac_status" -ne 0; then
1509 if test 0 -ne "$ac_status"; then
14341510 lt_cv_ar_at_file=@
14351511 fi
14361512 fi
14381514 ])
14391515 ])
14401516
1441 if test "x$lt_cv_ar_at_file" = xno; then
1517 if test no = "$lt_cv_ar_at_file"; then
14421518 archiver_list_spec=
14431519 else
14441520 archiver_list_spec=$lt_cv_ar_at_file
14691545
14701546 if test -n "$RANLIB"; then
14711547 case $host_os in
1472 openbsd*)
1548 bitrig* | openbsd*)
14731549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14741550 ;;
14751551 *)
15051581 [$2=no
15061582 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
15071583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1508 lt_compiler_flag="$3"
1584 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
15091585 # Insert the option either (1) after the last *FLAGS variable, or
15101586 # (2) before a word containing "conftest.", or (3) at the end.
15111587 # Note that $ac_compile itself does not contain backslashes and begins
15321608 $RM conftest*
15331609 ])
15341610
1535 if test x"[$]$2" = xyes; then
1611 if test yes = "[$]$2"; then
15361612 m4_if([$5], , :, [$5])
15371613 else
15381614 m4_if([$6], , :, [$6])
15541630 m4_require([_LT_DECL_SED])dnl
15551631 AC_CACHE_CHECK([$1], [$2],
15561632 [$2=no
1557 save_LDFLAGS="$LDFLAGS"
1633 save_LDFLAGS=$LDFLAGS
15581634 LDFLAGS="$LDFLAGS $3"
15591635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15601636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15731649 fi
15741650 fi
15751651 $RM -r conftest*
1576 LDFLAGS="$save_LDFLAGS"
1652 LDFLAGS=$save_LDFLAGS
15771653 ])
15781654
1579 if test x"[$]$2" = xyes; then
1655 if test yes = "[$]$2"; then
15801656 m4_if([$4], , :, [$4])
15811657 else
15821658 m4_if([$5], , :, [$5])
15971673 AC_MSG_CHECKING([the maximum length of command line arguments])
15981674 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
15991675 i=0
1600 teststring="ABCD"
1676 teststring=ABCD
16011677
16021678 case $build_os in
16031679 msdosdjgpp*)
16311707 lt_cv_sys_max_cmd_len=8192;
16321708 ;;
16331709
1710 mint*)
1711 # On MiNT this can take a long time and run out of memory.
1712 lt_cv_sys_max_cmd_len=8192;
1713 ;;
1714
16341715 amigaos*)
16351716 # On AmigaOS with pdksh, this test takes hours, literally.
16361717 # So we just punt and use a minimum line length of 8192.
16371718 lt_cv_sys_max_cmd_len=8192;
16381719 ;;
16391720
1640 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1721 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
16411722 # This has been around since 386BSD, at least. Likely further.
16421723 if test -x /sbin/sysctl; then
16431724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16871768 ;;
16881769 *)
16891770 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1690 if test -n "$lt_cv_sys_max_cmd_len"; then
1771 if test -n "$lt_cv_sys_max_cmd_len" && \
1772 test undefined != "$lt_cv_sys_max_cmd_len"; then
16911773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16921774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16931775 else
16941776 # Make teststring a little bigger before we do anything with it.
16951777 # a 1K string should be a reasonable start.
1696 for i in 1 2 3 4 5 6 7 8 ; do
1778 for i in 1 2 3 4 5 6 7 8; do
16971779 teststring=$teststring$teststring
16981780 done
16991781 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
17001782 # If test is not a shell built-in, we'll probably end up computing a
17011783 # maximum length that is only half of the actual maximum length, but
17021784 # we can't tell.
1703 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1785 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
17041786 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1705 test $i != 17 # 1/2 MB should be enough
1787 test 17 != "$i" # 1/2 MB should be enough
17061788 do
17071789 i=`expr $i + 1`
17081790 teststring=$teststring$teststring
17181800 ;;
17191801 esac
17201802 ])
1721 if test -n $lt_cv_sys_max_cmd_len ; then
1803 if test -n "$lt_cv_sys_max_cmd_len"; then
17221804 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
17231805 else
17241806 AC_MSG_RESULT(none)
17461828 # ----------------------------------------------------------------
17471829 m4_defun([_LT_TRY_DLOPEN_SELF],
17481830 [m4_require([_LT_HEADER_DLFCN])dnl
1749 if test "$cross_compiling" = yes; then :
1831 if test yes = "$cross_compiling"; then :
17501832 [$4]
17511833 else
17521834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17931875 # endif
17941876 #endif
17951877
1796 /* When -fvisbility=hidden is used, assume the code has been annotated
1878 /* When -fvisibility=hidden is used, assume the code has been annotated
17971879 correspondingly for the symbols needed. */
1798 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1880 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17991881 int fnord () __attribute__((visibility("default")));
18001882 #endif
18011883
18211903 return status;
18221904 }]
18231905 _LT_EOF
1824 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1906 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
18251907 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
18261908 lt_status=$?
18271909 case x$lt_status in
18421924 # ------------------
18431925 AC_DEFUN([LT_SYS_DLOPEN_SELF],
18441926 [m4_require([_LT_HEADER_DLFCN])dnl
1845 if test "x$enable_dlopen" != xyes; then
1927 if test yes != "$enable_dlopen"; then
18461928 enable_dlopen=unknown
18471929 enable_dlopen_self=unknown
18481930 enable_dlopen_self_static=unknown
18521934
18531935 case $host_os in
18541936 beos*)
1855 lt_cv_dlopen="load_add_on"
1937 lt_cv_dlopen=load_add_on
18561938 lt_cv_dlopen_libs=
18571939 lt_cv_dlopen_self=yes
18581940 ;;
18591941
18601942 mingw* | pw32* | cegcc*)
1861 lt_cv_dlopen="LoadLibrary"
1943 lt_cv_dlopen=LoadLibrary
18621944 lt_cv_dlopen_libs=
18631945 ;;
18641946
18651947 cygwin*)
1866 lt_cv_dlopen="dlopen"
1948 lt_cv_dlopen=dlopen
18671949 lt_cv_dlopen_libs=
18681950 ;;
18691951
18701952 darwin*)
1871 # if libdl is installed we need to link against it
1953 # if libdl is installed we need to link against it
18721954 AC_CHECK_LIB([dl], [dlopen],
1873 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1874 lt_cv_dlopen="dyld"
1955 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1956 lt_cv_dlopen=dyld
18751957 lt_cv_dlopen_libs=
18761958 lt_cv_dlopen_self=yes
18771959 ])
18781960 ;;
18791961
1962 tpf*)
1963 # Don't try to run any link tests for TPF. We know it's impossible
1964 # because TPF is a cross-compiler, and we know how we open DSOs.
1965 lt_cv_dlopen=dlopen
1966 lt_cv_dlopen_libs=
1967 lt_cv_dlopen_self=no
1968 ;;
1969
18801970 *)
18811971 AC_CHECK_FUNC([shl_load],
1882 [lt_cv_dlopen="shl_load"],
1972 [lt_cv_dlopen=shl_load],
18831973 [AC_CHECK_LIB([dld], [shl_load],
1884 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1974 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
18851975 [AC_CHECK_FUNC([dlopen],
1886 [lt_cv_dlopen="dlopen"],
1976 [lt_cv_dlopen=dlopen],
18871977 [AC_CHECK_LIB([dl], [dlopen],
1888 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1978 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
18891979 [AC_CHECK_LIB([svld], [dlopen],
1890 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1980 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
18911981 [AC_CHECK_LIB([dld], [dld_link],
1892 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1982 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
18931983 ])
18941984 ])
18951985 ])
18981988 ;;
18991989 esac
19001990
1901 if test "x$lt_cv_dlopen" != xno; then
1991 if test no = "$lt_cv_dlopen"; then
1992 enable_dlopen=no
1993 else
19021994 enable_dlopen=yes
1903 else
1904 enable_dlopen=no
19051995 fi
19061996
19071997 case $lt_cv_dlopen in
19081998 dlopen)
1909 save_CPPFLAGS="$CPPFLAGS"
1910 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1911
1912 save_LDFLAGS="$LDFLAGS"
1999 save_CPPFLAGS=$CPPFLAGS
2000 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2001
2002 save_LDFLAGS=$LDFLAGS
19132003 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19142004
1915 save_LIBS="$LIBS"
2005 save_LIBS=$LIBS
19162006 LIBS="$lt_cv_dlopen_libs $LIBS"
19172007
19182008 AC_CACHE_CHECK([whether a program can dlopen itself],
19222012 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
19232013 ])
19242014
1925 if test "x$lt_cv_dlopen_self" = xyes; then
2015 if test yes = "$lt_cv_dlopen_self"; then
19262016 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19272017 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
19282018 lt_cv_dlopen_self_static, [dnl
19322022 ])
19332023 fi
19342024
1935 CPPFLAGS="$save_CPPFLAGS"
1936 LDFLAGS="$save_LDFLAGS"
1937 LIBS="$save_LIBS"
2025 CPPFLAGS=$save_CPPFLAGS
2026 LDFLAGS=$save_LDFLAGS
2027 LIBS=$save_LIBS
19382028 ;;
19392029 esac
19402030
20262116 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20272117 _LT_COMPILER_C_O([$1])
20282118
2029 hard_links="nottested"
2030 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2119 hard_links=nottested
2120 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
20312121 # do not overwrite the value of need_locks provided by the user
20322122 AC_MSG_CHECKING([if we can lock with hard links])
20332123 hard_links=yes
20372127 ln conftest.a conftest.b 2>&5 || hard_links=no
20382128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20392129 AC_MSG_RESULT([$hard_links])
2040 if test "$hard_links" = no; then
2041 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2130 if test no = "$hard_links"; then
2131 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
20422132 need_locks=warn
20432133 fi
20442134 else
20652155 _LT_DECL([], [objdir], [0],
20662156 [The name of the directory that contains temporary libtool files])dnl
20672157 m4_pattern_allow([LT_OBJDIR])dnl
2068 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2069 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2158 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2159 [Define to the sub-directory where libtool stores uninstalled libraries.])
20702160 ])# _LT_CHECK_OBJDIR
20712161
20722162
20782168 _LT_TAGVAR(hardcode_action, $1)=
20792169 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
20802170 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2081 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2171 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
20822172
20832173 # We can hardcode non-existent directories.
2084 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2174 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
20852175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20862176 # have to relink, otherwise we might link with an installed library
20872177 # when we should be linking with a yet-to-be-installed one
2088 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2089 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2178 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2179 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
20902180 # Linking always hardcodes the temporary library directory.
20912181 _LT_TAGVAR(hardcode_action, $1)=relink
20922182 else
21002190 fi
21012191 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
21022192
2103 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2104 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2193 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2194 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
21052195 # Fast installation is not supported
21062196 enable_fast_install=no
2107 elif test "$shlibpath_overrides_runpath" = yes ||
2108 test "$enable_shared" = no; then
2197 elif test yes = "$shlibpath_overrides_runpath" ||
2198 test no = "$enable_shared"; then
21092199 # Fast installation is not necessary
21102200 enable_fast_install=needless
21112201 fi
21292219 # FIXME - insert some real tests, host_os isn't really good enough
21302220 case $host_os in
21312221 darwin*)
2132 if test -n "$STRIP" ; then
2222 if test -n "$STRIP"; then
21332223 striplib="$STRIP -x"
21342224 old_striplib="$STRIP -S"
21352225 AC_MSG_RESULT([yes])
21472237 ])# _LT_CMD_STRIPLIB
21482238
21492239
2240 # _LT_PREPARE_MUNGE_PATH_LIST
2241 # ---------------------------
2242 # Make sure func_munge_path_list() is defined correctly.
2243 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2244 [[# func_munge_path_list VARIABLE PATH
2245 # -----------------------------------
2246 # VARIABLE is name of variable containing _space_ separated list of
2247 # directories to be munged by the contents of PATH, which is string
2248 # having a format:
2249 # "DIR[:DIR]:"
2250 # string "DIR[ DIR]" will be prepended to VARIABLE
2251 # ":DIR[:DIR]"
2252 # string "DIR[ DIR]" will be appended to VARIABLE
2253 # "DIRP[:DIRP]::[DIRA:]DIRA"
2254 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2255 # "DIRA[ DIRA]" will be appended to VARIABLE
2256 # "DIR[:DIR]"
2257 # VARIABLE will be replaced by "DIR[ DIR]"
2258 func_munge_path_list ()
2259 {
2260 case x@S|@2 in
2261 x)
2262 ;;
2263 *:)
2264 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2265 ;;
2266 x:*)
2267 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2268 ;;
2269 *::*)
2270 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2271 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2272 ;;
2273 *)
2274 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2275 ;;
2276 esac
2277 }
2278 ]])# _LT_PREPARE_PATH_LIST
2279
2280
21502281 # _LT_SYS_DYNAMIC_LINKER([TAG])
21512282 # -----------------------------
21522283 # PORTME Fill in your ld.so characteristics
21572288 m4_require([_LT_DECL_OBJDUMP])dnl
21582289 m4_require([_LT_DECL_SED])dnl
21592290 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2291 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
21602292 AC_MSG_CHECKING([dynamic linker characteristics])
21612293 m4_if([$1],
21622294 [], [
2163 if test "$GCC" = yes; then
2295 if test yes = "$GCC"; then
21642296 case $host_os in
2165 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2166 *) lt_awk_arg="/^libraries:/" ;;
2297 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2298 *) lt_awk_arg='/^libraries:/' ;;
21672299 esac
21682300 case $host_os in
2169 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2170 *) lt_sed_strip_eq="s,=/,/,g" ;;
2301 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2302 *) lt_sed_strip_eq='s|=/|/|g' ;;
21712303 esac
21722304 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21732305 case $lt_search_path_spec in
21832315 ;;
21842316 esac
21852317 # Ok, now we have the path, separated by spaces, we can step through it
2186 # and add multilib dir if necessary.
2318 # and add multilib dir if necessary...
21872319 lt_tmp_lt_search_path_spec=
2188 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2320 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2321 # ...but if some path component already ends with the multilib dir we assume
2322 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2323 case "$lt_multi_os_dir; $lt_search_path_spec " in
2324 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2325 lt_multi_os_dir=
2326 ;;
2327 esac
21892328 for lt_sys_path in $lt_search_path_spec; do
2190 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2192 else
2329 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2330 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2331 elif test -n "$lt_multi_os_dir"; then
21932332 test -d "$lt_sys_path" && \
21942333 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21952334 fi
21962335 done
21972336 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2198 BEGIN {RS=" "; FS="/|\n";} {
2199 lt_foo="";
2200 lt_count=0;
2337 BEGIN {RS = " "; FS = "/|\n";} {
2338 lt_foo = "";
2339 lt_count = 0;
22012340 for (lt_i = NF; lt_i > 0; lt_i--) {
22022341 if ($lt_i != "" && $lt_i != ".") {
22032342 if ($lt_i == "..") {
22042343 lt_count++;
22052344 } else {
22062345 if (lt_count == 0) {
2207 lt_foo="/" $lt_i lt_foo;
2346 lt_foo = "/" $lt_i lt_foo;
22082347 } else {
22092348 lt_count--;
22102349 }
22182357 # for these hosts.
22192358 case $host_os in
22202359 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2221 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2360 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
22222361 esac
22232362 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
22242363 else
22272366 library_names_spec=
22282367 libname_spec='lib$name'
22292368 soname_spec=
2230 shrext_cmds=".so"
2369 shrext_cmds=.so
22312370 postinstall_cmds=
22322371 postuninstall_cmds=
22332372 finish_cmds=
22442383 # flags to be left without arguments
22452384 need_version=unknown
22462385
2386 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2387 [User-defined run-time library search path.])
2388
22472389 case $host_os in
22482390 aix3*)
22492391 version_type=linux # correct to gnu/linux during the next big refactor
2250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2392 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22512393 shlibpath_var=LIBPATH
22522394
22532395 # AIX 3 has no versioning support, so we append a major version to the name.
2254 soname_spec='${libname}${release}${shared_ext}$major'
2396 soname_spec='$libname$release$shared_ext$major'
22552397 ;;
22562398
22572399 aix[[4-9]]*)
22592401 need_lib_prefix=no
22602402 need_version=no
22612403 hardcode_into_libs=yes
2262 if test "$host_cpu" = ia64; then
2404 if test ia64 = "$host_cpu"; then
22632405 # AIX 5 supports IA64
2264 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2406 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22652407 shlibpath_var=LD_LIBRARY_PATH
22662408 else
22672409 # With GCC up to 2.95.x, collect2 would create an import file
22682410 # for dependence libraries. The import file would start with
2269 # the line `#! .'. This would cause the generated library to
2270 # depend on `.', always an invalid library. This was fixed in
2411 # the line '#! .'. This would cause the generated library to
2412 # depend on '.', always an invalid library. This was fixed in
22712413 # development snapshots of GCC prior to 3.0.
22722414 case $host_os in
22732415 aix4 | aix4.[[01]] | aix4.[[01]].*)
22742416 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22752417 echo ' yes '
2276 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2418 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22772419 :
22782420 else
22792421 can_build_shared=no
22802422 fi
22812423 ;;
22822424 esac
2283 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2425 # Using Import Files as archive members, it is possible to support
2426 # filename-based versioning of shared library archives on AIX. While
2427 # this would work for both with and without runtime linking, it will
2428 # prevent static linking of such archives. So we do filename-based
2429 # shared library versioning with .so extension only, which is used
2430 # when both runtime linking and shared linking is enabled.
2431 # Unfortunately, runtime linking may impact performance, so we do
2432 # not want this to be the default eventually. Also, we use the
2433 # versioned .so libs for executables only if there is the -brtl
2434 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2435 # To allow for filename-based versioning support, we need to create
2436 # libNAME.so.V as an archive file, containing:
2437 # *) an Import File, referring to the versioned filename of the
2438 # archive as well as the shared archive member, telling the
2439 # bitwidth (32 or 64) of that shared object, and providing the
2440 # list of exported symbols of that shared object, eventually
2441 # decorated with the 'weak' keyword
2442 # *) the shared object with the F_LOADONLY flag set, to really avoid
2443 # it being seen by the linker.
2444 # At run time we better use the real file rather than another symlink,
2445 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2446
2447 case $with_aix_soname,$aix_use_runtimelinking in
2448 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22842449 # soname into executable. Probably we can add versioning support to
22852450 # collect2, so additional links can be useful in future.
2286 if test "$aix_use_runtimelinking" = yes; then
2451 aix,yes) # traditional libtool
2452 dynamic_linker='AIX unversionable lib.so'
22872453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22882454 # instead of lib<name>.a to let people know that these are not
22892455 # typical AIX shared libraries.
2290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2291 else
2456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2457 ;;
2458 aix,no) # traditional AIX only
2459 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
22922460 # We preserve .a as extension for shared libraries through AIX4.2
22932461 # and later when we are not doing run time linking.
2294 library_names_spec='${libname}${release}.a $libname.a'
2295 soname_spec='${libname}${release}${shared_ext}$major'
2296 fi
2462 library_names_spec='$libname$release.a $libname.a'
2463 soname_spec='$libname$release$shared_ext$major'
2464 ;;
2465 svr4,*) # full svr4 only
2466 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2467 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2468 # We do not specify a path in Import Files, so LIBPATH fires.
2469 shlibpath_overrides_runpath=yes
2470 ;;
2471 *,yes) # both, prefer svr4
2472 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2473 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2474 # unpreferred sharedlib libNAME.a needs extra handling
2475 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"'
2476 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"'
2477 # We do not specify a path in Import Files, so LIBPATH fires.
2478 shlibpath_overrides_runpath=yes
2479 ;;
2480 *,no) # both, prefer aix
2481 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2482 library_names_spec='$libname$release.a $libname.a'
2483 soname_spec='$libname$release$shared_ext$major'
2484 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2485 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)'
2486 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"'
2487 ;;
2488 esac
22972489 shlibpath_var=LIBPATH
22982490 fi
22992491 ;;
23032495 powerpc)
23042496 # Since July 2007 AmigaOS4 officially supports .so libraries.
23052497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23072499 ;;
23082500 m68k)
23092501 library_names_spec='$libname.ixlibrary $libname.a'
23102502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2311 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'
2503 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'
23122504 ;;
23132505 esac
23142506 ;;
23152507
23162508 beos*)
2317 library_names_spec='${libname}${shared_ext}'
2509 library_names_spec='$libname$shared_ext'
23182510 dynamic_linker="$host_os ld.so"
23192511 shlibpath_var=LIBRARY_PATH
23202512 ;;
23222514 bsdi[[45]]*)
23232515 version_type=linux # correct to gnu/linux during the next big refactor
23242516 need_version=no
2325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2326 soname_spec='${libname}${release}${shared_ext}$major'
2517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2518 soname_spec='$libname$release$shared_ext$major'
23272519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23282520 shlibpath_var=LD_LIBRARY_PATH
23292521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23352527
23362528 cygwin* | mingw* | pw32* | cegcc*)
23372529 version_type=windows
2338 shrext_cmds=".dll"
2530 shrext_cmds=.dll
23392531 need_version=no
23402532 need_lib_prefix=no
23412533
23442536 # gcc
23452537 library_names_spec='$libname.dll.a'
23462538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2347 postinstall_cmds='base_file=`basename \${file}`~
2348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2539 postinstall_cmds='base_file=`basename \$file`~
2540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23492541 dldir=$destdir/`dirname \$dlpath`~
23502542 test -d \$dldir || mkdir -p \$dldir~
23512543 $install_prog $dir/$dlname \$dldir/$dlname~
23612553 case $host_os in
23622554 cygwin*)
23632555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2556 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23652557 m4_if([$1], [],[
23662558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
23672559 ;;
23682560 mingw* | cegcc*)
23692561 # MinGW DLLs use traditional 'lib' prefix
2370 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2562 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23712563 ;;
23722564 pw32*)
23732565 # pw32 DLLs use 'pw' prefix rather than 'lib'
2374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2566 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23752567 ;;
23762568 esac
23772569 dynamic_linker='Win32 ld.exe'
23802572 *,cl*)
23812573 # Native MSVC
23822574 libname_spec='$name'
2383 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2384 library_names_spec='${libname}.dll.lib'
2575 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2576 library_names_spec='$libname.dll.lib'
23852577
23862578 case $build_os in
23872579 mingw*)
24082600 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24092601 ;;
24102602 *)
2411 sys_lib_search_path_spec="$LIB"
2603 sys_lib_search_path_spec=$LIB
24122604 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
24132605 # It is most probably a Windows format PATH.
24142606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24212613 esac
24222614
24232615 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2424 postinstall_cmds='base_file=`basename \${file}`~
2425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2616 postinstall_cmds='base_file=`basename \$file`~
2617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
24262618 dldir=$destdir/`dirname \$dlpath`~
24272619 test -d \$dldir || mkdir -p \$dldir~
24282620 $install_prog $dir/$dlname \$dldir/$dlname'
24352627
24362628 *)
24372629 # Assume MSVC wrapper
2438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2630 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
24392631 dynamic_linker='Win32 ld.exe'
24402632 ;;
24412633 esac
24482640 version_type=darwin
24492641 need_lib_prefix=no
24502642 need_version=no
2451 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2452 soname_spec='${libname}${release}${major}$shared_ext'
2643 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
2644 soname_spec='$libname$release$major$shared_ext'
24532645 shlibpath_overrides_runpath=yes
24542646 shlibpath_var=DYLD_LIBRARY_PATH
2455 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2647 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
24562648 m4_if([$1], [],[
24572649 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
24582650 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24622654 version_type=linux # correct to gnu/linux during the next big refactor
24632655 need_lib_prefix=no
24642656 need_version=no
2465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2466 soname_spec='${libname}${release}${shared_ext}$major'
2657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2658 soname_spec='$libname$release$shared_ext$major'
24672659 shlibpath_var=LD_LIBRARY_PATH
24682660 ;;
24692661
24782670 *) objformat=elf ;;
24792671 esac
24802672 fi
2481 version_type=freebsd-$objformat
2673 # Handle Gentoo/FreeBSD as it was Linux
2674 case $host_vendor in
2675 gentoo)
2676 version_type=linux ;;
2677 *)
2678 version_type=freebsd-$objformat ;;
2679 esac
2680
24822681 case $version_type in
24832682 freebsd-elf*)
2484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2684 soname_spec='$libname$release$shared_ext$major'
24852685 need_version=no
24862686 need_lib_prefix=no
24872687 ;;
24882688 freebsd-*)
2489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2689 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24902690 need_version=yes
2691 ;;
2692 linux)
2693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2694 soname_spec='${libname}${release}${shared_ext}$major'
2695 need_lib_prefix=no
2696 need_version=no
24912697 ;;
24922698 esac
24932699 shlibpath_var=LD_LIBRARY_PATH
25112717 esac
25122718 ;;
25132719
2514 gnu*)
2515 version_type=linux # correct to gnu/linux during the next big refactor
2516 need_lib_prefix=no
2517 need_version=no
2518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2519 soname_spec='${libname}${release}${shared_ext}$major'
2520 shlibpath_var=LD_LIBRARY_PATH
2521 shlibpath_overrides_runpath=no
2522 hardcode_into_libs=yes
2523 ;;
2524
25252720 haiku*)
25262721 version_type=linux # correct to gnu/linux during the next big refactor
25272722 need_lib_prefix=no
25282723 need_version=no
25292724 dynamic_linker="$host_os runtime_loader"
2530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2531 soname_spec='${libname}${release}${shared_ext}$major'
2725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2726 soname_spec='$libname$release$shared_ext$major'
25322727 shlibpath_var=LIBRARY_PATH
2533 shlibpath_overrides_runpath=yes
2728 shlibpath_overrides_runpath=no
25342729 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
25352730 hardcode_into_libs=yes
25362731 ;;
25482743 dynamic_linker="$host_os dld.so"
25492744 shlibpath_var=LD_LIBRARY_PATH
25502745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2552 soname_spec='${libname}${release}${shared_ext}$major'
2553 if test "X$HPUX_IA64_MODE" = X32; then
2746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2747 soname_spec='$libname$release$shared_ext$major'
2748 if test 32 = "$HPUX_IA64_MODE"; then
25542749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2750 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
25552751 else
25562752 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2753 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
25572754 fi
2558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25592755 ;;
25602756 hppa*64*)
25612757 shrext_cmds='.sl'
25632759 dynamic_linker="$host_os dld.sl"
25642760 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25652761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2567 soname_spec='${libname}${release}${shared_ext}$major'
2762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2763 soname_spec='$libname$release$shared_ext$major'
25682764 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25692765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25702766 ;;
25732769 dynamic_linker="$host_os dld.sl"
25742770 shlibpath_var=SHLIB_PATH
25752771 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2577 soname_spec='${libname}${release}${shared_ext}$major'
2772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2773 soname_spec='$libname$release$shared_ext$major'
25782774 ;;
25792775 esac
25802776 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
25872783 version_type=linux # correct to gnu/linux during the next big refactor
25882784 need_lib_prefix=no
25892785 need_version=no
2590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2591 soname_spec='${libname}${release}${shared_ext}$major'
2786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2787 soname_spec='$libname$release$shared_ext$major'
25922788 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25932789 shlibpath_var=LD_LIBRARY_PATH
25942790 shlibpath_overrides_runpath=no
25992795 case $host_os in
26002796 nonstopux*) version_type=nonstopux ;;
26012797 *)
2602 if test "$lt_cv_prog_gnu_ld" = yes; then
2798 if test yes = "$lt_cv_prog_gnu_ld"; then
26032799 version_type=linux # correct to gnu/linux during the next big refactor
26042800 else
26052801 version_type=irix
26072803 esac
26082804 need_lib_prefix=no
26092805 need_version=no
2610 soname_spec='${libname}${release}${shared_ext}$major'
2611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2806 soname_spec='$libname$release$shared_ext$major'
2807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
26122808 case $host_os in
26132809 irix5* | nonstopux*)
26142810 libsuff= shlibsuff=
26272823 esac
26282824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26292825 shlibpath_overrides_runpath=no
2630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2826 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2827 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
26322828 hardcode_into_libs=yes
26332829 ;;
26342830
26372833 dynamic_linker=no
26382834 ;;
26392835
2836 linux*android*)
2837 version_type=none # Android doesn't support versioned libraries.
2838 need_lib_prefix=no
2839 need_version=no
2840 library_names_spec='$libname$release$shared_ext'
2841 soname_spec='$libname$release$shared_ext'
2842 finish_cmds=
2843 shlibpath_var=LD_LIBRARY_PATH
2844 shlibpath_overrides_runpath=yes
2845
2846 # This implies no fast_install, which is unacceptable.
2847 # Some rework will be needed to allow for fast_install
2848 # before this can be enabled.
2849 hardcode_into_libs=yes
2850
2851 dynamic_linker='Android linker'
2852 # Don't embed -rpath directories since the linker doesn't support them.
2853 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2854 ;;
2855
26402856 # This must be glibc/ELF.
2641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2857 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
26422858 version_type=linux # correct to gnu/linux during the next big refactor
26432859 need_lib_prefix=no
26442860 need_version=no
2645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2646 soname_spec='${libname}${release}${shared_ext}$major'
2861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2862 soname_spec='$libname$release$shared_ext$major'
26472863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26482864 shlibpath_var=LD_LIBRARY_PATH
26492865 shlibpath_overrides_runpath=no
26682884 # before this can be enabled.
26692885 hardcode_into_libs=yes
26702886
2671 # Add ABI-specific directories to the system library path.
2672 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2673
2674 # Append ld.so.conf contents to the search path
2887 # Ideally, we could use ldconfig to report *all* directores which are
2888 # searched for libraries, however this is still not possible. Aside from not
2889 # being certain /sbin/ldconfig is available, command
2890 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2891 # even though it is searched at run-time. Try to do the best guess by
2892 # appending ld.so.conf contents (and includes) to the search path.
26752893 if test -f /etc/ld.so.conf; then
26762894 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' ' '`
2677 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2678
2895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26792896 fi
26802897
26812898 # We used to test for /lib/ld.so.1 and disable shared libraries on
26922909 need_lib_prefix=no
26932910 need_version=no
26942911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2912 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
26962913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26972914 dynamic_linker='NetBSD (a.out) ld.so'
26982915 else
2699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2700 soname_spec='${libname}${release}${shared_ext}$major'
2916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2917 soname_spec='$libname$release$shared_ext$major'
27012918 dynamic_linker='NetBSD ld.elf_so'
27022919 fi
27032920 shlibpath_var=LD_LIBRARY_PATH
27072924
27082925 newsos6)
27092926 version_type=linux # correct to gnu/linux during the next big refactor
2710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27112928 shlibpath_var=LD_LIBRARY_PATH
27122929 shlibpath_overrides_runpath=yes
27132930 ;;
27162933 version_type=qnx
27172934 need_lib_prefix=no
27182935 need_version=no
2719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2720 soname_spec='${libname}${release}${shared_ext}$major'
2936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2937 soname_spec='$libname$release$shared_ext$major'
27212938 shlibpath_var=LD_LIBRARY_PATH
27222939 shlibpath_overrides_runpath=no
27232940 hardcode_into_libs=yes
27242941 dynamic_linker='ldqnx.so'
27252942 ;;
27262943
2727 openbsd*)
2944 openbsd* | bitrig*)
27282945 version_type=sunos
2729 sys_lib_dlsearch_path_spec="/usr/lib"
2946 sys_lib_dlsearch_path_spec=/usr/lib
27302947 need_lib_prefix=no
2731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2732 case $host_os in
2733 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2734 *) need_version=no ;;
2735 esac
2736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2948 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2949 need_version=no
2950 else
2951 need_version=yes
2952 fi
2953 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27372954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27382955 shlibpath_var=LD_LIBRARY_PATH
2739 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2740 case $host_os in
2741 openbsd2.[[89]] | openbsd2.[[89]].*)
2742 shlibpath_overrides_runpath=no
2743 ;;
2744 *)
2745 shlibpath_overrides_runpath=yes
2746 ;;
2747 esac
2748 else
2749 shlibpath_overrides_runpath=yes
2750 fi
2956 shlibpath_overrides_runpath=yes
27512957 ;;
27522958
27532959 os2*)
27542960 libname_spec='$name'
2755 shrext_cmds=".dll"
2961 version_type=windows
2962 shrext_cmds=.dll
2963 need_version=no
27562964 need_lib_prefix=no
2757 library_names_spec='$libname${shared_ext} $libname.a'
2965 # OS/2 can only load a DLL with a base name of 8 characters or less.
2966 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2967 v=$($ECHO $release$versuffix | tr -d .-);
2968 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2969 $ECHO $n$v`$shared_ext'
2970 library_names_spec='${libname}_dll.$libext'
27582971 dynamic_linker='OS/2 ld.exe'
2759 shlibpath_var=LIBPATH
2972 shlibpath_var=BEGINLIBPATH
2973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2975 postinstall_cmds='base_file=`basename \$file`~
2976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2977 dldir=$destdir/`dirname \$dlpath`~
2978 test -d \$dldir || mkdir -p \$dldir~
2979 $install_prog $dir/$dlname \$dldir/$dlname~
2980 chmod a+x \$dldir/$dlname~
2981 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2982 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2983 fi'
2984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2985 dlpath=$dir/\$dldll~
2986 $RM \$dlpath'
27602987 ;;
27612988
27622989 osf3* | osf4* | osf5*)
27632990 version_type=osf
27642991 need_lib_prefix=no
27652992 need_version=no
2766 soname_spec='${libname}${release}${shared_ext}$major'
2767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2993 soname_spec='$libname$release$shared_ext$major'
2994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27682995 shlibpath_var=LD_LIBRARY_PATH
27692996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27712998 ;;
27722999
27733000 rdos*)
27783005 version_type=linux # correct to gnu/linux during the next big refactor
27793006 need_lib_prefix=no
27803007 need_version=no
2781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2782 soname_spec='${libname}${release}${shared_ext}$major'
3008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3009 soname_spec='$libname$release$shared_ext$major'
27833010 shlibpath_var=LD_LIBRARY_PATH
27843011 shlibpath_overrides_runpath=yes
27853012 hardcode_into_libs=yes
27893016
27903017 sunos4*)
27913018 version_type=sunos
2792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3019 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27933020 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27943021 shlibpath_var=LD_LIBRARY_PATH
27953022 shlibpath_overrides_runpath=yes
2796 if test "$with_gnu_ld" = yes; then
3023 if test yes = "$with_gnu_ld"; then
27973024 need_lib_prefix=no
27983025 fi
27993026 need_version=yes
28013028
28023029 sysv4 | sysv4.3*)
28033030 version_type=linux # correct to gnu/linux during the next big refactor
2804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2805 soname_spec='${libname}${release}${shared_ext}$major'
3031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3032 soname_spec='$libname$release$shared_ext$major'
28063033 shlibpath_var=LD_LIBRARY_PATH
28073034 case $host_vendor in
28083035 sni)
28233050 ;;
28243051
28253052 sysv4*MP*)
2826 if test -d /usr/nec ;then
3053 if test -d /usr/nec; then
28273054 version_type=linux # correct to gnu/linux during the next big refactor
2828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2829 soname_spec='$libname${shared_ext}.$major'
3055 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3056 soname_spec='$libname$shared_ext.$major'
28303057 shlibpath_var=LD_LIBRARY_PATH
28313058 fi
28323059 ;;
28333060
28343061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2835 version_type=freebsd-elf
3062 version_type=sco
28363063 need_lib_prefix=no
28373064 need_version=no
2838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2839 soname_spec='${libname}${release}${shared_ext}$major'
3065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3066 soname_spec='$libname$release$shared_ext$major'
28403067 shlibpath_var=LD_LIBRARY_PATH
28413068 shlibpath_overrides_runpath=yes
28423069 hardcode_into_libs=yes
2843 if test "$with_gnu_ld" = yes; then
3070 if test yes = "$with_gnu_ld"; then
28443071 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28453072 else
28463073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28583085 version_type=linux # correct to gnu/linux during the next big refactor
28593086 need_lib_prefix=no
28603087 need_version=no
2861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
28623089 shlibpath_var=LD_LIBRARY_PATH
28633090 shlibpath_overrides_runpath=no
28643091 hardcode_into_libs=yes
28663093
28673094 uts4*)
28683095 version_type=linux # correct to gnu/linux during the next big refactor
2869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2870 soname_spec='${libname}${release}${shared_ext}$major'
3096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3097 soname_spec='$libname$release$shared_ext$major'
28713098 shlibpath_var=LD_LIBRARY_PATH
28723099 ;;
28733100
28763103 ;;
28773104 esac
28783105 AC_MSG_RESULT([$dynamic_linker])
2879 test "$dynamic_linker" = no && can_build_shared=no
3106 test no = "$dynamic_linker" && can_build_shared=no
28803107
28813108 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2882 if test "$GCC" = yes; then
3109 if test yes = "$GCC"; then
28833110 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28843111 fi
28853112
2886 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2887 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3113 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3114 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
28883115 fi
2889 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2890 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3116
3117 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3118 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
28913119 fi
3120
3121 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3122 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3123
3124 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3125 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3126
3127 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3128 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
28923129
28933130 _LT_DECL([], [variables_saved_for_relink], [1],
28943131 [Variables whose values should be saved in libtool wrapper scripts and
29223159 [Whether we should hardcode library paths into libraries])
29233160 _LT_DECL([], [sys_lib_search_path_spec], [2],
29243161 [Compile-time system search path for libraries])
2925 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2926 [Run-time system search path for libraries])
3162 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3163 [Detected run-time system search path for libraries])
3164 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3165 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
29273166 ])# _LT_SYS_DYNAMIC_LINKER
29283167
29293168
29303169 # _LT_PATH_TOOL_PREFIX(TOOL)
29313170 # --------------------------
2932 # find a file program which can recognize shared library
3171 # find a file program that can recognize shared library
29333172 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
29343173 [m4_require([_LT_DECL_EGREP])dnl
29353174 AC_MSG_CHECKING([for $1])
29363175 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
29373176 [case $MAGIC_CMD in
29383177 [[\\/*] | ?:[\\/]*])
2939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3178 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
29403179 ;;
29413180 *)
2942 lt_save_MAGIC_CMD="$MAGIC_CMD"
2943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3181 lt_save_MAGIC_CMD=$MAGIC_CMD
3182 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
29443183 dnl $ac_dummy forces splitting on constant user-supplied paths.
29453184 dnl POSIX.2 word splitting is done only on the output of word expansions,
29463185 dnl not every word. This closes a longstanding sh security hole.
29473186 ac_dummy="m4_if([$2], , $PATH, [$2])"
29483187 for ac_dir in $ac_dummy; do
2949 IFS="$lt_save_ifs"
3188 IFS=$lt_save_ifs
29503189 test -z "$ac_dir" && ac_dir=.
2951 if test -f $ac_dir/$1; then
2952 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3190 if test -f "$ac_dir/$1"; then
3191 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
29533192 if test -n "$file_magic_test_file"; then
29543193 case $deplibs_check_method in
29553194 "file_magic "*)
29563195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3196 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29583197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
29593198 $EGREP "$file_magic_regex" > /dev/null; then
29603199 :
29773216 break
29783217 fi
29793218 done
2980 IFS="$lt_save_ifs"
2981 MAGIC_CMD="$lt_save_MAGIC_CMD"
3219 IFS=$lt_save_ifs
3220 MAGIC_CMD=$lt_save_MAGIC_CMD
29823221 ;;
29833222 esac])
2984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3223 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29853224 if test -n "$MAGIC_CMD"; then
29863225 AC_MSG_RESULT($MAGIC_CMD)
29873226 else
29993238
30003239 # _LT_PATH_MAGIC
30013240 # --------------
3002 # find a file program which can recognize a shared library
3241 # find a file program that can recognize a shared library
30033242 m4_defun([_LT_PATH_MAGIC],
30043243 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
30053244 if test -z "$lt_cv_path_MAGIC_CMD"; then
30263265 AC_ARG_WITH([gnu-ld],
30273266 [AS_HELP_STRING([--with-gnu-ld],
30283267 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3029 [test "$withval" = no || with_gnu_ld=yes],
3268 [test no = "$withval" || with_gnu_ld=yes],
30303269 [with_gnu_ld=no])dnl
30313270
30323271 ac_prog=ld
3033 if test "$GCC" = yes; then
3272 if test yes = "$GCC"; then
30343273 # Check if gcc -print-prog-name=ld gives a path.
30353274 AC_MSG_CHECKING([for ld used by $CC])
30363275 case $host in
30373276 *-*-mingw*)
3038 # gcc leaves a trailing carriage return which upsets mingw
3277 # gcc leaves a trailing carriage return, which upsets mingw
30393278 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
30403279 *)
30413280 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
30493288 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
30503289 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
30513290 done
3052 test -z "$LD" && LD="$ac_prog"
3291 test -z "$LD" && LD=$ac_prog
30533292 ;;
30543293 "")
30553294 # If it fails, then pretend we aren't using GCC.
30603299 with_gnu_ld=unknown
30613300 ;;
30623301 esac
3063 elif test "$with_gnu_ld" = yes; then
3302 elif test yes = "$with_gnu_ld"; then
30643303 AC_MSG_CHECKING([for GNU ld])
30653304 else
30663305 AC_MSG_CHECKING([for non-GNU ld])
30673306 fi
30683307 AC_CACHE_VAL(lt_cv_path_LD,
30693308 [if test -z "$LD"; then
3070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3309 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
30713310 for ac_dir in $PATH; do
3072 IFS="$lt_save_ifs"
3311 IFS=$lt_save_ifs
30733312 test -z "$ac_dir" && ac_dir=.
30743313 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3075 lt_cv_path_LD="$ac_dir/$ac_prog"
3314 lt_cv_path_LD=$ac_dir/$ac_prog
30763315 # Check to see if the program is GNU ld. I'd rather use --version,
30773316 # but apparently some variants of GNU ld only accept -v.
30783317 # Break only if it was the GNU/non-GNU ld that we prefer.
30793318 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
30803319 *GNU* | *'with BFD'*)
3081 test "$with_gnu_ld" != no && break
3320 test no != "$with_gnu_ld" && break
30823321 ;;
30833322 *)
3084 test "$with_gnu_ld" != yes && break
3323 test yes != "$with_gnu_ld" && break
30853324 ;;
30863325 esac
30873326 fi
30883327 done
3089 IFS="$lt_save_ifs"
3328 IFS=$lt_save_ifs
30903329 else
3091 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3330 lt_cv_path_LD=$LD # Let the user override the test with a path.
30923331 fi])
3093 LD="$lt_cv_path_LD"
3332 LD=$lt_cv_path_LD
30943333 if test -n "$LD"; then
30953334 AC_MSG_RESULT($LD)
30963335 else
31443383 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31453384 case $host_os in
31463385 cygwin* | mingw* | pw32* | cegcc*)
3147 if test "$GCC" != yes; then
3386 if test yes != "$GCC"; then
31483387 reload_cmds=false
31493388 fi
31503389 ;;
31513390 darwin*)
3152 if test "$GCC" = yes; then
3153 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3391 if test yes = "$GCC"; then
3392 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
31543393 else
31553394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31563395 fi
31593398 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
31603399 _LT_TAGDECL([], [reload_cmds], [2])dnl
31613400 ])# _LT_CMD_RELOAD
3401
3402
3403 # _LT_PATH_DD
3404 # -----------
3405 # find a working dd
3406 m4_defun([_LT_PATH_DD],
3407 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3408 [printf 0123456789abcdef0123456789abcdef >conftest.i
3409 cat conftest.i conftest.i >conftest2.i
3410 : ${lt_DD:=$DD}
3411 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3412 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3413 cmp -s conftest.i conftest.out \
3414 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3415 fi])
3416 rm -f conftest.i conftest2.i conftest.out])
3417 ])# _LT_PATH_DD
3418
3419
3420 # _LT_CMD_TRUNCATE
3421 # ----------------
3422 # find command to truncate a binary pipe
3423 m4_defun([_LT_CMD_TRUNCATE],
3424 [m4_require([_LT_PATH_DD])
3425 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3426 [printf 0123456789abcdef0123456789abcdef >conftest.i
3427 cat conftest.i conftest.i >conftest2.i
3428 lt_cv_truncate_bin=
3429 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3430 cmp -s conftest.i conftest.out \
3431 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3432 fi
3433 rm -f conftest.i conftest2.i conftest.out
3434 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3435 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3436 [Command to truncate a binary pipe])
3437 ])# _LT_CMD_TRUNCATE
31623438
31633439
31643440 # _LT_CHECK_MAGIC_METHOD
31763452 # Need to set the preceding variable on all platforms that support
31773453 # interlibrary dependencies.
31783454 # 'none' -- dependencies not supported.
3179 # `unknown' -- same as none, but documents that we really don't know.
3455 # 'unknown' -- same as none, but documents that we really don't know.
31803456 # 'pass_all' -- all dependencies passed with no checks.
31813457 # 'test_compile' -- check by making test program.
31823458 # 'file_magic [[regex]]' -- check by looking for files in library path
3183 # which responds to the $file_magic_cmd with a given extended regex.
3184 # If you have `file' or equivalent on your system and you're not sure
3185 # whether `pass_all' will *always* work, you probably want this one.
3459 # that responds to the $file_magic_cmd with a given extended regex.
3460 # If you have 'file' or equivalent on your system and you're not sure
3461 # whether 'pass_all' will *always* work, you probably want this one.
31863462
31873463 case $host_os in
31883464 aix[[4-9]]*)
32093485 # Base MSYS/MinGW do not provide the 'file' command needed by
32103486 # func_win32_libid shell function, so use a weaker test based on 'objdump',
32113487 # unless we find 'file', for example because we are cross-compiling.
3212 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3213 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3488 if ( file / ) >/dev/null 2>&1; then
32143489 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32153490 lt_cv_file_magic_cmd='func_win32_libid'
32163491 else
32443519 else
32453520 lt_cv_deplibs_check_method=pass_all
32463521 fi
3247 ;;
3248
3249 gnu*)
3250 lt_cv_deplibs_check_method=pass_all
32513522 ;;
32523523
32533524 haiku*)
32883559 ;;
32893560
32903561 # This must be glibc/ELF.
3291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3562 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
32923563 lt_cv_deplibs_check_method=pass_all
32933564 ;;
32943565
33103581 lt_cv_deplibs_check_method=pass_all
33113582 ;;
33123583
3313 openbsd*)
3314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3584 openbsd* | bitrig*)
3585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
33153586 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
33163587 else
33173588 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
33643635 tpf*)
33653636 lt_cv_deplibs_check_method=pass_all
33663637 ;;
3638 os2*)
3639 lt_cv_deplibs_check_method=pass_all
3640 ;;
33673641 esac
33683642 ])
33693643
34043678 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
34053679 [if test -n "$NM"; then
34063680 # Let the user override the test.
3407 lt_cv_path_NM="$NM"
3681 lt_cv_path_NM=$NM
34083682 else
3409 lt_nm_to_check="${ac_tool_prefix}nm"
3683 lt_nm_to_check=${ac_tool_prefix}nm
34103684 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
34113685 lt_nm_to_check="$lt_nm_to_check nm"
34123686 fi
34133687 for lt_tmp_nm in $lt_nm_to_check; do
3414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3688 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
34153689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3416 IFS="$lt_save_ifs"
3690 IFS=$lt_save_ifs
34173691 test -z "$ac_dir" && ac_dir=.
3418 tmp_nm="$ac_dir/$lt_tmp_nm"
3419 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3692 tmp_nm=$ac_dir/$lt_tmp_nm
3693 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
34203694 # Check to see if the nm accepts a BSD-compat flag.
3421 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3695 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
34223696 # nm: unknown option "B" ignored
34233697 # Tru64's nm complains that /dev/null is an invalid object file
3424 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3425 */dev/null* | *'Invalid file or object type'*)
3698 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3699 case $build_os in
3700 mingw*) lt_bad_file=conftest.nm/nofile ;;
3701 *) lt_bad_file=/dev/null ;;
3702 esac
3703 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3704 *$lt_bad_file* | *'Invalid file or object type'*)
34263705 lt_cv_path_NM="$tmp_nm -B"
3427 break
3706 break 2
34283707 ;;
34293708 *)
34303709 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34313710 */dev/null*)
34323711 lt_cv_path_NM="$tmp_nm -p"
3433 break
3712 break 2
34343713 ;;
34353714 *)
34363715 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34413720 esac
34423721 fi
34433722 done
3444 IFS="$lt_save_ifs"
3723 IFS=$lt_save_ifs
34453724 done
34463725 : ${lt_cv_path_NM=no}
34473726 fi])
3448 if test "$lt_cv_path_NM" != "no"; then
3449 NM="$lt_cv_path_NM"
3727 if test no != "$lt_cv_path_NM"; then
3728 NM=$lt_cv_path_NM
34503729 else
34513730 # Didn't find any BSD compatible name lister, look for dumpbin.
34523731 if test -n "$DUMPBIN"; then :
34533732 # Let the user override the test.
34543733 else
34553734 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3456 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3735 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
34573736 *COFF*)
3458 DUMPBIN="$DUMPBIN -symbols"
3737 DUMPBIN="$DUMPBIN -symbols -headers"
34593738 ;;
34603739 *)
34613740 DUMPBIN=:
34633742 esac
34643743 fi
34653744 AC_SUBST([DUMPBIN])
3466 if test "$DUMPBIN" != ":"; then
3467 NM="$DUMPBIN"
3745 if test : != "$DUMPBIN"; then
3746 NM=$DUMPBIN
34683747 fi
34693748 fi
34703749 test -z "$NM" && NM=nm
35103789
35113790 case $host_os in
35123791 cygwin* | mingw* | pw32* | cegcc*)
3513 # two different shell functions defined in ltmain.sh
3514 # decide which to use based on capabilities of $DLLTOOL
3792 # two different shell functions defined in ltmain.sh;
3793 # decide which one to use based on capabilities of $DLLTOOL
35153794 case `$DLLTOOL --help 2>&1` in
35163795 *--identify-strict*)
35173796 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
35233802 ;;
35243803 *)
35253804 # fallback: assume linklib IS sharedlib
3526 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3805 lt_cv_sharedlib_from_linklib_cmd=$ECHO
35273806 ;;
35283807 esac
35293808 ])
35503829 lt_cv_path_mainfest_tool=yes
35513830 fi
35523831 rm -f conftest*])
3553 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3832 if test yes != "$lt_cv_path_mainfest_tool"; then
35543833 MANIFEST_TOOL=:
35553834 fi
35563835 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
35573836 ])# _LT_PATH_MANIFEST_TOOL
3837
3838
3839 # _LT_DLL_DEF_P([FILE])
3840 # ---------------------
3841 # True iff FILE is a Windows DLL '.def' file.
3842 # Keep in sync with func_dll_def_p in the libtool script
3843 AC_DEFUN([_LT_DLL_DEF_P],
3844 [dnl
3845 test DEF = "`$SED -n dnl
3846 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3847 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3848 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3849 -e q dnl Only consider the first "real" line
3850 $1`" dnl
3851 ])# _LT_DLL_DEF_P
35583852
35593853
35603854 # LT_LIB_M
35683862 # These system don't have libm, or don't need it
35693863 ;;
35703864 *-ncr-sysv4.3*)
3571 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3865 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
35723866 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
35733867 ;;
35743868 *)
3575 AC_CHECK_LIB(m, cos, LIBM="-lm")
3869 AC_CHECK_LIB(m, cos, LIBM=-lm)
35763870 ;;
35773871 esac
35783872 AC_SUBST([LIBM])
35913885
35923886 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
35933887
3594 if test "$GCC" = yes; then
3888 if test yes = "$GCC"; then
35953889 case $cc_basename in
35963890 nvcc*)
35973891 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
36433937 symcode='[[ABCDGISTW]]'
36443938 ;;
36453939 hpux*)
3646 if test "$host_cpu" = ia64; then
3940 if test ia64 = "$host_cpu"; then
36473941 symcode='[[ABCDEGRST]]'
36483942 fi
36493943 ;;
36763970 symcode='[[ABCDGIRSTW]]' ;;
36773971 esac
36783972
3973 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3974 # Gets list of data symbols to import.
3975 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3976 # Adjust the below global symbol transforms to fixup imported variables.
3977 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3978 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3979 lt_c_name_lib_hook="\
3980 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3981 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3982 else
3983 # Disable hooks by default.
3984 lt_cv_sys_global_symbol_to_import=
3985 lt_cdecl_hook=
3986 lt_c_name_hook=
3987 lt_c_name_lib_hook=
3988 fi
3989
36793990 # Transform an extracted symbol line into a proper C declaration.
36803991 # Some systems (esp. on ia64) link data and code symbols differently,
36813992 # so use this general approach.
3682 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3993 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3994 $lt_cdecl_hook\
3995 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3996 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
36833997
36843998 # Transform an extracted symbol line into symbol name and symbol address
3685 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3686 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'"
3999 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4000 $lt_c_name_hook\
4001 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4002 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4003
4004 # Transform an extracted symbol line into symbol name with lib prefix and
4005 # symbol address.
4006 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4007 $lt_c_name_lib_hook\
4008 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4009 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4010 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
36874011
36884012 # Handle CRLF in mingw tool chain
36894013 opt_cr=
37014025
37024026 # Write the raw and C identifiers.
37034027 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3704 # Fake it for dumpbin and say T for any non-static function
3705 # and D for any global variable.
4028 # Fake it for dumpbin and say T for any non-static function,
4029 # D for any global variable and I for any imported variable.
37064030 # Also find C++ and __fastcall symbols from MSVC++,
37074031 # which start with @ or ?.
37084032 lt_cv_sys_global_symbol_pipe="$AWK ['"\
37094033 " {last_section=section; section=\$ 3};"\
37104034 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37114035 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4036 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4037 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4038 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
37124039 " \$ 0!~/External *\|/{next};"\
37134040 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37144041 " {if(hide[section]) next};"\
3715 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3716 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3717 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3718 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4042 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4043 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4044 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4045 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
37194046 " ' prfx=^$ac_symprfx]"
37204047 else
37214048 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37554082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37564083 cat <<_LT_EOF > conftest.$ac_ext
37574084 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3758 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3759 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4085 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4086 /* DATA imports from DLLs on WIN32 can't be const, because runtime
37604087 relocations are performed -- see ld's documentation on pseudo-relocs. */
37614088 # define LT@&t@_DLSYM_CONST
3762 #elif defined(__osf__)
4089 #elif defined __osf__
37634090 /* This system does not cope well with relocations in const data. */
37644091 # define LT@&t@_DLSYM_CONST
37654092 #else
37854112 {
37864113 { "@PROGRAM@", (void *) 0 },
37874114 _LT_EOF
3788 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4115 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
37894116 cat <<\_LT_EOF >> conftest.$ac_ext
37904117 {0, (void *) 0}
37914118 };
38054132 mv conftest.$ac_objext conftstm.$ac_objext
38064133 lt_globsym_save_LIBS=$LIBS
38074134 lt_globsym_save_CFLAGS=$CFLAGS
3808 LIBS="conftstm.$ac_objext"
4135 LIBS=conftstm.$ac_objext
38094136 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3810 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4137 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
38114138 pipe_works=yes
38124139 fi
38134140 LIBS=$lt_globsym_save_LIBS
38284155 rm -rf conftest* conftst*
38294156
38304157 # Do not use the global_symbol_pipe unless it works.
3831 if test "$pipe_works" = yes; then
4158 if test yes = "$pipe_works"; then
38324159 break
38334160 else
38344161 lt_cv_sys_global_symbol_pipe=
38554182 [Take the output of nm and produce a listing of raw symbols and C names])
38564183 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
38574184 [Transform the output of nm in a proper C declaration])
4185 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4186 [Transform the output of nm into a list of symbols to manually relocate])
38584187 _LT_DECL([global_symbol_to_c_name_address],
38594188 [lt_cv_sys_global_symbol_to_c_name_address], [1],
38604189 [Transform the output of nm in a C name address pair])
38614190 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
38624191 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
38634192 [Transform the output of nm in a C name address pair when lib prefix is needed])
4193 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4194 [The name lister interface])
38644195 _LT_DECL([], [nm_file_list_spec], [1],
38654196 [Specify filename containing input files for $NM])
38664197 ]) # _LT_CMD_GLOBAL_SYMBOLS
38764207
38774208 m4_if([$1], [CXX], [
38784209 # C++ specific cases for pic, static, wl, etc.
3879 if test "$GXX" = yes; then
4210 if test yes = "$GXX"; then
38804211 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38814212 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38824213
38834214 case $host_os in
38844215 aix*)
38854216 # All AIX code is PIC.
3886 if test "$host_cpu" = ia64; then
4217 if test ia64 = "$host_cpu"; then
38874218 # AIX 5 now supports IA64 processor
38884219 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38894220 fi
4221 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38904222 ;;
38914223
38924224 amigaos*)
38974229 ;;
38984230 m68k)
38994231 # FIXME: we need at least 68020 code to build shared libraries, but
3900 # adding the `-m68020' flag to GCC prevents building anything better,
3901 # like `-m68040'.
4232 # adding the '-m68020' flag to GCC prevents building anything better,
4233 # like '-m68040'.
39024234 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
39034235 ;;
39044236 esac
39144246 # (--disable-auto-import) libraries
39154247 m4_if([$1], [GCJ], [],
39164248 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4249 case $host_os in
4250 os2*)
4251 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4252 ;;
4253 esac
39174254 ;;
39184255 darwin* | rhapsody*)
39194256 # PIC is the default on this platform
39634300 case $host_os in
39644301 aix[[4-9]]*)
39654302 # All AIX code is PIC.
3966 if test "$host_cpu" = ia64; then
4303 if test ia64 = "$host_cpu"; then
39674304 # AIX 5 now supports IA64 processor
39684305 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39694306 else
40044341 case $cc_basename in
40054342 CC*)
40064343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4007 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4008 if test "$host_cpu" != ia64; then
4344 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4345 if test ia64 != "$host_cpu"; then
40094346 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
40104347 fi
40114348 ;;
40124349 aCC*)
40134350 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4014 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4351 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
40154352 case $host_cpu in
40164353 hppa*64*|ia64*)
40174354 # +Z the default
40404377 ;;
40414378 esac
40424379 ;;
4043 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4380 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
40444381 case $cc_basename in
40454382 KCC*)
40464383 # KAI C++ Compiler
40484385 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
40494386 ;;
40504387 ecpc* )
4051 # old Intel C++ for x86_64 which still supported -KPIC.
4388 # old Intel C++ for x86_64, which still supported -KPIC.
40524389 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40534390 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40544391 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
41934530 fi
41944531 ],
41954532 [
4196 if test "$GCC" = yes; then
4533 if test yes = "$GCC"; then
41974534 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
41984535 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
41994536
42004537 case $host_os in
42014538 aix*)
42024539 # All AIX code is PIC.
4203 if test "$host_cpu" = ia64; then
4540 if test ia64 = "$host_cpu"; then
42044541 # AIX 5 now supports IA64 processor
42054542 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42064543 fi
4544 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42074545 ;;
42084546
42094547 amigaos*)
42144552 ;;
42154553 m68k)
42164554 # FIXME: we need at least 68020 code to build shared libraries, but
4217 # adding the `-m68020' flag to GCC prevents building anything better,
4218 # like `-m68040'.
4555 # adding the '-m68020' flag to GCC prevents building anything better,
4556 # like '-m68040'.
42194557 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
42204558 ;;
42214559 esac
42324570 # (--disable-auto-import) libraries
42334571 m4_if([$1], [GCJ], [],
42344572 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4573 case $host_os in
4574 os2*)
4575 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4576 ;;
4577 esac
42354578 ;;
42364579
42374580 darwin* | rhapsody*)
43024645 case $host_os in
43034646 aix*)
43044647 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4305 if test "$host_cpu" = ia64; then
4648 if test ia64 = "$host_cpu"; then
43064649 # AIX 5 now supports IA64 processor
43074650 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43084651 else
43104653 fi
43114654 ;;
43124655
4656 darwin* | rhapsody*)
4657 # PIC is the default on this platform
4658 # Common symbols not allowed in MH_DYLIB files
4659 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4660 case $cc_basename in
4661 nagfor*)
4662 # NAG Fortran compiler
4663 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4664 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4665 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4666 ;;
4667 esac
4668 ;;
4669
43134670 mingw* | cygwin* | pw32* | os2* | cegcc*)
43144671 # This hack is so that the source file can tell whether it is being
43154672 # built for inclusion in a dll (and should export symbols for example).
43164673 m4_if([$1], [GCJ], [],
43174674 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4675 case $host_os in
4676 os2*)
4677 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4678 ;;
4679 esac
43184680 ;;
43194681
43204682 hpux9* | hpux10* | hpux11*)
43304692 ;;
43314693 esac
43324694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4333 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4695 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
43344696 ;;
43354697
43364698 irix5* | irix6* | nonstopux*)
43394701 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
43404702 ;;
43414703
4342 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4704 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
43434705 case $cc_basename in
4344 # old Intel for x86_64 which still supported -KPIC.
4706 # old Intel for x86_64, which still supported -KPIC.
43454707 ecc*)
43464708 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
43474709 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
43654727 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
43664728 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
43674729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4730 ;;
4731 tcc*)
4732 # Fabrice Bellard et al's Tiny C Compiler
4733 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4734 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4735 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
43684736 ;;
43694737 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
43704738 # Portland Group compilers (*not* the Pentium gcc compiler,
44634831 ;;
44644832
44654833 sysv4*MP*)
4466 if test -d /usr/nec ;then
4834 if test -d /usr/nec; then
44674835 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
44684836 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
44694837 fi
44924860 fi
44934861 ])
44944862 case $host_os in
4495 # For platforms which do not support PIC, -DPIC is meaningless:
4863 # For platforms that do not support PIC, -DPIC is meaningless:
44964864 *djgpp*)
44974865 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
44984866 ;;
45584926 case $host_os in
45594927 aix[[4-9]]*)
45604928 # If we're using GNU nm, then we don't want the "-C" option.
4561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4562 # Also, AIX nm treats weak defined symbols like other global defined
4563 # symbols, whereas GNU nm marks them as "W".
4929 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4930 # Without the "-l" option, or with the "-B" option, AIX nm treats
4931 # weak defined symbols like other global defined symbols, whereas
4932 # GNU nm marks them as "W".
4933 # While the 'weak' keyword is ignored in the Export File, we need
4934 # it in the Import File for the 'aix-soname' feature, so we have
4935 # to replace the "-B" option with "-P" for AIX nm.
45644936 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4565 _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'
4937 _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'
45664938 else
4567 _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'
4939 _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'
45684940 fi
45694941 ;;
45704942 pw32*)
4571 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4943 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
45724944 ;;
45734945 cygwin* | mingw* | cegcc*)
45744946 case $cc_basename in
46144986 # included in the symbol list
46154987 _LT_TAGVAR(include_expsyms, $1)=
46164988 # exclude_expsyms can be an extended regexp of symbols to exclude
4617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4619 # as well as any symbol that contains `d'.
4989 # it will be wrapped by ' (' and ')$', so one must not match beginning or
4990 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4991 # as well as any symbol that contains 'd'.
46204992 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
46214993 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
46224994 # platforms (ab)use it in PIC code, but their linkers get confused if
46325004 # FIXME: the MSVC++ port hasn't been tested in a loooong time
46335005 # When not using gcc, we currently assume that we are using
46345006 # Microsoft Visual C++.
4635 if test "$GCC" != yes; then
5007 if test yes != "$GCC"; then
46365008 with_gnu_ld=no
46375009 fi
46385010 ;;
46405012 # we just hope/assume this is gcc and not c89 (= MSVC++)
46415013 with_gnu_ld=yes
46425014 ;;
4643 openbsd*)
5015 openbsd* | bitrig*)
46445016 with_gnu_ld=no
46455017 ;;
46465018 esac
46505022 # On some targets, GNU ld is compatible enough with the native linker
46515023 # that we're better off using the native interface for both.
46525024 lt_use_gnu_ld_interface=no
4653 if test "$with_gnu_ld" = yes; then
5025 if test yes = "$with_gnu_ld"; then
46545026 case $host_os in
46555027 aix*)
46565028 # The AIX port of GNU ld has always aspired to compatibility
46725044 esac
46735045 fi
46745046
4675 if test "$lt_use_gnu_ld_interface" = yes; then
5047 if test yes = "$lt_use_gnu_ld_interface"; then
46765048 # If archive_cmds runs LD, not CC, wlarc should be empty
4677 wlarc='${wl}'
5049 wlarc='$wl'
46785050
46795051 # Set some defaults for GNU ld with shared library support. These
46805052 # are reset later if shared libraries are not supported. Putting them
46815053 # here allows them to be overridden if necessary.
46825054 runpath_var=LD_RUN_PATH
4683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4684 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
46855057 # ancient GNU ld didn't support --whole-archive et. al.
46865058 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4687 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5059 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
46885060 else
46895061 _LT_TAGVAR(whole_archive_flag_spec, $1)=
46905062 fi
46915063 supports_anon_versioning=no
4692 case `$LD -v 2>&1` in
5064 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
46935065 *GNU\ gold*) supports_anon_versioning=yes ;;
46945066 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
46955067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47025074 case $host_os in
47035075 aix[[3-9]]*)
47045076 # On AIX/PPC, the GNU linker is very broken
4705 if test "$host_cpu" != ia64; then
5077 if test ia64 != "$host_cpu"; then
47065078 _LT_TAGVAR(ld_shlibs, $1)=no
47075079 cat <<_LT_EOF 1>&2
47085080
47215093 case $host_cpu in
47225094 powerpc)
47235095 # see comment about AmigaOS4 .so support
4724 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5096 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47255097 _LT_TAGVAR(archive_expsym_cmds, $1)=''
47265098 ;;
47275099 m68k)
47375109 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47385110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47395111 # support --undefined. This deserves some investigation. FIXME
4740 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5112 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47415113 else
47425114 _LT_TAGVAR(ld_shlibs, $1)=no
47435115 fi
47475119 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
47485120 # as there is no search path for DLLs.
47495121 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4750 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5122 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
47515123 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47525124 _LT_TAGVAR(always_export_symbols, $1)=no
47535125 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47555127 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
47565128
47575129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4758 _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'
4759 # If the export-symbols file already is a .def file (1st line
4760 # is EXPORTS), use it as is; otherwise, prepend...
4761 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4762 cp $export_symbols $output_objdir/$soname.def;
4763 else
4764 echo EXPORTS > $output_objdir/$soname.def;
4765 cat $export_symbols >> $output_objdir/$soname.def;
4766 fi~
4767 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5130 _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'
5131 # If the export-symbols file already is a .def file, use it as
5132 # is; otherwise, prepend EXPORTS...
5133 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5134 cp $export_symbols $output_objdir/$soname.def;
5135 else
5136 echo EXPORTS > $output_objdir/$soname.def;
5137 cat $export_symbols >> $output_objdir/$soname.def;
5138 fi~
5139 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
47685140 else
47695141 _LT_TAGVAR(ld_shlibs, $1)=no
47705142 fi
47715143 ;;
47725144
47735145 haiku*)
4774 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5146 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47755147 _LT_TAGVAR(link_all_deplibs, $1)=yes
5148 ;;
5149
5150 os2*)
5151 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5152 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5153 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5154 shrext_cmds=.dll
5155 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5158 $ECHO EXPORTS >> $output_objdir/$libname.def~
5159 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5160 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5161 emximp -o $lib $output_objdir/$libname.def'
5162 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5163 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5164 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5165 $ECHO EXPORTS >> $output_objdir/$libname.def~
5166 prefix_cmds="$SED"~
5167 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5168 prefix_cmds="$prefix_cmds -e 1d";
5169 fi~
5170 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5171 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5173 emximp -o $lib $output_objdir/$libname.def'
5174 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5175 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47765176 ;;
47775177
47785178 interix[[3-9]]*)
47795179 _LT_TAGVAR(hardcode_direct, $1)=no
47805180 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4782 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5182 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
47835183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
47845184 # Instead, shared libraries are loaded at an image base (0x10000000 by
47855185 # default) and relocated if they conflict, which is a slow very memory
47865186 # consuming and fragmenting process. To avoid this, we pick a random,
47875187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
47885188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4789 _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'
4790 _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'
5189 _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'
5190 _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'
47915191 ;;
47925192
47935193 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
47945194 tmp_diet=no
4795 if test "$host_os" = linux-dietlibc; then
5195 if test linux-dietlibc = "$host_os"; then
47965196 case $cc_basename in
47975197 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
47985198 esac
47995199 fi
48005200 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4801 && test "$tmp_diet" = no
5201 && test no = "$tmp_diet"
48025202 then
48035203 tmp_addflag=' $pic_flag'
48045204 tmp_sharedflag='-shared'
48055205 case $cc_basename,$host_cpu in
48065206 pgcc*) # Portland Group C compiler
4807 _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'
5207 _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'
48085208 tmp_addflag=' $pic_flag'
48095209 ;;
48105210 pgf77* | pgf90* | pgf95* | pgfortran*)
48115211 # Portland Group f77 and f90 compilers
4812 _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'
5212 _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'
48135213 tmp_addflag=' $pic_flag -Mnomain' ;;
48145214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
48155215 tmp_addflag=' -i_dynamic' ;;
48205220 lf95*) # Lahey Fortran 8.1
48215221 _LT_TAGVAR(whole_archive_flag_spec, $1)=
48225222 tmp_sharedflag='--shared' ;;
5223 nagfor*) # NAGFOR 5.3
5224 tmp_sharedflag='-Wl,-shared' ;;
48235225 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
48245226 tmp_sharedflag='-qmkshrobj'
48255227 tmp_addflag= ;;
48265228 nvcc*) # Cuda Compiler Driver 2.2
4827 _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'
5229 _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'
48285230 _LT_TAGVAR(compiler_needs_object, $1)=yes
48295231 ;;
48305232 esac
48315233 case `$CC -V 2>&1 | sed 5q` in
48325234 *Sun\ C*) # Sun C 5.9
4833 _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'
5235 _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'
48345236 _LT_TAGVAR(compiler_needs_object, $1)=yes
48355237 tmp_sharedflag='-G' ;;
48365238 *Sun\ F*) # Sun Fortran 8.3
48375239 tmp_sharedflag='-G' ;;
48385240 esac
4839 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4840
4841 if test "x$supports_anon_versioning" = xyes; then
5241 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5242
5243 if test yes = "$supports_anon_versioning"; then
48425244 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4844 echo "local: *; };" >> $output_objdir/$libname.ver~
4845 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5246 echo "local: *; };" >> $output_objdir/$libname.ver~
5247 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
48465248 fi
48475249
48485250 case $cc_basename in
5251 tcc*)
5252 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5253 ;;
48495254 xlf* | bgf* | bgxlf* | mpixlf*)
48505255 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
48515256 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4852 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5257 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
48535258 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4854 if test "x$supports_anon_versioning" = xyes; then
5259 if test yes = "$supports_anon_versioning"; then
48555260 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4857 echo "local: *; };" >> $output_objdir/$libname.ver~
4858 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5262 echo "local: *; };" >> $output_objdir/$libname.ver~
5263 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
48595264 fi
48605265 ;;
48615266 esac
48695274 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
48705275 wlarc=
48715276 else
4872 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4873 _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'
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5278 _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'
48745279 fi
48755280 ;;
48765281
48885293
48895294 _LT_EOF
48905295 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4892 _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'
5296 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5297 _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'
48935298 else
48945299 _LT_TAGVAR(ld_shlibs, $1)=no
48955300 fi
49015306 _LT_TAGVAR(ld_shlibs, $1)=no
49025307 cat <<_LT_EOF 1>&2
49035308
4904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5309 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
49055310 *** reliably create shared libraries on SCO systems. Therefore, libtool
49065311 *** is disabling shared libraries support. We urge you to upgrade GNU
49075312 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
49165321 # DT_RUNPATH tag from executables and libraries. But doing so
49175322 # requires that you compile everything twice, which is a pain.
49185323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4919 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4921 _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'
5324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5325 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5326 _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'
49225327 else
49235328 _LT_TAGVAR(ld_shlibs, $1)=no
49245329 fi
49355340
49365341 *)
49375342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4939 _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'
5343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5344 _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'
49405345 else
49415346 _LT_TAGVAR(ld_shlibs, $1)=no
49425347 fi
49435348 ;;
49445349 esac
49455350
4946 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5351 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
49475352 runpath_var=
49485353 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
49495354 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
49595364 # Note: this linker hardcodes the directories in LIBPATH if there
49605365 # are no directories specified by -L.
49615366 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5367 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
49635368 # Neither direct hardcoding nor static linking is supported with a
49645369 # broken collect2.
49655370 _LT_TAGVAR(hardcode_direct, $1)=unsupported
49675372 ;;
49685373
49695374 aix[[4-9]]*)
4970 if test "$host_cpu" = ia64; then
5375 if test ia64 = "$host_cpu"; then
49715376 # On IA64, the linker does run time linking by default, so we don't
49725377 # have to do anything special.
49735378 aix_use_runtimelinking=no
49745379 exp_sym_flag='-Bexport'
4975 no_entry_flag=""
5380 no_entry_flag=
49765381 else
49775382 # If we're using GNU nm, then we don't want the "-C" option.
4978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4979 # Also, AIX nm treats weak defined symbols like other global
4980 # defined symbols, whereas GNU nm marks them as "W".
5383 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5384 # Without the "-l" option, or with the "-B" option, AIX nm treats
5385 # weak defined symbols like other global defined symbols, whereas
5386 # GNU nm marks them as "W".
5387 # While the 'weak' keyword is ignored in the Export File, we need
5388 # it in the Import File for the 'aix-soname' feature, so we have
5389 # to replace the "-B" option with "-P" for AIX nm.
49815390 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4982 _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'
5391 _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'
49835392 else
4984 _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'
5393 _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'
49855394 fi
49865395 aix_use_runtimelinking=no
49875396
49885397 # Test if we are trying to use run time linking or normal
49895398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4990 # need to do runtime linking.
5399 # have runtime linking enabled, and use it for executables.
5400 # For shared libraries, we enable/disable runtime linking
5401 # depending on the kind of the shared library created -
5402 # when "with_aix_soname,aix_use_runtimelinking" is:
5403 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5404 # "aix,yes" lib.so shared, rtl:yes, for executables
5405 # lib.a static archive
5406 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5407 # lib.a(lib.so.V) shared, rtl:no, for executables
5408 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5409 # lib.a(lib.so.V) shared, rtl:no
5410 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5411 # lib.a static archive
49915412 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
49925413 for ld_flag in $LDFLAGS; do
4993 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5414 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
49945415 aix_use_runtimelinking=yes
49955416 break
49965417 fi
49975418 done
5419 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5420 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5421 # so we don't have lib.a shared libs to link our executables.
5422 # We have to force runtime linking in this case.
5423 aix_use_runtimelinking=yes
5424 LDFLAGS="$LDFLAGS -Wl,-brtl"
5425 fi
49985426 ;;
49995427 esac
50005428
50135441 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
50145442 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
50155443 _LT_TAGVAR(link_all_deplibs, $1)=yes
5016 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5017
5018 if test "$GCC" = yes; then
5444 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5445 case $with_aix_soname,$aix_use_runtimelinking in
5446 aix,*) ;; # traditional, no import file
5447 svr4,* | *,yes) # use import file
5448 # The Import File defines what to hardcode.
5449 _LT_TAGVAR(hardcode_direct, $1)=no
5450 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5451 ;;
5452 esac
5453
5454 if test yes = "$GCC"; then
50195455 case $host_os in aix4.[[012]]|aix4.[[012]].*)
50205456 # We only want to do this on AIX 4.2 and lower, the check
50215457 # below for broken collect2 doesn't work under 4.3+
5022 collect2name=`${CC} -print-prog-name=collect2`
5458 collect2name=`$CC -print-prog-name=collect2`
50235459 if test -f "$collect2name" &&
50245460 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50255461 then
50385474 ;;
50395475 esac
50405476 shared_flag='-shared'
5041 if test "$aix_use_runtimelinking" = yes; then
5042 shared_flag="$shared_flag "'${wl}-G'
5477 if test yes = "$aix_use_runtimelinking"; then
5478 shared_flag="$shared_flag "'$wl-G'
50435479 fi
5480 # Need to ensure runtime linking is disabled for the traditional
5481 # shared library, or the linker may eventually find shared libraries
5482 # /with/ Import File - we do not want to mix them.
5483 shared_flag_aix='-shared'
5484 shared_flag_svr4='-shared $wl-G'
50445485 else
50455486 # not using gcc
5046 if test "$host_cpu" = ia64; then
5487 if test ia64 = "$host_cpu"; then
50475488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50485489 # chokes on -Wl,-G. The following line is correct:
50495490 shared_flag='-G'
50505491 else
5051 if test "$aix_use_runtimelinking" = yes; then
5052 shared_flag='${wl}-G'
5492 if test yes = "$aix_use_runtimelinking"; then
5493 shared_flag='$wl-G'
50535494 else
5054 shared_flag='${wl}-bM:SRE'
5495 shared_flag='$wl-bM:SRE'
50555496 fi
5497 shared_flag_aix='$wl-bM:SRE'
5498 shared_flag_svr4='$wl-G'
50565499 fi
50575500 fi
50585501
5059 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5502 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
50605503 # It seems that -bexpall does not export symbols beginning with
50615504 # underscore (_), so it is better to generate a list of symbols to export.
50625505 _LT_TAGVAR(always_export_symbols, $1)=yes
5063 if test "$aix_use_runtimelinking" = yes; then
5506 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
50645507 # Warning - without using the other runtime loading flags (-brtl),
50655508 # -berok will link without error, but may produce a broken library.
50665509 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
50675510 # Determine the default libpath from the value encoded in an
50685511 # empty executable.
50695512 _LT_SYS_MODULE_PATH_AIX([$1])
5070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5071 _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"
5513 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5514 _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
50725515 else
5073 if test "$host_cpu" = ia64; then
5074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5516 if test ia64 = "$host_cpu"; then
5517 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
50755518 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5076 _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"
5519 _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"
50775520 else
50785521 # Determine the default libpath from the value encoded in an
50795522 # empty executable.
50805523 _LT_SYS_MODULE_PATH_AIX([$1])
5081 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
50825525 # Warning - without using the other run time loading flags,
50835526 # -berok will link without error, but may produce a broken library.
5084 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5085 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5086 if test "$with_gnu_ld" = yes; then
5527 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5528 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5529 if test yes = "$with_gnu_ld"; then
50875530 # We only use this code for GNU lds that support --whole-archive.
5088 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5531 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
50895532 else
50905533 # Exported symbols can be pulled into shared objects from archives
50915534 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
50925535 fi
50935536 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5094 # This is similar to how AIX traditionally builds its shared libraries.
5095 _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'
5537 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5538 # -brtl affects multiple linker settings, -berok does not and is overridden later
5539 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5540 if test svr4 != "$with_aix_soname"; then
5541 # This is similar to how AIX traditionally builds its shared libraries.
5542 _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'
5543 fi
5544 if test aix != "$with_aix_soname"; then
5545 _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'
5546 else
5547 # used by -dlpreopen to get the symbols
5548 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5549 fi
5550 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
50965551 fi
50975552 fi
50985553 ;;
51015556 case $host_cpu in
51025557 powerpc)
51035558 # see comment about AmigaOS4 .so support
5104 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5559 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
51055560 _LT_TAGVAR(archive_expsym_cmds, $1)=''
51065561 ;;
51075562 m68k)
51315586 # Tell ltmain to make .lib files, not .a files.
51325587 libext=lib
51335588 # Tell ltmain to make .dll files, not .so files.
5134 shrext_cmds=".dll"
5589 shrext_cmds=.dll
51355590 # FIXME: Setting linknames here is a bad hack.
5136 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5137 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5138 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5139 else
5140 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5141 fi~
5142 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5143 linknames='
5591 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5592 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5593 cp "$export_symbols" "$output_objdir/$soname.def";
5594 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5595 else
5596 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5597 fi~
5598 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5599 linknames='
51445600 # The linker will not automatically build a static lib if we build a DLL.
51455601 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
51465602 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
51495605 # Don't use ranlib
51505606 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
51515607 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5152 lt_tool_outputfile="@TOOL_OUTPUT@"~
5153 case $lt_outputfile in
5154 *.exe|*.EXE) ;;
5155 *)
5156 lt_outputfile="$lt_outputfile.exe"
5157 lt_tool_outputfile="$lt_tool_outputfile.exe"
5158 ;;
5159 esac~
5160 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5161 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5162 $RM "$lt_outputfile.manifest";
5163 fi'
5608 lt_tool_outputfile="@TOOL_OUTPUT@"~
5609 case $lt_outputfile in
5610 *.exe|*.EXE) ;;
5611 *)
5612 lt_outputfile=$lt_outputfile.exe
5613 lt_tool_outputfile=$lt_tool_outputfile.exe
5614 ;;
5615 esac~
5616 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5617 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5618 $RM "$lt_outputfile.manifest";
5619 fi'
51645620 ;;
51655621 *)
51665622 # Assume MSVC wrapper
51695625 # Tell ltmain to make .lib files, not .a files.
51705626 libext=lib
51715627 # Tell ltmain to make .dll files, not .so files.
5172 shrext_cmds=".dll"
5628 shrext_cmds=.dll
51735629 # FIXME: Setting linknames here is a bad hack.
51745630 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
51755631 # The linker will automatically build a .lib file if we build a DLL.
52195675 ;;
52205676
52215677 hpux9*)
5222 if test "$GCC" = yes; then
5223 _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'
5678 if test yes = "$GCC"; then
5679 _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'
52245680 else
5225 _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'
5681 _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'
52265682 fi
5227 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52285684 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52295685 _LT_TAGVAR(hardcode_direct, $1)=yes
52305686
52315687 # hardcode_minus_L: Not really in the search PATH,
52325688 # but as the default location of the library.
52335689 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5234 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52355691 ;;
52365692
52375693 hpux10*)
5238 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5239 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5694 if test yes,no = "$GCC,$with_gnu_ld"; then
5695 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52405696 else
52415697 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
52425698 fi
5243 if test "$with_gnu_ld" = no; then
5244 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5699 if test no = "$with_gnu_ld"; then
5700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52455701 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52465702 _LT_TAGVAR(hardcode_direct, $1)=yes
52475703 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5248 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5704 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52495705 # hardcode_minus_L: Not really in the search PATH,
52505706 # but as the default location of the library.
52515707 _LT_TAGVAR(hardcode_minus_L, $1)=yes
52535709 ;;
52545710
52555711 hpux11*)
5256 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5712 if test yes,no = "$GCC,$with_gnu_ld"; then
52575713 case $host_cpu in
52585714 hppa*64*)
5259 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5715 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52605716 ;;
52615717 ia64*)
5262 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5718 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52635719 ;;
52645720 *)
5265 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5721 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52665722 ;;
52675723 esac
52685724 else
52695725 case $host_cpu in
52705726 hppa*64*)
5271 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5727 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52725728 ;;
52735729 ia64*)
5274 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5730 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52755731 ;;
52765732 *)
52775733 m4_if($1, [], [
52795735 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
52805736 _LT_LINKER_OPTION([if $CC understands -b],
52815737 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5282 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5738 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
52835739 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5284 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5740 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
52855741 ;;
52865742 esac
52875743 fi
5288 if test "$with_gnu_ld" = no; then
5289 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5744 if test no = "$with_gnu_ld"; then
5745 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52905746 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52915747
52925748 case $host_cpu in
52975753 *)
52985754 _LT_TAGVAR(hardcode_direct, $1)=yes
52995755 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5300 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53015757
53025758 # hardcode_minus_L: Not really in the search PATH,
53035759 # but as the default location of the library.
53085764 ;;
53095765
53105766 irix5* | irix6* | nonstopux*)
5311 if test "$GCC" = yes; then
5312 _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'
5767 if test yes = "$GCC"; then
5768 _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'
53135769 # Try to use the -exported_symbol ld option, if it does not
53145770 # work, assume that -exports_file does not work either and
53155771 # implicitly export all symbols.
53165772 # This should be the same for all languages, so no per-tag cache variable.
53175773 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
53185774 [lt_cv_irix_exported_symbol],
5319 [save_LDFLAGS="$LDFLAGS"
5320 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5775 [save_LDFLAGS=$LDFLAGS
5776 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
53215777 AC_LINK_IFELSE(
53225778 [AC_LANG_SOURCE(
53235779 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
53305786 end]])])],
53315787 [lt_cv_irix_exported_symbol=yes],
53325788 [lt_cv_irix_exported_symbol=no])
5333 LDFLAGS="$save_LDFLAGS"])
5334 if test "$lt_cv_irix_exported_symbol" = yes; then
5335 _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'
5789 LDFLAGS=$save_LDFLAGS])
5790 if test yes = "$lt_cv_irix_exported_symbol"; then
5791 _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'
53365792 fi
53375793 else
5338 _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'
5339 _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'
5794 _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'
5795 _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'
53405796 fi
53415797 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5342 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5798 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53435799 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53445800 _LT_TAGVAR(inherit_rpath, $1)=yes
53455801 _LT_TAGVAR(link_all_deplibs, $1)=yes
5802 ;;
5803
5804 linux*)
5805 case $cc_basename in
5806 tcc*)
5807 # Fabrice Bellard et al's Tiny C Compiler
5808 _LT_TAGVAR(ld_shlibs, $1)=yes
5809 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5810 ;;
5811 esac
53465812 ;;
53475813
53485814 netbsd*)
53595825 newsos6)
53605826 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
53615827 _LT_TAGVAR(hardcode_direct, $1)=yes
5362 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5828 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53635829 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53645830 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53655831 ;;
53675833 *nto* | *qnx*)
53685834 ;;
53695835
5370 openbsd*)
5836 openbsd* | bitrig*)
53715837 if test -f /usr/libexec/ld.so; then
53725838 _LT_TAGVAR(hardcode_direct, $1)=yes
53735839 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53745840 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
53765842 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5377 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5378 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5379 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5843 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5844 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5845 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53805846 else
5381 case $host_os in
5382 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5383 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5384 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5385 ;;
5386 *)
5387 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5388 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5389 ;;
5390 esac
5847 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
53915849 fi
53925850 else
53935851 _LT_TAGVAR(ld_shlibs, $1)=no
53985856 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
53995857 _LT_TAGVAR(hardcode_minus_L, $1)=yes
54005858 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5401 _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'
5402 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5859 shrext_cmds=.dll
5860 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5861 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5862 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5863 $ECHO EXPORTS >> $output_objdir/$libname.def~
5864 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5865 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5866 emximp -o $lib $output_objdir/$libname.def'
5867 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5868 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5869 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5870 $ECHO EXPORTS >> $output_objdir/$libname.def~
5871 prefix_cmds="$SED"~
5872 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5873 prefix_cmds="$prefix_cmds -e 1d";
5874 fi~
5875 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5876 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5877 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5878 emximp -o $lib $output_objdir/$libname.def'
5879 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5880 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54035881 ;;
54045882
54055883 osf3*)
5406 if test "$GCC" = yes; then
5407 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5408 _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'
5884 if test yes = "$GCC"; then
5885 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5886 _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'
54095887 else
54105888 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5411 _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'
5889 _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'
54125890 fi
54135891 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5414 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5892 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54155893 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
54165894 ;;
54175895
54185896 osf4* | osf5*) # as osf3* with the addition of -msym flag
5419 if test "$GCC" = yes; then
5420 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5421 _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'
5422 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5897 if test yes = "$GCC"; then
5898 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5899 _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'
5900 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54235901 else
54245902 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5425 _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'
5903 _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'
54265904 _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~
5427 $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'
5905 $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'
54285906
54295907 # Both c and cxx compiler support -rpath directly
54305908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
54355913
54365914 solaris*)
54375915 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5438 if test "$GCC" = yes; then
5439 wlarc='${wl}'
5440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5916 if test yes = "$GCC"; then
5917 wlarc='$wl'
5918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
54415919 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5442 $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'
5920 $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'
54435921 else
54445922 case `$CC -V 2>&1` in
54455923 *"Compilers 5.0"*)
54465924 wlarc=''
5447 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5925 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
54485926 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5449 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5927 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
54505928 ;;
54515929 *)
5452 wlarc='${wl}'
5453 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5930 wlarc='$wl'
5931 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
54545932 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5455 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5933 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54565934 ;;
54575935 esac
54585936 fi
54625940 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
54635941 *)
54645942 # The compiler driver will combine and reorder linker options,
5465 # but understands `-z linker_flag'. GCC discards it without `$wl',
5943 # but understands '-z linker_flag'. GCC discards it without '$wl',
54665944 # but is careful enough not to reorder.
54675945 # Supported since Solaris 2.6 (maybe 2.5.1?)
5468 if test "$GCC" = yes; then
5469 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5946 if test yes = "$GCC"; then
5947 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
54705948 else
54715949 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
54725950 fi
54765954 ;;
54775955
54785956 sunos4*)
5479 if test "x$host_vendor" = xsequent; then
5957 if test sequent = "$host_vendor"; then
54805958 # Use $CC to link under sequent, because it throws in some extra .o
54815959 # files that make .init and .fini sections work.
5482 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5960 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
54835961 else
54845962 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
54855963 fi
55286006 ;;
55296007
55306008 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5531 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6009 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
55326010 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55336011 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55346012 runpath_var='LD_RUN_PATH'
55356013
5536 if test "$GCC" = yes; then
5537 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5538 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6014 if test yes = "$GCC"; then
6015 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6016 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55396017 else
5540 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5541 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6018 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6019 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55426020 fi
55436021 ;;
55446022
55456023 sysv5* | sco3.2v5* | sco5v6*)
5546 # Note: We can NOT use -z defs as we might desire, because we do not
6024 # Note: We CANNOT use -z defs as we might desire, because we do not
55476025 # link with -lc, and that would cause any symbols used from libc to
55486026 # always be unresolved, which means just about no library would
55496027 # ever link correctly. If we're not using GNU ld we use -z text
55506028 # though, which does catch some bad symbols but isn't as heavy-handed
55516029 # as -z defs.
5552 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5553 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6030 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6031 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
55546032 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55556033 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5556 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
55576035 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
55586036 _LT_TAGVAR(link_all_deplibs, $1)=yes
5559 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6037 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
55606038 runpath_var='LD_RUN_PATH'
55616039
5562 if test "$GCC" = yes; then
5563 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5564 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6040 if test yes = "$GCC"; then
6041 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6042 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55656043 else
5566 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5567 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6044 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6045 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55686046 fi
55696047 ;;
55706048
55796057 ;;
55806058 esac
55816059
5582 if test x$host_vendor = xsni; then
6060 if test sni = "$host_vendor"; then
55836061 case $host in
55846062 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5585 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6063 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
55866064 ;;
55876065 esac
55886066 fi
55896067 fi
55906068 ])
55916069 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5592 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6070 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
55936071
55946072 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
55956073
56066084 # Assume -lc should be added
56076085 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56086086
5609 if test "$enable_shared" = yes && test "$GCC" = yes; then
6087 if test yes,yes = "$GCC,$enable_shared"; then
56106088 case $_LT_TAGVAR(archive_cmds, $1) in
56116089 *'~'*)
56126090 # FIXME: we may have to deal with multi-command sequences.
56866164 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
56876165 [Whether we need a single "-rpath" flag with a separated argument])
56886166 _LT_TAGDECL([], [hardcode_direct], [0],
5689 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6167 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
56906168 DIR into the resulting binary])
56916169 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5692 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6170 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
56936171 DIR into the resulting binary and the resulting library dependency is
5694 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6172 "absolute", i.e impossible to change by setting $shlibpath_var if the
56956173 library is relocated])
56966174 _LT_TAGDECL([], [hardcode_minus_L], [0],
56976175 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57326210 # ------------------------
57336211 # Ensure that the configuration variables for a C compiler are suitably
57346212 # defined. These variables are subsequently used by _LT_CONFIG to write
5735 # the compiler configuration to `libtool'.
6213 # the compiler configuration to 'libtool'.
57366214 m4_defun([_LT_LANG_C_CONFIG],
57376215 [m4_require([_LT_DECL_EGREP])dnl
5738 lt_save_CC="$CC"
6216 lt_save_CC=$CC
57396217 AC_LANG_PUSH(C)
57406218
57416219 # Source file extension for C test sources.
57756253 LT_SYS_DLOPEN_SELF
57766254 _LT_CMD_STRIPLIB
57776255
5778 # Report which library types will actually be built
6256 # Report what library types will actually be built
57796257 AC_MSG_CHECKING([if libtool supports shared libraries])
57806258 AC_MSG_RESULT([$can_build_shared])
57816259
57826260 AC_MSG_CHECKING([whether to build shared libraries])
5783 test "$can_build_shared" = "no" && enable_shared=no
6261 test no = "$can_build_shared" && enable_shared=no
57846262
57856263 # On AIX, shared libraries and static libraries use the same namespace, and
57866264 # are all built from PIC.
57876265 case $host_os in
57886266 aix3*)
5789 test "$enable_shared" = yes && enable_static=no
6267 test yes = "$enable_shared" && enable_static=no
57906268 if test -n "$RANLIB"; then
57916269 archive_cmds="$archive_cmds~\$RANLIB \$lib"
57926270 postinstall_cmds='$RANLIB $lib'
57946272 ;;
57956273
57966274 aix[[4-9]]*)
5797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5798 test "$enable_shared" = yes && enable_static=no
6275 if test ia64 != "$host_cpu"; then
6276 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6277 yes,aix,yes) ;; # shared object as lib.so file only
6278 yes,svr4,*) ;; # shared object as lib.so archive member only
6279 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6280 esac
57996281 fi
58006282 ;;
58016283 esac
58036285
58046286 AC_MSG_CHECKING([whether to build static libraries])
58056287 # Make sure either enable_shared or enable_static is yes.
5806 test "$enable_shared" = yes || enable_static=yes
6288 test yes = "$enable_shared" || enable_static=yes
58076289 AC_MSG_RESULT([$enable_static])
58086290
58096291 _LT_CONFIG($1)
58106292 fi
58116293 AC_LANG_POP
5812 CC="$lt_save_CC"
6294 CC=$lt_save_CC
58136295 ])# _LT_LANG_C_CONFIG
58146296
58156297
58176299 # --------------------------
58186300 # Ensure that the configuration variables for a C++ compiler are suitably
58196301 # defined. These variables are subsequently used by _LT_CONFIG to write
5820 # the compiler configuration to `libtool'.
6302 # the compiler configuration to 'libtool'.
58216303 m4_defun([_LT_LANG_CXX_CONFIG],
58226304 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
58236305 m4_require([_LT_DECL_EGREP])dnl
58246306 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5825 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5826 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5827 (test "X$CXX" != "Xg++"))) ; then
6307 if test -n "$CXX" && ( test no != "$CXX" &&
6308 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6309 (test g++ != "$CXX"))); then
58286310 AC_PROG_CXXCPP
58296311 else
58306312 _lt_caught_CXX_error=yes
58666348 # the CXX compiler isn't working. Some variables (like enable_shared)
58676349 # are currently assumed to apply to all compilers on this platform,
58686350 # and will be corrupted by setting them based on a non-working compiler.
5869 if test "$_lt_caught_CXX_error" != yes; then
6351 if test yes != "$_lt_caught_CXX_error"; then
58706352 # Code to be used in simple compile tests
58716353 lt_simple_compile_test_code="int some_variable = 0;"
58726354
59086390 if test -n "$compiler"; then
59096391 # We don't want -fno-exception when compiling C++ code, so set the
59106392 # no_builtin_flag separately
5911 if test "$GXX" = yes; then
6393 if test yes = "$GXX"; then
59126394 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
59136395 else
59146396 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
59156397 fi
59166398
5917 if test "$GXX" = yes; then
6399 if test yes = "$GXX"; then
59186400 # Set up default GNU C++ configuration
59196401
59206402 LT_PATH_LD
59216403
59226404 # Check if GNU C++ uses GNU ld as the underlying linker, since the
59236405 # archiving commands below assume that GNU ld is being used.
5924 if test "$with_gnu_ld" = yes; then
5925 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5926 _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'
5927
5928 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5929 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6406 if test yes = "$with_gnu_ld"; then
6407 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6408 _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'
6409
6410 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6411 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
59306412
59316413 # If archive_cmds runs LD, not CC, wlarc should be empty
59326414 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
59336415 # investigate it a little bit more. (MM)
5934 wlarc='${wl}'
6416 wlarc='$wl'
59356417
59366418 # ancient GNU ld didn't support --whole-archive et. al.
59376419 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
59386420 $GREP 'no-whole-archive' > /dev/null; then
5939 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6421 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
59406422 else
59416423 _LT_TAGVAR(whole_archive_flag_spec, $1)=
59426424 fi
59726454 _LT_TAGVAR(ld_shlibs, $1)=no
59736455 ;;
59746456 aix[[4-9]]*)
5975 if test "$host_cpu" = ia64; then
6457 if test ia64 = "$host_cpu"; then
59766458 # On IA64, the linker does run time linking by default, so we don't
59776459 # have to do anything special.
59786460 aix_use_runtimelinking=no
59796461 exp_sym_flag='-Bexport'
5980 no_entry_flag=""
6462 no_entry_flag=
59816463 else
59826464 aix_use_runtimelinking=no
59836465
59846466 # Test if we are trying to use run time linking or normal
59856467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5986 # need to do runtime linking.
6468 # have runtime linking enabled, and use it for executables.
6469 # For shared libraries, we enable/disable runtime linking
6470 # depending on the kind of the shared library created -
6471 # when "with_aix_soname,aix_use_runtimelinking" is:
6472 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6473 # "aix,yes" lib.so shared, rtl:yes, for executables
6474 # lib.a static archive
6475 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6476 # lib.a(lib.so.V) shared, rtl:no, for executables
6477 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6478 # lib.a(lib.so.V) shared, rtl:no
6479 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6480 # lib.a static archive
59876481 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
59886482 for ld_flag in $LDFLAGS; do
59896483 case $ld_flag in
59936487 ;;
59946488 esac
59956489 done
6490 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6491 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6492 # so we don't have lib.a shared libs to link our executables.
6493 # We have to force runtime linking in this case.
6494 aix_use_runtimelinking=yes
6495 LDFLAGS="$LDFLAGS -Wl,-brtl"
6496 fi
59966497 ;;
59976498 esac
59986499
60116512 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
60126513 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
60136514 _LT_TAGVAR(link_all_deplibs, $1)=yes
6014 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6015
6016 if test "$GXX" = yes; then
6515 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6516 case $with_aix_soname,$aix_use_runtimelinking in
6517 aix,*) ;; # no import file
6518 svr4,* | *,yes) # use import file
6519 # The Import File defines what to hardcode.
6520 _LT_TAGVAR(hardcode_direct, $1)=no
6521 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6522 ;;
6523 esac
6524
6525 if test yes = "$GXX"; then
60176526 case $host_os in aix4.[[012]]|aix4.[[012]].*)
60186527 # We only want to do this on AIX 4.2 and lower, the check
60196528 # below for broken collect2 doesn't work under 4.3+
6020 collect2name=`${CC} -print-prog-name=collect2`
6529 collect2name=`$CC -print-prog-name=collect2`
60216530 if test -f "$collect2name" &&
60226531 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
60236532 then
60356544 fi
60366545 esac
60376546 shared_flag='-shared'
6038 if test "$aix_use_runtimelinking" = yes; then
6039 shared_flag="$shared_flag "'${wl}-G'
6547 if test yes = "$aix_use_runtimelinking"; then
6548 shared_flag=$shared_flag' $wl-G'
60406549 fi
6550 # Need to ensure runtime linking is disabled for the traditional
6551 # shared library, or the linker may eventually find shared libraries
6552 # /with/ Import File - we do not want to mix them.
6553 shared_flag_aix='-shared'
6554 shared_flag_svr4='-shared $wl-G'
60416555 else
60426556 # not using gcc
6043 if test "$host_cpu" = ia64; then
6557 if test ia64 = "$host_cpu"; then
60446558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
60456559 # chokes on -Wl,-G. The following line is correct:
60466560 shared_flag='-G'
60476561 else
6048 if test "$aix_use_runtimelinking" = yes; then
6049 shared_flag='${wl}-G'
6562 if test yes = "$aix_use_runtimelinking"; then
6563 shared_flag='$wl-G'
60506564 else
6051 shared_flag='${wl}-bM:SRE'
6565 shared_flag='$wl-bM:SRE'
60526566 fi
6567 shared_flag_aix='$wl-bM:SRE'
6568 shared_flag_svr4='$wl-G'
60536569 fi
60546570 fi
60556571
6056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6572 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
60576573 # It seems that -bexpall does not export symbols beginning with
60586574 # underscore (_), so it is better to generate a list of symbols to
60596575 # export.
60606576 _LT_TAGVAR(always_export_symbols, $1)=yes
6061 if test "$aix_use_runtimelinking" = yes; then
6577 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
60626578 # Warning - without using the other runtime loading flags (-brtl),
60636579 # -berok will link without error, but may produce a broken library.
6064 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6580 # The "-G" linker flag allows undefined symbols.
6581 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
60656582 # Determine the default libpath from the value encoded in an empty
60666583 # executable.
60676584 _LT_SYS_MODULE_PATH_AIX([$1])
6068 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6069
6070 _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"
6585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6586
6587 _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
60716588 else
6072 if test "$host_cpu" = ia64; then
6073 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6589 if test ia64 = "$host_cpu"; then
6590 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
60746591 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6075 _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"
6592 _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"
60766593 else
60776594 # Determine the default libpath from the value encoded in an
60786595 # empty executable.
60796596 _LT_SYS_MODULE_PATH_AIX([$1])
6080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6597 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
60816598 # Warning - without using the other run time loading flags,
60826599 # -berok will link without error, but may produce a broken library.
6083 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6084 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6085 if test "$with_gnu_ld" = yes; then
6600 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6601 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6602 if test yes = "$with_gnu_ld"; then
60866603 # We only use this code for GNU lds that support --whole-archive.
6087 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6604 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
60886605 else
60896606 # Exported symbols can be pulled into shared objects from archives
60906607 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
60916608 fi
60926609 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6093 # This is similar to how AIX traditionally builds its shared
6094 # libraries.
6095 _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'
6610 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6611 # -brtl affects multiple linker settings, -berok does not and is overridden later
6612 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6613 if test svr4 != "$with_aix_soname"; then
6614 # This is similar to how AIX traditionally builds its shared
6615 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6616 _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'
6617 fi
6618 if test aix != "$with_aix_soname"; then
6619 _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'
6620 else
6621 # used by -dlpreopen to get the symbols
6622 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6623 fi
6624 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
60966625 fi
60976626 fi
60986627 ;;
61026631 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61036632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
61046633 # support --undefined. This deserves some investigation. FIXME
6105 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6634 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
61066635 else
61076636 _LT_TAGVAR(ld_shlibs, $1)=no
61086637 fi
61306659 # Tell ltmain to make .lib files, not .a files.
61316660 libext=lib
61326661 # Tell ltmain to make .dll files, not .so files.
6133 shrext_cmds=".dll"
6662 shrext_cmds=.dll
61346663 # FIXME: Setting linknames here is a bad hack.
6135 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6136 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6137 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6138 else
6139 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6140 fi~
6141 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6142 linknames='
6664 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6665 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6666 cp "$export_symbols" "$output_objdir/$soname.def";
6667 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6668 else
6669 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6670 fi~
6671 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6672 linknames='
61436673 # The linker will not automatically build a static lib if we build a DLL.
61446674 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
61456675 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61466676 # Don't use ranlib
61476677 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
61486678 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6149 lt_tool_outputfile="@TOOL_OUTPUT@"~
6150 case $lt_outputfile in
6151 *.exe|*.EXE) ;;
6152 *)
6153 lt_outputfile="$lt_outputfile.exe"
6154 lt_tool_outputfile="$lt_tool_outputfile.exe"
6155 ;;
6156 esac~
6157 func_to_tool_file "$lt_outputfile"~
6158 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6159 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6160 $RM "$lt_outputfile.manifest";
6161 fi'
6679 lt_tool_outputfile="@TOOL_OUTPUT@"~
6680 case $lt_outputfile in
6681 *.exe|*.EXE) ;;
6682 *)
6683 lt_outputfile=$lt_outputfile.exe
6684 lt_tool_outputfile=$lt_tool_outputfile.exe
6685 ;;
6686 esac~
6687 func_to_tool_file "$lt_outputfile"~
6688 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6689 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6690 $RM "$lt_outputfile.manifest";
6691 fi'
61626692 ;;
61636693 *)
61646694 # g++
61656695 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
61666696 # as there is no search path for DLLs.
61676697 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6168 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6698 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
61696699 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61706700 _LT_TAGVAR(always_export_symbols, $1)=no
61716701 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61726702
61736703 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6174 _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'
6175 # If the export-symbols file already is a .def file (1st line
6176 # is EXPORTS), use it as is; otherwise, prepend...
6177 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6178 cp $export_symbols $output_objdir/$soname.def;
6179 else
6180 echo EXPORTS > $output_objdir/$soname.def;
6181 cat $export_symbols >> $output_objdir/$soname.def;
6182 fi~
6183 $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'
6704 _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'
6705 # If the export-symbols file already is a .def file, use it as
6706 # is; otherwise, prepend EXPORTS...
6707 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6708 cp $export_symbols $output_objdir/$soname.def;
6709 else
6710 echo EXPORTS > $output_objdir/$soname.def;
6711 cat $export_symbols >> $output_objdir/$soname.def;
6712 fi~
6713 $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'
61846714 else
61856715 _LT_TAGVAR(ld_shlibs, $1)=no
61866716 fi
61896719 ;;
61906720 darwin* | rhapsody*)
61916721 _LT_DARWIN_LINKER_FEATURES($1)
6722 ;;
6723
6724 os2*)
6725 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6726 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6727 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6728 shrext_cmds=.dll
6729 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6730 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6731 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6732 $ECHO EXPORTS >> $output_objdir/$libname.def~
6733 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6734 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6735 emximp -o $lib $output_objdir/$libname.def'
6736 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6737 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6738 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6739 $ECHO EXPORTS >> $output_objdir/$libname.def~
6740 prefix_cmds="$SED"~
6741 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6742 prefix_cmds="$prefix_cmds -e 1d";
6743 fi~
6744 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6745 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6746 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6747 emximp -o $lib $output_objdir/$libname.def'
6748 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6749 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61926750 ;;
61936751
61946752 dgux*)
62256783 _LT_TAGVAR(ld_shlibs, $1)=yes
62266784 ;;
62276785
6228 gnu*)
6229 ;;
6230
62316786 haiku*)
6232 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6787 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62336788 _LT_TAGVAR(link_all_deplibs, $1)=yes
62346789 ;;
62356790
62366791 hpux9*)
6237 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6792 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62386793 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6239 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6794 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62406795 _LT_TAGVAR(hardcode_direct, $1)=yes
62416796 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
62426797 # but as the default
62486803 _LT_TAGVAR(ld_shlibs, $1)=no
62496804 ;;
62506805 aCC*)
6251 _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'
6806 _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'
62526807 # Commands to make compiler produce verbose output that lists
62536808 # what "hidden" libraries, object files and flags are used when
62546809 # linking a shared library.
62576812 # explicitly linking system object files so we need to strip them
62586813 # from the output so that they don't get included in the library
62596814 # dependencies.
6260 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"'
6815 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"'
62616816 ;;
62626817 *)
6263 if test "$GXX" = yes; then
6264 _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'
6818 if test yes = "$GXX"; then
6819 _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'
62656820 else
62666821 # FIXME: insert proper C++ library support
62676822 _LT_TAGVAR(ld_shlibs, $1)=no
62716826 ;;
62726827
62736828 hpux10*|hpux11*)
6274 if test $with_gnu_ld = no; then
6275 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6829 if test no = "$with_gnu_ld"; then
6830 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62766831 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62776832
62786833 case $host_cpu in
62796834 hppa*64*|ia64*)
62806835 ;;
62816836 *)
6282 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6837 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62836838 ;;
62846839 esac
62856840 fi
63056860 aCC*)
63066861 case $host_cpu in
63076862 hppa*64*)
6308 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6863 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63096864 ;;
63106865 ia64*)
6311 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6866 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63126867 ;;
63136868 *)
6314 _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'
6869 _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'
63156870 ;;
63166871 esac
63176872 # Commands to make compiler produce verbose output that lists
63226877 # explicitly linking system object files so we need to strip them
63236878 # from the output so that they don't get included in the library
63246879 # dependencies.
6325 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"'
6880 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"'
63266881 ;;
63276882 *)
6328 if test "$GXX" = yes; then
6329 if test $with_gnu_ld = no; then
6883 if test yes = "$GXX"; then
6884 if test no = "$with_gnu_ld"; then
63306885 case $host_cpu in
63316886 hppa*64*)
6332 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6887 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63336888 ;;
63346889 ia64*)
6335 _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'
6890 _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'
63366891 ;;
63376892 *)
6338 _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'
6893 _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'
63396894 ;;
63406895 esac
63416896 fi
63506905 interix[[3-9]]*)
63516906 _LT_TAGVAR(hardcode_direct, $1)=no
63526907 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6353 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6354 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6909 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
63556910 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
63566911 # Instead, shared libraries are loaded at an image base (0x10000000 by
63576912 # default) and relocated if they conflict, which is a slow very memory
63586913 # consuming and fragmenting process. To avoid this, we pick a random,
63596914 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
63606915 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6361 _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'
6362 _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'
6916 _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'
6917 _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'
63636918 ;;
63646919 irix5* | irix6*)
63656920 case $cc_basename in
63666921 CC*)
63676922 # SGI C++
6368 _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'
6923 _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'
63696924
63706925 # Archives containing C++ object files must be created using
63716926 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
63746929 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
63756930 ;;
63766931 *)
6377 if test "$GXX" = yes; then
6378 if test "$with_gnu_ld" = no; then
6379 _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'
6932 if test yes = "$GXX"; then
6933 if test no = "$with_gnu_ld"; then
6934 _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'
63806935 else
6381 _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'
6936 _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'
63826937 fi
63836938 fi
63846939 _LT_TAGVAR(link_all_deplibs, $1)=yes
63856940 ;;
63866941 esac
6387 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
63886943 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
63896944 _LT_TAGVAR(inherit_rpath, $1)=yes
63906945 ;;
63916946
6392 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6947 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
63936948 case $cc_basename in
63946949 KCC*)
63956950 # Kuck and Associates, Inc. (KAI) C++ Compiler
63976952 # KCC will only create a shared library if the output file
63986953 # ends with ".so" (or ".sl" for HP-UX), so rename the library
63996954 # to its proper name (with version) after linking.
6400 _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'
6401 _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'
6955 _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'
6956 _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'
64026957 # Commands to make compiler produce verbose output that lists
64036958 # what "hidden" libraries, object files and flags are used when
64046959 # linking a shared library.
64076962 # explicitly linking system object files so we need to strip them
64086963 # from the output so that they don't get included in the library
64096964 # dependencies.
6410 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"'
6411
6412 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6413 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6965 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"'
6966
6967 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6968 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
64146969
64156970 # Archives containing C++ object files must be created using
64166971 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
64246979 # earlier do not add the objects themselves.
64256980 case `$CC -V 2>&1` in
64266981 *"Version 7."*)
6427 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6428 _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'
6982 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6983 _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'
64296984 ;;
64306985 *) # Version 8.0 or newer
64316986 tmp_idyn=
64326987 case $host_cpu in
64336988 ia64*) tmp_idyn=' -i_dynamic';;
64346989 esac
6435 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6436 _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'
6990 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6991 _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'
64376992 ;;
64386993 esac
64396994 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6440 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6441 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6442 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6995 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6996 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6997 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
64436998 ;;
64446999 pgCC* | pgcpp*)
64457000 # Portland Group C++ compiler
64467001 case `$CC -V` in
64477002 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
64487003 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6449 rm -rf $tpldir~
6450 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6451 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7004 rm -rf $tpldir~
7005 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7006 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
64527007 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6453 rm -rf $tpldir~
6454 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6455 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6456 $RANLIB $oldlib'
7008 rm -rf $tpldir~
7009 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7010 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7011 $RANLIB $oldlib'
64577012 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6458 rm -rf $tpldir~
6459 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6460 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7013 rm -rf $tpldir~
7014 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7015 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
64617016 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6462 rm -rf $tpldir~
6463 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6464 $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'
7017 rm -rf $tpldir~
7018 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7019 $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'
64657020 ;;
64667021 *) # Version 6 and above use weak symbols
6467 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6468 _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'
7022 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7023 _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'
64697024 ;;
64707025 esac
64717026
6472 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6473 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6474 _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'
7027 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7028 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7029 _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'
64757030 ;;
64767031 cxx*)
64777032 # Compaq C++
6478 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6479 _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'
7033 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7034 _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'
64807035
64817036 runpath_var=LD_RUN_PATH
64827037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
64907045 # explicitly linking system object files so we need to strip them
64917046 # from the output so that they don't get included in the library
64927047 # dependencies.
6493 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'
7048 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'
64947049 ;;
64957050 xl* | mpixl* | bgxl*)
64967051 # IBM XL 8.0 on PPC, with GNU ld
6497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6498 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6499 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6500 if test "x$supports_anon_versioning" = xyes; then
7052 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7053 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7054 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7055 if test yes = "$supports_anon_versioning"; then
65017056 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6503 echo "local: *; };" >> $output_objdir/$libname.ver~
6504 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7058 echo "local: *; };" >> $output_objdir/$libname.ver~
7059 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
65057060 fi
65067061 ;;
65077062 *)
65097064 *Sun\ C*)
65107065 # Sun C++ 5.9
65117066 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6512 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6513 _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'
7067 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7068 _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'
65147069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6515 _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'
7070 _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'
65167071 _LT_TAGVAR(compiler_needs_object, $1)=yes
65177072
65187073 # Not sure whether something based on
65707125 _LT_TAGVAR(ld_shlibs, $1)=yes
65717126 ;;
65727127
6573 openbsd2*)
6574 # C++ shared libraries are fairly broken
6575 _LT_TAGVAR(ld_shlibs, $1)=no
6576 ;;
6577
6578 openbsd*)
7128 openbsd* | bitrig*)
65797129 if test -f /usr/libexec/ld.so; then
65807130 _LT_TAGVAR(hardcode_direct, $1)=yes
65817131 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
65827132 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
65837133 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6584 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6586 _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'
6587 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6588 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7134 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7136 _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'
7137 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7138 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
65897139 fi
65907140 output_verbose_link_cmd=func_echo_all
65917141 else
66017151 # KCC will only create a shared library if the output file
66027152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
66037153 # to its proper name (with version) after linking.
6604 _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'
6605
6606 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7154 _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'
7155
7156 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
66077157 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66087158
66097159 # Archives containing C++ object files must be created using
66217171 cxx*)
66227172 case $host in
66237173 osf3*)
6624 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6625 _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'
6626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7174 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7175 _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'
7176 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66277177 ;;
66287178 *)
66297179 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6630 _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'
7180 _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'
66317181 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6632 echo "-hidden">> $lib.exp~
6633 $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~
6634 $RM $lib.exp'
7182 echo "-hidden">> $lib.exp~
7183 $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~
7184 $RM $lib.exp'
66357185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
66367186 ;;
66377187 esac
66467196 # explicitly linking system object files so we need to strip them
66477197 # from the output so that they don't get included in the library
66487198 # dependencies.
6649 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"'
7199 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"'
66507200 ;;
66517201 *)
6652 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6653 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7202 if test yes,no = "$GXX,$with_gnu_ld"; then
7203 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
66547204 case $host in
66557205 osf3*)
6656 _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'
7206 _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'
66577207 ;;
66587208 *)
6659 _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'
7209 _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'
66607210 ;;
66617211 esac
66627212
6663 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7213 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66647214 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66657215
66667216 # Commands to make compiler produce verbose output that lists
67067256 # Sun C++ 4.2, 5.x and Centerline C++
67077257 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
67087258 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6709 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7259 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67107260 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6711 $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'
7261 $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'
67127262
67137263 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
67147264 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67167266 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67177267 *)
67187268 # The compiler driver will combine and reorder linker options,
6719 # but understands `-z linker_flag'.
7269 # but understands '-z linker_flag'.
67207270 # Supported since Solaris 2.6 (maybe 2.5.1?)
67217271 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
67227272 ;;
67337283 ;;
67347284 gcx*)
67357285 # Green Hills C++ Compiler
6736 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7286 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67377287
67387288 # The C++ compiler must be used to create the archive.
67397289 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
67407290 ;;
67417291 *)
67427292 # GNU C++ compiler with Solaris linker
6743 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6744 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7293 if test yes,no = "$GXX,$with_gnu_ld"; then
7294 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
67457295 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6746 _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'
7296 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67477297 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6748 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7298 $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'
67497299
67507300 # Commands to make compiler produce verbose output that lists
67517301 # what "hidden" libraries, object files and flags are used when
67527302 # linking a shared library.
67537303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67547304 else
6755 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7305 # g++ 2.7 appears to require '-G' NOT '-shared' on this
67567306 # platform.
6757 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7307 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67587308 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6759 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7309 $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'
67607310
67617311 # Commands to make compiler produce verbose output that lists
67627312 # what "hidden" libraries, object files and flags are used when
67647314 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67657315 fi
67667316
6767 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7317 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
67687318 case $host_os in
67697319 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67707320 *)
6771 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7321 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
67727322 ;;
67737323 esac
67747324 fi
67777327 ;;
67787328
67797329 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6780 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7330 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
67817331 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67827332 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67837333 runpath_var='LD_RUN_PATH'
67847334
67857335 case $cc_basename in
67867336 CC*)
6787 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6788 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7337 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7338 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
67897339 ;;
67907340 *)
6791 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6792 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7341 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7342 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
67937343 ;;
67947344 esac
67957345 ;;
67967346
67977347 sysv5* | sco3.2v5* | sco5v6*)
6798 # Note: We can NOT use -z defs as we might desire, because we do not
7348 # Note: We CANNOT use -z defs as we might desire, because we do not
67997349 # link with -lc, and that would cause any symbols used from libc to
68007350 # always be unresolved, which means just about no library would
68017351 # ever link correctly. If we're not using GNU ld we use -z text
68027352 # though, which does catch some bad symbols but isn't as heavy-handed
68037353 # as -z defs.
6804 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6805 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7354 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7355 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
68067356 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68077357 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7358 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
68097359 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
68107360 _LT_TAGVAR(link_all_deplibs, $1)=yes
6811 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7361 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
68127362 runpath_var='LD_RUN_PATH'
68137363
68147364 case $cc_basename in
68157365 CC*)
6816 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6817 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7366 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7367 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68187368 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6819 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7369 '"$_LT_TAGVAR(old_archive_cmds, $1)"
68207370 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6821 '"$_LT_TAGVAR(reload_cmds, $1)"
7371 '"$_LT_TAGVAR(reload_cmds, $1)"
68227372 ;;
68237373 *)
6824 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6825 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7374 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7375 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68267376 ;;
68277377 esac
68287378 ;;
68537403 esac
68547404
68557405 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6856 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6857
6858 _LT_TAGVAR(GCC, $1)="$GXX"
6859 _LT_TAGVAR(LD, $1)="$LD"
7406 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7407
7408 _LT_TAGVAR(GCC, $1)=$GXX
7409 _LT_TAGVAR(LD, $1)=$LD
68607410
68617411 ## CAVEAT EMPTOR:
68627412 ## There is no encapsulation within the following macros, do not change
68837433 lt_cv_path_LD=$lt_save_path_LD
68847434 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
68857435 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6886 fi # test "$_lt_caught_CXX_error" != yes
7436 fi # test yes != "$_lt_caught_CXX_error"
68877437
68887438 AC_LANG_POP
68897439 ])# _LT_LANG_CXX_CONFIG
69057455 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
69067456 func_stripname_cnf ()
69077457 {
6908 case ${2} in
6909 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6910 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7458 case @S|@2 in
7459 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7460 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
69117461 esac
69127462 } # func_stripname_cnf
69137463 ])# _LT_FUNC_STRIPNAME_CNF
7464
69147465
69157466 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
69167467 # ---------------------------------
69957546 pre_test_object_deps_done=no
69967547
69977548 for p in `eval "$output_verbose_link_cmd"`; do
6998 case ${prev}${p} in
7549 case $prev$p in
69997550
70007551 -L* | -R* | -l*)
70017552 # Some compilers place space between "-{L,R}" and the path.
70027553 # Remove the space.
7003 if test $p = "-L" ||
7004 test $p = "-R"; then
7554 if test x-L = "$p" ||
7555 test x-R = "$p"; then
70057556 prev=$p
70067557 continue
70077558 fi
70177568 case $p in
70187569 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
70197570 esac
7020 if test "$pre_test_object_deps_done" = no; then
7021 case ${prev} in
7571 if test no = "$pre_test_object_deps_done"; then
7572 case $prev in
70227573 -L | -R)
70237574 # Internal compiler library paths should come after those
70247575 # provided the user. The postdeps already come after the
70257576 # user supplied libs so there is no need to process them.
70267577 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7027 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7578 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
70287579 else
7029 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7580 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
70307581 fi
70317582 ;;
70327583 # The "-l" case would never come before the object being
70347585 esac
70357586 else
70367587 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7037 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7588 _LT_TAGVAR(postdeps, $1)=$prev$p
70387589 else
7039 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7590 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
70407591 fi
70417592 fi
70427593 prev=
70517602 continue
70527603 fi
70537604
7054 if test "$pre_test_object_deps_done" = no; then
7605 if test no = "$pre_test_object_deps_done"; then
70557606 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7056 _LT_TAGVAR(predep_objects, $1)="$p"
7607 _LT_TAGVAR(predep_objects, $1)=$p
70577608 else
70587609 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
70597610 fi
70607611 else
70617612 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7062 _LT_TAGVAR(postdep_objects, $1)="$p"
7613 _LT_TAGVAR(postdep_objects, $1)=$p
70637614 else
70647615 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
70657616 fi
70907641 _LT_TAGVAR(postdep_objects,$1)=
70917642 _LT_TAGVAR(postdeps,$1)=
70927643 ;;
7093
7094 linux*)
7095 case `$CC -V 2>&1 | sed 5q` in
7096 *Sun\ C*)
7097 # Sun C++ 5.9
7098
7099 # The more standards-conforming stlport4 library is
7100 # incompatible with the Cstd library. Avoid specifying
7101 # it if it's in CXXFLAGS. Ignore libCrun as
7102 # -library=stlport4 depends on it.
7103 case " $CXX $CXXFLAGS " in
7104 *" -library=stlport4 "*)
7105 solaris_use_stlport4=yes
7106 ;;
7107 esac
7108
7109 if test "$solaris_use_stlport4" != yes; then
7110 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7111 fi
7112 ;;
7113 esac
7114 ;;
7115
7116 solaris*)
7117 case $cc_basename in
7118 CC* | sunCC*)
7119 # The more standards-conforming stlport4 library is
7120 # incompatible with the Cstd library. Avoid specifying
7121 # it if it's in CXXFLAGS. Ignore libCrun as
7122 # -library=stlport4 depends on it.
7123 case " $CXX $CXXFLAGS " in
7124 *" -library=stlport4 "*)
7125 solaris_use_stlport4=yes
7126 ;;
7127 esac
7128
7129 # Adding this requires a known-good setup of shared libraries for
7130 # Sun compiler versions before 5.6, else PIC objects from an old
7131 # archive will be linked into the output, leading to subtle bugs.
7132 if test "$solaris_use_stlport4" != yes; then
7133 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7134 fi
7135 ;;
7136 esac
7137 ;;
71387644 esac
71397645 ])
71407646
71437649 esac
71447650 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
71457651 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7146 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7652 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
71477653 fi
71487654 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
71497655 [The directories searched by this compiler when creating a shared library])
71637669 # --------------------------
71647670 # Ensure that the configuration variables for a Fortran 77 compiler are
71657671 # suitably defined. These variables are subsequently used by _LT_CONFIG
7166 # to write the compiler configuration to `libtool'.
7672 # to write the compiler configuration to 'libtool'.
71677673 m4_defun([_LT_LANG_F77_CONFIG],
71687674 [AC_LANG_PUSH(Fortran 77)
7169 if test -z "$F77" || test "X$F77" = "Xno"; then
7675 if test -z "$F77" || test no = "$F77"; then
71707676 _lt_disable_F77=yes
71717677 fi
71727678
72037709 # the F77 compiler isn't working. Some variables (like enable_shared)
72047710 # are currently assumed to apply to all compilers on this platform,
72057711 # and will be corrupted by setting them based on a non-working compiler.
7206 if test "$_lt_disable_F77" != yes; then
7712 if test yes != "$_lt_disable_F77"; then
72077713 # Code to be used in simple compile tests
72087714 lt_simple_compile_test_code="\
72097715 subroutine t
72257731 _LT_LINKER_BOILERPLATE
72267732
72277733 # Allow CC to be a program name with arguments.
7228 lt_save_CC="$CC"
7734 lt_save_CC=$CC
72297735 lt_save_GCC=$GCC
72307736 lt_save_CFLAGS=$CFLAGS
72317737 CC=${F77-"f77"}
72397745 AC_MSG_RESULT([$can_build_shared])
72407746
72417747 AC_MSG_CHECKING([whether to build shared libraries])
7242 test "$can_build_shared" = "no" && enable_shared=no
7748 test no = "$can_build_shared" && enable_shared=no
72437749
72447750 # On AIX, shared libraries and static libraries use the same namespace, and
72457751 # are all built from PIC.
72467752 case $host_os in
72477753 aix3*)
7248 test "$enable_shared" = yes && enable_static=no
7754 test yes = "$enable_shared" && enable_static=no
72497755 if test -n "$RANLIB"; then
72507756 archive_cmds="$archive_cmds~\$RANLIB \$lib"
72517757 postinstall_cmds='$RANLIB $lib'
72527758 fi
72537759 ;;
72547760 aix[[4-9]]*)
7255 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7256 test "$enable_shared" = yes && enable_static=no
7761 if test ia64 != "$host_cpu"; then
7762 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7763 yes,aix,yes) ;; # shared object as lib.so file only
7764 yes,svr4,*) ;; # shared object as lib.so archive member only
7765 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7766 esac
72577767 fi
72587768 ;;
72597769 esac
72617771
72627772 AC_MSG_CHECKING([whether to build static libraries])
72637773 # Make sure either enable_shared or enable_static is yes.
7264 test "$enable_shared" = yes || enable_static=yes
7774 test yes = "$enable_shared" || enable_static=yes
72657775 AC_MSG_RESULT([$enable_static])
72667776
7267 _LT_TAGVAR(GCC, $1)="$G77"
7268 _LT_TAGVAR(LD, $1)="$LD"
7777 _LT_TAGVAR(GCC, $1)=$G77
7778 _LT_TAGVAR(LD, $1)=$LD
72697779
72707780 ## CAVEAT EMPTOR:
72717781 ## There is no encapsulation within the following macros, do not change
72827792 fi # test -n "$compiler"
72837793
72847794 GCC=$lt_save_GCC
7285 CC="$lt_save_CC"
7286 CFLAGS="$lt_save_CFLAGS"
7287 fi # test "$_lt_disable_F77" != yes
7795 CC=$lt_save_CC
7796 CFLAGS=$lt_save_CFLAGS
7797 fi # test yes != "$_lt_disable_F77"
72887798
72897799 AC_LANG_POP
72907800 ])# _LT_LANG_F77_CONFIG
72947804 # -------------------------
72957805 # Ensure that the configuration variables for a Fortran compiler are
72967806 # suitably defined. These variables are subsequently used by _LT_CONFIG
7297 # to write the compiler configuration to `libtool'.
7807 # to write the compiler configuration to 'libtool'.
72987808 m4_defun([_LT_LANG_FC_CONFIG],
72997809 [AC_LANG_PUSH(Fortran)
73007810
7301 if test -z "$FC" || test "X$FC" = "Xno"; then
7811 if test -z "$FC" || test no = "$FC"; then
73027812 _lt_disable_FC=yes
73037813 fi
73047814
73357845 # the FC compiler isn't working. Some variables (like enable_shared)
73367846 # are currently assumed to apply to all compilers on this platform,
73377847 # and will be corrupted by setting them based on a non-working compiler.
7338 if test "$_lt_disable_FC" != yes; then
7848 if test yes != "$_lt_disable_FC"; then
73397849 # Code to be used in simple compile tests
73407850 lt_simple_compile_test_code="\
73417851 subroutine t
73577867 _LT_LINKER_BOILERPLATE
73587868
73597869 # Allow CC to be a program name with arguments.
7360 lt_save_CC="$CC"
7870 lt_save_CC=$CC
73617871 lt_save_GCC=$GCC
73627872 lt_save_CFLAGS=$CFLAGS
73637873 CC=${FC-"f95"}
73737883 AC_MSG_RESULT([$can_build_shared])
73747884
73757885 AC_MSG_CHECKING([whether to build shared libraries])
7376 test "$can_build_shared" = "no" && enable_shared=no
7886 test no = "$can_build_shared" && enable_shared=no
73777887
73787888 # On AIX, shared libraries and static libraries use the same namespace, and
73797889 # are all built from PIC.
73807890 case $host_os in
73817891 aix3*)
7382 test "$enable_shared" = yes && enable_static=no
7892 test yes = "$enable_shared" && enable_static=no
73837893 if test -n "$RANLIB"; then
73847894 archive_cmds="$archive_cmds~\$RANLIB \$lib"
73857895 postinstall_cmds='$RANLIB $lib'
73867896 fi
73877897 ;;
73887898 aix[[4-9]]*)
7389 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7390 test "$enable_shared" = yes && enable_static=no
7899 if test ia64 != "$host_cpu"; then
7900 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7901 yes,aix,yes) ;; # shared object as lib.so file only
7902 yes,svr4,*) ;; # shared object as lib.so archive member only
7903 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7904 esac
73917905 fi
73927906 ;;
73937907 esac
73957909
73967910 AC_MSG_CHECKING([whether to build static libraries])
73977911 # Make sure either enable_shared or enable_static is yes.
7398 test "$enable_shared" = yes || enable_static=yes
7912 test yes = "$enable_shared" || enable_static=yes
73997913 AC_MSG_RESULT([$enable_static])
74007914
7401 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7402 _LT_TAGVAR(LD, $1)="$LD"
7915 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7916 _LT_TAGVAR(LD, $1)=$LD
74037917
74047918 ## CAVEAT EMPTOR:
74057919 ## There is no encapsulation within the following macros, do not change
74197933 GCC=$lt_save_GCC
74207934 CC=$lt_save_CC
74217935 CFLAGS=$lt_save_CFLAGS
7422 fi # test "$_lt_disable_FC" != yes
7936 fi # test yes != "$_lt_disable_FC"
74237937
74247938 AC_LANG_POP
74257939 ])# _LT_LANG_FC_CONFIG
74297943 # --------------------------
74307944 # Ensure that the configuration variables for the GNU Java Compiler compiler
74317945 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7432 # to write the compiler configuration to `libtool'.
7946 # to write the compiler configuration to 'libtool'.
74337947 m4_defun([_LT_LANG_GCJ_CONFIG],
74347948 [AC_REQUIRE([LT_PROG_GCJ])dnl
74357949 AC_LANG_SAVE
74637977 CFLAGS=$GCJFLAGS
74647978 compiler=$CC
74657979 _LT_TAGVAR(compiler, $1)=$CC
7466 _LT_TAGVAR(LD, $1)="$LD"
7980 _LT_TAGVAR(LD, $1)=$LD
74677981 _LT_CC_BASENAME([$compiler])
74687982
74697983 # GCJ did not exist at the time GCC didn't implicitly link libc in.
75008014 # --------------------------
75018015 # Ensure that the configuration variables for the GNU Go compiler
75028016 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7503 # to write the compiler configuration to `libtool'.
8017 # to write the compiler configuration to 'libtool'.
75048018 m4_defun([_LT_LANG_GO_CONFIG],
75058019 [AC_REQUIRE([LT_PROG_GO])dnl
75068020 AC_LANG_SAVE
75348048 CFLAGS=$GOFLAGS
75358049 compiler=$CC
75368050 _LT_TAGVAR(compiler, $1)=$CC
7537 _LT_TAGVAR(LD, $1)="$LD"
8051 _LT_TAGVAR(LD, $1)=$LD
75388052 _LT_CC_BASENAME([$compiler])
75398053
75408054 # Go did not exist at the time GCC didn't implicitly link libc in.
75718085 # -------------------------
75728086 # Ensure that the configuration variables for the Windows resource compiler
75738087 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7574 # to write the compiler configuration to `libtool'.
8088 # to write the compiler configuration to 'libtool'.
75758089 m4_defun([_LT_LANG_RC_CONFIG],
75768090 [AC_REQUIRE([LT_PROG_RC])dnl
75778091 AC_LANG_SAVE
75878101 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
75888102
75898103 # Code to be used in simple link tests
7590 lt_simple_link_test_code="$lt_simple_compile_test_code"
8104 lt_simple_link_test_code=$lt_simple_compile_test_code
75918105
75928106 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
75938107 _LT_TAG_COMPILER
75978111 _LT_LINKER_BOILERPLATE
75988112
75998113 # Allow CC to be a program name with arguments.
7600 lt_save_CC="$CC"
8114 lt_save_CC=$CC
76018115 lt_save_CFLAGS=$CFLAGS
76028116 lt_save_GCC=$GCC
76038117 GCC=
76268140 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
76278141 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
76288142 [AC_CHECK_TOOL(GCJ, gcj,)
7629 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8143 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
76308144 AC_SUBST(GCJFLAGS)])])[]dnl
76318145 ])
76328146
77378251 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
77388252 # along with /bin/sed that truncates output.
77398253 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7740 test ! -f $lt_ac_sed && continue
8254 test ! -f "$lt_ac_sed" && continue
77418255 cat /dev/null > conftest.in
77428256 lt_ac_count=0
77438257 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
77548268 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
77558269 cmp -s conftest.out conftest.nl || break
77568270 # 10000 chars as input seems more than enough
7757 test $lt_ac_count -gt 10 && break
8271 test 10 -lt "$lt_ac_count" && break
77588272 lt_ac_count=`expr $lt_ac_count + 1`
7759 if test $lt_ac_count -gt $lt_ac_max; then
8273 if test "$lt_ac_count" -gt "$lt_ac_max"; then
77608274 lt_ac_max=$lt_ac_count
77618275 lt_cv_path_SED=$lt_ac_sed
77628276 fi
77808294 # Find out whether the shell is Bourne or XSI compatible,
77818295 # or has some other useful features.
77828296 m4_defun([_LT_CHECK_SHELL_FEATURES],
7783 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7784 # Try some XSI features
7785 xsi_shell=no
7786 ( _lt_dummy="a/b/c"
7787 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7788 = c,a/b,b/c, \
7789 && eval 'test $(( 1 + 1 )) -eq 2 \
7790 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7791 && xsi_shell=yes
7792 AC_MSG_RESULT([$xsi_shell])
7793 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7794
7795 AC_MSG_CHECKING([whether the shell understands "+="])
7796 lt_shell_append=no
7797 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7798 >/dev/null 2>&1 \
7799 && lt_shell_append=yes
7800 AC_MSG_RESULT([$lt_shell_append])
7801 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7802
7803 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8297 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
78048298 lt_unset=unset
78058299 else
78068300 lt_unset=false
78248318 ])# _LT_CHECK_SHELL_FEATURES
78258319
78268320
7827 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7828 # ------------------------------------------------------
7829 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7830 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7831 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7832 [dnl {
7833 sed -e '/^$1 ()$/,/^} # $1 /c\
7834 $1 ()\
7835 {\
7836 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7837 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7838 && mv -f "$cfgfile.tmp" "$cfgfile" \
7839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7840 test 0 -eq $? || _lt_function_replace_fail=:
7841 ])
7842
7843
7844 # _LT_PROG_REPLACE_SHELLFNS
7845 # -------------------------
7846 # Replace existing portable implementations of several shell functions with
7847 # equivalent extended shell implementations where those features are available..
7848 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7849 [if test x"$xsi_shell" = xyes; then
7850 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7851 case ${1} in
7852 */*) func_dirname_result="${1%/*}${2}" ;;
7853 * ) func_dirname_result="${3}" ;;
7854 esac])
7855
7856 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7857 func_basename_result="${1##*/}"])
7858
7859 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7860 case ${1} in
7861 */*) func_dirname_result="${1%/*}${2}" ;;
7862 * ) func_dirname_result="${3}" ;;
7863 esac
7864 func_basename_result="${1##*/}"])
7865
7866 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7867 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7868 # positional parameters, so assign one to ordinary parameter first.
7869 func_stripname_result=${3}
7870 func_stripname_result=${func_stripname_result#"${1}"}
7871 func_stripname_result=${func_stripname_result%"${2}"}])
7872
7873 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7874 func_split_long_opt_name=${1%%=*}
7875 func_split_long_opt_arg=${1#*=}])
7876
7877 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7878 func_split_short_opt_arg=${1#??}
7879 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7880
7881 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7882 case ${1} in
7883 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7884 *) func_lo2o_result=${1} ;;
7885 esac])
7886
7887 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7888
7889 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7890
7891 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7892 fi
7893
7894 if test x"$lt_shell_append" = xyes; then
7895 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7896
7897 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7898 func_quote_for_eval "${2}"
7899 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7900 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7901
7902 # Save a `func_append' function call where possible by direct use of '+='
7903 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7904 && mv -f "$cfgfile.tmp" "$cfgfile" \
7905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7906 test 0 -eq $? || _lt_function_replace_fail=:
7907 else
7908 # Save a `func_append' function call even when '+=' is not available
7909 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7910 && mv -f "$cfgfile.tmp" "$cfgfile" \
7911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7912 test 0 -eq $? || _lt_function_replace_fail=:
7913 fi
7914
7915 if test x"$_lt_function_replace_fail" = x":"; then
7916 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7917 fi
7918 ])
7919
79208321 # _LT_PATH_CONVERSION_FUNCTIONS
79218322 # -----------------------------
7922 # Determine which file name conversion functions should be used by
8323 # Determine what file name conversion functions should be used by
79238324 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
79248325 # for certain cross-compile configurations and native mingw.
79258326 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
00 # Helper functions for option handling. -*- Autoconf -*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
3 # Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
66 # This file is free software; the Free Software Foundation gives
77 # unlimited permission to copy and/or distribute it, with or without
88 # modifications, as long as this notice is preserved.
99
10 # serial 7 ltoptions.m4
10 # serial 8 ltoptions.m4
1111
1212 # This is to help aclocal find these macros, as it can't see m4_define.
1313 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
2828 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
2929 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
3030 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option `$2'])])[]dnl
31 [m4_warning([Unknown $1 option '$2'])])[]dnl
3232 ])
3333
3434
7474 dnl
7575 dnl If no reference was made to various pairs of opposing options, then
7676 dnl we run the default mode handler for the pair. For example, if neither
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
77 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
7878 dnl archives by default:
7979 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8080 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8181 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8282 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
83 [_LT_ENABLE_FAST_INSTALL])
84 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
85 [_LT_WITH_AIX_SONAME([aix])])
8486 ])
8587 ])# _LT_SET_OPTIONS
8688
111113 [_LT_SET_OPTION([LT_INIT], [dlopen])
112114 AC_DIAGNOSE([obsolete],
113115 [$0: Remove this warning and the call to _LT_SET_OPTION when you
114 put the `dlopen' option into LT_INIT's first parameter.])
116 put the 'dlopen' option into LT_INIT's first parameter.])
115117 ])
116118
117119 dnl aclocal-1.4 backwards compatibility:
147149 _LT_SET_OPTION([LT_INIT], [win32-dll])
148150 AC_DIAGNOSE([obsolete],
149151 [$0: Remove this warning and the call to _LT_SET_OPTION when you
150 put the `win32-dll' option into LT_INIT's first parameter.])
152 put the 'win32-dll' option into LT_INIT's first parameter.])
151153 ])
152154
153155 dnl aclocal-1.4 backwards compatibility:
156158
157159 # _LT_ENABLE_SHARED([DEFAULT])
158160 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
161 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
161 # implement the --enable-shared flag, and supports the 'shared' and
162 # 'disable-shared' LT_INIT options.
163 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
162164 m4_define([_LT_ENABLE_SHARED],
163165 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
164166 AC_ARG_ENABLE([shared],
171173 *)
172174 enable_shared=no
173175 # Look at the argument we got. We use all the common list separators.
174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
175177 for pkg in $enableval; do
176 IFS="$lt_save_ifs"
178 IFS=$lt_save_ifs
177179 if test "X$pkg" = "X$p"; then
178180 enable_shared=yes
179181 fi
180182 done
181 IFS="$lt_save_ifs"
183 IFS=$lt_save_ifs
182184 ;;
183185 esac],
184186 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
210212
211213 # _LT_ENABLE_STATIC([DEFAULT])
212214 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
215 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
215 # implement the --enable-static flag, and support the 'static' and
216 # 'disable-static' LT_INIT options.
217 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
216218 m4_define([_LT_ENABLE_STATIC],
217219 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
218220 AC_ARG_ENABLE([static],
225227 *)
226228 enable_static=no
227229 # Look at the argument we got. We use all the common list separators.
228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
230 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
229231 for pkg in $enableval; do
230 IFS="$lt_save_ifs"
232 IFS=$lt_save_ifs
231233 if test "X$pkg" = "X$p"; then
232234 enable_static=yes
233235 fi
234236 done
235 IFS="$lt_save_ifs"
237 IFS=$lt_save_ifs
236238 ;;
237239 esac],
238240 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
264266
265267 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
266268 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
269 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
269 # implement the --enable-fast-install flag, and support the 'fast-install'
270 # and 'disable-fast-install' LT_INIT options.
271 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
270272 m4_define([_LT_ENABLE_FAST_INSTALL],
271273 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
272274 AC_ARG_ENABLE([fast-install],
279281 *)
280282 enable_fast_install=no
281283 # Look at the argument we got. We use all the common list separators.
282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
284 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
283285 for pkg in $enableval; do
284 IFS="$lt_save_ifs"
286 IFS=$lt_save_ifs
285287 if test "X$pkg" = "X$p"; then
286288 enable_fast_install=yes
287289 fi
288290 done
289 IFS="$lt_save_ifs"
291 IFS=$lt_save_ifs
290292 ;;
291293 esac],
292294 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
303305 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
304306 AC_DIAGNOSE([obsolete],
305307 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
306 the `fast-install' option into LT_INIT's first parameter.])
308 the 'fast-install' option into LT_INIT's first parameter.])
307309 ])
308310
309311 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
310312 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
311313 AC_DIAGNOSE([obsolete],
312314 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
313 the `disable-fast-install' option into LT_INIT's first parameter.])
315 the 'disable-fast-install' option into LT_INIT's first parameter.])
314316 ])
315317
316318 dnl aclocal-1.4 backwards compatibility:
318320 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
319321
320322
323 # _LT_WITH_AIX_SONAME([DEFAULT])
324 # ----------------------------------
325 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
326 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
327 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
328 m4_define([_LT_WITH_AIX_SONAME],
329 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
330 shared_archive_member_spec=
331 case $host,$enable_shared in
332 power*-*-aix[[5-9]]*,yes)
333 AC_MSG_CHECKING([which variant of shared library versioning to provide])
334 AC_ARG_WITH([aix-soname],
335 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
336 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
337 [case $withval in
338 aix|svr4|both)
339 ;;
340 *)
341 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
342 ;;
343 esac
344 lt_cv_with_aix_soname=$with_aix_soname],
345 [AC_CACHE_VAL([lt_cv_with_aix_soname],
346 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
347 with_aix_soname=$lt_cv_with_aix_soname])
348 AC_MSG_RESULT([$with_aix_soname])
349 if test aix != "$with_aix_soname"; then
350 # For the AIX way of multilib, we name the shared archive member
351 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
352 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
353 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
354 # the AIX toolchain works better with OBJECT_MODE set (default 32).
355 if test 64 = "${OBJECT_MODE-32}"; then
356 shared_archive_member_spec=shr_64
357 else
358 shared_archive_member_spec=shr
359 fi
360 fi
361 ;;
362 *)
363 with_aix_soname=aix
364 ;;
365 esac
366
367 _LT_DECL([], [shared_archive_member_spec], [0],
368 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
369 ])# _LT_WITH_AIX_SONAME
370
371 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
374
375
321376 # _LT_WITH_PIC([MODE])
322377 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
378 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
324379 # LT_INIT options.
325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
380 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
326381 m4_define([_LT_WITH_PIC],
327382 [AC_ARG_WITH([pic],
328383 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
333388 *)
334389 pic_mode=default
335390 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
391 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
337392 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
393 IFS=$lt_save_ifs
339394 if test "X$lt_pkg" = "X$lt_p"; then
340395 pic_mode=yes
341396 fi
342397 done
343 IFS="$lt_save_ifs"
398 IFS=$lt_save_ifs
344399 ;;
345400 esac],
346 [pic_mode=default])
347
348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
401 [pic_mode=m4_default([$1], [default])])
349402
350403 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
351404 ])# _LT_WITH_PIC
358411 [_LT_SET_OPTION([LT_INIT], [pic-only])
359412 AC_DIAGNOSE([obsolete],
360413 [$0: Remove this warning and the call to _LT_SET_OPTION when you
361 put the `pic-only' option into LT_INIT's first parameter.])
414 put the 'pic-only' option into LT_INIT's first parameter.])
362415 ])
363416
364417 dnl aclocal-1.4 backwards compatibility:
00 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
3 # Foundation, Inc.
34 # Written by Gary V. Vaughan, 2004
45 #
56 # This file is free software; the Free Software Foundation gives
3233 # ------------
3334 # Manipulate m4 lists.
3435 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 # Autoconf-2.59, which quotes differently.
3637 m4_define([lt_car], [[$1]])
3738 m4_define([lt_cdr],
3839 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
4344
4445 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
4546 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
4748 # Note that neither SEPARATOR nor STRING are expanded; they are appended
4849 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4950 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
00 # ltversion.m4 -- version numbers -*- Autoconf -*-
11 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
33 # Written by Scott James Remnant, 2004
44 #
55 # This file is free software; the Free Software Foundation gives
88
99 # @configure_input@
1010
11 # serial 3337 ltversion.m4
11 # serial 4179 ltversion.m4
1212 # This file is part of GNU Libtool
1313
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
14 m4_define([LT_PACKAGE_VERSION], [2.4.6])
15 m4_define([LT_PACKAGE_REVISION], [2.4.6])
1616
1717 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
18 [macro_version='2.4.6'
19 macro_revision='2.4.6'
2020 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2121 _LT_DECL(, macro_revision, 0)
2222 ])
00 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
3 # Foundation, Inc.
34 # Written by Scott James Remnant, 2004.
45 #
56 # This file is free software; the Free Software Foundation gives
1011
1112 # These exist entirely to fool aclocal when bootstrapping libtool.
1213 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
1415 # which have later been changed to m4_define as they aren't part of the
1516 # exported API, or moved to Autoconf or Automake where they belong.
1617 #
2425 # included after everything else. This provides aclocal with the
2526 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
2627 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
2829 #
2930 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3031 # Yes, that means every name once taken will need to remain here until
00 #! /bin/sh
11 # Common wrapper for a few potentially missing GNU programs.
22
3 scriptversion=2012-06-26.16; # 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 {
159159 ;;
160160 autom4te*)
161161 echo "You might have modified some maintainer files that require"
162 echo "the 'automa4te' program to be rebuilt."
162 echo "the 'autom4te' program to be rebuilt."
163163 program_details 'autom4te'
164164 ;;
165165 bison*|yacc*)
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 # Makefile.in generated by automake 1.13.4 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 ?) ;; \
8090 host_triplet = @host@
8191 libexec_PROGRAMS = telepathy-idle$(EXEEXT)
8292 subdir = src
83 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(top_srcdir)/depcomp
8593 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8694 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
8795 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
92100 $(top_srcdir)/m4/tp-linker-flag.m4 $(top_srcdir)/configure.ac
93101 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94102 $(ACLOCAL_M4)
103 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
95104 mkinstalldirs = $(install_sh) -d
96105 CONFIG_HEADER = $(top_builddir)/config.h
97106 CONFIG_CLEAN_FILES =
98107 CONFIG_CLEAN_VPATH_FILES =
108 am__installdirs = "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(man8dir)"
109 PROGRAMS = $(libexec_PROGRAMS)
99110 LTLIBRARIES = $(noinst_LTLIBRARIES)
100111 libidle_convenience_la_DEPENDENCIES = \
101112 $(top_builddir)/extensions/libidle-extensions.la
114125 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
115126 am__v_lt_0 = --silent
116127 am__v_lt_1 =
117 am__installdirs = "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(man8dir)"
118 PROGRAMS = $(libexec_PROGRAMS)
119128 am_telepathy_idle_OBJECTS = idle.$(OBJEXT)
120129 telepathy_idle_OBJECTS = $(am_telepathy_idle_OBJECTS)
121130 am__DEPENDENCIES_1 =
135144 am__v_at_1 =
136145 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
137146 depcomp = $(SHELL) $(top_srcdir)/depcomp
138 am__depfiles_maybe = depfiles
147 am__maybe_remake_depfiles = depfiles
148 am__depfiles_remade = ./$(DEPDIR)/idle-connection-manager.Plo \
149 ./$(DEPDIR)/idle-connection.Plo \
150 ./$(DEPDIR)/idle-contact-info.Plo ./$(DEPDIR)/idle-ctcp.Plo \
151 ./$(DEPDIR)/idle-debug.Plo ./$(DEPDIR)/idle-handles.Plo \
152 ./$(DEPDIR)/idle-im-channel.Plo \
153 ./$(DEPDIR)/idle-im-manager.Plo \
154 ./$(DEPDIR)/idle-muc-channel.Plo \
155 ./$(DEPDIR)/idle-muc-manager.Plo ./$(DEPDIR)/idle-parser.Plo \
156 ./$(DEPDIR)/idle-roomlist-channel.Plo \
157 ./$(DEPDIR)/idle-roomlist-manager.Plo \
158 ./$(DEPDIR)/idle-server-connection.Plo \
159 ./$(DEPDIR)/idle-text.Plo ./$(DEPDIR)/idle.Po \
160 ./$(DEPDIR)/protocol.Plo ./$(DEPDIR)/room-config.Plo \
161 ./$(DEPDIR)/server-tls-channel.Plo \
162 ./$(DEPDIR)/server-tls-manager.Plo \
163 ./$(DEPDIR)/tls-certificate.Plo
139164 am__mv = mv -f
140165 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
141166 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
214239 done | $(am__uniquify_input)`
215240 ETAGS = etags
216241 CTAGS = ctags
242 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
217243 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
218244 ACLOCAL = @ACLOCAL@
219245 AMTAR = @AMTAR@
264290 LIPO = @LIPO@
265291 LN_S = @LN_S@
266292 LTLIBOBJS = @LTLIBOBJS@
293 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
267294 MAKEINFO = @MAKEINFO@
268295 MANIFEST_TOOL = @MANIFEST_TOOL@
269296 MKDIR_P = @MKDIR_P@
347374 psdir = @psdir@
348375 pyexecdir = @pyexecdir@
349376 pythondir = @pythondir@
377 runstatedir = @runstatedir@
350378 sbindir = @sbindir@
351379 sharedstatedir = @sharedstatedir@
352380 srcdir = @srcdir@
451479 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
452480 $(am__cd) $(top_srcdir) && \
453481 $(AUTOMAKE) --gnu src/Makefile
454 .PRECIOUS: Makefile
455482 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
456483 @case '$?' in \
457484 *config.status*) \
458485 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
459486 *) \
460 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
461 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
487 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
488 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
462489 esac;
463490
464491 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
469496 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
470497 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
471498 $(am__aclocal_m4_deps):
472
473 clean-noinstLTLIBRARIES:
474 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
475 @list='$(noinst_LTLIBRARIES)'; \
476 locs=`for p in $$list; do echo $$p; done | \
477 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
478 sort -u`; \
479 test -z "$$locs" || { \
480 echo rm -f $${locs}; \
481 rm -f $${locs}; \
482 }
483
484 libidle-convenience.la: $(libidle_convenience_la_OBJECTS) $(libidle_convenience_la_DEPENDENCIES) $(EXTRA_libidle_convenience_la_DEPENDENCIES)
485 $(AM_V_CCLD)$(LINK) $(libidle_convenience_la_OBJECTS) $(libidle_convenience_la_LIBADD) $(LIBS)
486499 install-libexecPROGRAMS: $(libexec_PROGRAMS)
487500 @$(NORMAL_INSTALL)
488501 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
533546 echo " rm -f" $$list; \
534547 rm -f $$list
535548
549 clean-noinstLTLIBRARIES:
550 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
551 @list='$(noinst_LTLIBRARIES)'; \
552 locs=`for p in $$list; do echo $$p; done | \
553 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
554 sort -u`; \
555 test -z "$$locs" || { \
556 echo rm -f $${locs}; \
557 rm -f $${locs}; \
558 }
559
560 libidle-convenience.la: $(libidle_convenience_la_OBJECTS) $(libidle_convenience_la_DEPENDENCIES) $(EXTRA_libidle_convenience_la_DEPENDENCIES)
561 $(AM_V_CCLD)$(LINK) $(libidle_convenience_la_OBJECTS) $(libidle_convenience_la_LIBADD) $(LIBS)
562
536563 telepathy-idle$(EXEEXT): $(telepathy_idle_OBJECTS) $(telepathy_idle_DEPENDENCIES) $(EXTRA_telepathy_idle_DEPENDENCIES)
537564 @rm -f telepathy-idle$(EXEEXT)
538565 $(AM_V_CCLD)$(LINK) $(telepathy_idle_OBJECTS) $(telepathy_idle_LDADD) $(LIBS)
543570 distclean-compile:
544571 -rm -f *.tab.c
545572
546 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-connection-manager.Plo@am__quote@
547 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-connection.Plo@am__quote@
548 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-contact-info.Plo@am__quote@
549 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-ctcp.Plo@am__quote@
550 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-debug.Plo@am__quote@
551 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-handles.Plo@am__quote@
552 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-im-channel.Plo@am__quote@
553 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-im-manager.Plo@am__quote@
554 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-muc-channel.Plo@am__quote@
555 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-muc-manager.Plo@am__quote@
556 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-parser.Plo@am__quote@
557 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-roomlist-channel.Plo@am__quote@
558 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-roomlist-manager.Plo@am__quote@
559 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-server-connection.Plo@am__quote@
560 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-text.Plo@am__quote@
561 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle.Po@am__quote@
562 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/protocol.Plo@am__quote@
563 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/room-config.Plo@am__quote@
564 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/server-tls-channel.Plo@am__quote@
565 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/server-tls-manager.Plo@am__quote@
566 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tls-certificate.Plo@am__quote@
573 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-connection-manager.Plo@am__quote@ # am--include-marker
574 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-connection.Plo@am__quote@ # am--include-marker
575 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-contact-info.Plo@am__quote@ # am--include-marker
576 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-ctcp.Plo@am__quote@ # am--include-marker
577 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-debug.Plo@am__quote@ # am--include-marker
578 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-handles.Plo@am__quote@ # am--include-marker
579 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-im-channel.Plo@am__quote@ # am--include-marker
580 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-im-manager.Plo@am__quote@ # am--include-marker
581 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-muc-channel.Plo@am__quote@ # am--include-marker
582 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-muc-manager.Plo@am__quote@ # am--include-marker
583 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-parser.Plo@am__quote@ # am--include-marker
584 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-roomlist-channel.Plo@am__quote@ # am--include-marker
585 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-roomlist-manager.Plo@am__quote@ # am--include-marker
586 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-server-connection.Plo@am__quote@ # am--include-marker
587 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-text.Plo@am__quote@ # am--include-marker
588 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle.Po@am__quote@ # am--include-marker
589 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/protocol.Plo@am__quote@ # am--include-marker
590 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/room-config.Plo@am__quote@ # am--include-marker
591 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/server-tls-channel.Plo@am__quote@ # am--include-marker
592 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/server-tls-manager.Plo@am__quote@ # am--include-marker
593 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tls-certificate.Plo@am__quote@ # am--include-marker
594
595 $(am__depfiles_remade):
596 @$(MKDIR_P) $(@D)
597 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
598
599 am--depfiles: $(am__depfiles_remade)
567600
568601 .c.o:
569602 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
570603 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
571604 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
572605 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
573 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
606 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
574607
575608 .c.obj:
576609 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
577610 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
578611 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
579612 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
580 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
613 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
581614
582615 .c.lo:
583616 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
687720 distclean-tags:
688721 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
689722
690 distdir: $(DISTFILES)
723 distdir: $(BUILT_SOURCES)
724 $(MAKE) $(AM_MAKEFLAGS) distdir-am
725
726 distdir-am: $(DISTFILES)
691727 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
692728 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
693729 list='$(DISTFILES)'; \
719755 done
720756 check-am: all-am
721757 check: check-am
722 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(MANS)
758 all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(MANS)
723759 installdirs:
724760 for dir in "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(man8dir)"; do \
725761 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
761797 clean-noinstLTLIBRARIES mostlyclean-am
762798
763799 distclean: distclean-am
764 -rm -rf ./$(DEPDIR)
800 -rm -f ./$(DEPDIR)/idle-connection-manager.Plo
801 -rm -f ./$(DEPDIR)/idle-connection.Plo
802 -rm -f ./$(DEPDIR)/idle-contact-info.Plo
803 -rm -f ./$(DEPDIR)/idle-ctcp.Plo
804 -rm -f ./$(DEPDIR)/idle-debug.Plo
805 -rm -f ./$(DEPDIR)/idle-handles.Plo
806 -rm -f ./$(DEPDIR)/idle-im-channel.Plo
807 -rm -f ./$(DEPDIR)/idle-im-manager.Plo
808 -rm -f ./$(DEPDIR)/idle-muc-channel.Plo
809 -rm -f ./$(DEPDIR)/idle-muc-manager.Plo
810 -rm -f ./$(DEPDIR)/idle-parser.Plo
811 -rm -f ./$(DEPDIR)/idle-roomlist-channel.Plo
812 -rm -f ./$(DEPDIR)/idle-roomlist-manager.Plo
813 -rm -f ./$(DEPDIR)/idle-server-connection.Plo
814 -rm -f ./$(DEPDIR)/idle-text.Plo
815 -rm -f ./$(DEPDIR)/idle.Po
816 -rm -f ./$(DEPDIR)/protocol.Plo
817 -rm -f ./$(DEPDIR)/room-config.Plo
818 -rm -f ./$(DEPDIR)/server-tls-channel.Plo
819 -rm -f ./$(DEPDIR)/server-tls-manager.Plo
820 -rm -f ./$(DEPDIR)/tls-certificate.Plo
765821 -rm -f Makefile
766822 distclean-am: clean-am distclean-compile distclean-generic \
767823 distclean-tags
807863 installcheck-am:
808864
809865 maintainer-clean: maintainer-clean-am
810 -rm -rf ./$(DEPDIR)
866 -rm -f ./$(DEPDIR)/idle-connection-manager.Plo
867 -rm -f ./$(DEPDIR)/idle-connection.Plo
868 -rm -f ./$(DEPDIR)/idle-contact-info.Plo
869 -rm -f ./$(DEPDIR)/idle-ctcp.Plo
870 -rm -f ./$(DEPDIR)/idle-debug.Plo
871 -rm -f ./$(DEPDIR)/idle-handles.Plo
872 -rm -f ./$(DEPDIR)/idle-im-channel.Plo
873 -rm -f ./$(DEPDIR)/idle-im-manager.Plo
874 -rm -f ./$(DEPDIR)/idle-muc-channel.Plo
875 -rm -f ./$(DEPDIR)/idle-muc-manager.Plo
876 -rm -f ./$(DEPDIR)/idle-parser.Plo
877 -rm -f ./$(DEPDIR)/idle-roomlist-channel.Plo
878 -rm -f ./$(DEPDIR)/idle-roomlist-manager.Plo
879 -rm -f ./$(DEPDIR)/idle-server-connection.Plo
880 -rm -f ./$(DEPDIR)/idle-text.Plo
881 -rm -f ./$(DEPDIR)/idle.Po
882 -rm -f ./$(DEPDIR)/protocol.Plo
883 -rm -f ./$(DEPDIR)/room-config.Plo
884 -rm -f ./$(DEPDIR)/server-tls-channel.Plo
885 -rm -f ./$(DEPDIR)/server-tls-manager.Plo
886 -rm -f ./$(DEPDIR)/tls-certificate.Plo
811887 -rm -f Makefile
812888 maintainer-clean-am: distclean-am maintainer-clean-generic
813889
830906
831907 .MAKE: install-am install-strip
832908
833 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
834 clean-libexecPROGRAMS clean-libtool clean-noinstLTLIBRARIES \
835 cscopelist-am ctags ctags-am distclean distclean-compile \
836 distclean-generic distclean-libtool distclean-tags distdir dvi \
837 dvi-am html html-am info info-am install install-am \
838 install-data install-data-am install-dvi install-dvi-am \
839 install-exec install-exec-am install-html install-html-am \
840 install-info install-info-am install-libexecPROGRAMS \
841 install-man install-man8 install-pdf install-pdf-am install-ps \
842 install-ps-am install-strip installcheck installcheck-am \
843 installdirs maintainer-clean maintainer-clean-generic \
844 mostlyclean mostlyclean-compile mostlyclean-generic \
845 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
846 uninstall-am uninstall-libexecPROGRAMS uninstall-man \
847 uninstall-man8
909 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
910 clean-generic clean-libexecPROGRAMS clean-libtool \
911 clean-noinstLTLIBRARIES cscopelist-am ctags ctags-am distclean \
912 distclean-compile distclean-generic distclean-libtool \
913 distclean-tags distdir dvi dvi-am html html-am info info-am \
914 install install-am install-data install-data-am install-dvi \
915 install-dvi-am install-exec install-exec-am install-html \
916 install-html-am install-info install-info-am \
917 install-libexecPROGRAMS install-man install-man8 install-pdf \
918 install-pdf-am install-ps install-ps-am install-strip \
919 installcheck installcheck-am installdirs maintainer-clean \
920 maintainer-clean-generic mostlyclean mostlyclean-compile \
921 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
922 tags tags-am uninstall uninstall-am uninstall-libexecPROGRAMS \
923 uninstall-man uninstall-man8
924
925 .PRECIOUS: Makefile
848926
849927
850928 %.8: %.8.in Makefile
584584 IdleConnectionPrivate *priv = self->priv;
585585 if (priv->force_disconnect_id != 0) {
586586 g_source_remove(priv->force_disconnect_id);
587 priv->force_disconnect_id = 0;
587588 }
588589
589590 tp_base_connection_finish_shutdown(conn);
599600
600601 IDLE_DEBUG("gave up waiting, forcibly disconnecting");
601602 idle_server_connection_force_disconnect(priv->conn);
603 priv->force_disconnect_id = 0;
602604 return FALSE;
603605 }
604606
9797 case '\x03': /* ^C */
9898 iter++;
9999
100 while (isdigit(*iter))
100 /* Color codes are 1-2 digits */
101 if (isdigit(*iter))
102 iter++;
103 if (isdigit(*iter))
101104 iter++;
102105
103106 if (*iter == ',') {
104107 iter++;
105108
106 while (isdigit(*iter))
109 if (isdigit(*iter))
110 iter++;
111 if (isdigit(*iter))
107112 iter++;
108113 }
109114 break;
150150
151151 /* continuation line buffer */
152152 gchar split_buf[IRC_MSG_MAXLEN + 3];
153 guint split_buf_used;
153154
154155 /* message handlers */
155156 GSList *handlers[IDLE_PARSER_LAST_MESSAGE_CODE];
224225 return i;
225226 }
226227 #endif
228
229 static void clear_split_buf(IdleParser *parser) {
230 IdleParserPrivate *priv = IDLE_PARSER_GET_PRIVATE(parser);
231
232 memset(priv->split_buf, '\0', IRC_MSG_MAXLEN + 3);
233 priv->split_buf_used = 0;
234 }
227235
228236 void idle_parser_receive(IdleParser *parser, const gchar *msg) {
229237 IdleParserPrivate *priv = IDLE_PARSER_GET_PRIVATE(parser);
244252 if ((lasti == 0) && (priv->split_buf[0] != '\0')) {
245253 g_strlcpy(g_stpcpy(concat_buf, priv->split_buf), msg, i + 1);
246254 tmp = concat_buf;
247 memset(priv->split_buf, '\0', IRC_MSG_MAXLEN + 3);
255 clear_split_buf(parser);
248256 } else {
249257 tmp = g_strndup(msg + lasti, i - lasti);
250258 }
263271 }
264272 }
265273
266 if (!line_ends)
267 g_strlcpy(priv->split_buf, msg + lasti, (IRC_MSG_MAXLEN + 3) - lasti);
268 else
269 memset(priv->split_buf, '\0', IRC_MSG_MAXLEN + 3);
274 if (!line_ends) {
275 len = strlen(msg + lasti);
276 if (len > (IRC_MSG_MAXLEN + 3) - priv->split_buf_used - 1) {
277 IDLE_DEBUG("Discarding content that exceeds maximum message length: \"%s\"", msg + lasti);
278 clear_split_buf(parser);
279 } else {
280 g_strlcpy(priv->split_buf + priv->split_buf_used, msg + lasti, (IRC_MSG_MAXLEN + 3) - priv->split_buf_used);
281 priv->split_buf_used += len;
282 }
283 } else {
284 clear_split_buf(parser);
285 }
270286 }
271287
272288 void idle_parser_add_handler(IdleParser *parser, IdleParserMessageCode code, IdleParserMessageHandler handler, gpointer user_data) {
501517 gchar *id, *bang = NULL;
502518 gchar modechar = '\0';
503519
504 if (idle_muc_channel_is_modechar(token[0])) {
520 /* Channel names can start with a '!', so don't strip that
521 * (https://tools.ietf.org/html/rfc2811#section-3.2), not
522 * even when expecting a nickname (without mode chars) as
523 * that ends up for example messing up PRIMSG handling and
524 * showing the same message as both a channel and a private
525 * message */
526 if (atom == 'C' && idle_muc_channel_is_modechar(token[0])) {
505527 modechar = token[0];
506528 token++;
507529 }
589589 * with null bytes gives us cleaner debug messages, without
590590 * affecting the readability of the code.
591591 */
592 #pragma GCC diagnostic push
593 #pragma GCC diagnostic ignored "-Wstringop-truncation"
592594 strncpy(priv->output_buffer, cmd, output_buffer_size);
595 #pragma GCC diagnostic pop
593596
594597 priv->nwritten = 0;
595598
00 #! /bin/sh
11 # test-driver - basic testsuite driver script.
22
3 scriptversion=2012-06-27.10; # UTC
3 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
5 # Copyright (C) 2011-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
4343 Usage:
4444 test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
4545 [--expect-failure={yes|no}] [--color-tests={yes|no}]
46 [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT
46 [--enable-hard-errors={yes|no}] [--]
47 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
4748 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
4849 END
4950 }
5051
51 # TODO: better error handling in option parsing (in particular, ensure
52 # TODO: $log_file, $trs_file and $test_name are defined).
5352 test_name= # Used for reporting.
5453 log_file= # Where to save the output of the test script.
5554 trs_file= # Where to save the metadata of the test run.
6867 --enable-hard-errors) enable_hard_errors=$2; shift;;
6968 --) shift; break;;
7069 -*) usage_error "invalid option: '$1'";;
70 *) break;;
7171 esac
7272 shift
7373 done
74
75 missing_opts=
76 test x"$test_name" = x && missing_opts="$missing_opts --test-name"
77 test x"$log_file" = x && missing_opts="$missing_opts --log-file"
78 test x"$trs_file" = x && missing_opts="$missing_opts --trs-file"
79 if test x"$missing_opts" != x; then
80 usage_error "the following mandatory options are missing:$missing_opts"
81 fi
82
83 if test $# -eq 0; then
84 usage_error "missing argument"
85 fi
7486
7587 if test $color_tests = yes; then
7688 # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
93105 # Test script is run here.
94106 "$@" >$log_file 2>&1
95107 estatus=$?
108
96109 if test $enable_hard_errors = no && test $estatus -eq 99; then
97 estatus=1
110 tweaked_estatus=1
111 else
112 tweaked_estatus=$estatus
98113 fi
99114
100 case $estatus:$expect_failure in
115 case $tweaked_estatus:$expect_failure in
101116 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
102117 0:*) col=$grn res=PASS recheck=no gcopy=no;;
103118 77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
105120 *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
106121 *:*) col=$red res=FAIL recheck=yes gcopy=yes;;
107122 esac
123
124 # Report the test outcome and exit status in the logs, so that one can
125 # know whether the test passed or failed simply by looking at the '.log'
126 # file, without the need of also peaking into the corresponding '.trs'
127 # file (automake bug#11814).
128 echo "$res $test_name (exit status: $estatus)" >>$log_file
108129
109130 # Report outcome to console.
110131 echo "${col}${res}${std}: $test_name"
118139 # Local Variables:
119140 # mode: shell-script
120141 # sh-indentation: 2
121 # eval: (add-hook 'write-file-hooks 'time-stamp)
142 # eval: (add-hook 'before-save-hook 'time-stamp)
122143 # time-stamp-start: "scriptversion="
123144 # time-stamp-format: "%:y-%02m-%02d.%02H"
124 # time-stamp-time-zone: "UTC"
145 # time-stamp-time-zone: "UTC0"
125146 # time-stamp-end: "; # UTC"
126147 # End:
0 # Makefile.in generated by automake 1.13.4 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 ?) ;; \
8090 test-ctcp-kill-blingbling$(EXEEXT) \
8191 test-text-encode-and-split$(EXEEXT)
8292 subdir = tests
83 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(top_srcdir)/depcomp $(top_srcdir)/test-driver
8593 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8694 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
8795 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
92100 $(top_srcdir)/m4/tp-linker-flag.m4 $(top_srcdir)/configure.ac
93101 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94102 $(ACLOCAL_M4)
103 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
95104 mkinstalldirs = $(install_sh) -d
96105 CONFIG_HEADER = $(top_builddir)/config.h
97106 CONFIG_CLEAN_FILES =
132141 am__v_at_1 =
133142 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
134143 depcomp = $(SHELL) $(top_srcdir)/depcomp
135 am__depfiles_maybe = depfiles
144 am__maybe_remake_depfiles = depfiles
145 am__depfiles_remade = ./$(DEPDIR)/test-ctcp-kill-blingbling.Po \
146 ./$(DEPDIR)/test-ctcp-tokenize.Po \
147 ./$(DEPDIR)/test-text-encode-and-split.Po
136148 am__mv = mv -f
137149 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
138150 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
176188 $(RECURSIVE_CLEAN_TARGETS) \
177189 $(am__extra_recursive_targets)
178190 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
179 check recheck distdir
191 check recheck distdir distdir-am
180192 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
181193 # Read a list of newline-separated strings from the standard input,
182194 # and print each of them once, without duplicates. Input order is
400412 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
401413 $(TEST_LOG_FLAGS)
402414 DIST_SUBDIRS = $(SUBDIRS)
415 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \
416 $(top_srcdir)/test-driver
403417 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
404418 am__relativize = \
405419 dir0=`pwd`; \
475489 LIPO = @LIPO@
476490 LN_S = @LN_S@
477491 LTLIBOBJS = @LTLIBOBJS@
492 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
478493 MAKEINFO = @MAKEINFO@
479494 MANIFEST_TOOL = @MANIFEST_TOOL@
480495 MKDIR_P = @MKDIR_P@
558573 psdir = @psdir@
559574 pyexecdir = @pyexecdir@
560575 pythondir = @pythondir@
576 runstatedir = @runstatedir@
561577 sbindir = @sbindir@
562578 sharedstatedir = @sharedstatedir@
563579 srcdir = @srcdir@
613629 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
614630 $(am__cd) $(top_srcdir) && \
615631 $(AUTOMAKE) --gnu tests/Makefile
616 .PRECIOUS: Makefile
617632 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
618633 @case '$?' in \
619634 *config.status*) \
620635 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
621636 *) \
622 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
623 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
637 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
638 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
624639 esac;
625640
626641 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
659674 distclean-compile:
660675 -rm -f *.tab.c
661676
662 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-ctcp-kill-blingbling.Po@am__quote@
663 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-ctcp-tokenize.Po@am__quote@
664 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-text-encode-and-split.Po@am__quote@
677 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-ctcp-kill-blingbling.Po@am__quote@ # am--include-marker
678 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-ctcp-tokenize.Po@am__quote@ # am--include-marker
679 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-text-encode-and-split.Po@am__quote@ # am--include-marker
680
681 $(am__depfiles_remade):
682 @$(MKDIR_P) $(@D)
683 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
684
685 am--depfiles: $(am__depfiles_remade)
665686
666687 .c.o:
667688 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
668689 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
669690 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
670691 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
671 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
692 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
672693
673694 .c.obj:
674695 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
675696 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
676697 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
677698 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
678 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
699 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
679700
680701 .c.lo:
681702 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
819840 if test -n "$$am__remaking_logs"; then \
820841 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
821842 "recursion detected" >&2; \
822 else \
843 elif test -n "$$redo_logs"; then \
823844 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
824845 fi; \
825846 if $(am__make_dryrun); then :; else \
909930 fi; \
910931 $$success || exit 1
911932
912 check-TESTS:
933 check-TESTS: $(check_PROGRAMS)
913934 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
914935 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
915936 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
966987 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
967988 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
968989
969 distdir: $(DISTFILES)
990 distdir: $(BUILT_SOURCES)
991 $(MAKE) $(AM_MAKEFLAGS) distdir-am
992
993 distdir-am: $(DISTFILES)
970994 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
971995 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
972996 list='$(DISTFILES)'; \
10671091 mostlyclean-am
10681092
10691093 distclean: distclean-recursive
1070 -rm -rf ./$(DEPDIR)
1094 -rm -f ./$(DEPDIR)/test-ctcp-kill-blingbling.Po
1095 -rm -f ./$(DEPDIR)/test-ctcp-tokenize.Po
1096 -rm -f ./$(DEPDIR)/test-text-encode-and-split.Po
10711097 -rm -f Makefile
10721098 distclean-am: clean-am distclean-compile distclean-generic \
10731099 distclean-tags
11131139 installcheck-am:
11141140
11151141 maintainer-clean: maintainer-clean-recursive
1116 -rm -rf ./$(DEPDIR)
1142 -rm -f ./$(DEPDIR)/test-ctcp-kill-blingbling.Po
1143 -rm -f ./$(DEPDIR)/test-ctcp-tokenize.Po
1144 -rm -f ./$(DEPDIR)/test-text-encode-and-split.Po
11171145 -rm -f Makefile
11181146 maintainer-clean-am: distclean-am maintainer-clean-generic
11191147
11341162
11351163 .MAKE: $(am__recursive_targets) check-am install-am install-strip
11361164
1137 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
1138 check-TESTS check-am clean clean-checkPROGRAMS clean-generic \
1139 clean-libtool cscopelist-am ctags ctags-am distclean \
1140 distclean-compile distclean-generic distclean-libtool \
1141 distclean-tags distdir dvi dvi-am html html-am info info-am \
1142 install install-am install-data install-data-am install-dvi \
1143 install-dvi-am install-exec install-exec-am install-html \
1144 install-html-am install-info install-info-am install-man \
1145 install-pdf install-pdf-am install-ps install-ps-am \
1146 install-strip installcheck installcheck-am installdirs \
1147 installdirs-am maintainer-clean maintainer-clean-generic \
1148 mostlyclean mostlyclean-compile mostlyclean-generic \
1149 mostlyclean-libtool pdf pdf-am ps ps-am recheck tags tags-am \
1150 uninstall uninstall-am
1165 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
1166 am--depfiles check check-TESTS check-am clean \
1167 clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
1168 ctags ctags-am distclean distclean-compile distclean-generic \
1169 distclean-libtool distclean-tags distdir dvi dvi-am html \
1170 html-am info info-am install install-am install-data \
1171 install-data-am install-dvi install-dvi-am install-exec \
1172 install-exec-am install-html install-html-am install-info \
1173 install-info-am install-man install-pdf install-pdf-am \
1174 install-ps install-ps-am install-strip installcheck \
1175 installcheck-am installdirs installdirs-am maintainer-clean \
1176 maintainer-clean-generic mostlyclean mostlyclean-compile \
1177 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1178 recheck tags tags-am uninstall uninstall-am
1179
1180 .PRECIOUS: Makefile
11511181
11521182
11531183 # Tell versions [3.59,3.63) of GNU make to not export all variables.
2424 channels/room-list-multiple.py \
2525 messages/accept-invalid-nicks.py \
2626 messages/contactinfo-request.py \
27 messages/invalid-utf8.py \
2827 messages/messages-iface.py \
2928 messages/message-order.py \
3029 messages/leading-space.py \
3231 messages/room-contact-mixup.py \
3332 messages/room-config.py \
3433 $(NULL)
34
35 # TODO: Fix messages/invalid-utf8.py
3536
3637 config.py: Makefile
3738 $(AM_V_GEN) { \
0 # Makefile.in generated by automake 1.13.4 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 = tests/twisted
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8190 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8291 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
8392 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
8897 $(top_srcdir)/m4/tp-linker-flag.m4 $(top_srcdir)/configure.ac
8998 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9099 $(ACLOCAL_M4)
100 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
91101 mkinstalldirs = $(install_sh) -d
92102 CONFIG_HEADER = $(top_builddir)/config.h
93103 CONFIG_CLEAN_FILES =
126136 $(RECURSIVE_CLEAN_TARGETS) \
127137 $(am__extra_recursive_targets)
128138 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
129 distdir
139 distdir distdir-am
130140 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
131141 # Read a list of newline-separated strings from the standard input,
132142 # and print each of them once, without duplicates. Input order is
147157 ETAGS = etags
148158 CTAGS = ctags
149159 DIST_SUBDIRS = $(SUBDIRS)
160 am__DIST_COMMON = $(srcdir)/Makefile.in
150161 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
151162 am__relativize = \
152163 dir0=`pwd`; \
222233 LIPO = @LIPO@
223234 LN_S = @LN_S@
224235 LTLIBOBJS = @LTLIBOBJS@
236 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
225237 MAKEINFO = @MAKEINFO@
226238 MANIFEST_TOOL = @MANIFEST_TOOL@
227239 MKDIR_P = @MKDIR_P@
305317 psdir = @psdir@
306318 pyexecdir = @pyexecdir@
307319 pythondir = @pythondir@
320 runstatedir = @runstatedir@
308321 sbindir = @sbindir@
309322 sharedstatedir = @sharedstatedir@
310323 srcdir = @srcdir@
340353 channels/room-list-multiple.py \
341354 messages/accept-invalid-nicks.py \
342355 messages/contactinfo-request.py \
343 messages/invalid-utf8.py \
344356 messages/messages-iface.py \
345357 messages/message-order.py \
346358 messages/leading-space.py \
388400 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/twisted/Makefile'; \
389401 $(am__cd) $(top_srcdir) && \
390402 $(AUTOMAKE) --gnu tests/twisted/Makefile
391 .PRECIOUS: Makefile
392403 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
393404 @case '$?' in \
394405 *config.status*) \
395406 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
396407 *) \
397 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
398 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
408 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
409 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
399410 esac;
400411
401412 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
512523 distclean-tags:
513524 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
514525
515 distdir: $(DISTFILES)
526 distdir: $(BUILT_SOURCES)
527 $(MAKE) $(AM_MAKEFLAGS) distdir-am
528
529 distdir-am: $(DISTFILES)
516530 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
517531 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
518532 list='$(DISTFILES)'; \
691705 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
692706 uninstall-am
693707
708 .PRECIOUS: Makefile
709
710
711 # TODO: Fix messages/invalid-utf8.py
694712
695713 config.py: Makefile
696714 $(AM_V_GEN) { \
4040 EventPattern('dbus-signal', signal='StatusChanged', args=[1, 1]),
4141 EventPattern('irc-connected'))
4242 q.expect('dbus-signal', signal='SelfHandleChanged',
43 args=[1L])
43 args=[1])
4444 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
4545
4646 CHANNEL_NAME = "#idletest"
1313 EventPattern('dbus-signal', signal='StatusChanged', args=[1, 1]),
1414 EventPattern('irc-connected'))
1515 q.expect('dbus-signal', signal='SelfHandleChanged',
16 args=[1L])
16 args=[1])
1717 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
1818 room_handles = conn.RequestHandles(HT_ROOM, ['#idletest'])
1919 call_async(q, conn, 'RequestChannel', CHANNEL_TYPE_TEXT, HT_ROOM, room_handles[0], True)
8787 # No topic set
8888 subject_props = channel.Properties.GetAll(CHANNEL_IFACE_SUBJECT)
8989 assertEquals('', subject_props['Subject'])
90 assertEquals(0x7fffffffffffffffL, subject_props['Timestamp'])
90 assertEquals(0x7fffffffffffffff, subject_props['Timestamp'])
9191 assertEquals('', subject_props['Actor'])
9292 assertEquals(0, subject_props['ActorHandle'])
9393
4141 EventPattern('dbus-signal', signal='StatusChanged', args=[1, 1]),
4242 EventPattern('irc-connected'))
4343 q.expect('dbus-signal', signal='SelfHandleChanged',
44 args=[1L])
44 args=[1])
4545
4646 call_async(q, conn, 'CreateChannel',
4747 { cs.CHANNEL_TYPE: cs.CHANNEL_TYPE_ROOM_LIST },
6464 predicate=looks_like_a_room_list)
6565
6666 chan = bus.get_object(conn.bus_name, path)
67 list_chan = dbus.Interface(chan, tp_name_prefix + u'.Channel.Type.RoomList')
67 list_chan = dbus.Interface(chan, tp_name_prefix + '.Channel.Type.RoomList')
6868 list_chan.ListRooms();
6969 q.expect('dbus-signal', signal='GotRooms', predicate=lambda x:check_rooms(x.args[0]))
7070
1717 EventPattern('dbus-signal', signal='StatusChanged', args=[1, 1]),
1818 EventPattern('irc-connected'))
1919 q.expect('dbus-signal', signal='SelfHandleChanged',
20 args=[1L])
20 args=[1])
2121
2222 # request a roomlist channel
2323 call_async(q, conn, 'CreateChannel',
3030 proto_props = unwrap(proto_prop_iface.GetAll(cs.PROTOCOL))
3131
3232 for key in ['Parameters', 'Interfaces', 'ConnectionInterfaces',
33 'RequestableChannelClasses', u'VCardField', u'EnglishName', u'Icon']:
33 'RequestableChannelClasses', 'VCardField', 'EnglishName', 'Icon']:
3434 a = local_props[cs.PROTOCOL + '.' + key]
3535 b = proto_props[key]
3636 assertEquals(a, b)
2020 cert.Accept()
2121
2222 q.expect('dbus-signal', signal='SelfHandleChanged',
23 args=[1L])
23 args=[1])
2424 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
2525 call_async(q, conn, 'Disconnect')
2626 q.expect_many(
1111 EventPattern('dbus-signal', signal='StatusChanged', args=[1, 1]),
1212 EventPattern('irc-connected'))
1313 q.expect('dbus-signal', signal='SelfHandleChanged',
14 args=[1L])
14 args=[1])
1515 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
1616 call_async(q, conn, 'Disconnect')
1717 q.expect_many(
2727 try:
2828 connect('nick with spaces')
2929 raise RuntimeError('Invalid nick not rejected')
30 except dbus.DBusException, e:
30 except dbus.DBusException as e:
3131 assert e.get_dbus_name() == INVALID_HANDLE
3232
3333 try:
3434 connect('') # empty nick
3535 raise RuntimeError('Invalid nick not rejected')
36 except dbus.DBusException, e:
36 except dbus.DBusException as e:
3737 assert e.get_dbus_name() == INVALID_HANDLE
3838
3939 try:
4040 connect('#foo') # invalid chars
4141 raise RuntimeError('Invalid nick not rejected')
42 except dbus.DBusException, e:
42 except dbus.DBusException as e:
4343 assert e.get_dbus_name() == INVALID_HANDLE
4444
4545 try:
46 connect(u'김정은') # unicode
46 connect('김정은') # unicode
4747 raise RuntimeError('Invalid nick not rejected')
48 except dbus.DBusException, e:
48 except dbus.DBusException as e:
4949 assert e.get_dbus_name() == INVALID_HANDLE
5050
5151 try:
5252 connect('12foo') # numbers not allowed as first char
5353 raise RuntimeError('Invalid nick not rejected')
54 except dbus.DBusException, e:
54 except dbus.DBusException as e:
5555 assert e.get_dbus_name() == INVALID_HANDLE
5656
5757 try:
5858 connect('-foo') # '-' not allowed as first char
5959 raise RuntimeError('Invalid nick not rejected')
60 except dbus.DBusException, e:
60 except dbus.DBusException as e:
6161 assert e.get_dbus_name() == INVALID_HANDLE
6262
6363 # should pass succeed without an exception
145145 f = getattr(self, 'handle%s' % command)
146146 try:
147147 f(params, prefix)
148 except Exception, e:
148 except Exception as e:
149149 self.log('handler failed: %s' % e)
150 except Exception, e:
150 except Exception as e:
151151 self.log('No handler for command %s: %s' % (command, e))
152152
153153 class SSLIRCServer(BaseIRCServer):
243243 for f in funs:
244244 conn = make_connection(bus, queue.append, params)
245245 f(queue, bus, conn, server)
246 except Exception, e:
246 except Exception as e:
247247 import traceback
248248 traceback.print_exc()
249249 error = e
270270 # exited and refdbg can generate its report
271271 time.sleep(5.5)
272272
273 except dbus.DBusException, e:
273 except dbus.DBusException as e:
274274 pass
275275
276276 def exec_tests(funs, params=None, protocol=None, timeout=None):
3737 EventPattern('dbus-signal', signal='StatusChanged', args=[1, 1]),
3838 EventPattern('irc-connected'))
3939 q.expect('dbus-signal', signal='SelfHandleChanged',
40 args=[1L])
40 args=[1])
4141 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
4242
4343 self_handle = conn.GetSelfHandle()
+0
-63
tests/twisted/messages/invalid-utf8.py less more
0 # coding=utf-8
1 """
2 Test that incoming messages containing invalid UTF-8
3 don't make Idle fall off the bus. This is a regression test for
4 bugs similar to <https://bugs.freedesktop.org/show_bug.cgi?id=30741>.
5 """
6
7 from idletest import exec_test
8 from servicetest import assertEquals
9 import re
10
11 def test(q, bus, conn, stream):
12 conn.Connect()
13 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
14
15 test_with_message(q, stream, ["I'm no ", " Buddhist"])
16 test_with_message(q, stream, [u"björk"] * 3)
17
18 test_with_message(q, stream, ["", "lolllllll"])
19 test_with_message(q, stream, ["hello", ""])
20 test_with_message(q, stream, "I am a stabbing robot".split(" "))
21
22 # This is the UTF-8 encoding of U+D800, which is not valid
23 # (not even as a noncharacter). We previously did this test with
24 # noncharacters, but Unicode Corrigendum #9 explicitly allows noncharacters
25 # to be interchanged, GLib 2.36 allows them when validating UTF-8,
26 # and D-Bus 1.6.10 will do likewise.
27 WELL_FORMED_BUT_INVALID_UTF8_BYTES = "\xed\xa0\x80"
28
29 def test_with_message(q, stream, parts):
30 invalid_utf8 = WELL_FORMED_BUT_INVALID_UTF8_BYTES.join(
31 part.encode('utf-8') for part in parts)
32
33 # Idle's default character set is UTF-8. We send it a message which is
34 # basically UTF-8, except that one of its code points is invalid.
35 stream.sendMessage('PRIVMSG', stream.nick, ':%s' % invalid_utf8,
36 prefix='remoteuser')
37
38 # Idle should signal that *something* was received. If it hasn't validated
39 # & sanitized the message properly, the dbus-daemon will kick it off.
40 signal = q.expect('dbus-signal', signal='MessageReceived')
41
42 message_parts = signal.args[0]
43 text_plain = message_parts[1]
44 content = text_plain['content']
45
46 # Don't make any assumption about how many U+FFFD REPLACEMENT CHARACTERs
47 # are used to replace surprising bytes.
48 received_parts = [ part for part in re.split(u"\ufffd|\\?", content)
49 if part != u''
50 ]
51
52 if parts[0] == u'björk':
53 # The valid UTF-8 gets lost in transit, because we fall back
54 # to assuming ASCII when g_convert() fails (this didn't happen
55 # when we tested with noncharacters - oh well).
56 assertEquals(['bj', 'rk', 'bj', 'rk', 'bj', 'rk'], received_parts)
57 else:
58 assertEquals(filter(lambda s: s != u'', parts), received_parts)
59
60 if __name__ == '__main__':
61 exec_test(test)
62
22 Infrastructure code for testing connection managers.
33 """
44
5 from twisted.internet import glib2reactor
5 from twisted.internet import gireactor
66 from twisted.internet.protocol import Protocol, Factory, ClientFactory
7 glib2reactor.install()
7 gireactor.install()
88 import sys
99
1010 import pprint
6161 if event.type != self.type:
6262 return False
6363
64 for key, value in self.properties.iteritems():
64 for key, value in self.properties.items():
6565 try:
6666 if getattr(event, key) != value:
6767 return False
9494
9595 def log(self, s):
9696 if self.verbose:
97 print s
97 print(s)
9898
9999 def log_event(self, event):
100100 if self.verbose:
101101 self.log('got event:')
102102
103103 if self.verbose:
104 map(self.log, format_event(event))
104 list(map(self.log, format_event(event)))
105105
106106 def forbid_events(self, patterns):
107107 """
122122 def _check_forbidden(self, event):
123123 for e in self.forbidden_events:
124124 if e.match(event):
125 print "forbidden event occurred:"
125 print("forbidden event occurred:")
126126 for x in format_event(event):
127 print x
127 print(x)
128128 assert False
129129
130130 def expect(self, type, **kw):
302302 printed."""
303303
304304 if isinstance(x, list):
305 return map(unwrap, x)
305 return list(map(unwrap, x))
306306
307307 if isinstance(x, tuple):
308308 return tuple(map(unwrap, x))
309309
310310 if isinstance(x, dict):
311 return dict([(unwrap(k), unwrap(v)) for k, v in x.iteritems()])
311 return dict([(unwrap(k), unwrap(v)) for k, v in x.items()])
312312
313313 if isinstance(x, dbus.Boolean):
314314 return bool(x)
315315
316 for t in [unicode, str, long, int, float]:
316 for t in [str, str, int, int, float]:
317317 if isinstance(x, t):
318318 return t(x)
319319
353353 dbus.Interface(object, tp_name_prefix + '.Properties')
354354 self.interfaces = dict([
355355 (name, dbus.Interface(object, iface))
356 for name, iface in others.iteritems()])
356 for name, iface in others.items()])
357357
358358 def __getattr__(self, name):
359359 if name in self.interfaces:
408408 event_func(
409409 Event('dbus-signal',
410410 path=unwrap(kw['path']),
411 signal=kw['member'], args=map(unwrap, args),
411 signal=kw['member'], args=list(map(unwrap, args)),
412412 interface=kw['interface'])),
413413 None, # signal name
414414 None, # interface
471471 q.handle_event(Event('tube-signal',
472472 path=kwargs['path'],
473473 signal=kwargs['member'],
474 args=map(unwrap, args),
474 args=list(map(unwrap, args)),
475475 tube=tube))
476476
477477 tube.add_signal_receiver(got_signal_cb,
0 # Makefile.in generated by automake 1.13.4 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 = tests/twisted/tools
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8190 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8291 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
8392 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
8897 $(top_srcdir)/m4/tp-linker-flag.m4 $(top_srcdir)/configure.ac
8998 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9099 $(ACLOCAL_M4)
100 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
91101 mkinstalldirs = $(install_sh) -d
92102 CONFIG_HEADER = $(top_builddir)/config.h
93103 CONFIG_CLEAN_FILES =
112122 *) (install-info --version) >/dev/null 2>&1;; \
113123 esac
114124 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
125 am__DIST_COMMON = $(srcdir)/Makefile.in
115126 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
116127 ACLOCAL = @ACLOCAL@
117128 AMTAR = @AMTAR@
162173 LIPO = @LIPO@
163174 LN_S = @LN_S@
164175 LTLIBOBJS = @LTLIBOBJS@
176 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
165177 MAKEINFO = @MAKEINFO@
166178 MANIFEST_TOOL = @MANIFEST_TOOL@
167179 MKDIR_P = @MKDIR_P@
245257 psdir = @psdir@
246258 pyexecdir = @pyexecdir@
247259 pythondir = @pythondir@
260 runstatedir = @runstatedir@
248261 sbindir = @sbindir@
249262 sharedstatedir = @sharedstatedir@
250263 srcdir = @srcdir@
290303 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/twisted/tools/Makefile'; \
291304 $(am__cd) $(top_srcdir) && \
292305 $(AUTOMAKE) --gnu tests/twisted/tools/Makefile
293 .PRECIOUS: Makefile
294306 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
295307 @case '$?' in \
296308 *config.status*) \
297309 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
298310 *) \
299 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
300 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
311 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
312 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
301313 esac;
302314
303315 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
321333 cscope cscopelist:
322334
323335
324 distdir: $(DISTFILES)
336 distdir: $(BUILT_SOURCES)
337 $(MAKE) $(AM_MAKEFLAGS) distdir-am
338
339 distdir-am: $(DISTFILES)
325340 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
326341 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
327342 list='$(DISTFILES)'; \
469484 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
470485 tags-am uninstall uninstall-am
471486
487 .PRECIOUS: Makefile
488
472489 exec-with-log.sh: exec-with-log.sh.in
473490 sed -e "s|[@]abs_top_builddir[@]|@abs_top_builddir@|g" \
474491 -e "s|[@]abs_top_srcdir[@]|@abs_top_srcdir@|g" $< > $@
2525 fi
2626
2727 export G_DEBUG=fatal-warnings" ${G_DEBUG}"
28 exec @abs_top_builddir@/libtool --mode=execute $IDLE_WRAPPER @abs_top_builddir@/src/telepathy-idle
28 if test x"@omit_libtool@" = "xyes"; then
29 exec $IDLE_WRAPPER @abs_top_builddir@/src/telepathy-idle
30 else
31 exec @abs_top_builddir@/libtool --mode=execute $IDLE_WRAPPER @abs_top_builddir@/src/telepathy-idle
32 fi
00 -----BEGIN CERTIFICATE-----
1 MIIBTzCB+gIBATANBgkqhkiG9w0BAQQFADAzMRIwEAYDVQQKEwl0ZWxlcGF0aHkx
2 HTAbBgNVBAsTFHRlbGVwYXRoeSBkZXZlbG9wZXJzMB4XDTA5MDExNDE3NDc0N1oX
3 DTA5MDExNDE3NDg0N1owMzESMBAGA1UEChMJdGVsZXBhdGh5MR0wGwYDVQQLExR0
4 ZWxlcGF0aHkgZGV2ZWxvcGVyczBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQC9z/pi
5 zEMeL+bO3giJVGHGrOHLE7AfDorArwmA0u8Cgu06+J+SW+NJnkj8At4bioxREge6
6 yeD6+cHCC9kzXrmXAgMBAAEwDQYJKoZIhvcNAQEEBQADQQBf1qg0gzSztx5pqqM8
7 3wI5cEc7k13EzU6X2SkSCSxlMc4pF0hPdr0LuZJpeKBohIgKQ59+3Ny0LuUMEKYW
8 ikGr
1 MIIDUDCCAjigAwIBAgIBATANBgkqhkiG9w0BAQsFADAzMRIwEAYDVQQKEwl0ZWxl
2 cGF0aHkxHTAbBgNVBAsTFHRlbGVwYXRoeSBkZXZlbG9wZXJzMB4XDTE3MTEwNTAw
3 NTEwMFoXDTE4MTEwNTAwNTEwMFowMzESMBAGA1UEChMJdGVsZXBhdGh5MR0wGwYD
4 VQQLExR0ZWxlcGF0aHkgZGV2ZWxvcGVyczCCASIwDQYJKoZIhvcNAQEBBQADggEP
5 ADCCAQoCggEBAL3wfZoTzmJqQyjw0tToAflpdmQMTNpzgXvH+uiuu4rWk7oGJsBN
6 HZfe4gkoYNLL8PwOGEQcIUN4Y0JU/mc9mSe44Vi0G0t/uJ/gI+CNtHzHjwtwCnYP
7 XsbCE69CsarvDVbsQHS6kWfgCYxMA0l+cydUfxuyIoFWjeM4hZs0JwdBGBTAtZkj
8 3xo+7Ee3xNBaaOtmoJO/QduAVA0UgiWU69m7Q+5aIuIl9PGOSL4MHqNXq/nwX5Ky
9 aFBpXdzmrVn8BophkBgOawp0e+Rhk5fCelyy54lIfpUxeOTP6EtAgsZYbZBPjsuz
10 8ewJbdnzcOCwTJpKQv9aHhkTKcK2PkN6tJMCAwEAAaNvMG0wDAYDVR0TAQH/BAIw
11 ADAdBgNVHQ4EFgQUuG8blqmQ1SEj/x5OhBc58XFv6vcwCwYDVR0PBAQDAgXgMBEG
12 CWCGSAGG+EIBAQQEAwIGQDAeBglghkgBhvhCAQ0EERYPeGNhIGNlcnRpZmljYXRl
13 MA0GCSqGSIb3DQEBCwUAA4IBAQBJCT/EPWqv/wUDn7jK4nRXXXwtIL7eYYTAvcJh
14 gxtrkkNB1LAp6mnb1WOw+Wbdpf2IgTqfAvpzCRL+kCM80Pqh365JlA5JflzhWxsJ
15 xtJQfNfiZhgXKN1rm5lT+U/WgGR6A1serbxUiRN2O6wB8nxtoc7sBJh18pcrwpam
16 vOGAolbePV8HPfyBRkCnSw1X6BdifEtxlRCfVWELSI6xQHX8OPTU+uGcvte5uAEi
17 7CRRJHlUoojyLOxlJ6IeXh7MjrDIi6tHDqVR9MlRRN3oXhvsN/TtsZUuuC7s280W
18 oapk/x7WNDSQsdsi0bmTLrJoZgHzaPRJPCwBFzbj/T1kCC0B
919 -----END CERTIFICATE-----
00 -----BEGIN RSA PRIVATE KEY-----
1 MIIBOwIBAAJBAL3P+mLMQx4v5s7eCIlUYcas4csTsB8OisCvCYDS7wKC7Tr4n5Jb
2 40meSPwC3huKjFESB7rJ4Pr5wcIL2TNeuZcCAwEAAQJBAJLaJc3qWsMwLFJAVjpp
3 nnwnpUmIoeplRdRtl9yjVWeKrvD2gSh2Qz693dgJbDUGURJecJ+LSS4YMOS+8FLp
4 KgECIQDhgvqh9KahKphn2/vvcCx3DKBZ7wh9lYIaaAay6IuAhwIhANd5cF48u0ID
5 39kZCwfhpAKQDxvpqmbnRzB0hISjEpJxAiARfZIo24vM9jvJ2mMI6B9awGzzbLmw
6 29aya50RZT3kowIhALrT2NJc5iB/K4AZbq8Ovh5auj8Bg3Zl4hvpa11154yBAiAO
7 F+44Mb+YQi+r526cDv983vCuoU5EM0PbPvJxaWmwtQ==
1 MIIEpAIBAAKCAQEAvfB9mhPOYmpDKPDS1OgB+Wl2ZAxM2nOBe8f66K67itaTugYm
2 wE0dl97iCShg0svw/A4YRBwhQ3hjQlT+Zz2ZJ7jhWLQbS3+4n+Aj4I20fMePC3AK
3 dg9exsITr0Kxqu8NVuxAdLqRZ+AJjEwDSX5zJ1R/G7IigVaN4ziFmzQnB0EYFMC1
4 mSPfGj7sR7fE0Fpo62agk79B24BUDRSCJZTr2btD7loi4iX08Y5Ivgweo1er+fBf
5 krJoUGld3OatWfwGimGQGA5rCnR75GGTl8J6XLLniUh+lTF45M/oS0CCxlhtkE+O
6 y7Px7Alt2fNw4LBMmkpC/1oeGRMpwrY+Q3q0kwIDAQABAoIBAQC4gJyxh53KMait
7 Y0mZcQlB6nULeHtLFDpqL/cGAX3BvvBfGkyYLhCaDvKIrMVo3pxna5Wcy6pwLMhW
8 jdNWHBri4A9eKA3/h8Ci5IpVPbFeKEdGd/5hckrBTZLrgyCsh2vwzKtL+FL4kUMV
9 Gl1zDbb0NHsIP0CPXLGVT7lQ6xciTidcEcWUh25reGPMew+Xv/fuN2xVOFxwCe5Q
10 VdXR7yUFy7ihAyhEhK+TmF5eNRaqKA06KhbA6IME03RiiS/qxVRJgEfarXaibHiX
11 KYM612VvZ6GCbQaQBXYGpl2Gnzumro1E49+KgZ6SQlm+2iaDJn1P/vg3rzCUiR37
12 JvgNlap5AoGBAOQxtU5s+PbfdnW4SZu8+k0AtnwxwEvgwZUE5vdij/YApqIHfb2G
13 MnuqJ9gNaMBHRoEAM4FXfl6Fjnc2w2fpQxg9U5wFX8bA6EXiqJLgfEbNu5YKPB9e
14 BOTgNNrP6FbhwIM6mb0I47Fqzq17uS/GYYd3yRKdL34H9RPgzQms9Ov3AoGBANUV
15 doxGnqLoJWb/lLdk7+yRuCmTYwQmIBrAsdWK9mxrlvP5PTc1QRi11E1hcumViFdy
16 PBks7TUVmNqynRMaEw5W4VoLl2OrYrDkHxgP6clqwxYFYbldZohxueIdvNDCMLyu
17 5/efwEl/NgvnQwb+Z2UHHEP8E3xSl/LrkgCw3P1FAoGBAJlzj+/AOh+RoBCDsAQp
18 rcwwaYbU0fJ0ntj+Je8/+X09bNDS5syXPMWKZCbWxZVfmNrQ7tHQq2sWtvoV+oub
19 AgJ/4wStXH3EZa3xQNkcWpYmbTn1gf658+KRnxlx7FTYlOPqeU30d2FsaLWi2KJ2
20 7kjx1WZOC4zd/wGyD0+tXjp7AoGAcNM9gwb9hkqfS0s25mhWtY9u0OzOd+rsAt5X
21 CzfaRQwu0J3+8NWM01WrxRE9NDtOBudgtP/Z1crKtbnve6bJwkT0a6ZJkae0yO7x
22 G9+JLXIPPAC7ftfaq5J0Fyshx/OatL1z6+S1fvURm/nmvrRD8PVz3PeDJcfh1uku
23 1JjRWnUCgYAFnAsOddzyRMe52WbeoDbl/AFJZMBbLDb2fI9yGNzy2Y79V0Bvxi3k
24 iSp6vHXA2tiVysyeEgVWYOdPmblQ6GRivAW75sgyuma1A0GJqkmd1EPXwbFNod8K
25 Ax0XXK2/olLTWtSOs8Cxmopb+V1rpyuTwlhyHc9J4HGEEBeazlYg3A==
826 -----END RSA PRIVATE KEY-----
0 # Makefile.in generated by automake 1.13.4 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 = tools
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8190 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8291 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
8392 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
8897 $(top_srcdir)/m4/tp-linker-flag.m4 $(top_srcdir)/configure.ac
8998 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9099 $(ACLOCAL_M4)
100 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
91101 mkinstalldirs = $(install_sh) -d
92102 CONFIG_HEADER = $(top_builddir)/config.h
93103 CONFIG_CLEAN_FILES =
112122 *) (install-info --version) >/dev/null 2>&1;; \
113123 esac
114124 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
125 am__DIST_COMMON = $(srcdir)/Makefile.in
115126 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
116127 ACLOCAL = @ACLOCAL@
117128 AMTAR = @AMTAR@
162173 LIPO = @LIPO@
163174 LN_S = @LN_S@
164175 LTLIBOBJS = @LTLIBOBJS@
176 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
165177 MAKEINFO = @MAKEINFO@
166178 MANIFEST_TOOL = @MANIFEST_TOOL@
167179 MKDIR_P = @MKDIR_P@
245257 psdir = @psdir@
246258 pyexecdir = @pyexecdir@
247259 pythondir = @pythondir@
260 runstatedir = @runstatedir@
248261 sbindir = @sbindir@
249262 sharedstatedir = @sharedstatedir@
250263 srcdir = @srcdir@
279292 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tools/Makefile'; \
280293 $(am__cd) $(top_srcdir) && \
281294 $(AUTOMAKE) --gnu tools/Makefile
282 .PRECIOUS: Makefile
283295 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
284296 @case '$?' in \
285297 *config.status*) \
286298 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
287299 *) \
288 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
289 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
300 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
301 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
290302 esac;
291303
292304 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
310322 cscope cscopelist:
311323
312324
313 distdir: $(DISTFILES)
325 distdir: $(BUILT_SOURCES)
326 $(MAKE) $(AM_MAKEFLAGS) distdir-am
327
328 distdir-am: $(DISTFILES)
314329 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
315330 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
316331 list='$(DISTFILES)'; \
455470 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
456471 tags-am uninstall uninstall-am
457472
473 .PRECIOUS: Makefile
474
458475
459476 glib-ginterface-gen.py: libglibcodegen.py libtpcodegen.py
460477 touch $@
2121 # License along with this library; if not, write to the Free Software
2222 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2323
24 import functools
2425 import sys
2526 import os.path
2627 import xml.dom.minidom
8485 self.allow_havoc = allow_havoc
8586
8687 def h(self, s):
87 if isinstance(s, unicode):
88 s = s.encode('utf-8')
8988 self.__header.append(s)
9089
9190 def b(self, s):
92 if isinstance(s, unicode):
93 s = s.encode('utf-8')
9491 self.__body.append(s)
9592
9693 def d(self, s):
97 if isinstance(s, unicode):
98 s = s.encode('utf-8')
9994 self.__docs.append(s)
10095
10196 def do_node(self, node):
732727
733728 def __call__(self):
734729 nodes = self.dom.getElementsByTagName('node')
735 nodes.sort(cmp_by_name)
730 nodes.sort(key=functools.cmp_to_key(cmp_by_name))
736731
737732 self.h('#include <glib-object.h>')
738733 self.h('#include <dbus/dbus-glib.h>')
767762 file_set_contents(self.basename + '-gtk-doc.h', '\n'.join(self.__docs))
768763
769764 def cmdline_error():
770 print """\
765 print ("""\
771766 usage:
772767 gen-ginterface [OPTIONS] xmlfile Prefix_
773768 options:
787782 void symbol (DBusGMethodInvocation *context)
788783 and return some sort of "not implemented" error via
789784 dbus_g_method_return_error (context, ...)
790 """
785 """)
791786 sys.exit(1)
792787
793788
153153 return ("GHashTable *", "DBUS_TYPE_G_STRING_STRING_HASHTABLE", "BOXED", False)
154154 elif s[:2] == 'a{': #some arbitrary hash tables
155155 if s[2] not in ('y', 'b', 'n', 'q', 'i', 'u', 's', 'o', 'g'):
156 raise Exception, "can't index a hashtable off non-basic type " + s
156 raise Exception("can't index a hashtable off non-basic type " + s)
157157 first = type_to_gtype(s[2])
158158 second = type_to_gtype(s[3:-1])
159159 return ("GHashTable *", "(dbus_g_type_get_map (\"GHashTable\", " + first[1] + ", " + second[1] + "))", "BOXED", False)
168168 return ("GValueArray *", gtype, "BOXED", True)
169169
170170 # we just don't know ..
171 raise Exception, "don't know the GType for " + s
171 raise(Exception, "don't know the GType for " + s)
55 # to <telepathy@lists.freedesktop.org>. I hope that you enjoy your stay.
66
77 import sys
8 import re
9
10 def looks_like_a_header(line, package, version=None):
11 if version is None:
12 pattern = "^%s .* \(.*\)$" % package
13 else:
14 pattern = "^%s %s \(.*\)$" % (package, version)
15
16 return re.match(pattern, line) is not None
817
918 def extract_description(package, version, news_path):
1019 release_name = []
1423 lines = (line for line in f.readlines())
1524 for line in lines:
1625 # Find the 'telepathy-foo 0.1.2' header
17 if line.startswith("%s %s" % (package, version)):
26 if looks_like_a_header(line, package, version):
1827 break
1928
2029 # Skip the ====== line, and the first blank line
21 lines.next()
22 lines.next()
30 next(lines)
31 next(lines)
2332
2433 got_release_name = False
2534
2635 for line in lines:
2736 line = line.rstrip()
2837 # If we hit the next version header, we're done
29 if line.startswith(package):
38 if looks_like_a_header(line, package):
3039 break
3140 # Else, if we hit a blank line and we're still reading the release
3241 # name, we're done with the release name.
4958 def main(package, version, news_path):
5059 release_name, details = extract_description(package, version, news_path)
5160
52 print """
61 print("""
5362 %(release_name)s
5463
5564 tarball: %(base_url)s/%(package)s/%(package)s-%(version)s.tar.gz
6372 'version': version,
6473 'release_name': release_name,
6574 'details': details,
66 }
75 })
6776
6877 if __name__ == '__main__':
6978 try:
7079 package, version, news_path = sys.argv[1:]
7180
7281 main(package, version, news_path)
73 except ValueError, e:
82 except ValueError as e:
7483 sys.stderr.write(
7584 'Usage: %s package-name package.version.number path/to/NEWS\n' %
7685 sys.argv[0])