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