Merge lp:~indicator-applet-developers/indicator-applet/ubuntu into lp:~ubuntu-desktop/indicator-applet/ubuntu
- ubuntu
- Merge into ubuntu
Proposed by
Ted Gould
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~indicator-applet-developers/indicator-applet/ubuntu |
Merge into: | lp:~ubuntu-desktop/indicator-applet/ubuntu |
Diff against target: |
43360 lines (+43002/-126) 30 files modified
.bzr-builddeb/default.conf (+1/-1) .bzrignore (+0/-109) COPYING.LGPL (+165/-0) INSTALL (+302/-0) Makefile.am (+3/-0) Makefile.in (+771/-0) aclocal.m4 (+9893/-0) autogen.sh (+0/-11) compile (+143/-0) config.guess (+1533/-0) config.h.in (+98/-0) config.sub (+1693/-0) configure (+15495/-0) configure.ac (+1/-1) data/Makefile.in (+568/-0) debian/changelog (+15/-0) debian/copyright (+22/-0) depcomp (+630/-0) install-sh (+520/-0) ltmain.sh (+8413/-0) missing (+376/-0) mkinstalldirs (+162/-0) po/Makefile.in.in (+217/-0) src/Makefile.am (+15/-3) src/Makefile.in (+809/-0) src/applet-main.c (+35/-1) src/eggaccelerators.c (+656/-0) src/eggaccelerators.h (+86/-0) src/tomboykeybinder.c (+337/-0) src/tomboykeybinder.h (+43/-0) |
To merge this branch: | bzr merge lp:~indicator-applet-developers/indicator-applet/ubuntu |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastien Bacher | Pending | ||
Review via email: mp+22629@code.launchpad.net |
Commit message
Description of the change
0.3.5
NOTE: Switching to merge-upstream format. Large diff.
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 '.bzr-builddeb/default.conf' |
2 | --- .bzr-builddeb/default.conf 2009-03-17 09:54:24 +0000 |
3 | +++ .bzr-builddeb/default.conf 2010-04-01 20:54:32 +0000 |
4 | @@ -1,2 +1,2 @@ |
5 | [BUILDDEB] |
6 | -merge = True |
7 | +merge = False |
8 | |
9 | === removed file '.bzrignore' |
10 | --- .bzrignore 2010-01-04 19:26:05 +0000 |
11 | +++ .bzrignore 1970-01-01 00:00:00 +0000 |
12 | @@ -1,109 +0,0 @@ |
13 | -compile |
14 | -config.status.lineno |
15 | -m4 |
16 | -data/GNOME_IndicatorApplet.server |
17 | -data/GNOME_IndicatorApplet.server.in |
18 | -data/indicator-applet.schemas |
19 | -po/@GETTEXT_PACKAGE@.pot |
20 | -po/indicator-applet.pot |
21 | -src/indicator-applet |
22 | -dbus-indicate-client.h |
23 | -dbus-indicate-server.h |
24 | -listener-marshal.c |
25 | -listener-marshal.h |
26 | -gtk-doc.make |
27 | -docs/reference/.libs |
28 | -docs/reference/html |
29 | -docs/reference/html-build.stamp |
30 | -docs/reference/html.stamp |
31 | -docs/reference/libindicate-decl-list.txt |
32 | -docs/reference/libindicate-decl.txt |
33 | -docs/reference/libindicate-overrides.txt |
34 | -docs/reference/libindicate-undeclared.txt |
35 | -docs/reference/libindicate-undocumented.txt |
36 | -docs/reference/libindicate-unused.txt |
37 | -docs/reference/libindicate.args |
38 | -docs/reference/libindicate.hierarchy |
39 | -docs/reference/libindicate.interfaces |
40 | -docs/reference/libindicate.prerequisites |
41 | -docs/reference/libindicate.signals |
42 | -docs/reference/scan-build.stamp |
43 | -docs/reference/sgml-build.stamp |
44 | -docs/reference/sgml.stamp |
45 | -docs/reference/tmpl-build.stamp |
46 | -docs/reference/tmpl.stamp |
47 | -docs/reference/version.xml |
48 | -docs/reference/xml |
49 | -docs/reference/tmpl/indicator.sgml |
50 | -libindicate/.deps |
51 | -libindicate/.libs |
52 | -libindicate/Indicate-0.1.gir |
53 | -libindicate/Indicate-0.1.typelib |
54 | -libindicate/dbus-listener-client.h |
55 | -libindicate/dbus-listener-server.h |
56 | -libindicate/indicate.pc |
57 | -libindicate/libindicate.la |
58 | -libindicate/libindicate_la-indicator-message.lo |
59 | -libindicate/libindicate_la-indicator.lo |
60 | -libindicate/libindicate_la-listener-marshal.lo |
61 | -libindicate/libindicate_la-listener.lo |
62 | -libindicate/libindicate_la-server.lo |
63 | -tests/.deps |
64 | -tests/.libs |
65 | -tests/im-client |
66 | -tests/indicate-alot |
67 | -tests/indicate-and-crash |
68 | -tests/listen-and-print |
69 | -tests/show-hide-server |
70 | -libindicate/indicate-enum-types.c |
71 | -libindicate/indicate-enum-types.h |
72 | -libindicate/libindicate_la-indicate-enum-types.lo |
73 | -libindicate/s-enum-types-c |
74 | -libindicate/s-enum-types-h |
75 | -indicator.pc |
76 | -examples/.deps |
77 | -examples/.libs |
78 | -examples/im-client |
79 | -examples/indicate-alot |
80 | -examples/indicate-and-crash |
81 | -examples/listen-and-print |
82 | -examples/show-hide-server |
83 | -test-simple-client |
84 | -test-simple-server |
85 | -test-interests-client |
86 | -test-interests-server |
87 | -test-interests-server1 |
88 | -test-interests-server2 |
89 | -test-interests-server3 |
90 | -test-interests-server4 |
91 | -test-interests-server5 |
92 | -test-thousand-indicators-server |
93 | -test-thousand-indicators-client |
94 | -libindicate_la-server-marshal.lo |
95 | -server-marshal.c |
96 | -server-marshal.h |
97 | -libindicate-gtk.la |
98 | -libindicate_gtk_la-indicator.lo |
99 | -libindicate_gtk_la-indicator.o |
100 | -libindicate_gtk_la-listener.lo |
101 | -libindicate_gtk_la-listener.o |
102 | -indicate-gtk.pc |
103 | -.deps |
104 | -.libs |
105 | -indicator-applet-*.tar.gz |
106 | -docs/reference/tmpl/indicator-message.sgml |
107 | -docs/reference/tmpl/indicator-message.sgml.bak |
108 | -docs/reference/tmpl/indicator.sgml.bak |
109 | -docs/reference/tmpl/libindicate-unused.sgml.bak |
110 | -docs/reference/tmpl/listener.sgml |
111 | -docs/reference/tmpl/listener.sgml.bak |
112 | -docs/reference/tmpl/server.sgml |
113 | -docs/reference/tmpl/server.sgml.bak |
114 | -src-session/indicator-applet-sus |
115 | -data/GNOME_IndicatorAppletSUS.server |
116 | -data/GNOME_IndicatorAppletSUS.server.in |
117 | -src-session/indicator-applet-no-sus |
118 | -src-session/indicator-applet-session |
119 | -src/indicator-applet-complete |
120 | -src/indicator-applet-session |
121 | -data/GNOME_IndicatorAppletComplete.server |
122 | |
123 | === added file 'COPYING.LGPL' |
124 | --- COPYING.LGPL 1970-01-01 00:00:00 +0000 |
125 | +++ COPYING.LGPL 2010-04-01 20:54:32 +0000 |
126 | @@ -0,0 +1,165 @@ |
127 | + GNU LESSER GENERAL PUBLIC LICENSE |
128 | + Version 3, 29 June 2007 |
129 | + |
130 | + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
131 | + Everyone is permitted to copy and distribute verbatim copies |
132 | + of this license document, but changing it is not allowed. |
133 | + |
134 | + |
135 | + This version of the GNU Lesser General Public License incorporates |
136 | +the terms and conditions of version 3 of the GNU General Public |
137 | +License, supplemented by the additional permissions listed below. |
138 | + |
139 | + 0. Additional Definitions. |
140 | + |
141 | + As used herein, "this License" refers to version 3 of the GNU Lesser |
142 | +General Public License, and the "GNU GPL" refers to version 3 of the GNU |
143 | +General Public License. |
144 | + |
145 | + "The Library" refers to a covered work governed by this License, |
146 | +other than an Application or a Combined Work as defined below. |
147 | + |
148 | + An "Application" is any work that makes use of an interface provided |
149 | +by the Library, but which is not otherwise based on the Library. |
150 | +Defining a subclass of a class defined by the Library is deemed a mode |
151 | +of using an interface provided by the Library. |
152 | + |
153 | + A "Combined Work" is a work produced by combining or linking an |
154 | +Application with the Library. The particular version of the Library |
155 | +with which the Combined Work was made is also called the "Linked |
156 | +Version". |
157 | + |
158 | + The "Minimal Corresponding Source" for a Combined Work means the |
159 | +Corresponding Source for the Combined Work, excluding any source code |
160 | +for portions of the Combined Work that, considered in isolation, are |
161 | +based on the Application, and not on the Linked Version. |
162 | + |
163 | + The "Corresponding Application Code" for a Combined Work means the |
164 | +object code and/or source code for the Application, including any data |
165 | +and utility programs needed for reproducing the Combined Work from the |
166 | +Application, but excluding the System Libraries of the Combined Work. |
167 | + |
168 | + 1. Exception to Section 3 of the GNU GPL. |
169 | + |
170 | + You may convey a covered work under sections 3 and 4 of this License |
171 | +without being bound by section 3 of the GNU GPL. |
172 | + |
173 | + 2. Conveying Modified Versions. |
174 | + |
175 | + If you modify a copy of the Library, and, in your modifications, a |
176 | +facility refers to a function or data to be supplied by an Application |
177 | +that uses the facility (other than as an argument passed when the |
178 | +facility is invoked), then you may convey a copy of the modified |
179 | +version: |
180 | + |
181 | + a) under this License, provided that you make a good faith effort to |
182 | + ensure that, in the event an Application does not supply the |
183 | + function or data, the facility still operates, and performs |
184 | + whatever part of its purpose remains meaningful, or |
185 | + |
186 | + b) under the GNU GPL, with none of the additional permissions of |
187 | + this License applicable to that copy. |
188 | + |
189 | + 3. Object Code Incorporating Material from Library Header Files. |
190 | + |
191 | + The object code form of an Application may incorporate material from |
192 | +a header file that is part of the Library. You may convey such object |
193 | +code under terms of your choice, provided that, if the incorporated |
194 | +material is not limited to numerical parameters, data structure |
195 | +layouts and accessors, or small macros, inline functions and templates |
196 | +(ten or fewer lines in length), you do both of the following: |
197 | + |
198 | + a) Give prominent notice with each copy of the object code that the |
199 | + Library is used in it and that the Library and its use are |
200 | + covered by this License. |
201 | + |
202 | + b) Accompany the object code with a copy of the GNU GPL and this license |
203 | + document. |
204 | + |
205 | + 4. Combined Works. |
206 | + |
207 | + You may convey a Combined Work under terms of your choice that, |
208 | +taken together, effectively do not restrict modification of the |
209 | +portions of the Library contained in the Combined Work and reverse |
210 | +engineering for debugging such modifications, if you also do each of |
211 | +the following: |
212 | + |
213 | + a) Give prominent notice with each copy of the Combined Work that |
214 | + the Library is used in it and that the Library and its use are |
215 | + covered by this License. |
216 | + |
217 | + b) Accompany the Combined Work with a copy of the GNU GPL and this license |
218 | + document. |
219 | + |
220 | + c) For a Combined Work that displays copyright notices during |
221 | + execution, include the copyright notice for the Library among |
222 | + these notices, as well as a reference directing the user to the |
223 | + copies of the GNU GPL and this license document. |
224 | + |
225 | + d) Do one of the following: |
226 | + |
227 | + 0) Convey the Minimal Corresponding Source under the terms of this |
228 | + License, and the Corresponding Application Code in a form |
229 | + suitable for, and under terms that permit, the user to |
230 | + recombine or relink the Application with a modified version of |
231 | + the Linked Version to produce a modified Combined Work, in the |
232 | + manner specified by section 6 of the GNU GPL for conveying |
233 | + Corresponding Source. |
234 | + |
235 | + 1) Use a suitable shared library mechanism for linking with the |
236 | + Library. A suitable mechanism is one that (a) uses at run time |
237 | + a copy of the Library already present on the user's computer |
238 | + system, and (b) will operate properly with a modified version |
239 | + of the Library that is interface-compatible with the Linked |
240 | + Version. |
241 | + |
242 | + e) Provide Installation Information, but only if you would otherwise |
243 | + be required to provide such information under section 6 of the |
244 | + GNU GPL, and only to the extent that such information is |
245 | + necessary to install and execute a modified version of the |
246 | + Combined Work produced by recombining or relinking the |
247 | + Application with a modified version of the Linked Version. (If |
248 | + you use option 4d0, the Installation Information must accompany |
249 | + the Minimal Corresponding Source and Corresponding Application |
250 | + Code. If you use option 4d1, you must provide the Installation |
251 | + Information in the manner specified by section 6 of the GNU GPL |
252 | + for conveying Corresponding Source.) |
253 | + |
254 | + 5. Combined Libraries. |
255 | + |
256 | + You may place library facilities that are a work based on the |
257 | +Library side by side in a single library together with other library |
258 | +facilities that are not Applications and are not covered by this |
259 | +License, and convey such a combined library under terms of your |
260 | +choice, if you do both of the following: |
261 | + |
262 | + a) Accompany the combined library with a copy of the same work based |
263 | + on the Library, uncombined with any other library facilities, |
264 | + conveyed under the terms of this License. |
265 | + |
266 | + b) Give prominent notice with the combined library that part of it |
267 | + is a work based on the Library, and explaining where to find the |
268 | + accompanying uncombined form of the same work. |
269 | + |
270 | + 6. Revised Versions of the GNU Lesser General Public License. |
271 | + |
272 | + The Free Software Foundation may publish revised and/or new versions |
273 | +of the GNU Lesser General Public License from time to time. Such new |
274 | +versions will be similar in spirit to the present version, but may |
275 | +differ in detail to address new problems or concerns. |
276 | + |
277 | + Each version is given a distinguishing version number. If the |
278 | +Library as you received it specifies that a certain numbered version |
279 | +of the GNU Lesser General Public License "or any later version" |
280 | +applies to it, you have the option of following the terms and |
281 | +conditions either of that published version or of any later version |
282 | +published by the Free Software Foundation. If the Library as you |
283 | +received it does not specify a version number of the GNU Lesser |
284 | +General Public License, you may choose any version of the GNU Lesser |
285 | +General Public License ever published by the Free Software Foundation. |
286 | + |
287 | + If the Library as you received it specifies that a proxy can decide |
288 | +whether future versions of the GNU Lesser General Public License shall |
289 | +apply, that proxy's public statement of acceptance of any version is |
290 | +permanent authorization for you to choose that version for the |
291 | +Library. |
292 | |
293 | === added file 'INSTALL' |
294 | --- INSTALL 1970-01-01 00:00:00 +0000 |
295 | +++ INSTALL 2010-04-01 20:54:32 +0000 |
296 | @@ -0,0 +1,302 @@ |
297 | +Installation Instructions |
298 | +************************* |
299 | + |
300 | +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, |
301 | +2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
302 | + |
303 | + This file is free documentation; the Free Software Foundation gives |
304 | +unlimited permission to copy, distribute and modify it. |
305 | + |
306 | +Basic Installation |
307 | +================== |
308 | + |
309 | + Briefly, the shell commands `./configure; make; make install' should |
310 | +configure, build, and install this package. The following |
311 | +more-detailed instructions are generic; see the `README' file for |
312 | +instructions specific to this package. |
313 | + |
314 | + The `configure' shell script attempts to guess correct values for |
315 | +various system-dependent variables used during compilation. It uses |
316 | +those values to create a `Makefile' in each directory of the package. |
317 | +It may also create one or more `.h' files containing system-dependent |
318 | +definitions. Finally, it creates a shell script `config.status' that |
319 | +you can run in the future to recreate the current configuration, and a |
320 | +file `config.log' containing compiler output (useful mainly for |
321 | +debugging `configure'). |
322 | + |
323 | + It can also use an optional file (typically called `config.cache' |
324 | +and enabled with `--cache-file=config.cache' or simply `-C') that saves |
325 | +the results of its tests to speed up reconfiguring. Caching is |
326 | +disabled by default to prevent problems with accidental use of stale |
327 | +cache files. |
328 | + |
329 | + If you need to do unusual things to compile the package, please try |
330 | +to figure out how `configure' could check whether to do them, and mail |
331 | +diffs or instructions to the address given in the `README' so they can |
332 | +be considered for the next release. If you are using the cache, and at |
333 | +some point `config.cache' contains results you don't want to keep, you |
334 | +may remove or edit it. |
335 | + |
336 | + The file `configure.ac' (or `configure.in') is used to create |
337 | +`configure' by a program called `autoconf'. You need `configure.ac' if |
338 | +you want to change it or regenerate `configure' using a newer version |
339 | +of `autoconf'. |
340 | + |
341 | +The simplest way to compile this package is: |
342 | + |
343 | + 1. `cd' to the directory containing the package's source code and type |
344 | + `./configure' to configure the package for your system. |
345 | + |
346 | + Running `configure' might take a while. While running, it prints |
347 | + some messages telling which features it is checking for. |
348 | + |
349 | + 2. Type `make' to compile the package. |
350 | + |
351 | + 3. Optionally, type `make check' to run any self-tests that come with |
352 | + the package. |
353 | + |
354 | + 4. Type `make install' to install the programs and any data files and |
355 | + documentation. |
356 | + |
357 | + 5. You can remove the program binaries and object files from the |
358 | + source code directory by typing `make clean'. To also remove the |
359 | + files that `configure' created (so you can compile the package for |
360 | + a different kind of computer), type `make distclean'. There is |
361 | + also a `make maintainer-clean' target, but that is intended mainly |
362 | + for the package's developers. If you use it, you may have to get |
363 | + all sorts of other programs in order to regenerate files that came |
364 | + with the distribution. |
365 | + |
366 | + 6. Often, you can also type `make uninstall' to remove the installed |
367 | + files again. |
368 | + |
369 | +Compilers and Options |
370 | +===================== |
371 | + |
372 | + Some systems require unusual options for compilation or linking that |
373 | +the `configure' script does not know about. Run `./configure --help' |
374 | +for details on some of the pertinent environment variables. |
375 | + |
376 | + You can give `configure' initial values for configuration parameters |
377 | +by setting variables in the command line or in the environment. Here |
378 | +is an example: |
379 | + |
380 | + ./configure CC=c99 CFLAGS=-g LIBS=-lposix |
381 | + |
382 | + *Note Defining Variables::, for more details. |
383 | + |
384 | +Compiling For Multiple Architectures |
385 | +==================================== |
386 | + |
387 | + You can compile the package for more than one kind of computer at the |
388 | +same time, by placing the object files for each architecture in their |
389 | +own directory. To do this, you can use GNU `make'. `cd' to the |
390 | +directory where you want the object files and executables to go and run |
391 | +the `configure' script. `configure' automatically checks for the |
392 | +source code in the directory that `configure' is in and in `..'. |
393 | + |
394 | + With a non-GNU `make', it is safer to compile the package for one |
395 | +architecture at a time in the source code directory. After you have |
396 | +installed the package for one architecture, use `make distclean' before |
397 | +reconfiguring for another architecture. |
398 | + |
399 | + On MacOS X 10.5 and later systems, you can create libraries and |
400 | +executables that work on multiple system types--known as "fat" or |
401 | +"universal" binaries--by specifying multiple `-arch' options to the |
402 | +compiler but only a single `-arch' option to the preprocessor. Like |
403 | +this: |
404 | + |
405 | + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
406 | + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
407 | + CPP="gcc -E" CXXCPP="g++ -E" |
408 | + |
409 | + This is not guaranteed to produce working output in all cases, you |
410 | +may have to build one architecture at a time and combine the results |
411 | +using the `lipo' tool if you have problems. |
412 | + |
413 | +Installation Names |
414 | +================== |
415 | + |
416 | + By default, `make install' installs the package's commands under |
417 | +`/usr/local/bin', include files under `/usr/local/include', etc. You |
418 | +can specify an installation prefix other than `/usr/local' by giving |
419 | +`configure' the option `--prefix=PREFIX'. |
420 | + |
421 | + You can specify separate installation prefixes for |
422 | +architecture-specific files and architecture-independent files. If you |
423 | +pass the option `--exec-prefix=PREFIX' to `configure', the package uses |
424 | +PREFIX as the prefix for installing programs and libraries. |
425 | +Documentation and other data files still use the regular prefix. |
426 | + |
427 | + In addition, if you use an unusual directory layout you can give |
428 | +options like `--bindir=DIR' to specify different values for particular |
429 | +kinds of files. Run `configure --help' for a list of the directories |
430 | +you can set and what kinds of files go in them. |
431 | + |
432 | + If the package supports it, you can cause programs to be installed |
433 | +with an extra prefix or suffix on their names by giving `configure' the |
434 | +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. |
435 | + |
436 | +Optional Features |
437 | +================= |
438 | + |
439 | + Some packages pay attention to `--enable-FEATURE' options to |
440 | +`configure', where FEATURE indicates an optional part of the package. |
441 | +They may also pay attention to `--with-PACKAGE' options, where PACKAGE |
442 | +is something like `gnu-as' or `x' (for the X Window System). The |
443 | +`README' should mention any `--enable-' and `--with-' options that the |
444 | +package recognizes. |
445 | + |
446 | + For packages that use the X Window System, `configure' can usually |
447 | +find the X include and library files automatically, but if it doesn't, |
448 | +you can use the `configure' options `--x-includes=DIR' and |
449 | +`--x-libraries=DIR' to specify their locations. |
450 | + |
451 | +Particular systems |
452 | +================== |
453 | + |
454 | + On HP-UX, the default C compiler is not ANSI C compatible. If GNU |
455 | +CC is not installed, it is recommended to use the following options in |
456 | +order to use an ANSI C compiler: |
457 | + |
458 | + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" |
459 | + |
460 | +and if that doesn't work, install pre-built binaries of GCC for HP-UX. |
461 | + |
462 | + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot |
463 | +parse its `<wchar.h>' header file. The option `-nodtk' can be used as |
464 | +a workaround. If GNU CC is not installed, it is therefore recommended |
465 | +to try |
466 | + |
467 | + ./configure CC="cc" |
468 | + |
469 | +and if that doesn't work, try |
470 | + |
471 | + ./configure CC="cc -nodtk" |
472 | + |
473 | + On Solaris, don't put `/usr/ucb' early in your `PATH'. This |
474 | +directory contains several dysfunctional programs; working variants of |
475 | +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' |
476 | +in your `PATH', put it _after_ `/usr/bin'. |
477 | + |
478 | + On Haiku, software installed for all users goes in `/boot/common', |
479 | +not `/usr/local'. It is recommended to use the following options: |
480 | + |
481 | + ./configure --prefix=/boot/common |
482 | + |
483 | +Specifying the System Type |
484 | +========================== |
485 | + |
486 | + There may be some features `configure' cannot figure out |
487 | +automatically, but needs to determine by the type of machine the package |
488 | +will run on. Usually, assuming the package is built to be run on the |
489 | +_same_ architectures, `configure' can figure that out, but if it prints |
490 | +a message saying it cannot guess the machine type, give it the |
491 | +`--build=TYPE' option. TYPE can either be a short name for the system |
492 | +type, such as `sun4', or a canonical name which has the form: |
493 | + |
494 | + CPU-COMPANY-SYSTEM |
495 | + |
496 | +where SYSTEM can have one of these forms: |
497 | + |
498 | + OS |
499 | + KERNEL-OS |
500 | + |
501 | + See the file `config.sub' for the possible values of each field. If |
502 | +`config.sub' isn't included in this package, then this package doesn't |
503 | +need to know the machine type. |
504 | + |
505 | + If you are _building_ compiler tools for cross-compiling, you should |
506 | +use the option `--target=TYPE' to select the type of system they will |
507 | +produce code for. |
508 | + |
509 | + If you want to _use_ a cross compiler, that generates code for a |
510 | +platform different from the build platform, you should specify the |
511 | +"host" platform (i.e., that on which the generated programs will |
512 | +eventually be run) with `--host=TYPE'. |
513 | + |
514 | +Sharing Defaults |
515 | +================ |
516 | + |
517 | + If you want to set default values for `configure' scripts to share, |
518 | +you can create a site shell script called `config.site' that gives |
519 | +default values for variables like `CC', `cache_file', and `prefix'. |
520 | +`configure' looks for `PREFIX/share/config.site' if it exists, then |
521 | +`PREFIX/etc/config.site' if it exists. Or, you can set the |
522 | +`CONFIG_SITE' environment variable to the location of the site script. |
523 | +A warning: not all `configure' scripts look for a site script. |
524 | + |
525 | +Defining Variables |
526 | +================== |
527 | + |
528 | + Variables not defined in a site shell script can be set in the |
529 | +environment passed to `configure'. However, some packages may run |
530 | +configure again during the build, and the customized values of these |
531 | +variables may be lost. In order to avoid this problem, you should set |
532 | +them in the `configure' command line, using `VAR=value'. For example: |
533 | + |
534 | + ./configure CC=/usr/local2/bin/gcc |
535 | + |
536 | +causes the specified `gcc' to be used as the C compiler (unless it is |
537 | +overridden in the site shell script). |
538 | + |
539 | +Unfortunately, this technique does not work for `CONFIG_SHELL' due to |
540 | +an Autoconf bug. Until the bug is fixed you can use this workaround: |
541 | + |
542 | + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash |
543 | + |
544 | +`configure' Invocation |
545 | +====================== |
546 | + |
547 | + `configure' recognizes the following options to control how it |
548 | +operates. |
549 | + |
550 | +`--help' |
551 | +`-h' |
552 | + Print a summary of all of the options to `configure', and exit. |
553 | + |
554 | +`--help=short' |
555 | +`--help=recursive' |
556 | + Print a summary of the options unique to this package's |
557 | + `configure', and exit. The `short' variant lists options used |
558 | + only in the top level, while the `recursive' variant lists options |
559 | + also present in any nested packages. |
560 | + |
561 | +`--version' |
562 | +`-V' |
563 | + Print the version of Autoconf used to generate the `configure' |
564 | + script, and exit. |
565 | + |
566 | +`--cache-file=FILE' |
567 | + Enable the cache: use and save the results of the tests in FILE, |
568 | + traditionally `config.cache'. FILE defaults to `/dev/null' to |
569 | + disable caching. |
570 | + |
571 | +`--config-cache' |
572 | +`-C' |
573 | + Alias for `--cache-file=config.cache'. |
574 | + |
575 | +`--quiet' |
576 | +`--silent' |
577 | +`-q' |
578 | + Do not print messages saying which checks are being made. To |
579 | + suppress all normal output, redirect it to `/dev/null' (any error |
580 | + messages will still be shown). |
581 | + |
582 | +`--srcdir=DIR' |
583 | + Look for the package's source code in directory DIR. Usually |
584 | + `configure' can determine that directory automatically. |
585 | + |
586 | +`--prefix=DIR' |
587 | + Use DIR as the installation prefix. *Note Installation Names:: |
588 | + for more details, including other options available for fine-tuning |
589 | + the installation locations. |
590 | + |
591 | +`--no-create' |
592 | +`-n' |
593 | + Run the configure checks, but stop before creating any output |
594 | + files. |
595 | + |
596 | +`configure' also accepts some other, not widely useful, options. Run |
597 | +`configure --help' for more details. |
598 | + |
599 | |
600 | === modified file 'Makefile.am' |
601 | --- Makefile.am 2010-01-04 18:47:50 +0000 |
602 | +++ Makefile.am 2010-04-01 20:54:32 +0000 |
603 | @@ -10,3 +10,6 @@ |
604 | indicator-applet-*.tar.gz \ |
605 | gtk-doc.make |
606 | |
607 | +EXTRA_DIST = \ |
608 | + COPYING.LGPL |
609 | + |
610 | |
611 | === added file 'Makefile.in' |
612 | --- Makefile.in 1970-01-01 00:00:00 +0000 |
613 | +++ Makefile.in 2010-04-01 20:54:32 +0000 |
614 | @@ -0,0 +1,771 @@ |
615 | +# Makefile.in generated by automake 1.11.1 from Makefile.am. |
616 | +# @configure_input@ |
617 | + |
618 | +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
619 | +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
620 | +# Inc. |
621 | +# This Makefile.in is free software; the Free Software Foundation |
622 | +# gives unlimited permission to copy and/or distribute it, |
623 | +# with or without modifications, as long as this notice is preserved. |
624 | + |
625 | +# This program is distributed in the hope that it will be useful, |
626 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
627 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
628 | +# PARTICULAR PURPOSE. |
629 | + |
630 | +@SET_MAKE@ |
631 | +VPATH = @srcdir@ |
632 | +pkgdatadir = $(datadir)/@PACKAGE@ |
633 | +pkgincludedir = $(includedir)/@PACKAGE@ |
634 | +pkglibdir = $(libdir)/@PACKAGE@ |
635 | +pkglibexecdir = $(libexecdir)/@PACKAGE@ |
636 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
637 | +install_sh_DATA = $(install_sh) -c -m 644 |
638 | +install_sh_PROGRAM = $(install_sh) -c |
639 | +install_sh_SCRIPT = $(install_sh) -c |
640 | +INSTALL_HEADER = $(INSTALL_DATA) |
641 | +transform = $(program_transform_name) |
642 | +NORMAL_INSTALL = : |
643 | +PRE_INSTALL = : |
644 | +POST_INSTALL = : |
645 | +NORMAL_UNINSTALL = : |
646 | +PRE_UNINSTALL = : |
647 | +POST_UNINSTALL = : |
648 | +build_triplet = @build@ |
649 | +host_triplet = @host@ |
650 | +subdir = . |
651 | +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
652 | + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ |
653 | + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ |
654 | + compile config.guess config.sub depcomp install-sh ltmain.sh \ |
655 | + missing mkinstalldirs |
656 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
657 | +am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
658 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
659 | + $(ACLOCAL_M4) |
660 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
661 | + configure.lineno config.status.lineno |
662 | +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
663 | +CONFIG_HEADER = config.h |
664 | +CONFIG_CLEAN_FILES = |
665 | +CONFIG_CLEAN_VPATH_FILES = |
666 | +AM_V_GEN = $(am__v_GEN_$(V)) |
667 | +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) |
668 | +am__v_GEN_0 = @echo " GEN " $@; |
669 | +AM_V_at = $(am__v_at_$(V)) |
670 | +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) |
671 | +am__v_at_0 = @ |
672 | +SOURCES = |
673 | +DIST_SOURCES = |
674 | +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ |
675 | + html-recursive info-recursive install-data-recursive \ |
676 | + install-dvi-recursive install-exec-recursive \ |
677 | + install-html-recursive install-info-recursive \ |
678 | + install-pdf-recursive install-ps-recursive install-recursive \ |
679 | + installcheck-recursive installdirs-recursive pdf-recursive \ |
680 | + ps-recursive uninstall-recursive |
681 | +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
682 | + distclean-recursive maintainer-clean-recursive |
683 | +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ |
684 | + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ |
685 | + distdir dist dist-all distcheck |
686 | +ETAGS = etags |
687 | +CTAGS = ctags |
688 | +DIST_SUBDIRS = $(SUBDIRS) |
689 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
690 | +distdir = $(PACKAGE)-$(VERSION) |
691 | +top_distdir = $(distdir) |
692 | +am__remove_distdir = \ |
693 | + { test ! -d "$(distdir)" \ |
694 | + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ |
695 | + && rm -fr "$(distdir)"; }; } |
696 | +am__relativize = \ |
697 | + dir0=`pwd`; \ |
698 | + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ |
699 | + sed_rest='s,^[^/]*/*,,'; \ |
700 | + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ |
701 | + sed_butlast='s,/*[^/]*$$,,'; \ |
702 | + while test -n "$$dir1"; do \ |
703 | + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ |
704 | + if test "$$first" != "."; then \ |
705 | + if test "$$first" = ".."; then \ |
706 | + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ |
707 | + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ |
708 | + else \ |
709 | + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ |
710 | + if test "$$first2" = "$$first"; then \ |
711 | + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ |
712 | + else \ |
713 | + dir2="../$$dir2"; \ |
714 | + fi; \ |
715 | + dir0="$$dir0"/"$$first"; \ |
716 | + fi; \ |
717 | + fi; \ |
718 | + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ |
719 | + done; \ |
720 | + reldir="$$dir2" |
721 | +DIST_ARCHIVES = $(distdir).tar.gz |
722 | +GZIP_ENV = --best |
723 | +distuninstallcheck_listfiles = find . -type f -print |
724 | +distcleancheck_listfiles = find . -type f -print |
725 | +ACLOCAL = @ACLOCAL@ |
726 | +ALL_LINGUAS = @ALL_LINGUAS@ |
727 | +AMTAR = @AMTAR@ |
728 | +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ |
729 | +APPLET_CFLAGS = @APPLET_CFLAGS@ |
730 | +APPLET_LIBS = @APPLET_LIBS@ |
731 | +AR = @AR@ |
732 | +AUTOCONF = @AUTOCONF@ |
733 | +AUTOHEADER = @AUTOHEADER@ |
734 | +AUTOMAKE = @AUTOMAKE@ |
735 | +AWK = @AWK@ |
736 | +CATALOGS = @CATALOGS@ |
737 | +CATOBJEXT = @CATOBJEXT@ |
738 | +CC = @CC@ |
739 | +CCDEPMODE = @CCDEPMODE@ |
740 | +CFLAGS = @CFLAGS@ |
741 | +CPP = @CPP@ |
742 | +CPPFLAGS = @CPPFLAGS@ |
743 | +CYGPATH_W = @CYGPATH_W@ |
744 | +DATADIRNAME = @DATADIRNAME@ |
745 | +DEFS = @DEFS@ |
746 | +DEPDIR = @DEPDIR@ |
747 | +DSYMUTIL = @DSYMUTIL@ |
748 | +DUMPBIN = @DUMPBIN@ |
749 | +ECHO_C = @ECHO_C@ |
750 | +ECHO_N = @ECHO_N@ |
751 | +ECHO_T = @ECHO_T@ |
752 | +EGREP = @EGREP@ |
753 | +EXEEXT = @EXEEXT@ |
754 | +EXPANDED_SYSCONFDIR = @EXPANDED_SYSCONFDIR@ |
755 | +FGREP = @FGREP@ |
756 | +GCONFTOOL = @GCONFTOOL@ |
757 | +GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ |
758 | +GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ |
759 | +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
760 | +GMOFILES = @GMOFILES@ |
761 | +GMSGFMT = @GMSGFMT@ |
762 | +GNOMELOCALEDIR = @GNOMELOCALEDIR@ |
763 | +GREP = @GREP@ |
764 | +INDICATORDIR = @INDICATORDIR@ |
765 | +INDICATORICONSDIR = @INDICATORICONSDIR@ |
766 | +INSTALL = @INSTALL@ |
767 | +INSTALL_DATA = @INSTALL_DATA@ |
768 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
769 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
770 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
771 | +INSTOBJEXT = @INSTOBJEXT@ |
772 | +INTLLIBS = @INTLLIBS@ |
773 | +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ |
774 | +INTLTOOL_MERGE = @INTLTOOL_MERGE@ |
775 | +INTLTOOL_PERL = @INTLTOOL_PERL@ |
776 | +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ |
777 | +LD = @LD@ |
778 | +LDFLAGS = @LDFLAGS@ |
779 | +LIBDIR = @LIBDIR@ |
780 | +LIBOBJS = @LIBOBJS@ |
781 | +LIBS = @LIBS@ |
782 | +LIBTOOL = @LIBTOOL@ |
783 | +LIPO = @LIPO@ |
784 | +LN_S = @LN_S@ |
785 | +LTLIBOBJS = @LTLIBOBJS@ |
786 | +MAINT = @MAINT@ |
787 | +MAKEINFO = @MAKEINFO@ |
788 | +MKDIR_P = @MKDIR_P@ |
789 | +MKINSTALLDIRS = @MKINSTALLDIRS@ |
790 | +MSGFMT = @MSGFMT@ |
791 | +MSGFMT_OPTS = @MSGFMT_OPTS@ |
792 | +MSGMERGE = @MSGMERGE@ |
793 | +NM = @NM@ |
794 | +NMEDIT = @NMEDIT@ |
795 | +OBJDUMP = @OBJDUMP@ |
796 | +OBJEXT = @OBJEXT@ |
797 | +OTOOL = @OTOOL@ |
798 | +OTOOL64 = @OTOOL64@ |
799 | +PACKAGE = @PACKAGE@ |
800 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
801 | +PACKAGE_NAME = @PACKAGE_NAME@ |
802 | +PACKAGE_STRING = @PACKAGE_STRING@ |
803 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
804 | +PACKAGE_URL = @PACKAGE_URL@ |
805 | +PACKAGE_VERSION = @PACKAGE_VERSION@ |
806 | +PATH_SEPARATOR = @PATH_SEPARATOR@ |
807 | +PKG_CONFIG = @PKG_CONFIG@ |
808 | +POFILES = @POFILES@ |
809 | +POSUB = @POSUB@ |
810 | +PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ |
811 | +PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ |
812 | +PREFIX = @PREFIX@ |
813 | +RANLIB = @RANLIB@ |
814 | +SED = @SED@ |
815 | +SET_MAKE = @SET_MAKE@ |
816 | +SHELL = @SHELL@ |
817 | +STRIP = @STRIP@ |
818 | +SYSCONFDIR = @SYSCONFDIR@ |
819 | +USE_NLS = @USE_NLS@ |
820 | +VERSION = @VERSION@ |
821 | +XGETTEXT = @XGETTEXT@ |
822 | +abs_builddir = @abs_builddir@ |
823 | +abs_srcdir = @abs_srcdir@ |
824 | +abs_top_builddir = @abs_top_builddir@ |
825 | +abs_top_srcdir = @abs_top_srcdir@ |
826 | +ac_ct_CC = @ac_ct_CC@ |
827 | +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
828 | +am__include = @am__include@ |
829 | +am__leading_dot = @am__leading_dot@ |
830 | +am__quote = @am__quote@ |
831 | +am__tar = @am__tar@ |
832 | +am__untar = @am__untar@ |
833 | +bindir = @bindir@ |
834 | +build = @build@ |
835 | +build_alias = @build_alias@ |
836 | +build_cpu = @build_cpu@ |
837 | +build_os = @build_os@ |
838 | +build_vendor = @build_vendor@ |
839 | +builddir = @builddir@ |
840 | +datadir = @datadir@ |
841 | +datarootdir = @datarootdir@ |
842 | +docdir = @docdir@ |
843 | +dvidir = @dvidir@ |
844 | +exec_prefix = @exec_prefix@ |
845 | +host = @host@ |
846 | +host_alias = @host_alias@ |
847 | +host_cpu = @host_cpu@ |
848 | +host_os = @host_os@ |
849 | +host_vendor = @host_vendor@ |
850 | +htmldir = @htmldir@ |
851 | +includedir = @includedir@ |
852 | +infodir = @infodir@ |
853 | +install_sh = @install_sh@ |
854 | +libdir = @libdir@ |
855 | +libexecdir = @libexecdir@ |
856 | +localedir = @localedir@ |
857 | +localstatedir = @localstatedir@ |
858 | +lt_ECHO = @lt_ECHO@ |
859 | +mandir = @mandir@ |
860 | +mkdir_p = @mkdir_p@ |
861 | +oldincludedir = @oldincludedir@ |
862 | +pdfdir = @pdfdir@ |
863 | +prefix = @prefix@ |
864 | +program_transform_name = @program_transform_name@ |
865 | +psdir = @psdir@ |
866 | +sbindir = @sbindir@ |
867 | +sharedstatedir = @sharedstatedir@ |
868 | +srcdir = @srcdir@ |
869 | +sysconfdir = @sysconfdir@ |
870 | +target_alias = @target_alias@ |
871 | +top_build_prefix = @top_build_prefix@ |
872 | +top_builddir = @top_builddir@ |
873 | +top_srcdir = @top_srcdir@ |
874 | +SUBDIRS = \ |
875 | + src \ |
876 | + data \ |
877 | + po |
878 | + |
879 | +DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall |
880 | +DISTCLEANFILES = \ |
881 | + indicator-applet-*.tar.gz \ |
882 | + gtk-doc.make |
883 | + |
884 | +EXTRA_DIST = \ |
885 | + COPYING.LGPL |
886 | + |
887 | +all: config.h |
888 | + $(MAKE) $(AM_MAKEFLAGS) all-recursive |
889 | + |
890 | +.SUFFIXES: |
891 | +am--refresh: |
892 | + @: |
893 | +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) |
894 | + @for dep in $?; do \ |
895 | + case '$(am__configure_deps)' in \ |
896 | + *$$dep*) \ |
897 | + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ |
898 | + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ |
899 | + && exit 0; \ |
900 | + exit 1;; \ |
901 | + esac; \ |
902 | + done; \ |
903 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ |
904 | + $(am__cd) $(top_srcdir) && \ |
905 | + $(AUTOMAKE) --gnu Makefile |
906 | +.PRECIOUS: Makefile |
907 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
908 | + @case '$?' in \ |
909 | + *config.status*) \ |
910 | + echo ' $(SHELL) ./config.status'; \ |
911 | + $(SHELL) ./config.status;; \ |
912 | + *) \ |
913 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ |
914 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ |
915 | + esac; |
916 | + |
917 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
918 | + $(SHELL) ./config.status --recheck |
919 | + |
920 | +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
921 | + $(am__cd) $(srcdir) && $(AUTOCONF) |
922 | +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) |
923 | + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
924 | +$(am__aclocal_m4_deps): |
925 | + |
926 | +config.h: stamp-h1 |
927 | + @if test ! -f $@; then \ |
928 | + rm -f stamp-h1; \ |
929 | + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ |
930 | + else :; fi |
931 | + |
932 | +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
933 | + @rm -f stamp-h1 |
934 | + cd $(top_builddir) && $(SHELL) ./config.status config.h |
935 | +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
936 | + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) |
937 | + rm -f stamp-h1 |
938 | + touch $@ |
939 | + |
940 | +distclean-hdr: |
941 | + -rm -f config.h stamp-h1 |
942 | + |
943 | +mostlyclean-libtool: |
944 | + -rm -f *.lo |
945 | + |
946 | +clean-libtool: |
947 | + -rm -rf .libs _libs |
948 | + |
949 | +distclean-libtool: |
950 | + -rm -f libtool config.lt |
951 | + |
952 | +# This directory's subdirectories are mostly independent; you can cd |
953 | +# into them and run `make' without going through this Makefile. |
954 | +# To change the values of `make' variables: instead of editing Makefiles, |
955 | +# (1) if the variable is set in `config.status', edit `config.status' |
956 | +# (which will cause the Makefiles to be regenerated when you run `make'); |
957 | +# (2) otherwise, pass the desired values on the `make' command line. |
958 | +$(RECURSIVE_TARGETS): |
959 | + @fail= failcom='exit 1'; \ |
960 | + for f in x $$MAKEFLAGS; do \ |
961 | + case $$f in \ |
962 | + *=* | --[!k]*);; \ |
963 | + *k*) failcom='fail=yes';; \ |
964 | + esac; \ |
965 | + done; \ |
966 | + dot_seen=no; \ |
967 | + target=`echo $@ | sed s/-recursive//`; \ |
968 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
969 | + echo "Making $$target in $$subdir"; \ |
970 | + if test "$$subdir" = "."; then \ |
971 | + dot_seen=yes; \ |
972 | + local_target="$$target-am"; \ |
973 | + else \ |
974 | + local_target="$$target"; \ |
975 | + fi; \ |
976 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
977 | + || eval $$failcom; \ |
978 | + done; \ |
979 | + if test "$$dot_seen" = "no"; then \ |
980 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
981 | + fi; test -z "$$fail" |
982 | + |
983 | +$(RECURSIVE_CLEAN_TARGETS): |
984 | + @fail= failcom='exit 1'; \ |
985 | + for f in x $$MAKEFLAGS; do \ |
986 | + case $$f in \ |
987 | + *=* | --[!k]*);; \ |
988 | + *k*) failcom='fail=yes';; \ |
989 | + esac; \ |
990 | + done; \ |
991 | + dot_seen=no; \ |
992 | + case "$@" in \ |
993 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ |
994 | + *) list='$(SUBDIRS)' ;; \ |
995 | + esac; \ |
996 | + rev=''; for subdir in $$list; do \ |
997 | + if test "$$subdir" = "."; then :; else \ |
998 | + rev="$$subdir $$rev"; \ |
999 | + fi; \ |
1000 | + done; \ |
1001 | + rev="$$rev ."; \ |
1002 | + target=`echo $@ | sed s/-recursive//`; \ |
1003 | + for subdir in $$rev; do \ |
1004 | + echo "Making $$target in $$subdir"; \ |
1005 | + if test "$$subdir" = "."; then \ |
1006 | + local_target="$$target-am"; \ |
1007 | + else \ |
1008 | + local_target="$$target"; \ |
1009 | + fi; \ |
1010 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
1011 | + || eval $$failcom; \ |
1012 | + done && test -z "$$fail" |
1013 | +tags-recursive: |
1014 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
1015 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ |
1016 | + done |
1017 | +ctags-recursive: |
1018 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
1019 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ |
1020 | + done |
1021 | + |
1022 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
1023 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
1024 | + unique=`for i in $$list; do \ |
1025 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
1026 | + done | \ |
1027 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
1028 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
1029 | + mkid -fID $$unique |
1030 | +tags: TAGS |
1031 | + |
1032 | +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
1033 | + $(TAGS_FILES) $(LISP) |
1034 | + set x; \ |
1035 | + here=`pwd`; \ |
1036 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
1037 | + include_option=--etags-include; \ |
1038 | + empty_fix=.; \ |
1039 | + else \ |
1040 | + include_option=--include; \ |
1041 | + empty_fix=; \ |
1042 | + fi; \ |
1043 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
1044 | + if test "$$subdir" = .; then :; else \ |
1045 | + test ! -f $$subdir/TAGS || \ |
1046 | + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ |
1047 | + fi; \ |
1048 | + done; \ |
1049 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
1050 | + unique=`for i in $$list; do \ |
1051 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
1052 | + done | \ |
1053 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
1054 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
1055 | + shift; \ |
1056 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
1057 | + test -n "$$unique" || unique=$$empty_fix; \ |
1058 | + if test $$# -gt 0; then \ |
1059 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
1060 | + "$$@" $$unique; \ |
1061 | + else \ |
1062 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
1063 | + $$unique; \ |
1064 | + fi; \ |
1065 | + fi |
1066 | +ctags: CTAGS |
1067 | +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
1068 | + $(TAGS_FILES) $(LISP) |
1069 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
1070 | + unique=`for i in $$list; do \ |
1071 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
1072 | + done | \ |
1073 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
1074 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
1075 | + test -z "$(CTAGS_ARGS)$$unique" \ |
1076 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
1077 | + $$unique |
1078 | + |
1079 | +GTAGS: |
1080 | + here=`$(am__cd) $(top_builddir) && pwd` \ |
1081 | + && $(am__cd) $(top_srcdir) \ |
1082 | + && gtags -i $(GTAGS_ARGS) "$$here" |
1083 | + |
1084 | +distclean-tags: |
1085 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
1086 | + |
1087 | +distdir: $(DISTFILES) |
1088 | + $(am__remove_distdir) |
1089 | + test -d "$(distdir)" || mkdir "$(distdir)" |
1090 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
1091 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
1092 | + list='$(DISTFILES)'; \ |
1093 | + dist_files=`for file in $$list; do echo $$file; done | \ |
1094 | + sed -e "s|^$$srcdirstrip/||;t" \ |
1095 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ |
1096 | + case $$dist_files in \ |
1097 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ |
1098 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ |
1099 | + sort -u` ;; \ |
1100 | + esac; \ |
1101 | + for file in $$dist_files; do \ |
1102 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
1103 | + if test -d $$d/$$file; then \ |
1104 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ |
1105 | + if test -d "$(distdir)/$$file"; then \ |
1106 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ |
1107 | + fi; \ |
1108 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ |
1109 | + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ |
1110 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ |
1111 | + fi; \ |
1112 | + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ |
1113 | + else \ |
1114 | + test -f "$(distdir)/$$file" \ |
1115 | + || cp -p $$d/$$file "$(distdir)/$$file" \ |
1116 | + || exit 1; \ |
1117 | + fi; \ |
1118 | + done |
1119 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
1120 | + if test "$$subdir" = .; then :; else \ |
1121 | + test -d "$(distdir)/$$subdir" \ |
1122 | + || $(MKDIR_P) "$(distdir)/$$subdir" \ |
1123 | + || exit 1; \ |
1124 | + fi; \ |
1125 | + done |
1126 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
1127 | + if test "$$subdir" = .; then :; else \ |
1128 | + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ |
1129 | + $(am__relativize); \ |
1130 | + new_distdir=$$reldir; \ |
1131 | + dir1=$$subdir; dir2="$(top_distdir)"; \ |
1132 | + $(am__relativize); \ |
1133 | + new_top_distdir=$$reldir; \ |
1134 | + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ |
1135 | + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ |
1136 | + ($(am__cd) $$subdir && \ |
1137 | + $(MAKE) $(AM_MAKEFLAGS) \ |
1138 | + top_distdir="$$new_top_distdir" \ |
1139 | + distdir="$$new_distdir" \ |
1140 | + am__remove_distdir=: \ |
1141 | + am__skip_length_check=: \ |
1142 | + am__skip_mode_fix=: \ |
1143 | + distdir) \ |
1144 | + || exit 1; \ |
1145 | + fi; \ |
1146 | + done |
1147 | + -test -n "$(am__skip_mode_fix)" \ |
1148 | + || find "$(distdir)" -type d ! -perm -755 \ |
1149 | + -exec chmod u+rwx,go+rx {} \; -o \ |
1150 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
1151 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
1152 | + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
1153 | + || chmod -R a+r "$(distdir)" |
1154 | +dist-gzip: distdir |
1155 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
1156 | + $(am__remove_distdir) |
1157 | + |
1158 | +dist-bzip2: distdir |
1159 | + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 |
1160 | + $(am__remove_distdir) |
1161 | + |
1162 | +dist-lzma: distdir |
1163 | + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma |
1164 | + $(am__remove_distdir) |
1165 | + |
1166 | +dist-xz: distdir |
1167 | + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz |
1168 | + $(am__remove_distdir) |
1169 | + |
1170 | +dist-tarZ: distdir |
1171 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
1172 | + $(am__remove_distdir) |
1173 | + |
1174 | +dist-shar: distdir |
1175 | + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
1176 | + $(am__remove_distdir) |
1177 | + |
1178 | +dist-zip: distdir |
1179 | + -rm -f $(distdir).zip |
1180 | + zip -rq $(distdir).zip $(distdir) |
1181 | + $(am__remove_distdir) |
1182 | + |
1183 | +dist dist-all: distdir |
1184 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
1185 | + $(am__remove_distdir) |
1186 | + |
1187 | +# This target untars the dist file and tries a VPATH configuration. Then |
1188 | +# it guarantees that the distribution is self-contained by making another |
1189 | +# tarfile. |
1190 | +distcheck: dist |
1191 | + case '$(DIST_ARCHIVES)' in \ |
1192 | + *.tar.gz*) \ |
1193 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
1194 | + *.tar.bz2*) \ |
1195 | + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
1196 | + *.tar.lzma*) \ |
1197 | + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ |
1198 | + *.tar.xz*) \ |
1199 | + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ |
1200 | + *.tar.Z*) \ |
1201 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
1202 | + *.shar.gz*) \ |
1203 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ |
1204 | + *.zip*) \ |
1205 | + unzip $(distdir).zip ;;\ |
1206 | + esac |
1207 | + chmod -R a-w $(distdir); chmod a+w $(distdir) |
1208 | + mkdir $(distdir)/_build |
1209 | + mkdir $(distdir)/_inst |
1210 | + chmod a-w $(distdir) |
1211 | + test -d $(distdir)/_build || exit 0; \ |
1212 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
1213 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
1214 | + && am__cwd=`pwd` \ |
1215 | + && $(am__cd) $(distdir)/_build \ |
1216 | + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ |
1217 | + $(DISTCHECK_CONFIGURE_FLAGS) \ |
1218 | + && $(MAKE) $(AM_MAKEFLAGS) \ |
1219 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
1220 | + && $(MAKE) $(AM_MAKEFLAGS) check \ |
1221 | + && $(MAKE) $(AM_MAKEFLAGS) install \ |
1222 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
1223 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ |
1224 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ |
1225 | + distuninstallcheck \ |
1226 | + && chmod -R a-w "$$dc_install_base" \ |
1227 | + && ({ \ |
1228 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ |
1229 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ |
1230 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ |
1231 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ |
1232 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ |
1233 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ |
1234 | + && rm -rf "$$dc_destdir" \ |
1235 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ |
1236 | + && rm -rf $(DIST_ARCHIVES) \ |
1237 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ |
1238 | + && cd "$$am__cwd" \ |
1239 | + || exit 1 |
1240 | + $(am__remove_distdir) |
1241 | + @(echo "$(distdir) archives ready for distribution: "; \ |
1242 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
1243 | + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
1244 | +distuninstallcheck: |
1245 | + @$(am__cd) '$(distuninstallcheck_dir)' \ |
1246 | + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ |
1247 | + || { echo "ERROR: files left after uninstall:" ; \ |
1248 | + if test -n "$(DESTDIR)"; then \ |
1249 | + echo " (check DESTDIR support)"; \ |
1250 | + fi ; \ |
1251 | + $(distuninstallcheck_listfiles) ; \ |
1252 | + exit 1; } >&2 |
1253 | +distcleancheck: distclean |
1254 | + @if test '$(srcdir)' = . ; then \ |
1255 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ |
1256 | + exit 1 ; \ |
1257 | + fi |
1258 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ |
1259 | + || { echo "ERROR: files left in build directory after distclean:" ; \ |
1260 | + $(distcleancheck_listfiles) ; \ |
1261 | + exit 1; } >&2 |
1262 | +check-am: all-am |
1263 | +check: check-recursive |
1264 | +all-am: Makefile config.h |
1265 | +installdirs: installdirs-recursive |
1266 | +installdirs-am: |
1267 | +install: install-recursive |
1268 | +install-exec: install-exec-recursive |
1269 | +install-data: install-data-recursive |
1270 | +uninstall: uninstall-recursive |
1271 | + |
1272 | +install-am: all-am |
1273 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
1274 | + |
1275 | +installcheck: installcheck-recursive |
1276 | +install-strip: |
1277 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
1278 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
1279 | + `test -z '$(STRIP)' || \ |
1280 | + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install |
1281 | +mostlyclean-generic: |
1282 | + |
1283 | +clean-generic: |
1284 | + |
1285 | +distclean-generic: |
1286 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
1287 | + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) |
1288 | + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) |
1289 | + |
1290 | +maintainer-clean-generic: |
1291 | + @echo "This command is intended for maintainers to use" |
1292 | + @echo "it deletes files that may require special tools to rebuild." |
1293 | +clean: clean-recursive |
1294 | + |
1295 | +clean-am: clean-generic clean-libtool mostlyclean-am |
1296 | + |
1297 | +distclean: distclean-recursive |
1298 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1299 | + -rm -f Makefile |
1300 | +distclean-am: clean-am distclean-generic distclean-hdr \ |
1301 | + distclean-libtool distclean-tags |
1302 | + |
1303 | +dvi: dvi-recursive |
1304 | + |
1305 | +dvi-am: |
1306 | + |
1307 | +html: html-recursive |
1308 | + |
1309 | +html-am: |
1310 | + |
1311 | +info: info-recursive |
1312 | + |
1313 | +info-am: |
1314 | + |
1315 | +install-data-am: |
1316 | + |
1317 | +install-dvi: install-dvi-recursive |
1318 | + |
1319 | +install-dvi-am: |
1320 | + |
1321 | +install-exec-am: |
1322 | + |
1323 | +install-html: install-html-recursive |
1324 | + |
1325 | +install-html-am: |
1326 | + |
1327 | +install-info: install-info-recursive |
1328 | + |
1329 | +install-info-am: |
1330 | + |
1331 | +install-man: |
1332 | + |
1333 | +install-pdf: install-pdf-recursive |
1334 | + |
1335 | +install-pdf-am: |
1336 | + |
1337 | +install-ps: install-ps-recursive |
1338 | + |
1339 | +install-ps-am: |
1340 | + |
1341 | +installcheck-am: |
1342 | + |
1343 | +maintainer-clean: maintainer-clean-recursive |
1344 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1345 | + -rm -rf $(top_srcdir)/autom4te.cache |
1346 | + -rm -f Makefile |
1347 | +maintainer-clean-am: distclean-am maintainer-clean-generic |
1348 | + |
1349 | +mostlyclean: mostlyclean-recursive |
1350 | + |
1351 | +mostlyclean-am: mostlyclean-generic mostlyclean-libtool |
1352 | + |
1353 | +pdf: pdf-recursive |
1354 | + |
1355 | +pdf-am: |
1356 | + |
1357 | +ps: ps-recursive |
1358 | + |
1359 | +ps-am: |
1360 | + |
1361 | +uninstall-am: |
1362 | + |
1363 | +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ |
1364 | + ctags-recursive install-am install-strip tags-recursive |
1365 | + |
1366 | +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
1367 | + all all-am am--refresh check check-am clean clean-generic \ |
1368 | + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ |
1369 | + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ |
1370 | + distcheck distclean distclean-generic distclean-hdr \ |
1371 | + distclean-libtool distclean-tags distcleancheck distdir \ |
1372 | + distuninstallcheck dvi dvi-am html html-am info info-am \ |
1373 | + install install-am install-data install-data-am install-dvi \ |
1374 | + install-dvi-am install-exec install-exec-am install-html \ |
1375 | + install-html-am install-info install-info-am install-man \ |
1376 | + install-pdf install-pdf-am install-ps install-ps-am \ |
1377 | + install-strip installcheck installcheck-am installdirs \ |
1378 | + installdirs-am maintainer-clean maintainer-clean-generic \ |
1379 | + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ |
1380 | + ps ps-am tags tags-recursive uninstall uninstall-am |
1381 | + |
1382 | + |
1383 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. |
1384 | +# Otherwise a system limit (for SysV at least) may be exceeded. |
1385 | +.NOEXPORT: |
1386 | |
1387 | === added file 'aclocal.m4' |
1388 | --- aclocal.m4 1970-01-01 00:00:00 +0000 |
1389 | +++ aclocal.m4 2010-04-01 20:54:32 +0000 |
1390 | @@ -0,0 +1,9893 @@ |
1391 | +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- |
1392 | + |
1393 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
1394 | +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
1395 | +# This file is free software; the Free Software Foundation |
1396 | +# gives unlimited permission to copy and/or distribute it, |
1397 | +# with or without modifications, as long as this notice is preserved. |
1398 | + |
1399 | +# This program is distributed in the hope that it will be useful, |
1400 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
1401 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
1402 | +# PARTICULAR PURPOSE. |
1403 | + |
1404 | +m4_ifndef([AC_AUTOCONF_VERSION], |
1405 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
1406 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, |
1407 | +[m4_warning([this file was generated for autoconf 2.65. |
1408 | +You have another version of autoconf. It may work, but is not guaranteed to. |
1409 | +If you have problems, you may need to regenerate the build system entirely. |
1410 | +To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
1411 | + |
1412 | +dnl AM_GCONF_SOURCE_2 |
1413 | +dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas |
1414 | +dnl (i.e. pass to gconftool-2 |
1415 | +dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where |
1416 | +dnl you should install foo.schemas files |
1417 | +dnl |
1418 | + |
1419 | +AC_DEFUN([AM_GCONF_SOURCE_2], |
1420 | +[ |
1421 | + if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then |
1422 | + GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
1423 | + else |
1424 | + GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE |
1425 | + fi |
1426 | + |
1427 | + AC_ARG_WITH([gconf-source], |
1428 | + AC_HELP_STRING([--with-gconf-source=sourceaddress], |
1429 | + [Config database for installing schema files.]), |
1430 | + [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],) |
1431 | + |
1432 | + AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE) |
1433 | + AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation]) |
1434 | + |
1435 | + if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then |
1436 | + GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' |
1437 | + fi |
1438 | + |
1439 | + AC_ARG_WITH([gconf-schema-file-dir], |
1440 | + AC_HELP_STRING([--with-gconf-schema-file-dir=dir], |
1441 | + [Directory for installing schema files.]), |
1442 | + [GCONF_SCHEMA_FILE_DIR="$withval"],) |
1443 | + |
1444 | + AC_SUBST(GCONF_SCHEMA_FILE_DIR) |
1445 | + AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files]) |
1446 | + |
1447 | + AC_ARG_ENABLE(schemas-install, |
1448 | + AC_HELP_STRING([--disable-schemas-install], |
1449 | + [Disable the schemas installation]), |
1450 | + [case ${enableval} in |
1451 | + yes|no) ;; |
1452 | + *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;; |
1453 | + esac]) |
1454 | + AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no]) |
1455 | +]) |
1456 | + |
1457 | +# Copyright (C) 1995-2002 Free Software Foundation, Inc. |
1458 | +# Copyright (C) 2001-2003,2004 Red Hat, Inc. |
1459 | +# |
1460 | +# This file is free software, distributed under the terms of the GNU |
1461 | +# General Public License. As a special exception to the GNU General |
1462 | +# Public License, this file may be distributed as part of a program |
1463 | +# that contains a configuration script generated by Autoconf, under |
1464 | +# the same distribution terms as the rest of that program. |
1465 | +# |
1466 | +# This file can be copied and used freely without restrictions. It can |
1467 | +# be used in projects which are not available under the GNU Public License |
1468 | +# but which still want to provide support for the GNU gettext functionality. |
1469 | +# |
1470 | +# Macro to add for using GNU gettext. |
1471 | +# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 |
1472 | +# |
1473 | +# Modified to never use included libintl. |
1474 | +# Owen Taylor <otaylor@redhat.com>, 12/15/1998 |
1475 | +# |
1476 | +# Major rework to remove unused code |
1477 | +# Owen Taylor <otaylor@redhat.com>, 12/11/2002 |
1478 | +# |
1479 | +# Added better handling of ALL_LINGUAS from GNU gettext version |
1480 | +# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 |
1481 | +# |
1482 | +# Modified to require ngettext |
1483 | +# Matthias Clasen <mclasen@redhat.com> 08/06/2004 |
1484 | +# |
1485 | +# We need this here as well, since someone might use autoconf-2.5x |
1486 | +# to configure GLib then an older version to configure a package |
1487 | +# using AM_GLIB_GNU_GETTEXT |
1488 | +AC_PREREQ(2.53) |
1489 | + |
1490 | +dnl |
1491 | +dnl We go to great lengths to make sure that aclocal won't |
1492 | +dnl try to pull in the installed version of these macros |
1493 | +dnl when running aclocal in the glib directory. |
1494 | +dnl |
1495 | +m4_copy([AC_DEFUN],[glib_DEFUN]) |
1496 | +m4_copy([AC_REQUIRE],[glib_REQUIRE]) |
1497 | +dnl |
1498 | +dnl At the end, if we're not within glib, we'll define the public |
1499 | +dnl definitions in terms of our private definitions. |
1500 | +dnl |
1501 | + |
1502 | +# GLIB_LC_MESSAGES |
1503 | +#-------------------- |
1504 | +glib_DEFUN([GLIB_LC_MESSAGES], |
1505 | + [AC_CHECK_HEADERS([locale.h]) |
1506 | + if test $ac_cv_header_locale_h = yes; then |
1507 | + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, |
1508 | + [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], |
1509 | + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) |
1510 | + if test $am_cv_val_LC_MESSAGES = yes; then |
1511 | + AC_DEFINE(HAVE_LC_MESSAGES, 1, |
1512 | + [Define if your <locale.h> file defines LC_MESSAGES.]) |
1513 | + fi |
1514 | + fi]) |
1515 | + |
1516 | +# GLIB_PATH_PROG_WITH_TEST |
1517 | +#---------------------------- |
1518 | +dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
1519 | +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) |
1520 | +glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], |
1521 | +[# Extract the first word of "$2", so it can be a program name with args. |
1522 | +set dummy $2; ac_word=[$]2 |
1523 | +AC_MSG_CHECKING([for $ac_word]) |
1524 | +AC_CACHE_VAL(ac_cv_path_$1, |
1525 | +[case "[$]$1" in |
1526 | + /*) |
1527 | + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
1528 | + ;; |
1529 | + *) |
1530 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1531 | + for ac_dir in ifelse([$5], , $PATH, [$5]); do |
1532 | + test -z "$ac_dir" && ac_dir=. |
1533 | + if test -f $ac_dir/$ac_word; then |
1534 | + if [$3]; then |
1535 | + ac_cv_path_$1="$ac_dir/$ac_word" |
1536 | + break |
1537 | + fi |
1538 | + fi |
1539 | + done |
1540 | + IFS="$ac_save_ifs" |
1541 | +dnl If no 4th arg is given, leave the cache variable unset, |
1542 | +dnl so AC_PATH_PROGS will keep looking. |
1543 | +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" |
1544 | +])dnl |
1545 | + ;; |
1546 | +esac])dnl |
1547 | +$1="$ac_cv_path_$1" |
1548 | +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
1549 | + AC_MSG_RESULT([$]$1) |
1550 | +else |
1551 | + AC_MSG_RESULT(no) |
1552 | +fi |
1553 | +AC_SUBST($1)dnl |
1554 | +]) |
1555 | + |
1556 | +# GLIB_WITH_NLS |
1557 | +#----------------- |
1558 | +glib_DEFUN([GLIB_WITH_NLS], |
1559 | + dnl NLS is obligatory |
1560 | + [USE_NLS=yes |
1561 | + AC_SUBST(USE_NLS) |
1562 | + |
1563 | + gt_cv_have_gettext=no |
1564 | + |
1565 | + CATOBJEXT=NONE |
1566 | + XGETTEXT=: |
1567 | + INTLLIBS= |
1568 | + |
1569 | + AC_CHECK_HEADER(libintl.h, |
1570 | + [gt_cv_func_dgettext_libintl="no" |
1571 | + libintl_extra_libs="" |
1572 | + |
1573 | + # |
1574 | + # First check in libc |
1575 | + # |
1576 | + AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, |
1577 | + [AC_TRY_LINK([ |
1578 | +#include <libintl.h> |
1579 | +], |
1580 | + [return !ngettext ("","", 1)], |
1581 | + gt_cv_func_ngettext_libc=yes, |
1582 | + gt_cv_func_ngettext_libc=no) |
1583 | + ]) |
1584 | + |
1585 | + if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1586 | + AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, |
1587 | + [AC_TRY_LINK([ |
1588 | +#include <libintl.h> |
1589 | +], |
1590 | + [return !dgettext ("","")], |
1591 | + gt_cv_func_dgettext_libc=yes, |
1592 | + gt_cv_func_dgettext_libc=no) |
1593 | + ]) |
1594 | + fi |
1595 | + |
1596 | + if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1597 | + AC_CHECK_FUNCS(bind_textdomain_codeset) |
1598 | + fi |
1599 | + |
1600 | + # |
1601 | + # If we don't have everything we want, check in libintl |
1602 | + # |
1603 | + if test "$gt_cv_func_dgettext_libc" != "yes" \ |
1604 | + || test "$gt_cv_func_ngettext_libc" != "yes" \ |
1605 | + || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then |
1606 | + |
1607 | + AC_CHECK_LIB(intl, bindtextdomain, |
1608 | + [AC_CHECK_LIB(intl, ngettext, |
1609 | + [AC_CHECK_LIB(intl, dgettext, |
1610 | + gt_cv_func_dgettext_libintl=yes)])]) |
1611 | + |
1612 | + if test "$gt_cv_func_dgettext_libintl" != "yes" ; then |
1613 | + AC_MSG_CHECKING([if -liconv is needed to use gettext]) |
1614 | + AC_MSG_RESULT([]) |
1615 | + AC_CHECK_LIB(intl, ngettext, |
1616 | + [AC_CHECK_LIB(intl, dcgettext, |
1617 | + [gt_cv_func_dgettext_libintl=yes |
1618 | + libintl_extra_libs=-liconv], |
1619 | + :,-liconv)], |
1620 | + :,-liconv) |
1621 | + fi |
1622 | + |
1623 | + # |
1624 | + # If we found libintl, then check in it for bind_textdomain_codeset(); |
1625 | + # we'll prefer libc if neither have bind_textdomain_codeset(), |
1626 | + # and both have dgettext and ngettext |
1627 | + # |
1628 | + if test "$gt_cv_func_dgettext_libintl" = "yes" ; then |
1629 | + glib_save_LIBS="$LIBS" |
1630 | + LIBS="$LIBS -lintl $libintl_extra_libs" |
1631 | + unset ac_cv_func_bind_textdomain_codeset |
1632 | + AC_CHECK_FUNCS(bind_textdomain_codeset) |
1633 | + LIBS="$glib_save_LIBS" |
1634 | + |
1635 | + if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then |
1636 | + gt_cv_func_dgettext_libc=no |
1637 | + else |
1638 | + if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1639 | + && test "$gt_cv_func_ngettext_libc" = "yes"; then |
1640 | + gt_cv_func_dgettext_libintl=no |
1641 | + fi |
1642 | + fi |
1643 | + fi |
1644 | + fi |
1645 | + |
1646 | + if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1647 | + || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1648 | + gt_cv_have_gettext=yes |
1649 | + fi |
1650 | + |
1651 | + if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1652 | + INTLLIBS="-lintl $libintl_extra_libs" |
1653 | + fi |
1654 | + |
1655 | + if test "$gt_cv_have_gettext" = "yes"; then |
1656 | + AC_DEFINE(HAVE_GETTEXT,1, |
1657 | + [Define if the GNU gettext() function is already present or preinstalled.]) |
1658 | + GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
1659 | + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl |
1660 | + if test "$MSGFMT" != "no"; then |
1661 | + glib_save_LIBS="$LIBS" |
1662 | + LIBS="$LIBS $INTLLIBS" |
1663 | + AC_CHECK_FUNCS(dcgettext) |
1664 | + MSGFMT_OPTS= |
1665 | + AC_MSG_CHECKING([if msgfmt accepts -c]) |
1666 | + GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ |
1667 | +msgid "" |
1668 | +msgstr "" |
1669 | +"Content-Type: text/plain; charset=UTF-8\n" |
1670 | +"Project-Id-Version: test 1.0\n" |
1671 | +"PO-Revision-Date: 2007-02-15 12:01+0100\n" |
1672 | +"Last-Translator: test <foo@bar.xx>\n" |
1673 | +"Language-Team: C <LL@li.org>\n" |
1674 | +"MIME-Version: 1.0\n" |
1675 | +"Content-Transfer-Encoding: 8bit\n" |
1676 | +], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) |
1677 | + AC_SUBST(MSGFMT_OPTS) |
1678 | + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
1679 | + GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
1680 | + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
1681 | + AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; |
1682 | + return _nl_msg_cat_cntr], |
1683 | + [CATOBJEXT=.gmo |
1684 | + DATADIRNAME=share], |
1685 | + [case $host in |
1686 | + *-*-solaris*) |
1687 | + dnl On Solaris, if bind_textdomain_codeset is in libc, |
1688 | + dnl GNU format message catalog is always supported, |
1689 | + dnl since both are added to the libc all together. |
1690 | + dnl Hence, we'd like to go with DATADIRNAME=share and |
1691 | + dnl and CATOBJEXT=.gmo in this case. |
1692 | + AC_CHECK_FUNC(bind_textdomain_codeset, |
1693 | + [CATOBJEXT=.gmo |
1694 | + DATADIRNAME=share], |
1695 | + [CATOBJEXT=.mo |
1696 | + DATADIRNAME=lib]) |
1697 | + ;; |
1698 | + *) |
1699 | + CATOBJEXT=.mo |
1700 | + DATADIRNAME=lib |
1701 | + ;; |
1702 | + esac]) |
1703 | + LIBS="$glib_save_LIBS" |
1704 | + INSTOBJEXT=.mo |
1705 | + else |
1706 | + gt_cv_have_gettext=no |
1707 | + fi |
1708 | + fi |
1709 | + ]) |
1710 | + |
1711 | + if test "$gt_cv_have_gettext" = "yes" ; then |
1712 | + AC_DEFINE(ENABLE_NLS, 1, |
1713 | + [always defined to indicate that i18n is enabled]) |
1714 | + fi |
1715 | + |
1716 | + dnl Test whether we really found GNU xgettext. |
1717 | + if test "$XGETTEXT" != ":"; then |
1718 | + dnl If it is not GNU xgettext we define it as : so that the |
1719 | + dnl Makefiles still can work. |
1720 | + if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
1721 | + : ; |
1722 | + else |
1723 | + AC_MSG_RESULT( |
1724 | + [found xgettext program is not GNU xgettext; ignore it]) |
1725 | + XGETTEXT=":" |
1726 | + fi |
1727 | + fi |
1728 | + |
1729 | + # We need to process the po/ directory. |
1730 | + POSUB=po |
1731 | + |
1732 | + AC_OUTPUT_COMMANDS( |
1733 | + [case "$CONFIG_FILES" in *po/Makefile.in*) |
1734 | + sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
1735 | + esac]) |
1736 | + |
1737 | + dnl These rules are solely for the distribution goal. While doing this |
1738 | + dnl we only have to keep exactly one list of the available catalogs |
1739 | + dnl in configure.in. |
1740 | + for lang in $ALL_LINGUAS; do |
1741 | + GMOFILES="$GMOFILES $lang.gmo" |
1742 | + POFILES="$POFILES $lang.po" |
1743 | + done |
1744 | + |
1745 | + dnl Make all variables we use known to autoconf. |
1746 | + AC_SUBST(CATALOGS) |
1747 | + AC_SUBST(CATOBJEXT) |
1748 | + AC_SUBST(DATADIRNAME) |
1749 | + AC_SUBST(GMOFILES) |
1750 | + AC_SUBST(INSTOBJEXT) |
1751 | + AC_SUBST(INTLLIBS) |
1752 | + AC_SUBST(PO_IN_DATADIR_TRUE) |
1753 | + AC_SUBST(PO_IN_DATADIR_FALSE) |
1754 | + AC_SUBST(POFILES) |
1755 | + AC_SUBST(POSUB) |
1756 | + ]) |
1757 | + |
1758 | +# AM_GLIB_GNU_GETTEXT |
1759 | +# ------------------- |
1760 | +# Do checks necessary for use of gettext. If a suitable implementation |
1761 | +# of gettext is found in either in libintl or in the C library, |
1762 | +# it will set INTLLIBS to the libraries needed for use of gettext |
1763 | +# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable |
1764 | +# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() |
1765 | +# on various variables needed by the Makefile.in.in installed by |
1766 | +# glib-gettextize. |
1767 | +dnl |
1768 | +glib_DEFUN([GLIB_GNU_GETTEXT], |
1769 | + [AC_REQUIRE([AC_PROG_CC])dnl |
1770 | + AC_REQUIRE([AC_HEADER_STDC])dnl |
1771 | + |
1772 | + GLIB_LC_MESSAGES |
1773 | + GLIB_WITH_NLS |
1774 | + |
1775 | + if test "$gt_cv_have_gettext" = "yes"; then |
1776 | + if test "x$ALL_LINGUAS" = "x"; then |
1777 | + LINGUAS= |
1778 | + else |
1779 | + AC_MSG_CHECKING(for catalogs to be installed) |
1780 | + NEW_LINGUAS= |
1781 | + for presentlang in $ALL_LINGUAS; do |
1782 | + useit=no |
1783 | + if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then |
1784 | + desiredlanguages="$LINGUAS" |
1785 | + else |
1786 | + desiredlanguages="$ALL_LINGUAS" |
1787 | + fi |
1788 | + for desiredlang in $desiredlanguages; do |
1789 | + # Use the presentlang catalog if desiredlang is |
1790 | + # a. equal to presentlang, or |
1791 | + # b. a variant of presentlang (because in this case, |
1792 | + # presentlang can be used as a fallback for messages |
1793 | + # which are not translated in the desiredlang catalog). |
1794 | + case "$desiredlang" in |
1795 | + "$presentlang"*) useit=yes;; |
1796 | + esac |
1797 | + done |
1798 | + if test $useit = yes; then |
1799 | + NEW_LINGUAS="$NEW_LINGUAS $presentlang" |
1800 | + fi |
1801 | + done |
1802 | + LINGUAS=$NEW_LINGUAS |
1803 | + AC_MSG_RESULT($LINGUAS) |
1804 | + fi |
1805 | + |
1806 | + dnl Construct list of names of catalog files to be constructed. |
1807 | + if test -n "$LINGUAS"; then |
1808 | + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
1809 | + fi |
1810 | + fi |
1811 | + |
1812 | + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly |
1813 | + dnl find the mkinstalldirs script in another subdir but ($top_srcdir). |
1814 | + dnl Try to locate is. |
1815 | + MKINSTALLDIRS= |
1816 | + if test -n "$ac_aux_dir"; then |
1817 | + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
1818 | + fi |
1819 | + if test -z "$MKINSTALLDIRS"; then |
1820 | + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
1821 | + fi |
1822 | + AC_SUBST(MKINSTALLDIRS) |
1823 | + |
1824 | + dnl Generate list of files to be processed by xgettext which will |
1825 | + dnl be included in po/Makefile. |
1826 | + test -d po || mkdir po |
1827 | + if test "x$srcdir" != "x."; then |
1828 | + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
1829 | + posrcprefix="$srcdir/" |
1830 | + else |
1831 | + posrcprefix="../$srcdir/" |
1832 | + fi |
1833 | + else |
1834 | + posrcprefix="../" |
1835 | + fi |
1836 | + rm -f po/POTFILES |
1837 | + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
1838 | + < $srcdir/po/POTFILES.in > po/POTFILES |
1839 | + ]) |
1840 | + |
1841 | +# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) |
1842 | +# ------------------------------- |
1843 | +# Define VARIABLE to the location where catalog files will |
1844 | +# be installed by po/Makefile. |
1845 | +glib_DEFUN([GLIB_DEFINE_LOCALEDIR], |
1846 | +[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl |
1847 | +glib_save_prefix="$prefix" |
1848 | +glib_save_exec_prefix="$exec_prefix" |
1849 | +glib_save_datarootdir="$datarootdir" |
1850 | +test "x$prefix" = xNONE && prefix=$ac_default_prefix |
1851 | +test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
1852 | +datarootdir=`eval echo "${datarootdir}"` |
1853 | +if test "x$CATOBJEXT" = "x.mo" ; then |
1854 | + localedir=`eval echo "${libdir}/locale"` |
1855 | +else |
1856 | + localedir=`eval echo "${datadir}/locale"` |
1857 | +fi |
1858 | +prefix="$glib_save_prefix" |
1859 | +exec_prefix="$glib_save_exec_prefix" |
1860 | +datarootdir="$glib_save_datarootdir" |
1861 | +AC_DEFINE_UNQUOTED($1, "$localedir", |
1862 | + [Define the location where the catalogs will be installed]) |
1863 | +]) |
1864 | + |
1865 | +dnl |
1866 | +dnl Now the definitions that aclocal will find |
1867 | +dnl |
1868 | +ifdef(glib_configure_in,[],[ |
1869 | +AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) |
1870 | +AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) |
1871 | +])dnl |
1872 | + |
1873 | +# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) |
1874 | +# |
1875 | +# Create a temporary file with TEST-FILE as its contents and pass the |
1876 | +# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with |
1877 | +# 0 and perform ACTION-IF-FAIL for any other exit status. |
1878 | +AC_DEFUN([GLIB_RUN_PROG], |
1879 | +[cat >conftest.foo <<_ACEOF |
1880 | +$2 |
1881 | +_ACEOF |
1882 | +if AC_RUN_LOG([$1 conftest.foo]); then |
1883 | + m4_ifval([$3], [$3], [:]) |
1884 | +m4_ifvaln([$4], [else $4])dnl |
1885 | +echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD |
1886 | +sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD |
1887 | +fi]) |
1888 | + |
1889 | + |
1890 | + |
1891 | +dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) |
1892 | +# serial 40 IT_PROG_INTLTOOL |
1893 | +AC_DEFUN([IT_PROG_INTLTOOL], [ |
1894 | +AC_PREREQ([2.50])dnl |
1895 | +AC_REQUIRE([AM_NLS])dnl |
1896 | + |
1897 | +case "$am__api_version" in |
1898 | + 1.[01234]) |
1899 | + AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) |
1900 | + ;; |
1901 | + *) |
1902 | + ;; |
1903 | +esac |
1904 | + |
1905 | +if test -n "$1"; then |
1906 | + AC_MSG_CHECKING([for intltool >= $1]) |
1907 | + |
1908 | + INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
1909 | + INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` |
1910 | + [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
1911 | + ] |
1912 | + AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) |
1913 | + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || |
1914 | + AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) |
1915 | +fi |
1916 | + |
1917 | +AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) |
1918 | +AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) |
1919 | +AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) |
1920 | +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then |
1921 | + AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) |
1922 | +fi |
1923 | + |
1924 | + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.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 $< [$]@' |
1925 | +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.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 $< [$]@' |
1926 | + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1927 | + INTLTOOL_PROP_RULE='%.prop: %.prop.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 $< [$]@' |
1928 | + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' |
1929 | + INTLTOOL_PONG_RULE='%.pong: %.pong.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 $< [$]@' |
1930 | + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1931 | + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.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 $< [$]@' |
1932 | +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.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 $< [$]@' |
1933 | + INTLTOOL_UI_RULE='%.ui: %.ui.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 $< [$]@' |
1934 | + INTLTOOL_XML_RULE='%.xml: %.xml.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 $< [$]@' |
1935 | + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' |
1936 | + INTLTOOL_XAM_RULE='%.xam: %.xml.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 $< [$]@' |
1937 | + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1938 | + INTLTOOL_CAVES_RULE='%.caves: %.caves.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 $< [$]@' |
1939 | + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1940 | + INTLTOOL_THEME_RULE='%.theme: %.theme.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 $< [$]@' |
1941 | + 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 $< [$]@' |
1942 | + 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 $< [$]@' |
1943 | + |
1944 | +_IT_SUBST(INTLTOOL_DESKTOP_RULE) |
1945 | +_IT_SUBST(INTLTOOL_DIRECTORY_RULE) |
1946 | +_IT_SUBST(INTLTOOL_KEYS_RULE) |
1947 | +_IT_SUBST(INTLTOOL_PROP_RULE) |
1948 | +_IT_SUBST(INTLTOOL_OAF_RULE) |
1949 | +_IT_SUBST(INTLTOOL_PONG_RULE) |
1950 | +_IT_SUBST(INTLTOOL_SERVER_RULE) |
1951 | +_IT_SUBST(INTLTOOL_SHEET_RULE) |
1952 | +_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) |
1953 | +_IT_SUBST(INTLTOOL_UI_RULE) |
1954 | +_IT_SUBST(INTLTOOL_XAM_RULE) |
1955 | +_IT_SUBST(INTLTOOL_KBD_RULE) |
1956 | +_IT_SUBST(INTLTOOL_XML_RULE) |
1957 | +_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) |
1958 | +_IT_SUBST(INTLTOOL_CAVES_RULE) |
1959 | +_IT_SUBST(INTLTOOL_SCHEMAS_RULE) |
1960 | +_IT_SUBST(INTLTOOL_THEME_RULE) |
1961 | +_IT_SUBST(INTLTOOL_SERVICE_RULE) |
1962 | +_IT_SUBST(INTLTOOL_POLICY_RULE) |
1963 | + |
1964 | +# Check the gettext tools to make sure they are GNU |
1965 | +AC_PATH_PROG(XGETTEXT, xgettext) |
1966 | +AC_PATH_PROG(MSGMERGE, msgmerge) |
1967 | +AC_PATH_PROG(MSGFMT, msgfmt) |
1968 | +AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
1969 | +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then |
1970 | + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
1971 | +fi |
1972 | +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" |
1973 | +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" |
1974 | +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" |
1975 | +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then |
1976 | + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
1977 | +fi |
1978 | + |
1979 | +AC_PATH_PROG(INTLTOOL_PERL, perl) |
1980 | +if test -z "$INTLTOOL_PERL"; then |
1981 | + AC_MSG_ERROR([perl not found]) |
1982 | +fi |
1983 | +AC_MSG_CHECKING([for perl >= 5.8.1]) |
1984 | +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 |
1985 | +if test $? -ne 0; then |
1986 | + AC_MSG_ERROR([perl 5.8.1 is required for intltool]) |
1987 | +else |
1988 | + IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" |
1989 | + AC_MSG_RESULT([$IT_PERL_VERSION]) |
1990 | +fi |
1991 | +if test "x$2" != "xno-xml"; then |
1992 | + AC_MSG_CHECKING([for XML::Parser]) |
1993 | + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then |
1994 | + AC_MSG_RESULT([ok]) |
1995 | + else |
1996 | + AC_MSG_ERROR([XML::Parser perl module is required for intltool]) |
1997 | + fi |
1998 | +fi |
1999 | + |
2000 | +# Substitute ALL_LINGUAS so we can use it in po/Makefile |
2001 | +AC_SUBST(ALL_LINGUAS) |
2002 | + |
2003 | +# Set DATADIRNAME correctly if it is not set yet |
2004 | +# (copied from glib-gettext.m4) |
2005 | +if test -z "$DATADIRNAME"; then |
2006 | + AC_LINK_IFELSE( |
2007 | + [AC_LANG_PROGRAM([[]], |
2008 | + [[extern int _nl_msg_cat_cntr; |
2009 | + return _nl_msg_cat_cntr]])], |
2010 | + [DATADIRNAME=share], |
2011 | + [case $host in |
2012 | + *-*-solaris*) |
2013 | + dnl On Solaris, if bind_textdomain_codeset is in libc, |
2014 | + dnl GNU format message catalog is always supported, |
2015 | + dnl since both are added to the libc all together. |
2016 | + dnl Hence, we'd like to go with DATADIRNAME=share |
2017 | + dnl in this case. |
2018 | + AC_CHECK_FUNC(bind_textdomain_codeset, |
2019 | + [DATADIRNAME=share], [DATADIRNAME=lib]) |
2020 | + ;; |
2021 | + *) |
2022 | + [DATADIRNAME=lib] |
2023 | + ;; |
2024 | + esac]) |
2025 | +fi |
2026 | +AC_SUBST(DATADIRNAME) |
2027 | + |
2028 | +IT_PO_SUBDIR([po]) |
2029 | + |
2030 | +]) |
2031 | + |
2032 | + |
2033 | +# IT_PO_SUBDIR(DIRNAME) |
2034 | +# --------------------- |
2035 | +# All po subdirs have to be declared with this macro; the subdir "po" is |
2036 | +# declared by IT_PROG_INTLTOOL. |
2037 | +# |
2038 | +AC_DEFUN([IT_PO_SUBDIR], |
2039 | +[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. |
2040 | +dnl |
2041 | +dnl The following CONFIG_COMMANDS should be exetuted at the very end |
2042 | +dnl of config.status. |
2043 | +AC_CONFIG_COMMANDS_PRE([ |
2044 | + AC_CONFIG_COMMANDS([$1/stamp-it], [ |
2045 | + if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then |
2046 | + AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) |
2047 | + fi |
2048 | + rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" |
2049 | + >"$1/stamp-it.tmp" |
2050 | + [sed '/^#/d |
2051 | + s/^[[].*] *// |
2052 | + /^[ ]*$/d |
2053 | + '"s|^| $ac_top_srcdir/|" \ |
2054 | + "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" |
2055 | + ] |
2056 | + [sed '/^POTFILES =/,/[^\\]$/ { |
2057 | + /^POTFILES =/!d |
2058 | + r $1/POTFILES |
2059 | + } |
2060 | + ' "$1/Makefile.in" >"$1/Makefile"] |
2061 | + rm -f "$1/Makefile.tmp" |
2062 | + mv "$1/stamp-it.tmp" "$1/stamp-it" |
2063 | + ]) |
2064 | +])dnl |
2065 | +]) |
2066 | + |
2067 | +# _IT_SUBST(VARIABLE) |
2068 | +# ------------------- |
2069 | +# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST |
2070 | +# |
2071 | +AC_DEFUN([_IT_SUBST], |
2072 | +[ |
2073 | +AC_SUBST([$1]) |
2074 | +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) |
2075 | +] |
2076 | +) |
2077 | + |
2078 | +# deprecated macros |
2079 | +AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) |
2080 | +# A hint is needed for aclocal from Automake <= 1.9.4: |
2081 | +# AC_DEFUN([AC_PROG_INTLTOOL], ...) |
2082 | + |
2083 | + |
2084 | +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
2085 | +# |
2086 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
2087 | +# 2006, 2007, 2008 Free Software Foundation, Inc. |
2088 | +# Written by Gordon Matzigkeit, 1996 |
2089 | +# |
2090 | +# This file is free software; the Free Software Foundation gives |
2091 | +# unlimited permission to copy and/or distribute it, with or without |
2092 | +# modifications, as long as this notice is preserved. |
2093 | + |
2094 | +m4_define([_LT_COPYING], [dnl |
2095 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
2096 | +# 2006, 2007, 2008 Free Software Foundation, Inc. |
2097 | +# Written by Gordon Matzigkeit, 1996 |
2098 | +# |
2099 | +# This file is part of GNU Libtool. |
2100 | +# |
2101 | +# GNU Libtool is free software; you can redistribute it and/or |
2102 | +# modify it under the terms of the GNU General Public License as |
2103 | +# published by the Free Software Foundation; either version 2 of |
2104 | +# the License, or (at your option) any later version. |
2105 | +# |
2106 | +# As a special exception to the GNU General Public License, |
2107 | +# if you distribute this file as part of a program or library that |
2108 | +# is built using GNU Libtool, you may include this file under the |
2109 | +# same distribution terms that you use for the rest of that program. |
2110 | +# |
2111 | +# GNU Libtool is distributed in the hope that it will be useful, |
2112 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
2113 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2114 | +# GNU General Public License for more details. |
2115 | +# |
2116 | +# You should have received a copy of the GNU General Public License |
2117 | +# along with GNU Libtool; see the file COPYING. If not, a copy |
2118 | +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
2119 | +# obtained by writing to the Free Software Foundation, Inc., |
2120 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
2121 | +]) |
2122 | + |
2123 | +# serial 56 LT_INIT |
2124 | + |
2125 | + |
2126 | +# LT_PREREQ(VERSION) |
2127 | +# ------------------ |
2128 | +# Complain and exit if this libtool version is less that VERSION. |
2129 | +m4_defun([LT_PREREQ], |
2130 | +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
2131 | + [m4_default([$3], |
2132 | + [m4_fatal([Libtool version $1 or higher is required], |
2133 | + 63)])], |
2134 | + [$2])]) |
2135 | + |
2136 | + |
2137 | +# _LT_CHECK_BUILDDIR |
2138 | +# ------------------ |
2139 | +# Complain if the absolute build directory name contains unusual characters |
2140 | +m4_defun([_LT_CHECK_BUILDDIR], |
2141 | +[case `pwd` in |
2142 | + *\ * | *\ *) |
2143 | + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
2144 | +esac |
2145 | +]) |
2146 | + |
2147 | + |
2148 | +# LT_INIT([OPTIONS]) |
2149 | +# ------------------ |
2150 | +AC_DEFUN([LT_INIT], |
2151 | +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
2152 | +AC_BEFORE([$0], [LT_LANG])dnl |
2153 | +AC_BEFORE([$0], [LT_OUTPUT])dnl |
2154 | +AC_BEFORE([$0], [LTDL_INIT])dnl |
2155 | +m4_require([_LT_CHECK_BUILDDIR])dnl |
2156 | + |
2157 | +dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
2158 | +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
2159 | +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
2160 | +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
2161 | +dnl unless we require an AC_DEFUNed macro: |
2162 | +AC_REQUIRE([LTOPTIONS_VERSION])dnl |
2163 | +AC_REQUIRE([LTSUGAR_VERSION])dnl |
2164 | +AC_REQUIRE([LTVERSION_VERSION])dnl |
2165 | +AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
2166 | +m4_require([_LT_PROG_LTMAIN])dnl |
2167 | + |
2168 | +dnl Parse OPTIONS |
2169 | +_LT_SET_OPTIONS([$0], [$1]) |
2170 | + |
2171 | +# This can be used to rebuild libtool when needed |
2172 | +LIBTOOL_DEPS="$ltmain" |
2173 | + |
2174 | +# Always use our own libtool. |
2175 | +LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
2176 | +AC_SUBST(LIBTOOL)dnl |
2177 | + |
2178 | +_LT_SETUP |
2179 | + |
2180 | +# Only expand once: |
2181 | +m4_define([LT_INIT]) |
2182 | +])# LT_INIT |
2183 | + |
2184 | +# Old names: |
2185 | +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
2186 | +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
2187 | +dnl aclocal-1.4 backwards compatibility: |
2188 | +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
2189 | +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
2190 | + |
2191 | + |
2192 | +# _LT_CC_BASENAME(CC) |
2193 | +# ------------------- |
2194 | +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
2195 | +m4_defun([_LT_CC_BASENAME], |
2196 | +[for cc_temp in $1""; do |
2197 | + case $cc_temp in |
2198 | + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
2199 | + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
2200 | + \-*) ;; |
2201 | + *) break;; |
2202 | + esac |
2203 | +done |
2204 | +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
2205 | +]) |
2206 | + |
2207 | + |
2208 | +# _LT_FILEUTILS_DEFAULTS |
2209 | +# ---------------------- |
2210 | +# It is okay to use these file commands and assume they have been set |
2211 | +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. |
2212 | +m4_defun([_LT_FILEUTILS_DEFAULTS], |
2213 | +[: ${CP="cp -f"} |
2214 | +: ${MV="mv -f"} |
2215 | +: ${RM="rm -f"} |
2216 | +])# _LT_FILEUTILS_DEFAULTS |
2217 | + |
2218 | + |
2219 | +# _LT_SETUP |
2220 | +# --------- |
2221 | +m4_defun([_LT_SETUP], |
2222 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2223 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
2224 | +_LT_DECL([], [host_alias], [0], [The host system])dnl |
2225 | +_LT_DECL([], [host], [0])dnl |
2226 | +_LT_DECL([], [host_os], [0])dnl |
2227 | +dnl |
2228 | +_LT_DECL([], [build_alias], [0], [The build system])dnl |
2229 | +_LT_DECL([], [build], [0])dnl |
2230 | +_LT_DECL([], [build_os], [0])dnl |
2231 | +dnl |
2232 | +AC_REQUIRE([AC_PROG_CC])dnl |
2233 | +AC_REQUIRE([LT_PATH_LD])dnl |
2234 | +AC_REQUIRE([LT_PATH_NM])dnl |
2235 | +dnl |
2236 | +AC_REQUIRE([AC_PROG_LN_S])dnl |
2237 | +test -z "$LN_S" && LN_S="ln -s" |
2238 | +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
2239 | +dnl |
2240 | +AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
2241 | +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
2242 | +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
2243 | +dnl |
2244 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2245 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
2246 | +m4_require([_LT_CMD_RELOAD])dnl |
2247 | +m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
2248 | +m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
2249 | +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
2250 | + |
2251 | +_LT_CONFIG_LIBTOOL_INIT([ |
2252 | +# See if we are running on zsh, and set the options which allow our |
2253 | +# commands through without removal of \ escapes INIT. |
2254 | +if test -n "\${ZSH_VERSION+set}" ; then |
2255 | + setopt NO_GLOB_SUBST |
2256 | +fi |
2257 | +]) |
2258 | +if test -n "${ZSH_VERSION+set}" ; then |
2259 | + setopt NO_GLOB_SUBST |
2260 | +fi |
2261 | + |
2262 | +_LT_CHECK_OBJDIR |
2263 | + |
2264 | +m4_require([_LT_TAG_COMPILER])dnl |
2265 | +_LT_PROG_ECHO_BACKSLASH |
2266 | + |
2267 | +case $host_os in |
2268 | +aix3*) |
2269 | + # AIX sometimes has problems with the GCC collect2 program. For some |
2270 | + # reason, if we set the COLLECT_NAMES environment variable, the problems |
2271 | + # vanish in a puff of smoke. |
2272 | + if test "X${COLLECT_NAMES+set}" != Xset; then |
2273 | + COLLECT_NAMES= |
2274 | + export COLLECT_NAMES |
2275 | + fi |
2276 | + ;; |
2277 | +esac |
2278 | + |
2279 | +# Sed substitution that helps us do robust quoting. It backslashifies |
2280 | +# metacharacters that are still active within double-quoted strings. |
2281 | +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
2282 | + |
2283 | +# Same as above, but do not quote variable references. |
2284 | +double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
2285 | + |
2286 | +# Sed substitution to delay expansion of an escaped shell variable in a |
2287 | +# double_quote_subst'ed string. |
2288 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
2289 | + |
2290 | +# Sed substitution to delay expansion of an escaped single quote. |
2291 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
2292 | + |
2293 | +# Sed substitution to avoid accidental globbing in evaled expressions |
2294 | +no_glob_subst='s/\*/\\\*/g' |
2295 | + |
2296 | +# Global variables: |
2297 | +ofile=libtool |
2298 | +can_build_shared=yes |
2299 | + |
2300 | +# All known linkers require a `.a' archive for static linking (except MSVC, |
2301 | +# which needs '.lib'). |
2302 | +libext=a |
2303 | + |
2304 | +with_gnu_ld="$lt_cv_prog_gnu_ld" |
2305 | + |
2306 | +old_CC="$CC" |
2307 | +old_CFLAGS="$CFLAGS" |
2308 | + |
2309 | +# Set sane defaults for various variables |
2310 | +test -z "$CC" && CC=cc |
2311 | +test -z "$LTCC" && LTCC=$CC |
2312 | +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
2313 | +test -z "$LD" && LD=ld |
2314 | +test -z "$ac_objext" && ac_objext=o |
2315 | + |
2316 | +_LT_CC_BASENAME([$compiler]) |
2317 | + |
2318 | +# Only perform the check for file, if the check method requires it |
2319 | +test -z "$MAGIC_CMD" && MAGIC_CMD=file |
2320 | +case $deplibs_check_method in |
2321 | +file_magic*) |
2322 | + if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
2323 | + _LT_PATH_MAGIC |
2324 | + fi |
2325 | + ;; |
2326 | +esac |
2327 | + |
2328 | +# Use C for the default configuration in the libtool script |
2329 | +LT_SUPPORTED_TAG([CC]) |
2330 | +_LT_LANG_C_CONFIG |
2331 | +_LT_LANG_DEFAULT_CONFIG |
2332 | +_LT_CONFIG_COMMANDS |
2333 | +])# _LT_SETUP |
2334 | + |
2335 | + |
2336 | +# _LT_PROG_LTMAIN |
2337 | +# --------------- |
2338 | +# Note that this code is called both from `configure', and `config.status' |
2339 | +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
2340 | +# `config.status' has no value for ac_aux_dir unless we are using Automake, |
2341 | +# so we pass a copy along to make sure it has a sensible value anyway. |
2342 | +m4_defun([_LT_PROG_LTMAIN], |
2343 | +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
2344 | +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
2345 | +ltmain="$ac_aux_dir/ltmain.sh" |
2346 | +])# _LT_PROG_LTMAIN |
2347 | + |
2348 | + |
2349 | + |
2350 | +# So that we can recreate a full libtool script including additional |
2351 | +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
2352 | +# in macros and then make a single call at the end using the `libtool' |
2353 | +# label. |
2354 | + |
2355 | + |
2356 | +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
2357 | +# ---------------------------------------- |
2358 | +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
2359 | +m4_define([_LT_CONFIG_LIBTOOL_INIT], |
2360 | +[m4_ifval([$1], |
2361 | + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
2362 | + [$1 |
2363 | +])])]) |
2364 | + |
2365 | +# Initialize. |
2366 | +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
2367 | + |
2368 | + |
2369 | +# _LT_CONFIG_LIBTOOL([COMMANDS]) |
2370 | +# ------------------------------ |
2371 | +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
2372 | +m4_define([_LT_CONFIG_LIBTOOL], |
2373 | +[m4_ifval([$1], |
2374 | + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
2375 | + [$1 |
2376 | +])])]) |
2377 | + |
2378 | +# Initialize. |
2379 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
2380 | + |
2381 | + |
2382 | +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
2383 | +# ----------------------------------------------------- |
2384 | +m4_defun([_LT_CONFIG_SAVE_COMMANDS], |
2385 | +[_LT_CONFIG_LIBTOOL([$1]) |
2386 | +_LT_CONFIG_LIBTOOL_INIT([$2]) |
2387 | +]) |
2388 | + |
2389 | + |
2390 | +# _LT_FORMAT_COMMENT([COMMENT]) |
2391 | +# ----------------------------- |
2392 | +# Add leading comment marks to the start of each line, and a trailing |
2393 | +# full-stop to the whole comment if one is not present already. |
2394 | +m4_define([_LT_FORMAT_COMMENT], |
2395 | +[m4_ifval([$1], [ |
2396 | +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], |
2397 | + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) |
2398 | +)]) |
2399 | + |
2400 | + |
2401 | + |
2402 | + |
2403 | + |
2404 | +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
2405 | +# ------------------------------------------------------------------- |
2406 | +# CONFIGNAME is the name given to the value in the libtool script. |
2407 | +# VARNAME is the (base) name used in the configure script. |
2408 | +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
2409 | +# VARNAME. Any other value will be used directly. |
2410 | +m4_define([_LT_DECL], |
2411 | +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], |
2412 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
2413 | + [m4_ifval([$1], [$1], [$2])]) |
2414 | + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
2415 | + m4_ifval([$4], |
2416 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
2417 | + lt_dict_add_subkey([lt_decl_dict], [$2], |
2418 | + [tagged?], [m4_ifval([$5], [yes], [no])])]) |
2419 | +]) |
2420 | + |
2421 | + |
2422 | +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
2423 | +# -------------------------------------------------------- |
2424 | +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
2425 | + |
2426 | + |
2427 | +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
2428 | +# ------------------------------------------------ |
2429 | +m4_define([lt_decl_tag_varnames], |
2430 | +[_lt_decl_filter([tagged?], [yes], $@)]) |
2431 | + |
2432 | + |
2433 | +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
2434 | +# --------------------------------------------------------- |
2435 | +m4_define([_lt_decl_filter], |
2436 | +[m4_case([$#], |
2437 | + [0], [m4_fatal([$0: too few arguments: $#])], |
2438 | + [1], [m4_fatal([$0: too few arguments: $#: $1])], |
2439 | + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
2440 | + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
2441 | + [lt_dict_filter([lt_decl_dict], $@)])[]dnl |
2442 | +]) |
2443 | + |
2444 | + |
2445 | +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
2446 | +# -------------------------------------------------- |
2447 | +m4_define([lt_decl_quote_varnames], |
2448 | +[_lt_decl_filter([value], [1], $@)]) |
2449 | + |
2450 | + |
2451 | +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
2452 | +# --------------------------------------------------- |
2453 | +m4_define([lt_decl_dquote_varnames], |
2454 | +[_lt_decl_filter([value], [2], $@)]) |
2455 | + |
2456 | + |
2457 | +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
2458 | +# --------------------------------------------------- |
2459 | +m4_define([lt_decl_varnames_tagged], |
2460 | +[m4_assert([$# <= 2])dnl |
2461 | +_$0(m4_quote(m4_default([$1], [[, ]])), |
2462 | + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), |
2463 | + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) |
2464 | +m4_define([_lt_decl_varnames_tagged], |
2465 | +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) |
2466 | + |
2467 | + |
2468 | +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
2469 | +# ------------------------------------------------ |
2470 | +m4_define([lt_decl_all_varnames], |
2471 | +[_$0(m4_quote(m4_default([$1], [[, ]])), |
2472 | + m4_if([$2], [], |
2473 | + m4_quote(lt_decl_varnames), |
2474 | + m4_quote(m4_shift($@))))[]dnl |
2475 | +]) |
2476 | +m4_define([_lt_decl_all_varnames], |
2477 | +[lt_join($@, lt_decl_varnames_tagged([$1], |
2478 | + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
2479 | +]) |
2480 | + |
2481 | + |
2482 | +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
2483 | +# ------------------------------------ |
2484 | +# Quote a variable value, and forward it to `config.status' so that its |
2485 | +# declaration there will have the same value as in `configure'. VARNAME |
2486 | +# must have a single quote delimited value for this to work. |
2487 | +m4_define([_LT_CONFIG_STATUS_DECLARE], |
2488 | +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) |
2489 | + |
2490 | + |
2491 | +# _LT_CONFIG_STATUS_DECLARATIONS |
2492 | +# ------------------------------ |
2493 | +# We delimit libtool config variables with single quotes, so when |
2494 | +# we write them to config.status, we have to be sure to quote all |
2495 | +# embedded single quotes properly. In configure, this macro expands |
2496 | +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
2497 | +# |
2498 | +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' |
2499 | +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
2500 | +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
2501 | + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
2502 | + |
2503 | + |
2504 | +# _LT_LIBTOOL_TAGS |
2505 | +# ---------------- |
2506 | +# Output comment and list of tags supported by the script |
2507 | +m4_defun([_LT_LIBTOOL_TAGS], |
2508 | +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
2509 | +available_tags="_LT_TAGS"dnl |
2510 | +]) |
2511 | + |
2512 | + |
2513 | +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
2514 | +# ----------------------------------- |
2515 | +# Extract the dictionary values for VARNAME (optionally with TAG) and |
2516 | +# expand to a commented shell variable setting: |
2517 | +# |
2518 | +# # Some comment about what VAR is for. |
2519 | +# visible_name=$lt_internal_name |
2520 | +m4_define([_LT_LIBTOOL_DECLARE], |
2521 | +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
2522 | + [description])))[]dnl |
2523 | +m4_pushdef([_libtool_name], |
2524 | + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
2525 | +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
2526 | + [0], [_libtool_name=[$]$1], |
2527 | + [1], [_libtool_name=$lt_[]$1], |
2528 | + [2], [_libtool_name=$lt_[]$1], |
2529 | + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
2530 | +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
2531 | +]) |
2532 | + |
2533 | + |
2534 | +# _LT_LIBTOOL_CONFIG_VARS |
2535 | +# ----------------------- |
2536 | +# Produce commented declarations of non-tagged libtool config variables |
2537 | +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
2538 | +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
2539 | +# section) are produced by _LT_LIBTOOL_TAG_VARS. |
2540 | +m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
2541 | +[m4_foreach([_lt_var], |
2542 | + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
2543 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
2544 | + |
2545 | + |
2546 | +# _LT_LIBTOOL_TAG_VARS(TAG) |
2547 | +# ------------------------- |
2548 | +m4_define([_LT_LIBTOOL_TAG_VARS], |
2549 | +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
2550 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
2551 | + |
2552 | + |
2553 | +# _LT_TAGVAR(VARNAME, [TAGNAME]) |
2554 | +# ------------------------------ |
2555 | +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
2556 | + |
2557 | + |
2558 | +# _LT_CONFIG_COMMANDS |
2559 | +# ------------------- |
2560 | +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
2561 | +# variables for single and double quote escaping we saved from calls |
2562 | +# to _LT_DECL, we can put quote escaped variables declarations |
2563 | +# into `config.status', and then the shell code to quote escape them in |
2564 | +# for loops in `config.status'. Finally, any additional code accumulated |
2565 | +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
2566 | +m4_defun([_LT_CONFIG_COMMANDS], |
2567 | +[AC_PROVIDE_IFELSE([LT_OUTPUT], |
2568 | + dnl If the libtool generation code has been placed in $CONFIG_LT, |
2569 | + dnl instead of duplicating it all over again into config.status, |
2570 | + dnl then we will have config.status run $CONFIG_LT later, so it |
2571 | + dnl needs to know what name is stored there: |
2572 | + [AC_CONFIG_COMMANDS([libtool], |
2573 | + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], |
2574 | + dnl If the libtool generation code is destined for config.status, |
2575 | + dnl expand the accumulated commands and init code now: |
2576 | + [AC_CONFIG_COMMANDS([libtool], |
2577 | + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) |
2578 | +])#_LT_CONFIG_COMMANDS |
2579 | + |
2580 | + |
2581 | +# Initialize. |
2582 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], |
2583 | +[ |
2584 | + |
2585 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
2586 | +# if CDPATH is set. |
2587 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
2588 | + |
2589 | +sed_quote_subst='$sed_quote_subst' |
2590 | +double_quote_subst='$double_quote_subst' |
2591 | +delay_variable_subst='$delay_variable_subst' |
2592 | +_LT_CONFIG_STATUS_DECLARATIONS |
2593 | +LTCC='$LTCC' |
2594 | +LTCFLAGS='$LTCFLAGS' |
2595 | +compiler='$compiler_DEFAULT' |
2596 | + |
2597 | +# Quote evaled strings. |
2598 | +for var in lt_decl_all_varnames([[ \ |
2599 | +]], lt_decl_quote_varnames); do |
2600 | + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
2601 | + *[[\\\\\\\`\\"\\\$]]*) |
2602 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
2603 | + ;; |
2604 | + *) |
2605 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
2606 | + ;; |
2607 | + esac |
2608 | +done |
2609 | + |
2610 | +# Double-quote double-evaled strings. |
2611 | +for var in lt_decl_all_varnames([[ \ |
2612 | +]], lt_decl_dquote_varnames); do |
2613 | + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
2614 | + *[[\\\\\\\`\\"\\\$]]*) |
2615 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
2616 | + ;; |
2617 | + *) |
2618 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
2619 | + ;; |
2620 | + esac |
2621 | +done |
2622 | + |
2623 | +# Fix-up fallback echo if it was mangled by the above quoting rules. |
2624 | +case \$lt_ECHO in |
2625 | +*'\\\[$]0 --fallback-echo"')dnl " |
2626 | + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` |
2627 | + ;; |
2628 | +esac |
2629 | + |
2630 | +_LT_OUTPUT_LIBTOOL_INIT |
2631 | +]) |
2632 | + |
2633 | + |
2634 | +# LT_OUTPUT |
2635 | +# --------- |
2636 | +# This macro allows early generation of the libtool script (before |
2637 | +# AC_OUTPUT is called), incase it is used in configure for compilation |
2638 | +# tests. |
2639 | +AC_DEFUN([LT_OUTPUT], |
2640 | +[: ${CONFIG_LT=./config.lt} |
2641 | +AC_MSG_NOTICE([creating $CONFIG_LT]) |
2642 | +cat >"$CONFIG_LT" <<_LTEOF |
2643 | +#! $SHELL |
2644 | +# Generated by $as_me. |
2645 | +# Run this file to recreate a libtool stub with the current configuration. |
2646 | + |
2647 | +lt_cl_silent=false |
2648 | +SHELL=\${CONFIG_SHELL-$SHELL} |
2649 | +_LTEOF |
2650 | + |
2651 | +cat >>"$CONFIG_LT" <<\_LTEOF |
2652 | +AS_SHELL_SANITIZE |
2653 | +_AS_PREPARE |
2654 | + |
2655 | +exec AS_MESSAGE_FD>&1 |
2656 | +exec AS_MESSAGE_LOG_FD>>config.log |
2657 | +{ |
2658 | + echo |
2659 | + AS_BOX([Running $as_me.]) |
2660 | +} >&AS_MESSAGE_LOG_FD |
2661 | + |
2662 | +lt_cl_help="\ |
2663 | +\`$as_me' creates a local libtool stub from the current configuration, |
2664 | +for use in further configure time tests before the real libtool is |
2665 | +generated. |
2666 | + |
2667 | +Usage: $[0] [[OPTIONS]] |
2668 | + |
2669 | + -h, --help print this help, then exit |
2670 | + -V, --version print version number, then exit |
2671 | + -q, --quiet do not print progress messages |
2672 | + -d, --debug don't remove temporary files |
2673 | + |
2674 | +Report bugs to <bug-libtool@gnu.org>." |
2675 | + |
2676 | +lt_cl_version="\ |
2677 | +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
2678 | +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
2679 | +configured by $[0], generated by m4_PACKAGE_STRING. |
2680 | + |
2681 | +Copyright (C) 2008 Free Software Foundation, Inc. |
2682 | +This config.lt script is free software; the Free Software Foundation |
2683 | +gives unlimited permision to copy, distribute and modify it." |
2684 | + |
2685 | +while test $[#] != 0 |
2686 | +do |
2687 | + case $[1] in |
2688 | + --version | --v* | -V ) |
2689 | + echo "$lt_cl_version"; exit 0 ;; |
2690 | + --help | --h* | -h ) |
2691 | + echo "$lt_cl_help"; exit 0 ;; |
2692 | + --debug | --d* | -d ) |
2693 | + debug=: ;; |
2694 | + --quiet | --q* | --silent | --s* | -q ) |
2695 | + lt_cl_silent=: ;; |
2696 | + |
2697 | + -*) AC_MSG_ERROR([unrecognized option: $[1] |
2698 | +Try \`$[0] --help' for more information.]) ;; |
2699 | + |
2700 | + *) AC_MSG_ERROR([unrecognized argument: $[1] |
2701 | +Try \`$[0] --help' for more information.]) ;; |
2702 | + esac |
2703 | + shift |
2704 | +done |
2705 | + |
2706 | +if $lt_cl_silent; then |
2707 | + exec AS_MESSAGE_FD>/dev/null |
2708 | +fi |
2709 | +_LTEOF |
2710 | + |
2711 | +cat >>"$CONFIG_LT" <<_LTEOF |
2712 | +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
2713 | +_LTEOF |
2714 | + |
2715 | +cat >>"$CONFIG_LT" <<\_LTEOF |
2716 | +AC_MSG_NOTICE([creating $ofile]) |
2717 | +_LT_OUTPUT_LIBTOOL_COMMANDS |
2718 | +AS_EXIT(0) |
2719 | +_LTEOF |
2720 | +chmod +x "$CONFIG_LT" |
2721 | + |
2722 | +# configure is writing to config.log, but config.lt does its own redirection, |
2723 | +# appending to config.log, which fails on DOS, as config.log is still kept |
2724 | +# open by configure. Here we exec the FD to /dev/null, effectively closing |
2725 | +# config.log, so it can be properly (re)opened and appended to by config.lt. |
2726 | +if test "$no_create" != yes; then |
2727 | + lt_cl_success=: |
2728 | + test "$silent" = yes && |
2729 | + lt_config_lt_args="$lt_config_lt_args --quiet" |
2730 | + exec AS_MESSAGE_LOG_FD>/dev/null |
2731 | + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
2732 | + exec AS_MESSAGE_LOG_FD>>config.log |
2733 | + $lt_cl_success || AS_EXIT(1) |
2734 | +fi |
2735 | +])# LT_OUTPUT |
2736 | + |
2737 | + |
2738 | +# _LT_CONFIG(TAG) |
2739 | +# --------------- |
2740 | +# If TAG is the built-in tag, create an initial libtool script with a |
2741 | +# default configuration from the untagged config vars. Otherwise add code |
2742 | +# to config.status for appending the configuration named by TAG from the |
2743 | +# matching tagged config vars. |
2744 | +m4_defun([_LT_CONFIG], |
2745 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2746 | +_LT_CONFIG_SAVE_COMMANDS([ |
2747 | + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
2748 | + m4_if(_LT_TAG, [C], [ |
2749 | + # See if we are running on zsh, and set the options which allow our |
2750 | + # commands through without removal of \ escapes. |
2751 | + if test -n "${ZSH_VERSION+set}" ; then |
2752 | + setopt NO_GLOB_SUBST |
2753 | + fi |
2754 | + |
2755 | + cfgfile="${ofile}T" |
2756 | + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
2757 | + $RM "$cfgfile" |
2758 | + |
2759 | + cat <<_LT_EOF >> "$cfgfile" |
2760 | +#! $SHELL |
2761 | + |
2762 | +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
2763 | +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
2764 | +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
2765 | +# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
2766 | +# |
2767 | +_LT_COPYING |
2768 | +_LT_LIBTOOL_TAGS |
2769 | + |
2770 | +# ### BEGIN LIBTOOL CONFIG |
2771 | +_LT_LIBTOOL_CONFIG_VARS |
2772 | +_LT_LIBTOOL_TAG_VARS |
2773 | +# ### END LIBTOOL CONFIG |
2774 | + |
2775 | +_LT_EOF |
2776 | + |
2777 | + case $host_os in |
2778 | + aix3*) |
2779 | + cat <<\_LT_EOF >> "$cfgfile" |
2780 | +# AIX sometimes has problems with the GCC collect2 program. For some |
2781 | +# reason, if we set the COLLECT_NAMES environment variable, the problems |
2782 | +# vanish in a puff of smoke. |
2783 | +if test "X${COLLECT_NAMES+set}" != Xset; then |
2784 | + COLLECT_NAMES= |
2785 | + export COLLECT_NAMES |
2786 | +fi |
2787 | +_LT_EOF |
2788 | + ;; |
2789 | + esac |
2790 | + |
2791 | + _LT_PROG_LTMAIN |
2792 | + |
2793 | + # We use sed instead of cat because bash on DJGPP gets confused if |
2794 | + # if finds mixed CR/LF and LF-only lines. Since sed operates in |
2795 | + # text mode, it properly converts lines to CR/LF. This bash problem |
2796 | + # is reportedly fixed, but why not run on old versions too? |
2797 | + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
2798 | + || (rm -f "$cfgfile"; exit 1) |
2799 | + |
2800 | + _LT_PROG_XSI_SHELLFNS |
2801 | + |
2802 | + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
2803 | + || (rm -f "$cfgfile"; exit 1) |
2804 | + |
2805 | + mv -f "$cfgfile" "$ofile" || |
2806 | + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
2807 | + chmod +x "$ofile" |
2808 | +], |
2809 | +[cat <<_LT_EOF >> "$ofile" |
2810 | + |
2811 | +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
2812 | +dnl in a comment (ie after a #). |
2813 | +# ### BEGIN LIBTOOL TAG CONFIG: $1 |
2814 | +_LT_LIBTOOL_TAG_VARS(_LT_TAG) |
2815 | +# ### END LIBTOOL TAG CONFIG: $1 |
2816 | +_LT_EOF |
2817 | +])dnl /m4_if |
2818 | +], |
2819 | +[m4_if([$1], [], [ |
2820 | + PACKAGE='$PACKAGE' |
2821 | + VERSION='$VERSION' |
2822 | + TIMESTAMP='$TIMESTAMP' |
2823 | + RM='$RM' |
2824 | + ofile='$ofile'], []) |
2825 | +])dnl /_LT_CONFIG_SAVE_COMMANDS |
2826 | +])# _LT_CONFIG |
2827 | + |
2828 | + |
2829 | +# LT_SUPPORTED_TAG(TAG) |
2830 | +# --------------------- |
2831 | +# Trace this macro to discover what tags are supported by the libtool |
2832 | +# --tag option, using: |
2833 | +# autoconf --trace 'LT_SUPPORTED_TAG:$1' |
2834 | +AC_DEFUN([LT_SUPPORTED_TAG], []) |
2835 | + |
2836 | + |
2837 | +# C support is built-in for now |
2838 | +m4_define([_LT_LANG_C_enabled], []) |
2839 | +m4_define([_LT_TAGS], []) |
2840 | + |
2841 | + |
2842 | +# LT_LANG(LANG) |
2843 | +# ------------- |
2844 | +# Enable libtool support for the given language if not already enabled. |
2845 | +AC_DEFUN([LT_LANG], |
2846 | +[AC_BEFORE([$0], [LT_OUTPUT])dnl |
2847 | +m4_case([$1], |
2848 | + [C], [_LT_LANG(C)], |
2849 | + [C++], [_LT_LANG(CXX)], |
2850 | + [Java], [_LT_LANG(GCJ)], |
2851 | + [Fortran 77], [_LT_LANG(F77)], |
2852 | + [Fortran], [_LT_LANG(FC)], |
2853 | + [Windows Resource], [_LT_LANG(RC)], |
2854 | + [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
2855 | + [_LT_LANG($1)], |
2856 | + [m4_fatal([$0: unsupported language: "$1"])])])dnl |
2857 | +])# LT_LANG |
2858 | + |
2859 | + |
2860 | +# _LT_LANG(LANGNAME) |
2861 | +# ------------------ |
2862 | +m4_defun([_LT_LANG], |
2863 | +[m4_ifdef([_LT_LANG_]$1[_enabled], [], |
2864 | + [LT_SUPPORTED_TAG([$1])dnl |
2865 | + m4_append([_LT_TAGS], [$1 ])dnl |
2866 | + m4_define([_LT_LANG_]$1[_enabled], [])dnl |
2867 | + _LT_LANG_$1_CONFIG($1)])dnl |
2868 | +])# _LT_LANG |
2869 | + |
2870 | + |
2871 | +# _LT_LANG_DEFAULT_CONFIG |
2872 | +# ----------------------- |
2873 | +m4_defun([_LT_LANG_DEFAULT_CONFIG], |
2874 | +[AC_PROVIDE_IFELSE([AC_PROG_CXX], |
2875 | + [LT_LANG(CXX)], |
2876 | + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
2877 | + |
2878 | +AC_PROVIDE_IFELSE([AC_PROG_F77], |
2879 | + [LT_LANG(F77)], |
2880 | + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
2881 | + |
2882 | +AC_PROVIDE_IFELSE([AC_PROG_FC], |
2883 | + [LT_LANG(FC)], |
2884 | + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) |
2885 | + |
2886 | +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
2887 | +dnl pulling things in needlessly. |
2888 | +AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
2889 | + [LT_LANG(GCJ)], |
2890 | + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
2891 | + [LT_LANG(GCJ)], |
2892 | + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
2893 | + [LT_LANG(GCJ)], |
2894 | + [m4_ifdef([AC_PROG_GCJ], |
2895 | + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
2896 | + m4_ifdef([A][M_PROG_GCJ], |
2897 | + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
2898 | + m4_ifdef([LT_PROG_GCJ], |
2899 | + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
2900 | + |
2901 | +AC_PROVIDE_IFELSE([LT_PROG_RC], |
2902 | + [LT_LANG(RC)], |
2903 | + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
2904 | +])# _LT_LANG_DEFAULT_CONFIG |
2905 | + |
2906 | +# Obsolete macros: |
2907 | +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
2908 | +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
2909 | +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
2910 | +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
2911 | +dnl aclocal-1.4 backwards compatibility: |
2912 | +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
2913 | +dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
2914 | +dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
2915 | +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
2916 | + |
2917 | + |
2918 | +# _LT_TAG_COMPILER |
2919 | +# ---------------- |
2920 | +m4_defun([_LT_TAG_COMPILER], |
2921 | +[AC_REQUIRE([AC_PROG_CC])dnl |
2922 | + |
2923 | +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
2924 | +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
2925 | +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
2926 | +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl |
2927 | + |
2928 | +# If no C compiler was specified, use CC. |
2929 | +LTCC=${LTCC-"$CC"} |
2930 | + |
2931 | +# If no C compiler flags were specified, use CFLAGS. |
2932 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
2933 | + |
2934 | +# Allow CC to be a program name with arguments. |
2935 | +compiler=$CC |
2936 | +])# _LT_TAG_COMPILER |
2937 | + |
2938 | + |
2939 | +# _LT_COMPILER_BOILERPLATE |
2940 | +# ------------------------ |
2941 | +# Check for compiler boilerplate output or warnings with |
2942 | +# the simple compiler test code. |
2943 | +m4_defun([_LT_COMPILER_BOILERPLATE], |
2944 | +[m4_require([_LT_DECL_SED])dnl |
2945 | +ac_outfile=conftest.$ac_objext |
2946 | +echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
2947 | +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
2948 | +_lt_compiler_boilerplate=`cat conftest.err` |
2949 | +$RM conftest* |
2950 | +])# _LT_COMPILER_BOILERPLATE |
2951 | + |
2952 | + |
2953 | +# _LT_LINKER_BOILERPLATE |
2954 | +# ---------------------- |
2955 | +# Check for linker boilerplate output or warnings with |
2956 | +# the simple link test code. |
2957 | +m4_defun([_LT_LINKER_BOILERPLATE], |
2958 | +[m4_require([_LT_DECL_SED])dnl |
2959 | +ac_outfile=conftest.$ac_objext |
2960 | +echo "$lt_simple_link_test_code" >conftest.$ac_ext |
2961 | +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
2962 | +_lt_linker_boilerplate=`cat conftest.err` |
2963 | +$RM -r conftest* |
2964 | +])# _LT_LINKER_BOILERPLATE |
2965 | + |
2966 | +# _LT_REQUIRED_DARWIN_CHECKS |
2967 | +# ------------------------- |
2968 | +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
2969 | + case $host_os in |
2970 | + rhapsody* | darwin*) |
2971 | + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
2972 | + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
2973 | + AC_CHECK_TOOL([LIPO], [lipo], [:]) |
2974 | + AC_CHECK_TOOL([OTOOL], [otool], [:]) |
2975 | + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) |
2976 | + _LT_DECL([], [DSYMUTIL], [1], |
2977 | + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) |
2978 | + _LT_DECL([], [NMEDIT], [1], |
2979 | + [Tool to change global to local symbols on Mac OS X]) |
2980 | + _LT_DECL([], [LIPO], [1], |
2981 | + [Tool to manipulate fat objects and archives on Mac OS X]) |
2982 | + _LT_DECL([], [OTOOL], [1], |
2983 | + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) |
2984 | + _LT_DECL([], [OTOOL64], [1], |
2985 | + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
2986 | + |
2987 | + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
2988 | + [lt_cv_apple_cc_single_mod=no |
2989 | + if test -z "${LT_MULTI_MODULE}"; then |
2990 | + # By default we will add the -single_module flag. You can override |
2991 | + # by either setting the environment variable LT_MULTI_MODULE |
2992 | + # non-empty at configure time, or by adding -multi_module to the |
2993 | + # link flags. |
2994 | + rm -rf libconftest.dylib* |
2995 | + echo "int foo(void){return 1;}" > conftest.c |
2996 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
2997 | +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
2998 | + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
2999 | + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
3000 | + _lt_result=$? |
3001 | + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
3002 | + lt_cv_apple_cc_single_mod=yes |
3003 | + else |
3004 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
3005 | + fi |
3006 | + rm -rf libconftest.dylib* |
3007 | + rm -f conftest.* |
3008 | + fi]) |
3009 | + AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
3010 | + [lt_cv_ld_exported_symbols_list], |
3011 | + [lt_cv_ld_exported_symbols_list=no |
3012 | + save_LDFLAGS=$LDFLAGS |
3013 | + echo "_main" > conftest.sym |
3014 | + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
3015 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
3016 | + [lt_cv_ld_exported_symbols_list=yes], |
3017 | + [lt_cv_ld_exported_symbols_list=no]) |
3018 | + LDFLAGS="$save_LDFLAGS" |
3019 | + ]) |
3020 | + case $host_os in |
3021 | + rhapsody* | darwin1.[[012]]) |
3022 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
3023 | + darwin1.*) |
3024 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
3025 | + darwin*) # darwin 5.x on |
3026 | + # if running on 10.5 or later, the deployment target defaults |
3027 | + # to the OS version, if on x86, and 10.4, the deployment |
3028 | + # target defaults to 10.4. Don't you love it? |
3029 | + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
3030 | + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
3031 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
3032 | + 10.[[012]]*) |
3033 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
3034 | + 10.*) |
3035 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
3036 | + esac |
3037 | + ;; |
3038 | + esac |
3039 | + if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
3040 | + _lt_dar_single_mod='$single_module' |
3041 | + fi |
3042 | + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
3043 | + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
3044 | + else |
3045 | + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
3046 | + fi |
3047 | + if test "$DSYMUTIL" != ":"; then |
3048 | + _lt_dsymutil='~$DSYMUTIL $lib || :' |
3049 | + else |
3050 | + _lt_dsymutil= |
3051 | + fi |
3052 | + ;; |
3053 | + esac |
3054 | +]) |
3055 | + |
3056 | + |
3057 | +# _LT_DARWIN_LINKER_FEATURES |
3058 | +# -------------------------- |
3059 | +# Checks for linker and compiler features on darwin |
3060 | +m4_defun([_LT_DARWIN_LINKER_FEATURES], |
3061 | +[ |
3062 | + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
3063 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
3064 | + _LT_TAGVAR(hardcode_direct, $1)=no |
3065 | + _LT_TAGVAR(hardcode_automatic, $1)=yes |
3066 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
3067 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
3068 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
3069 | + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
3070 | + case $cc_basename in |
3071 | + ifort*) _lt_dar_can_shared=yes ;; |
3072 | + *) _lt_dar_can_shared=$GCC ;; |
3073 | + esac |
3074 | + if test "$_lt_dar_can_shared" = "yes"; then |
3075 | + output_verbose_link_cmd=echo |
3076 | + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
3077 | + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
3078 | + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
3079 | + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
3080 | + m4_if([$1], [CXX], |
3081 | +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
3082 | + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
3083 | + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
3084 | + fi |
3085 | +],[]) |
3086 | + else |
3087 | + _LT_TAGVAR(ld_shlibs, $1)=no |
3088 | + fi |
3089 | +]) |
3090 | + |
3091 | +# _LT_SYS_MODULE_PATH_AIX |
3092 | +# ----------------------- |
3093 | +# Links a minimal program and checks the executable |
3094 | +# for the system default hardcoded library path. In most cases, |
3095 | +# this is /usr/lib:/lib, but when the MPI compilers are used |
3096 | +# the location of the communication and MPI libs are included too. |
3097 | +# If we don't find anything, use the default library path according |
3098 | +# to the aix ld manual. |
3099 | +m4_defun([_LT_SYS_MODULE_PATH_AIX], |
3100 | +[m4_require([_LT_DECL_SED])dnl |
3101 | +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
3102 | +lt_aix_libpath_sed=' |
3103 | + /Import File Strings/,/^$/ { |
3104 | + /^0/ { |
3105 | + s/^0 *\(.*\)$/\1/ |
3106 | + p |
3107 | + } |
3108 | + }' |
3109 | +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
3110 | +# Check for a 64-bit object if we didn't find anything. |
3111 | +if test -z "$aix_libpath"; then |
3112 | + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
3113 | +fi],[]) |
3114 | +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
3115 | +])# _LT_SYS_MODULE_PATH_AIX |
3116 | + |
3117 | + |
3118 | +# _LT_SHELL_INIT(ARG) |
3119 | +# ------------------- |
3120 | +m4_define([_LT_SHELL_INIT], |
3121 | +[ifdef([AC_DIVERSION_NOTICE], |
3122 | + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
3123 | + [AC_DIVERT_PUSH(NOTICE)]) |
3124 | +$1 |
3125 | +AC_DIVERT_POP |
3126 | +])# _LT_SHELL_INIT |
3127 | + |
3128 | + |
3129 | +# _LT_PROG_ECHO_BACKSLASH |
3130 | +# ----------------------- |
3131 | +# Add some code to the start of the generated configure script which |
3132 | +# will find an echo command which doesn't interpret backslashes. |
3133 | +m4_defun([_LT_PROG_ECHO_BACKSLASH], |
3134 | +[_LT_SHELL_INIT([ |
3135 | +# Check that we are running under the correct shell. |
3136 | +SHELL=${CONFIG_SHELL-/bin/sh} |
3137 | + |
3138 | +case X$lt_ECHO in |
3139 | +X*--fallback-echo) |
3140 | + # Remove one level of quotation (which was required for Make). |
3141 | + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
3142 | + ;; |
3143 | +esac |
3144 | + |
3145 | +ECHO=${lt_ECHO-echo} |
3146 | +if test "X[$]1" = X--no-reexec; then |
3147 | + # Discard the --no-reexec flag, and continue. |
3148 | + shift |
3149 | +elif test "X[$]1" = X--fallback-echo; then |
3150 | + # Avoid inline document here, it may be left over |
3151 | + : |
3152 | +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
3153 | + # Yippee, $ECHO works! |
3154 | + : |
3155 | +else |
3156 | + # Restart under the correct shell. |
3157 | + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
3158 | +fi |
3159 | + |
3160 | +if test "X[$]1" = X--fallback-echo; then |
3161 | + # used as fallback echo |
3162 | + shift |
3163 | + cat <<_LT_EOF |
3164 | +[$]* |
3165 | +_LT_EOF |
3166 | + exit 0 |
3167 | +fi |
3168 | + |
3169 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
3170 | +# if CDPATH is set. |
3171 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
3172 | + |
3173 | +if test -z "$lt_ECHO"; then |
3174 | + if test "X${echo_test_string+set}" != Xset; then |
3175 | + # find a string as large as possible, as long as the shell can cope with it |
3176 | + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
3177 | + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
3178 | + if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
3179 | + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
3180 | + then |
3181 | + break |
3182 | + fi |
3183 | + done |
3184 | + fi |
3185 | + |
3186 | + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
3187 | + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
3188 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
3189 | + : |
3190 | + else |
3191 | + # The Solaris, AIX, and Digital Unix default echo programs unquote |
3192 | + # backslashes. This makes it impossible to quote backslashes using |
3193 | + # echo "$something" | sed 's/\\/\\\\/g' |
3194 | + # |
3195 | + # So, first we look for a working echo in the user's PATH. |
3196 | + |
3197 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3198 | + for dir in $PATH /usr/ucb; do |
3199 | + IFS="$lt_save_ifs" |
3200 | + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
3201 | + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
3202 | + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
3203 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
3204 | + ECHO="$dir/echo" |
3205 | + break |
3206 | + fi |
3207 | + done |
3208 | + IFS="$lt_save_ifs" |
3209 | + |
3210 | + if test "X$ECHO" = Xecho; then |
3211 | + # We didn't find a better echo, so look for alternatives. |
3212 | + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
3213 | + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
3214 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
3215 | + # This shell has a builtin print -r that does the trick. |
3216 | + ECHO='print -r' |
3217 | + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
3218 | + test "X$CONFIG_SHELL" != X/bin/ksh; then |
3219 | + # If we have ksh, try running configure again with it. |
3220 | + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
3221 | + export ORIGINAL_CONFIG_SHELL |
3222 | + CONFIG_SHELL=/bin/ksh |
3223 | + export CONFIG_SHELL |
3224 | + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
3225 | + else |
3226 | + # Try using printf. |
3227 | + ECHO='printf %s\n' |
3228 | + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
3229 | + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
3230 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
3231 | + # Cool, printf works |
3232 | + : |
3233 | + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
3234 | + test "X$echo_testing_string" = 'X\t' && |
3235 | + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
3236 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
3237 | + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
3238 | + export CONFIG_SHELL |
3239 | + SHELL="$CONFIG_SHELL" |
3240 | + export SHELL |
3241 | + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
3242 | + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
3243 | + test "X$echo_testing_string" = 'X\t' && |
3244 | + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
3245 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
3246 | + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
3247 | + else |
3248 | + # maybe with a smaller string... |
3249 | + prev=: |
3250 | + |
3251 | + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
3252 | + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
3253 | + then |
3254 | + break |
3255 | + fi |
3256 | + prev="$cmd" |
3257 | + done |
3258 | + |
3259 | + if test "$prev" != 'sed 50q "[$]0"'; then |
3260 | + echo_test_string=`eval $prev` |
3261 | + export echo_test_string |
3262 | + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
3263 | + else |
3264 | + # Oops. We lost completely, so just stick with echo. |
3265 | + ECHO=echo |
3266 | + fi |
3267 | + fi |
3268 | + fi |
3269 | + fi |
3270 | + fi |
3271 | +fi |
3272 | + |
3273 | +# Copy echo and quote the copy suitably for passing to libtool from |
3274 | +# the Makefile, instead of quoting the original, which is used later. |
3275 | +lt_ECHO=$ECHO |
3276 | +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
3277 | + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
3278 | +fi |
3279 | + |
3280 | +AC_SUBST(lt_ECHO) |
3281 | +]) |
3282 | +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
3283 | +_LT_DECL([], [ECHO], [1], |
3284 | + [An echo program that does not interpret backslashes]) |
3285 | +])# _LT_PROG_ECHO_BACKSLASH |
3286 | + |
3287 | + |
3288 | +# _LT_ENABLE_LOCK |
3289 | +# --------------- |
3290 | +m4_defun([_LT_ENABLE_LOCK], |
3291 | +[AC_ARG_ENABLE([libtool-lock], |
3292 | + [AS_HELP_STRING([--disable-libtool-lock], |
3293 | + [avoid locking (might break parallel builds)])]) |
3294 | +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
3295 | + |
3296 | +# Some flags need to be propagated to the compiler or linker for good |
3297 | +# libtool support. |
3298 | +case $host in |
3299 | +ia64-*-hpux*) |
3300 | + # Find out which ABI we are using. |
3301 | + echo 'int i;' > conftest.$ac_ext |
3302 | + if AC_TRY_EVAL(ac_compile); then |
3303 | + case `/usr/bin/file conftest.$ac_objext` in |
3304 | + *ELF-32*) |
3305 | + HPUX_IA64_MODE="32" |
3306 | + ;; |
3307 | + *ELF-64*) |
3308 | + HPUX_IA64_MODE="64" |
3309 | + ;; |
3310 | + esac |
3311 | + fi |
3312 | + rm -rf conftest* |
3313 | + ;; |
3314 | +*-*-irix6*) |
3315 | + # Find out which ABI we are using. |
3316 | + echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
3317 | + if AC_TRY_EVAL(ac_compile); then |
3318 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
3319 | + case `/usr/bin/file conftest.$ac_objext` in |
3320 | + *32-bit*) |
3321 | + LD="${LD-ld} -melf32bsmip" |
3322 | + ;; |
3323 | + *N32*) |
3324 | + LD="${LD-ld} -melf32bmipn32" |
3325 | + ;; |
3326 | + *64-bit*) |
3327 | + LD="${LD-ld} -melf64bmip" |
3328 | + ;; |
3329 | + esac |
3330 | + else |
3331 | + case `/usr/bin/file conftest.$ac_objext` in |
3332 | + *32-bit*) |
3333 | + LD="${LD-ld} -32" |
3334 | + ;; |
3335 | + *N32*) |
3336 | + LD="${LD-ld} -n32" |
3337 | + ;; |
3338 | + *64-bit*) |
3339 | + LD="${LD-ld} -64" |
3340 | + ;; |
3341 | + esac |
3342 | + fi |
3343 | + fi |
3344 | + rm -rf conftest* |
3345 | + ;; |
3346 | + |
3347 | +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
3348 | +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
3349 | + # Find out which ABI we are using. |
3350 | + echo 'int i;' > conftest.$ac_ext |
3351 | + if AC_TRY_EVAL(ac_compile); then |
3352 | + case `/usr/bin/file conftest.o` in |
3353 | + *32-bit*) |
3354 | + case $host in |
3355 | + x86_64-*kfreebsd*-gnu) |
3356 | + LD="${LD-ld} -m elf_i386_fbsd" |
3357 | + ;; |
3358 | + x86_64-*linux*) |
3359 | + LD="${LD-ld} -m elf_i386" |
3360 | + ;; |
3361 | + ppc64-*linux*|powerpc64-*linux*) |
3362 | + LD="${LD-ld} -m elf32ppclinux" |
3363 | + ;; |
3364 | + s390x-*linux*) |
3365 | + LD="${LD-ld} -m elf_s390" |
3366 | + ;; |
3367 | + sparc64-*linux*) |
3368 | + LD="${LD-ld} -m elf32_sparc" |
3369 | + ;; |
3370 | + esac |
3371 | + ;; |
3372 | + *64-bit*) |
3373 | + case $host in |
3374 | + x86_64-*kfreebsd*-gnu) |
3375 | + LD="${LD-ld} -m elf_x86_64_fbsd" |
3376 | + ;; |
3377 | + x86_64-*linux*) |
3378 | + LD="${LD-ld} -m elf_x86_64" |
3379 | + ;; |
3380 | + ppc*-*linux*|powerpc*-*linux*) |
3381 | + LD="${LD-ld} -m elf64ppc" |
3382 | + ;; |
3383 | + s390*-*linux*|s390*-*tpf*) |
3384 | + LD="${LD-ld} -m elf64_s390" |
3385 | + ;; |
3386 | + sparc*-*linux*) |
3387 | + LD="${LD-ld} -m elf64_sparc" |
3388 | + ;; |
3389 | + esac |
3390 | + ;; |
3391 | + esac |
3392 | + fi |
3393 | + rm -rf conftest* |
3394 | + ;; |
3395 | + |
3396 | +*-*-sco3.2v5*) |
3397 | + # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3398 | + SAVE_CFLAGS="$CFLAGS" |
3399 | + CFLAGS="$CFLAGS -belf" |
3400 | + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
3401 | + [AC_LANG_PUSH(C) |
3402 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
3403 | + AC_LANG_POP]) |
3404 | + if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3405 | + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3406 | + CFLAGS="$SAVE_CFLAGS" |
3407 | + fi |
3408 | + ;; |
3409 | +sparc*-*solaris*) |
3410 | + # Find out which ABI we are using. |
3411 | + echo 'int i;' > conftest.$ac_ext |
3412 | + if AC_TRY_EVAL(ac_compile); then |
3413 | + case `/usr/bin/file conftest.o` in |
3414 | + *64-bit*) |
3415 | + case $lt_cv_prog_gnu_ld in |
3416 | + yes*) LD="${LD-ld} -m elf64_sparc" ;; |
3417 | + *) |
3418 | + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
3419 | + LD="${LD-ld} -64" |
3420 | + fi |
3421 | + ;; |
3422 | + esac |
3423 | + ;; |
3424 | + esac |
3425 | + fi |
3426 | + rm -rf conftest* |
3427 | + ;; |
3428 | +esac |
3429 | + |
3430 | +need_locks="$enable_libtool_lock" |
3431 | +])# _LT_ENABLE_LOCK |
3432 | + |
3433 | + |
3434 | +# _LT_CMD_OLD_ARCHIVE |
3435 | +# ------------------- |
3436 | +m4_defun([_LT_CMD_OLD_ARCHIVE], |
3437 | +[AC_CHECK_TOOL(AR, ar, false) |
3438 | +test -z "$AR" && AR=ar |
3439 | +test -z "$AR_FLAGS" && AR_FLAGS=cru |
3440 | +_LT_DECL([], [AR], [1], [The archiver]) |
3441 | +_LT_DECL([], [AR_FLAGS], [1]) |
3442 | + |
3443 | +AC_CHECK_TOOL(STRIP, strip, :) |
3444 | +test -z "$STRIP" && STRIP=: |
3445 | +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
3446 | + |
3447 | +AC_CHECK_TOOL(RANLIB, ranlib, :) |
3448 | +test -z "$RANLIB" && RANLIB=: |
3449 | +_LT_DECL([], [RANLIB], [1], |
3450 | + [Commands used to install an old-style archive]) |
3451 | + |
3452 | +# Determine commands to create old-style static archives. |
3453 | +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
3454 | +old_postinstall_cmds='chmod 644 $oldlib' |
3455 | +old_postuninstall_cmds= |
3456 | + |
3457 | +if test -n "$RANLIB"; then |
3458 | + case $host_os in |
3459 | + openbsd*) |
3460 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
3461 | + ;; |
3462 | + *) |
3463 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
3464 | + ;; |
3465 | + esac |
3466 | + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
3467 | +fi |
3468 | +_LT_DECL([], [old_postinstall_cmds], [2]) |
3469 | +_LT_DECL([], [old_postuninstall_cmds], [2]) |
3470 | +_LT_TAGDECL([], [old_archive_cmds], [2], |
3471 | + [Commands used to build an old-style archive]) |
3472 | +])# _LT_CMD_OLD_ARCHIVE |
3473 | + |
3474 | + |
3475 | +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
3476 | +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
3477 | +# ---------------------------------------------------------------- |
3478 | +# Check whether the given compiler option works |
3479 | +AC_DEFUN([_LT_COMPILER_OPTION], |
3480 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3481 | +m4_require([_LT_DECL_SED])dnl |
3482 | +AC_CACHE_CHECK([$1], [$2], |
3483 | + [$2=no |
3484 | + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
3485 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
3486 | + lt_compiler_flag="$3" |
3487 | + # Insert the option either (1) after the last *FLAGS variable, or |
3488 | + # (2) before a word containing "conftest.", or (3) at the end. |
3489 | + # Note that $ac_compile itself does not contain backslashes and begins |
3490 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
3491 | + # The option is referenced via a variable to avoid confusing sed. |
3492 | + lt_compile=`echo "$ac_compile" | $SED \ |
3493 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
3494 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
3495 | + -e 's:$: $lt_compiler_flag:'` |
3496 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
3497 | + (eval "$lt_compile" 2>conftest.err) |
3498 | + ac_status=$? |
3499 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
3500 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
3501 | + if (exit $ac_status) && test -s "$ac_outfile"; then |
3502 | + # The compiler can only warn and ignore the option if not recognized |
3503 | + # So say no if there are warnings other than the usual output. |
3504 | + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
3505 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
3506 | + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
3507 | + $2=yes |
3508 | + fi |
3509 | + fi |
3510 | + $RM conftest* |
3511 | +]) |
3512 | + |
3513 | +if test x"[$]$2" = xyes; then |
3514 | + m4_if([$5], , :, [$5]) |
3515 | +else |
3516 | + m4_if([$6], , :, [$6]) |
3517 | +fi |
3518 | +])# _LT_COMPILER_OPTION |
3519 | + |
3520 | +# Old name: |
3521 | +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) |
3522 | +dnl aclocal-1.4 backwards compatibility: |
3523 | +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) |
3524 | + |
3525 | + |
3526 | +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
3527 | +# [ACTION-SUCCESS], [ACTION-FAILURE]) |
3528 | +# ---------------------------------------------------- |
3529 | +# Check whether the given linker option works |
3530 | +AC_DEFUN([_LT_LINKER_OPTION], |
3531 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3532 | +m4_require([_LT_DECL_SED])dnl |
3533 | +AC_CACHE_CHECK([$1], [$2], |
3534 | + [$2=no |
3535 | + save_LDFLAGS="$LDFLAGS" |
3536 | + LDFLAGS="$LDFLAGS $3" |
3537 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext |
3538 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
3539 | + # The linker can only warn and ignore the option if not recognized |
3540 | + # So say no if there are warnings |
3541 | + if test -s conftest.err; then |
3542 | + # Append any errors to the config.log. |
3543 | + cat conftest.err 1>&AS_MESSAGE_LOG_FD |
3544 | + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
3545 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
3546 | + if diff conftest.exp conftest.er2 >/dev/null; then |
3547 | + $2=yes |
3548 | + fi |
3549 | + else |
3550 | + $2=yes |
3551 | + fi |
3552 | + fi |
3553 | + $RM -r conftest* |
3554 | + LDFLAGS="$save_LDFLAGS" |
3555 | +]) |
3556 | + |
3557 | +if test x"[$]$2" = xyes; then |
3558 | + m4_if([$4], , :, [$4]) |
3559 | +else |
3560 | + m4_if([$5], , :, [$5]) |
3561 | +fi |
3562 | +])# _LT_LINKER_OPTION |
3563 | + |
3564 | +# Old name: |
3565 | +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) |
3566 | +dnl aclocal-1.4 backwards compatibility: |
3567 | +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) |
3568 | + |
3569 | + |
3570 | +# LT_CMD_MAX_LEN |
3571 | +#--------------- |
3572 | +AC_DEFUN([LT_CMD_MAX_LEN], |
3573 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3574 | +# find the maximum length of command line arguments |
3575 | +AC_MSG_CHECKING([the maximum length of command line arguments]) |
3576 | +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
3577 | + i=0 |
3578 | + teststring="ABCD" |
3579 | + |
3580 | + case $build_os in |
3581 | + msdosdjgpp*) |
3582 | + # On DJGPP, this test can blow up pretty badly due to problems in libc |
3583 | + # (any single argument exceeding 2000 bytes causes a buffer overrun |
3584 | + # during glob expansion). Even if it were fixed, the result of this |
3585 | + # check would be larger than it should be. |
3586 | + lt_cv_sys_max_cmd_len=12288; # 12K is about right |
3587 | + ;; |
3588 | + |
3589 | + gnu*) |
3590 | + # Under GNU Hurd, this test is not required because there is |
3591 | + # no limit to the length of command line arguments. |
3592 | + # Libtool will interpret -1 as no limit whatsoever |
3593 | + lt_cv_sys_max_cmd_len=-1; |
3594 | + ;; |
3595 | + |
3596 | + cygwin* | mingw* | cegcc*) |
3597 | + # On Win9x/ME, this test blows up -- it succeeds, but takes |
3598 | + # about 5 minutes as the teststring grows exponentially. |
3599 | + # Worse, since 9x/ME are not pre-emptively multitasking, |
3600 | + # you end up with a "frozen" computer, even though with patience |
3601 | + # the test eventually succeeds (with a max line length of 256k). |
3602 | + # Instead, let's just punt: use the minimum linelength reported by |
3603 | + # all of the supported platforms: 8192 (on NT/2K/XP). |
3604 | + lt_cv_sys_max_cmd_len=8192; |
3605 | + ;; |
3606 | + |
3607 | + amigaos*) |
3608 | + # On AmigaOS with pdksh, this test takes hours, literally. |
3609 | + # So we just punt and use a minimum line length of 8192. |
3610 | + lt_cv_sys_max_cmd_len=8192; |
3611 | + ;; |
3612 | + |
3613 | + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
3614 | + # This has been around since 386BSD, at least. Likely further. |
3615 | + if test -x /sbin/sysctl; then |
3616 | + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
3617 | + elif test -x /usr/sbin/sysctl; then |
3618 | + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
3619 | + else |
3620 | + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
3621 | + fi |
3622 | + # And add a safety zone |
3623 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
3624 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
3625 | + ;; |
3626 | + |
3627 | + interix*) |
3628 | + # We know the value 262144 and hardcode it with a safety zone (like BSD) |
3629 | + lt_cv_sys_max_cmd_len=196608 |
3630 | + ;; |
3631 | + |
3632 | + osf*) |
3633 | + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
3634 | + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
3635 | + # nice to cause kernel panics so lets avoid the loop below. |
3636 | + # First set a reasonable default. |
3637 | + lt_cv_sys_max_cmd_len=16384 |
3638 | + # |
3639 | + if test -x /sbin/sysconfig; then |
3640 | + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
3641 | + *1*) lt_cv_sys_max_cmd_len=-1 ;; |
3642 | + esac |
3643 | + fi |
3644 | + ;; |
3645 | + sco3.2v5*) |
3646 | + lt_cv_sys_max_cmd_len=102400 |
3647 | + ;; |
3648 | + sysv5* | sco5v6* | sysv4.2uw2*) |
3649 | + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
3650 | + if test -n "$kargmax"; then |
3651 | + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
3652 | + else |
3653 | + lt_cv_sys_max_cmd_len=32768 |
3654 | + fi |
3655 | + ;; |
3656 | + *) |
3657 | + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
3658 | + if test -n "$lt_cv_sys_max_cmd_len"; then |
3659 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
3660 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
3661 | + else |
3662 | + # Make teststring a little bigger before we do anything with it. |
3663 | + # a 1K string should be a reasonable start. |
3664 | + for i in 1 2 3 4 5 6 7 8 ; do |
3665 | + teststring=$teststring$teststring |
3666 | + done |
3667 | + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
3668 | + # If test is not a shell built-in, we'll probably end up computing a |
3669 | + # maximum length that is only half of the actual maximum length, but |
3670 | + # we can't tell. |
3671 | + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
3672 | + = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
3673 | + test $i != 17 # 1/2 MB should be enough |
3674 | + do |
3675 | + i=`expr $i + 1` |
3676 | + teststring=$teststring$teststring |
3677 | + done |
3678 | + # Only check the string length outside the loop. |
3679 | + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
3680 | + teststring= |
3681 | + # Add a significant safety factor because C++ compilers can tack on |
3682 | + # massive amounts of additional arguments before passing them to the |
3683 | + # linker. It appears as though 1/2 is a usable value. |
3684 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
3685 | + fi |
3686 | + ;; |
3687 | + esac |
3688 | +]) |
3689 | +if test -n $lt_cv_sys_max_cmd_len ; then |
3690 | + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
3691 | +else |
3692 | + AC_MSG_RESULT(none) |
3693 | +fi |
3694 | +max_cmd_len=$lt_cv_sys_max_cmd_len |
3695 | +_LT_DECL([], [max_cmd_len], [0], |
3696 | + [What is the maximum length of a command?]) |
3697 | +])# LT_CMD_MAX_LEN |
3698 | + |
3699 | +# Old name: |
3700 | +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) |
3701 | +dnl aclocal-1.4 backwards compatibility: |
3702 | +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) |
3703 | + |
3704 | + |
3705 | +# _LT_HEADER_DLFCN |
3706 | +# ---------------- |
3707 | +m4_defun([_LT_HEADER_DLFCN], |
3708 | +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
3709 | +])# _LT_HEADER_DLFCN |
3710 | + |
3711 | + |
3712 | +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
3713 | +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
3714 | +# ---------------------------------------------------------------- |
3715 | +m4_defun([_LT_TRY_DLOPEN_SELF], |
3716 | +[m4_require([_LT_HEADER_DLFCN])dnl |
3717 | +if test "$cross_compiling" = yes; then : |
3718 | + [$4] |
3719 | +else |
3720 | + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
3721 | + lt_status=$lt_dlunknown |
3722 | + cat > conftest.$ac_ext <<_LT_EOF |
3723 | +[#line __oline__ "configure" |
3724 | +#include "confdefs.h" |
3725 | + |
3726 | +#if HAVE_DLFCN_H |
3727 | +#include <dlfcn.h> |
3728 | +#endif |
3729 | + |
3730 | +#include <stdio.h> |
3731 | + |
3732 | +#ifdef RTLD_GLOBAL |
3733 | +# define LT_DLGLOBAL RTLD_GLOBAL |
3734 | +#else |
3735 | +# ifdef DL_GLOBAL |
3736 | +# define LT_DLGLOBAL DL_GLOBAL |
3737 | +# else |
3738 | +# define LT_DLGLOBAL 0 |
3739 | +# endif |
3740 | +#endif |
3741 | + |
3742 | +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
3743 | + find out it does not work in some platform. */ |
3744 | +#ifndef LT_DLLAZY_OR_NOW |
3745 | +# ifdef RTLD_LAZY |
3746 | +# define LT_DLLAZY_OR_NOW RTLD_LAZY |
3747 | +# else |
3748 | +# ifdef DL_LAZY |
3749 | +# define LT_DLLAZY_OR_NOW DL_LAZY |
3750 | +# else |
3751 | +# ifdef RTLD_NOW |
3752 | +# define LT_DLLAZY_OR_NOW RTLD_NOW |
3753 | +# else |
3754 | +# ifdef DL_NOW |
3755 | +# define LT_DLLAZY_OR_NOW DL_NOW |
3756 | +# else |
3757 | +# define LT_DLLAZY_OR_NOW 0 |
3758 | +# endif |
3759 | +# endif |
3760 | +# endif |
3761 | +# endif |
3762 | +#endif |
3763 | + |
3764 | +void fnord() { int i=42;} |
3765 | +int main () |
3766 | +{ |
3767 | + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
3768 | + int status = $lt_dlunknown; |
3769 | + |
3770 | + if (self) |
3771 | + { |
3772 | + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
3773 | + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
3774 | + /* dlclose (self); */ |
3775 | + } |
3776 | + else |
3777 | + puts (dlerror ()); |
3778 | + |
3779 | + return status; |
3780 | +}] |
3781 | +_LT_EOF |
3782 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
3783 | + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
3784 | + lt_status=$? |
3785 | + case x$lt_status in |
3786 | + x$lt_dlno_uscore) $1 ;; |
3787 | + x$lt_dlneed_uscore) $2 ;; |
3788 | + x$lt_dlunknown|x*) $3 ;; |
3789 | + esac |
3790 | + else : |
3791 | + # compilation failed |
3792 | + $3 |
3793 | + fi |
3794 | +fi |
3795 | +rm -fr conftest* |
3796 | +])# _LT_TRY_DLOPEN_SELF |
3797 | + |
3798 | + |
3799 | +# LT_SYS_DLOPEN_SELF |
3800 | +# ------------------ |
3801 | +AC_DEFUN([LT_SYS_DLOPEN_SELF], |
3802 | +[m4_require([_LT_HEADER_DLFCN])dnl |
3803 | +if test "x$enable_dlopen" != xyes; then |
3804 | + enable_dlopen=unknown |
3805 | + enable_dlopen_self=unknown |
3806 | + enable_dlopen_self_static=unknown |
3807 | +else |
3808 | + lt_cv_dlopen=no |
3809 | + lt_cv_dlopen_libs= |
3810 | + |
3811 | + case $host_os in |
3812 | + beos*) |
3813 | + lt_cv_dlopen="load_add_on" |
3814 | + lt_cv_dlopen_libs= |
3815 | + lt_cv_dlopen_self=yes |
3816 | + ;; |
3817 | + |
3818 | + mingw* | pw32* | cegcc*) |
3819 | + lt_cv_dlopen="LoadLibrary" |
3820 | + lt_cv_dlopen_libs= |
3821 | + ;; |
3822 | + |
3823 | + cygwin*) |
3824 | + lt_cv_dlopen="dlopen" |
3825 | + lt_cv_dlopen_libs= |
3826 | + ;; |
3827 | + |
3828 | + darwin*) |
3829 | + # if libdl is installed we need to link against it |
3830 | + AC_CHECK_LIB([dl], [dlopen], |
3831 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
3832 | + lt_cv_dlopen="dyld" |
3833 | + lt_cv_dlopen_libs= |
3834 | + lt_cv_dlopen_self=yes |
3835 | + ]) |
3836 | + ;; |
3837 | + |
3838 | + *) |
3839 | + AC_CHECK_FUNC([shl_load], |
3840 | + [lt_cv_dlopen="shl_load"], |
3841 | + [AC_CHECK_LIB([dld], [shl_load], |
3842 | + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
3843 | + [AC_CHECK_FUNC([dlopen], |
3844 | + [lt_cv_dlopen="dlopen"], |
3845 | + [AC_CHECK_LIB([dl], [dlopen], |
3846 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
3847 | + [AC_CHECK_LIB([svld], [dlopen], |
3848 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
3849 | + [AC_CHECK_LIB([dld], [dld_link], |
3850 | + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
3851 | + ]) |
3852 | + ]) |
3853 | + ]) |
3854 | + ]) |
3855 | + ]) |
3856 | + ;; |
3857 | + esac |
3858 | + |
3859 | + if test "x$lt_cv_dlopen" != xno; then |
3860 | + enable_dlopen=yes |
3861 | + else |
3862 | + enable_dlopen=no |
3863 | + fi |
3864 | + |
3865 | + case $lt_cv_dlopen in |
3866 | + dlopen) |
3867 | + save_CPPFLAGS="$CPPFLAGS" |
3868 | + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
3869 | + |
3870 | + save_LDFLAGS="$LDFLAGS" |
3871 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
3872 | + |
3873 | + save_LIBS="$LIBS" |
3874 | + LIBS="$lt_cv_dlopen_libs $LIBS" |
3875 | + |
3876 | + AC_CACHE_CHECK([whether a program can dlopen itself], |
3877 | + lt_cv_dlopen_self, [dnl |
3878 | + _LT_TRY_DLOPEN_SELF( |
3879 | + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
3880 | + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
3881 | + ]) |
3882 | + |
3883 | + if test "x$lt_cv_dlopen_self" = xyes; then |
3884 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
3885 | + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
3886 | + lt_cv_dlopen_self_static, [dnl |
3887 | + _LT_TRY_DLOPEN_SELF( |
3888 | + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
3889 | + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
3890 | + ]) |
3891 | + fi |
3892 | + |
3893 | + CPPFLAGS="$save_CPPFLAGS" |
3894 | + LDFLAGS="$save_LDFLAGS" |
3895 | + LIBS="$save_LIBS" |
3896 | + ;; |
3897 | + esac |
3898 | + |
3899 | + case $lt_cv_dlopen_self in |
3900 | + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
3901 | + *) enable_dlopen_self=unknown ;; |
3902 | + esac |
3903 | + |
3904 | + case $lt_cv_dlopen_self_static in |
3905 | + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
3906 | + *) enable_dlopen_self_static=unknown ;; |
3907 | + esac |
3908 | +fi |
3909 | +_LT_DECL([dlopen_support], [enable_dlopen], [0], |
3910 | + [Whether dlopen is supported]) |
3911 | +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
3912 | + [Whether dlopen of programs is supported]) |
3913 | +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
3914 | + [Whether dlopen of statically linked programs is supported]) |
3915 | +])# LT_SYS_DLOPEN_SELF |
3916 | + |
3917 | +# Old name: |
3918 | +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) |
3919 | +dnl aclocal-1.4 backwards compatibility: |
3920 | +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) |
3921 | + |
3922 | + |
3923 | +# _LT_COMPILER_C_O([TAGNAME]) |
3924 | +# --------------------------- |
3925 | +# Check to see if options -c and -o are simultaneously supported by compiler. |
3926 | +# This macro does not hard code the compiler like AC_PROG_CC_C_O. |
3927 | +m4_defun([_LT_COMPILER_C_O], |
3928 | +[m4_require([_LT_DECL_SED])dnl |
3929 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3930 | +m4_require([_LT_TAG_COMPILER])dnl |
3931 | +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
3932 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
3933 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
3934 | + $RM -r conftest 2>/dev/null |
3935 | + mkdir conftest |
3936 | + cd conftest |
3937 | + mkdir out |
3938 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
3939 | + |
3940 | + lt_compiler_flag="-o out/conftest2.$ac_objext" |
3941 | + # Insert the option either (1) after the last *FLAGS variable, or |
3942 | + # (2) before a word containing "conftest.", or (3) at the end. |
3943 | + # Note that $ac_compile itself does not contain backslashes and begins |
3944 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
3945 | + lt_compile=`echo "$ac_compile" | $SED \ |
3946 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
3947 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
3948 | + -e 's:$: $lt_compiler_flag:'` |
3949 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
3950 | + (eval "$lt_compile" 2>out/conftest.err) |
3951 | + ac_status=$? |
3952 | + cat out/conftest.err >&AS_MESSAGE_LOG_FD |
3953 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
3954 | + if (exit $ac_status) && test -s out/conftest2.$ac_objext |
3955 | + then |
3956 | + # The compiler can only warn and ignore the option if not recognized |
3957 | + # So say no if there are warnings |
3958 | + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
3959 | + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
3960 | + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
3961 | + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
3962 | + fi |
3963 | + fi |
3964 | + chmod u+w . 2>&AS_MESSAGE_LOG_FD |
3965 | + $RM conftest* |
3966 | + # SGI C++ compiler will create directory out/ii_files/ for |
3967 | + # template instantiation |
3968 | + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
3969 | + $RM out/* && rmdir out |
3970 | + cd .. |
3971 | + $RM -r conftest |
3972 | + $RM conftest* |
3973 | +]) |
3974 | +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
3975 | + [Does compiler simultaneously support -c and -o options?]) |
3976 | +])# _LT_COMPILER_C_O |
3977 | + |
3978 | + |
3979 | +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) |
3980 | +# ---------------------------------- |
3981 | +# Check to see if we can do hard links to lock some files if needed |
3982 | +m4_defun([_LT_COMPILER_FILE_LOCKS], |
3983 | +[m4_require([_LT_ENABLE_LOCK])dnl |
3984 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3985 | +_LT_COMPILER_C_O([$1]) |
3986 | + |
3987 | +hard_links="nottested" |
3988 | +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
3989 | + # do not overwrite the value of need_locks provided by the user |
3990 | + AC_MSG_CHECKING([if we can lock with hard links]) |
3991 | + hard_links=yes |
3992 | + $RM conftest* |
3993 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
3994 | + touch conftest.a |
3995 | + ln conftest.a conftest.b 2>&5 || hard_links=no |
3996 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
3997 | + AC_MSG_RESULT([$hard_links]) |
3998 | + if test "$hard_links" = no; then |
3999 | + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
4000 | + need_locks=warn |
4001 | + fi |
4002 | +else |
4003 | + need_locks=no |
4004 | +fi |
4005 | +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
4006 | +])# _LT_COMPILER_FILE_LOCKS |
4007 | + |
4008 | + |
4009 | +# _LT_CHECK_OBJDIR |
4010 | +# ---------------- |
4011 | +m4_defun([_LT_CHECK_OBJDIR], |
4012 | +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
4013 | +[rm -f .libs 2>/dev/null |
4014 | +mkdir .libs 2>/dev/null |
4015 | +if test -d .libs; then |
4016 | + lt_cv_objdir=.libs |
4017 | +else |
4018 | + # MS-DOS does not allow filenames that begin with a dot. |
4019 | + lt_cv_objdir=_libs |
4020 | +fi |
4021 | +rmdir .libs 2>/dev/null]) |
4022 | +objdir=$lt_cv_objdir |
4023 | +_LT_DECL([], [objdir], [0], |
4024 | + [The name of the directory that contains temporary libtool files])dnl |
4025 | +m4_pattern_allow([LT_OBJDIR])dnl |
4026 | +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", |
4027 | + [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
4028 | +])# _LT_CHECK_OBJDIR |
4029 | + |
4030 | + |
4031 | +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) |
4032 | +# -------------------------------------- |
4033 | +# Check hardcoding attributes. |
4034 | +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], |
4035 | +[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
4036 | +_LT_TAGVAR(hardcode_action, $1)= |
4037 | +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
4038 | + test -n "$_LT_TAGVAR(runpath_var, $1)" || |
4039 | + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
4040 | + |
4041 | + # We can hardcode non-existent directories. |
4042 | + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && |
4043 | + # If the only mechanism to avoid hardcoding is shlibpath_var, we |
4044 | + # have to relink, otherwise we might link with an installed library |
4045 | + # when we should be linking with a yet-to-be-installed one |
4046 | + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
4047 | + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then |
4048 | + # Linking always hardcodes the temporary library directory. |
4049 | + _LT_TAGVAR(hardcode_action, $1)=relink |
4050 | + else |
4051 | + # We can link without hardcoding, and we can hardcode nonexisting dirs. |
4052 | + _LT_TAGVAR(hardcode_action, $1)=immediate |
4053 | + fi |
4054 | +else |
4055 | + # We cannot hardcode anything, or else we can only hardcode existing |
4056 | + # directories. |
4057 | + _LT_TAGVAR(hardcode_action, $1)=unsupported |
4058 | +fi |
4059 | +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
4060 | + |
4061 | +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || |
4062 | + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then |
4063 | + # Fast installation is not supported |
4064 | + enable_fast_install=no |
4065 | +elif test "$shlibpath_overrides_runpath" = yes || |
4066 | + test "$enable_shared" = no; then |
4067 | + # Fast installation is not necessary |
4068 | + enable_fast_install=needless |
4069 | +fi |
4070 | +_LT_TAGDECL([], [hardcode_action], [0], |
4071 | + [How to hardcode a shared library path into an executable]) |
4072 | +])# _LT_LINKER_HARDCODE_LIBPATH |
4073 | + |
4074 | + |
4075 | +# _LT_CMD_STRIPLIB |
4076 | +# ---------------- |
4077 | +m4_defun([_LT_CMD_STRIPLIB], |
4078 | +[m4_require([_LT_DECL_EGREP]) |
4079 | +striplib= |
4080 | +old_striplib= |
4081 | +AC_MSG_CHECKING([whether stripping libraries is possible]) |
4082 | +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
4083 | + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
4084 | + test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
4085 | + AC_MSG_RESULT([yes]) |
4086 | +else |
4087 | +# FIXME - insert some real tests, host_os isn't really good enough |
4088 | + case $host_os in |
4089 | + darwin*) |
4090 | + if test -n "$STRIP" ; then |
4091 | + striplib="$STRIP -x" |
4092 | + old_striplib="$STRIP -S" |
4093 | + AC_MSG_RESULT([yes]) |
4094 | + else |
4095 | + AC_MSG_RESULT([no]) |
4096 | + fi |
4097 | + ;; |
4098 | + *) |
4099 | + AC_MSG_RESULT([no]) |
4100 | + ;; |
4101 | + esac |
4102 | +fi |
4103 | +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
4104 | +_LT_DECL([], [striplib], [1]) |
4105 | +])# _LT_CMD_STRIPLIB |
4106 | + |
4107 | + |
4108 | +# _LT_SYS_DYNAMIC_LINKER([TAG]) |
4109 | +# ----------------------------- |
4110 | +# PORTME Fill in your ld.so characteristics |
4111 | +m4_defun([_LT_SYS_DYNAMIC_LINKER], |
4112 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4113 | +m4_require([_LT_DECL_EGREP])dnl |
4114 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4115 | +m4_require([_LT_DECL_OBJDUMP])dnl |
4116 | +m4_require([_LT_DECL_SED])dnl |
4117 | +AC_MSG_CHECKING([dynamic linker characteristics]) |
4118 | +m4_if([$1], |
4119 | + [], [ |
4120 | +if test "$GCC" = yes; then |
4121 | + case $host_os in |
4122 | + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
4123 | + *) lt_awk_arg="/^libraries:/" ;; |
4124 | + esac |
4125 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
4126 | + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
4127 | + # if the path contains ";" then we assume it to be the separator |
4128 | + # otherwise default to the standard path separator (i.e. ":") - it is |
4129 | + # assumed that no part of a normal pathname contains ";" but that should |
4130 | + # okay in the real world where ";" in dirpaths is itself problematic. |
4131 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
4132 | + else |
4133 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
4134 | + fi |
4135 | + # Ok, now we have the path, separated by spaces, we can step through it |
4136 | + # and add multilib dir if necessary. |
4137 | + lt_tmp_lt_search_path_spec= |
4138 | + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
4139 | + for lt_sys_path in $lt_search_path_spec; do |
4140 | + if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
4141 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
4142 | + else |
4143 | + test -d "$lt_sys_path" && \ |
4144 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
4145 | + fi |
4146 | + done |
4147 | + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
4148 | +BEGIN {RS=" "; FS="/|\n";} { |
4149 | + lt_foo=""; |
4150 | + lt_count=0; |
4151 | + for (lt_i = NF; lt_i > 0; lt_i--) { |
4152 | + if ($lt_i != "" && $lt_i != ".") { |
4153 | + if ($lt_i == "..") { |
4154 | + lt_count++; |
4155 | + } else { |
4156 | + if (lt_count == 0) { |
4157 | + lt_foo="/" $lt_i lt_foo; |
4158 | + } else { |
4159 | + lt_count--; |
4160 | + } |
4161 | + } |
4162 | + } |
4163 | + } |
4164 | + if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
4165 | + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
4166 | +}'` |
4167 | + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
4168 | +else |
4169 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
4170 | +fi]) |
4171 | +library_names_spec= |
4172 | +libname_spec='lib$name' |
4173 | +soname_spec= |
4174 | +shrext_cmds=".so" |
4175 | +postinstall_cmds= |
4176 | +postuninstall_cmds= |
4177 | +finish_cmds= |
4178 | +finish_eval= |
4179 | +shlibpath_var= |
4180 | +shlibpath_overrides_runpath=unknown |
4181 | +version_type=none |
4182 | +dynamic_linker="$host_os ld.so" |
4183 | +sys_lib_dlsearch_path_spec="/lib /usr/lib" |
4184 | +need_lib_prefix=unknown |
4185 | +hardcode_into_libs=no |
4186 | + |
4187 | +# when you set need_version to no, make sure it does not cause -set_version |
4188 | +# flags to be left without arguments |
4189 | +need_version=unknown |
4190 | + |
4191 | +case $host_os in |
4192 | +aix3*) |
4193 | + version_type=linux |
4194 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
4195 | + shlibpath_var=LIBPATH |
4196 | + |
4197 | + # AIX 3 has no versioning support, so we append a major version to the name. |
4198 | + soname_spec='${libname}${release}${shared_ext}$major' |
4199 | + ;; |
4200 | + |
4201 | +aix[[4-9]]*) |
4202 | + version_type=linux |
4203 | + need_lib_prefix=no |
4204 | + need_version=no |
4205 | + hardcode_into_libs=yes |
4206 | + if test "$host_cpu" = ia64; then |
4207 | + # AIX 5 supports IA64 |
4208 | + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
4209 | + shlibpath_var=LD_LIBRARY_PATH |
4210 | + else |
4211 | + # With GCC up to 2.95.x, collect2 would create an import file |
4212 | + # for dependence libraries. The import file would start with |
4213 | + # the line `#! .'. This would cause the generated library to |
4214 | + # depend on `.', always an invalid library. This was fixed in |
4215 | + # development snapshots of GCC prior to 3.0. |
4216 | + case $host_os in |
4217 | + aix4 | aix4.[[01]] | aix4.[[01]].*) |
4218 | + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
4219 | + echo ' yes ' |
4220 | + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
4221 | + : |
4222 | + else |
4223 | + can_build_shared=no |
4224 | + fi |
4225 | + ;; |
4226 | + esac |
4227 | + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
4228 | + # soname into executable. Probably we can add versioning support to |
4229 | + # collect2, so additional links can be useful in future. |
4230 | + if test "$aix_use_runtimelinking" = yes; then |
4231 | + # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
4232 | + # instead of lib<name>.a to let people know that these are not |
4233 | + # typical AIX shared libraries. |
4234 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4235 | + else |
4236 | + # We preserve .a as extension for shared libraries through AIX4.2 |
4237 | + # and later when we are not doing run time linking. |
4238 | + library_names_spec='${libname}${release}.a $libname.a' |
4239 | + soname_spec='${libname}${release}${shared_ext}$major' |
4240 | + fi |
4241 | + shlibpath_var=LIBPATH |
4242 | + fi |
4243 | + ;; |
4244 | + |
4245 | +amigaos*) |
4246 | + case $host_cpu in |
4247 | + powerpc) |
4248 | + # Since July 2007 AmigaOS4 officially supports .so libraries. |
4249 | + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
4250 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4251 | + ;; |
4252 | + m68k) |
4253 | + library_names_spec='$libname.ixlibrary $libname.a' |
4254 | + # Create ${libname}_ixlibrary.a entries in /sys/libs. |
4255 | + 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' |
4256 | + ;; |
4257 | + esac |
4258 | + ;; |
4259 | + |
4260 | +beos*) |
4261 | + library_names_spec='${libname}${shared_ext}' |
4262 | + dynamic_linker="$host_os ld.so" |
4263 | + shlibpath_var=LIBRARY_PATH |
4264 | + ;; |
4265 | + |
4266 | +bsdi[[45]]*) |
4267 | + version_type=linux |
4268 | + need_version=no |
4269 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4270 | + soname_spec='${libname}${release}${shared_ext}$major' |
4271 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
4272 | + shlibpath_var=LD_LIBRARY_PATH |
4273 | + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
4274 | + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
4275 | + # the default ld.so.conf also contains /usr/contrib/lib and |
4276 | + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
4277 | + # libtool to hard-code these into programs |
4278 | + ;; |
4279 | + |
4280 | +cygwin* | mingw* | pw32* | cegcc*) |
4281 | + version_type=windows |
4282 | + shrext_cmds=".dll" |
4283 | + need_version=no |
4284 | + need_lib_prefix=no |
4285 | + |
4286 | + case $GCC,$host_os in |
4287 | + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
4288 | + library_names_spec='$libname.dll.a' |
4289 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
4290 | + postinstall_cmds='base_file=`basename \${file}`~ |
4291 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
4292 | + dldir=$destdir/`dirname \$dlpath`~ |
4293 | + test -d \$dldir || mkdir -p \$dldir~ |
4294 | + $install_prog $dir/$dlname \$dldir/$dlname~ |
4295 | + chmod a+x \$dldir/$dlname~ |
4296 | + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
4297 | + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
4298 | + fi' |
4299 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
4300 | + dlpath=$dir/\$dldll~ |
4301 | + $RM \$dlpath' |
4302 | + shlibpath_overrides_runpath=yes |
4303 | + |
4304 | + case $host_os in |
4305 | + cygwin*) |
4306 | + # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
4307 | + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4308 | + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
4309 | + ;; |
4310 | + mingw* | cegcc*) |
4311 | + # MinGW DLLs use traditional 'lib' prefix |
4312 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4313 | + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
4314 | + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
4315 | + # It is most probably a Windows format PATH printed by |
4316 | + # mingw gcc, but we are running on Cygwin. Gcc prints its search |
4317 | + # path with ; separators, and with drive letters. We can handle the |
4318 | + # drive letters (cygwin fileutils understands them), so leave them, |
4319 | + # especially as we might pass files found there to a mingw objdump, |
4320 | + # which wouldn't understand a cygwinified path. Ahh. |
4321 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
4322 | + else |
4323 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
4324 | + fi |
4325 | + ;; |
4326 | + pw32*) |
4327 | + # pw32 DLLs use 'pw' prefix rather than 'lib' |
4328 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4329 | + ;; |
4330 | + esac |
4331 | + ;; |
4332 | + |
4333 | + *) |
4334 | + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
4335 | + ;; |
4336 | + esac |
4337 | + dynamic_linker='Win32 ld.exe' |
4338 | + # FIXME: first we should search . and the directory the executable is in |
4339 | + shlibpath_var=PATH |
4340 | + ;; |
4341 | + |
4342 | +darwin* | rhapsody*) |
4343 | + dynamic_linker="$host_os dyld" |
4344 | + version_type=darwin |
4345 | + need_lib_prefix=no |
4346 | + need_version=no |
4347 | + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
4348 | + soname_spec='${libname}${release}${major}$shared_ext' |
4349 | + shlibpath_overrides_runpath=yes |
4350 | + shlibpath_var=DYLD_LIBRARY_PATH |
4351 | + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
4352 | +m4_if([$1], [],[ |
4353 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
4354 | + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
4355 | + ;; |
4356 | + |
4357 | +dgux*) |
4358 | + version_type=linux |
4359 | + need_lib_prefix=no |
4360 | + need_version=no |
4361 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
4362 | + soname_spec='${libname}${release}${shared_ext}$major' |
4363 | + shlibpath_var=LD_LIBRARY_PATH |
4364 | + ;; |
4365 | + |
4366 | +freebsd1*) |
4367 | + dynamic_linker=no |
4368 | + ;; |
4369 | + |
4370 | +freebsd* | dragonfly*) |
4371 | + # DragonFly does not have aout. When/if they implement a new |
4372 | + # versioning mechanism, adjust this. |
4373 | + if test -x /usr/bin/objformat; then |
4374 | + objformat=`/usr/bin/objformat` |
4375 | + else |
4376 | + case $host_os in |
4377 | + freebsd[[123]]*) objformat=aout ;; |
4378 | + *) objformat=elf ;; |
4379 | + esac |
4380 | + fi |
4381 | + version_type=freebsd-$objformat |
4382 | + case $version_type in |
4383 | + freebsd-elf*) |
4384 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
4385 | + need_version=no |
4386 | + need_lib_prefix=no |
4387 | + ;; |
4388 | + freebsd-*) |
4389 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
4390 | + need_version=yes |
4391 | + ;; |
4392 | + esac |
4393 | + shlibpath_var=LD_LIBRARY_PATH |
4394 | + case $host_os in |
4395 | + freebsd2*) |
4396 | + shlibpath_overrides_runpath=yes |
4397 | + ;; |
4398 | + freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
4399 | + shlibpath_overrides_runpath=yes |
4400 | + hardcode_into_libs=yes |
4401 | + ;; |
4402 | + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
4403 | + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
4404 | + shlibpath_overrides_runpath=no |
4405 | + hardcode_into_libs=yes |
4406 | + ;; |
4407 | + *) # from 4.6 on, and DragonFly |
4408 | + shlibpath_overrides_runpath=yes |
4409 | + hardcode_into_libs=yes |
4410 | + ;; |
4411 | + esac |
4412 | + ;; |
4413 | + |
4414 | +gnu*) |
4415 | + version_type=linux |
4416 | + need_lib_prefix=no |
4417 | + need_version=no |
4418 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
4419 | + soname_spec='${libname}${release}${shared_ext}$major' |
4420 | + shlibpath_var=LD_LIBRARY_PATH |
4421 | + hardcode_into_libs=yes |
4422 | + ;; |
4423 | + |
4424 | +hpux9* | hpux10* | hpux11*) |
4425 | + # Give a soname corresponding to the major version so that dld.sl refuses to |
4426 | + # link against other versions. |
4427 | + version_type=sunos |
4428 | + need_lib_prefix=no |
4429 | + need_version=no |
4430 | + case $host_cpu in |
4431 | + ia64*) |
4432 | + shrext_cmds='.so' |
4433 | + hardcode_into_libs=yes |
4434 | + dynamic_linker="$host_os dld.so" |
4435 | + shlibpath_var=LD_LIBRARY_PATH |
4436 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
4437 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4438 | + soname_spec='${libname}${release}${shared_ext}$major' |
4439 | + if test "X$HPUX_IA64_MODE" = X32; then |
4440 | + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
4441 | + else |
4442 | + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
4443 | + fi |
4444 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
4445 | + ;; |
4446 | + hppa*64*) |
4447 | + shrext_cmds='.sl' |
4448 | + hardcode_into_libs=yes |
4449 | + dynamic_linker="$host_os dld.sl" |
4450 | + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
4451 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
4452 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4453 | + soname_spec='${libname}${release}${shared_ext}$major' |
4454 | + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
4455 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
4456 | + ;; |
4457 | + *) |
4458 | + shrext_cmds='.sl' |
4459 | + dynamic_linker="$host_os dld.sl" |
4460 | + shlibpath_var=SHLIB_PATH |
4461 | + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
4462 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4463 | + soname_spec='${libname}${release}${shared_ext}$major' |
4464 | + ;; |
4465 | + esac |
4466 | + # HP-UX runs *really* slowly unless shared libraries are mode 555. |
4467 | + postinstall_cmds='chmod 555 $lib' |
4468 | + ;; |
4469 | + |
4470 | +interix[[3-9]]*) |
4471 | + version_type=linux |
4472 | + need_lib_prefix=no |
4473 | + need_version=no |
4474 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
4475 | + soname_spec='${libname}${release}${shared_ext}$major' |
4476 | + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
4477 | + shlibpath_var=LD_LIBRARY_PATH |
4478 | + shlibpath_overrides_runpath=no |
4479 | + hardcode_into_libs=yes |
4480 | + ;; |
4481 | + |
4482 | +irix5* | irix6* | nonstopux*) |
4483 | + case $host_os in |
4484 | + nonstopux*) version_type=nonstopux ;; |
4485 | + *) |
4486 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
4487 | + version_type=linux |
4488 | + else |
4489 | + version_type=irix |
4490 | + fi ;; |
4491 | + esac |
4492 | + need_lib_prefix=no |
4493 | + need_version=no |
4494 | + soname_spec='${libname}${release}${shared_ext}$major' |
4495 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
4496 | + case $host_os in |
4497 | + irix5* | nonstopux*) |
4498 | + libsuff= shlibsuff= |
4499 | + ;; |
4500 | + *) |
4501 | + case $LD in # libtool.m4 will add one of these switches to LD |
4502 | + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
4503 | + libsuff= shlibsuff= libmagic=32-bit;; |
4504 | + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
4505 | + libsuff=32 shlibsuff=N32 libmagic=N32;; |
4506 | + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
4507 | + libsuff=64 shlibsuff=64 libmagic=64-bit;; |
4508 | + *) libsuff= shlibsuff= libmagic=never-match;; |
4509 | + esac |
4510 | + ;; |
4511 | + esac |
4512 | + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
4513 | + shlibpath_overrides_runpath=no |
4514 | + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
4515 | + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
4516 | + hardcode_into_libs=yes |
4517 | + ;; |
4518 | + |
4519 | +# No shared lib support for Linux oldld, aout, or coff. |
4520 | +linux*oldld* | linux*aout* | linux*coff*) |
4521 | + dynamic_linker=no |
4522 | + ;; |
4523 | + |
4524 | +# This must be Linux ELF. |
4525 | +linux* | k*bsd*-gnu | kopensolaris*-gnu) |
4526 | + version_type=linux |
4527 | + need_lib_prefix=no |
4528 | + need_version=no |
4529 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4530 | + soname_spec='${libname}${release}${shared_ext}$major' |
4531 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
4532 | + shlibpath_var=LD_LIBRARY_PATH |
4533 | + shlibpath_overrides_runpath=no |
4534 | + # Some binutils ld are patched to set DT_RUNPATH |
4535 | + save_LDFLAGS=$LDFLAGS |
4536 | + save_libdir=$libdir |
4537 | + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
4538 | + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
4539 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
4540 | + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
4541 | + [shlibpath_overrides_runpath=yes])]) |
4542 | + LDFLAGS=$save_LDFLAGS |
4543 | + libdir=$save_libdir |
4544 | + |
4545 | + # This implies no fast_install, which is unacceptable. |
4546 | + # Some rework will be needed to allow for fast_install |
4547 | + # before this can be enabled. |
4548 | + hardcode_into_libs=yes |
4549 | + |
4550 | + # Append ld.so.conf contents to the search path |
4551 | + if test -f /etc/ld.so.conf; then |
4552 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
4553 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
4554 | + fi |
4555 | + |
4556 | + # We used to test for /lib/ld.so.1 and disable shared libraries on |
4557 | + # powerpc, because MkLinux only supported shared libraries with the |
4558 | + # GNU dynamic linker. Since this was broken with cross compilers, |
4559 | + # most powerpc-linux boxes support dynamic linking these days and |
4560 | + # people can always --disable-shared, the test was removed, and we |
4561 | + # assume the GNU/Linux dynamic linker is in use. |
4562 | + dynamic_linker='GNU/Linux ld.so' |
4563 | + ;; |
4564 | + |
4565 | +netbsdelf*-gnu) |
4566 | + version_type=linux |
4567 | + need_lib_prefix=no |
4568 | + need_version=no |
4569 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
4570 | + soname_spec='${libname}${release}${shared_ext}$major' |
4571 | + shlibpath_var=LD_LIBRARY_PATH |
4572 | + shlibpath_overrides_runpath=no |
4573 | + hardcode_into_libs=yes |
4574 | + dynamic_linker='NetBSD ld.elf_so' |
4575 | + ;; |
4576 | + |
4577 | +netbsd*) |
4578 | + version_type=sunos |
4579 | + need_lib_prefix=no |
4580 | + need_version=no |
4581 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
4582 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
4583 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
4584 | + dynamic_linker='NetBSD (a.out) ld.so' |
4585 | + else |
4586 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
4587 | + soname_spec='${libname}${release}${shared_ext}$major' |
4588 | + dynamic_linker='NetBSD ld.elf_so' |
4589 | + fi |
4590 | + shlibpath_var=LD_LIBRARY_PATH |
4591 | + shlibpath_overrides_runpath=yes |
4592 | + hardcode_into_libs=yes |
4593 | + ;; |
4594 | + |
4595 | +newsos6) |
4596 | + version_type=linux |
4597 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4598 | + shlibpath_var=LD_LIBRARY_PATH |
4599 | + shlibpath_overrides_runpath=yes |
4600 | + ;; |
4601 | + |
4602 | +*nto* | *qnx*) |
4603 | + version_type=qnx |
4604 | + need_lib_prefix=no |
4605 | + need_version=no |
4606 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4607 | + soname_spec='${libname}${release}${shared_ext}$major' |
4608 | + shlibpath_var=LD_LIBRARY_PATH |
4609 | + shlibpath_overrides_runpath=no |
4610 | + hardcode_into_libs=yes |
4611 | + dynamic_linker='ldqnx.so' |
4612 | + ;; |
4613 | + |
4614 | +openbsd*) |
4615 | + version_type=sunos |
4616 | + sys_lib_dlsearch_path_spec="/usr/lib" |
4617 | + need_lib_prefix=no |
4618 | + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
4619 | + case $host_os in |
4620 | + openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
4621 | + *) need_version=no ;; |
4622 | + esac |
4623 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
4624 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
4625 | + shlibpath_var=LD_LIBRARY_PATH |
4626 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4627 | + case $host_os in |
4628 | + openbsd2.[[89]] | openbsd2.[[89]].*) |
4629 | + shlibpath_overrides_runpath=no |
4630 | + ;; |
4631 | + *) |
4632 | + shlibpath_overrides_runpath=yes |
4633 | + ;; |
4634 | + esac |
4635 | + else |
4636 | + shlibpath_overrides_runpath=yes |
4637 | + fi |
4638 | + ;; |
4639 | + |
4640 | +os2*) |
4641 | + libname_spec='$name' |
4642 | + shrext_cmds=".dll" |
4643 | + need_lib_prefix=no |
4644 | + library_names_spec='$libname${shared_ext} $libname.a' |
4645 | + dynamic_linker='OS/2 ld.exe' |
4646 | + shlibpath_var=LIBPATH |
4647 | + ;; |
4648 | + |
4649 | +osf3* | osf4* | osf5*) |
4650 | + version_type=osf |
4651 | + need_lib_prefix=no |
4652 | + need_version=no |
4653 | + soname_spec='${libname}${release}${shared_ext}$major' |
4654 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4655 | + shlibpath_var=LD_LIBRARY_PATH |
4656 | + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
4657 | + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
4658 | + ;; |
4659 | + |
4660 | +rdos*) |
4661 | + dynamic_linker=no |
4662 | + ;; |
4663 | + |
4664 | +solaris*) |
4665 | + version_type=linux |
4666 | + need_lib_prefix=no |
4667 | + need_version=no |
4668 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4669 | + soname_spec='${libname}${release}${shared_ext}$major' |
4670 | + shlibpath_var=LD_LIBRARY_PATH |
4671 | + shlibpath_overrides_runpath=yes |
4672 | + hardcode_into_libs=yes |
4673 | + # ldd complains unless libraries are executable |
4674 | + postinstall_cmds='chmod +x $lib' |
4675 | + ;; |
4676 | + |
4677 | +sunos4*) |
4678 | + version_type=sunos |
4679 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
4680 | + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
4681 | + shlibpath_var=LD_LIBRARY_PATH |
4682 | + shlibpath_overrides_runpath=yes |
4683 | + if test "$with_gnu_ld" = yes; then |
4684 | + need_lib_prefix=no |
4685 | + fi |
4686 | + need_version=yes |
4687 | + ;; |
4688 | + |
4689 | +sysv4 | sysv4.3*) |
4690 | + version_type=linux |
4691 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4692 | + soname_spec='${libname}${release}${shared_ext}$major' |
4693 | + shlibpath_var=LD_LIBRARY_PATH |
4694 | + case $host_vendor in |
4695 | + sni) |
4696 | + shlibpath_overrides_runpath=no |
4697 | + need_lib_prefix=no |
4698 | + runpath_var=LD_RUN_PATH |
4699 | + ;; |
4700 | + siemens) |
4701 | + need_lib_prefix=no |
4702 | + ;; |
4703 | + motorola) |
4704 | + need_lib_prefix=no |
4705 | + need_version=no |
4706 | + shlibpath_overrides_runpath=no |
4707 | + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
4708 | + ;; |
4709 | + esac |
4710 | + ;; |
4711 | + |
4712 | +sysv4*MP*) |
4713 | + if test -d /usr/nec ;then |
4714 | + version_type=linux |
4715 | + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
4716 | + soname_spec='$libname${shared_ext}.$major' |
4717 | + shlibpath_var=LD_LIBRARY_PATH |
4718 | + fi |
4719 | + ;; |
4720 | + |
4721 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4722 | + version_type=freebsd-elf |
4723 | + need_lib_prefix=no |
4724 | + need_version=no |
4725 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
4726 | + soname_spec='${libname}${release}${shared_ext}$major' |
4727 | + shlibpath_var=LD_LIBRARY_PATH |
4728 | + shlibpath_overrides_runpath=yes |
4729 | + hardcode_into_libs=yes |
4730 | + if test "$with_gnu_ld" = yes; then |
4731 | + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
4732 | + else |
4733 | + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
4734 | + case $host_os in |
4735 | + sco3.2v5*) |
4736 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
4737 | + ;; |
4738 | + esac |
4739 | + fi |
4740 | + sys_lib_dlsearch_path_spec='/usr/lib' |
4741 | + ;; |
4742 | + |
4743 | +tpf*) |
4744 | + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
4745 | + version_type=linux |
4746 | + need_lib_prefix=no |
4747 | + need_version=no |
4748 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4749 | + shlibpath_var=LD_LIBRARY_PATH |
4750 | + shlibpath_overrides_runpath=no |
4751 | + hardcode_into_libs=yes |
4752 | + ;; |
4753 | + |
4754 | +uts4*) |
4755 | + version_type=linux |
4756 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4757 | + soname_spec='${libname}${release}${shared_ext}$major' |
4758 | + shlibpath_var=LD_LIBRARY_PATH |
4759 | + ;; |
4760 | + |
4761 | +*) |
4762 | + dynamic_linker=no |
4763 | + ;; |
4764 | +esac |
4765 | +AC_MSG_RESULT([$dynamic_linker]) |
4766 | +test "$dynamic_linker" = no && can_build_shared=no |
4767 | + |
4768 | +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
4769 | +if test "$GCC" = yes; then |
4770 | + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
4771 | +fi |
4772 | + |
4773 | +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
4774 | + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
4775 | +fi |
4776 | +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
4777 | + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
4778 | +fi |
4779 | + |
4780 | +_LT_DECL([], [variables_saved_for_relink], [1], |
4781 | + [Variables whose values should be saved in libtool wrapper scripts and |
4782 | + restored at link time]) |
4783 | +_LT_DECL([], [need_lib_prefix], [0], |
4784 | + [Do we need the "lib" prefix for modules?]) |
4785 | +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
4786 | +_LT_DECL([], [version_type], [0], [Library versioning type]) |
4787 | +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
4788 | +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
4789 | +_LT_DECL([], [shlibpath_overrides_runpath], [0], |
4790 | + [Is shlibpath searched before the hard-coded library search path?]) |
4791 | +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
4792 | +_LT_DECL([], [library_names_spec], [1], |
4793 | + [[List of archive names. First name is the real one, the rest are links. |
4794 | + The last name is the one that the linker finds with -lNAME]]) |
4795 | +_LT_DECL([], [soname_spec], [1], |
4796 | + [[The coded name of the library, if different from the real name]]) |
4797 | +_LT_DECL([], [postinstall_cmds], [2], |
4798 | + [Command to use after installation of a shared archive]) |
4799 | +_LT_DECL([], [postuninstall_cmds], [2], |
4800 | + [Command to use after uninstallation of a shared archive]) |
4801 | +_LT_DECL([], [finish_cmds], [2], |
4802 | + [Commands used to finish a libtool library installation in a directory]) |
4803 | +_LT_DECL([], [finish_eval], [1], |
4804 | + [[As "finish_cmds", except a single script fragment to be evaled but |
4805 | + not shown]]) |
4806 | +_LT_DECL([], [hardcode_into_libs], [0], |
4807 | + [Whether we should hardcode library paths into libraries]) |
4808 | +_LT_DECL([], [sys_lib_search_path_spec], [2], |
4809 | + [Compile-time system search path for libraries]) |
4810 | +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], |
4811 | + [Run-time system search path for libraries]) |
4812 | +])# _LT_SYS_DYNAMIC_LINKER |
4813 | + |
4814 | + |
4815 | +# _LT_PATH_TOOL_PREFIX(TOOL) |
4816 | +# -------------------------- |
4817 | +# find a file program which can recognize shared library |
4818 | +AC_DEFUN([_LT_PATH_TOOL_PREFIX], |
4819 | +[m4_require([_LT_DECL_EGREP])dnl |
4820 | +AC_MSG_CHECKING([for $1]) |
4821 | +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
4822 | +[case $MAGIC_CMD in |
4823 | +[[\\/*] | ?:[\\/]*]) |
4824 | + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
4825 | + ;; |
4826 | +*) |
4827 | + lt_save_MAGIC_CMD="$MAGIC_CMD" |
4828 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4829 | +dnl $ac_dummy forces splitting on constant user-supplied paths. |
4830 | +dnl POSIX.2 word splitting is done only on the output of word expansions, |
4831 | +dnl not every word. This closes a longstanding sh security hole. |
4832 | + ac_dummy="m4_if([$2], , $PATH, [$2])" |
4833 | + for ac_dir in $ac_dummy; do |
4834 | + IFS="$lt_save_ifs" |
4835 | + test -z "$ac_dir" && ac_dir=. |
4836 | + if test -f $ac_dir/$1; then |
4837 | + lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
4838 | + if test -n "$file_magic_test_file"; then |
4839 | + case $deplibs_check_method in |
4840 | + "file_magic "*) |
4841 | + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
4842 | + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4843 | + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
4844 | + $EGREP "$file_magic_regex" > /dev/null; then |
4845 | + : |
4846 | + else |
4847 | + cat <<_LT_EOF 1>&2 |
4848 | + |
4849 | +*** Warning: the command libtool uses to detect shared libraries, |
4850 | +*** $file_magic_cmd, produces output that libtool cannot recognize. |
4851 | +*** The result is that libtool may fail to recognize shared libraries |
4852 | +*** as such. This will affect the creation of libtool libraries that |
4853 | +*** depend on shared libraries, but programs linked with such libtool |
4854 | +*** libraries will work regardless of this problem. Nevertheless, you |
4855 | +*** may want to report the problem to your system manager and/or to |
4856 | +*** bug-libtool@gnu.org |
4857 | + |
4858 | +_LT_EOF |
4859 | + fi ;; |
4860 | + esac |
4861 | + fi |
4862 | + break |
4863 | + fi |
4864 | + done |
4865 | + IFS="$lt_save_ifs" |
4866 | + MAGIC_CMD="$lt_save_MAGIC_CMD" |
4867 | + ;; |
4868 | +esac]) |
4869 | +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4870 | +if test -n "$MAGIC_CMD"; then |
4871 | + AC_MSG_RESULT($MAGIC_CMD) |
4872 | +else |
4873 | + AC_MSG_RESULT(no) |
4874 | +fi |
4875 | +_LT_DECL([], [MAGIC_CMD], [0], |
4876 | + [Used to examine libraries when file_magic_cmd begins with "file"])dnl |
4877 | +])# _LT_PATH_TOOL_PREFIX |
4878 | + |
4879 | +# Old name: |
4880 | +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) |
4881 | +dnl aclocal-1.4 backwards compatibility: |
4882 | +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) |
4883 | + |
4884 | + |
4885 | +# _LT_PATH_MAGIC |
4886 | +# -------------- |
4887 | +# find a file program which can recognize a shared library |
4888 | +m4_defun([_LT_PATH_MAGIC], |
4889 | +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
4890 | +if test -z "$lt_cv_path_MAGIC_CMD"; then |
4891 | + if test -n "$ac_tool_prefix"; then |
4892 | + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
4893 | + else |
4894 | + MAGIC_CMD=: |
4895 | + fi |
4896 | +fi |
4897 | +])# _LT_PATH_MAGIC |
4898 | + |
4899 | + |
4900 | +# LT_PATH_LD |
4901 | +# ---------- |
4902 | +# find the pathname to the GNU or non-GNU linker |
4903 | +AC_DEFUN([LT_PATH_LD], |
4904 | +[AC_REQUIRE([AC_PROG_CC])dnl |
4905 | +AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4906 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
4907 | +m4_require([_LT_DECL_SED])dnl |
4908 | +m4_require([_LT_DECL_EGREP])dnl |
4909 | + |
4910 | +AC_ARG_WITH([gnu-ld], |
4911 | + [AS_HELP_STRING([--with-gnu-ld], |
4912 | + [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
4913 | + [test "$withval" = no || with_gnu_ld=yes], |
4914 | + [with_gnu_ld=no])dnl |
4915 | + |
4916 | +ac_prog=ld |
4917 | +if test "$GCC" = yes; then |
4918 | + # Check if gcc -print-prog-name=ld gives a path. |
4919 | + AC_MSG_CHECKING([for ld used by $CC]) |
4920 | + case $host in |
4921 | + *-*-mingw*) |
4922 | + # gcc leaves a trailing carriage return which upsets mingw |
4923 | + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4924 | + *) |
4925 | + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4926 | + esac |
4927 | + case $ac_prog in |
4928 | + # Accept absolute paths. |
4929 | + [[\\/]]* | ?:[[\\/]]*) |
4930 | + re_direlt='/[[^/]][[^/]]*/\.\./' |
4931 | + # Canonicalize the pathname of ld |
4932 | + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4933 | + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4934 | + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4935 | + done |
4936 | + test -z "$LD" && LD="$ac_prog" |
4937 | + ;; |
4938 | + "") |
4939 | + # If it fails, then pretend we aren't using GCC. |
4940 | + ac_prog=ld |
4941 | + ;; |
4942 | + *) |
4943 | + # If it is relative, then search for the first ld in PATH. |
4944 | + with_gnu_ld=unknown |
4945 | + ;; |
4946 | + esac |
4947 | +elif test "$with_gnu_ld" = yes; then |
4948 | + AC_MSG_CHECKING([for GNU ld]) |
4949 | +else |
4950 | + AC_MSG_CHECKING([for non-GNU ld]) |
4951 | +fi |
4952 | +AC_CACHE_VAL(lt_cv_path_LD, |
4953 | +[if test -z "$LD"; then |
4954 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4955 | + for ac_dir in $PATH; do |
4956 | + IFS="$lt_save_ifs" |
4957 | + test -z "$ac_dir" && ac_dir=. |
4958 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4959 | + lt_cv_path_LD="$ac_dir/$ac_prog" |
4960 | + # Check to see if the program is GNU ld. I'd rather use --version, |
4961 | + # but apparently some variants of GNU ld only accept -v. |
4962 | + # Break only if it was the GNU/non-GNU ld that we prefer. |
4963 | + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4964 | + *GNU* | *'with BFD'*) |
4965 | + test "$with_gnu_ld" != no && break |
4966 | + ;; |
4967 | + *) |
4968 | + test "$with_gnu_ld" != yes && break |
4969 | + ;; |
4970 | + esac |
4971 | + fi |
4972 | + done |
4973 | + IFS="$lt_save_ifs" |
4974 | +else |
4975 | + lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4976 | +fi]) |
4977 | +LD="$lt_cv_path_LD" |
4978 | +if test -n "$LD"; then |
4979 | + AC_MSG_RESULT($LD) |
4980 | +else |
4981 | + AC_MSG_RESULT(no) |
4982 | +fi |
4983 | +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
4984 | +_LT_PATH_LD_GNU |
4985 | +AC_SUBST([LD]) |
4986 | + |
4987 | +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
4988 | +])# LT_PATH_LD |
4989 | + |
4990 | +# Old names: |
4991 | +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) |
4992 | +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) |
4993 | +dnl aclocal-1.4 backwards compatibility: |
4994 | +dnl AC_DEFUN([AM_PROG_LD], []) |
4995 | +dnl AC_DEFUN([AC_PROG_LD], []) |
4996 | + |
4997 | + |
4998 | +# _LT_PATH_LD_GNU |
4999 | +#- -------------- |
5000 | +m4_defun([_LT_PATH_LD_GNU], |
The diff has been truncated for viewing.