Merge lp:~chrisccoulson/totem/ubuntu into lp:~ubuntu-desktop/totem/ubuntu
- ubuntu
- Merge into ubuntu
Proposed by
Chris Coulson
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp:~chrisccoulson/totem/ubuntu | ||||
Merge into: | lp:~ubuntu-desktop/totem/ubuntu | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp:~chrisccoulson/totem/ubuntu | ||||
Related bugs: |
|
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'debian/changelog' | |||
2 | --- debian/changelog 2009-03-12 23:04:47 +0000 | |||
3 | +++ debian/changelog 2009-03-16 19:39:22 +0000 | |||
4 | @@ -1,3 +1,13 @@ | |||
5 | 1 | totem (2.26.0-0ubuntu1) jaunty; urgency=low | ||
6 | 2 | |||
7 | 3 | * New upstream release (LP: #343843): | ||
8 | 4 | - Make sure all the Python plugins are translated. | ||
9 | 5 | - Fix the language selection in the OpenSubtitles plugin. | ||
10 | 6 | * debian/patches/70_autotools.patch: | ||
11 | 7 | - New version update. | ||
12 | 8 | |||
13 | 9 | -- Chris Coulson <chrisccoulson@googlemail.com> Mon, 16 Mar 2009 17:25:46 +0000 | ||
14 | 10 | |||
15 | 1 | totem (2.25.92-0ubuntu2) jaunty; urgency=low | 11 | totem (2.25.92-0ubuntu2) jaunty; urgency=low |
16 | 2 | 12 | ||
17 | 3 | * Reapply revisions dropped by error | 13 | * Reapply revisions dropped by error |
18 | 4 | 14 | ||
19 | === modified file 'debian/control' | |||
20 | --- debian/control 2009-03-09 17:02:51 +0000 | |||
21 | +++ debian/control 2009-03-16 19:39:22 +0000 | |||
22 | @@ -211,6 +211,7 @@ | |||
23 | 211 | python-apt, | 211 | python-apt, |
24 | 212 | python-gdbm, | 212 | python-gdbm, |
25 | 213 | python-gobject (>= 2.15.3), | 213 | python-gobject (>= 2.15.3), |
26 | 214 | python-gconf, | ||
27 | 214 | python-gtk2 (>= 2.13.0), | 215 | python-gtk2 (>= 2.13.0), |
28 | 215 | python-gst0.10 (>= 0.10.12) | 216 | python-gst0.10 (>= 0.10.12) |
29 | 216 | Replaces: totem-xine (<< 2.20.0-3), totem-gstreamer (<< 2.20.0-3) | 217 | Replaces: totem-xine (<< 2.20.0-3), totem-gstreamer (<< 2.20.0-3) |
30 | 217 | 218 | ||
31 | === modified file 'debian/patches/70_autotools.patch' | |||
32 | --- debian/patches/70_autotools.patch 2009-03-09 17:02:51 +0000 | |||
33 | +++ debian/patches/70_autotools.patch 2009-03-16 19:39:22 +0000 | |||
34 | @@ -1,30 +1,190 @@ | |||
36 | 1 | Index: totem-2.25.92/INSTALL | 1 | Index: totem-2.26.0/INSTALL |
37 | 2 | =================================================================== | 2 | =================================================================== |
41 | 3 | --- totem-2.25.92.orig/INSTALL 2008-01-21 16:06:23.000000000 +0100 | 3 | --- totem-2.26.0.orig/INSTALL 2009-03-16 10:43:33.000000000 +0000 |
42 | 4 | +++ totem-2.25.92/INSTALL 2009-03-09 17:29:29.000000000 +0100 | 4 | +++ totem-2.26.0/INSTALL 2009-03-16 19:11:41.000000000 +0000 |
43 | 5 | @@ -2,7 +2,7 @@ | 5 | @@ -2,15 +2,15 @@ |
44 | 6 | ************************* | 6 | ************************* |
45 | 7 | 7 | ||
46 | 8 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, | 8 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, |
49 | 9 | -2006 Free Software Foundation, Inc. | 9 | -2006, 2007 Free Software Foundation, Inc. |
50 | 10 | +2006, 2007 Free Software Foundation, Inc. | 10 | +2006, 2007, 2008 Free Software Foundation, Inc. |
51 | 11 | 11 | ||
53 | 12 | This file is free documentation; the Free Software Foundation gives | 12 | -This file is free documentation; the Free Software Foundation gives |
54 | 13 | + This file is free documentation; the Free Software Foundation gives | ||
55 | 13 | unlimited permission to copy, distribute and modify it. | 14 | unlimited permission to copy, distribute and modify it. |
63 | 14 | @@ -67,6 +67,9 @@ | 15 | |
64 | 15 | all sorts of other programs in order to regenerate files that came | 16 | Basic Installation |
65 | 16 | with the distribution. | 17 | ================== |
66 | 17 | 18 | ||
67 | 18 | + 6. Often, you can also type `make uninstall' to remove the installed | 19 | -Briefly, the shell commands `./configure; make; make install' should |
68 | 19 | + files again. | 20 | + Briefly, the shell commands `./configure; make; make install' should |
69 | 20 | + | 21 | configure, build, and install this package. The following |
70 | 22 | more-detailed instructions are generic; see the `README' file for | ||
71 | 23 | instructions specific to this package. | ||
72 | 24 | @@ -73,9 +73,9 @@ | ||
73 | 21 | Compilers and Options | 25 | Compilers and Options |
74 | 22 | ===================== | 26 | ===================== |
75 | 23 | 27 | ||
77 | 24 | Index: totem-2.25.92/Makefile.in | 28 | -Some systems require unusual options for compilation or linking that the |
78 | 29 | -`configure' script does not know about. Run `./configure --help' for | ||
79 | 30 | -details on some of the pertinent environment variables. | ||
80 | 31 | + Some systems require unusual options for compilation or linking that | ||
81 | 32 | +the `configure' script does not know about. Run `./configure --help' | ||
82 | 33 | +for details on some of the pertinent environment variables. | ||
83 | 34 | |||
84 | 35 | You can give `configure' initial values for configuration parameters | ||
85 | 36 | by setting variables in the command line or in the environment. Here | ||
86 | 37 | @@ -88,7 +88,7 @@ | ||
87 | 38 | Compiling For Multiple Architectures | ||
88 | 39 | ==================================== | ||
89 | 40 | |||
90 | 41 | -You can compile the package for more than one kind of computer at the | ||
91 | 42 | + You can compile the package for more than one kind of computer at the | ||
92 | 43 | same time, by placing the object files for each architecture in their | ||
93 | 44 | own directory. To do this, you can use GNU `make'. `cd' to the | ||
94 | 45 | directory where you want the object files and executables to go and run | ||
95 | 46 | @@ -100,10 +100,24 @@ | ||
96 | 47 | installed the package for one architecture, use `make distclean' before | ||
97 | 48 | reconfiguring for another architecture. | ||
98 | 49 | |||
99 | 50 | + On MacOS X 10.5 and later systems, you can create libraries and | ||
100 | 51 | +executables that work on multiple system types--known as "fat" or | ||
101 | 52 | +"universal" binaries--by specifying multiple `-arch' options to the | ||
102 | 53 | +compiler but only a single `-arch' option to the preprocessor. Like | ||
103 | 54 | +this: | ||
104 | 55 | + | ||
105 | 56 | + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
106 | 57 | + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
107 | 58 | + CPP="gcc -E" CXXCPP="g++ -E" | ||
108 | 59 | + | ||
109 | 60 | + This is not guaranteed to produce working output in all cases, you | ||
110 | 61 | +may have to build one architecture at a time and combine the results | ||
111 | 62 | +using the `lipo' tool if you have problems. | ||
112 | 63 | + | ||
113 | 64 | Installation Names | ||
114 | 65 | ================== | ||
115 | 66 | |||
116 | 67 | -By default, `make install' installs the package's commands under | ||
117 | 68 | + By default, `make install' installs the package's commands under | ||
118 | 69 | `/usr/local/bin', include files under `/usr/local/include', etc. You | ||
119 | 70 | can specify an installation prefix other than `/usr/local' by giving | ||
120 | 71 | `configure' the option `--prefix=PREFIX'. | ||
121 | 72 | @@ -126,7 +140,7 @@ | ||
122 | 73 | Optional Features | ||
123 | 74 | ================= | ||
124 | 75 | |||
125 | 76 | -Some packages pay attention to `--enable-FEATURE' options to | ||
126 | 77 | + Some packages pay attention to `--enable-FEATURE' options to | ||
127 | 78 | `configure', where FEATURE indicates an optional part of the package. | ||
128 | 79 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | ||
129 | 80 | is something like `gnu-as' or `x' (for the X Window System). The | ||
130 | 81 | @@ -138,14 +152,36 @@ | ||
131 | 82 | you can use the `configure' options `--x-includes=DIR' and | ||
132 | 83 | `--x-libraries=DIR' to specify their locations. | ||
133 | 84 | |||
134 | 85 | +Particular systems | ||
135 | 86 | +================== | ||
136 | 87 | + | ||
137 | 88 | + On HP-UX, the default C compiler is not ANSI C compatible. If GNU | ||
138 | 89 | +CC is not installed, it is recommended to use the following options in | ||
139 | 90 | +order to use an ANSI C compiler: | ||
140 | 91 | + | ||
141 | 92 | + ./configure CC="cc -Ae" | ||
142 | 93 | + | ||
143 | 94 | +and if that doesn't work, install pre-built binaries of GCC for HP-UX. | ||
144 | 95 | + | ||
145 | 96 | + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | ||
146 | 97 | +parse its `<wchar.h>' header file. The option `-nodtk' can be used as | ||
147 | 98 | +a workaround. If GNU CC is not installed, it is therefore recommended | ||
148 | 99 | +to try | ||
149 | 100 | + | ||
150 | 101 | + ./configure CC="cc" | ||
151 | 102 | + | ||
152 | 103 | +and if that doesn't work, try | ||
153 | 104 | + | ||
154 | 105 | + ./configure CC="cc -nodtk" | ||
155 | 106 | + | ||
156 | 107 | Specifying the System Type | ||
157 | 108 | ========================== | ||
158 | 109 | |||
159 | 110 | -There may be some features `configure' cannot figure out automatically, | ||
160 | 111 | -but needs to determine by the type of machine the package will run on. | ||
161 | 112 | -Usually, assuming the package is built to be run on the _same_ | ||
162 | 113 | -architectures, `configure' can figure that out, but if it prints a | ||
163 | 114 | -message saying it cannot guess the machine type, give it the | ||
164 | 115 | + There may be some features `configure' cannot figure out | ||
165 | 116 | +automatically, but needs to determine by the type of machine the package | ||
166 | 117 | +will run on. Usually, assuming the package is built to be run on the | ||
167 | 118 | +_same_ architectures, `configure' can figure that out, but if it prints | ||
168 | 119 | +a message saying it cannot guess the machine type, give it the | ||
169 | 120 | `--build=TYPE' option. TYPE can either be a short name for the system | ||
170 | 121 | type, such as `sun4', or a canonical name which has the form: | ||
171 | 122 | |||
172 | 123 | @@ -171,9 +207,9 @@ | ||
173 | 124 | Sharing Defaults | ||
174 | 125 | ================ | ||
175 | 126 | |||
176 | 127 | -If you want to set default values for `configure' scripts to share, you | ||
177 | 128 | -can create a site shell script called `config.site' that gives default | ||
178 | 129 | -values for variables like `CC', `cache_file', and `prefix'. | ||
179 | 130 | + If you want to set default values for `configure' scripts to share, | ||
180 | 131 | +you can create a site shell script called `config.site' that gives | ||
181 | 132 | +default values for variables like `CC', `cache_file', and `prefix'. | ||
182 | 133 | `configure' looks for `PREFIX/share/config.site' if it exists, then | ||
183 | 134 | `PREFIX/etc/config.site' if it exists. Or, you can set the | ||
184 | 135 | `CONFIG_SITE' environment variable to the location of the site script. | ||
185 | 136 | @@ -182,7 +218,7 @@ | ||
186 | 137 | Defining Variables | ||
187 | 138 | ================== | ||
188 | 139 | |||
189 | 140 | -Variables not defined in a site shell script can be set in the | ||
190 | 141 | + Variables not defined in a site shell script can be set in the | ||
191 | 142 | environment passed to `configure'. However, some packages may run | ||
192 | 143 | configure again during the build, and the customized values of these | ||
193 | 144 | variables may be lost. In order to avoid this problem, you should set | ||
194 | 145 | @@ -201,11 +237,19 @@ | ||
195 | 146 | `configure' Invocation | ||
196 | 147 | ====================== | ||
197 | 148 | |||
198 | 149 | -`configure' recognizes the following options to control how it operates. | ||
199 | 150 | + `configure' recognizes the following options to control how it | ||
200 | 151 | +operates. | ||
201 | 152 | |||
202 | 153 | `--help' | ||
203 | 154 | `-h' | ||
204 | 155 | - Print a summary of the options to `configure', and exit. | ||
205 | 156 | + Print a summary of all of the options to `configure', and exit. | ||
206 | 157 | + | ||
207 | 158 | +`--help=short' | ||
208 | 159 | +`--help=recursive' | ||
209 | 160 | + Print a summary of the options unique to this package's | ||
210 | 161 | + `configure', and exit. The `short' variant lists options used | ||
211 | 162 | + only in the top level, while the `recursive' variant lists options | ||
212 | 163 | + also present in any nested packages. | ||
213 | 164 | |||
214 | 165 | `--version' | ||
215 | 166 | `-V' | ||
216 | 167 | @@ -232,6 +276,16 @@ | ||
217 | 168 | Look for the package's source code in directory DIR. Usually | ||
218 | 169 | `configure' can determine that directory automatically. | ||
219 | 170 | |||
220 | 171 | +`--prefix=DIR' | ||
221 | 172 | + Use DIR as the installation prefix. *Note Installation Names:: | ||
222 | 173 | + for more details, including other options available for fine-tuning | ||
223 | 174 | + the installation locations. | ||
224 | 175 | + | ||
225 | 176 | +`--no-create' | ||
226 | 177 | +`-n' | ||
227 | 178 | + Run the configure checks, but stop before creating any output | ||
228 | 179 | + files. | ||
229 | 180 | + | ||
230 | 181 | `configure' also accepts some other, not widely useful, options. Run | ||
231 | 182 | `configure --help' for more details. | ||
232 | 183 | |||
233 | 184 | Index: totem-2.26.0/Makefile.in | ||
234 | 25 | =================================================================== | 185 | =================================================================== |
237 | 26 | --- totem-2.25.92.orig/Makefile.in 2009-03-03 13:02:19.000000000 +0100 | 186 | --- totem-2.26.0.orig/Makefile.in 2009-03-16 10:43:33.000000000 +0000 |
238 | 27 | +++ totem-2.25.92/Makefile.in 2009-03-09 17:29:49.000000000 +0100 | 187 | +++ totem-2.26.0/Makefile.in 2009-03-16 19:11:41.000000000 +0000 |
239 | 28 | @@ -1,4 +1,4 @@ | 188 | @@ -1,4 +1,4 @@ |
240 | 29 | -# Makefile.in generated by automake 1.10.1 from Makefile.am. | 189 | -# Makefile.in generated by automake 1.10.1 from Makefile.am. |
241 | 30 | +# Makefile.in generated by automake 1.10.2 from Makefile.am. | 190 | +# Makefile.in generated by automake 1.10.2 from Makefile.am. |
242 | @@ -66,15 +226,38 @@ | |||
243 | 66 | GTK_CFLAGS = @GTK_CFLAGS@ | 226 | GTK_CFLAGS = @GTK_CFLAGS@ |
244 | 67 | GTK_LIBS = @GTK_LIBS@ | 227 | GTK_LIBS = @GTK_LIBS@ |
245 | 68 | HELP_DIR = @HELP_DIR@ | 228 | HELP_DIR = @HELP_DIR@ |
250 | 69 | @@ -178,6 +178,7 @@ | 229 | @@ -155,29 +155,11 @@ |
251 | 70 | INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ | 230 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
252 | 71 | INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ | 231 | INSTOBJEXT = @INSTOBJEXT@ |
253 | 72 | INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ | 232 | INTLLIBS = @INTLLIBS@ |
254 | 233 | -INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ | ||
255 | 234 | -INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ | ||
256 | 235 | -INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ | ||
257 | 236 | INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ | ||
258 | 237 | -INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ | ||
259 | 238 | -INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ | ||
260 | 239 | INTLTOOL_MERGE = @INTLTOOL_MERGE@ | ||
261 | 240 | -INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ | ||
262 | 241 | INTLTOOL_PERL = @INTLTOOL_PERL@ | ||
263 | 242 | -INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@ | ||
264 | 243 | -INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ | ||
265 | 244 | -INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ | ||
266 | 245 | -INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ | ||
267 | 246 | -INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ | ||
268 | 247 | -INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ | ||
269 | 248 | -INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ | ||
270 | 249 | -INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ | ||
271 | 250 | -INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ | ||
272 | 251 | -INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ | ||
273 | 252 | INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ | ||
274 | 253 | -INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ | ||
275 | 254 | -INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ | ||
276 | 255 | -INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ | ||
277 | 73 | +LD = @LD@ | 256 | +LD = @LD@ |
278 | 74 | LDFLAGS = @LDFLAGS@ | 257 | LDFLAGS = @LDFLAGS@ |
279 | 75 | LIBEPC_CFLAGS = @LIBEPC_CFLAGS@ | 258 | LIBEPC_CFLAGS = @LIBEPC_CFLAGS@ |
280 | 76 | LIBEPC_LIBS = @LIBEPC_LIBS@ | 259 | LIBEPC_LIBS = @LIBEPC_LIBS@ |
282 | 77 | @@ -186,6 +187,7 @@ | 260 | @@ -186,6 +168,7 @@ |
283 | 78 | LIBOBJS = @LIBOBJS@ | 261 | LIBOBJS = @LIBOBJS@ |
284 | 79 | LIBS = @LIBS@ | 262 | LIBS = @LIBS@ |
285 | 80 | LIBTOOL = @LIBTOOL@ | 263 | LIBTOOL = @LIBTOOL@ |
286 | @@ -82,7 +265,7 @@ | |||
287 | 82 | LIRC_LIBS = @LIRC_LIBS@ | 265 | LIRC_LIBS = @LIRC_LIBS@ |
288 | 83 | LN_S = @LN_S@ | 266 | LN_S = @LN_S@ |
289 | 84 | LTLIBOBJS = @LTLIBOBJS@ | 267 | LTLIBOBJS = @LTLIBOBJS@ |
291 | 85 | @@ -205,10 +207,14 @@ | 268 | @@ -205,10 +188,14 @@ |
292 | 86 | NAUTILUSDIR = @NAUTILUSDIR@ | 269 | NAUTILUSDIR = @NAUTILUSDIR@ |
293 | 87 | NAUTILUS_CFLAGS = @NAUTILUS_CFLAGS@ | 270 | NAUTILUS_CFLAGS = @NAUTILUS_CFLAGS@ |
294 | 88 | NAUTILUS_LIBS = @NAUTILUS_LIBS@ | 271 | NAUTILUS_LIBS = @NAUTILUS_LIBS@ |
295 | @@ -97,7 +280,7 @@ | |||
296 | 97 | PACKAGE = @PACKAGE@ | 280 | PACKAGE = @PACKAGE@ |
297 | 98 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 281 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
298 | 99 | PACKAGE_NAME = @PACKAGE_NAME@ | 282 | PACKAGE_NAME = @PACKAGE_NAME@ |
300 | 100 | @@ -272,7 +278,7 @@ | 283 | @@ -272,7 +259,7 @@ |
301 | 101 | abs_top_srcdir = @abs_top_srcdir@ | 284 | abs_top_srcdir = @abs_top_srcdir@ |
302 | 102 | ac_ct_CC = @ac_ct_CC@ | 285 | ac_ct_CC = @ac_ct_CC@ |
303 | 103 | ac_ct_CXX = @ac_ct_CXX@ | 286 | ac_ct_CXX = @ac_ct_CXX@ |
304 | @@ -106,7 +289,7 @@ | |||
305 | 106 | am__include = @am__include@ | 289 | am__include = @am__include@ |
306 | 107 | am__leading_dot = @am__leading_dot@ | 290 | am__leading_dot = @am__leading_dot@ |
307 | 108 | am__quote = @am__quote@ | 291 | am__quote = @am__quote@ |
309 | 109 | @@ -303,6 +309,7 @@ | 292 | @@ -303,6 +290,7 @@ |
310 | 110 | libexecdir = @libexecdir@ | 293 | libexecdir = @libexecdir@ |
311 | 111 | localedir = @localedir@ | 294 | localedir = @localedir@ |
312 | 112 | localstatedir = @localstatedir@ | 295 | localstatedir = @localstatedir@ |
313 | @@ -114,7 +297,7 @@ | |||
314 | 114 | mandir = @mandir@ | 297 | mandir = @mandir@ |
315 | 115 | mkdir_p = @mkdir_p@ | 298 | mkdir_p = @mkdir_p@ |
316 | 116 | oldincludedir = @oldincludedir@ | 299 | oldincludedir = @oldincludedir@ |
318 | 117 | @@ -405,7 +412,7 @@ | 300 | @@ -405,7 +393,7 @@ |
319 | 118 | -rm -rf .libs _libs | 301 | -rm -rf .libs _libs |
320 | 119 | 302 | ||
321 | 120 | distclean-libtool: | 303 | distclean-libtool: |
322 | @@ -123,7 +306,7 @@ | |||
323 | 123 | 306 | ||
324 | 124 | # This directory's subdirectories are mostly independent; you can cd | 307 | # This directory's subdirectories are mostly independent; you can cd |
325 | 125 | # into them and run `make' without going through this Makefile. | 308 | # into them and run `make' without going through this Makefile. |
327 | 126 | @@ -482,7 +489,7 @@ | 309 | @@ -482,7 +470,7 @@ |
328 | 127 | unique=`for i in $$list; do \ | 310 | unique=`for i in $$list; do \ |
329 | 128 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | 311 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
330 | 129 | done | \ | 312 | done | \ |
331 | @@ -132,10 +315,10 @@ | |||
332 | 132 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | 315 | END { if (nonempty) { for (i in files) print i; }; }'`; \ |
333 | 133 | mkid -fID $$unique | 316 | mkid -fID $$unique |
334 | 134 | tags: TAGS | 317 | tags: TAGS |
336 | 135 | Index: totem-2.25.92/aclocal.m4 | 318 | Index: totem-2.26.0/aclocal.m4 |
337 | 136 | =================================================================== | 319 | =================================================================== |
340 | 137 | --- totem-2.25.92.orig/aclocal.m4 2009-03-03 12:55:11.000000000 +0100 | 320 | --- totem-2.26.0.orig/aclocal.m4 2009-03-16 10:43:18.000000000 +0000 |
341 | 138 | +++ totem-2.25.92/aclocal.m4 2009-03-09 17:29:39.000000000 +0100 | 321 | +++ totem-2.26.0/aclocal.m4 2009-03-16 19:11:29.000000000 +0000 |
342 | 139 | @@ -1,4 +1,4 @@ | 322 | @@ -1,4 +1,4 @@ |
343 | 140 | -# generated automatically by aclocal 1.10.1 -*- Autoconf -*- | 323 | -# generated automatically by aclocal 1.10.1 -*- Autoconf -*- |
344 | 141 | +# generated automatically by aclocal 1.10.2 -*- Autoconf -*- | 324 | +# generated automatically by aclocal 1.10.2 -*- Autoconf -*- |
345 | @@ -200,7 +383,101 @@ | |||
346 | 200 | ]) | 383 | ]) |
347 | 201 | 384 | ||
348 | 202 | 385 | ||
350 | 203 | @@ -962,101 +959,187 @@ | 386 | @@ -837,25 +834,25 @@ |
351 | 387 | INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
352 | 388 | INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
353 | 389 | |||
354 | 390 | -AC_SUBST(INTLTOOL_DESKTOP_RULE) | ||
355 | 391 | -AC_SUBST(INTLTOOL_DIRECTORY_RULE) | ||
356 | 392 | -AC_SUBST(INTLTOOL_KEYS_RULE) | ||
357 | 393 | -AC_SUBST(INTLTOOL_PROP_RULE) | ||
358 | 394 | -AC_SUBST(INTLTOOL_OAF_RULE) | ||
359 | 395 | -AC_SUBST(INTLTOOL_PONG_RULE) | ||
360 | 396 | -AC_SUBST(INTLTOOL_SERVER_RULE) | ||
361 | 397 | -AC_SUBST(INTLTOOL_SHEET_RULE) | ||
362 | 398 | -AC_SUBST(INTLTOOL_SOUNDLIST_RULE) | ||
363 | 399 | -AC_SUBST(INTLTOOL_UI_RULE) | ||
364 | 400 | -AC_SUBST(INTLTOOL_XAM_RULE) | ||
365 | 401 | -AC_SUBST(INTLTOOL_KBD_RULE) | ||
366 | 402 | -AC_SUBST(INTLTOOL_XML_RULE) | ||
367 | 403 | -AC_SUBST(INTLTOOL_XML_NOMERGE_RULE) | ||
368 | 404 | -AC_SUBST(INTLTOOL_CAVES_RULE) | ||
369 | 405 | -AC_SUBST(INTLTOOL_SCHEMAS_RULE) | ||
370 | 406 | -AC_SUBST(INTLTOOL_THEME_RULE) | ||
371 | 407 | -AC_SUBST(INTLTOOL_SERVICE_RULE) | ||
372 | 408 | -AC_SUBST(INTLTOOL_POLICY_RULE) | ||
373 | 409 | +_IT_SUBST(INTLTOOL_DESKTOP_RULE) | ||
374 | 410 | +_IT_SUBST(INTLTOOL_DIRECTORY_RULE) | ||
375 | 411 | +_IT_SUBST(INTLTOOL_KEYS_RULE) | ||
376 | 412 | +_IT_SUBST(INTLTOOL_PROP_RULE) | ||
377 | 413 | +_IT_SUBST(INTLTOOL_OAF_RULE) | ||
378 | 414 | +_IT_SUBST(INTLTOOL_PONG_RULE) | ||
379 | 415 | +_IT_SUBST(INTLTOOL_SERVER_RULE) | ||
380 | 416 | +_IT_SUBST(INTLTOOL_SHEET_RULE) | ||
381 | 417 | +_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) | ||
382 | 418 | +_IT_SUBST(INTLTOOL_UI_RULE) | ||
383 | 419 | +_IT_SUBST(INTLTOOL_XAM_RULE) | ||
384 | 420 | +_IT_SUBST(INTLTOOL_KBD_RULE) | ||
385 | 421 | +_IT_SUBST(INTLTOOL_XML_RULE) | ||
386 | 422 | +_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) | ||
387 | 423 | +_IT_SUBST(INTLTOOL_CAVES_RULE) | ||
388 | 424 | +_IT_SUBST(INTLTOOL_SCHEMAS_RULE) | ||
389 | 425 | +_IT_SUBST(INTLTOOL_THEME_RULE) | ||
390 | 426 | +_IT_SUBST(INTLTOOL_SERVICE_RULE) | ||
391 | 427 | +_IT_SUBST(INTLTOOL_POLICY_RULE) | ||
392 | 428 | |||
393 | 429 | # Check the gettext tools to make sure they are GNU | ||
394 | 430 | AC_PATH_PROG(XGETTEXT, xgettext) | ||
395 | 431 | @@ -872,12 +869,17 @@ | ||
396 | 432 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | ||
397 | 433 | fi | ||
398 | 434 | |||
399 | 435 | -AC_PATH_PROG(INTLTOOL_PERL, [perl]) | ||
400 | 436 | +AC_PATH_PROG(INTLTOOL_PERL, perl) | ||
401 | 437 | if test -z "$INTLTOOL_PERL"; then | ||
402 | 438 | - AC_MSG_ERROR([perl not found; required for intltool]) | ||
403 | 439 | + AC_MSG_ERROR([perl not found]) | ||
404 | 440 | fi | ||
405 | 441 | -if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then | ||
406 | 442 | - AC_MSG_ERROR([perl 5.x required for intltool]) | ||
407 | 443 | +AC_MSG_CHECKING([for perl >= 5.8.1]) | ||
408 | 444 | +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 | ||
409 | 445 | +if test $? -ne 0; then | ||
410 | 446 | + AC_MSG_ERROR([perl 5.8.1 is required for intltool]) | ||
411 | 447 | +else | ||
412 | 448 | + IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" | ||
413 | 449 | + AC_MSG_RESULT([$IT_PERL_VERSION]) | ||
414 | 450 | fi | ||
415 | 451 | if test "x$2" != "xno-xml"; then | ||
416 | 452 | AC_MSG_CHECKING([for XML::Parser]) | ||
417 | 453 | @@ -933,7 +935,7 @@ | ||
418 | 454 | dnl of config.status. | ||
419 | 455 | AC_CONFIG_COMMANDS_PRE([ | ||
420 | 456 | AC_CONFIG_COMMANDS([$1/stamp-it], [ | ||
421 | 457 | - if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then | ||
422 | 458 | + if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then | ||
423 | 459 | AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) | ||
424 | 460 | fi | ||
425 | 461 | rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" | ||
426 | 462 | @@ -955,6 +957,17 @@ | ||
427 | 463 | ])dnl | ||
428 | 464 | ]) | ||
429 | 465 | |||
430 | 466 | +# _IT_SUBST(VARIABLE) | ||
431 | 467 | +# ------------------- | ||
432 | 468 | +# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST | ||
433 | 469 | +# | ||
434 | 470 | +AC_DEFUN([_IT_SUBST], | ||
435 | 471 | +[ | ||
436 | 472 | +AC_SUBST([$1]) | ||
437 | 473 | +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) | ||
438 | 474 | +] | ||
439 | 475 | +) | ||
440 | 476 | + | ||
441 | 477 | # deprecated macros | ||
442 | 478 | AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) | ||
443 | 479 | # A hint is needed for aclocal from Automake <= 1.9.4: | ||
444 | 480 | @@ -962,101 +975,187 @@ | ||
445 | 204 | 481 | ||
446 | 205 | 482 | ||
447 | 206 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 483 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
448 | @@ -241,11 +518,19 @@ | |||
449 | 241 | +# obtained by writing to the Free Software Foundation, Inc., | 518 | +# obtained by writing to the Free Software Foundation, Inc., |
450 | 242 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 519 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
451 | 243 | +]) | 520 | +]) |
453 | 244 | + | 521 | |
454 | 522 | -# serial 52 AC_PROG_LIBTOOL | ||
455 | 245 | +# serial 56 LT_INIT | 523 | +# serial 56 LT_INIT |
456 | 246 | 524 | ||
457 | 247 | -# serial 52 AC_PROG_LIBTOOL | ||
458 | 248 | 525 | ||
459 | 526 | -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | ||
460 | 527 | -# ----------------------------------------------------------- | ||
461 | 528 | -# If this macro is not defined by Autoconf, define it here. | ||
462 | 529 | -m4_ifdef([AC_PROVIDE_IFELSE], | ||
463 | 530 | - [], | ||
464 | 531 | - [m4_define([AC_PROVIDE_IFELSE], | ||
465 | 532 | - [m4_ifdef([AC_PROVIDE_$1], | ||
466 | 533 | - [$2], [$3])])]) | ||
467 | 249 | +# LT_PREREQ(VERSION) | 534 | +# LT_PREREQ(VERSION) |
468 | 250 | +# ------------------ | 535 | +# ------------------ |
469 | 251 | +# Complain and exit if this libtool version is less that VERSION. | 536 | +# Complain and exit if this libtool version is less that VERSION. |
470 | @@ -256,24 +541,6 @@ | |||
471 | 256 | + 63)])], | 541 | + 63)])], |
472 | 257 | + [$2])]) | 542 | + [$2])]) |
473 | 258 | 543 | ||
474 | 259 | -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | ||
475 | 260 | -# ----------------------------------------------------------- | ||
476 | 261 | -# If this macro is not defined by Autoconf, define it here. | ||
477 | 262 | -m4_ifdef([AC_PROVIDE_IFELSE], | ||
478 | 263 | - [], | ||
479 | 264 | - [m4_define([AC_PROVIDE_IFELSE], | ||
480 | 265 | - [m4_ifdef([AC_PROVIDE_$1], | ||
481 | 266 | - [$2], [$3])])]) | ||
482 | 267 | |||
483 | 268 | +# _LT_CHECK_BUILDDIR | ||
484 | 269 | +# ------------------ | ||
485 | 270 | +# Complain if the absolute build directory name contains unusual characters | ||
486 | 271 | +m4_defun([_LT_CHECK_BUILDDIR], | ||
487 | 272 | +[case `pwd` in | ||
488 | 273 | + *\ * | *\ *) | ||
489 | 274 | + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | ||
490 | 275 | +esac | ||
491 | 276 | +]) | ||
492 | 277 | 544 | ||
493 | 278 | -# AC_PROG_LIBTOOL | 545 | -# AC_PROG_LIBTOOL |
494 | 279 | -# --------------- | 546 | -# --------------- |
495 | @@ -308,7 +575,24 @@ | |||
496 | 308 | - [define([LT_AC_PROG_GCJ], | 575 | - [define([LT_AC_PROG_GCJ], |
497 | 309 | - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) | 576 | - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
498 | 310 | -])])# AC_PROG_LIBTOOL | 577 | -])])# AC_PROG_LIBTOOL |
500 | 311 | 578 | +# _LT_CHECK_BUILDDIR | |
501 | 579 | +# ------------------ | ||
502 | 580 | +# Complain if the absolute build directory name contains unusual characters | ||
503 | 581 | +m4_defun([_LT_CHECK_BUILDDIR], | ||
504 | 582 | +[case `pwd` in | ||
505 | 583 | + *\ * | *\ *) | ||
506 | 584 | + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | ||
507 | 585 | +esac | ||
508 | 586 | +]) | ||
509 | 587 | |||
510 | 588 | |||
511 | 589 | -# _AC_PROG_LIBTOOL | ||
512 | 590 | -# ---------------- | ||
513 | 591 | -AC_DEFUN([_AC_PROG_LIBTOOL], | ||
514 | 592 | -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | ||
515 | 593 | -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl | ||
516 | 594 | -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl | ||
517 | 595 | -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl | ||
518 | 312 | +# LT_INIT([OPTIONS]) | 596 | +# LT_INIT([OPTIONS]) |
519 | 313 | +# ------------------ | 597 | +# ------------------ |
520 | 314 | +AC_DEFUN([LT_INIT], | 598 | +AC_DEFUN([LT_INIT], |
521 | @@ -328,14 +612,7 @@ | |||
522 | 328 | +AC_REQUIRE([LTVERSION_VERSION])dnl | 612 | +AC_REQUIRE([LTVERSION_VERSION])dnl |
523 | 329 | +AC_REQUIRE([LTOBSOLETE_VERSION])dnl | 613 | +AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
524 | 330 | +m4_require([_LT_PROG_LTMAIN])dnl | 614 | +m4_require([_LT_PROG_LTMAIN])dnl |
533 | 331 | 615 | + | |
526 | 332 | -# _AC_PROG_LIBTOOL | ||
527 | 333 | -# ---------------- | ||
528 | 334 | -AC_DEFUN([_AC_PROG_LIBTOOL], | ||
529 | 335 | -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | ||
530 | 336 | -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl | ||
531 | 337 | -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl | ||
532 | 338 | -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl | ||
534 | 339 | +dnl Parse OPTIONS | 616 | +dnl Parse OPTIONS |
535 | 340 | +_LT_SET_OPTIONS([$0], [$1]) | 617 | +_LT_SET_OPTIONS([$0], [$1]) |
536 | 341 | 618 | ||
537 | @@ -427,14 +704,14 @@ | |||
538 | 427 | -AC_REQUIRE([AC_EXEEXT])dnl | 704 | -AC_REQUIRE([AC_EXEEXT])dnl |
539 | 428 | +test -z "$LN_S" && LN_S="ln -s" | 705 | +test -z "$LN_S" && LN_S="ln -s" |
540 | 429 | +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl | 706 | +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
541 | 430 | +dnl | ||
542 | 431 | +AC_REQUIRE([LT_CMD_MAX_LEN])dnl | ||
543 | 432 | +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | ||
544 | 433 | +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | ||
545 | 434 | dnl | 707 | dnl |
546 | 435 | -AC_LIBTOOL_SYS_MAX_CMD_LEN | 708 | -AC_LIBTOOL_SYS_MAX_CMD_LEN |
547 | 436 | -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | 709 | -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
548 | 437 | -AC_LIBTOOL_OBJDIR | 710 | -AC_LIBTOOL_OBJDIR |
549 | 711 | +AC_REQUIRE([LT_CMD_MAX_LEN])dnl | ||
550 | 712 | +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | ||
551 | 713 | +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | ||
552 | 714 | +dnl | ||
553 | 438 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 715 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
554 | 439 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl | 716 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
555 | 440 | +m4_require([_LT_CMD_RELOAD])dnl | 717 | +m4_require([_LT_CMD_RELOAD])dnl |
556 | @@ -452,17 +729,17 @@ | |||
557 | 452 | +if test -n "${ZSH_VERSION+set}" ; then | 729 | +if test -n "${ZSH_VERSION+set}" ; then |
558 | 453 | + setopt NO_GLOB_SUBST | 730 | + setopt NO_GLOB_SUBST |
559 | 454 | +fi | 731 | +fi |
560 | 732 | + | ||
561 | 733 | +_LT_CHECK_OBJDIR | ||
562 | 455 | 734 | ||
563 | 456 | -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | 735 | -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
564 | 457 | -_LT_AC_PROG_ECHO_BACKSLASH | 736 | -_LT_AC_PROG_ECHO_BACKSLASH |
565 | 458 | +_LT_CHECK_OBJDIR | ||
566 | 459 | + | ||
567 | 460 | +m4_require([_LT_TAG_COMPILER])dnl | 737 | +m4_require([_LT_TAG_COMPILER])dnl |
568 | 461 | +_LT_PROG_ECHO_BACKSLASH | 738 | +_LT_PROG_ECHO_BACKSLASH |
569 | 462 | 739 | ||
570 | 463 | case $host_os in | 740 | case $host_os in |
571 | 464 | aix3*) | 741 | aix3*) |
573 | 465 | @@ -1072,6533 +1155,7770 @@ | 742 | @@ -1072,6533 +1171,7770 @@ |
574 | 466 | 743 | ||
575 | 467 | # Sed substitution that helps us do robust quoting. It backslashifies | 744 | # Sed substitution that helps us do robust quoting. It backslashifies |
576 | 468 | # metacharacters that are still active within double-quoted strings. | 745 | # metacharacters that are still active within double-quoted strings. |
577 | @@ -767,33 +1044,7 @@ | |||
578 | 767 | - fi | 1044 | - fi |
579 | 768 | - ;; | 1045 | - ;; |
580 | 769 | - esac | 1046 | - esac |
608 | 770 | -]) | 1047 | + |
582 | 771 | |||
583 | 772 | -# _LT_AC_SYS_LIBPATH_AIX | ||
584 | 773 | -# ---------------------- | ||
585 | 774 | -# Links a minimal program and checks the executable | ||
586 | 775 | -# for the system default hardcoded library path. In most cases, | ||
587 | 776 | -# this is /usr/lib:/lib, but when the MPI compilers are used | ||
588 | 777 | -# the location of the communication and MPI libs are included too. | ||
589 | 778 | -# If we don't find anything, use the default library path according | ||
590 | 779 | -# to the aix ld manual. | ||
591 | 780 | -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | ||
592 | 781 | -[AC_REQUIRE([LT_AC_PROG_SED])dnl | ||
593 | 782 | -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | ||
594 | 783 | -lt_aix_libpath_sed=' | ||
595 | 784 | - /Import File Strings/,/^$/ { | ||
596 | 785 | - /^0/ { | ||
597 | 786 | - s/^0 *\(.*\)$/\1/ | ||
598 | 787 | - p | ||
599 | 788 | - } | ||
600 | 789 | - }' | ||
601 | 790 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
602 | 791 | -# Check for a 64-bit object if we didn't find anything. | ||
603 | 792 | -if test -z "$aix_libpath"; then | ||
604 | 793 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
605 | 794 | -fi],[]) | ||
606 | 795 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
607 | 796 | -])# _LT_AC_SYS_LIBPATH_AIX | ||
609 | 797 | +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) | 1048 | +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
610 | 798 | +# ------------------------------------------------------------------- | 1049 | +# ------------------------------------------------------------------- |
611 | 799 | +# CONFIGNAME is the name given to the value in the libtool script. | 1050 | +# CONFIGNAME is the name given to the value in the libtool script. |
612 | @@ -809,8 +1060,37 @@ | |||
613 | 809 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) | 1060 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
614 | 810 | + lt_dict_add_subkey([lt_decl_dict], [$2], | 1061 | + lt_dict_add_subkey([lt_decl_dict], [$2], |
615 | 811 | + [tagged?], [m4_ifval([$5], [yes], [no])])]) | 1062 | + [tagged?], [m4_ifval([$5], [yes], [no])])]) |
618 | 812 | +]) | 1063 | ]) |
619 | 813 | 1064 | ||
620 | 1065 | -# _LT_AC_SYS_LIBPATH_AIX | ||
621 | 1066 | -# ---------------------- | ||
622 | 1067 | -# Links a minimal program and checks the executable | ||
623 | 1068 | -# for the system default hardcoded library path. In most cases, | ||
624 | 1069 | -# this is /usr/lib:/lib, but when the MPI compilers are used | ||
625 | 1070 | -# the location of the communication and MPI libs are included too. | ||
626 | 1071 | -# If we don't find anything, use the default library path according | ||
627 | 1072 | -# to the aix ld manual. | ||
628 | 1073 | -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | ||
629 | 1074 | -[AC_REQUIRE([LT_AC_PROG_SED])dnl | ||
630 | 1075 | -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | ||
631 | 1076 | -lt_aix_libpath_sed=' | ||
632 | 1077 | - /Import File Strings/,/^$/ { | ||
633 | 1078 | - /^0/ { | ||
634 | 1079 | - s/^0 *\(.*\)$/\1/ | ||
635 | 1080 | - p | ||
636 | 1081 | - } | ||
637 | 1082 | - }' | ||
638 | 1083 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
639 | 1084 | -# Check for a 64-bit object if we didn't find anything. | ||
640 | 1085 | -if test -z "$aix_libpath"; then | ||
641 | 1086 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
642 | 1087 | -fi],[]) | ||
643 | 1088 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
644 | 1089 | -])# _LT_AC_SYS_LIBPATH_AIX | ||
645 | 1090 | |||
646 | 1091 | +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | ||
647 | 1092 | +# -------------------------------------------------------- | ||
648 | 1093 | +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) | ||
649 | 814 | 1094 | ||
650 | 815 | -# _LT_AC_SHELL_INIT(ARG) | 1095 | -# _LT_AC_SHELL_INIT(ARG) |
651 | 816 | -# ---------------------- | 1096 | -# ---------------------- |
652 | @@ -821,10 +1101,11 @@ | |||
653 | 821 | -$1 | 1101 | -$1 |
654 | 822 | -AC_DIVERT_POP | 1102 | -AC_DIVERT_POP |
655 | 823 | -])# _LT_AC_SHELL_INIT | 1103 | -])# _LT_AC_SHELL_INIT |
656 | 824 | +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | ||
657 | 825 | +# -------------------------------------------------------- | ||
658 | 826 | +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) | ||
659 | 827 | 1104 | ||
660 | 1105 | +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | ||
661 | 1106 | +# ------------------------------------------------ | ||
662 | 1107 | +m4_define([lt_decl_tag_varnames], | ||
663 | 1108 | +[_lt_decl_filter([tagged?], [yes], $@)]) | ||
664 | 828 | 1109 | ||
665 | 829 | -# _LT_AC_PROG_ECHO_BACKSLASH | 1110 | -# _LT_AC_PROG_ECHO_BACKSLASH |
666 | 830 | -# -------------------------- | 1111 | -# -------------------------- |
667 | @@ -834,10 +1115,6 @@ | |||
668 | 834 | -[_LT_AC_SHELL_INIT([ | 1115 | -[_LT_AC_SHELL_INIT([ |
669 | 835 | -# Check that we are running under the correct shell. | 1116 | -# Check that we are running under the correct shell. |
670 | 836 | -SHELL=${CONFIG_SHELL-/bin/sh} | 1117 | -SHELL=${CONFIG_SHELL-/bin/sh} |
671 | 837 | +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | ||
672 | 838 | +# ------------------------------------------------ | ||
673 | 839 | +m4_define([lt_decl_tag_varnames], | ||
674 | 840 | +[_lt_decl_filter([tagged?], [yes], $@)]) | ||
675 | 841 | 1118 | ||
676 | 842 | -case X$ECHO in | 1119 | -case X$ECHO in |
677 | 843 | -X*--fallback-echo) | 1120 | -X*--fallback-echo) |
678 | @@ -845,21 +1122,6 @@ | |||
679 | 845 | - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | 1122 | - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
680 | 846 | - ;; | 1123 | - ;; |
681 | 847 | -esac | 1124 | -esac |
682 | 848 | |||
683 | 849 | -echo=${ECHO-echo} | ||
684 | 850 | -if test "X[$]1" = X--no-reexec; then | ||
685 | 851 | - # Discard the --no-reexec flag, and continue. | ||
686 | 852 | - shift | ||
687 | 853 | -elif test "X[$]1" = X--fallback-echo; then | ||
688 | 854 | - # Avoid inline document here, it may be left over | ||
689 | 855 | - : | ||
690 | 856 | -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
691 | 857 | - # Yippee, $echo works! | ||
692 | 858 | - : | ||
693 | 859 | -else | ||
694 | 860 | - # Restart under the correct shell. | ||
695 | 861 | - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
696 | 862 | -fi | ||
697 | 863 | +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) | 1125 | +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
698 | 864 | +# --------------------------------------------------------- | 1126 | +# --------------------------------------------------------- |
699 | 865 | +m4_define([_lt_decl_filter], | 1127 | +m4_define([_lt_decl_filter], |
700 | @@ -871,6 +1133,21 @@ | |||
701 | 871 | + [lt_dict_filter([lt_decl_dict], $@)])[]dnl | 1133 | + [lt_dict_filter([lt_decl_dict], $@)])[]dnl |
702 | 872 | +]) | 1134 | +]) |
703 | 873 | 1135 | ||
704 | 1136 | -echo=${ECHO-echo} | ||
705 | 1137 | -if test "X[$]1" = X--no-reexec; then | ||
706 | 1138 | - # Discard the --no-reexec flag, and continue. | ||
707 | 1139 | - shift | ||
708 | 1140 | -elif test "X[$]1" = X--fallback-echo; then | ||
709 | 1141 | - # Avoid inline document here, it may be left over | ||
710 | 1142 | - : | ||
711 | 1143 | -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
712 | 1144 | - # Yippee, $echo works! | ||
713 | 1145 | - : | ||
714 | 1146 | -else | ||
715 | 1147 | - # Restart under the correct shell. | ||
716 | 1148 | - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
717 | 1149 | -fi | ||
718 | 1150 | |||
719 | 874 | -if test "X[$]1" = X--fallback-echo; then | 1151 | -if test "X[$]1" = X--fallback-echo; then |
720 | 875 | - # used as fallback echo | 1152 | - # used as fallback echo |
721 | 876 | - shift | 1153 | - shift |
722 | @@ -879,15 +1156,15 @@ | |||
723 | 879 | -EOF | 1156 | -EOF |
724 | 880 | - exit 0 | 1157 | - exit 0 |
725 | 881 | -fi | 1158 | -fi |
726 | 882 | |||
727 | 883 | -# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
728 | 884 | -# if CDPATH is set. | ||
729 | 885 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
730 | 886 | +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) | 1159 | +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
731 | 887 | +# -------------------------------------------------- | 1160 | +# -------------------------------------------------- |
732 | 888 | +m4_define([lt_decl_quote_varnames], | 1161 | +m4_define([lt_decl_quote_varnames], |
733 | 889 | +[_lt_decl_filter([value], [1], $@)]) | 1162 | +[_lt_decl_filter([value], [1], $@)]) |
734 | 890 | 1163 | ||
735 | 1164 | -# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
736 | 1165 | -# if CDPATH is set. | ||
737 | 1166 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
738 | 1167 | |||
739 | 891 | -if test -z "$ECHO"; then | 1168 | -if test -z "$ECHO"; then |
740 | 892 | -if test "X${echo_test_string+set}" != Xset; then | 1169 | -if test "X${echo_test_string+set}" != Xset; then |
741 | 893 | -# find a string as large as possible, as long as the shell can cope with it | 1170 | -# find a string as large as possible, as long as the shell can cope with it |
742 | @@ -901,22 +1178,22 @@ | |||
743 | 901 | - fi | 1178 | - fi |
744 | 902 | - done | 1179 | - done |
745 | 903 | -fi | 1180 | -fi |
746 | 904 | |||
747 | 905 | -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
748 | 906 | - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
749 | 907 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
750 | 908 | - : | ||
751 | 909 | -else | ||
752 | 910 | - # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
753 | 911 | - # backslashes. This makes it impossible to quote backslashes using | ||
754 | 912 | - # echo "$something" | sed 's/\\/\\\\/g' | ||
755 | 913 | - # | ||
756 | 914 | - # So, first we look for a working echo in the user's PATH. | ||
757 | 915 | +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) | 1181 | +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
758 | 916 | +# --------------------------------------------------- | 1182 | +# --------------------------------------------------- |
759 | 917 | +m4_define([lt_decl_dquote_varnames], | 1183 | +m4_define([lt_decl_dquote_varnames], |
760 | 918 | +[_lt_decl_filter([value], [2], $@)]) | 1184 | +[_lt_decl_filter([value], [2], $@)]) |
761 | 919 | 1185 | ||
762 | 1186 | -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
763 | 1187 | - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
764 | 1188 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
765 | 1189 | - : | ||
766 | 1190 | -else | ||
767 | 1191 | - # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
768 | 1192 | - # backslashes. This makes it impossible to quote backslashes using | ||
769 | 1193 | - # echo "$something" | sed 's/\\/\\\\/g' | ||
770 | 1194 | - # | ||
771 | 1195 | - # So, first we look for a working echo in the user's PATH. | ||
772 | 1196 | |||
773 | 920 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 1197 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
774 | 921 | - for dir in $PATH /usr/ucb; do | 1198 | - for dir in $PATH /usr/ucb; do |
775 | 922 | - IFS="$lt_save_ifs" | 1199 | - IFS="$lt_save_ifs" |
776 | @@ -929,47 +1206,6 @@ | |||
777 | 929 | - fi | 1206 | - fi |
778 | 930 | - done | 1207 | - done |
779 | 931 | - IFS="$lt_save_ifs" | 1208 | - IFS="$lt_save_ifs" |
780 | 932 | |||
781 | 933 | - if test "X$echo" = Xecho; then | ||
782 | 934 | - # We didn't find a better echo, so look for alternatives. | ||
783 | 935 | - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
784 | 936 | - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
785 | 937 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
786 | 938 | - # This shell has a builtin print -r that does the trick. | ||
787 | 939 | - echo='print -r' | ||
788 | 940 | - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
789 | 941 | - test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
790 | 942 | - # If we have ksh, try running configure again with it. | ||
791 | 943 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
792 | 944 | - export ORIGINAL_CONFIG_SHELL | ||
793 | 945 | - CONFIG_SHELL=/bin/ksh | ||
794 | 946 | - export CONFIG_SHELL | ||
795 | 947 | - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
796 | 948 | - else | ||
797 | 949 | - # Try using printf. | ||
798 | 950 | - echo='printf %s\n' | ||
799 | 951 | - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
800 | 952 | - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
801 | 953 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
802 | 954 | - # Cool, printf works | ||
803 | 955 | - : | ||
804 | 956 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
805 | 957 | - test "X$echo_testing_string" = 'X\t' && | ||
806 | 958 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
807 | 959 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
808 | 960 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
809 | 961 | - export CONFIG_SHELL | ||
810 | 962 | - SHELL="$CONFIG_SHELL" | ||
811 | 963 | - export SHELL | ||
812 | 964 | - echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
813 | 965 | - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
814 | 966 | - test "X$echo_testing_string" = 'X\t' && | ||
815 | 967 | - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
816 | 968 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
817 | 969 | - echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
818 | 970 | - else | ||
819 | 971 | - # maybe with a smaller string... | ||
820 | 972 | - prev=: | ||
821 | 973 | +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) | 1209 | +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
822 | 974 | +# --------------------------------------------------- | 1210 | +# --------------------------------------------------- |
823 | 975 | +m4_define([lt_decl_varnames_tagged], | 1211 | +m4_define([lt_decl_varnames_tagged], |
824 | @@ -980,6 +1216,47 @@ | |||
825 | 980 | +m4_define([_lt_decl_varnames_tagged], | 1216 | +m4_define([_lt_decl_varnames_tagged], |
826 | 981 | +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) | 1217 | +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) |
827 | 982 | 1218 | ||
828 | 1219 | - if test "X$echo" = Xecho; then | ||
829 | 1220 | - # We didn't find a better echo, so look for alternatives. | ||
830 | 1221 | - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
831 | 1222 | - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
832 | 1223 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
833 | 1224 | - # This shell has a builtin print -r that does the trick. | ||
834 | 1225 | - echo='print -r' | ||
835 | 1226 | - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
836 | 1227 | - test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
837 | 1228 | - # If we have ksh, try running configure again with it. | ||
838 | 1229 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
839 | 1230 | - export ORIGINAL_CONFIG_SHELL | ||
840 | 1231 | - CONFIG_SHELL=/bin/ksh | ||
841 | 1232 | - export CONFIG_SHELL | ||
842 | 1233 | - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
843 | 1234 | - else | ||
844 | 1235 | - # Try using printf. | ||
845 | 1236 | - echo='printf %s\n' | ||
846 | 1237 | - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
847 | 1238 | - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
848 | 1239 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
849 | 1240 | - # Cool, printf works | ||
850 | 1241 | - : | ||
851 | 1242 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
852 | 1243 | - test "X$echo_testing_string" = 'X\t' && | ||
853 | 1244 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
854 | 1245 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
855 | 1246 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
856 | 1247 | - export CONFIG_SHELL | ||
857 | 1248 | - SHELL="$CONFIG_SHELL" | ||
858 | 1249 | - export SHELL | ||
859 | 1250 | - echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
860 | 1251 | - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
861 | 1252 | - test "X$echo_testing_string" = 'X\t' && | ||
862 | 1253 | - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
863 | 1254 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
864 | 1255 | - echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
865 | 1256 | - else | ||
866 | 1257 | - # maybe with a smaller string... | ||
867 | 1258 | - prev=: | ||
868 | 1259 | |||
869 | 983 | - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | 1260 | - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
870 | 984 | - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | 1261 | - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
871 | 985 | - then | 1262 | - then |
872 | @@ -987,20 +1264,6 @@ | |||
873 | 987 | - fi | 1264 | - fi |
874 | 988 | - prev="$cmd" | 1265 | - prev="$cmd" |
875 | 989 | - done | 1266 | - done |
876 | 990 | |||
877 | 991 | - if test "$prev" != 'sed 50q "[$]0"'; then | ||
878 | 992 | - echo_test_string=`eval $prev` | ||
879 | 993 | - export echo_test_string | ||
880 | 994 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | ||
881 | 995 | - else | ||
882 | 996 | - # Oops. We lost completely, so just stick with echo. | ||
883 | 997 | - echo=echo | ||
884 | 998 | - fi | ||
885 | 999 | - fi | ||
886 | 1000 | - fi | ||
887 | 1001 | - fi | ||
888 | 1002 | -fi | ||
889 | 1003 | -fi | ||
890 | 1004 | +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) | 1267 | +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
891 | 1005 | +# ------------------------------------------------ | 1268 | +# ------------------------------------------------ |
892 | 1006 | +m4_define([lt_decl_all_varnames], | 1269 | +m4_define([lt_decl_all_varnames], |
893 | @@ -1014,15 +1277,26 @@ | |||
894 | 1014 | + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | 1277 | + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
895 | 1015 | +]) | 1278 | +]) |
896 | 1016 | 1279 | ||
897 | 1280 | - if test "$prev" != 'sed 50q "[$]0"'; then | ||
898 | 1281 | - echo_test_string=`eval $prev` | ||
899 | 1282 | - export echo_test_string | ||
900 | 1283 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | ||
901 | 1284 | - else | ||
902 | 1285 | - # Oops. We lost completely, so just stick with echo. | ||
903 | 1286 | - echo=echo | ||
904 | 1287 | - fi | ||
905 | 1288 | - fi | ||
906 | 1289 | - fi | ||
907 | 1290 | - fi | ||
908 | 1291 | -fi | ||
909 | 1292 | -fi | ||
910 | 1293 | |||
911 | 1017 | -# Copy echo and quote the copy suitably for passing to libtool from | 1294 | -# Copy echo and quote the copy suitably for passing to libtool from |
912 | 1018 | -# the Makefile, instead of quoting the original, which is used later. | 1295 | -# the Makefile, instead of quoting the original, which is used later. |
913 | 1019 | -ECHO=$echo | 1296 | -ECHO=$echo |
914 | 1020 | -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | 1297 | -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
915 | 1021 | - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | 1298 | - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
916 | 1022 | -fi | 1299 | -fi |
917 | 1023 | |||
918 | 1024 | -AC_SUBST(ECHO) | ||
919 | 1025 | -])])# _LT_AC_PROG_ECHO_BACKSLASH | ||
920 | 1026 | +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) | 1300 | +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
921 | 1027 | +# ------------------------------------ | 1301 | +# ------------------------------------ |
922 | 1028 | +# Quote a variable value, and forward it to `config.status' so that its | 1302 | +# Quote a variable value, and forward it to `config.status' so that its |
923 | @@ -1031,14 +1305,9 @@ | |||
924 | 1031 | +m4_define([_LT_CONFIG_STATUS_DECLARE], | 1305 | +m4_define([_LT_CONFIG_STATUS_DECLARE], |
925 | 1032 | +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) | 1306 | +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) |
926 | 1033 | 1307 | ||
927 | 1308 | -AC_SUBST(ECHO) | ||
928 | 1309 | -])])# _LT_AC_PROG_ECHO_BACKSLASH | ||
929 | 1034 | 1310 | ||
930 | 1035 | -# _LT_AC_LOCK | ||
931 | 1036 | -# ----------- | ||
932 | 1037 | -AC_DEFUN([_LT_AC_LOCK], | ||
933 | 1038 | -[AC_ARG_ENABLE([libtool-lock], | ||
934 | 1039 | - [AC_HELP_STRING([--disable-libtool-lock], | ||
935 | 1040 | - [avoid locking (might break parallel builds)])]) | ||
936 | 1041 | -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
937 | 1042 | +# _LT_CONFIG_STATUS_DECLARATIONS | 1311 | +# _LT_CONFIG_STATUS_DECLARATIONS |
938 | 1043 | +# ------------------------------ | 1312 | +# ------------------------------ |
939 | 1044 | +# We delimit libtool config variables with single quotes, so when | 1313 | +# We delimit libtool config variables with single quotes, so when |
940 | @@ -1051,6 +1320,14 @@ | |||
941 | 1051 | +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | 1320 | +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
942 | 1052 | + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | 1321 | + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
943 | 1053 | 1322 | ||
944 | 1323 | -# _LT_AC_LOCK | ||
945 | 1324 | -# ----------- | ||
946 | 1325 | -AC_DEFUN([_LT_AC_LOCK], | ||
947 | 1326 | -[AC_ARG_ENABLE([libtool-lock], | ||
948 | 1327 | - [AC_HELP_STRING([--disable-libtool-lock], | ||
949 | 1328 | - [avoid locking (might break parallel builds)])]) | ||
950 | 1329 | -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
951 | 1330 | |||
952 | 1054 | -# Some flags need to be propagated to the compiler or linker for good | 1331 | -# Some flags need to be propagated to the compiler or linker for good |
953 | 1055 | -# libtool support. | 1332 | -# libtool support. |
954 | 1056 | -case $host in | 1333 | -case $host in |
955 | @@ -1101,31 +1378,6 @@ | |||
956 | 1101 | - fi | 1378 | - fi |
957 | 1102 | - rm -rf conftest* | 1379 | - rm -rf conftest* |
958 | 1103 | - ;; | 1380 | - ;; |
959 | 1104 | |||
960 | 1105 | -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
961 | 1106 | -s390*-*linux*|sparc*-*linux*) | ||
962 | 1107 | - # Find out which ABI we are using. | ||
963 | 1108 | - echo 'int i;' > conftest.$ac_ext | ||
964 | 1109 | - if AC_TRY_EVAL(ac_compile); then | ||
965 | 1110 | - case `/usr/bin/file conftest.o` in | ||
966 | 1111 | - *32-bit*) | ||
967 | 1112 | - case $host in | ||
968 | 1113 | - x86_64-*kfreebsd*-gnu) | ||
969 | 1114 | - LD="${LD-ld} -m elf_i386_fbsd" | ||
970 | 1115 | - ;; | ||
971 | 1116 | - x86_64-*linux*) | ||
972 | 1117 | - LD="${LD-ld} -m elf_i386" | ||
973 | 1118 | - ;; | ||
974 | 1119 | - ppc64-*linux*|powerpc64-*linux*) | ||
975 | 1120 | - LD="${LD-ld} -m elf32ppclinux" | ||
976 | 1121 | - ;; | ||
977 | 1122 | - s390x-*linux*) | ||
978 | 1123 | - LD="${LD-ld} -m elf_s390" | ||
979 | 1124 | - ;; | ||
980 | 1125 | - sparc64-*linux*) | ||
981 | 1126 | - LD="${LD-ld} -m elf32_sparc" | ||
982 | 1127 | - ;; | ||
983 | 1128 | - esac | ||
984 | 1129 | +# _LT_LIBTOOL_TAGS | 1381 | +# _LT_LIBTOOL_TAGS |
985 | 1130 | +# ---------------- | 1382 | +# ---------------- |
986 | 1131 | +# Output comment and list of tags supported by the script | 1383 | +# Output comment and list of tags supported by the script |
987 | @@ -1133,7 +1385,31 @@ | |||
988 | 1133 | +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl | 1385 | +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
989 | 1134 | +available_tags="_LT_TAGS"dnl | 1386 | +available_tags="_LT_TAGS"dnl |
990 | 1135 | +]) | 1387 | +]) |
992 | 1136 | + | 1388 | |
993 | 1389 | -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
994 | 1390 | -s390*-*linux*|sparc*-*linux*) | ||
995 | 1391 | - # Find out which ABI we are using. | ||
996 | 1392 | - echo 'int i;' > conftest.$ac_ext | ||
997 | 1393 | - if AC_TRY_EVAL(ac_compile); then | ||
998 | 1394 | - case `/usr/bin/file conftest.o` in | ||
999 | 1395 | - *32-bit*) | ||
1000 | 1396 | - case $host in | ||
1001 | 1397 | - x86_64-*kfreebsd*-gnu) | ||
1002 | 1398 | - LD="${LD-ld} -m elf_i386_fbsd" | ||
1003 | 1399 | - ;; | ||
1004 | 1400 | - x86_64-*linux*) | ||
1005 | 1401 | - LD="${LD-ld} -m elf_i386" | ||
1006 | 1402 | - ;; | ||
1007 | 1403 | - ppc64-*linux*|powerpc64-*linux*) | ||
1008 | 1404 | - LD="${LD-ld} -m elf32ppclinux" | ||
1009 | 1405 | - ;; | ||
1010 | 1406 | - s390x-*linux*) | ||
1011 | 1407 | - LD="${LD-ld} -m elf_s390" | ||
1012 | 1408 | - ;; | ||
1013 | 1409 | - sparc64-*linux*) | ||
1014 | 1410 | - LD="${LD-ld} -m elf32_sparc" | ||
1015 | 1411 | - ;; | ||
1016 | 1412 | - esac | ||
1017 | 1137 | + | 1413 | + |
1018 | 1138 | +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | 1414 | +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
1019 | 1139 | +# ----------------------------------- | 1415 | +# ----------------------------------- |
1020 | @@ -1467,8 +1743,17 @@ | |||
1021 | 1467 | + exec AS_MESSAGE_FD>/dev/null | 1743 | + exec AS_MESSAGE_FD>/dev/null |
1022 | 1468 | fi | 1744 | fi |
1023 | 1469 | -])# AC_LIBTOOL_LINKER_OPTION | 1745 | -])# AC_LIBTOOL_LINKER_OPTION |
1024 | 1746 | - | ||
1025 | 1470 | +_LTEOF | 1747 | +_LTEOF |
1026 | 1471 | 1748 | ||
1027 | 1749 | -# AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
1028 | 1750 | -# -------------------------- | ||
1029 | 1751 | -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | ||
1030 | 1752 | -[# find the maximum length of command line arguments | ||
1031 | 1753 | -AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
1032 | 1754 | -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
1033 | 1755 | - i=0 | ||
1034 | 1756 | - teststring="ABCD" | ||
1035 | 1472 | +cat >>"$CONFIG_LT" <<_LTEOF | 1757 | +cat >>"$CONFIG_LT" <<_LTEOF |
1036 | 1473 | +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT | 1758 | +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
1037 | 1474 | +_LTEOF | 1759 | +_LTEOF |
1038 | @@ -1495,15 +1780,6 @@ | |||
1039 | 1495 | +fi | 1780 | +fi |
1040 | 1496 | +])# LT_OUTPUT | 1781 | +])# LT_OUTPUT |
1041 | 1497 | 1782 | ||
1042 | 1498 | -# AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
1043 | 1499 | -# -------------------------- | ||
1044 | 1500 | -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | ||
1045 | 1501 | -[# find the maximum length of command line arguments | ||
1046 | 1502 | -AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
1047 | 1503 | -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
1048 | 1504 | - i=0 | ||
1049 | 1505 | - teststring="ABCD" | ||
1050 | 1506 | - | ||
1051 | 1507 | - case $build_os in | 1783 | - case $build_os in |
1052 | 1508 | - msdosdjgpp*) | 1784 | - msdosdjgpp*) |
1053 | 1509 | - # On DJGPP, this test can blow up pretty badly due to problems in libc | 1785 | - # On DJGPP, this test can blow up pretty badly due to problems in libc |
1054 | @@ -1656,15 +1932,22 @@ | |||
1055 | 1656 | - AC_MSG_RESULT(none) | 1932 | - AC_MSG_RESULT(none) |
1056 | 1657 | -fi | 1933 | -fi |
1057 | 1658 | -])# AC_LIBTOOL_SYS_MAX_CMD_LEN | 1934 | -])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
1060 | 1659 | - | 1935 | |
1061 | 1660 | - | 1936 | + _LT_PROG_LTMAIN |
1062 | 1937 | |||
1063 | 1661 | -# _LT_AC_CHECK_DLFCN | 1938 | -# _LT_AC_CHECK_DLFCN |
1064 | 1662 | -# ------------------ | 1939 | -# ------------------ |
1065 | 1663 | -AC_DEFUN([_LT_AC_CHECK_DLFCN], | 1940 | -AC_DEFUN([_LT_AC_CHECK_DLFCN], |
1066 | 1664 | -[AC_CHECK_HEADERS(dlfcn.h)dnl | 1941 | -[AC_CHECK_HEADERS(dlfcn.h)dnl |
1067 | 1665 | -])# _LT_AC_CHECK_DLFCN | 1942 | -])# _LT_AC_CHECK_DLFCN |
1068 | 1943 | + # We use sed instead of cat because bash on DJGPP gets confused if | ||
1069 | 1944 | + # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
1070 | 1945 | + # text mode, it properly converts lines to CR/LF. This bash problem | ||
1071 | 1946 | + # is reportedly fixed, but why not run on old versions too? | ||
1072 | 1947 | + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
1073 | 1948 | + || (rm -f "$cfgfile"; exit 1) | ||
1074 | 1666 | 1949 | ||
1076 | 1667 | + _LT_PROG_LTMAIN | 1950 | + _LT_PROG_XSI_SHELLFNS |
1077 | 1668 | 1951 | ||
1078 | 1669 | -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | 1952 | -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
1079 | 1670 | -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | 1953 | -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
1080 | @@ -1679,58 +1962,19 @@ | |||
1081 | 1679 | - cat > conftest.$ac_ext <<EOF | 1962 | - cat > conftest.$ac_ext <<EOF |
1082 | 1680 | -[#line __oline__ "configure" | 1963 | -[#line __oline__ "configure" |
1083 | 1681 | -#include "confdefs.h" | 1964 | -#include "confdefs.h" |
1089 | 1682 | + # We use sed instead of cat because bash on DJGPP gets confused if | 1965 | + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
1085 | 1683 | + # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
1086 | 1684 | + # text mode, it properly converts lines to CR/LF. This bash problem | ||
1087 | 1685 | + # is reportedly fixed, but why not run on old versions too? | ||
1088 | 1686 | + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
1090 | 1687 | + || (rm -f "$cfgfile"; exit 1) | 1966 | + || (rm -f "$cfgfile"; exit 1) |
1091 | 1688 | 1967 | ||
1092 | 1689 | -#if HAVE_DLFCN_H | 1968 | -#if HAVE_DLFCN_H |
1093 | 1690 | -#include <dlfcn.h> | 1969 | -#include <dlfcn.h> |
1094 | 1691 | -#endif | 1970 | -#endif |
1095 | 1692 | + _LT_PROG_XSI_SHELLFNS | ||
1096 | 1693 | |||
1097 | 1694 | -#include <stdio.h> | ||
1098 | 1695 | + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
1099 | 1696 | + || (rm -f "$cfgfile"; exit 1) | ||
1100 | 1697 | |||
1101 | 1698 | -#ifdef RTLD_GLOBAL | ||
1102 | 1699 | -# define LT_DLGLOBAL RTLD_GLOBAL | ||
1103 | 1700 | -#else | ||
1104 | 1701 | -# ifdef DL_GLOBAL | ||
1105 | 1702 | -# define LT_DLGLOBAL DL_GLOBAL | ||
1106 | 1703 | -# else | ||
1107 | 1704 | -# define LT_DLGLOBAL 0 | ||
1108 | 1705 | -# endif | ||
1109 | 1706 | -#endif | ||
1110 | 1707 | + mv -f "$cfgfile" "$ofile" || | 1971 | + mv -f "$cfgfile" "$ofile" || |
1111 | 1708 | + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 1972 | + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
1112 | 1709 | + chmod +x "$ofile" | 1973 | + chmod +x "$ofile" |
1113 | 1710 | +], | 1974 | +], |
1114 | 1711 | +[cat <<_LT_EOF >> "$ofile" | 1975 | +[cat <<_LT_EOF >> "$ofile" |
1115 | 1712 | 1976 | ||
1137 | 1713 | -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 1977 | -#include <stdio.h> |
1117 | 1714 | - find out it does not work in some platform. */ | ||
1118 | 1715 | -#ifndef LT_DLLAZY_OR_NOW | ||
1119 | 1716 | -# ifdef RTLD_LAZY | ||
1120 | 1717 | -# define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
1121 | 1718 | -# else | ||
1122 | 1719 | -# ifdef DL_LAZY | ||
1123 | 1720 | -# define LT_DLLAZY_OR_NOW DL_LAZY | ||
1124 | 1721 | -# else | ||
1125 | 1722 | -# ifdef RTLD_NOW | ||
1126 | 1723 | -# define LT_DLLAZY_OR_NOW RTLD_NOW | ||
1127 | 1724 | -# else | ||
1128 | 1725 | -# ifdef DL_NOW | ||
1129 | 1726 | -# define LT_DLLAZY_OR_NOW DL_NOW | ||
1130 | 1727 | -# else | ||
1131 | 1728 | -# define LT_DLLAZY_OR_NOW 0 | ||
1132 | 1729 | -# endif | ||
1133 | 1730 | -# endif | ||
1134 | 1731 | -# endif | ||
1135 | 1732 | -# endif | ||
1136 | 1733 | -#endif | ||
1138 | 1734 | +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | 1978 | +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
1139 | 1735 | +dnl in a comment (ie after a #). | 1979 | +dnl in a comment (ie after a #). |
1140 | 1736 | +# ### BEGIN LIBTOOL TAG CONFIG: $1 | 1980 | +# ### BEGIN LIBTOOL TAG CONFIG: $1 |
1141 | @@ -1748,15 +1992,37 @@ | |||
1142 | 1748 | +])dnl /_LT_CONFIG_SAVE_COMMANDS | 1992 | +])dnl /_LT_CONFIG_SAVE_COMMANDS |
1143 | 1749 | +])# _LT_CONFIG | 1993 | +])# _LT_CONFIG |
1144 | 1750 | 1994 | ||
1147 | 1751 | -#ifdef __cplusplus | 1995 | -#ifdef RTLD_GLOBAL |
1148 | 1752 | -extern "C" void exit (int); | 1996 | -# define LT_DLGLOBAL RTLD_GLOBAL |
1149 | 1997 | -#else | ||
1150 | 1998 | -# ifdef DL_GLOBAL | ||
1151 | 1999 | -# define LT_DLGLOBAL DL_GLOBAL | ||
1152 | 2000 | -# else | ||
1153 | 2001 | -# define LT_DLGLOBAL 0 | ||
1154 | 2002 | -# endif | ||
1155 | 1753 | -#endif | 2003 | -#endif |
1156 | 1754 | 2004 | ||
1162 | 1755 | -void fnord() { int i=42;} | 2005 | -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
1163 | 1756 | -int main () | 2006 | - find out it does not work in some platform. */ |
1164 | 1757 | -{ | 2007 | -#ifndef LT_DLLAZY_OR_NOW |
1165 | 1758 | - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 2008 | -# ifdef RTLD_LAZY |
1166 | 1759 | - int status = $lt_dlunknown; | 2009 | -# define LT_DLLAZY_OR_NOW RTLD_LAZY |
1167 | 2010 | -# else | ||
1168 | 2011 | -# ifdef DL_LAZY | ||
1169 | 2012 | -# define LT_DLLAZY_OR_NOW DL_LAZY | ||
1170 | 2013 | -# else | ||
1171 | 2014 | -# ifdef RTLD_NOW | ||
1172 | 2015 | -# define LT_DLLAZY_OR_NOW RTLD_NOW | ||
1173 | 2016 | -# else | ||
1174 | 2017 | -# ifdef DL_NOW | ||
1175 | 2018 | -# define LT_DLLAZY_OR_NOW DL_NOW | ||
1176 | 2019 | -# else | ||
1177 | 2020 | -# define LT_DLLAZY_OR_NOW 0 | ||
1178 | 2021 | -# endif | ||
1179 | 2022 | -# endif | ||
1180 | 2023 | -# endif | ||
1181 | 2024 | -# endif | ||
1182 | 2025 | -#endif | ||
1183 | 1760 | +# LT_SUPPORTED_TAG(TAG) | 2026 | +# LT_SUPPORTED_TAG(TAG) |
1184 | 1761 | +# --------------------- | 2027 | +# --------------------- |
1185 | 1762 | +# Trace this macro to discover what tags are supported by the libtool | 2028 | +# Trace this macro to discover what tags are supported by the libtool |
1186 | @@ -1764,6 +2030,19 @@ | |||
1187 | 1764 | +# autoconf --trace 'LT_SUPPORTED_TAG:$1' | 2030 | +# autoconf --trace 'LT_SUPPORTED_TAG:$1' |
1188 | 1765 | +AC_DEFUN([LT_SUPPORTED_TAG], []) | 2031 | +AC_DEFUN([LT_SUPPORTED_TAG], []) |
1189 | 1766 | 2032 | ||
1190 | 2033 | -#ifdef __cplusplus | ||
1191 | 2034 | -extern "C" void exit (int); | ||
1192 | 2035 | -#endif | ||
1193 | 2036 | |||
1194 | 2037 | -void fnord() { int i=42;} | ||
1195 | 2038 | -int main () | ||
1196 | 2039 | -{ | ||
1197 | 2040 | - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
1198 | 2041 | - int status = $lt_dlunknown; | ||
1199 | 2042 | +# C support is built-in for now | ||
1200 | 2043 | +m4_define([_LT_LANG_C_enabled], []) | ||
1201 | 2044 | +m4_define([_LT_TAGS], []) | ||
1202 | 2045 | |||
1203 | 1767 | - if (self) | 2046 | - if (self) |
1204 | 1768 | - { | 2047 | - { |
1205 | 1769 | - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | 2048 | - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
1206 | @@ -1791,22 +2070,6 @@ | |||
1207 | 1791 | -fi | 2070 | -fi |
1208 | 1792 | -rm -fr conftest* | 2071 | -rm -fr conftest* |
1209 | 1793 | -])# _LT_AC_TRY_DLOPEN_SELF | 2072 | -])# _LT_AC_TRY_DLOPEN_SELF |
1210 | 1794 | +# C support is built-in for now | ||
1211 | 1795 | +m4_define([_LT_LANG_C_enabled], []) | ||
1212 | 1796 | +m4_define([_LT_TAGS], []) | ||
1213 | 1797 | |||
1214 | 1798 | |||
1215 | 1799 | -# AC_LIBTOOL_DLOPEN_SELF | ||
1216 | 1800 | -# ---------------------- | ||
1217 | 1801 | -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | ||
1218 | 1802 | -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
1219 | 1803 | -if test "x$enable_dlopen" != xyes; then | ||
1220 | 1804 | - enable_dlopen=unknown | ||
1221 | 1805 | - enable_dlopen_self=unknown | ||
1222 | 1806 | - enable_dlopen_self_static=unknown | ||
1223 | 1807 | -else | ||
1224 | 1808 | - lt_cv_dlopen=no | ||
1225 | 1809 | - lt_cv_dlopen_libs= | ||
1226 | 1810 | +# LT_LANG(LANG) | 2073 | +# LT_LANG(LANG) |
1227 | 1811 | +# ------------- | 2074 | +# ------------- |
1228 | 1812 | +# Enable libtool support for the given language if not already enabled. | 2075 | +# Enable libtool support for the given language if not already enabled. |
1229 | @@ -1824,17 +2087,18 @@ | |||
1230 | 1824 | + [m4_fatal([$0: unsupported language: "$1"])])])dnl | 2087 | + [m4_fatal([$0: unsupported language: "$1"])])])dnl |
1231 | 1825 | +])# LT_LANG | 2088 | +])# LT_LANG |
1232 | 1826 | 2089 | ||
1233 | 1827 | - case $host_os in | ||
1234 | 1828 | - beos*) | ||
1235 | 1829 | - lt_cv_dlopen="load_add_on" | ||
1236 | 1830 | - lt_cv_dlopen_libs= | ||
1237 | 1831 | - lt_cv_dlopen_self=yes | ||
1238 | 1832 | - ;; | ||
1239 | 1833 | 2090 | ||
1244 | 1834 | - mingw* | pw32*) | 2091 | -# AC_LIBTOOL_DLOPEN_SELF |
1245 | 1835 | - lt_cv_dlopen="LoadLibrary" | 2092 | -# ---------------------- |
1246 | 1836 | - lt_cv_dlopen_libs= | 2093 | -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
1247 | 1837 | - ;; | 2094 | -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
1248 | 2095 | -if test "x$enable_dlopen" != xyes; then | ||
1249 | 2096 | - enable_dlopen=unknown | ||
1250 | 2097 | - enable_dlopen_self=unknown | ||
1251 | 2098 | - enable_dlopen_self_static=unknown | ||
1252 | 2099 | -else | ||
1253 | 2100 | - lt_cv_dlopen=no | ||
1254 | 2101 | - lt_cv_dlopen_libs= | ||
1255 | 1838 | +# _LT_LANG(LANGNAME) | 2102 | +# _LT_LANG(LANGNAME) |
1256 | 1839 | +# ------------------ | 2103 | +# ------------------ |
1257 | 1840 | +m4_defun([_LT_LANG], | 2104 | +m4_defun([_LT_LANG], |
1258 | @@ -1845,19 +2109,16 @@ | |||
1259 | 1845 | + _LT_LANG_$1_CONFIG($1)])dnl | 2109 | + _LT_LANG_$1_CONFIG($1)])dnl |
1260 | 1846 | +])# _LT_LANG | 2110 | +])# _LT_LANG |
1261 | 1847 | 2111 | ||
1272 | 1848 | - cygwin*) | 2112 | - case $host_os in |
1273 | 1849 | - lt_cv_dlopen="dlopen" | 2113 | - beos*) |
1274 | 1850 | - lt_cv_dlopen_libs= | 2114 | - lt_cv_dlopen="load_add_on" |
1265 | 1851 | - ;; | ||
1266 | 1852 | |||
1267 | 1853 | - darwin*) | ||
1268 | 1854 | - # if libdl is installed we need to link against it | ||
1269 | 1855 | - AC_CHECK_LIB([dl], [dlopen], | ||
1270 | 1856 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
1271 | 1857 | - lt_cv_dlopen="dyld" | ||
1275 | 1858 | - lt_cv_dlopen_libs= | 2115 | - lt_cv_dlopen_libs= |
1276 | 1859 | - lt_cv_dlopen_self=yes | 2116 | - lt_cv_dlopen_self=yes |
1278 | 1860 | - ]) | 2117 | - ;; |
1279 | 2118 | |||
1280 | 2119 | - mingw* | pw32*) | ||
1281 | 2120 | - lt_cv_dlopen="LoadLibrary" | ||
1282 | 2121 | - lt_cv_dlopen_libs= | ||
1283 | 1861 | - ;; | 2122 | - ;; |
1284 | 1862 | +# _LT_LANG_DEFAULT_CONFIG | 2123 | +# _LT_LANG_DEFAULT_CONFIG |
1285 | 1863 | +# ----------------------- | 2124 | +# ----------------------- |
1286 | @@ -1905,6 +2166,25 @@ | |||
1287 | 1905 | +dnl AC_DEFUN([AC_LIBTOOL_FC], []) | 2166 | +dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
1288 | 1906 | +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | 2167 | +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
1289 | 1907 | 2168 | ||
1290 | 2169 | - cygwin*) | ||
1291 | 2170 | - lt_cv_dlopen="dlopen" | ||
1292 | 2171 | - lt_cv_dlopen_libs= | ||
1293 | 2172 | - ;; | ||
1294 | 2173 | |||
1295 | 2174 | - darwin*) | ||
1296 | 2175 | - # if libdl is installed we need to link against it | ||
1297 | 2176 | - AC_CHECK_LIB([dl], [dlopen], | ||
1298 | 2177 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
1299 | 2178 | - lt_cv_dlopen="dyld" | ||
1300 | 2179 | - lt_cv_dlopen_libs= | ||
1301 | 2180 | - lt_cv_dlopen_self=yes | ||
1302 | 2181 | - ]) | ||
1303 | 2182 | - ;; | ||
1304 | 2183 | +# _LT_TAG_COMPILER | ||
1305 | 2184 | +# ---------------- | ||
1306 | 2185 | +m4_defun([_LT_TAG_COMPILER], | ||
1307 | 2186 | +[AC_REQUIRE([AC_PROG_CC])dnl | ||
1308 | 2187 | |||
1309 | 1908 | - *) | 2188 | - *) |
1310 | 1909 | - AC_CHECK_FUNC([shl_load], | 2189 | - AC_CHECK_FUNC([shl_load], |
1311 | 1910 | - [lt_cv_dlopen="shl_load"], | 2190 | - [lt_cv_dlopen="shl_load"], |
1312 | @@ -1925,35 +2205,34 @@ | |||
1313 | 1925 | - ]) | 2205 | - ]) |
1314 | 1926 | - ;; | 2206 | - ;; |
1315 | 1927 | - esac | 2207 | - esac |
1316 | 1928 | |||
1317 | 1929 | - if test "x$lt_cv_dlopen" != xno; then | ||
1318 | 1930 | - enable_dlopen=yes | ||
1319 | 1931 | - else | ||
1320 | 1932 | - enable_dlopen=no | ||
1321 | 1933 | - fi | ||
1322 | 1934 | +# _LT_TAG_COMPILER | ||
1323 | 1935 | +# ---------------- | ||
1324 | 1936 | +m4_defun([_LT_TAG_COMPILER], | ||
1325 | 1937 | +[AC_REQUIRE([AC_PROG_CC])dnl | ||
1326 | 1938 | |||
1327 | 1939 | - case $lt_cv_dlopen in | ||
1328 | 1940 | - dlopen) | ||
1329 | 1941 | - save_CPPFLAGS="$CPPFLAGS" | ||
1330 | 1942 | - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
1331 | 1943 | +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | 2208 | +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
1332 | 1944 | +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | 2209 | +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
1333 | 1945 | +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | 2210 | +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
1334 | 1946 | +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl | 2211 | +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl |
1335 | 1947 | 2212 | ||
1336 | 2213 | - if test "x$lt_cv_dlopen" != xno; then | ||
1337 | 2214 | - enable_dlopen=yes | ||
1338 | 2215 | - else | ||
1339 | 2216 | - enable_dlopen=no | ||
1340 | 2217 | - fi | ||
1341 | 2218 | +# If no C compiler was specified, use CC. | ||
1342 | 2219 | +LTCC=${LTCC-"$CC"} | ||
1343 | 2220 | |||
1344 | 2221 | - case $lt_cv_dlopen in | ||
1345 | 2222 | - dlopen) | ||
1346 | 2223 | - save_CPPFLAGS="$CPPFLAGS" | ||
1347 | 2224 | - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
1348 | 2225 | +# If no C compiler flags were specified, use CFLAGS. | ||
1349 | 2226 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
1350 | 2227 | |||
1351 | 1948 | - save_LDFLAGS="$LDFLAGS" | 2228 | - save_LDFLAGS="$LDFLAGS" |
1352 | 1949 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 2229 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
1355 | 1950 | +# If no C compiler was specified, use CC. | 2230 | +# Allow CC to be a program name with arguments. |
1356 | 1951 | +LTCC=${LTCC-"$CC"} | 2231 | +compiler=$CC |
1357 | 2232 | +])# _LT_TAG_COMPILER | ||
1358 | 1952 | 2233 | ||
1359 | 1953 | - save_LIBS="$LIBS" | 2234 | - save_LIBS="$LIBS" |
1360 | 1954 | - LIBS="$lt_cv_dlopen_libs $LIBS" | 2235 | - LIBS="$lt_cv_dlopen_libs $LIBS" |
1361 | 1955 | +# If no C compiler flags were specified, use CFLAGS. | ||
1362 | 1956 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
1363 | 1957 | 2236 | ||
1364 | 1958 | - AC_CACHE_CHECK([whether a program can dlopen itself], | 2237 | - AC_CACHE_CHECK([whether a program can dlopen itself], |
1365 | 1959 | - lt_cv_dlopen_self, [dnl | 2238 | - lt_cv_dlopen_self, [dnl |
1366 | @@ -1961,25 +2240,6 @@ | |||
1367 | 1961 | - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | 2240 | - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
1368 | 1962 | - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | 2241 | - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
1369 | 1963 | - ]) | 2242 | - ]) |
1370 | 1964 | +# Allow CC to be a program name with arguments. | ||
1371 | 1965 | +compiler=$CC | ||
1372 | 1966 | +])# _LT_TAG_COMPILER | ||
1373 | 1967 | |||
1374 | 1968 | - if test "x$lt_cv_dlopen_self" = xyes; then | ||
1375 | 1969 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
1376 | 1970 | - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | ||
1377 | 1971 | - lt_cv_dlopen_self_static, [dnl | ||
1378 | 1972 | - _LT_AC_TRY_DLOPEN_SELF( | ||
1379 | 1973 | - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
1380 | 1974 | - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
1381 | 1975 | - ]) | ||
1382 | 1976 | - fi | ||
1383 | 1977 | |||
1384 | 1978 | - CPPFLAGS="$save_CPPFLAGS" | ||
1385 | 1979 | - LDFLAGS="$save_LDFLAGS" | ||
1386 | 1980 | - LIBS="$save_LIBS" | ||
1387 | 1981 | - ;; | ||
1388 | 1982 | - esac | ||
1389 | 1983 | +# _LT_COMPILER_BOILERPLATE | 2243 | +# _LT_COMPILER_BOILERPLATE |
1390 | 1984 | +# ------------------------ | 2244 | +# ------------------------ |
1391 | 1985 | +# Check for compiler boilerplate output or warnings with | 2245 | +# Check for compiler boilerplate output or warnings with |
1392 | @@ -1993,17 +2253,21 @@ | |||
1393 | 1993 | +$RM conftest* | 2253 | +$RM conftest* |
1394 | 1994 | +])# _LT_COMPILER_BOILERPLATE | 2254 | +])# _LT_COMPILER_BOILERPLATE |
1395 | 1995 | 2255 | ||
1400 | 1996 | - case $lt_cv_dlopen_self in | 2256 | - if test "x$lt_cv_dlopen_self" = xyes; then |
1401 | 1997 | - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 2257 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
1402 | 1998 | - *) enable_dlopen_self=unknown ;; | 2258 | - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
1403 | 1999 | - esac | 2259 | - lt_cv_dlopen_self_static, [dnl |
1404 | 2260 | - _LT_AC_TRY_DLOPEN_SELF( | ||
1405 | 2261 | - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
1406 | 2262 | - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
1407 | 2263 | - ]) | ||
1408 | 2264 | - fi | ||
1409 | 2000 | 2265 | ||
1413 | 2001 | - case $lt_cv_dlopen_self_static in | 2266 | - CPPFLAGS="$save_CPPFLAGS" |
1414 | 2002 | - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 2267 | - LDFLAGS="$save_LDFLAGS" |
1415 | 2003 | - *) enable_dlopen_self_static=unknown ;; | 2268 | - LIBS="$save_LIBS" |
1416 | 2269 | - ;; | ||
1417 | 2004 | - esac | 2270 | - esac |
1418 | 2005 | -fi | ||
1419 | 2006 | -])# AC_LIBTOOL_DLOPEN_SELF | ||
1420 | 2007 | +# _LT_LINKER_BOILERPLATE | 2271 | +# _LT_LINKER_BOILERPLATE |
1421 | 2008 | +# ---------------------- | 2272 | +# ---------------------- |
1422 | 2009 | +# Check for linker boilerplate output or warnings with | 2273 | +# Check for linker boilerplate output or warnings with |
1423 | @@ -2017,6 +2281,17 @@ | |||
1424 | 2017 | +$RM -r conftest* | 2281 | +$RM -r conftest* |
1425 | 2018 | +])# _LT_LINKER_BOILERPLATE | 2282 | +])# _LT_LINKER_BOILERPLATE |
1426 | 2019 | 2283 | ||
1427 | 2284 | - case $lt_cv_dlopen_self in | ||
1428 | 2285 | - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
1429 | 2286 | - *) enable_dlopen_self=unknown ;; | ||
1430 | 2287 | - esac | ||
1431 | 2288 | - | ||
1432 | 2289 | - case $lt_cv_dlopen_self_static in | ||
1433 | 2290 | - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
1434 | 2291 | - *) enable_dlopen_self_static=unknown ;; | ||
1435 | 2292 | - esac | ||
1436 | 2293 | -fi | ||
1437 | 2294 | -])# AC_LIBTOOL_DLOPEN_SELF | ||
1438 | 2020 | +# _LT_REQUIRED_DARWIN_CHECKS | 2295 | +# _LT_REQUIRED_DARWIN_CHECKS |
1439 | 2021 | +# ------------------------- | 2296 | +# ------------------------- |
1440 | 2022 | +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | 2297 | +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
1441 | @@ -2038,20 +2313,6 @@ | |||
1442 | 2038 | + _LT_DECL([], [OTOOL64], [1], | 2313 | + _LT_DECL([], [OTOOL64], [1], |
1443 | 2039 | + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) | 2314 | + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
1444 | 2040 | 2315 | ||
1445 | 2041 | -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | ||
1446 | 2042 | -# --------------------------------- | ||
1447 | 2043 | -# Check to see if options -c and -o are simultaneously supported by compiler | ||
1448 | 2044 | -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | ||
1449 | 2045 | -[AC_REQUIRE([LT_AC_PROG_SED])dnl | ||
1450 | 2046 | -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
1451 | 2047 | -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
1452 | 2048 | - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
1453 | 2049 | - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
1454 | 2050 | - $rm -r conftest 2>/dev/null | ||
1455 | 2051 | - mkdir conftest | ||
1456 | 2052 | - cd conftest | ||
1457 | 2053 | - mkdir out | ||
1458 | 2054 | - echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
1459 | 2055 | + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], | 2316 | + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
1460 | 2056 | + [lt_cv_apple_cc_single_mod=no | 2317 | + [lt_cv_apple_cc_single_mod=no |
1461 | 2057 | + if test -z "${LT_MULTI_MODULE}"; then | 2318 | + if test -z "${LT_MULTI_MODULE}"; then |
1462 | @@ -2121,6 +2382,21 @@ | |||
1463 | 2121 | + esac | 2382 | + esac |
1464 | 2122 | +]) | 2383 | +]) |
1465 | 2123 | 2384 | ||
1466 | 2385 | -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | ||
1467 | 2386 | -# --------------------------------- | ||
1468 | 2387 | -# Check to see if options -c and -o are simultaneously supported by compiler | ||
1469 | 2388 | -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | ||
1470 | 2389 | -[AC_REQUIRE([LT_AC_PROG_SED])dnl | ||
1471 | 2390 | -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
1472 | 2391 | -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
1473 | 2392 | - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
1474 | 2393 | - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
1475 | 2394 | - $rm -r conftest 2>/dev/null | ||
1476 | 2395 | - mkdir conftest | ||
1477 | 2396 | - cd conftest | ||
1478 | 2397 | - mkdir out | ||
1479 | 2398 | - echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
1480 | 2399 | |||
1481 | 2124 | - lt_compiler_flag="-o out/conftest2.$ac_objext" | 2400 | - lt_compiler_flag="-o out/conftest2.$ac_objext" |
1482 | 2125 | - # Insert the option either (1) after the last *FLAGS variable, or | 2401 | - # Insert the option either (1) after the last *FLAGS variable, or |
1483 | 2126 | - # (2) before a word containing "conftest.", or (3) at the end. | 2402 | - # (2) before a word containing "conftest.", or (3) at the end. |
1484 | @@ -2154,7 +2430,6 @@ | |||
1485 | 2154 | - cd .. | 2430 | - cd .. |
1486 | 2155 | - rmdir conftest | 2431 | - rmdir conftest |
1487 | 2156 | - $rm conftest* | 2432 | - $rm conftest* |
1488 | 2157 | + | ||
1489 | 2158 | +# _LT_DARWIN_LINKER_FEATURES | 2433 | +# _LT_DARWIN_LINKER_FEATURES |
1490 | 2159 | +# -------------------------- | 2434 | +# -------------------------- |
1491 | 2160 | +# Checks for linker and compiler features on darwin | 2435 | +# Checks for linker and compiler features on darwin |
1492 | @@ -2291,11 +2566,8 @@ | |||
1493 | 2291 | - lt_cv_objdir=_libs | 2566 | - lt_cv_objdir=_libs |
1494 | 2292 | + # Restart under the correct shell. | 2567 | + # Restart under the correct shell. |
1495 | 2293 | + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | 2568 | + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
1501 | 2294 | fi | 2569 | +fi |
1502 | 2295 | -rmdir .libs 2>/dev/null]) | 2570 | + |
1498 | 2296 | -objdir=$lt_cv_objdir | ||
1499 | 2297 | -])# AC_LIBTOOL_OBJDIR | ||
1500 | 2298 | |||
1503 | 2299 | +if test "X[$]1" = X--fallback-echo; then | 2571 | +if test "X[$]1" = X--fallback-echo; then |
1504 | 2300 | + # used as fallback echo | 2572 | + # used as fallback echo |
1505 | 2301 | + shift | 2573 | + shift |
1506 | @@ -2303,7 +2575,14 @@ | |||
1507 | 2303 | +[$]* | 2575 | +[$]* |
1508 | 2304 | +_LT_EOF | 2576 | +_LT_EOF |
1509 | 2305 | + exit 0 | 2577 | + exit 0 |
1511 | 2306 | +fi | 2578 | fi |
1512 | 2579 | -rmdir .libs 2>/dev/null]) | ||
1513 | 2580 | -objdir=$lt_cv_objdir | ||
1514 | 2581 | -])# AC_LIBTOOL_OBJDIR | ||
1515 | 2582 | |||
1516 | 2583 | +# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
1517 | 2584 | +# if CDPATH is set. | ||
1518 | 2585 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
1519 | 2307 | 2586 | ||
1520 | 2308 | -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) | 2587 | -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
1521 | 2309 | -# ---------------------------------------------- | 2588 | -# ---------------------------------------------- |
1522 | @@ -2314,9 +2593,18 @@ | |||
1523 | 2314 | -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | 2593 | -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
1524 | 2315 | - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | 2594 | - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
1525 | 2316 | - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | 2595 | - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
1529 | 2317 | +# The HP-UX ksh and POSIX shell print the target directory to stdout | 2596 | +if test -z "$lt_ECHO"; then |
1530 | 2318 | +# if CDPATH is set. | 2597 | + if test "X${echo_test_string+set}" != Xset; then |
1531 | 2319 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 2598 | + # find a string as large as possible, as long as the shell can cope with it |
1532 | 2599 | + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | ||
1533 | 2600 | + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
1534 | 2601 | + if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
1535 | 2602 | + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
1536 | 2603 | + then | ||
1537 | 2604 | + break | ||
1538 | 2605 | + fi | ||
1539 | 2606 | + done | ||
1540 | 2607 | + fi | ||
1541 | 2320 | 2608 | ||
1542 | 2321 | - # We can hardcode non-existant directories. | 2609 | - # We can hardcode non-existant directories. |
1543 | 2322 | - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | 2610 | - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
1544 | @@ -2327,19 +2615,6 @@ | |||
1545 | 2327 | - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then | 2615 | - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
1546 | 2328 | - # Linking always hardcodes the temporary library directory. | 2616 | - # Linking always hardcodes the temporary library directory. |
1547 | 2329 | - _LT_AC_TAGVAR(hardcode_action, $1)=relink | 2617 | - _LT_AC_TAGVAR(hardcode_action, $1)=relink |
1548 | 2330 | +if test -z "$lt_ECHO"; then | ||
1549 | 2331 | + if test "X${echo_test_string+set}" != Xset; then | ||
1550 | 2332 | + # find a string as large as possible, as long as the shell can cope with it | ||
1551 | 2333 | + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | ||
1552 | 2334 | + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
1553 | 2335 | + if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
1554 | 2336 | + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
1555 | 2337 | + then | ||
1556 | 2338 | + break | ||
1557 | 2339 | + fi | ||
1558 | 2340 | + done | ||
1559 | 2341 | + fi | ||
1560 | 2342 | + | ||
1561 | 2343 | + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | 2618 | + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
1562 | 2344 | + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | 2619 | + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
1563 | 2345 | + test "X$echo_testing_string" = "X$echo_test_string"; then | 2620 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1564 | @@ -3677,10 +3952,15 @@ | |||
1565 | 3677 | - if test -z "$LTCFLAGS"; then | 3952 | - if test -z "$LTCFLAGS"; then |
1566 | 3678 | - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | 3953 | - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
1567 | 3679 | - fi | 3954 | - fi |
1569 | 3680 | - | 3955 | |
1570 | 3681 | - # Extract list of available tagged configurations in $ofile. | 3956 | - # Extract list of available tagged configurations in $ofile. |
1571 | 3682 | - # Note that this assumes the entire list is on one line. | 3957 | - # Note that this assumes the entire list is on one line. |
1572 | 3683 | - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 3958 | - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
1573 | 3959 | + CPPFLAGS="$save_CPPFLAGS" | ||
1574 | 3960 | + LDFLAGS="$save_LDFLAGS" | ||
1575 | 3961 | + LIBS="$save_LIBS" | ||
1576 | 3962 | + ;; | ||
1577 | 3963 | + esac | ||
1578 | 3684 | 3964 | ||
1579 | 3685 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 3965 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
1580 | 3686 | - for tagname in $tagnames; do | 3966 | - for tagname in $tagnames; do |
1581 | @@ -3691,35 +3971,15 @@ | |||
1582 | 3691 | - *) AC_MSG_ERROR([invalid tag name: $tagname]) | 3971 | - *) AC_MSG_ERROR([invalid tag name: $tagname]) |
1583 | 3692 | - ;; | 3972 | - ;; |
1584 | 3693 | - esac | 3973 | - esac |
1589 | 3694 | + CPPFLAGS="$save_CPPFLAGS" | 3974 | + case $lt_cv_dlopen_self in |
1590 | 3695 | + LDFLAGS="$save_LDFLAGS" | 3975 | + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
1591 | 3696 | + LIBS="$save_LIBS" | 3976 | + *) enable_dlopen_self=unknown ;; |
1588 | 3697 | + ;; | ||
1592 | 3698 | + esac | 3977 | + esac |
1593 | 3699 | 3978 | ||
1594 | 3700 | - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 3979 | - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
1595 | 3701 | - then | 3980 | - then |
1596 | 3702 | - AC_MSG_ERROR([tag name \"$tagname\" already exists]) | 3981 | - AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
1597 | 3703 | - fi | 3982 | - fi |
1598 | 3704 | + case $lt_cv_dlopen_self in | ||
1599 | 3705 | + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
1600 | 3706 | + *) enable_dlopen_self=unknown ;; | ||
1601 | 3707 | + esac | ||
1602 | 3708 | |||
1603 | 3709 | - # Update the list of available tags. | ||
1604 | 3710 | - if test -n "$tagname"; then | ||
1605 | 3711 | - echo appending configuration tag \"$tagname\" to $ofile | ||
1606 | 3712 | - | ||
1607 | 3713 | - case $tagname in | ||
1608 | 3714 | - CXX) | ||
1609 | 3715 | - if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
1610 | 3716 | - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
1611 | 3717 | - (test "X$CXX" != "Xg++"))) ; then | ||
1612 | 3718 | - AC_LIBTOOL_LANG_CXX_CONFIG | ||
1613 | 3719 | - else | ||
1614 | 3720 | - tagname="" | ||
1615 | 3721 | - fi | ||
1616 | 3722 | - ;; | ||
1617 | 3723 | + case $lt_cv_dlopen_self_static in | 3983 | + case $lt_cv_dlopen_self_static in |
1618 | 3724 | + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 3984 | + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
1619 | 3725 | + *) enable_dlopen_self_static=unknown ;; | 3985 | + *) enable_dlopen_self_static=unknown ;; |
1620 | @@ -3738,6 +3998,21 @@ | |||
1621 | 3738 | +dnl aclocal-1.4 backwards compatibility: | 3998 | +dnl aclocal-1.4 backwards compatibility: |
1622 | 3739 | +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) | 3999 | +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) |
1623 | 3740 | 4000 | ||
1624 | 4001 | - # Update the list of available tags. | ||
1625 | 4002 | - if test -n "$tagname"; then | ||
1626 | 4003 | - echo appending configuration tag \"$tagname\" to $ofile | ||
1627 | 4004 | - | ||
1628 | 4005 | - case $tagname in | ||
1629 | 4006 | - CXX) | ||
1630 | 4007 | - if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
1631 | 4008 | - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
1632 | 4009 | - (test "X$CXX" != "Xg++"))) ; then | ||
1633 | 4010 | - AC_LIBTOOL_LANG_CXX_CONFIG | ||
1634 | 4011 | - else | ||
1635 | 4012 | - tagname="" | ||
1636 | 4013 | - fi | ||
1637 | 4014 | - ;; | ||
1638 | 4015 | |||
1639 | 3741 | - F77) | 4016 | - F77) |
1640 | 3742 | - if test -n "$F77" && test "X$F77" != "Xno"; then | 4017 | - if test -n "$F77" && test "X$F77" != "Xno"; then |
1641 | 3743 | - AC_LIBTOOL_LANG_F77_CONFIG | 4018 | - AC_LIBTOOL_LANG_F77_CONFIG |
1642 | @@ -3745,14 +4020,6 @@ | |||
1643 | 3745 | - tagname="" | 4020 | - tagname="" |
1644 | 3746 | - fi | 4021 | - fi |
1645 | 3747 | - ;; | 4022 | - ;; |
1646 | 3748 | |||
1647 | 3749 | - GCJ) | ||
1648 | 3750 | - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | ||
1649 | 3751 | - AC_LIBTOOL_LANG_GCJ_CONFIG | ||
1650 | 3752 | - else | ||
1651 | 3753 | - tagname="" | ||
1652 | 3754 | - fi | ||
1653 | 3755 | - ;; | ||
1654 | 3756 | +# _LT_COMPILER_C_O([TAGNAME]) | 4023 | +# _LT_COMPILER_C_O([TAGNAME]) |
1655 | 3757 | +# --------------------------- | 4024 | +# --------------------------- |
1656 | 3758 | +# Check to see if options -c and -o are simultaneously supported by compiler. | 4025 | +# Check to see if options -c and -o are simultaneously supported by compiler. |
1657 | @@ -3770,8 +4037,12 @@ | |||
1658 | 3770 | + mkdir out | 4037 | + mkdir out |
1659 | 3771 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 4038 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
1660 | 3772 | 4039 | ||
1663 | 3773 | - RC) | 4040 | - GCJ) |
1664 | 3774 | - AC_LIBTOOL_LANG_RC_CONFIG | 4041 | - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
1665 | 4042 | - AC_LIBTOOL_LANG_GCJ_CONFIG | ||
1666 | 4043 | - else | ||
1667 | 4044 | - tagname="" | ||
1668 | 4045 | - fi | ||
1669 | 3775 | - ;; | 4046 | - ;; |
1670 | 3776 | + lt_compiler_flag="-o out/conftest2.$ac_objext" | 4047 | + lt_compiler_flag="-o out/conftest2.$ac_objext" |
1671 | 3777 | + # Insert the option either (1) after the last *FLAGS variable, or | 4048 | + # Insert the option either (1) after the last *FLAGS variable, or |
1672 | @@ -3811,18 +4082,14 @@ | |||
1673 | 3811 | + [Does compiler simultaneously support -c and -o options?]) | 4082 | + [Does compiler simultaneously support -c and -o options?]) |
1674 | 3812 | +])# _LT_COMPILER_C_O | 4083 | +])# _LT_COMPILER_C_O |
1675 | 3813 | 4084 | ||
1676 | 4085 | - RC) | ||
1677 | 4086 | - AC_LIBTOOL_LANG_RC_CONFIG | ||
1678 | 4087 | - ;; | ||
1679 | 4088 | |||
1680 | 3814 | - *) | 4089 | - *) |
1681 | 3815 | - AC_MSG_ERROR([Unsupported tag name: $tagname]) | 4090 | - AC_MSG_ERROR([Unsupported tag name: $tagname]) |
1682 | 3816 | - ;; | 4091 | - ;; |
1683 | 3817 | - esac | 4092 | - esac |
1684 | 3818 | |||
1685 | 3819 | - # Append the new tag name to the list of available tags. | ||
1686 | 3820 | - if test -n "$tagname" ; then | ||
1687 | 3821 | - available_tags="$available_tags $tagname" | ||
1688 | 3822 | - fi | ||
1689 | 3823 | - fi | ||
1690 | 3824 | - done | ||
1691 | 3825 | - IFS="$lt_save_ifs" | ||
1692 | 3826 | +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) | 4093 | +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) |
1693 | 3827 | +# ---------------------------------- | 4094 | +# ---------------------------------- |
1694 | 3828 | +# Check to see if we can do hard links to lock some files if needed | 4095 | +# Check to see if we can do hard links to lock some files if needed |
1695 | @@ -3831,13 +4098,13 @@ | |||
1696 | 3831 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 4098 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1697 | 3832 | +_LT_COMPILER_C_O([$1]) | 4099 | +_LT_COMPILER_C_O([$1]) |
1698 | 3833 | 4100 | ||
1706 | 3834 | - # Now substitute the updated list of available tags. | 4101 | - # Append the new tag name to the list of available tags. |
1707 | 3835 | - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 4102 | - if test -n "$tagname" ; then |
1708 | 3836 | - mv "${ofile}T" "$ofile" | 4103 | - available_tags="$available_tags $tagname" |
1709 | 3837 | - chmod +x "$ofile" | 4104 | - fi |
1710 | 3838 | - else | 4105 | - fi |
1711 | 3839 | - rm -f "${ofile}T" | 4106 | - done |
1712 | 3840 | - AC_MSG_ERROR([unable to update list of available tagged configurations.]) | 4107 | - IFS="$lt_save_ifs" |
1713 | 3841 | +hard_links="nottested" | 4108 | +hard_links="nottested" |
1714 | 3842 | +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | 4109 | +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
1715 | 3843 | + # do not overwrite the value of need_locks provided by the user | 4110 | + # do not overwrite the value of need_locks provided by the user |
1716 | @@ -3852,21 +4119,14 @@ | |||
1717 | 3852 | + if test "$hard_links" = no; then | 4119 | + if test "$hard_links" = no; then |
1718 | 3853 | + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | 4120 | + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
1719 | 3854 | + need_locks=warn | 4121 | + need_locks=warn |
1721 | 3855 | fi | 4122 | + fi |
1722 | 3856 | +else | 4123 | +else |
1723 | 3857 | + need_locks=no | 4124 | + need_locks=no |
1726 | 3858 | fi | 4125 | +fi |
1725 | 3859 | -])# _LT_AC_TAGCONFIG | ||
1727 | 3860 | +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) | 4126 | +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
1728 | 3861 | +])# _LT_COMPILER_FILE_LOCKS | 4127 | +])# _LT_COMPILER_FILE_LOCKS |
1737 | 3862 | 4128 | + | |
1738 | 3863 | 4129 | + | |
1731 | 3864 | -# AC_LIBTOOL_DLOPEN | ||
1732 | 3865 | -# ----------------- | ||
1733 | 3866 | -# enable checks for dlopen support | ||
1734 | 3867 | -AC_DEFUN([AC_LIBTOOL_DLOPEN], | ||
1735 | 3868 | - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) | ||
1736 | 3869 | -])# AC_LIBTOOL_DLOPEN | ||
1739 | 3870 | +# _LT_CHECK_OBJDIR | 4130 | +# _LT_CHECK_OBJDIR |
1740 | 3871 | +# ---------------- | 4131 | +# ---------------- |
1741 | 3872 | +m4_defun([_LT_CHECK_OBJDIR], | 4132 | +m4_defun([_LT_CHECK_OBJDIR], |
1742 | @@ -3887,14 +4147,8 @@ | |||
1743 | 3887 | +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", | 4147 | +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", |
1744 | 3888 | + [Define to the sub-directory in which libtool stores uninstalled libraries.]) | 4148 | + [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
1745 | 3889 | +])# _LT_CHECK_OBJDIR | 4149 | +])# _LT_CHECK_OBJDIR |
1754 | 3890 | 4150 | + | |
1755 | 3891 | 4151 | + | |
1748 | 3892 | -# AC_LIBTOOL_WIN32_DLL | ||
1749 | 3893 | -# -------------------- | ||
1750 | 3894 | -# declare package support for building win32 DLLs | ||
1751 | 3895 | -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | ||
1752 | 3896 | -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | ||
1753 | 3897 | -])# AC_LIBTOOL_WIN32_DLL | ||
1756 | 3898 | +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | 4152 | +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) |
1757 | 3899 | +# -------------------------------------- | 4153 | +# -------------------------------------- |
1758 | 3900 | +# Check hardcoding attributes. | 4154 | +# Check hardcoding attributes. |
1759 | @@ -3905,6 +4159,10 @@ | |||
1760 | 3905 | + test -n "$_LT_TAGVAR(runpath_var, $1)" || | 4159 | + test -n "$_LT_TAGVAR(runpath_var, $1)" || |
1761 | 3906 | + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | 4160 | + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
1762 | 3907 | 4161 | ||
1763 | 4162 | - # Now substitute the updated list of available tags. | ||
1764 | 4163 | - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | ||
1765 | 4164 | - mv "${ofile}T" "$ofile" | ||
1766 | 4165 | - chmod +x "$ofile" | ||
1767 | 3908 | + # We can hardcode non-existent directories. | 4166 | + # We can hardcode non-existent directories. |
1768 | 3909 | + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && | 4167 | + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && |
1769 | 3910 | + # If the only mechanism to avoid hardcoding is shlibpath_var, we | 4168 | + # If the only mechanism to avoid hardcoding is shlibpath_var, we |
1770 | @@ -3914,45 +4172,20 @@ | |||
1771 | 3914 | + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then | 4172 | + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then |
1772 | 3915 | + # Linking always hardcodes the temporary library directory. | 4173 | + # Linking always hardcodes the temporary library directory. |
1773 | 3916 | + _LT_TAGVAR(hardcode_action, $1)=relink | 4174 | + _LT_TAGVAR(hardcode_action, $1)=relink |
1775 | 3917 | + else | 4175 | else |
1776 | 4176 | - rm -f "${ofile}T" | ||
1777 | 4177 | - AC_MSG_ERROR([unable to update list of available tagged configurations.]) | ||
1778 | 3918 | + # We can link without hardcoding, and we can hardcode nonexisting dirs. | 4178 | + # We can link without hardcoding, and we can hardcode nonexisting dirs. |
1779 | 3919 | + _LT_TAGVAR(hardcode_action, $1)=immediate | 4179 | + _LT_TAGVAR(hardcode_action, $1)=immediate |
1781 | 3920 | + fi | 4180 | fi |
1782 | 3921 | +else | 4181 | +else |
1783 | 3922 | + # We cannot hardcode anything, or else we can only hardcode existing | 4182 | + # We cannot hardcode anything, or else we can only hardcode existing |
1784 | 3923 | + # directories. | 4183 | + # directories. |
1785 | 3924 | + _LT_TAGVAR(hardcode_action, $1)=unsupported | 4184 | + _LT_TAGVAR(hardcode_action, $1)=unsupported |
1787 | 3925 | +fi | 4185 | fi |
1788 | 4186 | -])# _LT_AC_TAGCONFIG | ||
1789 | 3926 | +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) | 4187 | +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
1790 | 3927 | 4188 | ||
1791 | 3928 | -# AC_ENABLE_SHARED([DEFAULT]) | ||
1792 | 3929 | -# --------------------------- | ||
1793 | 3930 | -# implement the --enable-shared flag | ||
1794 | 3931 | -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
1795 | 3932 | -AC_DEFUN([AC_ENABLE_SHARED], | ||
1796 | 3933 | -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | ||
1797 | 3934 | -AC_ARG_ENABLE([shared], | ||
1798 | 3935 | - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | ||
1799 | 3936 | - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], | ||
1800 | 3937 | - [p=${PACKAGE-default} | ||
1801 | 3938 | - case $enableval in | ||
1802 | 3939 | - yes) enable_shared=yes ;; | ||
1803 | 3940 | - no) enable_shared=no ;; | ||
1804 | 3941 | - *) | ||
1805 | 3942 | - enable_shared=no | ||
1806 | 3943 | - # Look at the argument we got. We use all the common list separators. | ||
1807 | 3944 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
1808 | 3945 | - for pkg in $enableval; do | ||
1809 | 3946 | - IFS="$lt_save_ifs" | ||
1810 | 3947 | - if test "X$pkg" = "X$p"; then | ||
1811 | 3948 | - enable_shared=yes | ||
1812 | 3949 | - fi | ||
1813 | 3950 | - done | ||
1814 | 3951 | - IFS="$lt_save_ifs" | ||
1815 | 3952 | - ;; | ||
1816 | 3953 | - esac], | ||
1817 | 3954 | - [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | ||
1818 | 3955 | -])# AC_ENABLE_SHARED | ||
1819 | 3956 | +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || | 4189 | +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || |
1820 | 3957 | + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then | 4190 | + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then |
1821 | 3958 | + # Fast installation is not supported | 4191 | + # Fast installation is not supported |
1822 | @@ -3966,14 +4199,13 @@ | |||
1823 | 3966 | + [How to hardcode a shared library path into an executable]) | 4199 | + [How to hardcode a shared library path into an executable]) |
1824 | 3967 | +])# _LT_LINKER_HARDCODE_LIBPATH | 4200 | +])# _LT_LINKER_HARDCODE_LIBPATH |
1825 | 3968 | 4201 | ||
1828 | 3969 | 4202 | -# AC_LIBTOOL_DLOPEN | |
1827 | 3970 | -# AC_DISABLE_SHARED | ||
1829 | 3971 | -# ----------------- | 4203 | -# ----------------- |
1835 | 3972 | -# set the default shared flag to --disable-shared | 4204 | -# enable checks for dlopen support |
1836 | 3973 | -AC_DEFUN([AC_DISABLE_SHARED], | 4205 | -AC_DEFUN([AC_LIBTOOL_DLOPEN], |
1837 | 3974 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 4206 | - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
1838 | 3975 | -AC_ENABLE_SHARED(no) | 4207 | -])# AC_LIBTOOL_DLOPEN |
1839 | 3976 | -])# AC_DISABLE_SHARED | 4208 | |
1840 | 3977 | +# _LT_CMD_STRIPLIB | 4209 | +# _LT_CMD_STRIPLIB |
1841 | 3978 | +# ---------------- | 4210 | +# ---------------- |
1842 | 3979 | +m4_defun([_LT_CMD_STRIPLIB], | 4211 | +m4_defun([_LT_CMD_STRIPLIB], |
1843 | @@ -4006,6 +4238,141 @@ | |||
1844 | 4006 | +_LT_DECL([], [striplib], [1]) | 4238 | +_LT_DECL([], [striplib], [1]) |
1845 | 4007 | +])# _LT_CMD_STRIPLIB | 4239 | +])# _LT_CMD_STRIPLIB |
1846 | 4008 | 4240 | ||
1847 | 4241 | -# AC_LIBTOOL_WIN32_DLL | ||
1848 | 4242 | -# -------------------- | ||
1849 | 4243 | -# declare package support for building win32 DLLs | ||
1850 | 4244 | -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | ||
1851 | 4245 | -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | ||
1852 | 4246 | -])# AC_LIBTOOL_WIN32_DLL | ||
1853 | 4247 | |||
1854 | 4248 | +# _LT_SYS_DYNAMIC_LINKER([TAG]) | ||
1855 | 4249 | +# ----------------------------- | ||
1856 | 4250 | +# PORTME Fill in your ld.so characteristics | ||
1857 | 4251 | +m4_defun([_LT_SYS_DYNAMIC_LINKER], | ||
1858 | 4252 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
1859 | 4253 | +m4_require([_LT_DECL_EGREP])dnl | ||
1860 | 4254 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
1861 | 4255 | +m4_require([_LT_DECL_OBJDUMP])dnl | ||
1862 | 4256 | +m4_require([_LT_DECL_SED])dnl | ||
1863 | 4257 | +AC_MSG_CHECKING([dynamic linker characteristics]) | ||
1864 | 4258 | +m4_if([$1], | ||
1865 | 4259 | + [], [ | ||
1866 | 4260 | +if test "$GCC" = yes; then | ||
1867 | 4261 | + case $host_os in | ||
1868 | 4262 | + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
1869 | 4263 | + *) lt_awk_arg="/^libraries:/" ;; | ||
1870 | 4264 | + esac | ||
1871 | 4265 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
1872 | 4266 | + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
1873 | 4267 | + # if the path contains ";" then we assume it to be the separator | ||
1874 | 4268 | + # otherwise default to the standard path separator (i.e. ":") - it is | ||
1875 | 4269 | + # assumed that no part of a normal pathname contains ";" but that should | ||
1876 | 4270 | + # okay in the real world where ";" in dirpaths is itself problematic. | ||
1877 | 4271 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
1878 | 4272 | + else | ||
1879 | 4273 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
1880 | 4274 | + fi | ||
1881 | 4275 | + # Ok, now we have the path, separated by spaces, we can step through it | ||
1882 | 4276 | + # and add multilib dir if necessary. | ||
1883 | 4277 | + lt_tmp_lt_search_path_spec= | ||
1884 | 4278 | + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
1885 | 4279 | + for lt_sys_path in $lt_search_path_spec; do | ||
1886 | 4280 | + if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
1887 | 4281 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
1888 | 4282 | + else | ||
1889 | 4283 | + test -d "$lt_sys_path" && \ | ||
1890 | 4284 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
1891 | 4285 | + fi | ||
1892 | 4286 | + done | ||
1893 | 4287 | + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
1894 | 4288 | +BEGIN {RS=" "; FS="/|\n";} { | ||
1895 | 4289 | + lt_foo=""; | ||
1896 | 4290 | + lt_count=0; | ||
1897 | 4291 | + for (lt_i = NF; lt_i > 0; lt_i--) { | ||
1898 | 4292 | + if ($lt_i != "" && $lt_i != ".") { | ||
1899 | 4293 | + if ($lt_i == "..") { | ||
1900 | 4294 | + lt_count++; | ||
1901 | 4295 | + } else { | ||
1902 | 4296 | + if (lt_count == 0) { | ||
1903 | 4297 | + lt_foo="/" $lt_i lt_foo; | ||
1904 | 4298 | + } else { | ||
1905 | 4299 | + lt_count--; | ||
1906 | 4300 | + } | ||
1907 | 4301 | + } | ||
1908 | 4302 | + } | ||
1909 | 4303 | + } | ||
1910 | 4304 | + if (lt_foo != "") { lt_freq[[lt_foo]]++; } | ||
1911 | 4305 | + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | ||
1912 | 4306 | +}'` | ||
1913 | 4307 | + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
1914 | 4308 | +else | ||
1915 | 4309 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
1916 | 4310 | +fi]) | ||
1917 | 4311 | +library_names_spec= | ||
1918 | 4312 | +libname_spec='lib$name' | ||
1919 | 4313 | +soname_spec= | ||
1920 | 4314 | +shrext_cmds=".so" | ||
1921 | 4315 | +postinstall_cmds= | ||
1922 | 4316 | +postuninstall_cmds= | ||
1923 | 4317 | +finish_cmds= | ||
1924 | 4318 | +finish_eval= | ||
1925 | 4319 | +shlibpath_var= | ||
1926 | 4320 | +shlibpath_overrides_runpath=unknown | ||
1927 | 4321 | +version_type=none | ||
1928 | 4322 | +dynamic_linker="$host_os ld.so" | ||
1929 | 4323 | +sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
1930 | 4324 | +need_lib_prefix=unknown | ||
1931 | 4325 | +hardcode_into_libs=no | ||
1932 | 4326 | |||
1933 | 4327 | -# AC_ENABLE_SHARED([DEFAULT]) | ||
1934 | 4328 | -# --------------------------- | ||
1935 | 4329 | -# implement the --enable-shared flag | ||
1936 | 4330 | -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
1937 | 4331 | -AC_DEFUN([AC_ENABLE_SHARED], | ||
1938 | 4332 | -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | ||
1939 | 4333 | -AC_ARG_ENABLE([shared], | ||
1940 | 4334 | - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | ||
1941 | 4335 | - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], | ||
1942 | 4336 | - [p=${PACKAGE-default} | ||
1943 | 4337 | - case $enableval in | ||
1944 | 4338 | - yes) enable_shared=yes ;; | ||
1945 | 4339 | - no) enable_shared=no ;; | ||
1946 | 4340 | - *) | ||
1947 | 4341 | - enable_shared=no | ||
1948 | 4342 | - # Look at the argument we got. We use all the common list separators. | ||
1949 | 4343 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
1950 | 4344 | - for pkg in $enableval; do | ||
1951 | 4345 | - IFS="$lt_save_ifs" | ||
1952 | 4346 | - if test "X$pkg" = "X$p"; then | ||
1953 | 4347 | - enable_shared=yes | ||
1954 | 4348 | - fi | ||
1955 | 4349 | - done | ||
1956 | 4350 | - IFS="$lt_save_ifs" | ||
1957 | 4351 | - ;; | ||
1958 | 4352 | - esac], | ||
1959 | 4353 | - [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | ||
1960 | 4354 | -])# AC_ENABLE_SHARED | ||
1961 | 4355 | - | ||
1962 | 4356 | +# when you set need_version to no, make sure it does not cause -set_version | ||
1963 | 4357 | +# flags to be left without arguments | ||
1964 | 4358 | +need_version=unknown | ||
1965 | 4359 | |||
1966 | 4360 | -# AC_DISABLE_SHARED | ||
1967 | 4361 | -# ----------------- | ||
1968 | 4362 | -# set the default shared flag to --disable-shared | ||
1969 | 4363 | -AC_DEFUN([AC_DISABLE_SHARED], | ||
1970 | 4364 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
1971 | 4365 | -AC_ENABLE_SHARED(no) | ||
1972 | 4366 | -])# AC_DISABLE_SHARED | ||
1973 | 4367 | +case $host_os in | ||
1974 | 4368 | +aix3*) | ||
1975 | 4369 | + version_type=linux | ||
1976 | 4370 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
1977 | 4371 | + shlibpath_var=LIBPATH | ||
1978 | 4372 | |||
1979 | 4373 | + # AIX 3 has no versioning support, so we append a major version to the name. | ||
1980 | 4374 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
1981 | 4375 | + ;; | ||
1982 | 4009 | 4376 | ||
1983 | 4010 | -# AC_ENABLE_STATIC([DEFAULT]) | 4377 | -# AC_ENABLE_STATIC([DEFAULT]) |
1984 | 4011 | -# --------------------------- | 4378 | -# --------------------------- |
1985 | @@ -4031,92 +4398,67 @@ | |||
1986 | 4031 | - fi | 4398 | - fi |
1987 | 4032 | - done | 4399 | - done |
1988 | 4033 | - IFS="$lt_save_ifs" | 4400 | - IFS="$lt_save_ifs" |
1990 | 4034 | - ;; | 4401 | +aix[[4-9]]*) |
1991 | 4402 | + version_type=linux | ||
1992 | 4403 | + need_lib_prefix=no | ||
1993 | 4404 | + need_version=no | ||
1994 | 4405 | + hardcode_into_libs=yes | ||
1995 | 4406 | + if test "$host_cpu" = ia64; then | ||
1996 | 4407 | + # AIX 5 supports IA64 | ||
1997 | 4408 | + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
1998 | 4409 | + shlibpath_var=LD_LIBRARY_PATH | ||
1999 | 4410 | + else | ||
2000 | 4411 | + # With GCC up to 2.95.x, collect2 would create an import file | ||
2001 | 4412 | + # for dependence libraries. The import file would start with | ||
2002 | 4413 | + # the line `#! .'. This would cause the generated library to | ||
2003 | 4414 | + # depend on `.', always an invalid library. This was fixed in | ||
2004 | 4415 | + # development snapshots of GCC prior to 3.0. | ||
2005 | 4416 | + case $host_os in | ||
2006 | 4417 | + aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
2007 | 4418 | + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
2008 | 4419 | + echo ' yes ' | ||
2009 | 4420 | + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
2010 | 4421 | + : | ||
2011 | 4422 | + else | ||
2012 | 4423 | + can_build_shared=no | ||
2013 | 4424 | + fi | ||
2014 | 4425 | ;; | ||
2015 | 4035 | - esac], | 4426 | - esac], |
2016 | 4036 | - [enable_static=]AC_ENABLE_STATIC_DEFAULT) | 4427 | - [enable_static=]AC_ENABLE_STATIC_DEFAULT) |
2017 | 4037 | -])# AC_ENABLE_STATIC | 4428 | -])# AC_ENABLE_STATIC |
2052 | 4038 | +# _LT_SYS_DYNAMIC_LINKER([TAG]) | 4429 | + esac |
2053 | 4039 | +# ----------------------------- | 4430 | + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
2054 | 4040 | +# PORTME Fill in your ld.so characteristics | 4431 | + # soname into executable. Probably we can add versioning support to |
2055 | 4041 | +m4_defun([_LT_SYS_DYNAMIC_LINKER], | 4432 | + # collect2, so additional links can be useful in future. |
2056 | 4042 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl | 4433 | + if test "$aix_use_runtimelinking" = yes; then |
2057 | 4043 | +m4_require([_LT_DECL_EGREP])dnl | 4434 | + # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
2058 | 4044 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 4435 | + # instead of lib<name>.a to let people know that these are not |
2059 | 4045 | +m4_require([_LT_DECL_OBJDUMP])dnl | 4436 | + # typical AIX shared libraries. |
2060 | 4046 | +m4_require([_LT_DECL_SED])dnl | 4437 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2027 | 4047 | +AC_MSG_CHECKING([dynamic linker characteristics]) | ||
2028 | 4048 | +m4_if([$1], | ||
2029 | 4049 | + [], [ | ||
2030 | 4050 | +if test "$GCC" = yes; then | ||
2031 | 4051 | + case $host_os in | ||
2032 | 4052 | + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
2033 | 4053 | + *) lt_awk_arg="/^libraries:/" ;; | ||
2034 | 4054 | + esac | ||
2035 | 4055 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
2036 | 4056 | + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
2037 | 4057 | + # if the path contains ";" then we assume it to be the separator | ||
2038 | 4058 | + # otherwise default to the standard path separator (i.e. ":") - it is | ||
2039 | 4059 | + # assumed that no part of a normal pathname contains ";" but that should | ||
2040 | 4060 | + # okay in the real world where ";" in dirpaths is itself problematic. | ||
2041 | 4061 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
2042 | 4062 | + else | ||
2043 | 4063 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2044 | 4064 | + fi | ||
2045 | 4065 | + # Ok, now we have the path, separated by spaces, we can step through it | ||
2046 | 4066 | + # and add multilib dir if necessary. | ||
2047 | 4067 | + lt_tmp_lt_search_path_spec= | ||
2048 | 4068 | + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
2049 | 4069 | + for lt_sys_path in $lt_search_path_spec; do | ||
2050 | 4070 | + if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
2051 | 4071 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
2061 | 4072 | + else | 4438 | + else |
2064 | 4073 | + test -d "$lt_sys_path" && \ | 4439 | + # We preserve .a as extension for shared libraries through AIX4.2 |
2065 | 4074 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | 4440 | + # and later when we are not doing run time linking. |
2066 | 4441 | + library_names_spec='${libname}${release}.a $libname.a' | ||
2067 | 4442 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
2068 | 4075 | + fi | 4443 | + fi |
2109 | 4076 | + done | 4444 | + shlibpath_var=LIBPATH |
2110 | 4077 | + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | 4445 | + fi |
2111 | 4078 | +BEGIN {RS=" "; FS="/|\n";} { | 4446 | + ;; |
2072 | 4079 | + lt_foo=""; | ||
2073 | 4080 | + lt_count=0; | ||
2074 | 4081 | + for (lt_i = NF; lt_i > 0; lt_i--) { | ||
2075 | 4082 | + if ($lt_i != "" && $lt_i != ".") { | ||
2076 | 4083 | + if ($lt_i == "..") { | ||
2077 | 4084 | + lt_count++; | ||
2078 | 4085 | + } else { | ||
2079 | 4086 | + if (lt_count == 0) { | ||
2080 | 4087 | + lt_foo="/" $lt_i lt_foo; | ||
2081 | 4088 | + } else { | ||
2082 | 4089 | + lt_count--; | ||
2083 | 4090 | + } | ||
2084 | 4091 | + } | ||
2085 | 4092 | + } | ||
2086 | 4093 | + } | ||
2087 | 4094 | + if (lt_foo != "") { lt_freq[[lt_foo]]++; } | ||
2088 | 4095 | + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | ||
2089 | 4096 | +}'` | ||
2090 | 4097 | + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
2091 | 4098 | +else | ||
2092 | 4099 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
2093 | 4100 | +fi]) | ||
2094 | 4101 | +library_names_spec= | ||
2095 | 4102 | +libname_spec='lib$name' | ||
2096 | 4103 | +soname_spec= | ||
2097 | 4104 | +shrext_cmds=".so" | ||
2098 | 4105 | +postinstall_cmds= | ||
2099 | 4106 | +postuninstall_cmds= | ||
2100 | 4107 | +finish_cmds= | ||
2101 | 4108 | +finish_eval= | ||
2102 | 4109 | +shlibpath_var= | ||
2103 | 4110 | +shlibpath_overrides_runpath=unknown | ||
2104 | 4111 | +version_type=none | ||
2105 | 4112 | +dynamic_linker="$host_os ld.so" | ||
2106 | 4113 | +sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
2107 | 4114 | +need_lib_prefix=unknown | ||
2108 | 4115 | +hardcode_into_libs=no | ||
2112 | 4116 | 4447 | ||
2116 | 4117 | +# when you set need_version to no, make sure it does not cause -set_version | 4448 | +amigaos*) |
2117 | 4118 | +# flags to be left without arguments | 4449 | + case $host_cpu in |
2118 | 4119 | +need_version=unknown | 4450 | + powerpc) |
2119 | 4451 | + # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
2120 | 4452 | + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
2121 | 4453 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2122 | 4454 | + ;; | ||
2123 | 4455 | + m68k) | ||
2124 | 4456 | + library_names_spec='$libname.ixlibrary $libname.a' | ||
2125 | 4457 | + # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
2126 | 4458 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
2127 | 4459 | + ;; | ||
2128 | 4460 | + esac | ||
2129 | 4461 | + ;; | ||
2130 | 4120 | 4462 | ||
2131 | 4121 | -# AC_DISABLE_STATIC | 4463 | -# AC_DISABLE_STATIC |
2132 | 4122 | -# ----------------- | 4464 | -# ----------------- |
2133 | @@ -4125,14 +4467,24 @@ | |||
2134 | 4125 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 4467 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2135 | 4126 | -AC_ENABLE_STATIC(no) | 4468 | -AC_ENABLE_STATIC(no) |
2136 | 4127 | -])# AC_DISABLE_STATIC | 4469 | -])# AC_DISABLE_STATIC |
2139 | 4128 | +case $host_os in | 4470 | +beos*) |
2140 | 4129 | +aix3*) | 4471 | + library_names_spec='${libname}${shared_ext}' |
2141 | 4472 | + dynamic_linker="$host_os ld.so" | ||
2142 | 4473 | + shlibpath_var=LIBRARY_PATH | ||
2143 | 4474 | + ;; | ||
2144 | 4475 | |||
2145 | 4476 | +bsdi[[45]]*) | ||
2146 | 4130 | + version_type=linux | 4477 | + version_type=linux |
2151 | 4131 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 4478 | + need_version=no |
2152 | 4132 | + shlibpath_var=LIBPATH | 4479 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2149 | 4133 | |||
2150 | 4134 | + # AIX 3 has no versioning support, so we append a major version to the name. | ||
2153 | 4135 | + soname_spec='${libname}${release}${shared_ext}$major' | 4480 | + soname_spec='${libname}${release}${shared_ext}$major' |
2154 | 4481 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
2155 | 4482 | + shlibpath_var=LD_LIBRARY_PATH | ||
2156 | 4483 | + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
2157 | 4484 | + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
2158 | 4485 | + # the default ld.so.conf also contains /usr/contrib/lib and | ||
2159 | 4486 | + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
2160 | 4487 | + # libtool to hard-code these into programs | ||
2161 | 4136 | + ;; | 4488 | + ;; |
2162 | 4137 | 4489 | ||
2163 | 4138 | -# AC_ENABLE_FAST_INSTALL([DEFAULT]) | 4490 | -# AC_ENABLE_FAST_INSTALL([DEFAULT]) |
2164 | @@ -4159,67 +4511,33 @@ | |||
2165 | 4159 | - fi | 4511 | - fi |
2166 | 4160 | - done | 4512 | - done |
2167 | 4161 | - IFS="$lt_save_ifs" | 4513 | - IFS="$lt_save_ifs" |
2193 | 4162 | +aix[[4-9]]*) | 4514 | - ;; |
2169 | 4163 | + version_type=linux | ||
2170 | 4164 | + need_lib_prefix=no | ||
2171 | 4165 | + need_version=no | ||
2172 | 4166 | + hardcode_into_libs=yes | ||
2173 | 4167 | + if test "$host_cpu" = ia64; then | ||
2174 | 4168 | + # AIX 5 supports IA64 | ||
2175 | 4169 | + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
2176 | 4170 | + shlibpath_var=LD_LIBRARY_PATH | ||
2177 | 4171 | + else | ||
2178 | 4172 | + # With GCC up to 2.95.x, collect2 would create an import file | ||
2179 | 4173 | + # for dependence libraries. The import file would start with | ||
2180 | 4174 | + # the line `#! .'. This would cause the generated library to | ||
2181 | 4175 | + # depend on `.', always an invalid library. This was fixed in | ||
2182 | 4176 | + # development snapshots of GCC prior to 3.0. | ||
2183 | 4177 | + case $host_os in | ||
2184 | 4178 | + aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
2185 | 4179 | + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
2186 | 4180 | + echo ' yes ' | ||
2187 | 4181 | + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
2188 | 4182 | + : | ||
2189 | 4183 | + else | ||
2190 | 4184 | + can_build_shared=no | ||
2191 | 4185 | + fi | ||
2192 | 4186 | ;; | ||
2194 | 4187 | - esac], | 4515 | - esac], |
2195 | 4188 | - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) | 4516 | - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
2196 | 4189 | -])# AC_ENABLE_FAST_INSTALL | 4517 | -])# AC_ENABLE_FAST_INSTALL |
2215 | 4190 | + esac | 4518 | +cygwin* | mingw* | pw32* | cegcc*) |
2216 | 4191 | + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 4519 | + version_type=windows |
2217 | 4192 | + # soname into executable. Probably we can add versioning support to | 4520 | + shrext_cmds=".dll" |
2218 | 4193 | + # collect2, so additional links can be useful in future. | 4521 | + need_version=no |
2219 | 4194 | + if test "$aix_use_runtimelinking" = yes; then | 4522 | + need_lib_prefix=no |
2202 | 4195 | + # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
2203 | 4196 | + # instead of lib<name>.a to let people know that these are not | ||
2204 | 4197 | + # typical AIX shared libraries. | ||
2205 | 4198 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2206 | 4199 | + else | ||
2207 | 4200 | + # We preserve .a as extension for shared libraries through AIX4.2 | ||
2208 | 4201 | + # and later when we are not doing run time linking. | ||
2209 | 4202 | + library_names_spec='${libname}${release}.a $libname.a' | ||
2210 | 4203 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
2211 | 4204 | + fi | ||
2212 | 4205 | + shlibpath_var=LIBPATH | ||
2213 | 4206 | + fi | ||
2214 | 4207 | + ;; | ||
2220 | 4208 | 4523 | ||
2235 | 4209 | +amigaos*) | 4524 | + case $GCC,$host_os in |
2236 | 4210 | + case $host_cpu in | 4525 | + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
2237 | 4211 | + powerpc) | 4526 | + library_names_spec='$libname.dll.a' |
2238 | 4212 | + # Since July 2007 AmigaOS4 officially supports .so libraries. | 4527 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2239 | 4213 | + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 4528 | + postinstall_cmds='base_file=`basename \${file}`~ |
2240 | 4214 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 4529 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
2241 | 4215 | + ;; | 4530 | + dldir=$destdir/`dirname \$dlpath`~ |
2242 | 4216 | + m68k) | 4531 | + test -d \$dldir || mkdir -p \$dldir~ |
2243 | 4217 | + library_names_spec='$libname.ixlibrary $libname.a' | 4532 | + $install_prog $dir/$dlname \$dldir/$dlname~ |
2244 | 4218 | + # Create ${libname}_ixlibrary.a entries in /sys/libs. | 4533 | + chmod a+x \$dldir/$dlname~ |
2245 | 4219 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 4534 | + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
2246 | 4220 | + ;; | 4535 | + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
2247 | 4221 | + esac | 4536 | + fi' |
2248 | 4222 | + ;; | 4537 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
2249 | 4538 | + dlpath=$dir/\$dldll~ | ||
2250 | 4539 | + $RM \$dlpath' | ||
2251 | 4540 | + shlibpath_overrides_runpath=yes | ||
2252 | 4223 | 4541 | ||
2253 | 4224 | -# AC_DISABLE_FAST_INSTALL | 4542 | -# AC_DISABLE_FAST_INSTALL |
2254 | 4225 | -# ----------------------- | 4543 | -# ----------------------- |
2255 | @@ -4228,24 +4546,42 @@ | |||
2256 | 4228 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 4546 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2257 | 4229 | -AC_ENABLE_FAST_INSTALL(no) | 4547 | -AC_ENABLE_FAST_INSTALL(no) |
2258 | 4230 | -])# AC_DISABLE_FAST_INSTALL | 4548 | -])# AC_DISABLE_FAST_INSTALL |
2264 | 4231 | +beos*) | 4549 | + case $host_os in |
2265 | 4232 | + library_names_spec='${libname}${shared_ext}' | 4550 | + cygwin*) |
2266 | 4233 | + dynamic_linker="$host_os ld.so" | 4551 | + # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2267 | 4234 | + shlibpath_var=LIBRARY_PATH | 4552 | + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2268 | 4235 | + ;; | 4553 | + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
2269 | 4554 | + ;; | ||
2270 | 4555 | + mingw* | cegcc*) | ||
2271 | 4556 | + # MinGW DLLs use traditional 'lib' prefix | ||
2272 | 4557 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2273 | 4558 | + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
2274 | 4559 | + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | ||
2275 | 4560 | + # It is most probably a Windows format PATH printed by | ||
2276 | 4561 | + # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
2277 | 4562 | + # path with ; separators, and with drive letters. We can handle the | ||
2278 | 4563 | + # drive letters (cygwin fileutils understands them), so leave them, | ||
2279 | 4564 | + # especially as we might pass files found there to a mingw objdump, | ||
2280 | 4565 | + # which wouldn't understand a cygwinified path. Ahh. | ||
2281 | 4566 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
2282 | 4567 | + else | ||
2283 | 4568 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2284 | 4569 | + fi | ||
2285 | 4570 | + ;; | ||
2286 | 4571 | + pw32*) | ||
2287 | 4572 | + # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
2288 | 4573 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2289 | 4574 | + ;; | ||
2290 | 4575 | + esac | ||
2291 | 4576 | + ;; | ||
2292 | 4236 | 4577 | ||
2305 | 4237 | +bsdi[[45]]*) | 4578 | + *) |
2306 | 4238 | + version_type=linux | 4579 | + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
2307 | 4239 | + need_version=no | 4580 | + ;; |
2308 | 4240 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 4581 | + esac |
2309 | 4241 | + soname_spec='${libname}${release}${shared_ext}$major' | 4582 | + dynamic_linker='Win32 ld.exe' |
2310 | 4242 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 4583 | + # FIXME: first we should search . and the directory the executable is in |
2311 | 4243 | + shlibpath_var=LD_LIBRARY_PATH | 4584 | + shlibpath_var=PATH |
2300 | 4244 | + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
2301 | 4245 | + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
2302 | 4246 | + # the default ld.so.conf also contains /usr/contrib/lib and | ||
2303 | 4247 | + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
2304 | 4248 | + # libtool to hard-code these into programs | ||
2312 | 4249 | + ;; | 4585 | + ;; |
2313 | 4250 | 4586 | ||
2314 | 4251 | -# AC_LIBTOOL_PICMODE([MODE]) | 4587 | -# AC_LIBTOOL_PICMODE([MODE]) |
2315 | @@ -4256,30 +4592,8 @@ | |||
2316 | 4256 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 4592 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2317 | 4257 | -pic_mode=ifelse($#,1,$1,default) | 4593 | -pic_mode=ifelse($#,1,$1,default) |
2318 | 4258 | -])# AC_LIBTOOL_PICMODE | 4594 | -])# AC_LIBTOOL_PICMODE |
2343 | 4259 | +cygwin* | mingw* | pw32* | cegcc*) | 4595 | - |
2344 | 4260 | + version_type=windows | 4596 | - |
2321 | 4261 | + shrext_cmds=".dll" | ||
2322 | 4262 | + need_version=no | ||
2323 | 4263 | + need_lib_prefix=no | ||
2324 | 4264 | |||
2325 | 4265 | + case $GCC,$host_os in | ||
2326 | 4266 | + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
2327 | 4267 | + library_names_spec='$libname.dll.a' | ||
2328 | 4268 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
2329 | 4269 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
2330 | 4270 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
2331 | 4271 | + dldir=$destdir/`dirname \$dlpath`~ | ||
2332 | 4272 | + test -d \$dldir || mkdir -p \$dldir~ | ||
2333 | 4273 | + $install_prog $dir/$dlname \$dldir/$dlname~ | ||
2334 | 4274 | + chmod a+x \$dldir/$dlname~ | ||
2335 | 4275 | + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
2336 | 4276 | + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
2337 | 4277 | + fi' | ||
2338 | 4278 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
2339 | 4279 | + dlpath=$dir/\$dldll~ | ||
2340 | 4280 | + $RM \$dlpath' | ||
2341 | 4281 | + shlibpath_overrides_runpath=yes | ||
2342 | 4282 | |||
2345 | 4283 | -# AC_PROG_EGREP | 4597 | -# AC_PROG_EGREP |
2346 | 4284 | -# ------------- | 4598 | -# ------------- |
2347 | 4285 | -# This is predefined starting with Autoconf 2.54, so this conditional | 4599 | -# This is predefined starting with Autoconf 2.54, so this conditional |
2348 | @@ -4293,44 +4607,8 @@ | |||
2349 | 4293 | - EGREP=$ac_cv_prog_egrep | 4607 | - EGREP=$ac_cv_prog_egrep |
2350 | 4294 | - AC_SUBST([EGREP]) | 4608 | - AC_SUBST([EGREP]) |
2351 | 4295 | -])]) | 4609 | -])]) |
2390 | 4296 | + case $host_os in | 4610 | - |
2391 | 4297 | + cygwin*) | 4611 | - |
2354 | 4298 | + # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
2355 | 4299 | + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2356 | 4300 | + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
2357 | 4301 | + ;; | ||
2358 | 4302 | + mingw* | cegcc*) | ||
2359 | 4303 | + # MinGW DLLs use traditional 'lib' prefix | ||
2360 | 4304 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2361 | 4305 | + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
2362 | 4306 | + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | ||
2363 | 4307 | + # It is most probably a Windows format PATH printed by | ||
2364 | 4308 | + # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
2365 | 4309 | + # path with ; separators, and with drive letters. We can handle the | ||
2366 | 4310 | + # drive letters (cygwin fileutils understands them), so leave them, | ||
2367 | 4311 | + # especially as we might pass files found there to a mingw objdump, | ||
2368 | 4312 | + # which wouldn't understand a cygwinified path. Ahh. | ||
2369 | 4313 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
2370 | 4314 | + else | ||
2371 | 4315 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2372 | 4316 | + fi | ||
2373 | 4317 | + ;; | ||
2374 | 4318 | + pw32*) | ||
2375 | 4319 | + # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
2376 | 4320 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2377 | 4321 | + ;; | ||
2378 | 4322 | + esac | ||
2379 | 4323 | + ;; | ||
2380 | 4324 | |||
2381 | 4325 | + *) | ||
2382 | 4326 | + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
2383 | 4327 | + ;; | ||
2384 | 4328 | + esac | ||
2385 | 4329 | + dynamic_linker='Win32 ld.exe' | ||
2386 | 4330 | + # FIXME: first we should search . and the directory the executable is in | ||
2387 | 4331 | + shlibpath_var=PATH | ||
2388 | 4332 | + ;; | ||
2389 | 4333 | |||
2392 | 4334 | -# AC_PATH_TOOL_PREFIX | 4612 | -# AC_PATH_TOOL_PREFIX |
2393 | 4335 | -# ------------------- | 4613 | -# ------------------- |
2394 | 4336 | -# find a file program which can recognize shared library | 4614 | -# find a file program which can recognize shared library |
2395 | @@ -4562,10 +4840,10 @@ | |||
2396 | 4562 | -case `$LD -v 2>&1 </dev/null` in | 4840 | -case `$LD -v 2>&1 </dev/null` in |
2397 | 4563 | -*GNU* | *'with BFD'*) | 4841 | -*GNU* | *'with BFD'*) |
2398 | 4564 | - lt_cv_prog_gnu_ld=yes | 4842 | - lt_cv_prog_gnu_ld=yes |
2400 | 4565 | ;; | 4843 | - ;; |
2401 | 4566 | -*) | 4844 | -*) |
2402 | 4567 | - lt_cv_prog_gnu_ld=no | 4845 | - lt_cv_prog_gnu_ld=no |
2404 | 4568 | - ;; | 4846 | ;; |
2405 | 4569 | -esac]) | 4847 | -esac]) |
2406 | 4570 | -with_gnu_ld=$lt_cv_prog_gnu_ld | 4848 | -with_gnu_ld=$lt_cv_prog_gnu_ld |
2407 | 4571 | -])# AC_PROG_LD_GNU | 4849 | -])# AC_PROG_LD_GNU |
2408 | @@ -4958,10 +5236,36 @@ | |||
2409 | 4958 | 5236 | ||
2410 | 4959 | solaris*) | 5237 | solaris*) |
2411 | 4960 | - lt_cv_deplibs_check_method=pass_all | 5238 | - lt_cv_deplibs_check_method=pass_all |
2416 | 4961 | - ;; | 5239 | + version_type=linux |
2417 | 4962 | - | 5240 | + need_lib_prefix=no |
2418 | 4963 | -sysv4 | sysv4.3*) | 5241 | + need_version=no |
2419 | 4964 | - case $host_vendor in | 5242 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2420 | 5243 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
2421 | 5244 | + shlibpath_var=LD_LIBRARY_PATH | ||
2422 | 5245 | + shlibpath_overrides_runpath=yes | ||
2423 | 5246 | + hardcode_into_libs=yes | ||
2424 | 5247 | + # ldd complains unless libraries are executable | ||
2425 | 5248 | + postinstall_cmds='chmod +x $lib' | ||
2426 | 5249 | + ;; | ||
2427 | 5250 | + | ||
2428 | 5251 | +sunos4*) | ||
2429 | 5252 | + version_type=sunos | ||
2430 | 5253 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2431 | 5254 | + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
2432 | 5255 | + shlibpath_var=LD_LIBRARY_PATH | ||
2433 | 5256 | + shlibpath_overrides_runpath=yes | ||
2434 | 5257 | + if test "$with_gnu_ld" = yes; then | ||
2435 | 5258 | + need_lib_prefix=no | ||
2436 | 5259 | + fi | ||
2437 | 5260 | + need_version=yes | ||
2438 | 5261 | ;; | ||
2439 | 5262 | |||
2440 | 5263 | sysv4 | sysv4.3*) | ||
2441 | 5264 | + version_type=linux | ||
2442 | 5265 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2443 | 5266 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
2444 | 5267 | + shlibpath_var=LD_LIBRARY_PATH | ||
2445 | 5268 | case $host_vendor in | ||
2446 | 4965 | - motorola) | 5269 | - motorola) |
2447 | 4966 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' | 5270 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
2448 | 4967 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 5271 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
2449 | @@ -4984,31 +5288,32 @@ | |||
2450 | 4984 | - pc) | 5288 | - pc) |
2451 | 4985 | - lt_cv_deplibs_check_method=pass_all | 5289 | - lt_cv_deplibs_check_method=pass_all |
2452 | 4986 | - ;; | 5290 | - ;; |
2464 | 4987 | - esac | 5291 | + sni) |
2465 | 4988 | + version_type=linux | 5292 | + shlibpath_overrides_runpath=no |
2466 | 4989 | + need_lib_prefix=no | 5293 | + need_lib_prefix=no |
2467 | 4990 | + need_version=no | 5294 | + runpath_var=LD_RUN_PATH |
2468 | 4991 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 5295 | + ;; |
2469 | 4992 | + soname_spec='${libname}${release}${shared_ext}$major' | 5296 | + siemens) |
2470 | 4993 | + shlibpath_var=LD_LIBRARY_PATH | 5297 | + need_lib_prefix=no |
2471 | 4994 | + shlibpath_overrides_runpath=yes | 5298 | + ;; |
2472 | 4995 | + hardcode_into_libs=yes | 5299 | + motorola) |
2473 | 4996 | + # ldd complains unless libraries are executable | 5300 | + need_lib_prefix=no |
2474 | 4997 | + postinstall_cmds='chmod +x $lib' | 5301 | + need_version=no |
2475 | 5302 | + shlibpath_overrides_runpath=no | ||
2476 | 5303 | + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
2477 | 5304 | + ;; | ||
2478 | 5305 | esac | ||
2479 | 4998 | ;; | 5306 | ;; |
2480 | 4999 | 5307 | ||
2481 | 5000 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 5308 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
2482 | 5001 | - lt_cv_deplibs_check_method=pass_all | 5309 | - lt_cv_deplibs_check_method=pass_all |
2491 | 5002 | +sunos4*) | 5310 | +sysv4*MP*) |
2492 | 5003 | + version_type=sunos | 5311 | + if test -d /usr/nec ;then |
2493 | 5004 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 5312 | + version_type=linux |
2494 | 5005 | + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 5313 | + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
2495 | 5006 | + shlibpath_var=LD_LIBRARY_PATH | 5314 | + soname_spec='$libname${shared_ext}.$major' |
2496 | 5007 | + shlibpath_overrides_runpath=yes | 5315 | + shlibpath_var=LD_LIBRARY_PATH |
2489 | 5008 | + if test "$with_gnu_ld" = yes; then | ||
2490 | 5009 | + need_lib_prefix=no | ||
2497 | 5010 | + fi | 5316 | + fi |
2498 | 5011 | + need_version=yes | ||
2499 | 5012 | ;; | 5317 | ;; |
2500 | 5013 | -esac | 5318 | -esac |
2501 | 5014 | -]) | 5319 | -]) |
2502 | @@ -5016,29 +5321,7 @@ | |||
2503 | 5016 | -deplibs_check_method=$lt_cv_deplibs_check_method | 5321 | -deplibs_check_method=$lt_cv_deplibs_check_method |
2504 | 5017 | -test -z "$deplibs_check_method" && deplibs_check_method=unknown | 5322 | -test -z "$deplibs_check_method" && deplibs_check_method=unknown |
2505 | 5018 | -])# AC_DEPLIBS_CHECK_METHOD | 5323 | -])# AC_DEPLIBS_CHECK_METHOD |
2529 | 5019 | 5324 | - | |
2507 | 5020 | +sysv4 | sysv4.3*) | ||
2508 | 5021 | + version_type=linux | ||
2509 | 5022 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2510 | 5023 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
2511 | 5024 | + shlibpath_var=LD_LIBRARY_PATH | ||
2512 | 5025 | + case $host_vendor in | ||
2513 | 5026 | + sni) | ||
2514 | 5027 | + shlibpath_overrides_runpath=no | ||
2515 | 5028 | + need_lib_prefix=no | ||
2516 | 5029 | + runpath_var=LD_RUN_PATH | ||
2517 | 5030 | + ;; | ||
2518 | 5031 | + siemens) | ||
2519 | 5032 | + need_lib_prefix=no | ||
2520 | 5033 | + ;; | ||
2521 | 5034 | + motorola) | ||
2522 | 5035 | + need_lib_prefix=no | ||
2523 | 5036 | + need_version=no | ||
2524 | 5037 | + shlibpath_overrides_runpath=no | ||
2525 | 5038 | + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
2526 | 5039 | + ;; | ||
2527 | 5040 | + esac | ||
2528 | 5041 | + ;; | ||
2530 | 5042 | 5325 | ||
2531 | 5043 | -# AC_PROG_NM | 5326 | -# AC_PROG_NM |
2532 | 5044 | -# ---------- | 5327 | -# ---------- |
2533 | @@ -5052,12 +5335,24 @@ | |||
2534 | 5052 | - lt_nm_to_check="${ac_tool_prefix}nm" | 5335 | - lt_nm_to_check="${ac_tool_prefix}nm" |
2535 | 5053 | - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 5336 | - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
2536 | 5054 | - lt_nm_to_check="$lt_nm_to_check nm" | 5337 | - lt_nm_to_check="$lt_nm_to_check nm" |
2543 | 5055 | +sysv4*MP*) | 5338 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
2544 | 5056 | + if test -d /usr/nec ;then | 5339 | + version_type=freebsd-elf |
2545 | 5057 | + version_type=linux | 5340 | + need_lib_prefix=no |
2546 | 5058 | + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 5341 | + need_version=no |
2547 | 5059 | + soname_spec='$libname${shared_ext}.$major' | 5342 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
2548 | 5060 | + shlibpath_var=LD_LIBRARY_PATH | 5343 | + soname_spec='${libname}${release}${shared_ext}$major' |
2549 | 5344 | + shlibpath_var=LD_LIBRARY_PATH | ||
2550 | 5345 | + shlibpath_overrides_runpath=yes | ||
2551 | 5346 | + hardcode_into_libs=yes | ||
2552 | 5347 | + if test "$with_gnu_ld" = yes; then | ||
2553 | 5348 | + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
2554 | 5349 | + else | ||
2555 | 5350 | + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
2556 | 5351 | + case $host_os in | ||
2557 | 5352 | + sco3.2v5*) | ||
2558 | 5353 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
2559 | 5354 | + ;; | ||
2560 | 5355 | + esac | ||
2561 | 5061 | fi | 5356 | fi |
2562 | 5062 | - for lt_tmp_nm in $lt_nm_to_check; do | 5357 | - for lt_tmp_nm in $lt_nm_to_check; do |
2563 | 5063 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 5358 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2564 | @@ -5096,27 +5391,7 @@ | |||
2565 | 5096 | -fi]) | 5391 | -fi]) |
2566 | 5097 | -NM="$lt_cv_path_NM" | 5392 | -NM="$lt_cv_path_NM" |
2567 | 5098 | -])# AC_PROG_NM | 5393 | -])# AC_PROG_NM |
2589 | 5099 | + ;; | 5394 | - |
2569 | 5100 | |||
2570 | 5101 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
2571 | 5102 | + version_type=freebsd-elf | ||
2572 | 5103 | + need_lib_prefix=no | ||
2573 | 5104 | + need_version=no | ||
2574 | 5105 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2575 | 5106 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
2576 | 5107 | + shlibpath_var=LD_LIBRARY_PATH | ||
2577 | 5108 | + shlibpath_overrides_runpath=yes | ||
2578 | 5109 | + hardcode_into_libs=yes | ||
2579 | 5110 | + if test "$with_gnu_ld" = yes; then | ||
2580 | 5111 | + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
2581 | 5112 | + else | ||
2582 | 5113 | + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
2583 | 5114 | + case $host_os in | ||
2584 | 5115 | + sco3.2v5*) | ||
2585 | 5116 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
2586 | 5117 | + ;; | ||
2587 | 5118 | + esac | ||
2588 | 5119 | + fi | ||
2590 | 5120 | + sys_lib_dlsearch_path_spec='/usr/lib' | 5395 | + sys_lib_dlsearch_path_spec='/usr/lib' |
2591 | 5121 | + ;; | 5396 | + ;; |
2592 | 5122 | 5397 | ||
2593 | @@ -5355,11 +5630,11 @@ | |||
2594 | 5355 | -AC_DEFUN([AC_LIBTOOL_F77], | 5630 | -AC_DEFUN([AC_LIBTOOL_F77], |
2595 | 5356 | -[AC_REQUIRE([_LT_AC_LANG_F77]) | 5631 | -[AC_REQUIRE([_LT_AC_LANG_F77]) |
2596 | 5357 | -])# AC_LIBTOOL_F77 | 5632 | -])# AC_LIBTOOL_F77 |
2597 | 5633 | - | ||
2598 | 5358 | +_LT_DECL([], [MAGIC_CMD], [0], | 5634 | +_LT_DECL([], [MAGIC_CMD], [0], |
2599 | 5359 | + [Used to examine libraries when file_magic_cmd begins with "file"])dnl | 5635 | + [Used to examine libraries when file_magic_cmd begins with "file"])dnl |
2600 | 5360 | +])# _LT_PATH_TOOL_PREFIX | 5636 | +])# _LT_PATH_TOOL_PREFIX |
2601 | 5361 | 5637 | ||
2602 | 5362 | - | ||
2603 | 5363 | -# _LT_AC_LANG_F77 | 5638 | -# _LT_AC_LANG_F77 |
2604 | 5364 | -# --------------- | 5639 | -# --------------- |
2605 | 5365 | -AC_DEFUN([_LT_AC_LANG_F77], | 5640 | -AC_DEFUN([_LT_AC_LANG_F77], |
2606 | @@ -5379,8 +5654,19 @@ | |||
2607 | 5379 | -AC_DEFUN([AC_LIBTOOL_GCJ], | 5654 | -AC_DEFUN([AC_LIBTOOL_GCJ], |
2608 | 5380 | -[AC_REQUIRE([_LT_AC_LANG_GCJ]) | 5655 | -[AC_REQUIRE([_LT_AC_LANG_GCJ]) |
2609 | 5381 | -])# AC_LIBTOOL_GCJ | 5656 | -])# AC_LIBTOOL_GCJ |
2612 | 5382 | - | 5657 | +# find a file program which can recognize a shared library |
2613 | 5383 | - | 5658 | +m4_defun([_LT_PATH_MAGIC], |
2614 | 5659 | +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | ||
2615 | 5660 | +if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
2616 | 5661 | + if test -n "$ac_tool_prefix"; then | ||
2617 | 5662 | + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | ||
2618 | 5663 | + else | ||
2619 | 5664 | + MAGIC_CMD=: | ||
2620 | 5665 | + fi | ||
2621 | 5666 | +fi | ||
2622 | 5667 | +])# _LT_PATH_MAGIC | ||
2623 | 5668 | |||
2624 | 5669 | |||
2625 | 5384 | -# _LT_AC_LANG_GCJ | 5670 | -# _LT_AC_LANG_GCJ |
2626 | 5385 | -# --------------- | 5671 | -# --------------- |
2627 | 5386 | -AC_DEFUN([_LT_AC_LANG_GCJ], | 5672 | -AC_DEFUN([_LT_AC_LANG_GCJ], |
2628 | @@ -5392,26 +5678,6 @@ | |||
2629 | 5392 | - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | 5678 | - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
2630 | 5393 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | 5679 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
2631 | 5394 | -])# _LT_AC_LANG_GCJ | 5680 | -])# _LT_AC_LANG_GCJ |
2632 | 5395 | +# find a file program which can recognize a shared library | ||
2633 | 5396 | +m4_defun([_LT_PATH_MAGIC], | ||
2634 | 5397 | +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | ||
2635 | 5398 | +if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
2636 | 5399 | + if test -n "$ac_tool_prefix"; then | ||
2637 | 5400 | + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | ||
2638 | 5401 | + else | ||
2639 | 5402 | + MAGIC_CMD=: | ||
2640 | 5403 | + fi | ||
2641 | 5404 | +fi | ||
2642 | 5405 | +])# _LT_PATH_MAGIC | ||
2643 | 5406 | |||
2644 | 5407 | |||
2645 | 5408 | -# AC_LIBTOOL_RC | ||
2646 | 5409 | -# ------------- | ||
2647 | 5410 | -# enable support for Windows resource files | ||
2648 | 5411 | -AC_DEFUN([AC_LIBTOOL_RC], | ||
2649 | 5412 | -[AC_REQUIRE([LT_AC_PROG_RC]) | ||
2650 | 5413 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) | ||
2651 | 5414 | -])# AC_LIBTOOL_RC | ||
2652 | 5415 | +# LT_PATH_LD | 5681 | +# LT_PATH_LD |
2653 | 5416 | +# ---------- | 5682 | +# ---------- |
2654 | 5417 | +# find the pathname to the GNU or non-GNU linker | 5683 | +# find the pathname to the GNU or non-GNU linker |
2655 | @@ -5428,15 +5694,13 @@ | |||
2656 | 5428 | + [test "$withval" = no || with_gnu_ld=yes], | 5694 | + [test "$withval" = no || with_gnu_ld=yes], |
2657 | 5429 | + [with_gnu_ld=no])dnl | 5695 | + [with_gnu_ld=no])dnl |
2658 | 5430 | 5696 | ||
2668 | 5431 | -# AC_LIBTOOL_LANG_C_CONFIG | 5697 | -# AC_LIBTOOL_RC |
2669 | 5432 | -# ------------------------ | 5698 | -# ------------- |
2670 | 5433 | -# Ensure that the configuration vars for the C compiler are | 5699 | -# enable support for Windows resource files |
2671 | 5434 | -# suitably defined. Those variables are subsequently used by | 5700 | -AC_DEFUN([AC_LIBTOOL_RC], |
2672 | 5435 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 5701 | -[AC_REQUIRE([LT_AC_PROG_RC]) |
2673 | 5436 | -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | 5702 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
2674 | 5437 | -AC_DEFUN([_LT_AC_LANG_C_CONFIG], | 5703 | -])# AC_LIBTOOL_RC |
2666 | 5438 | -[lt_save_CC="$CC" | ||
2667 | 5439 | -AC_LANG_PUSH(C) | ||
2675 | 5440 | +ac_prog=ld | 5704 | +ac_prog=ld |
2676 | 5441 | +if test "$GCC" = yes; then | 5705 | +if test "$GCC" = yes; then |
2677 | 5442 | + # Check if gcc -print-prog-name=ld gives a path. | 5706 | + # Check if gcc -print-prog-name=ld gives a path. |
2678 | @@ -5508,14 +5772,18 @@ | |||
2679 | 5508 | +_LT_PATH_LD_GNU | 5772 | +_LT_PATH_LD_GNU |
2680 | 5509 | +AC_SUBST([LD]) | 5773 | +AC_SUBST([LD]) |
2681 | 5510 | 5774 | ||
2682 | 5511 | -# Source file extension for C test sources. | ||
2683 | 5512 | -ac_ext=c | ||
2684 | 5513 | +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) | 5775 | +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
2685 | 5514 | +])# LT_PATH_LD | 5776 | +])# LT_PATH_LD |
2686 | 5515 | 5777 | ||
2690 | 5516 | -# Object file extension for compiled C test sources. | 5778 | -# AC_LIBTOOL_LANG_C_CONFIG |
2691 | 5517 | -objext=o | 5779 | -# ------------------------ |
2692 | 5518 | -_LT_AC_TAGVAR(objext, $1)=$objext | 5780 | -# Ensure that the configuration vars for the C compiler are |
2693 | 5781 | -# suitably defined. Those variables are subsequently used by | ||
2694 | 5782 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
2695 | 5783 | -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | ||
2696 | 5784 | -AC_DEFUN([_LT_AC_LANG_C_CONFIG], | ||
2697 | 5785 | -[lt_save_CC="$CC" | ||
2698 | 5786 | -AC_LANG_PUSH(C) | ||
2699 | 5519 | +# Old names: | 5787 | +# Old names: |
2700 | 5520 | +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) | 5788 | +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) |
2701 | 5521 | +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) | 5789 | +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) |
2702 | @@ -5540,11 +5808,12 @@ | |||
2703 | 5540 | +with_gnu_ld=$lt_cv_prog_gnu_ld | 5808 | +with_gnu_ld=$lt_cv_prog_gnu_ld |
2704 | 5541 | +])# _LT_PATH_LD_GNU | 5809 | +])# _LT_PATH_LD_GNU |
2705 | 5542 | 5810 | ||
2708 | 5543 | -# Code to be used in simple compile tests | 5811 | -# Source file extension for C test sources. |
2709 | 5544 | -lt_simple_compile_test_code="int some_variable = 0;" | 5812 | -ac_ext=c |
2710 | 5545 | 5813 | ||
2713 | 5546 | -# Code to be used in simple link tests | 5814 | -# Object file extension for compiled C test sources. |
2714 | 5547 | -lt_simple_link_test_code='int main(){return(0);}' | 5815 | -objext=o |
2715 | 5816 | -_LT_AC_TAGVAR(objext, $1)=$objext | ||
2716 | 5548 | +# _LT_CMD_RELOAD | 5817 | +# _LT_CMD_RELOAD |
2717 | 5549 | +# -------------- | 5818 | +# -------------- |
2718 | 5550 | +# find reload flag for linker | 5819 | +# find reload flag for linker |
2719 | @@ -5572,11 +5841,11 @@ | |||
2720 | 5572 | +_LT_DECL([], [reload_cmds], [2])dnl | 5841 | +_LT_DECL([], [reload_cmds], [2])dnl |
2721 | 5573 | +])# _LT_CMD_RELOAD | 5842 | +])# _LT_CMD_RELOAD |
2722 | 5574 | 5843 | ||
2724 | 5575 | -_LT_AC_SYS_COMPILER | 5844 | -# Code to be used in simple compile tests |
2725 | 5845 | -lt_simple_compile_test_code="int some_variable = 0;" | ||
2726 | 5576 | 5846 | ||
2730 | 5577 | -# save warnings/boilerplate of simple test code | 5847 | -# Code to be used in simple link tests |
2731 | 5578 | -_LT_COMPILER_BOILERPLATE | 5848 | -lt_simple_link_test_code='int main(){return(0);}' |
2729 | 5579 | -_LT_LINKER_BOILERPLATE | ||
2732 | 5580 | +# _LT_CHECK_MAGIC_METHOD | 5849 | +# _LT_CHECK_MAGIC_METHOD |
2733 | 5581 | +# ---------------------- | 5850 | +# ---------------------- |
2734 | 5582 | +# how to check for library dependencies | 5851 | +# how to check for library dependencies |
2735 | @@ -5600,6 +5869,19 @@ | |||
2736 | 5600 | +# If you have `file' or equivalent on your system and you're not sure | 5869 | +# If you have `file' or equivalent on your system and you're not sure |
2737 | 5601 | +# whether `pass_all' will *always* work, you probably want this one. | 5870 | +# whether `pass_all' will *always* work, you probably want this one. |
2738 | 5602 | 5871 | ||
2739 | 5872 | -_LT_AC_SYS_COMPILER | ||
2740 | 5873 | +case $host_os in | ||
2741 | 5874 | +aix[[4-9]]*) | ||
2742 | 5875 | + lt_cv_deplibs_check_method=pass_all | ||
2743 | 5876 | + ;; | ||
2744 | 5877 | |||
2745 | 5878 | -# save warnings/boilerplate of simple test code | ||
2746 | 5879 | -_LT_COMPILER_BOILERPLATE | ||
2747 | 5880 | -_LT_LINKER_BOILERPLATE | ||
2748 | 5881 | +beos*) | ||
2749 | 5882 | + lt_cv_deplibs_check_method=pass_all | ||
2750 | 5883 | + ;; | ||
2751 | 5884 | |||
2752 | 5603 | -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 5885 | -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
2753 | 5604 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) | 5886 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
2754 | 5605 | -AC_LIBTOOL_PROG_CC_C_O($1) | 5887 | -AC_LIBTOOL_PROG_CC_C_O($1) |
2755 | @@ -5613,49 +5895,28 @@ | |||
2756 | 5613 | -# Report which library types will actually be built | 5895 | -# Report which library types will actually be built |
2757 | 5614 | -AC_MSG_CHECKING([if libtool supports shared libraries]) | 5896 | -AC_MSG_CHECKING([if libtool supports shared libraries]) |
2758 | 5615 | -AC_MSG_RESULT([$can_build_shared]) | 5897 | -AC_MSG_RESULT([$can_build_shared]) |
2759 | 5616 | +case $host_os in | ||
2760 | 5617 | +aix[[4-9]]*) | ||
2761 | 5618 | + lt_cv_deplibs_check_method=pass_all | ||
2762 | 5619 | + ;; | ||
2763 | 5620 | |||
2764 | 5621 | -AC_MSG_CHECKING([whether to build shared libraries]) | ||
2765 | 5622 | -test "$can_build_shared" = "no" && enable_shared=no | ||
2766 | 5623 | +beos*) | ||
2767 | 5624 | + lt_cv_deplibs_check_method=pass_all | ||
2768 | 5625 | + ;; | ||
2769 | 5626 | |||
2770 | 5627 | -# On AIX, shared libraries and static libraries use the same namespace, and | ||
2771 | 5628 | -# are all built from PIC. | ||
2772 | 5629 | -case $host_os in | ||
2773 | 5630 | -aix3*) | ||
2774 | 5631 | - test "$enable_shared" = yes && enable_static=no | ||
2775 | 5632 | - if test -n "$RANLIB"; then | ||
2776 | 5633 | - archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
2777 | 5634 | - postinstall_cmds='$RANLIB $lib' | ||
2778 | 5635 | - fi | ||
2779 | 5636 | +bsdi[[45]]*) | 5898 | +bsdi[[45]]*) |
2780 | 5637 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | 5899 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
2781 | 5638 | + lt_cv_file_magic_cmd='/usr/bin/file -L' | 5900 | + lt_cv_file_magic_cmd='/usr/bin/file -L' |
2782 | 5639 | + lt_cv_file_magic_test_file=/shlib/libc.so | 5901 | + lt_cv_file_magic_test_file=/shlib/libc.so |
2784 | 5640 | ;; | 5902 | + ;; |
2785 | 5641 | 5903 | ||
2793 | 5642 | -aix[[4-9]]*) | 5904 | -AC_MSG_CHECKING([whether to build shared libraries]) |
2794 | 5643 | - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 5905 | -test "$can_build_shared" = "no" && enable_shared=no |
2788 | 5644 | - test "$enable_shared" = yes && enable_static=no | ||
2789 | 5645 | - fi | ||
2790 | 5646 | - ;; | ||
2791 | 5647 | -esac | ||
2792 | 5648 | -AC_MSG_RESULT([$enable_shared]) | ||
2795 | 5649 | +cygwin*) | 5906 | +cygwin*) |
2796 | 5650 | + # func_win32_libid is a shell function defined in ltmain.sh | 5907 | + # func_win32_libid is a shell function defined in ltmain.sh |
2797 | 5651 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 5908 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
2798 | 5652 | + lt_cv_file_magic_cmd='func_win32_libid' | 5909 | + lt_cv_file_magic_cmd='func_win32_libid' |
2799 | 5653 | + ;; | 5910 | + ;; |
2800 | 5654 | 5911 | ||
2805 | 5655 | -AC_MSG_CHECKING([whether to build static libraries]) | 5912 | -# On AIX, shared libraries and static libraries use the same namespace, and |
2806 | 5656 | -# Make sure either enable_shared or enable_static is yes. | 5913 | -# are all built from PIC. |
2807 | 5657 | -test "$enable_shared" = yes || enable_static=yes | 5914 | -case $host_os in |
2808 | 5658 | -AC_MSG_RESULT([$enable_static]) | 5915 | -aix3*) |
2809 | 5916 | - test "$enable_shared" = yes && enable_static=no | ||
2810 | 5917 | - if test -n "$RANLIB"; then | ||
2811 | 5918 | - archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
2812 | 5919 | - postinstall_cmds='$RANLIB $lib' | ||
2813 | 5659 | +mingw* | pw32*) | 5920 | +mingw* | pw32*) |
2814 | 5660 | + # Base MSYS/MinGW do not provide the 'file' command needed by | 5921 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
2815 | 5661 | + # func_win32_libid shell function, so use a weaker test based on 'objdump', | 5922 | + # func_win32_libid shell function, so use a weaker test based on 'objdump', |
2816 | @@ -5666,37 +5927,70 @@ | |||
2817 | 5666 | + else | 5927 | + else |
2818 | 5667 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 5928 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
2819 | 5668 | + lt_cv_file_magic_cmd='$OBJDUMP -f' | 5929 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
2822 | 5669 | + fi | 5930 | fi |
2823 | 5670 | + ;; | 5931 | ;; |
2824 | 5671 | 5932 | ||
2826 | 5672 | -AC_LIBTOOL_CONFIG($1) | 5933 | -aix[[4-9]]*) |
2827 | 5934 | - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
2828 | 5935 | - test "$enable_shared" = yes && enable_static=no | ||
2829 | 5936 | - fi | ||
2830 | 5937 | - ;; | ||
2831 | 5938 | -esac | ||
2832 | 5939 | -AC_MSG_RESULT([$enable_shared]) | ||
2833 | 5673 | +cegcc) | 5940 | +cegcc) |
2834 | 5674 | + # use the weaker test based on 'objdump'. See mingw*. | 5941 | + # use the weaker test based on 'objdump'. See mingw*. |
2835 | 5675 | + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | 5942 | + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
2836 | 5676 | + lt_cv_file_magic_cmd='$OBJDUMP -f' | 5943 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
2837 | 5677 | + ;; | 5944 | + ;; |
2838 | 5678 | 5945 | ||
2839 | 5946 | -AC_MSG_CHECKING([whether to build static libraries]) | ||
2840 | 5947 | -# Make sure either enable_shared or enable_static is yes. | ||
2841 | 5948 | -test "$enable_shared" = yes || enable_static=yes | ||
2842 | 5949 | -AC_MSG_RESULT([$enable_static]) | ||
2843 | 5950 | +darwin* | rhapsody*) | ||
2844 | 5951 | + lt_cv_deplibs_check_method=pass_all | ||
2845 | 5952 | + ;; | ||
2846 | 5953 | |||
2847 | 5954 | -AC_LIBTOOL_CONFIG($1) | ||
2848 | 5955 | +freebsd* | dragonfly*) | ||
2849 | 5956 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
2850 | 5957 | + case $host_cpu in | ||
2851 | 5958 | + i*86 ) | ||
2852 | 5959 | + # Not sure whether the presence of OpenBSD here was a mistake. | ||
2853 | 5960 | + # Let's accept both of them until this is cleared up. | ||
2854 | 5961 | + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | ||
2855 | 5962 | + lt_cv_file_magic_cmd=/usr/bin/file | ||
2856 | 5963 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
2857 | 5964 | + ;; | ||
2858 | 5965 | + esac | ||
2859 | 5966 | + else | ||
2860 | 5967 | + lt_cv_deplibs_check_method=pass_all | ||
2861 | 5968 | + fi | ||
2862 | 5969 | + ;; | ||
2863 | 5970 | |||
2864 | 5679 | -AC_LANG_POP | 5971 | -AC_LANG_POP |
2865 | 5680 | -CC="$lt_save_CC" | 5972 | -CC="$lt_save_CC" |
2866 | 5681 | -])# AC_LIBTOOL_LANG_C_CONFIG | 5973 | -])# AC_LIBTOOL_LANG_C_CONFIG |
2868 | 5682 | +darwin* | rhapsody*) | 5974 | +gnu*) |
2869 | 5683 | + lt_cv_deplibs_check_method=pass_all | 5975 | + lt_cv_deplibs_check_method=pass_all |
2870 | 5684 | + ;; | 5976 | + ;; |
2871 | 5685 | 5977 | ||
2886 | 5686 | +freebsd* | dragonfly*) | 5978 | +hpux10.20* | hpux11*) |
2887 | 5687 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 5979 | + lt_cv_file_magic_cmd=/usr/bin/file |
2888 | 5688 | + case $host_cpu in | 5980 | + case $host_cpu in |
2889 | 5689 | + i*86 ) | 5981 | + ia64*) |
2890 | 5690 | + # Not sure whether the presence of OpenBSD here was a mistake. | 5982 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
2891 | 5691 | + # Let's accept both of them until this is cleared up. | 5983 | + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
2892 | 5692 | + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | 5984 | + ;; |
2893 | 5693 | + lt_cv_file_magic_cmd=/usr/bin/file | 5985 | + hppa*64*) |
2894 | 5694 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 5986 | + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
2895 | 5695 | + ;; | 5987 | + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
2896 | 5696 | + esac | 5988 | + ;; |
2897 | 5697 | + else | 5989 | + *) |
2898 | 5698 | + lt_cv_deplibs_check_method=pass_all | 5990 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
2899 | 5699 | + fi | 5991 | + lt_cv_file_magic_test_file=/usr/lib/libc.sl |
2900 | 5992 | + ;; | ||
2901 | 5993 | + esac | ||
2902 | 5700 | + ;; | 5994 | + ;; |
2903 | 5701 | 5995 | ||
2904 | 5702 | -# AC_LIBTOOL_LANG_CXX_CONFIG | 5996 | -# AC_LIBTOOL_LANG_CXX_CONFIG |
2905 | @@ -5729,8 +6023,9 @@ | |||
2906 | 5729 | -_LT_AC_TAGVAR(no_undefined_flag, $1)= | 6023 | -_LT_AC_TAGVAR(no_undefined_flag, $1)= |
2907 | 5730 | -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | 6024 | -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
2908 | 5731 | -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 6025 | -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
2911 | 5732 | +gnu*) | 6026 | +interix[[3-9]]*) |
2912 | 5733 | + lt_cv_deplibs_check_method=pass_all | 6027 | + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
2913 | 6028 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
2914 | 5734 | + ;; | 6029 | + ;; |
2915 | 5735 | 6030 | ||
2916 | 5736 | -# Dependencies to place before and after the object being linked: | 6031 | -# Dependencies to place before and after the object being linked: |
2917 | @@ -5740,34 +6035,6 @@ | |||
2918 | 5740 | -_LT_AC_TAGVAR(postdeps, $1)= | 6035 | -_LT_AC_TAGVAR(postdeps, $1)= |
2919 | 5741 | -_LT_AC_TAGVAR(compiler_lib_search_path, $1)= | 6036 | -_LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
2920 | 5742 | -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= | 6037 | -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= |
2921 | 5743 | +hpux10.20* | hpux11*) | ||
2922 | 5744 | + lt_cv_file_magic_cmd=/usr/bin/file | ||
2923 | 5745 | + case $host_cpu in | ||
2924 | 5746 | + ia64*) | ||
2925 | 5747 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | ||
2926 | 5748 | + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
2927 | 5749 | + ;; | ||
2928 | 5750 | + hppa*64*) | ||
2929 | 5751 | + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] | ||
2930 | 5752 | + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
2931 | 5753 | + ;; | ||
2932 | 5754 | + *) | ||
2933 | 5755 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | ||
2934 | 5756 | + lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
2935 | 5757 | + ;; | ||
2936 | 5758 | + esac | ||
2937 | 5759 | + ;; | ||
2938 | 5760 | |||
2939 | 5761 | -# Source file extension for C++ test sources. | ||
2940 | 5762 | -ac_ext=cpp | ||
2941 | 5763 | +interix[[3-9]]*) | ||
2942 | 5764 | + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
2943 | 5765 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
2944 | 5766 | + ;; | ||
2945 | 5767 | |||
2946 | 5768 | -# Object file extension for compiled C++ test sources. | ||
2947 | 5769 | -objext=o | ||
2948 | 5770 | -_LT_AC_TAGVAR(objext, $1)=$objext | ||
2949 | 5771 | +irix5* | irix6* | nonstopux*) | 6038 | +irix5* | irix6* | nonstopux*) |
2950 | 5772 | + case $LD in | 6039 | + case $LD in |
2951 | 5773 | + *-32|*"-32 ") libmagic=32-bit;; | 6040 | + *-32|*"-32 ") libmagic=32-bit;; |
2952 | @@ -5778,15 +6045,16 @@ | |||
2953 | 5778 | + lt_cv_deplibs_check_method=pass_all | 6045 | + lt_cv_deplibs_check_method=pass_all |
2954 | 5779 | + ;; | 6046 | + ;; |
2955 | 5780 | 6047 | ||
2958 | 5781 | -# Code to be used in simple compile tests | 6048 | -# Source file extension for C++ test sources. |
2959 | 5782 | -lt_simple_compile_test_code="int some_variable = 0;" | 6049 | -ac_ext=cpp |
2960 | 5783 | +# This must be Linux ELF. | 6050 | +# This must be Linux ELF. |
2961 | 5784 | +linux* | k*bsd*-gnu) | 6051 | +linux* | k*bsd*-gnu) |
2962 | 5785 | + lt_cv_deplibs_check_method=pass_all | 6052 | + lt_cv_deplibs_check_method=pass_all |
2963 | 5786 | + ;; | 6053 | + ;; |
2964 | 5787 | 6054 | ||
2967 | 5788 | -# Code to be used in simple link tests | 6055 | -# Object file extension for compiled C++ test sources. |
2968 | 5789 | -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' | 6056 | -objext=o |
2969 | 6057 | -_LT_AC_TAGVAR(objext, $1)=$objext | ||
2970 | 5790 | +netbsd* | netbsdelf*-gnu) | 6058 | +netbsd* | netbsdelf*-gnu) |
2971 | 5791 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 6059 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
2972 | 5792 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | 6060 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2973 | @@ -5795,51 +6063,22 @@ | |||
2974 | 5795 | + fi | 6063 | + fi |
2975 | 5796 | + ;; | 6064 | + ;; |
2976 | 5797 | 6065 | ||
2979 | 5798 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. | 6066 | -# Code to be used in simple compile tests |
2980 | 5799 | -_LT_AC_SYS_COMPILER | 6067 | -lt_simple_compile_test_code="int some_variable = 0;" |
2981 | 5800 | +newos6*) | 6068 | +newos6*) |
2982 | 5801 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | 6069 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
2983 | 5802 | + lt_cv_file_magic_cmd=/usr/bin/file | 6070 | + lt_cv_file_magic_cmd=/usr/bin/file |
2984 | 5803 | + lt_cv_file_magic_test_file=/usr/lib/libnls.so | 6071 | + lt_cv_file_magic_test_file=/usr/lib/libnls.so |
2985 | 5804 | + ;; | 6072 | + ;; |
2986 | 5805 | 6073 | ||
2990 | 5806 | -# save warnings/boilerplate of simple test code | 6074 | -# Code to be used in simple link tests |
2991 | 5807 | -_LT_COMPILER_BOILERPLATE | 6075 | -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' |
2989 | 5808 | -_LT_LINKER_BOILERPLATE | ||
2992 | 5809 | +*nto* | *qnx*) | 6076 | +*nto* | *qnx*) |
2993 | 5810 | + lt_cv_deplibs_check_method=pass_all | 6077 | + lt_cv_deplibs_check_method=pass_all |
2994 | 5811 | + ;; | 6078 | + ;; |
2995 | 5812 | 6079 | ||
3026 | 5813 | -# Allow CC to be a program name with arguments. | 6080 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3027 | 5814 | -lt_save_CC=$CC | 6081 | -_LT_AC_SYS_COMPILER |
2998 | 5815 | -lt_save_LD=$LD | ||
2999 | 5816 | -lt_save_GCC=$GCC | ||
3000 | 5817 | -GCC=$GXX | ||
3001 | 5818 | -lt_save_with_gnu_ld=$with_gnu_ld | ||
3002 | 5819 | -lt_save_path_LD=$lt_cv_path_LD | ||
3003 | 5820 | -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
3004 | 5821 | - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
3005 | 5822 | -else | ||
3006 | 5823 | - $as_unset lt_cv_prog_gnu_ld | ||
3007 | 5824 | -fi | ||
3008 | 5825 | -if test -n "${lt_cv_path_LDCXX+set}"; then | ||
3009 | 5826 | - lt_cv_path_LD=$lt_cv_path_LDCXX | ||
3010 | 5827 | -else | ||
3011 | 5828 | - $as_unset lt_cv_path_LD | ||
3012 | 5829 | -fi | ||
3013 | 5830 | -test -z "${LDCXX+set}" || LD=$LDCXX | ||
3014 | 5831 | -CC=${CXX-"c++"} | ||
3015 | 5832 | -compiler=$CC | ||
3016 | 5833 | -_LT_AC_TAGVAR(compiler, $1)=$CC | ||
3017 | 5834 | -_LT_CC_BASENAME([$compiler]) | ||
3018 | 5835 | - | ||
3019 | 5836 | -# We don't want -fno-exception wen compiling C++ code, so set the | ||
3020 | 5837 | -# no_builtin_flag separately | ||
3021 | 5838 | -if test "$GXX" = yes; then | ||
3022 | 5839 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
3023 | 5840 | -else | ||
3024 | 5841 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
3025 | 5842 | -fi | ||
3028 | 5843 | +openbsd*) | 6082 | +openbsd*) |
3029 | 5844 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 6083 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3030 | 5845 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | 6084 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
3031 | @@ -5848,36 +6087,25 @@ | |||
3032 | 5848 | + fi | 6087 | + fi |
3033 | 5849 | + ;; | 6088 | + ;; |
3034 | 5850 | 6089 | ||
3037 | 5851 | -if test "$GXX" = yes; then | 6090 | -# save warnings/boilerplate of simple test code |
3038 | 5852 | - # Set up default GNU C++ configuration | 6091 | -_LT_COMPILER_BOILERPLATE |
3039 | 6092 | -_LT_LINKER_BOILERPLATE | ||
3040 | 5853 | +osf3* | osf4* | osf5*) | 6093 | +osf3* | osf4* | osf5*) |
3041 | 5854 | + lt_cv_deplibs_check_method=pass_all | 6094 | + lt_cv_deplibs_check_method=pass_all |
3042 | 5855 | + ;; | 6095 | + ;; |
3045 | 5856 | 6096 | + | |
3044 | 5857 | - AC_PROG_LD | ||
3046 | 5858 | +rdos*) | 6097 | +rdos*) |
3047 | 5859 | + lt_cv_deplibs_check_method=pass_all | 6098 | + lt_cv_deplibs_check_method=pass_all |
3048 | 5860 | + ;; | 6099 | + ;; |
3055 | 5861 | 6100 | + | |
3050 | 5862 | - # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
3051 | 5863 | - # archiving commands below assume that GNU ld is being used. | ||
3052 | 5864 | - if test "$with_gnu_ld" = yes; then | ||
3053 | 5865 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3054 | 5866 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
3056 | 5867 | +solaris*) | 6101 | +solaris*) |
3057 | 5868 | + lt_cv_deplibs_check_method=pass_all | 6102 | + lt_cv_deplibs_check_method=pass_all |
3058 | 5869 | + ;; | 6103 | + ;; |
3062 | 5870 | 6104 | + | |
3060 | 5871 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
3061 | 5872 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3063 | 5873 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 6105 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3064 | 5874 | + lt_cv_deplibs_check_method=pass_all | 6106 | + lt_cv_deplibs_check_method=pass_all |
3065 | 5875 | + ;; | 6107 | + ;; |
3071 | 5876 | 6108 | + | |
3067 | 5877 | - # If archive_cmds runs LD, not CC, wlarc should be empty | ||
3068 | 5878 | - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
3069 | 5879 | - # investigate it a little bit more. (MM) | ||
3070 | 5880 | - wlarc='${wl}' | ||
3072 | 5881 | +sysv4 | sysv4.3*) | 6109 | +sysv4 | sysv4.3*) |
3073 | 5882 | + case $host_vendor in | 6110 | + case $host_vendor in |
3074 | 5883 | + motorola) | 6111 | + motorola) |
3075 | @@ -5904,17 +6132,7 @@ | |||
3076 | 5904 | + ;; | 6132 | + ;; |
3077 | 5905 | + esac | 6133 | + esac |
3078 | 5906 | + ;; | 6134 | + ;; |
3090 | 5907 | 6135 | + | |
3080 | 5908 | - # ancient GNU ld didn't support --whole-archive et. al. | ||
3081 | 5909 | - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
3082 | 5910 | - grep 'no-whole-archive' > /dev/null; then | ||
3083 | 5911 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
3084 | 5912 | - else | ||
3085 | 5913 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
3086 | 5914 | - fi | ||
3087 | 5915 | - else | ||
3088 | 5916 | - with_gnu_ld=no | ||
3089 | 5917 | - wlarc= | ||
3091 | 5918 | +tpf*) | 6136 | +tpf*) |
3092 | 5919 | + lt_cv_deplibs_check_method=pass_all | 6137 | + lt_cv_deplibs_check_method=pass_all |
3093 | 5920 | + ;; | 6138 | + ;; |
3094 | @@ -5923,25 +6141,40 @@ | |||
3095 | 5923 | +file_magic_cmd=$lt_cv_file_magic_cmd | 6141 | +file_magic_cmd=$lt_cv_file_magic_cmd |
3096 | 5924 | +deplibs_check_method=$lt_cv_deplibs_check_method | 6142 | +deplibs_check_method=$lt_cv_deplibs_check_method |
3097 | 5925 | +test -z "$deplibs_check_method" && deplibs_check_method=unknown | 6143 | +test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3106 | 5926 | 6144 | + | |
3099 | 5927 | - # A generic and very simple default shared library creation | ||
3100 | 5928 | - # command for GNU C++ for the case where it uses the native | ||
3101 | 5929 | - # linker, instead of GNU ld. If possible, this setting should | ||
3102 | 5930 | - # overridden to take advantage of the native linker features on | ||
3103 | 5931 | - # the platform it is being used on. | ||
3104 | 5932 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
3105 | 5933 | - fi | ||
3107 | 5934 | +_LT_DECL([], [deplibs_check_method], [1], | 6145 | +_LT_DECL([], [deplibs_check_method], [1], |
3108 | 5935 | + [Method to check whether dependent libraries are shared objects]) | 6146 | + [Method to check whether dependent libraries are shared objects]) |
3109 | 5936 | +_LT_DECL([], [file_magic_cmd], [1], | 6147 | +_LT_DECL([], [file_magic_cmd], [1], |
3110 | 5937 | + [Command to use when deplibs_check_method == "file_magic"]) | 6148 | + [Command to use when deplibs_check_method == "file_magic"]) |
3111 | 5938 | +])# _LT_CHECK_MAGIC_METHOD | 6149 | +])# _LT_CHECK_MAGIC_METHOD |
3112 | 5939 | 6150 | ||
3117 | 5940 | - # Commands to make compiler produce verbose output that lists | 6151 | -# Allow CC to be a program name with arguments. |
3118 | 5941 | - # what "hidden" libraries, object files and flags are used when | 6152 | -lt_save_CC=$CC |
3119 | 5942 | - # linking a shared library. | 6153 | -lt_save_LD=$LD |
3120 | 5943 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 6154 | -lt_save_GCC=$GCC |
3121 | 6155 | -GCC=$GXX | ||
3122 | 6156 | -lt_save_with_gnu_ld=$with_gnu_ld | ||
3123 | 6157 | -lt_save_path_LD=$lt_cv_path_LD | ||
3124 | 6158 | -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
3125 | 6159 | - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
3126 | 6160 | -else | ||
3127 | 6161 | - $as_unset lt_cv_prog_gnu_ld | ||
3128 | 6162 | -fi | ||
3129 | 6163 | -if test -n "${lt_cv_path_LDCXX+set}"; then | ||
3130 | 6164 | - lt_cv_path_LD=$lt_cv_path_LDCXX | ||
3131 | 6165 | -else | ||
3132 | 6166 | - $as_unset lt_cv_path_LD | ||
3133 | 6167 | -fi | ||
3134 | 6168 | -test -z "${LDCXX+set}" || LD=$LDCXX | ||
3135 | 6169 | -CC=${CXX-"c++"} | ||
3136 | 6170 | -compiler=$CC | ||
3137 | 6171 | -_LT_AC_TAGVAR(compiler, $1)=$CC | ||
3138 | 6172 | -_LT_CC_BASENAME([$compiler]) | ||
3139 | 5944 | 6173 | ||
3140 | 6174 | -# We don't want -fno-exception wen compiling C++ code, so set the | ||
3141 | 6175 | -# no_builtin_flag separately | ||
3142 | 6176 | -if test "$GXX" = yes; then | ||
3143 | 6177 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
3144 | 5945 | +# LT_PATH_NM | 6178 | +# LT_PATH_NM |
3145 | 5946 | +# ---------- | 6179 | +# ---------- |
3146 | 5947 | +# find the pathname to a BSD- or MS-compatible name lister | 6180 | +# find the pathname to a BSD- or MS-compatible name lister |
3147 | @@ -5951,38 +6184,7 @@ | |||
3148 | 5951 | +[if test -n "$NM"; then | 6184 | +[if test -n "$NM"; then |
3149 | 5952 | + # Let the user override the test. | 6185 | + # Let the user override the test. |
3150 | 5953 | + lt_cv_path_NM="$NM" | 6186 | + lt_cv_path_NM="$NM" |
3183 | 5954 | else | 6187 | +else |
3152 | 5955 | - GXX=no | ||
3153 | 5956 | - with_gnu_ld=no | ||
3154 | 5957 | - wlarc= | ||
3155 | 5958 | -fi | ||
3156 | 5959 | - | ||
3157 | 5960 | -# PORTME: fill in a description of your system's C++ link characteristics | ||
3158 | 5961 | -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
3159 | 5962 | -_LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
3160 | 5963 | -case $host_os in | ||
3161 | 5964 | - aix3*) | ||
3162 | 5965 | - # FIXME: insert proper C++ library support | ||
3163 | 5966 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3164 | 5967 | - ;; | ||
3165 | 5968 | - aix[[4-9]]*) | ||
3166 | 5969 | - if test "$host_cpu" = ia64; then | ||
3167 | 5970 | - # On IA64, the linker does run time linking by default, so we don't | ||
3168 | 5971 | - # have to do anything special. | ||
3169 | 5972 | - aix_use_runtimelinking=no | ||
3170 | 5973 | - exp_sym_flag='-Bexport' | ||
3171 | 5974 | - no_entry_flag="" | ||
3172 | 5975 | - else | ||
3173 | 5976 | - aix_use_runtimelinking=no | ||
3174 | 5977 | - | ||
3175 | 5978 | - # Test if we are trying to use run time linking or normal | ||
3176 | 5979 | - # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
3177 | 5980 | - # need to do runtime linking. | ||
3178 | 5981 | - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | ||
3179 | 5982 | - for ld_flag in $LDFLAGS; do | ||
3180 | 5983 | - case $ld_flag in | ||
3181 | 5984 | - *-brtl*) | ||
3182 | 5985 | - aix_use_runtimelinking=yes | ||
3184 | 5986 | + lt_nm_to_check="${ac_tool_prefix}nm" | 6188 | + lt_nm_to_check="${ac_tool_prefix}nm" |
3185 | 5987 | + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 6189 | + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3186 | 5988 | + lt_nm_to_check="$lt_nm_to_check nm" | 6190 | + lt_nm_to_check="$lt_nm_to_check nm" |
3187 | @@ -6007,16 +6209,13 @@ | |||
3188 | 6007 | + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 6209 | + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3189 | 6008 | + */dev/null*) | 6210 | + */dev/null*) |
3190 | 6009 | + lt_cv_path_NM="$tmp_nm -p" | 6211 | + lt_cv_path_NM="$tmp_nm -p" |
3193 | 6010 | break | 6212 | + break |
3194 | 6011 | ;; | 6213 | + ;; |
3195 | 6012 | + *) | 6214 | + *) |
3196 | 6013 | + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 6215 | + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3197 | 6014 | + continue # so that we can try to find one that supports BSD flags | 6216 | + continue # so that we can try to find one that supports BSD flags |
3198 | 6015 | + ;; | 6217 | + ;; |
3203 | 6016 | esac | 6218 | + esac |
3200 | 6017 | - done | ||
3201 | 6018 | - ;; | ||
3202 | 6019 | - esac | ||
3204 | 6020 | + ;; | 6219 | + ;; |
3205 | 6021 | + esac | 6220 | + esac |
3206 | 6022 | + fi | 6221 | + fi |
3207 | @@ -6027,21 +6226,21 @@ | |||
3208 | 6027 | +fi]) | 6226 | +fi]) |
3209 | 6028 | +if test "$lt_cv_path_NM" != "no"; then | 6227 | +if test "$lt_cv_path_NM" != "no"; then |
3210 | 6029 | + NM="$lt_cv_path_NM" | 6228 | + NM="$lt_cv_path_NM" |
3212 | 6030 | +else | 6229 | else |
3213 | 6230 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
3214 | 6031 | + # Didn't find any BSD compatible name lister, look for dumpbin. | 6231 | + # Didn't find any BSD compatible name lister, look for dumpbin. |
3215 | 6032 | + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) | 6232 | + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) |
3216 | 6033 | + AC_SUBST([DUMPBIN]) | 6233 | + AC_SUBST([DUMPBIN]) |
3217 | 6034 | + if test "$DUMPBIN" != ":"; then | 6234 | + if test "$DUMPBIN" != ":"; then |
3218 | 6035 | + NM="$DUMPBIN" | 6235 | + NM="$DUMPBIN" |
3219 | 6036 | + fi | 6236 | + fi |
3221 | 6037 | +fi | 6237 | fi |
3222 | 6038 | +test -z "$NM" && NM=nm | 6238 | +test -z "$NM" && NM=nm |
3223 | 6039 | +AC_SUBST([NM]) | 6239 | +AC_SUBST([NM]) |
3224 | 6040 | +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | 6240 | +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
3225 | 6041 | 6241 | ||
3229 | 6042 | - exp_sym_flag='-bexport' | 6242 | -if test "$GXX" = yes; then |
3230 | 6043 | - no_entry_flag='-bnoentry' | 6243 | - # Set up default GNU C++ configuration |
3228 | 6044 | - fi | ||
3231 | 6045 | +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | 6244 | +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
3232 | 6046 | + [lt_cv_nm_interface="BSD nm" | 6245 | + [lt_cv_nm_interface="BSD nm" |
3233 | 6047 | + echo "int some_variable = 0;" > conftest.$ac_ext | 6246 | + echo "int some_variable = 0;" > conftest.$ac_ext |
3234 | @@ -6066,57 +6265,13 @@ | |||
3235 | 6066 | +dnl AC_DEFUN([AM_PROG_NM], []) | 6265 | +dnl AC_DEFUN([AM_PROG_NM], []) |
3236 | 6067 | +dnl AC_DEFUN([AC_PROG_NM], []) | 6266 | +dnl AC_DEFUN([AC_PROG_NM], []) |
3237 | 6068 | 6267 | ||
3248 | 6069 | - # When large executables or shared objects are built, AIX ld can | 6268 | - AC_PROG_LD |
3239 | 6070 | - # have problems creating the table of contents. If linking a library | ||
3240 | 6071 | - # or program results in "error TOC overflow" add -mminimal-toc to | ||
3241 | 6072 | - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
3242 | 6073 | - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
3243 | 6074 | - | ||
3244 | 6075 | - _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
3245 | 6076 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3246 | 6077 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
3247 | 6078 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3249 | 6079 | 6269 | ||
3290 | 6080 | - if test "$GXX" = yes; then | 6270 | - # Check if GNU C++ uses GNU ld as the underlying linker, since the |
3291 | 6081 | - case $host_os in aix4.[[012]]|aix4.[[012]].*) | 6271 | - # archiving commands below assume that GNU ld is being used. |
3292 | 6082 | - # We only want to do this on AIX 4.2 and lower, the check | 6272 | - if test "$with_gnu_ld" = yes; then |
3293 | 6083 | - # below for broken collect2 doesn't work under 4.3+ | 6273 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
3294 | 6084 | - collect2name=`${CC} -print-prog-name=collect2` | 6274 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
3255 | 6085 | - if test -f "$collect2name" && \ | ||
3256 | 6086 | - strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
3257 | 6087 | - then | ||
3258 | 6088 | - # We have reworked collect2 | ||
3259 | 6089 | - : | ||
3260 | 6090 | - else | ||
3261 | 6091 | - # We have old collect2 | ||
3262 | 6092 | - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
3263 | 6093 | - # It fails to find uninstalled libraries when the uninstalled | ||
3264 | 6094 | - # path is not listed in the libpath. Setting hardcode_minus_L | ||
3265 | 6095 | - # to unsupported forces relinking | ||
3266 | 6096 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
3267 | 6097 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
3268 | 6098 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
3269 | 6099 | - fi | ||
3270 | 6100 | - ;; | ||
3271 | 6101 | - esac | ||
3272 | 6102 | - shared_flag='-shared' | ||
3273 | 6103 | - if test "$aix_use_runtimelinking" = yes; then | ||
3274 | 6104 | - shared_flag="$shared_flag "'${wl}-G' | ||
3275 | 6105 | - fi | ||
3276 | 6106 | - else | ||
3277 | 6107 | - # not using gcc | ||
3278 | 6108 | - if test "$host_cpu" = ia64; then | ||
3279 | 6109 | - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
3280 | 6110 | - # chokes on -Wl,-G. The following line is correct: | ||
3281 | 6111 | - shared_flag='-G' | ||
3282 | 6112 | - else | ||
3283 | 6113 | - if test "$aix_use_runtimelinking" = yes; then | ||
3284 | 6114 | - shared_flag='${wl}-G' | ||
3285 | 6115 | - else | ||
3286 | 6116 | - shared_flag='${wl}-bM:SRE' | ||
3287 | 6117 | - fi | ||
3288 | 6118 | - fi | ||
3289 | 6119 | - fi | ||
3295 | 6120 | +# LT_LIB_M | 6275 | +# LT_LIB_M |
3296 | 6121 | +# -------- | 6276 | +# -------- |
3297 | 6122 | +# check for math library | 6277 | +# check for math library |
3298 | @@ -6138,6 +6293,171 @@ | |||
3299 | 6138 | +AC_SUBST([LIBM]) | 6293 | +AC_SUBST([LIBM]) |
3300 | 6139 | +])# LT_LIB_M | 6294 | +])# LT_LIB_M |
3301 | 6140 | 6295 | ||
3302 | 6296 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
3303 | 6297 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3304 | 6298 | +# Old name: | ||
3305 | 6299 | +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) | ||
3306 | 6300 | +dnl aclocal-1.4 backwards compatibility: | ||
3307 | 6301 | +dnl AC_DEFUN([AC_CHECK_LIBM], []) | ||
3308 | 6302 | |||
3309 | 6303 | - # If archive_cmds runs LD, not CC, wlarc should be empty | ||
3310 | 6304 | - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
3311 | 6305 | - # investigate it a little bit more. (MM) | ||
3312 | 6306 | - wlarc='${wl}' | ||
3313 | 6307 | |||
3314 | 6308 | - # ancient GNU ld didn't support --whole-archive et. al. | ||
3315 | 6309 | - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
3316 | 6310 | - grep 'no-whole-archive' > /dev/null; then | ||
3317 | 6311 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
3318 | 6312 | - else | ||
3319 | 6313 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
3320 | 6314 | - fi | ||
3321 | 6315 | - else | ||
3322 | 6316 | - with_gnu_ld=no | ||
3323 | 6317 | - wlarc= | ||
3324 | 6318 | +# _LT_COMPILER_NO_RTTI([TAGNAME]) | ||
3325 | 6319 | +# ------------------------------- | ||
3326 | 6320 | +m4_defun([_LT_COMPILER_NO_RTTI], | ||
3327 | 6321 | +[m4_require([_LT_TAG_COMPILER])dnl | ||
3328 | 6322 | |||
3329 | 6323 | - # A generic and very simple default shared library creation | ||
3330 | 6324 | - # command for GNU C++ for the case where it uses the native | ||
3331 | 6325 | - # linker, instead of GNU ld. If possible, this setting should | ||
3332 | 6326 | - # overridden to take advantage of the native linker features on | ||
3333 | 6327 | - # the platform it is being used on. | ||
3334 | 6328 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
3335 | 6329 | - fi | ||
3336 | 6330 | +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
3337 | 6331 | |||
3338 | 6332 | - # Commands to make compiler produce verbose output that lists | ||
3339 | 6333 | - # what "hidden" libraries, object files and flags are used when | ||
3340 | 6334 | - # linking a shared library. | ||
3341 | 6335 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
3342 | 6336 | +if test "$GCC" = yes; then | ||
3343 | 6337 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
3344 | 6338 | |||
3345 | 6339 | -else | ||
3346 | 6340 | - GXX=no | ||
3347 | 6341 | - with_gnu_ld=no | ||
3348 | 6342 | - wlarc= | ||
3349 | 6343 | + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | ||
3350 | 6344 | + lt_cv_prog_compiler_rtti_exceptions, | ||
3351 | 6345 | + [-fno-rtti -fno-exceptions], [], | ||
3352 | 6346 | + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | ||
3353 | 6347 | fi | ||
3354 | 6348 | +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], | ||
3355 | 6349 | + [Compiler flag to turn off builtin functions]) | ||
3356 | 6350 | +])# _LT_COMPILER_NO_RTTI | ||
3357 | 6351 | |||
3358 | 6352 | -# PORTME: fill in a description of your system's C++ link characteristics | ||
3359 | 6353 | -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
3360 | 6354 | -_LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
3361 | 6355 | -case $host_os in | ||
3362 | 6356 | - aix3*) | ||
3363 | 6357 | - # FIXME: insert proper C++ library support | ||
3364 | 6358 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3365 | 6359 | - ;; | ||
3366 | 6360 | - aix[[4-9]]*) | ||
3367 | 6361 | - if test "$host_cpu" = ia64; then | ||
3368 | 6362 | - # On IA64, the linker does run time linking by default, so we don't | ||
3369 | 6363 | - # have to do anything special. | ||
3370 | 6364 | - aix_use_runtimelinking=no | ||
3371 | 6365 | - exp_sym_flag='-Bexport' | ||
3372 | 6366 | - no_entry_flag="" | ||
3373 | 6367 | - else | ||
3374 | 6368 | - aix_use_runtimelinking=no | ||
3375 | 6369 | |||
3376 | 6370 | - # Test if we are trying to use run time linking or normal | ||
3377 | 6371 | - # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
3378 | 6372 | - # need to do runtime linking. | ||
3379 | 6373 | - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | ||
3380 | 6374 | - for ld_flag in $LDFLAGS; do | ||
3381 | 6375 | - case $ld_flag in | ||
3382 | 6376 | - *-brtl*) | ||
3383 | 6377 | - aix_use_runtimelinking=yes | ||
3384 | 6378 | - break | ||
3385 | 6379 | - ;; | ||
3386 | 6380 | - esac | ||
3387 | 6381 | - done | ||
3388 | 6382 | - ;; | ||
3389 | 6383 | - esac | ||
3390 | 6384 | +# _LT_CMD_GLOBAL_SYMBOLS | ||
3391 | 6385 | +# ---------------------- | ||
3392 | 6386 | +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | ||
3393 | 6387 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
3394 | 6388 | +AC_REQUIRE([AC_PROG_CC])dnl | ||
3395 | 6389 | +AC_REQUIRE([LT_PATH_NM])dnl | ||
3396 | 6390 | +AC_REQUIRE([LT_PATH_LD])dnl | ||
3397 | 6391 | +m4_require([_LT_DECL_SED])dnl | ||
3398 | 6392 | +m4_require([_LT_DECL_EGREP])dnl | ||
3399 | 6393 | +m4_require([_LT_TAG_COMPILER])dnl | ||
3400 | 6394 | |||
3401 | 6395 | - exp_sym_flag='-bexport' | ||
3402 | 6396 | - no_entry_flag='-bnoentry' | ||
3403 | 6397 | - fi | ||
3404 | 6398 | +# Check for command to grab the raw symbol name followed by C symbol from nm. | ||
3405 | 6399 | +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | ||
3406 | 6400 | +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | ||
3407 | 6401 | +[ | ||
3408 | 6402 | +# These are sane defaults that work on at least a few old systems. | ||
3409 | 6403 | +# [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
3410 | 6404 | |||
3411 | 6405 | - # When large executables or shared objects are built, AIX ld can | ||
3412 | 6406 | - # have problems creating the table of contents. If linking a library | ||
3413 | 6407 | - # or program results in "error TOC overflow" add -mminimal-toc to | ||
3414 | 6408 | - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
3415 | 6409 | - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
3416 | 6410 | - | ||
3417 | 6411 | - _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
3418 | 6412 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3419 | 6413 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
3420 | 6414 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3421 | 6415 | +# Character class describing NM global symbol codes. | ||
3422 | 6416 | +symcode='[[BCDEGRST]]' | ||
3423 | 6417 | |||
3424 | 6418 | - if test "$GXX" = yes; then | ||
3425 | 6419 | - case $host_os in aix4.[[012]]|aix4.[[012]].*) | ||
3426 | 6420 | - # We only want to do this on AIX 4.2 and lower, the check | ||
3427 | 6421 | - # below for broken collect2 doesn't work under 4.3+ | ||
3428 | 6422 | - collect2name=`${CC} -print-prog-name=collect2` | ||
3429 | 6423 | - if test -f "$collect2name" && \ | ||
3430 | 6424 | - strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
3431 | 6425 | - then | ||
3432 | 6426 | - # We have reworked collect2 | ||
3433 | 6427 | - : | ||
3434 | 6428 | - else | ||
3435 | 6429 | - # We have old collect2 | ||
3436 | 6430 | - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
3437 | 6431 | - # It fails to find uninstalled libraries when the uninstalled | ||
3438 | 6432 | - # path is not listed in the libpath. Setting hardcode_minus_L | ||
3439 | 6433 | - # to unsupported forces relinking | ||
3440 | 6434 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
3441 | 6435 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
3442 | 6436 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
3443 | 6437 | - fi | ||
3444 | 6438 | - ;; | ||
3445 | 6439 | - esac | ||
3446 | 6440 | - shared_flag='-shared' | ||
3447 | 6441 | - if test "$aix_use_runtimelinking" = yes; then | ||
3448 | 6442 | - shared_flag="$shared_flag "'${wl}-G' | ||
3449 | 6443 | - fi | ||
3450 | 6444 | - else | ||
3451 | 6445 | - # not using gcc | ||
3452 | 6446 | - if test "$host_cpu" = ia64; then | ||
3453 | 6447 | - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
3454 | 6448 | - # chokes on -Wl,-G. The following line is correct: | ||
3455 | 6449 | - shared_flag='-G' | ||
3456 | 6450 | - else | ||
3457 | 6451 | - if test "$aix_use_runtimelinking" = yes; then | ||
3458 | 6452 | - shared_flag='${wl}-G' | ||
3459 | 6453 | - else | ||
3460 | 6454 | - shared_flag='${wl}-bM:SRE' | ||
3461 | 6455 | - fi | ||
3462 | 6456 | - fi | ||
3463 | 6457 | - fi | ||
3464 | 6458 | +# Regexp to match symbols that can be accessed directly from C. | ||
3465 | 6459 | +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | ||
3466 | 6460 | |||
3467 | 6141 | - # It seems that -bexpall does not export symbols beginning with | 6461 | - # It seems that -bexpall does not export symbols beginning with |
3468 | 6142 | - # underscore (_), so it is better to generate a list of symbols to export. | 6462 | - # underscore (_), so it is better to generate a list of symbols to export. |
3469 | 6143 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes | 6463 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
3470 | @@ -6148,10 +6468,41 @@ | |||
3471 | 6148 | - # Determine the default libpath from the value encoded in an empty executable. | 6468 | - # Determine the default libpath from the value encoded in an empty executable. |
3472 | 6149 | - _LT_AC_SYS_LIBPATH_AIX | 6469 | - _LT_AC_SYS_LIBPATH_AIX |
3473 | 6150 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 6470 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
3478 | 6151 | +# Old name: | 6471 | +# Define system-specific variables. |
3479 | 6152 | +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) | 6472 | +case $host_os in |
3480 | 6153 | +dnl aclocal-1.4 backwards compatibility: | 6473 | +aix*) |
3481 | 6154 | +dnl AC_DEFUN([AC_CHECK_LIBM], []) | 6474 | + symcode='[[BCDT]]' |
3482 | 6475 | + ;; | ||
3483 | 6476 | +cygwin* | mingw* | pw32* | cegcc*) | ||
3484 | 6477 | + symcode='[[ABCDGISTW]]' | ||
3485 | 6478 | + ;; | ||
3486 | 6479 | +hpux*) | ||
3487 | 6480 | + if test "$host_cpu" = ia64; then | ||
3488 | 6481 | + symcode='[[ABCDEGRST]]' | ||
3489 | 6482 | + fi | ||
3490 | 6483 | + ;; | ||
3491 | 6484 | +irix* | nonstopux*) | ||
3492 | 6485 | + symcode='[[BCDEGRST]]' | ||
3493 | 6486 | + ;; | ||
3494 | 6487 | +osf*) | ||
3495 | 6488 | + symcode='[[BCDEGQRST]]' | ||
3496 | 6489 | + ;; | ||
3497 | 6490 | +solaris*) | ||
3498 | 6491 | + symcode='[[BDRT]]' | ||
3499 | 6492 | + ;; | ||
3500 | 6493 | +sco3.2v5*) | ||
3501 | 6494 | + symcode='[[DT]]' | ||
3502 | 6495 | + ;; | ||
3503 | 6496 | +sysv4.2uw2*) | ||
3504 | 6497 | + symcode='[[DT]]' | ||
3505 | 6498 | + ;; | ||
3506 | 6499 | +sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
3507 | 6500 | + symcode='[[ABDT]]' | ||
3508 | 6501 | + ;; | ||
3509 | 6502 | +sysv4) | ||
3510 | 6503 | + symcode='[[DFNSTU]]' | ||
3511 | 6504 | + ;; | ||
3512 | 6505 | +esac | ||
3513 | 6155 | 6506 | ||
3514 | 6156 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 6507 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
3515 | 6157 | - else | 6508 | - else |
3516 | @@ -6175,6 +6526,11 @@ | |||
3517 | 6175 | - fi | 6526 | - fi |
3518 | 6176 | - fi | 6527 | - fi |
3519 | 6177 | - ;; | 6528 | - ;; |
3520 | 6529 | +# If we're using GNU nm, then use its standard symbol codes. | ||
3521 | 6530 | +case `$NM -V 2>&1` in | ||
3522 | 6531 | +*GNU* | *'with BFD'*) | ||
3523 | 6532 | + symcode='[[ABCDGIRSTW]]' ;; | ||
3524 | 6533 | +esac | ||
3525 | 6178 | 6534 | ||
3526 | 6179 | - beos*) | 6535 | - beos*) |
3527 | 6180 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 6536 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
3528 | @@ -6186,10 +6542,10 @@ | |||
3529 | 6186 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 6542 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3530 | 6187 | - fi | 6543 | - fi |
3531 | 6188 | - ;; | 6544 | - ;; |
3536 | 6189 | +# _LT_COMPILER_NO_RTTI([TAGNAME]) | 6545 | +# Transform an extracted symbol line into a proper C declaration. |
3537 | 6190 | +# ------------------------------- | 6546 | +# Some systems (esp. on ia64) link data and code symbols differently, |
3538 | 6191 | +m4_defun([_LT_COMPILER_NO_RTTI], | 6547 | +# so use this general approach. |
3539 | 6192 | +[m4_require([_LT_TAG_COMPILER])dnl | 6548 | +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
3540 | 6193 | 6549 | ||
3541 | 6194 | - chorus*) | 6550 | - chorus*) |
3542 | 6195 | - case $cc_basename in | 6551 | - case $cc_basename in |
3543 | @@ -6199,7 +6555,9 @@ | |||
3544 | 6199 | - ;; | 6555 | - ;; |
3545 | 6200 | - esac | 6556 | - esac |
3546 | 6201 | - ;; | 6557 | - ;; |
3548 | 6202 | +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | 6558 | +# Transform an extracted symbol line into symbol name and symbol address |
3549 | 6559 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
3550 | 6560 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
3551 | 6203 | 6561 | ||
3552 | 6204 | - cygwin* | mingw* | pw32*) | 6562 | - cygwin* | mingw* | pw32*) |
3553 | 6205 | - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 6563 | - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
3554 | @@ -6223,7 +6581,12 @@ | |||
3555 | 6223 | - else | 6581 | - else |
3556 | 6224 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 6582 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3557 | 6225 | - fi | 6583 | - fi |
3559 | 6226 | - ;; | 6584 | +# Handle CRLF in mingw tool chain |
3560 | 6585 | +opt_cr= | ||
3561 | 6586 | +case $build_os in | ||
3562 | 6587 | +mingw*) | ||
3563 | 6588 | + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
3564 | 6589 | ;; | ||
3565 | 6227 | - darwin* | rhapsody*) | 6590 | - darwin* | rhapsody*) |
3566 | 6228 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 6591 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3567 | 6229 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no | 6592 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
3568 | @@ -6258,8 +6621,7 @@ | |||
3569 | 6258 | - esac | 6621 | - esac |
3570 | 6259 | - fi | 6622 | - fi |
3571 | 6260 | - ;; | 6623 | - ;; |
3574 | 6261 | +if test "$GCC" = yes; then | 6624 | +esac |
3573 | 6262 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
3575 | 6263 | 6625 | ||
3576 | 6264 | - dgux*) | 6626 | - dgux*) |
3577 | 6265 | - case $cc_basename in | 6627 | - case $cc_basename in |
3578 | @@ -6321,51 +6683,281 @@ | |||
3579 | 6321 | - *) | 6683 | - *) |
3580 | 6322 | - if test "$GXX" = yes; then | 6684 | - if test "$GXX" = yes; then |
3581 | 6323 | - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 6685 | - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
3583 | 6324 | - else | 6686 | +# Try without a prefix underscore, then with it. |
3584 | 6687 | +for ac_symprfx in "" "_"; do | ||
3585 | 6688 | + | ||
3586 | 6689 | + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
3587 | 6690 | + symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
3588 | 6691 | + | ||
3589 | 6692 | + # Write the raw and C identifiers. | ||
3590 | 6693 | + if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
3591 | 6694 | + # Fake it for dumpbin and say T for any non-static function | ||
3592 | 6695 | + # and D for any global variable. | ||
3593 | 6696 | + # Also find C++ and __fastcall symbols from MSVC++, | ||
3594 | 6697 | + # which start with @ or ?. | ||
3595 | 6698 | + lt_cv_sys_global_symbol_pipe="$AWK ['"\ | ||
3596 | 6699 | +" {last_section=section; section=\$ 3};"\ | ||
3597 | 6700 | +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
3598 | 6701 | +" \$ 0!~/External *\|/{next};"\ | ||
3599 | 6702 | +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
3600 | 6703 | +" {if(hide[section]) next};"\ | ||
3601 | 6704 | +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
3602 | 6705 | +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
3603 | 6706 | +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
3604 | 6707 | +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
3605 | 6708 | +" ' prfx=^$ac_symprfx]" | ||
3606 | 6709 | + else | ||
3607 | 6710 | + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
3608 | 6711 | + fi | ||
3609 | 6712 | + | ||
3610 | 6713 | + # Check to see that the pipe works correctly. | ||
3611 | 6714 | + pipe_works=no | ||
3612 | 6715 | + | ||
3613 | 6716 | + rm -f conftest* | ||
3614 | 6717 | + cat > conftest.$ac_ext <<_LT_EOF | ||
3615 | 6718 | +#ifdef __cplusplus | ||
3616 | 6719 | +extern "C" { | ||
3617 | 6720 | +#endif | ||
3618 | 6721 | +char nm_test_var; | ||
3619 | 6722 | +void nm_test_func(void); | ||
3620 | 6723 | +void nm_test_func(void){} | ||
3621 | 6724 | +#ifdef __cplusplus | ||
3622 | 6725 | +} | ||
3623 | 6726 | +#endif | ||
3624 | 6727 | +int main(){nm_test_var='a';nm_test_func();return(0);} | ||
3625 | 6728 | +_LT_EOF | ||
3626 | 6729 | + | ||
3627 | 6730 | + if AC_TRY_EVAL(ac_compile); then | ||
3628 | 6731 | + # Now try to grab the symbols. | ||
3629 | 6732 | + nlist=conftest.nm | ||
3630 | 6733 | + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | ||
3631 | 6734 | + # Try sorting and uniquifying the output. | ||
3632 | 6735 | + if sort "$nlist" | uniq > "$nlist"T; then | ||
3633 | 6736 | + mv -f "$nlist"T "$nlist" | ||
3634 | 6737 | else | ||
3635 | 6325 | - # FIXME: insert proper C++ library support | 6738 | - # FIXME: insert proper C++ library support |
3636 | 6326 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 6739 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3639 | 6327 | - fi | 6740 | + rm -f "$nlist"T |
3640 | 6328 | - ;; | 6741 | + fi |
3641 | 6742 | + | ||
3642 | 6743 | + # Make sure that we snagged all the symbols we need. | ||
3643 | 6744 | + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
3644 | 6745 | + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
3645 | 6746 | + cat <<_LT_EOF > conftest.$ac_ext | ||
3646 | 6747 | +#ifdef __cplusplus | ||
3647 | 6748 | +extern "C" { | ||
3648 | 6749 | +#endif | ||
3649 | 6750 | + | ||
3650 | 6751 | +_LT_EOF | ||
3651 | 6752 | + # Now generate the symbol file. | ||
3652 | 6753 | + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
3653 | 6754 | + | ||
3654 | 6755 | + cat <<_LT_EOF >> conftest.$ac_ext | ||
3655 | 6756 | + | ||
3656 | 6757 | +/* The mapping between symbol names and symbols. */ | ||
3657 | 6758 | +const struct { | ||
3658 | 6759 | + const char *name; | ||
3659 | 6760 | + void *address; | ||
3660 | 6761 | +} | ||
3661 | 6762 | +lt__PROGRAM__LTX_preloaded_symbols[[]] = | ||
3662 | 6763 | +{ | ||
3663 | 6764 | + { "@PROGRAM@", (void *) 0 }, | ||
3664 | 6765 | +_LT_EOF | ||
3665 | 6766 | + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
3666 | 6767 | + cat <<\_LT_EOF >> conftest.$ac_ext | ||
3667 | 6768 | + {0, (void *) 0} | ||
3668 | 6769 | +}; | ||
3669 | 6770 | + | ||
3670 | 6771 | +/* This works around a problem in FreeBSD linker */ | ||
3671 | 6772 | +#ifdef FREEBSD_WORKAROUND | ||
3672 | 6773 | +static const void *lt_preloaded_setup() { | ||
3673 | 6774 | + return lt__PROGRAM__LTX_preloaded_symbols; | ||
3674 | 6775 | +} | ||
3675 | 6776 | +#endif | ||
3676 | 6777 | + | ||
3677 | 6778 | +#ifdef __cplusplus | ||
3678 | 6779 | +} | ||
3679 | 6780 | +#endif | ||
3680 | 6781 | +_LT_EOF | ||
3681 | 6782 | + # Now try linking the two files. | ||
3682 | 6783 | + mv conftest.$ac_objext conftstm.$ac_objext | ||
3683 | 6784 | + lt_save_LIBS="$LIBS" | ||
3684 | 6785 | + lt_save_CFLAGS="$CFLAGS" | ||
3685 | 6786 | + LIBS="conftstm.$ac_objext" | ||
3686 | 6787 | + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | ||
3687 | 6788 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | ||
3688 | 6789 | + pipe_works=yes | ||
3689 | 6790 | + fi | ||
3690 | 6791 | + LIBS="$lt_save_LIBS" | ||
3691 | 6792 | + CFLAGS="$lt_save_CFLAGS" | ||
3692 | 6793 | + else | ||
3693 | 6794 | + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | ||
3694 | 6795 | + fi | ||
3695 | 6796 | + else | ||
3696 | 6797 | + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | ||
3697 | 6798 | + fi | ||
3698 | 6799 | + else | ||
3699 | 6800 | + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | ||
3700 | 6801 | + fi | ||
3701 | 6802 | + else | ||
3702 | 6803 | + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | ||
3703 | 6804 | + cat conftest.$ac_ext >&5 | ||
3704 | 6805 | + fi | ||
3705 | 6806 | + rm -rf conftest* conftst* | ||
3706 | 6807 | + | ||
3707 | 6808 | + # Do not use the global_symbol_pipe unless it works. | ||
3708 | 6809 | + if test "$pipe_works" = yes; then | ||
3709 | 6810 | + break | ||
3710 | 6811 | + else | ||
3711 | 6812 | + lt_cv_sys_global_symbol_pipe= | ||
3712 | 6813 | + fi | ||
3713 | 6814 | +done | ||
3714 | 6815 | +]) | ||
3715 | 6816 | +if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
3716 | 6817 | + lt_cv_sys_global_symbol_to_cdecl= | ||
3717 | 6818 | +fi | ||
3718 | 6819 | +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
3719 | 6820 | + AC_MSG_RESULT(failed) | ||
3720 | 6821 | +else | ||
3721 | 6822 | + AC_MSG_RESULT(ok) | ||
3722 | 6823 | +fi | ||
3723 | 6824 | + | ||
3724 | 6825 | +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | ||
3725 | 6826 | + [Take the output of nm and produce a listing of raw symbols and C names]) | ||
3726 | 6827 | +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | ||
3727 | 6828 | + [Transform the output of nm in a proper C declaration]) | ||
3728 | 6829 | +_LT_DECL([global_symbol_to_c_name_address], | ||
3729 | 6830 | + [lt_cv_sys_global_symbol_to_c_name_address], [1], | ||
3730 | 6831 | + [Transform the output of nm in a C name address pair]) | ||
3731 | 6832 | +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], | ||
3732 | 6833 | + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | ||
3733 | 6834 | + [Transform the output of nm in a C name address pair when lib prefix is needed]) | ||
3734 | 6835 | +]) # _LT_CMD_GLOBAL_SYMBOLS | ||
3735 | 6836 | + | ||
3736 | 6837 | + | ||
3737 | 6838 | +# _LT_COMPILER_PIC([TAGNAME]) | ||
3738 | 6839 | +# --------------------------- | ||
3739 | 6840 | +m4_defun([_LT_COMPILER_PIC], | ||
3740 | 6841 | +[m4_require([_LT_TAG_COMPILER])dnl | ||
3741 | 6842 | +_LT_TAGVAR(lt_prog_compiler_wl, $1)= | ||
3742 | 6843 | +_LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
3743 | 6844 | +_LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
3744 | 6845 | + | ||
3745 | 6846 | +AC_MSG_CHECKING([for $compiler option to produce PIC]) | ||
3746 | 6847 | +m4_if([$1], [CXX], [ | ||
3747 | 6848 | + # C++ specific cases for pic, static, wl, etc. | ||
3748 | 6849 | + if test "$GXX" = yes; then | ||
3749 | 6850 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
3750 | 6851 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
3751 | 6852 | + | ||
3752 | 6853 | + case $host_os in | ||
3753 | 6854 | + aix*) | ||
3754 | 6855 | + # All AIX code is PIC. | ||
3755 | 6856 | + if test "$host_cpu" = ia64; then | ||
3756 | 6857 | + # AIX 5 now supports IA64 processor | ||
3757 | 6858 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
3758 | 6859 | fi | ||
3759 | 6860 | ;; | ||
3760 | 6329 | - esac | 6861 | - esac |
3761 | 6330 | - ;; | 6862 | - ;; |
3762 | 6331 | - hpux10*|hpux11*) | 6863 | - hpux10*|hpux11*) |
3763 | 6332 | - if test $with_gnu_ld = no; then | 6864 | - if test $with_gnu_ld = no; then |
3764 | 6333 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6865 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
3765 | 6334 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 6866 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3766 | 6335 | + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | ||
3767 | 6336 | + lt_cv_prog_compiler_rtti_exceptions, | ||
3768 | 6337 | + [-fno-rtti -fno-exceptions], [], | ||
3769 | 6338 | + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | ||
3770 | 6339 | +fi | ||
3771 | 6340 | +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], | ||
3772 | 6341 | + [Compiler flag to turn off builtin functions]) | ||
3773 | 6342 | +])# _LT_COMPILER_NO_RTTI | ||
3774 | 6343 | 6867 | ||
3776 | 6344 | - case $host_cpu in | 6868 | + amigaos*) |
3777 | 6869 | case $host_cpu in | ||
3778 | 6345 | - hppa*64*|ia64*) ;; | 6870 | - hppa*64*|ia64*) ;; |
3779 | 6346 | - *) | 6871 | - *) |
3780 | 6347 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6872 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
3783 | 6348 | - ;; | 6873 | + powerpc) |
3784 | 6349 | - esac | 6874 | + # see comment about AmigaOS4 .so support |
3785 | 6875 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
3786 | 6876 | + ;; | ||
3787 | 6877 | + m68k) | ||
3788 | 6878 | + # FIXME: we need at least 68020 code to build shared libraries, but | ||
3789 | 6879 | + # adding the `-m68020' flag to GCC prevents building anything better, | ||
3790 | 6880 | + # like `-m68040'. | ||
3791 | 6881 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
3792 | 6882 | ;; | ||
3793 | 6883 | esac | ||
3794 | 6350 | - fi | 6884 | - fi |
3795 | 6351 | - case $host_cpu in | 6885 | - case $host_cpu in |
3796 | 6352 | - hppa*64*|ia64*) | 6886 | - hppa*64*|ia64*) |
3797 | 6353 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no | 6887 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
3798 | 6354 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6888 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3801 | 6355 | - ;; | 6889 | + ;; |
3802 | 6356 | - *) | 6890 | + |
3803 | 6891 | + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
3804 | 6892 | + # PIC is the default for these OSes. | ||
3805 | 6893 | + ;; | ||
3806 | 6894 | + mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
3807 | 6895 | + # This hack is so that the source file can tell whether it is being | ||
3808 | 6896 | + # built for inclusion in a dll (and should export symbols for example). | ||
3809 | 6897 | + # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
3810 | 6898 | + # (--disable-auto-import) libraries | ||
3811 | 6899 | + m4_if([$1], [GCJ], [], | ||
3812 | 6900 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
3813 | 6901 | + ;; | ||
3814 | 6902 | + darwin* | rhapsody*) | ||
3815 | 6903 | + # PIC is the default on this platform | ||
3816 | 6904 | + # Common symbols not allowed in MH_DYLIB files | ||
3817 | 6905 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
3818 | 6906 | + ;; | ||
3819 | 6907 | + *djgpp*) | ||
3820 | 6908 | + # DJGPP does not support shared libraries at all | ||
3821 | 6909 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
3822 | 6910 | + ;; | ||
3823 | 6911 | + interix[[3-9]]*) | ||
3824 | 6912 | + # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
3825 | 6913 | + # Instead, we relocate shared libraries at runtime. | ||
3826 | 6914 | + ;; | ||
3827 | 6915 | + sysv4*MP*) | ||
3828 | 6916 | + if test -d /usr/nec; then | ||
3829 | 6917 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
3830 | 6918 | + fi | ||
3831 | 6919 | + ;; | ||
3832 | 6920 | + hpux*) | ||
3833 | 6921 | + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
3834 | 6922 | + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
3835 | 6923 | + # sets the default TLS model and affects inlining. | ||
3836 | 6924 | + case $host_cpu in | ||
3837 | 6925 | + hppa*64*) | ||
3838 | 6926 | + ;; | ||
3839 | 6927 | + *) | ||
3840 | 6928 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
3841 | 6929 | + ;; | ||
3842 | 6930 | + esac | ||
3843 | 6931 | + ;; | ||
3844 | 6932 | + *qnx* | *nto*) | ||
3845 | 6933 | + # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
3846 | 6934 | + # it will coredump. | ||
3847 | 6935 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
3848 | 6936 | ;; | ||
3849 | 6937 | *) | ||
3850 | 6357 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6938 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
3851 | 6358 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 6939 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
3852 | 6359 | - # but as the default | 6940 | - # but as the default |
3853 | 6360 | - # location of the library. | 6941 | - # location of the library. |
3857 | 6361 | - ;; | 6942 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3858 | 6362 | - esac | 6943 | ;; |
3859 | 6363 | 6944 | esac | |
3860 | 6945 | - | ||
3861 | 6364 | - case $cc_basename in | 6946 | - case $cc_basename in |
3862 | 6365 | - CC*) | 6947 | - CC*) |
3863 | 6366 | - # FIXME: insert proper C++ library support | 6948 | - # FIXME: insert proper C++ library support |
3864 | 6367 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 6949 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3866 | 6368 | - ;; | 6950 | + else |
3867 | 6951 | + case $host_os in | ||
3868 | 6952 | + aix[[4-9]]*) | ||
3869 | 6953 | + # All AIX code is PIC. | ||
3870 | 6954 | + if test "$host_cpu" = ia64; then | ||
3871 | 6955 | + # AIX 5 now supports IA64 processor | ||
3872 | 6956 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
3873 | 6957 | + else | ||
3874 | 6958 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
3875 | 6959 | + fi | ||
3876 | 6960 | ;; | ||
3877 | 6369 | - aCC*) | 6961 | - aCC*) |
3878 | 6370 | - case $host_cpu in | 6962 | - case $host_cpu in |
3879 | 6371 | - hppa*64*) | 6963 | - hppa*64*) |
3880 | @@ -6376,8 +6968,13 @@ | |||
3881 | 6376 | - ;; | 6968 | - ;; |
3882 | 6377 | - *) | 6969 | - *) |
3883 | 6378 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6970 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3886 | 6379 | - ;; | 6971 | + chorus*) |
3887 | 6380 | - esac | 6972 | + case $cc_basename in |
3888 | 6973 | + cxch68*) | ||
3889 | 6974 | + # Green Hills C++ Compiler | ||
3890 | 6975 | + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | ||
3891 | 6976 | ;; | ||
3892 | 6977 | esac | ||
3893 | 6381 | - # Commands to make compiler produce verbose output that lists | 6978 | - # Commands to make compiler produce verbose output that lists |
3894 | 6382 | - # what "hidden" libraries, object files and flags are used when | 6979 | - # what "hidden" libraries, object files and flags are used when |
3895 | 6383 | - # linking a shared library. | 6980 | - # linking a shared library. |
3896 | @@ -6387,21 +6984,52 @@ | |||
3897 | 6387 | - # from the output so that they don't get included in the library | 6984 | - # from the output so that they don't get included in the library |
3898 | 6388 | - # dependencies. | 6985 | - # dependencies. |
3899 | 6389 | - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 6986 | - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
3901 | 6390 | - ;; | 6987 | ;; |
3902 | 6391 | - *) | 6988 | - *) |
3903 | 6392 | - if test "$GXX" = yes; then | 6989 | - if test "$GXX" = yes; then |
3904 | 6393 | - if test $with_gnu_ld = no; then | 6990 | - if test $with_gnu_ld = no; then |
3906 | 6394 | - case $host_cpu in | 6991 | + dgux*) |
3907 | 6992 | + case $cc_basename in | ||
3908 | 6993 | + ec++*) | ||
3909 | 6994 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
3910 | 6995 | + ;; | ||
3911 | 6996 | + ghcx*) | ||
3912 | 6997 | + # Green Hills C++ Compiler | ||
3913 | 6998 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
3914 | 6999 | + ;; | ||
3915 | 7000 | + *) | ||
3916 | 7001 | + ;; | ||
3917 | 7002 | + esac | ||
3918 | 7003 | + ;; | ||
3919 | 7004 | + freebsd* | dragonfly*) | ||
3920 | 7005 | + # FreeBSD uses GNU C++ | ||
3921 | 7006 | + ;; | ||
3922 | 7007 | + hpux9* | hpux10* | hpux11*) | ||
3923 | 7008 | + case $cc_basename in | ||
3924 | 7009 | + CC*) | ||
3925 | 7010 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
3926 | 7011 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
3927 | 7012 | + if test "$host_cpu" != ia64; then | ||
3928 | 7013 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
3929 | 7014 | + fi | ||
3930 | 7015 | + ;; | ||
3931 | 7016 | + aCC*) | ||
3932 | 7017 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
3933 | 7018 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
3934 | 7019 | case $host_cpu in | ||
3935 | 6395 | - hppa*64*) | 7020 | - hppa*64*) |
3936 | 6396 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 7021 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3937 | 6397 | - ;; | 7022 | - ;; |
3938 | 6398 | - ia64*) | 7023 | - ia64*) |
3939 | 6399 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 7024 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3942 | 6400 | - ;; | 7025 | + hppa*64*|ia64*) |
3943 | 6401 | - *) | 7026 | + # +Z the default |
3944 | 7027 | ;; | ||
3945 | 7028 | *) | ||
3946 | 6402 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 7029 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3949 | 6403 | - ;; | 7030 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
3950 | 6404 | - esac | 7031 | ;; |
3951 | 7032 | esac | ||
3952 | 6405 | - fi | 7033 | - fi |
3953 | 6406 | - else | 7034 | - else |
3954 | 6407 | - # FIXME: insert proper C++ library support | 7035 | - # FIXME: insert proper C++ library support |
3955 | @@ -6496,7 +7124,10 @@ | |||
3956 | 6496 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 7124 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
3957 | 6497 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 7125 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
3958 | 6498 | - ;; | 7126 | - ;; |
3960 | 6499 | - esac | 7127 | + ;; |
3961 | 7128 | + *) | ||
3962 | 7129 | + ;; | ||
3963 | 7130 | esac | ||
3964 | 6500 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 7131 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3965 | 6501 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 7132 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3966 | 6502 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 7133 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
3967 | @@ -6515,27 +7146,11 @@ | |||
3968 | 6515 | - # Compaq C++ | 7146 | - # Compaq C++ |
3969 | 6516 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 7147 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
3970 | 6517 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | 7148 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
3982 | 6518 | +# _LT_CMD_GLOBAL_SYMBOLS | 7149 | - |
3972 | 6519 | +# ---------------------- | ||
3973 | 6520 | +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | ||
3974 | 6521 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
3975 | 6522 | +AC_REQUIRE([AC_PROG_CC])dnl | ||
3976 | 6523 | +AC_REQUIRE([LT_PATH_NM])dnl | ||
3977 | 6524 | +AC_REQUIRE([LT_PATH_LD])dnl | ||
3978 | 6525 | +m4_require([_LT_DECL_SED])dnl | ||
3979 | 6526 | +m4_require([_LT_DECL_EGREP])dnl | ||
3980 | 6527 | +m4_require([_LT_TAG_COMPILER])dnl | ||
3981 | 6528 | |||
3983 | 6529 | - runpath_var=LD_RUN_PATH | 7150 | - runpath_var=LD_RUN_PATH |
3984 | 6530 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 7151 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
3985 | 6531 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 7152 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3993 | 6532 | +# Check for command to grab the raw symbol name followed by C symbol from nm. | 7153 | - |
3987 | 6533 | +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | ||
3988 | 6534 | +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | ||
3989 | 6535 | +[ | ||
3990 | 6536 | +# These are sane defaults that work on at least a few old systems. | ||
3991 | 6537 | +# [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
3992 | 6538 | |||
3994 | 6539 | - # Commands to make compiler produce verbose output that lists | 7154 | - # Commands to make compiler produce verbose output that lists |
3995 | 6540 | - # what "hidden" libraries, object files and flags are used when | 7155 | - # what "hidden" libraries, object files and flags are used when |
3996 | 6541 | - # linking a shared library. | 7156 | - # linking a shared library. |
3997 | @@ -6545,7 +7160,7 @@ | |||
3998 | 6545 | - # from the output so that they don't get included in the library | 7160 | - # from the output so that they don't get included in the library |
3999 | 6546 | - # dependencies. | 7161 | - # dependencies. |
4000 | 6547 | - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 7162 | - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4002 | 6548 | - ;; | 7163 | ;; |
4003 | 6549 | - *) | 7164 | - *) |
4004 | 6550 | - case `$CC -V 2>&1 | sed 5q` in | 7165 | - case `$CC -V 2>&1 | sed 5q` in |
4005 | 6551 | - *Sun\ C*) | 7166 | - *Sun\ C*) |
4006 | @@ -6568,7 +7183,10 @@ | |||
4007 | 6568 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | 7183 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
4008 | 6569 | - ;; | 7184 | - ;; |
4009 | 6570 | - esac | 7185 | - esac |
4011 | 6571 | - ;; | 7186 | + interix*) |
4012 | 7187 | + # This is c89, which is MS Visual C++ (no shared libs) | ||
4013 | 7188 | + # Anyone wants to do a port? | ||
4014 | 7189 | ;; | ||
4015 | 6572 | - esac | 7190 | - esac |
4016 | 6573 | - ;; | 7191 | - ;; |
4017 | 6574 | - lynxos*) | 7192 | - lynxos*) |
4018 | @@ -6584,11 +7202,71 @@ | |||
4019 | 6584 | - cxx*) | 7202 | - cxx*) |
4020 | 6585 | - # FIXME: insert proper C++ library support | 7203 | - # FIXME: insert proper C++ library support |
4021 | 6586 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 7204 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4023 | 6587 | - ;; | 7205 | + irix5* | irix6* | nonstopux*) |
4024 | 7206 | + case $cc_basename in | ||
4025 | 7207 | + CC*) | ||
4026 | 7208 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4027 | 7209 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4028 | 7210 | + # CC pic flag -KPIC is the default. | ||
4029 | 7211 | + ;; | ||
4030 | 7212 | + *) | ||
4031 | 7213 | + ;; | ||
4032 | 7214 | + esac | ||
4033 | 7215 | ;; | ||
4034 | 6588 | - *) | 7216 | - *) |
4035 | 6589 | - # FIXME: insert proper C++ library support | 7217 | - # FIXME: insert proper C++ library support |
4036 | 6590 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 7218 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4038 | 6591 | - ;; | 7219 | + linux* | k*bsd*-gnu) |
4039 | 7220 | + case $cc_basename in | ||
4040 | 7221 | + KCC*) | ||
4041 | 7222 | + # KAI C++ Compiler | ||
4042 | 7223 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
4043 | 7224 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4044 | 7225 | + ;; | ||
4045 | 7226 | + ecpc* ) | ||
4046 | 7227 | + # old Intel C++ for x86_64 which still supported -KPIC. | ||
4047 | 7228 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4048 | 7229 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4049 | 7230 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4050 | 7231 | + ;; | ||
4051 | 7232 | + icpc* ) | ||
4052 | 7233 | + # Intel C++, used to be incompatible with GCC. | ||
4053 | 7234 | + # ICC 10 doesn't accept -KPIC any more. | ||
4054 | 7235 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4055 | 7236 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4056 | 7237 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4057 | 7238 | + ;; | ||
4058 | 7239 | + pgCC* | pgcpp*) | ||
4059 | 7240 | + # Portland Group C++ compiler | ||
4060 | 7241 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4061 | 7242 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
4062 | 7243 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4063 | 7244 | + ;; | ||
4064 | 7245 | + cxx*) | ||
4065 | 7246 | + # Compaq C++ | ||
4066 | 7247 | + # Make sure the PIC flag is empty. It appears that all Alpha | ||
4067 | 7248 | + # Linux and Compaq Tru64 Unix objects are PIC. | ||
4068 | 7249 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4069 | 7250 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4070 | 7251 | + ;; | ||
4071 | 7252 | + xlc* | xlC*) | ||
4072 | 7253 | + # IBM XL 8.0 on PPC | ||
4073 | 7254 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4074 | 7255 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | ||
4075 | 7256 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | ||
4076 | 7257 | + ;; | ||
4077 | 7258 | + *) | ||
4078 | 7259 | + case `$CC -V 2>&1 | sed 5q` in | ||
4079 | 7260 | + *Sun\ C*) | ||
4080 | 7261 | + # Sun C++ 5.9 | ||
4081 | 7262 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4082 | 7263 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4083 | 7264 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
4084 | 7265 | + ;; | ||
4085 | 7266 | + esac | ||
4086 | 7267 | + ;; | ||
4087 | 7268 | + esac | ||
4088 | 7269 | ;; | ||
4089 | 6592 | - esac | 7270 | - esac |
4090 | 6593 | - ;; | 7271 | - ;; |
4091 | 6594 | - netbsd*) | 7272 | - netbsd*) |
4092 | @@ -6661,7 +7339,8 @@ | |||
4093 | 6661 | - # from the output so that they don't get included in the library | 7339 | - # from the output so that they don't get included in the library |
4094 | 6662 | - # dependencies. | 7340 | - # dependencies. |
4095 | 6663 | - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 7341 | - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4097 | 6664 | - ;; | 7342 | + lynxos*) |
4098 | 7343 | ;; | ||
4099 | 6665 | - *) | 7344 | - *) |
4100 | 6666 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 7345 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
4101 | 6667 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 7346 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4102 | @@ -6674,14 +7353,13 @@ | |||
4103 | 6674 | - # what "hidden" libraries, object files and flags are used when | 7353 | - # what "hidden" libraries, object files and flags are used when |
4104 | 6675 | - # linking a shared library. | 7354 | - # linking a shared library. |
4105 | 6676 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 7355 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
4109 | 6677 | +# Character class describing NM global symbol codes. | 7356 | - |
4107 | 6678 | +symcode='[[BCDEGRST]]' | ||
4108 | 6679 | |||
4110 | 6680 | - else | 7357 | - else |
4111 | 6681 | - # FIXME: insert proper C++ library support | 7358 | - # FIXME: insert proper C++ library support |
4112 | 6682 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 7359 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4113 | 6683 | - fi | 7360 | - fi |
4115 | 6684 | - ;; | 7361 | + m88k*) |
4116 | 7362 | ;; | ||
4117 | 6685 | - esac | 7363 | - esac |
4118 | 6686 | - ;; | 7364 | - ;; |
4119 | 6687 | - osf4* | osf5*) | 7365 | - osf4* | osf5*) |
4120 | @@ -6726,7 +7404,15 @@ | |||
4121 | 6726 | - # from the output so that they don't get included in the library | 7404 | - # from the output so that they don't get included in the library |
4122 | 6727 | - # dependencies. | 7405 | - # dependencies. |
4123 | 6728 | - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 7406 | - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4125 | 6729 | - ;; | 7407 | + mvs*) |
4126 | 7408 | + case $cc_basename in | ||
4127 | 7409 | + cxx*) | ||
4128 | 7410 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | ||
4129 | 7411 | + ;; | ||
4130 | 7412 | + *) | ||
4131 | 7413 | + ;; | ||
4132 | 7414 | + esac | ||
4133 | 7415 | ;; | ||
4134 | 6730 | - *) | 7416 | - *) |
4135 | 6731 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 7417 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
4136 | 6732 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 7418 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4137 | @@ -6739,14 +7425,13 @@ | |||
4138 | 6739 | - # what "hidden" libraries, object files and flags are used when | 7425 | - # what "hidden" libraries, object files and flags are used when |
4139 | 6740 | - # linking a shared library. | 7426 | - # linking a shared library. |
4140 | 6741 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 7427 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
4144 | 6742 | +# Regexp to match symbols that can be accessed directly from C. | 7428 | - |
4142 | 6743 | +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | ||
4143 | 6744 | |||
4145 | 6745 | - else | 7429 | - else |
4146 | 6746 | - # FIXME: insert proper C++ library support | 7430 | - # FIXME: insert proper C++ library support |
4147 | 6747 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 7431 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4148 | 6748 | - fi | 7432 | - fi |
4150 | 6749 | - ;; | 7433 | + netbsd* | netbsdelf*-gnu) |
4151 | 7434 | ;; | ||
4152 | 6750 | - esac | 7435 | - esac |
4153 | 6751 | - ;; | 7436 | - ;; |
4154 | 6752 | - psos*) | 7437 | - psos*) |
4155 | @@ -6764,11 +7449,37 @@ | |||
4156 | 6764 | - # Lucid | 7449 | - # Lucid |
4157 | 6765 | - # FIXME: insert proper C++ library support | 7450 | - # FIXME: insert proper C++ library support |
4158 | 6766 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 7451 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4160 | 6767 | - ;; | 7452 | + *qnx* | *nto*) |
4161 | 7453 | + # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4162 | 7454 | + # it will coredump. | ||
4163 | 7455 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4164 | 7456 | + ;; | ||
4165 | 7457 | + osf3* | osf4* | osf5*) | ||
4166 | 7458 | + case $cc_basename in | ||
4167 | 7459 | + KCC*) | ||
4168 | 7460 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
4169 | 7461 | + ;; | ||
4170 | 7462 | + RCC*) | ||
4171 | 7463 | + # Rational C++ 2.4.1 | ||
4172 | 7464 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4173 | 7465 | + ;; | ||
4174 | 7466 | + cxx*) | ||
4175 | 7467 | + # Digital/Compaq C++ | ||
4176 | 7468 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4177 | 7469 | + # Make sure the PIC flag is empty. It appears that all Alpha | ||
4178 | 7470 | + # Linux and Compaq Tru64 Unix objects are PIC. | ||
4179 | 7471 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4180 | 7472 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4181 | 7473 | + ;; | ||
4182 | 7474 | + *) | ||
4183 | 7475 | + ;; | ||
4184 | 7476 | + esac | ||
4185 | 7477 | ;; | ||
4186 | 6768 | - *) | 7478 | - *) |
4187 | 6769 | - # FIXME: insert proper C++ library support | 7479 | - # FIXME: insert proper C++ library support |
4188 | 6770 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 7480 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4190 | 6771 | - ;; | 7481 | + psos*) |
4191 | 7482 | ;; | ||
4192 | 6772 | - esac | 7483 | - esac |
4193 | 6773 | - ;; | 7484 | - ;; |
4194 | 6774 | - solaris*) | 7485 | - solaris*) |
4195 | @@ -6785,57 +7496,29 @@ | |||
4196 | 6785 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 7496 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4197 | 6786 | - case $host_os in | 7497 | - case $host_os in |
4198 | 6787 | - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 7498 | - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
4200 | 6788 | - *) | 7499 | + solaris*) |
4201 | 7500 | + case $cc_basename in | ||
4202 | 7501 | + CC*) | ||
4203 | 7502 | + # Sun C++ 4.2, 5.x and Centerline C++ | ||
4204 | 7503 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4205 | 7504 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4206 | 7505 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
4207 | 7506 | + ;; | ||
4208 | 7507 | + gcx*) | ||
4209 | 7508 | + # Green Hills C++ Compiler | ||
4210 | 7509 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
4211 | 7510 | + ;; | ||
4212 | 7511 | *) | ||
4213 | 6789 | - # The compiler driver will combine and reorder linker options, | 7512 | - # The compiler driver will combine and reorder linker options, |
4214 | 6790 | - # but understands `-z linker_flag'. | 7513 | - # but understands `-z linker_flag'. |
4215 | 6791 | - # Supported since Solaris 2.6 (maybe 2.5.1?) | 7514 | - # Supported since Solaris 2.6 (maybe 2.5.1?) |
4216 | 6792 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' | 7515 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
4219 | 6793 | - ;; | 7516 | ;; |
4220 | 6794 | - esac | 7517 | esac |
4221 | 6795 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 7518 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4258 | 6796 | +# Define system-specific variables. | 7519 | - |
4223 | 6797 | +case $host_os in | ||
4224 | 6798 | +aix*) | ||
4225 | 6799 | + symcode='[[BCDT]]' | ||
4226 | 6800 | + ;; | ||
4227 | 6801 | +cygwin* | mingw* | pw32* | cegcc*) | ||
4228 | 6802 | + symcode='[[ABCDGISTW]]' | ||
4229 | 6803 | + ;; | ||
4230 | 6804 | +hpux*) | ||
4231 | 6805 | + if test "$host_cpu" = ia64; then | ||
4232 | 6806 | + symcode='[[ABCDEGRST]]' | ||
4233 | 6807 | + fi | ||
4234 | 6808 | + ;; | ||
4235 | 6809 | +irix* | nonstopux*) | ||
4236 | 6810 | + symcode='[[BCDEGRST]]' | ||
4237 | 6811 | + ;; | ||
4238 | 6812 | +osf*) | ||
4239 | 6813 | + symcode='[[BCDEGQRST]]' | ||
4240 | 6814 | + ;; | ||
4241 | 6815 | +solaris*) | ||
4242 | 6816 | + symcode='[[BDRT]]' | ||
4243 | 6817 | + ;; | ||
4244 | 6818 | +sco3.2v5*) | ||
4245 | 6819 | + symcode='[[DT]]' | ||
4246 | 6820 | + ;; | ||
4247 | 6821 | +sysv4.2uw2*) | ||
4248 | 6822 | + symcode='[[DT]]' | ||
4249 | 6823 | + ;; | ||
4250 | 6824 | +sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
4251 | 6825 | + symcode='[[ABDT]]' | ||
4252 | 6826 | + ;; | ||
4253 | 6827 | +sysv4) | ||
4254 | 6828 | + symcode='[[DFNSTU]]' | ||
4255 | 6829 | + ;; | ||
4256 | 6830 | +esac | ||
4257 | 6831 | |||
4259 | 6832 | - output_verbose_link_cmd='echo' | 7520 | - output_verbose_link_cmd='echo' |
4266 | 6833 | +# If we're using GNU nm, then use its standard symbol codes. | 7521 | - |
4261 | 6834 | +case `$NM -V 2>&1` in | ||
4262 | 6835 | +*GNU* | *'with BFD'*) | ||
4263 | 6836 | + symcode='[[ABCDGIRSTW]]' ;; | ||
4264 | 6837 | +esac | ||
4265 | 6838 | |||
4267 | 6839 | - # Archives containing C++ object files must be created using | 7522 | - # Archives containing C++ object files must be created using |
4268 | 6840 | - # "CC -xar", where "CC" is the Sun C++ compiler. This is | 7523 | - # "CC -xar", where "CC" is the Sun C++ compiler. This is |
4269 | 6841 | - # necessary to make sure instantiated templates are included | 7524 | - # necessary to make sure instantiated templates are included |
4270 | @@ -6845,14 +7528,10 @@ | |||
4271 | 6845 | - gcx*) | 7528 | - gcx*) |
4272 | 6846 | - # Green Hills C++ Compiler | 7529 | - # Green Hills C++ Compiler |
4273 | 6847 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 7530 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
4279 | 6848 | +# Transform an extracted symbol line into a proper C declaration. | 7531 | - |
4275 | 6849 | +# Some systems (esp. on ia64) link data and code symbols differently, | ||
4276 | 6850 | +# so use this general approach. | ||
4277 | 6851 | +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
4278 | 6852 | |||
4280 | 6853 | - # The C++ compiler must be used to create the archive. | 7532 | - # The C++ compiler must be used to create the archive. |
4281 | 6854 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 7533 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
4283 | 6855 | - ;; | 7534 | ;; |
4284 | 6856 | - *) | 7535 | - *) |
4285 | 6857 | - # GNU C++ compiler with Solaris linker | 7536 | - # GNU C++ compiler with Solaris linker |
4286 | 6858 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 7537 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
4287 | @@ -6861,10 +7540,7 @@ | |||
4288 | 6861 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 7540 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
4289 | 6862 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 7541 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4290 | 6863 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 7542 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
4295 | 6864 | +# Transform an extracted symbol line into symbol name and symbol address | 7543 | - |
4292 | 6865 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
4293 | 6866 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
4294 | 6867 | |||
4296 | 6868 | - # Commands to make compiler produce verbose output that lists | 7544 | - # Commands to make compiler produce verbose output that lists |
4297 | 6869 | - # what "hidden" libraries, object files and flags are used when | 7545 | - # what "hidden" libraries, object files and flags are used when |
4298 | 6870 | - # linking a shared library. | 7546 | - # linking a shared library. |
4299 | @@ -6875,28 +7551,30 @@ | |||
4300 | 6875 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 7551 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
4301 | 6876 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 7552 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4302 | 6877 | - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 7553 | - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
4311 | 6878 | +# Handle CRLF in mingw tool chain | 7554 | - |
4304 | 6879 | +opt_cr= | ||
4305 | 6880 | +case $build_os in | ||
4306 | 6881 | +mingw*) | ||
4307 | 6882 | + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
4308 | 6883 | + ;; | ||
4309 | 6884 | +esac | ||
4310 | 6885 | |||
4312 | 6886 | - # Commands to make compiler produce verbose output that lists | 7555 | - # Commands to make compiler produce verbose output that lists |
4313 | 6887 | - # what "hidden" libraries, object files and flags are used when | 7556 | - # what "hidden" libraries, object files and flags are used when |
4314 | 6888 | - # linking a shared library. | 7557 | - # linking a shared library. |
4315 | 6889 | - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 7558 | - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
4316 | 6890 | - fi | 7559 | - fi |
4320 | 6891 | +# Try without a prefix underscore, then with it. | 7560 | - |
4318 | 6892 | +for ac_symprfx in "" "_"; do | ||
4319 | 6893 | |||
4321 | 6894 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | 7561 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
4322 | 6895 | - case $host_os in | 7562 | - case $host_os in |
4323 | 6896 | - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 7563 | - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
4325 | 6897 | - *) | 7564 | + sunos4*) |
4326 | 7565 | + case $cc_basename in | ||
4327 | 7566 | + CC*) | ||
4328 | 7567 | + # Sun C++ 4.x | ||
4329 | 7568 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4330 | 7569 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4331 | 7570 | + ;; | ||
4332 | 7571 | + lcc*) | ||
4333 | 7572 | + # Lucid | ||
4334 | 7573 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4335 | 7574 | + ;; | ||
4336 | 7575 | *) | ||
4337 | 6898 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 7576 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
4339 | 6899 | - ;; | 7577 | ;; |
4340 | 6900 | - esac | 7578 | - esac |
4341 | 6901 | - fi | 7579 | - fi |
4342 | 6902 | - ;; | 7580 | - ;; |
4343 | @@ -6916,7 +7594,8 @@ | |||
4344 | 6916 | - *) | 7594 | - *) |
4345 | 6917 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7595 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
4346 | 6918 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7596 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
4348 | 6919 | - ;; | 7597 | + esac |
4349 | 7598 | ;; | ||
4350 | 6920 | - esac | 7599 | - esac |
4351 | 6921 | - ;; | 7600 | - ;; |
4352 | 6922 | - sysv5* | sco3.2v5* | sco5v6*) | 7601 | - sysv5* | sco3.2v5* | sco5v6*) |
4353 | @@ -6949,11 +7628,28 @@ | |||
4354 | 6949 | - CC*) | 7628 | - CC*) |
4355 | 6950 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 7629 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4356 | 6951 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 7630 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4358 | 6952 | - ;; | 7631 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
4359 | 7632 | + case $cc_basename in | ||
4360 | 7633 | + CC*) | ||
4361 | 7634 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4362 | 7635 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4363 | 7636 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4364 | 7637 | + ;; | ||
4365 | 7638 | + esac | ||
4366 | 7639 | ;; | ||
4367 | 6953 | - *) | 7640 | - *) |
4368 | 6954 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 7641 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4369 | 6955 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 7642 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4371 | 6956 | - ;; | 7643 | + tandem*) |
4372 | 7644 | + case $cc_basename in | ||
4373 | 7645 | + NCC*) | ||
4374 | 7646 | + # NonStop-UX NCC 3.20 | ||
4375 | 7647 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4376 | 7648 | + ;; | ||
4377 | 7649 | + *) | ||
4378 | 7650 | + ;; | ||
4379 | 7651 | + esac | ||
4380 | 7652 | ;; | ||
4381 | 6957 | - esac | 7653 | - esac |
4382 | 6958 | - ;; | 7654 | - ;; |
4383 | 6959 | - tandem*) | 7655 | - tandem*) |
4384 | @@ -6962,12 +7658,14 @@ | |||
4385 | 6962 | - # NonStop-UX NCC 3.20 | 7658 | - # NonStop-UX NCC 3.20 |
4386 | 6963 | - # FIXME: insert proper C++ library support | 7659 | - # FIXME: insert proper C++ library support |
4387 | 6964 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 7660 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4390 | 6965 | - ;; | 7661 | + vxworks*) |
4391 | 6966 | - *) | 7662 | ;; |
4392 | 7663 | *) | ||
4393 | 6967 | - # FIXME: insert proper C++ library support | 7664 | - # FIXME: insert proper C++ library support |
4394 | 6968 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no | 7665 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4397 | 6969 | - ;; | 7666 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4398 | 6970 | - esac | 7667 | ;; |
4399 | 7668 | esac | ||
4400 | 6971 | - ;; | 7669 | - ;; |
4401 | 6972 | - vxworks*) | 7670 | - vxworks*) |
4402 | 6973 | - # FIXME: insert proper C++ library support | 7671 | - # FIXME: insert proper C++ library support |
4403 | @@ -6980,31 +7678,15 @@ | |||
4404 | 6980 | -esac | 7678 | -esac |
4405 | 6981 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | 7679 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
4406 | 6982 | -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 7680 | -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
4410 | 6983 | + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 7681 | - |
4408 | 6984 | + symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
4409 | 6985 | |||
4411 | 6986 | -_LT_AC_TAGVAR(GCC, $1)="$GXX" | 7682 | -_LT_AC_TAGVAR(GCC, $1)="$GXX" |
4412 | 6987 | -_LT_AC_TAGVAR(LD, $1)="$LD" | 7683 | -_LT_AC_TAGVAR(LD, $1)="$LD" |
4413 | 6988 | + # Write the raw and C identifiers. | ||
4414 | 6989 | + if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
4415 | 6990 | + # Fake it for dumpbin and say T for any non-static function | ||
4416 | 6991 | + # and D for any global variable. | ||
4417 | 6992 | + # Also find C++ and __fastcall symbols from MSVC++, | ||
4418 | 6993 | + # which start with @ or ?. | ||
4419 | 6994 | + lt_cv_sys_global_symbol_pipe="$AWK ['"\ | ||
4420 | 6995 | +" {last_section=section; section=\$ 3};"\ | ||
4421 | 6996 | +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
4422 | 6997 | +" \$ 0!~/External *\|/{next};"\ | ||
4423 | 6998 | +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
4424 | 6999 | +" {if(hide[section]) next};"\ | ||
4425 | 7000 | +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
4426 | 7001 | +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
4427 | 7002 | +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
4428 | 7003 | +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
4429 | 7004 | +" ' prfx=^$ac_symprfx]" | ||
4430 | 7005 | + else | ||
4431 | 7006 | + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
4432 | 7007 | + fi | 7684 | + fi |
4433 | 7685 | +], | ||
4434 | 7686 | +[ | ||
4435 | 7687 | + if test "$GCC" = yes; then | ||
4436 | 7688 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4437 | 7689 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4438 | 7008 | 7690 | ||
4439 | 7009 | -AC_LIBTOOL_POSTDEP_PREDEP($1) | 7691 | -AC_LIBTOOL_POSTDEP_PREDEP($1) |
4440 | 7010 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) | 7692 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
4441 | @@ -7013,23 +7695,30 @@ | |||
4442 | 7013 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) | 7695 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) |
4443 | 7014 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 7696 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
4444 | 7015 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 7697 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
4447 | 7016 | + # Check to see that the pipe works correctly. | 7698 | + case $host_os in |
4448 | 7017 | + pipe_works=no | 7699 | + aix*) |
4449 | 7700 | + # All AIX code is PIC. | ||
4450 | 7701 | + if test "$host_cpu" = ia64; then | ||
4451 | 7702 | + # AIX 5 now supports IA64 processor | ||
4452 | 7703 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4453 | 7704 | + fi | ||
4454 | 7705 | + ;; | ||
4455 | 7018 | 7706 | ||
4456 | 7019 | -AC_LIBTOOL_CONFIG($1) | 7707 | -AC_LIBTOOL_CONFIG($1) |
4470 | 7020 | + rm -f conftest* | 7708 | + amigaos*) |
4471 | 7021 | + cat > conftest.$ac_ext <<_LT_EOF | 7709 | + case $host_cpu in |
4472 | 7022 | +#ifdef __cplusplus | 7710 | + powerpc) |
4473 | 7023 | +extern "C" { | 7711 | + # see comment about AmigaOS4 .so support |
4474 | 7024 | +#endif | 7712 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4475 | 7025 | +char nm_test_var; | 7713 | + ;; |
4476 | 7026 | +void nm_test_func(void); | 7714 | + m68k) |
4477 | 7027 | +void nm_test_func(void){} | 7715 | + # FIXME: we need at least 68020 code to build shared libraries, but |
4478 | 7028 | +#ifdef __cplusplus | 7716 | + # adding the `-m68020' flag to GCC prevents building anything better, |
4479 | 7029 | +} | 7717 | + # like `-m68040'. |
4480 | 7030 | +#endif | 7718 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
4481 | 7031 | +int main(){nm_test_var='a';nm_test_func();return(0);} | 7719 | + ;; |
4482 | 7032 | +_LT_EOF | 7720 | + esac |
4483 | 7721 | + ;; | ||
4484 | 7033 | 7722 | ||
4485 | 7034 | -AC_LANG_POP | 7723 | -AC_LANG_POP |
4486 | 7035 | -CC=$lt_save_CC | 7724 | -CC=$lt_save_CC |
4487 | @@ -7043,16 +7732,9 @@ | |||
4488 | 7043 | -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 7732 | -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
4489 | 7044 | -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 7733 | -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
4490 | 7045 | -])# AC_LIBTOOL_LANG_CXX_CONFIG | 7734 | -])# AC_LIBTOOL_LANG_CXX_CONFIG |
4501 | 7046 | + if AC_TRY_EVAL(ac_compile); then | 7735 | + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
4502 | 7047 | + # Now try to grab the symbols. | 7736 | + # PIC is the default for these OSes. |
4503 | 7048 | + nlist=conftest.nm | 7737 | + ;; |
4494 | 7049 | + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | ||
4495 | 7050 | + # Try sorting and uniquifying the output. | ||
4496 | 7051 | + if sort "$nlist" | uniq > "$nlist"T; then | ||
4497 | 7052 | + mv -f "$nlist"T "$nlist" | ||
4498 | 7053 | + else | ||
4499 | 7054 | + rm -f "$nlist"T | ||
4500 | 7055 | + fi | ||
4504 | 7056 | 7738 | ||
4505 | 7057 | -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | 7739 | -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
4506 | 7058 | -# ------------------------------------ | 7740 | -# ------------------------------------ |
4507 | @@ -7102,42 +7784,48 @@ | |||
4508 | 7102 | -if AC_TRY_EVAL(ac_compile); then | 7784 | -if AC_TRY_EVAL(ac_compile); then |
4509 | 7103 | - # Parse the compiler output and extract the necessary | 7785 | - # Parse the compiler output and extract the necessary |
4510 | 7104 | - # objects, libraries and library flags. | 7786 | - # objects, libraries and library flags. |
4518 | 7105 | + # Make sure that we snagged all the symbols we need. | 7787 | + mingw* | cygwin* | pw32* | os2* | cegcc*) |
4519 | 7106 | + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | 7788 | + # This hack is so that the source file can tell whether it is being |
4520 | 7107 | + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | 7789 | + # built for inclusion in a dll (and should export symbols for example). |
4521 | 7108 | + cat <<_LT_EOF > conftest.$ac_ext | 7790 | + # Although the cygwin gcc ignores -fPIC, still need this for old-style |
4522 | 7109 | +#ifdef __cplusplus | 7791 | + # (--disable-auto-import) libraries |
4523 | 7110 | +extern "C" { | 7792 | + m4_if([$1], [GCJ], [], |
4524 | 7111 | +#endif | 7793 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4525 | 7794 | + ;; | ||
4526 | 7112 | 7795 | ||
4527 | 7113 | - # Sentinel used to keep track of whether or not we are before | 7796 | - # Sentinel used to keep track of whether or not we are before |
4528 | 7114 | - # the conftest object file. | 7797 | - # the conftest object file. |
4529 | 7115 | - pre_test_object_deps_done=no | 7798 | - pre_test_object_deps_done=no |
4533 | 7116 | +_LT_EOF | 7799 | + darwin* | rhapsody*) |
4534 | 7117 | + # Now generate the symbol file. | 7800 | + # PIC is the default on this platform |
4535 | 7118 | + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | 7801 | + # Common symbols not allowed in MH_DYLIB files |
4536 | 7802 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
4537 | 7803 | + ;; | ||
4538 | 7119 | 7804 | ||
4539 | 7120 | - # The `*' in the case matches for architectures that use `case' in | 7805 | - # The `*' in the case matches for architectures that use `case' in |
4540 | 7121 | - # $output_verbose_cmd can trigger glob expansion during the loop | 7806 | - # $output_verbose_cmd can trigger glob expansion during the loop |
4541 | 7122 | - # eval without this substitution. | 7807 | - # eval without this substitution. |
4542 | 7123 | - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | 7808 | - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
4544 | 7124 | + cat <<_LT_EOF >> conftest.$ac_ext | 7809 | + hpux*) |
4545 | 7810 | + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
4546 | 7811 | + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
4547 | 7812 | + # sets the default TLS model and affects inlining. | ||
4548 | 7813 | + case $host_cpu in | ||
4549 | 7814 | + hppa*64*) | ||
4550 | 7815 | + # +Z the default | ||
4551 | 7816 | + ;; | ||
4552 | 7817 | + *) | ||
4553 | 7818 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4554 | 7819 | + ;; | ||
4555 | 7820 | + esac | ||
4556 | 7821 | + ;; | ||
4557 | 7125 | 7822 | ||
4558 | 7126 | - for p in `eval $output_verbose_link_cmd`; do | 7823 | - for p in `eval $output_verbose_link_cmd`; do |
4559 | 7127 | - case $p in | 7824 | - case $p in |
4573 | 7128 | +/* The mapping between symbol names and symbols. */ | 7825 | + interix[[3-9]]*) |
4574 | 7129 | +const struct { | 7826 | + # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
4575 | 7130 | + const char *name; | 7827 | + # Instead, we relocate shared libraries at runtime. |
4576 | 7131 | + void *address; | 7828 | + ;; |
4564 | 7132 | +} | ||
4565 | 7133 | +lt__PROGRAM__LTX_preloaded_symbols[[]] = | ||
4566 | 7134 | +{ | ||
4567 | 7135 | + { "@PROGRAM@", (void *) 0 }, | ||
4568 | 7136 | +_LT_EOF | ||
4569 | 7137 | + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
4570 | 7138 | + cat <<\_LT_EOF >> conftest.$ac_ext | ||
4571 | 7139 | + {0, (void *) 0} | ||
4572 | 7140 | +}; | ||
4577 | 7141 | 7829 | ||
4578 | 7142 | - -L* | -R* | -l*) | 7830 | - -L* | -R* | -l*) |
4579 | 7143 | - # Some compilers place space between "-{L,R}" and the path. | 7831 | - # Some compilers place space between "-{L,R}" and the path. |
4580 | @@ -7149,12 +7837,12 @@ | |||
4581 | 7149 | - else | 7837 | - else |
4582 | 7150 | - prev= | 7838 | - prev= |
4583 | 7151 | - fi | 7839 | - fi |
4590 | 7152 | +/* This works around a problem in FreeBSD linker */ | 7840 | + msdosdjgpp*) |
4591 | 7153 | +#ifdef FREEBSD_WORKAROUND | 7841 | + # Just because we use GCC doesn't mean we suddenly get shared libraries |
4592 | 7154 | +static const void *lt_preloaded_setup() { | 7842 | + # on systems that don't support them. |
4593 | 7155 | + return lt__PROGRAM__LTX_preloaded_symbols; | 7843 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4594 | 7156 | +} | 7844 | + enable_shared=no |
4595 | 7157 | +#endif | 7845 | + ;; |
4596 | 7158 | 7846 | ||
4597 | 7159 | - if test "$pre_test_object_deps_done" = no; then | 7847 | - if test "$pre_test_object_deps_done" = no; then |
4598 | 7160 | - case $p in | 7848 | - case $p in |
4599 | @@ -7179,7 +7867,12 @@ | |||
4600 | 7179 | - fi | 7867 | - fi |
4601 | 7180 | - fi | 7868 | - fi |
4602 | 7181 | - ;; | 7869 | - ;; |
4604 | 7182 | - | 7870 | + *nto* | *qnx*) |
4605 | 7871 | + # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4606 | 7872 | + # it will coredump. | ||
4607 | 7873 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4608 | 7874 | + ;; | ||
4609 | 7875 | |||
4610 | 7183 | - *.$objext) | 7876 | - *.$objext) |
4611 | 7184 | - # This assumes that the test object file only shows up | 7877 | - # This assumes that the test object file only shows up |
4612 | 7185 | - # once in the compiler output. | 7878 | - # once in the compiler output. |
4613 | @@ -7204,76 +7897,42 @@ | |||
4614 | 7204 | - ;; | 7897 | - ;; |
4615 | 7205 | - | 7898 | - |
4616 | 7206 | - *) ;; # Ignore the rest. | 7899 | - *) ;; # Ignore the rest. |
4640 | 7207 | - | 7900 | + sysv4*MP*) |
4641 | 7208 | - esac | 7901 | + if test -d /usr/nec; then |
4642 | 7209 | - done | 7902 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
4620 | 7210 | +#ifdef __cplusplus | ||
4621 | 7211 | +} | ||
4622 | 7212 | +#endif | ||
4623 | 7213 | +_LT_EOF | ||
4624 | 7214 | + # Now try linking the two files. | ||
4625 | 7215 | + mv conftest.$ac_objext conftstm.$ac_objext | ||
4626 | 7216 | + lt_save_LIBS="$LIBS" | ||
4627 | 7217 | + lt_save_CFLAGS="$CFLAGS" | ||
4628 | 7218 | + LIBS="conftstm.$ac_objext" | ||
4629 | 7219 | + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | ||
4630 | 7220 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | ||
4631 | 7221 | + pipe_works=yes | ||
4632 | 7222 | + fi | ||
4633 | 7223 | + LIBS="$lt_save_LIBS" | ||
4634 | 7224 | + CFLAGS="$lt_save_CFLAGS" | ||
4635 | 7225 | + else | ||
4636 | 7226 | + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | ||
4637 | 7227 | + fi | ||
4638 | 7228 | + else | ||
4639 | 7229 | + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | ||
4643 | 7230 | + fi | 7903 | + fi |
4652 | 7231 | + else | 7904 | + ;; |
4645 | 7232 | + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | ||
4646 | 7233 | + fi | ||
4647 | 7234 | + else | ||
4648 | 7235 | + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | ||
4649 | 7236 | + cat conftest.$ac_ext >&5 | ||
4650 | 7237 | + fi | ||
4651 | 7238 | + rm -rf conftest* conftst* | ||
4653 | 7239 | 7905 | ||
4654 | 7906 | + *) | ||
4655 | 7907 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4656 | 7908 | + ;; | ||
4657 | 7909 | esac | ||
4658 | 7910 | - done | ||
4659 | 7911 | - | ||
4660 | 7240 | - # Clean up. | 7912 | - # Clean up. |
4661 | 7241 | - rm -f a.out a.exe | 7913 | - rm -f a.out a.exe |
4676 | 7242 | + # Do not use the global_symbol_pipe unless it works. | 7914 | -else |
4663 | 7243 | + if test "$pipe_works" = yes; then | ||
4664 | 7244 | + break | ||
4665 | 7245 | + else | ||
4666 | 7246 | + lt_cv_sys_global_symbol_pipe= | ||
4667 | 7247 | + fi | ||
4668 | 7248 | +done | ||
4669 | 7249 | +]) | ||
4670 | 7250 | +if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
4671 | 7251 | + lt_cv_sys_global_symbol_to_cdecl= | ||
4672 | 7252 | +fi | ||
4673 | 7253 | +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
4674 | 7254 | + AC_MSG_RESULT(failed) | ||
4675 | 7255 | else | ||
4677 | 7256 | - echo "libtool.m4: error: problem compiling $1 test program" | 7915 | - echo "libtool.m4: error: problem compiling $1 test program" |
4681 | 7257 | + AC_MSG_RESULT(ok) | 7916 | -fi |
4682 | 7258 | fi | 7917 | - |
4680 | 7259 | |||
4683 | 7260 | -$rm -f confest.$objext | 7918 | -$rm -f confest.$objext |
4696 | 7261 | +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | 7919 | - |
4685 | 7262 | + [Take the output of nm and produce a listing of raw symbols and C names]) | ||
4686 | 7263 | +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | ||
4687 | 7264 | + [Transform the output of nm in a proper C declaration]) | ||
4688 | 7265 | +_LT_DECL([global_symbol_to_c_name_address], | ||
4689 | 7266 | + [lt_cv_sys_global_symbol_to_c_name_address], [1], | ||
4690 | 7267 | + [Transform the output of nm in a C name address pair]) | ||
4691 | 7268 | +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], | ||
4692 | 7269 | + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | ||
4693 | 7270 | + [Transform the output of nm in a C name address pair when lib prefix is needed]) | ||
4694 | 7271 | +]) # _LT_CMD_GLOBAL_SYMBOLS | ||
4695 | 7272 | |||
4697 | 7273 | -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= | 7920 | -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= |
4698 | 7274 | -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then | 7921 | -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
4699 | 7275 | - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | 7922 | - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
4700 | 7276 | -fi | 7923 | -fi |
4701 | 7924 | + else | ||
4702 | 7925 | + # PORTME Check for flag to pass linker flags through the system compiler. | ||
4703 | 7926 | + case $host_os in | ||
4704 | 7927 | + aix*) | ||
4705 | 7928 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4706 | 7929 | + if test "$host_cpu" = ia64; then | ||
4707 | 7930 | + # AIX 5 now supports IA64 processor | ||
4708 | 7931 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4709 | 7932 | + else | ||
4710 | 7933 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
4711 | 7934 | + fi | ||
4712 | 7935 | + ;; | ||
4713 | 7277 | 7936 | ||
4714 | 7278 | -# PORTME: override above test on systems where it is broken | 7937 | -# PORTME: override above test on systems where it is broken |
4715 | 7279 | -ifelse([$1],[CXX], | 7938 | -ifelse([$1],[CXX], |
4716 | @@ -7285,13 +7944,12 @@ | |||
4717 | 7285 | - _LT_AC_TAGVAR(postdep_objects,$1)= | 7944 | - _LT_AC_TAGVAR(postdep_objects,$1)= |
4718 | 7286 | - _LT_AC_TAGVAR(postdeps,$1)= | 7945 | - _LT_AC_TAGVAR(postdeps,$1)= |
4719 | 7287 | - ;; | 7946 | - ;; |
4727 | 7288 | +# _LT_COMPILER_PIC([TAGNAME]) | 7947 | + mingw* | cygwin* | pw32* | os2* | cegcc*) |
4728 | 7289 | +# --------------------------- | 7948 | + # This hack is so that the source file can tell whether it is being |
4729 | 7290 | +m4_defun([_LT_COMPILER_PIC], | 7949 | + # built for inclusion in a dll (and should export symbols for example). |
4730 | 7291 | +[m4_require([_LT_TAG_COMPILER])dnl | 7950 | + m4_if([$1], [GCJ], [], |
4731 | 7292 | +_LT_TAGVAR(lt_prog_compiler_wl, $1)= | 7951 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4732 | 7293 | +_LT_TAGVAR(lt_prog_compiler_pic, $1)= | 7952 | + ;; |
4726 | 7294 | +_LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
4733 | 7295 | 7953 | ||
4734 | 7296 | -linux*) | 7954 | -linux*) |
4735 | 7297 | - case `$CC -V 2>&1 | sed 5q` in | 7955 | - case `$CC -V 2>&1 | sed 5q` in |
4736 | @@ -7305,7 +7963,21 @@ | |||
4737 | 7305 | - case " $CXX $CXXFLAGS " in | 7963 | - case " $CXX $CXXFLAGS " in |
4738 | 7306 | - *" -library=stlport4 "*) | 7964 | - *" -library=stlport4 "*) |
4739 | 7307 | - solaris_use_stlport4=yes | 7965 | - solaris_use_stlport4=yes |
4741 | 7308 | - ;; | 7966 | + hpux9* | hpux10* | hpux11*) |
4742 | 7967 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4743 | 7968 | + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
4744 | 7969 | + # not for PA HP-UX. | ||
4745 | 7970 | + case $host_cpu in | ||
4746 | 7971 | + hppa*64*|ia64*) | ||
4747 | 7972 | + # +Z the default | ||
4748 | 7973 | + ;; | ||
4749 | 7974 | + *) | ||
4750 | 7975 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
4751 | 7976 | + ;; | ||
4752 | 7977 | + esac | ||
4753 | 7978 | + # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
4754 | 7979 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
4755 | 7980 | ;; | ||
4756 | 7309 | - esac | 7981 | - esac |
4757 | 7310 | - if test "$solaris_use_stlport4" != yes; then | 7982 | - if test "$solaris_use_stlport4" != yes; then |
4758 | 7311 | - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | 7983 | - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
4759 | @@ -7313,12 +7985,6 @@ | |||
4760 | 7313 | - ;; | 7985 | - ;; |
4761 | 7314 | - esac | 7986 | - esac |
4762 | 7315 | - ;; | 7987 | - ;; |
4763 | 7316 | +AC_MSG_CHECKING([for $compiler option to produce PIC]) | ||
4764 | 7317 | +m4_if([$1], [CXX], [ | ||
4765 | 7318 | + # C++ specific cases for pic, static, wl, etc. | ||
4766 | 7319 | + if test "$GXX" = yes; then | ||
4767 | 7320 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4768 | 7321 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4769 | 7322 | 7988 | ||
4770 | 7323 | -solaris*) | 7989 | -solaris*) |
4771 | 7324 | - case $cc_basename in | 7990 | - case $cc_basename in |
4772 | @@ -7330,16 +7996,13 @@ | |||
4773 | 7330 | - case " $CXX $CXXFLAGS " in | 7996 | - case " $CXX $CXXFLAGS " in |
4774 | 7331 | - *" -library=stlport4 "*) | 7997 | - *" -library=stlport4 "*) |
4775 | 7332 | - solaris_use_stlport4=yes | 7998 | - solaris_use_stlport4=yes |
4783 | 7333 | + case $host_os in | 7999 | + irix5* | irix6* | nonstopux*) |
4784 | 7334 | + aix*) | 8000 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4785 | 7335 | + # All AIX code is PIC. | 8001 | + # PIC (with -KPIC) is the default. |
4786 | 7336 | + if test "$host_cpu" = ia64; then | 8002 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4780 | 7337 | + # AIX 5 now supports IA64 processor | ||
4781 | 7338 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4782 | 7339 | + fi | ||
4787 | 7340 | ;; | 8003 | ;; |
4788 | 7341 | - esac | 8004 | - esac |
4790 | 7342 | - | 8005 | |
4791 | 7343 | - # Adding this requires a known-good setup of shared libraries for | 8006 | - # Adding this requires a known-good setup of shared libraries for |
4792 | 7344 | - # Sun compiler versions before 5.6, else PIC objects from an old | 8007 | - # Sun compiler versions before 5.6, else PIC objects from an old |
4793 | 7345 | - # archive will be linked into the output, leading to subtle bugs. | 8008 | - # archive will be linked into the output, leading to subtle bugs. |
4794 | @@ -7355,730 +8018,6 @@ | |||
4795 | 7355 | -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | 8018 | -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
4796 | 7356 | -esac | 8019 | -esac |
4797 | 7357 | -])# AC_LIBTOOL_POSTDEP_PREDEP | 8020 | -])# AC_LIBTOOL_POSTDEP_PREDEP |
4798 | 7358 | - | ||
4799 | 7359 | -# AC_LIBTOOL_LANG_F77_CONFIG | ||
4800 | 7360 | -# -------------------------- | ||
4801 | 7361 | -# Ensure that the configuration vars for the C compiler are | ||
4802 | 7362 | -# suitably defined. Those variables are subsequently used by | ||
4803 | 7363 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4804 | 7364 | -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) | ||
4805 | 7365 | -AC_DEFUN([_LT_AC_LANG_F77_CONFIG], | ||
4806 | 7366 | -[AC_REQUIRE([AC_PROG_F77]) | ||
4807 | 7367 | -AC_LANG_PUSH(Fortran 77) | ||
4808 | 7368 | - | ||
4809 | 7369 | -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4810 | 7370 | -_LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
4811 | 7371 | -_LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
4812 | 7372 | -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
4813 | 7373 | -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
4814 | 7374 | -_LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4815 | 7375 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
4816 | 7376 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
4817 | 7377 | -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
4818 | 7378 | -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
4819 | 7379 | -_LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
4820 | 7380 | -_LT_AC_TAGVAR(module_cmds, $1)= | ||
4821 | 7381 | -_LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
4822 | 7382 | -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
4823 | 7383 | -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
4824 | 7384 | -_LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
4825 | 7385 | -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
4826 | 7386 | -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
4827 | 7387 | - | ||
4828 | 7388 | -# Source file extension for f77 test sources. | ||
4829 | 7389 | -ac_ext=f | ||
4830 | 7390 | - | ||
4831 | 7391 | -# Object file extension for compiled f77 test sources. | ||
4832 | 7392 | -objext=o | ||
4833 | 7393 | -_LT_AC_TAGVAR(objext, $1)=$objext | ||
4834 | 7394 | - | ||
4835 | 7395 | -# Code to be used in simple compile tests | ||
4836 | 7396 | -lt_simple_compile_test_code="\ | ||
4837 | 7397 | - subroutine t | ||
4838 | 7398 | - return | ||
4839 | 7399 | - end | ||
4840 | 7400 | -" | ||
4841 | 7401 | - | ||
4842 | 7402 | -# Code to be used in simple link tests | ||
4843 | 7403 | -lt_simple_link_test_code="\ | ||
4844 | 7404 | - program t | ||
4845 | 7405 | - end | ||
4846 | 7406 | -" | ||
4847 | 7407 | - | ||
4848 | 7408 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4849 | 7409 | -_LT_AC_SYS_COMPILER | ||
4850 | 7410 | - | ||
4851 | 7411 | -# save warnings/boilerplate of simple test code | ||
4852 | 7412 | -_LT_COMPILER_BOILERPLATE | ||
4853 | 7413 | -_LT_LINKER_BOILERPLATE | ||
4854 | 7414 | - | ||
4855 | 7415 | -# Allow CC to be a program name with arguments. | ||
4856 | 7416 | -lt_save_CC="$CC" | ||
4857 | 7417 | -CC=${F77-"f77"} | ||
4858 | 7418 | -compiler=$CC | ||
4859 | 7419 | -_LT_AC_TAGVAR(compiler, $1)=$CC | ||
4860 | 7420 | -_LT_CC_BASENAME([$compiler]) | ||
4861 | 7421 | - | ||
4862 | 7422 | -AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
4863 | 7423 | -AC_MSG_RESULT([$can_build_shared]) | ||
4864 | 7424 | - | ||
4865 | 7425 | -AC_MSG_CHECKING([whether to build shared libraries]) | ||
4866 | 7426 | -test "$can_build_shared" = "no" && enable_shared=no | ||
4867 | 7427 | - | ||
4868 | 7428 | -# On AIX, shared libraries and static libraries use the same namespace, and | ||
4869 | 7429 | -# are all built from PIC. | ||
4870 | 7430 | -case $host_os in | ||
4871 | 7431 | -aix3*) | ||
4872 | 7432 | - test "$enable_shared" = yes && enable_static=no | ||
4873 | 7433 | - if test -n "$RANLIB"; then | ||
4874 | 7434 | - archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
4875 | 7435 | - postinstall_cmds='$RANLIB $lib' | ||
4876 | 7436 | - fi | ||
4877 | 7437 | - ;; | ||
4878 | 7438 | -aix[[4-9]]*) | ||
4879 | 7439 | - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
4880 | 7440 | - test "$enable_shared" = yes && enable_static=no | ||
4881 | 7441 | - fi | ||
4882 | 7442 | - ;; | ||
4883 | 7443 | -esac | ||
4884 | 7444 | -AC_MSG_RESULT([$enable_shared]) | ||
4885 | 7445 | - | ||
4886 | 7446 | -AC_MSG_CHECKING([whether to build static libraries]) | ||
4887 | 7447 | -# Make sure either enable_shared or enable_static is yes. | ||
4888 | 7448 | -test "$enable_shared" = yes || enable_static=yes | ||
4889 | 7449 | -AC_MSG_RESULT([$enable_static]) | ||
4890 | 7450 | - | ||
4891 | 7451 | -_LT_AC_TAGVAR(GCC, $1)="$G77" | ||
4892 | 7452 | -_LT_AC_TAGVAR(LD, $1)="$LD" | ||
4893 | 7453 | - | ||
4894 | 7454 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4895 | 7455 | -AC_LIBTOOL_PROG_CC_C_O($1) | ||
4896 | 7456 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4897 | 7457 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4898 | 7458 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4899 | 7459 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4900 | 7460 | - | ||
4901 | 7461 | -AC_LIBTOOL_CONFIG($1) | ||
4902 | 7462 | - | ||
4903 | 7463 | -AC_LANG_POP | ||
4904 | 7464 | -CC="$lt_save_CC" | ||
4905 | 7465 | -])# AC_LIBTOOL_LANG_F77_CONFIG | ||
4906 | 7466 | - | ||
4907 | 7467 | - | ||
4908 | 7468 | -# AC_LIBTOOL_LANG_GCJ_CONFIG | ||
4909 | 7469 | -# -------------------------- | ||
4910 | 7470 | -# Ensure that the configuration vars for the C compiler are | ||
4911 | 7471 | -# suitably defined. Those variables are subsequently used by | ||
4912 | 7472 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4913 | 7473 | -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) | ||
4914 | 7474 | -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], | ||
4915 | 7475 | -[AC_LANG_SAVE | ||
4916 | 7476 | - | ||
4917 | 7477 | -# Source file extension for Java test sources. | ||
4918 | 7478 | -ac_ext=java | ||
4919 | 7479 | - | ||
4920 | 7480 | -# Object file extension for compiled Java test sources. | ||
4921 | 7481 | -objext=o | ||
4922 | 7482 | -_LT_AC_TAGVAR(objext, $1)=$objext | ||
4923 | 7483 | - | ||
4924 | 7484 | -# Code to be used in simple compile tests | ||
4925 | 7485 | -lt_simple_compile_test_code="class foo {}" | ||
4926 | 7486 | - | ||
4927 | 7487 | -# Code to be used in simple link tests | ||
4928 | 7488 | -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' | ||
4929 | 7489 | - | ||
4930 | 7490 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4931 | 7491 | -_LT_AC_SYS_COMPILER | ||
4932 | 7492 | - | ||
4933 | 7493 | -# save warnings/boilerplate of simple test code | ||
4934 | 7494 | -_LT_COMPILER_BOILERPLATE | ||
4935 | 7495 | -_LT_LINKER_BOILERPLATE | ||
4936 | 7496 | - | ||
4937 | 7497 | -# Allow CC to be a program name with arguments. | ||
4938 | 7498 | -lt_save_CC="$CC" | ||
4939 | 7499 | -CC=${GCJ-"gcj"} | ||
4940 | 7500 | -compiler=$CC | ||
4941 | 7501 | -_LT_AC_TAGVAR(compiler, $1)=$CC | ||
4942 | 7502 | -_LT_CC_BASENAME([$compiler]) | ||
4943 | 7503 | - | ||
4944 | 7504 | -# GCJ did not exist at the time GCC didn't implicitly link libc in. | ||
4945 | 7505 | -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4946 | 7506 | - | ||
4947 | 7507 | -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
4948 | 7508 | - | ||
4949 | 7509 | -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
4950 | 7510 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4951 | 7511 | -AC_LIBTOOL_PROG_CC_C_O($1) | ||
4952 | 7512 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4953 | 7513 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4954 | 7514 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4955 | 7515 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4956 | 7516 | - | ||
4957 | 7517 | -AC_LIBTOOL_CONFIG($1) | ||
4958 | 7518 | - | ||
4959 | 7519 | -AC_LANG_RESTORE | ||
4960 | 7520 | -CC="$lt_save_CC" | ||
4961 | 7521 | -])# AC_LIBTOOL_LANG_GCJ_CONFIG | ||
4962 | 7522 | - | ||
4963 | 7523 | - | ||
4964 | 7524 | -# AC_LIBTOOL_LANG_RC_CONFIG | ||
4965 | 7525 | -# ------------------------- | ||
4966 | 7526 | -# Ensure that the configuration vars for the Windows resource compiler are | ||
4967 | 7527 | -# suitably defined. Those variables are subsequently used by | ||
4968 | 7528 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4969 | 7529 | -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) | ||
4970 | 7530 | -AC_DEFUN([_LT_AC_LANG_RC_CONFIG], | ||
4971 | 7531 | -[AC_LANG_SAVE | ||
4972 | 7532 | - | ||
4973 | 7533 | -# Source file extension for RC test sources. | ||
4974 | 7534 | -ac_ext=rc | ||
4975 | 7535 | - | ||
4976 | 7536 | -# Object file extension for compiled RC test sources. | ||
4977 | 7537 | -objext=o | ||
4978 | 7538 | -_LT_AC_TAGVAR(objext, $1)=$objext | ||
4979 | 7539 | - | ||
4980 | 7540 | -# Code to be used in simple compile tests | ||
4981 | 7541 | -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | ||
4982 | 7542 | - | ||
4983 | 7543 | -# Code to be used in simple link tests | ||
4984 | 7544 | -lt_simple_link_test_code="$lt_simple_compile_test_code" | ||
4985 | 7545 | - | ||
4986 | 7546 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
4987 | 7547 | -_LT_AC_SYS_COMPILER | ||
4988 | 7548 | - | ||
4989 | 7549 | -# save warnings/boilerplate of simple test code | ||
4990 | 7550 | -_LT_COMPILER_BOILERPLATE | ||
4991 | 7551 | -_LT_LINKER_BOILERPLATE | ||
4992 | 7552 | - | ||
4993 | 7553 | -# Allow CC to be a program name with arguments. | ||
4994 | 7554 | -lt_save_CC="$CC" | ||
4995 | 7555 | -CC=${RC-"windres"} | ||
4996 | 7556 | -compiler=$CC | ||
4997 | 7557 | -_LT_AC_TAGVAR(compiler, $1)=$CC | ||
4998 | 7558 | -_LT_CC_BASENAME([$compiler]) | ||
4999 | 7559 | -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
5000 | 7560 | - |
The diff has been truncated for viewing.