diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-02-10 10:37:19 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-16 09:46:28 +0000 |
commit | 6957ff06a0ab978f73221766541c9541b9f7d1dd (patch) | |
tree | 08194d403a20d2b0ae4d6a23f59e088b97eac65c /meta/recipes-devtools/binutils/binutils/0013-Use-libtool-2.4.patch | |
parent | 1239b8e3e28516dd97df4f51d6c2f6d71eda1d46 (diff) | |
download | poky-6957ff06a0ab978f73221766541c9541b9f7d1dd.tar.gz |
binutils: Upgrade to 2.38 release
Release Notes are here [1]
[1] https://lists.gnu.org/archive/html/info-gnu/2022-02/msg00009.html
(From OE-Core rev: 77a1038828e638518dceda969da0817aa13eb5d3)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0013-Use-libtool-2.4.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0013-Use-libtool-2.4.patch | 23212 |
1 files changed, 0 insertions, 23212 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0013-Use-libtool-2.4.patch b/meta/recipes-devtools/binutils/binutils/0013-Use-libtool-2.4.patch deleted file mode 100644 index 8f87cfdb77..0000000000 --- a/meta/recipes-devtools/binutils/binutils/0013-Use-libtool-2.4.patch +++ /dev/null | |||
@@ -1,23212 +0,0 @@ | |||
1 | From fd34d57c9e2a0bff1283a6707062ed4a42476b10 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 14 Feb 2016 17:04:07 +0000 | ||
4 | Subject: [PATCH] Use libtool 2.4 | ||
5 | |||
6 | get libtool sysroot support | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | bfd/configure | 1340 +++++++++++++++----- | ||
13 | bfd/configure.ac | 2 +- | ||
14 | binutils/configure | 1338 +++++++++++++++----- | ||
15 | gas/configure | 1338 +++++++++++++++----- | ||
16 | gprof/configure | 1338 +++++++++++++++----- | ||
17 | ld/configure | 1713 +++++++++++++++++++------- | ||
18 | libctf/configure | 1337 +++++++++++++++----- | ||
19 | libtool.m4 | 1100 +++++++++++------ | ||
20 | ltmain.sh | 2925 +++++++++++++++++++++++++++++--------------- | ||
21 | ltoptions.m4 | 2 +- | ||
22 | ltversion.m4 | 12 +- | ||
23 | lt~obsolete.m4 | 2 +- | ||
24 | opcodes/configure | 1338 +++++++++++++++----- | ||
25 | zlib/configure | 1338 +++++++++++++++----- | ||
26 | 14 files changed, 10995 insertions(+), 4128 deletions(-) | ||
27 | |||
28 | diff --git a/bfd/configure b/bfd/configure | ||
29 | index daa51244369..79d0c4b4623 100755 | ||
30 | --- a/bfd/configure | ||
31 | +++ b/bfd/configure | ||
32 | @@ -705,6 +705,9 @@ OTOOL | ||
33 | LIPO | ||
34 | NMEDIT | ||
35 | DSYMUTIL | ||
36 | +MANIFEST_TOOL | ||
37 | +ac_ct_AR | ||
38 | +DLLTOOL | ||
39 | OBJDUMP | ||
40 | LN_S | ||
41 | NM | ||
42 | @@ -823,6 +826,7 @@ enable_static | ||
43 | with_pic | ||
44 | enable_fast_install | ||
45 | with_gnu_ld | ||
46 | +with_libtool_sysroot | ||
47 | enable_libtool_lock | ||
48 | enable_plugins | ||
49 | enable_largefile | ||
50 | @@ -1507,6 +1511,8 @@ Optional Packages: | ||
51 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
52 | both] | ||
53 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
54 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
55 | + (or the compiler's sysroot if not specified). | ||
56 | --with-mmap try using mmap for BFD input files if available | ||
57 | --with-separate-debug-dir=DIR | ||
58 | Look for global separate debug info in DIR | ||
59 | @@ -4988,8 +4994,8 @@ esac | ||
60 | |||
61 | |||
62 | |||
63 | -macro_version='2.2.7a' | ||
64 | -macro_revision='1.3134' | ||
65 | +macro_version='2.4' | ||
66 | +macro_revision='1.3293' | ||
67 | |||
68 | |||
69 | |||
70 | @@ -5029,7 +5035,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
71 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
72 | $as_echo_n "checking how to print strings... " >&6; } | ||
73 | # Test print first, because it will be a builtin if present. | ||
74 | -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | ||
75 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
76 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
77 | ECHO='print -r --' | ||
78 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
79 | @@ -5715,8 +5721,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; | ||
80 | # Try some XSI features | ||
81 | xsi_shell=no | ||
82 | ( _lt_dummy="a/b/c" | ||
83 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
84 | - = c,a/b,, \ | ||
85 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
86 | + = c,a/b,b/c, \ | ||
87 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
88 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
89 | && xsi_shell=yes | ||
90 | @@ -5765,6 +5771,80 @@ esac | ||
91 | |||
92 | |||
93 | |||
94 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
95 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
96 | +if ${lt_cv_to_host_file_cmd+:} false; then : | ||
97 | + $as_echo_n "(cached) " >&6 | ||
98 | +else | ||
99 | + case $host in | ||
100 | + *-*-mingw* ) | ||
101 | + case $build in | ||
102 | + *-*-mingw* ) # actually msys | ||
103 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
104 | + ;; | ||
105 | + *-*-cygwin* ) | ||
106 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
107 | + ;; | ||
108 | + * ) # otherwise, assume *nix | ||
109 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
110 | + ;; | ||
111 | + esac | ||
112 | + ;; | ||
113 | + *-*-cygwin* ) | ||
114 | + case $build in | ||
115 | + *-*-mingw* ) # actually msys | ||
116 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
117 | + ;; | ||
118 | + *-*-cygwin* ) | ||
119 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
120 | + ;; | ||
121 | + * ) # otherwise, assume *nix | ||
122 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
123 | + ;; | ||
124 | + esac | ||
125 | + ;; | ||
126 | + * ) # unhandled hosts (and "normal" native builds) | ||
127 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
128 | + ;; | ||
129 | +esac | ||
130 | + | ||
131 | +fi | ||
132 | + | ||
133 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
134 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
135 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
136 | + | ||
137 | + | ||
138 | + | ||
139 | + | ||
140 | + | ||
141 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
142 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
143 | +if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
144 | + $as_echo_n "(cached) " >&6 | ||
145 | +else | ||
146 | + #assume ordinary cross tools, or native build. | ||
147 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
148 | +case $host in | ||
149 | + *-*-mingw* ) | ||
150 | + case $build in | ||
151 | + *-*-mingw* ) # actually msys | ||
152 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
153 | + ;; | ||
154 | + esac | ||
155 | + ;; | ||
156 | +esac | ||
157 | + | ||
158 | +fi | ||
159 | + | ||
160 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
161 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
162 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
163 | + | ||
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | ||
168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
169 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
170 | if ${lt_cv_ld_reload_flag+:} false; then : | ||
171 | @@ -5781,6 +5861,11 @@ case $reload_flag in | ||
172 | esac | ||
173 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
174 | case $host_os in | ||
175 | + cygwin* | mingw* | pw32* | cegcc*) | ||
176 | + if test "$GCC" != yes; then | ||
177 | + reload_cmds=false | ||
178 | + fi | ||
179 | + ;; | ||
180 | darwin*) | ||
181 | if test "$GCC" = yes; then | ||
182 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
183 | @@ -5949,7 +6034,8 @@ mingw* | pw32*) | ||
184 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
185 | lt_cv_file_magic_cmd='func_win32_libid' | ||
186 | else | ||
187 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
188 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
189 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
190 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
191 | fi | ||
192 | ;; | ||
193 | @@ -6103,6 +6189,21 @@ esac | ||
194 | fi | ||
195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
196 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
197 | + | ||
198 | +file_magic_glob= | ||
199 | +want_nocaseglob=no | ||
200 | +if test "$build" = "$host"; then | ||
201 | + case $host_os in | ||
202 | + mingw* | pw32*) | ||
203 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
204 | + want_nocaseglob=yes | ||
205 | + else | ||
206 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
207 | + fi | ||
208 | + ;; | ||
209 | + esac | ||
210 | +fi | ||
211 | + | ||
212 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
213 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
214 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
215 | @@ -6118,6 +6219,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
216 | |||
217 | |||
218 | |||
219 | + | ||
220 | + | ||
221 | + | ||
222 | + | ||
223 | + | ||
224 | + | ||
225 | + | ||
226 | + | ||
227 | + | ||
228 | + | ||
229 | +if test -n "$ac_tool_prefix"; then | ||
230 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
231 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
232 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
233 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
234 | +if ${ac_cv_prog_DLLTOOL+:} false; then : | ||
235 | + $as_echo_n "(cached) " >&6 | ||
236 | +else | ||
237 | + if test -n "$DLLTOOL"; then | ||
238 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
239 | +else | ||
240 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
241 | +for as_dir in $PATH | ||
242 | +do | ||
243 | + IFS=$as_save_IFS | ||
244 | + test -z "$as_dir" && as_dir=. | ||
245 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
246 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
247 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
248 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
249 | + break 2 | ||
250 | + fi | ||
251 | +done | ||
252 | + done | ||
253 | +IFS=$as_save_IFS | ||
254 | + | ||
255 | +fi | ||
256 | +fi | ||
257 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
258 | +if test -n "$DLLTOOL"; then | ||
259 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
260 | +$as_echo "$DLLTOOL" >&6; } | ||
261 | +else | ||
262 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
263 | +$as_echo "no" >&6; } | ||
264 | +fi | ||
265 | + | ||
266 | + | ||
267 | +fi | ||
268 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
269 | + ac_ct_DLLTOOL=$DLLTOOL | ||
270 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
271 | +set dummy dlltool; ac_word=$2 | ||
272 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
273 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
274 | +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ||
275 | + $as_echo_n "(cached) " >&6 | ||
276 | +else | ||
277 | + if test -n "$ac_ct_DLLTOOL"; then | ||
278 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
279 | +else | ||
280 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
281 | +for as_dir in $PATH | ||
282 | +do | ||
283 | + IFS=$as_save_IFS | ||
284 | + test -z "$as_dir" && as_dir=. | ||
285 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
286 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
287 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
288 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
289 | + break 2 | ||
290 | + fi | ||
291 | +done | ||
292 | + done | ||
293 | +IFS=$as_save_IFS | ||
294 | + | ||
295 | +fi | ||
296 | +fi | ||
297 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
298 | +if test -n "$ac_ct_DLLTOOL"; then | ||
299 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
300 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
301 | +else | ||
302 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
303 | +$as_echo "no" >&6; } | ||
304 | +fi | ||
305 | + | ||
306 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
307 | + DLLTOOL="false" | ||
308 | + else | ||
309 | + case $cross_compiling:$ac_tool_warned in | ||
310 | +yes:) | ||
311 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
312 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
313 | +ac_tool_warned=yes ;; | ||
314 | +esac | ||
315 | + DLLTOOL=$ac_ct_DLLTOOL | ||
316 | + fi | ||
317 | +else | ||
318 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
319 | +fi | ||
320 | + | ||
321 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
322 | + | ||
323 | + | ||
324 | + | ||
325 | + | ||
326 | + | ||
327 | + | ||
328 | + | ||
329 | + | ||
330 | + | ||
331 | + | ||
332 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
333 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
334 | +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
335 | + $as_echo_n "(cached) " >&6 | ||
336 | +else | ||
337 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
338 | + | ||
339 | +case $host_os in | ||
340 | +cygwin* | mingw* | pw32* | cegcc*) | ||
341 | + # two different shell functions defined in ltmain.sh | ||
342 | + # decide which to use based on capabilities of $DLLTOOL | ||
343 | + case `$DLLTOOL --help 2>&1` in | ||
344 | + *--identify-strict*) | ||
345 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
346 | + ;; | ||
347 | + *) | ||
348 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
349 | + ;; | ||
350 | + esac | ||
351 | + ;; | ||
352 | +*) | ||
353 | + # fallback: assume linklib IS sharedlib | ||
354 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
355 | + ;; | ||
356 | +esac | ||
357 | + | ||
358 | +fi | ||
359 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
360 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
361 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
362 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
363 | + | ||
364 | + | ||
365 | + | ||
366 | + | ||
367 | + | ||
368 | + | ||
369 | + | ||
370 | plugin_option= | ||
371 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | ||
372 | for plugin in $plugin_names; do | ||
373 | @@ -6132,8 +6384,10 @@ for plugin in $plugin_names; do | ||
374 | done | ||
375 | |||
376 | if test -n "$ac_tool_prefix"; then | ||
377 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
378 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
379 | + for ac_prog in ar | ||
380 | + do | ||
381 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
382 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
384 | $as_echo_n "checking for $ac_word... " >&6; } | ||
385 | if ${ac_cv_prog_AR+:} false; then : | ||
386 | @@ -6149,7 +6403,7 @@ do | ||
387 | test -z "$as_dir" && as_dir=. | ||
388 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
390 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
391 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
393 | break 2 | ||
394 | fi | ||
395 | @@ -6169,11 +6423,15 @@ $as_echo "no" >&6; } | ||
396 | fi | ||
397 | |||
398 | |||
399 | + test -n "$AR" && break | ||
400 | + done | ||
401 | fi | ||
402 | -if test -z "$ac_cv_prog_AR"; then | ||
403 | +if test -z "$AR"; then | ||
404 | ac_ct_AR=$AR | ||
405 | - # Extract the first word of "ar", so it can be a program name with args. | ||
406 | -set dummy ar; ac_word=$2 | ||
407 | + for ac_prog in ar | ||
408 | +do | ||
409 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
410 | +set dummy $ac_prog; ac_word=$2 | ||
411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
412 | $as_echo_n "checking for $ac_word... " >&6; } | ||
413 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
414 | @@ -6189,7 +6447,7 @@ do | ||
415 | test -z "$as_dir" && as_dir=. | ||
416 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
418 | - ac_cv_prog_ac_ct_AR="ar" | ||
419 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
421 | break 2 | ||
422 | fi | ||
423 | @@ -6208,6 +6466,10 @@ else | ||
424 | $as_echo "no" >&6; } | ||
425 | fi | ||
426 | |||
427 | + | ||
428 | + test -n "$ac_ct_AR" && break | ||
429 | +done | ||
430 | + | ||
431 | if test "x$ac_ct_AR" = x; then | ||
432 | AR="false" | ||
433 | else | ||
434 | @@ -6219,25 +6481,20 @@ ac_tool_warned=yes ;; | ||
435 | esac | ||
436 | AR=$ac_ct_AR | ||
437 | fi | ||
438 | -else | ||
439 | - AR="$ac_cv_prog_AR" | ||
440 | fi | ||
441 | |||
442 | -test -z "$AR" && AR=ar | ||
443 | -if test -n "$plugin_option"; then | ||
444 | - if $AR --help 2>&1 | grep -q "\--plugin"; then | ||
445 | - touch conftest.c | ||
446 | - $AR $plugin_option rc conftest.a conftest.c | ||
447 | - if test "$?" != 0; then | ||
448 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
449 | + touch conftest.c | ||
450 | + $AR $plugin_option rc conftest.a conftest.c | ||
451 | + if test "$?" != 0; then | ||
452 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
453 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | ||
454 | - else | ||
455 | - AR="$AR $plugin_option" | ||
456 | - fi | ||
457 | - rm -f conftest.* | ||
458 | + else | ||
459 | + AR="$AR $plugin_option" | ||
460 | fi | ||
461 | -fi | ||
462 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
463 | + rm -f conftest.* | ||
464 | +: ${AR=ar} | ||
465 | +: ${AR_FLAGS=cru} | ||
466 | + | ||
467 | |||
468 | |||
469 | |||
470 | @@ -6248,6 +6505,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
471 | |||
472 | |||
473 | |||
474 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
475 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
476 | +if ${lt_cv_ar_at_file+:} false; then : | ||
477 | + $as_echo_n "(cached) " >&6 | ||
478 | +else | ||
479 | + lt_cv_ar_at_file=no | ||
480 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
481 | +/* end confdefs.h. */ | ||
482 | + | ||
483 | +int | ||
484 | +main () | ||
485 | +{ | ||
486 | + | ||
487 | + ; | ||
488 | + return 0; | ||
489 | +} | ||
490 | +_ACEOF | ||
491 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
492 | + echo conftest.$ac_objext > conftest.lst | ||
493 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
494 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
495 | + (eval $lt_ar_try) 2>&5 | ||
496 | + ac_status=$? | ||
497 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
498 | + test $ac_status = 0; } | ||
499 | + if test "$ac_status" -eq 0; then | ||
500 | + # Ensure the archiver fails upon bogus file names. | ||
501 | + rm -f conftest.$ac_objext libconftest.a | ||
502 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
503 | + (eval $lt_ar_try) 2>&5 | ||
504 | + ac_status=$? | ||
505 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
506 | + test $ac_status = 0; } | ||
507 | + if test "$ac_status" -ne 0; then | ||
508 | + lt_cv_ar_at_file=@ | ||
509 | + fi | ||
510 | + fi | ||
511 | + rm -f conftest.* libconftest.a | ||
512 | + | ||
513 | +fi | ||
514 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
515 | + | ||
516 | +fi | ||
517 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
518 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
519 | + | ||
520 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
521 | + archiver_list_spec= | ||
522 | +else | ||
523 | + archiver_list_spec=$lt_cv_ar_at_file | ||
524 | +fi | ||
525 | + | ||
526 | + | ||
527 | + | ||
528 | + | ||
529 | + | ||
530 | + | ||
531 | |||
532 | if test -n "$ac_tool_prefix"; then | ||
533 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
534 | @@ -6588,8 +6902,8 @@ esac | ||
535 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
536 | |||
537 | # Transform an extracted symbol line into symbol name and symbol address | ||
538 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
539 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
540 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
541 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
542 | |||
543 | # Handle CRLF in mingw tool chain | ||
544 | opt_cr= | ||
545 | @@ -6625,6 +6939,7 @@ for ac_symprfx in "" "_"; do | ||
546 | else | ||
547 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
548 | fi | ||
549 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
550 | |||
551 | # Check to see that the pipe works correctly. | ||
552 | pipe_works=no | ||
553 | @@ -6666,6 +6981,18 @@ _LT_EOF | ||
554 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
555 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
556 | cat <<_LT_EOF > conftest.$ac_ext | ||
557 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
558 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
559 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
560 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
561 | +# define LT_DLSYM_CONST | ||
562 | +#elif defined(__osf__) | ||
563 | +/* This system does not cope well with relocations in const data. */ | ||
564 | +# define LT_DLSYM_CONST | ||
565 | +#else | ||
566 | +# define LT_DLSYM_CONST const | ||
567 | +#endif | ||
568 | + | ||
569 | #ifdef __cplusplus | ||
570 | extern "C" { | ||
571 | #endif | ||
572 | @@ -6677,7 +7004,7 @@ _LT_EOF | ||
573 | cat <<_LT_EOF >> conftest.$ac_ext | ||
574 | |||
575 | /* The mapping between symbol names and symbols. */ | ||
576 | -const struct { | ||
577 | +LT_DLSYM_CONST struct { | ||
578 | const char *name; | ||
579 | void *address; | ||
580 | } | ||
581 | @@ -6703,8 +7030,8 @@ static const void *lt_preloaded_setup() { | ||
582 | _LT_EOF | ||
583 | # Now try linking the two files. | ||
584 | mv conftest.$ac_objext conftstm.$ac_objext | ||
585 | - lt_save_LIBS="$LIBS" | ||
586 | - lt_save_CFLAGS="$CFLAGS" | ||
587 | + lt_globsym_save_LIBS=$LIBS | ||
588 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
589 | LIBS="conftstm.$ac_objext" | ||
590 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
591 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
592 | @@ -6714,8 +7041,8 @@ _LT_EOF | ||
593 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
594 | pipe_works=yes | ||
595 | fi | ||
596 | - LIBS="$lt_save_LIBS" | ||
597 | - CFLAGS="$lt_save_CFLAGS" | ||
598 | + LIBS=$lt_globsym_save_LIBS | ||
599 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
600 | else | ||
601 | echo "cannot find nm_test_func in $nlist" >&5 | ||
602 | fi | ||
603 | @@ -6752,6 +7079,14 @@ else | ||
604 | $as_echo "ok" >&6; } | ||
605 | fi | ||
606 | |||
607 | +# Response file support. | ||
608 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
609 | + nm_file_list_spec='@' | ||
610 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
611 | + nm_file_list_spec='@' | ||
612 | +fi | ||
613 | + | ||
614 | + | ||
615 | |||
616 | |||
617 | |||
618 | @@ -6770,6 +7105,47 @@ fi | ||
619 | |||
620 | |||
621 | |||
622 | + | ||
623 | + | ||
624 | + | ||
625 | + | ||
626 | + | ||
627 | + | ||
628 | + | ||
629 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
630 | +$as_echo_n "checking for sysroot... " >&6; } | ||
631 | + | ||
632 | +# Check whether --with-libtool-sysroot was given. | ||
633 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
634 | + withval=$with_libtool_sysroot; | ||
635 | +else | ||
636 | + with_libtool_sysroot=no | ||
637 | +fi | ||
638 | + | ||
639 | + | ||
640 | +lt_sysroot= | ||
641 | +case ${with_libtool_sysroot} in #( | ||
642 | + yes) | ||
643 | + if test "$GCC" = yes; then | ||
644 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
645 | + fi | ||
646 | + ;; #( | ||
647 | + /*) | ||
648 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
649 | + ;; #( | ||
650 | + no|'') | ||
651 | + ;; #( | ||
652 | + *) | ||
653 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
654 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
655 | + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | ||
656 | + ;; | ||
657 | +esac | ||
658 | + | ||
659 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
660 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
661 | + | ||
662 | + | ||
663 | |||
664 | |||
665 | |||
666 | @@ -6979,6 +7355,123 @@ esac | ||
667 | |||
668 | need_locks="$enable_libtool_lock" | ||
669 | |||
670 | +if test -n "$ac_tool_prefix"; then | ||
671 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
672 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
673 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
674 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
675 | +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | ||
676 | + $as_echo_n "(cached) " >&6 | ||
677 | +else | ||
678 | + if test -n "$MANIFEST_TOOL"; then | ||
679 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
680 | +else | ||
681 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
682 | +for as_dir in $PATH | ||
683 | +do | ||
684 | + IFS=$as_save_IFS | ||
685 | + test -z "$as_dir" && as_dir=. | ||
686 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
687 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
688 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
689 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
690 | + break 2 | ||
691 | + fi | ||
692 | +done | ||
693 | + done | ||
694 | +IFS=$as_save_IFS | ||
695 | + | ||
696 | +fi | ||
697 | +fi | ||
698 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
699 | +if test -n "$MANIFEST_TOOL"; then | ||
700 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
701 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
702 | +else | ||
703 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
704 | +$as_echo "no" >&6; } | ||
705 | +fi | ||
706 | + | ||
707 | + | ||
708 | +fi | ||
709 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
710 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
711 | + # Extract the first word of "mt", so it can be a program name with args. | ||
712 | +set dummy mt; ac_word=$2 | ||
713 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
714 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
715 | +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | ||
716 | + $as_echo_n "(cached) " >&6 | ||
717 | +else | ||
718 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
719 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
720 | +else | ||
721 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
722 | +for as_dir in $PATH | ||
723 | +do | ||
724 | + IFS=$as_save_IFS | ||
725 | + test -z "$as_dir" && as_dir=. | ||
726 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
727 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
728 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
729 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
730 | + break 2 | ||
731 | + fi | ||
732 | +done | ||
733 | + done | ||
734 | +IFS=$as_save_IFS | ||
735 | + | ||
736 | +fi | ||
737 | +fi | ||
738 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
739 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
740 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
741 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
742 | +else | ||
743 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
744 | +$as_echo "no" >&6; } | ||
745 | +fi | ||
746 | + | ||
747 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
748 | + MANIFEST_TOOL=":" | ||
749 | + else | ||
750 | + case $cross_compiling:$ac_tool_warned in | ||
751 | +yes:) | ||
752 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
753 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
754 | +ac_tool_warned=yes ;; | ||
755 | +esac | ||
756 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
757 | + fi | ||
758 | +else | ||
759 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
760 | +fi | ||
761 | + | ||
762 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
763 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
764 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
765 | +if ${lt_cv_path_mainfest_tool+:} false; then : | ||
766 | + $as_echo_n "(cached) " >&6 | ||
767 | +else | ||
768 | + lt_cv_path_mainfest_tool=no | ||
769 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
770 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
771 | + cat conftest.err >&5 | ||
772 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
773 | + lt_cv_path_mainfest_tool=yes | ||
774 | + fi | ||
775 | + rm -f conftest* | ||
776 | +fi | ||
777 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
778 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
779 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
780 | + MANIFEST_TOOL=: | ||
781 | +fi | ||
782 | + | ||
783 | + | ||
784 | + | ||
785 | + | ||
786 | + | ||
787 | |||
788 | case $host_os in | ||
789 | rhapsody* | darwin*) | ||
790 | @@ -7542,6 +8035,8 @@ _LT_EOF | ||
791 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
792 | echo "$AR cru libconftest.a conftest.o" >&5 | ||
793 | $AR cru libconftest.a conftest.o 2>&5 | ||
794 | + echo "$RANLIB libconftest.a" >&5 | ||
795 | + $RANLIB libconftest.a 2>&5 | ||
796 | cat > conftest.c << _LT_EOF | ||
797 | int main() { return 0;} | ||
798 | _LT_EOF | ||
799 | @@ -8093,8 +8589,6 @@ fi | ||
800 | lt_prog_compiler_pic= | ||
801 | lt_prog_compiler_static= | ||
802 | |||
803 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
804 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
805 | |||
806 | if test "$GCC" = yes; then | ||
807 | lt_prog_compiler_wl='-Wl,' | ||
808 | @@ -8260,6 +8754,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
809 | lt_prog_compiler_pic='--shared' | ||
810 | lt_prog_compiler_static='--static' | ||
811 | ;; | ||
812 | + nagfor*) | ||
813 | + # NAG Fortran compiler | ||
814 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
815 | + lt_prog_compiler_pic='-PIC' | ||
816 | + lt_prog_compiler_static='-Bstatic' | ||
817 | + ;; | ||
818 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
819 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
820 | # which looks to be a dead project) | ||
821 | @@ -8322,7 +8822,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
822 | lt_prog_compiler_pic='-KPIC' | ||
823 | lt_prog_compiler_static='-Bstatic' | ||
824 | case $cc_basename in | ||
825 | - f77* | f90* | f95*) | ||
826 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
827 | lt_prog_compiler_wl='-Qoption ld ';; | ||
828 | *) | ||
829 | lt_prog_compiler_wl='-Wl,';; | ||
830 | @@ -8379,13 +8879,17 @@ case $host_os in | ||
831 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
832 | ;; | ||
833 | esac | ||
834 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
835 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
836 | - | ||
837 | - | ||
838 | - | ||
839 | - | ||
840 | |||
841 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
842 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
843 | +if ${lt_cv_prog_compiler_pic+:} false; then : | ||
844 | + $as_echo_n "(cached) " >&6 | ||
845 | +else | ||
846 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
847 | +fi | ||
848 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
849 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
850 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
851 | |||
852 | # | ||
853 | # Check to make sure the PIC flag actually works. | ||
854 | @@ -8446,6 +8950,11 @@ fi | ||
855 | |||
856 | |||
857 | |||
858 | + | ||
859 | + | ||
860 | + | ||
861 | + | ||
862 | + | ||
863 | # | ||
864 | # Check to make sure the static flag actually works. | ||
865 | # | ||
866 | @@ -8796,7 +9305,8 @@ _LT_EOF | ||
867 | allow_undefined_flag=unsupported | ||
868 | always_export_symbols=no | ||
869 | enable_shared_with_static_runtimes=yes | ||
870 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
871 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
872 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
873 | |||
874 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
875 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
876 | @@ -8895,12 +9405,12 @@ _LT_EOF | ||
877 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
878 | hardcode_libdir_flag_spec= | ||
879 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
880 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
881 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
882 | if test "x$supports_anon_versioning" = xyes; then | ||
883 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
884 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
885 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
886 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
887 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
888 | fi | ||
889 | ;; | ||
890 | esac | ||
891 | @@ -8914,8 +9424,8 @@ _LT_EOF | ||
892 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
893 | wlarc= | ||
894 | else | ||
895 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
896 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
897 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
898 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
899 | fi | ||
900 | ;; | ||
901 | |||
902 | @@ -8933,8 +9443,8 @@ _LT_EOF | ||
903 | |||
904 | _LT_EOF | ||
905 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
906 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
907 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
908 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
909 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
910 | else | ||
911 | ld_shlibs=no | ||
912 | fi | ||
913 | @@ -8980,8 +9490,8 @@ _LT_EOF | ||
914 | |||
915 | *) | ||
916 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
917 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
918 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
919 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
920 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
921 | else | ||
922 | ld_shlibs=no | ||
923 | fi | ||
924 | @@ -9111,7 +9621,13 @@ _LT_EOF | ||
925 | allow_undefined_flag='-berok' | ||
926 | # Determine the default libpath from the value encoded in an | ||
927 | # empty executable. | ||
928 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
929 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
930 | + aix_libpath=$lt_cv_aix_libpath | ||
931 | +else | ||
932 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
933 | + $as_echo_n "(cached) " >&6 | ||
934 | +else | ||
935 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
936 | /* end confdefs.h. */ | ||
937 | |||
938 | int | ||
939 | @@ -9124,22 +9640,29 @@ main () | ||
940 | _ACEOF | ||
941 | if ac_fn_c_try_link "$LINENO"; then : | ||
942 | |||
943 | -lt_aix_libpath_sed=' | ||
944 | - /Import File Strings/,/^$/ { | ||
945 | - /^0/ { | ||
946 | - s/^0 *\(.*\)$/\1/ | ||
947 | - p | ||
948 | - } | ||
949 | - }' | ||
950 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
951 | -# Check for a 64-bit object if we didn't find anything. | ||
952 | -if test -z "$aix_libpath"; then | ||
953 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
954 | -fi | ||
955 | + lt_aix_libpath_sed=' | ||
956 | + /Import File Strings/,/^$/ { | ||
957 | + /^0/ { | ||
958 | + s/^0 *\([^ ]*\) *$/\1/ | ||
959 | + p | ||
960 | + } | ||
961 | + }' | ||
962 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
963 | + # Check for a 64-bit object if we didn't find anything. | ||
964 | + if test -z "$lt_cv_aix_libpath_"; then | ||
965 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
966 | + fi | ||
967 | fi | ||
968 | rm -f core conftest.err conftest.$ac_objext \ | ||
969 | conftest$ac_exeext conftest.$ac_ext | ||
970 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
971 | + if test -z "$lt_cv_aix_libpath_"; then | ||
972 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
973 | + fi | ||
974 | + | ||
975 | +fi | ||
976 | + | ||
977 | + aix_libpath=$lt_cv_aix_libpath_ | ||
978 | +fi | ||
979 | |||
980 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
981 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
982 | @@ -9151,7 +9674,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
983 | else | ||
984 | # Determine the default libpath from the value encoded in an | ||
985 | # empty executable. | ||
986 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
987 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
988 | + aix_libpath=$lt_cv_aix_libpath | ||
989 | +else | ||
990 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
991 | + $as_echo_n "(cached) " >&6 | ||
992 | +else | ||
993 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
994 | /* end confdefs.h. */ | ||
995 | |||
996 | int | ||
997 | @@ -9164,22 +9693,29 @@ main () | ||
998 | _ACEOF | ||
999 | if ac_fn_c_try_link "$LINENO"; then : | ||
1000 | |||
1001 | -lt_aix_libpath_sed=' | ||
1002 | - /Import File Strings/,/^$/ { | ||
1003 | - /^0/ { | ||
1004 | - s/^0 *\(.*\)$/\1/ | ||
1005 | - p | ||
1006 | - } | ||
1007 | - }' | ||
1008 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1009 | -# Check for a 64-bit object if we didn't find anything. | ||
1010 | -if test -z "$aix_libpath"; then | ||
1011 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1012 | -fi | ||
1013 | + lt_aix_libpath_sed=' | ||
1014 | + /Import File Strings/,/^$/ { | ||
1015 | + /^0/ { | ||
1016 | + s/^0 *\([^ ]*\) *$/\1/ | ||
1017 | + p | ||
1018 | + } | ||
1019 | + }' | ||
1020 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1021 | + # Check for a 64-bit object if we didn't find anything. | ||
1022 | + if test -z "$lt_cv_aix_libpath_"; then | ||
1023 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1024 | + fi | ||
1025 | fi | ||
1026 | rm -f core conftest.err conftest.$ac_objext \ | ||
1027 | conftest$ac_exeext conftest.$ac_ext | ||
1028 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
1029 | + if test -z "$lt_cv_aix_libpath_"; then | ||
1030 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
1031 | + fi | ||
1032 | + | ||
1033 | +fi | ||
1034 | + | ||
1035 | + aix_libpath=$lt_cv_aix_libpath_ | ||
1036 | +fi | ||
1037 | |||
1038 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
1039 | # Warning - without using the other run time loading flags, | ||
1040 | @@ -9224,20 +9760,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
1041 | # Microsoft Visual C++. | ||
1042 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
1043 | # no search path for DLLs. | ||
1044 | - hardcode_libdir_flag_spec=' ' | ||
1045 | - allow_undefined_flag=unsupported | ||
1046 | - # Tell ltmain to make .lib files, not .a files. | ||
1047 | - libext=lib | ||
1048 | - # Tell ltmain to make .dll files, not .so files. | ||
1049 | - shrext_cmds=".dll" | ||
1050 | - # FIXME: Setting linknames here is a bad hack. | ||
1051 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
1052 | - # The linker will automatically build a .lib file if we build a DLL. | ||
1053 | - old_archive_from_new_cmds='true' | ||
1054 | - # FIXME: Should let the user specify the lib program. | ||
1055 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
1056 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
1057 | - enable_shared_with_static_runtimes=yes | ||
1058 | + case $cc_basename in | ||
1059 | + cl*) | ||
1060 | + # Native MSVC | ||
1061 | + hardcode_libdir_flag_spec=' ' | ||
1062 | + allow_undefined_flag=unsupported | ||
1063 | + always_export_symbols=yes | ||
1064 | + file_list_spec='@' | ||
1065 | + # Tell ltmain to make .lib files, not .a files. | ||
1066 | + libext=lib | ||
1067 | + # Tell ltmain to make .dll files, not .so files. | ||
1068 | + shrext_cmds=".dll" | ||
1069 | + # FIXME: Setting linknames here is a bad hack. | ||
1070 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
1071 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
1072 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
1073 | + else | ||
1074 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
1075 | + fi~ | ||
1076 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
1077 | + linknames=' | ||
1078 | + # The linker will not automatically build a static lib if we build a DLL. | ||
1079 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
1080 | + enable_shared_with_static_runtimes=yes | ||
1081 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
1082 | + # Don't use ranlib | ||
1083 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
1084 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
1085 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
1086 | + case $lt_outputfile in | ||
1087 | + *.exe|*.EXE) ;; | ||
1088 | + *) | ||
1089 | + lt_outputfile="$lt_outputfile.exe" | ||
1090 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
1091 | + ;; | ||
1092 | + esac~ | ||
1093 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
1094 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
1095 | + $RM "$lt_outputfile.manifest"; | ||
1096 | + fi' | ||
1097 | + ;; | ||
1098 | + *) | ||
1099 | + # Assume MSVC wrapper | ||
1100 | + hardcode_libdir_flag_spec=' ' | ||
1101 | + allow_undefined_flag=unsupported | ||
1102 | + # Tell ltmain to make .lib files, not .a files. | ||
1103 | + libext=lib | ||
1104 | + # Tell ltmain to make .dll files, not .so files. | ||
1105 | + shrext_cmds=".dll" | ||
1106 | + # FIXME: Setting linknames here is a bad hack. | ||
1107 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
1108 | + # The linker will automatically build a .lib file if we build a DLL. | ||
1109 | + old_archive_from_new_cmds='true' | ||
1110 | + # FIXME: Should let the user specify the lib program. | ||
1111 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
1112 | + enable_shared_with_static_runtimes=yes | ||
1113 | + ;; | ||
1114 | + esac | ||
1115 | ;; | ||
1116 | |||
1117 | darwin* | rhapsody*) | ||
1118 | @@ -9298,7 +9877,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
1119 | |||
1120 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
1121 | freebsd* | dragonfly*) | ||
1122 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
1123 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
1124 | hardcode_libdir_flag_spec='-R$libdir' | ||
1125 | hardcode_direct=yes | ||
1126 | hardcode_shlibpath_var=no | ||
1127 | @@ -9306,7 +9885,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
1128 | |||
1129 | hpux9*) | ||
1130 | if test "$GCC" = yes; then | ||
1131 | - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
1132 | + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
1133 | else | ||
1134 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
1135 | fi | ||
1136 | @@ -9322,7 +9901,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
1137 | |||
1138 | hpux10*) | ||
1139 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
1140 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
1141 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
1142 | else | ||
1143 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
1144 | fi | ||
1145 | @@ -9346,10 +9925,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
1146 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
1147 | ;; | ||
1148 | ia64*) | ||
1149 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
1150 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
1151 | ;; | ||
1152 | *) | ||
1153 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
1154 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
1155 | ;; | ||
1156 | esac | ||
1157 | else | ||
1158 | @@ -9428,23 +10007,36 @@ fi | ||
1159 | |||
1160 | irix5* | irix6* | nonstopux*) | ||
1161 | if test "$GCC" = yes; then | ||
1162 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
1163 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
1164 | # Try to use the -exported_symbol ld option, if it does not | ||
1165 | # work, assume that -exports_file does not work either and | ||
1166 | # implicitly export all symbols. | ||
1167 | - save_LDFLAGS="$LDFLAGS" | ||
1168 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
1169 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1170 | + # This should be the same for all languages, so no per-tag cache variable. | ||
1171 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
1172 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
1173 | +if ${lt_cv_irix_exported_symbol+:} false; then : | ||
1174 | + $as_echo_n "(cached) " >&6 | ||
1175 | +else | ||
1176 | + save_LDFLAGS="$LDFLAGS" | ||
1177 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
1178 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1179 | /* end confdefs.h. */ | ||
1180 | -int foo(void) {} | ||
1181 | +int foo (void) { return 0; } | ||
1182 | _ACEOF | ||
1183 | if ac_fn_c_try_link "$LINENO"; then : | ||
1184 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
1185 | - | ||
1186 | + lt_cv_irix_exported_symbol=yes | ||
1187 | +else | ||
1188 | + lt_cv_irix_exported_symbol=no | ||
1189 | fi | ||
1190 | rm -f core conftest.err conftest.$ac_objext \ | ||
1191 | conftest$ac_exeext conftest.$ac_ext | ||
1192 | - LDFLAGS="$save_LDFLAGS" | ||
1193 | + LDFLAGS="$save_LDFLAGS" | ||
1194 | +fi | ||
1195 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
1196 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
1197 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
1198 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
1199 | + fi | ||
1200 | else | ||
1201 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
1202 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
1203 | @@ -9529,7 +10121,7 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
1204 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
1205 | if test "$GCC" = yes; then | ||
1206 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
1207 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
1208 | + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
1209 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
1210 | else | ||
1211 | allow_undefined_flag=' -expect_unresolved \*' | ||
1212 | @@ -9548,9 +10140,9 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
1213 | no_undefined_flag=' -z defs' | ||
1214 | if test "$GCC" = yes; then | ||
1215 | wlarc='${wl}' | ||
1216 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
1217 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
1218 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
1219 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
1220 | + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
1221 | else | ||
1222 | case `$CC -V 2>&1` in | ||
1223 | *"Compilers 5.0"*) | ||
1224 | @@ -10126,8 +10718,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
1225 | need_version=no | ||
1226 | need_lib_prefix=no | ||
1227 | |||
1228 | - case $GCC,$host_os in | ||
1229 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
1230 | + case $GCC,$cc_basename in | ||
1231 | + yes,*) | ||
1232 | + # gcc | ||
1233 | library_names_spec='$libname.dll.a' | ||
1234 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
1235 | postinstall_cmds='base_file=`basename \${file}`~ | ||
1236 | @@ -10160,13 +10753,71 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
1237 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
1238 | ;; | ||
1239 | esac | ||
1240 | + dynamic_linker='Win32 ld.exe' | ||
1241 | + ;; | ||
1242 | + | ||
1243 | + *,cl*) | ||
1244 | + # Native MSVC | ||
1245 | + libname_spec='$name' | ||
1246 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
1247 | + library_names_spec='${libname}.dll.lib' | ||
1248 | + | ||
1249 | + case $build_os in | ||
1250 | + mingw*) | ||
1251 | + sys_lib_search_path_spec= | ||
1252 | + lt_save_ifs=$IFS | ||
1253 | + IFS=';' | ||
1254 | + for lt_path in $LIB | ||
1255 | + do | ||
1256 | + IFS=$lt_save_ifs | ||
1257 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
1258 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
1259 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
1260 | + done | ||
1261 | + IFS=$lt_save_ifs | ||
1262 | + # Convert to MSYS style. | ||
1263 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
1264 | + ;; | ||
1265 | + cygwin*) | ||
1266 | + # Convert to unix form, then to dos form, then back to unix form | ||
1267 | + # but this time dos style (no spaces!) so that the unix form looks | ||
1268 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
1269 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
1270 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
1271 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
1272 | + ;; | ||
1273 | + *) | ||
1274 | + sys_lib_search_path_spec="$LIB" | ||
1275 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
1276 | + # It is most probably a Windows format PATH. | ||
1277 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
1278 | + else | ||
1279 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
1280 | + fi | ||
1281 | + # FIXME: find the short name or the path components, as spaces are | ||
1282 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
1283 | + ;; | ||
1284 | + esac | ||
1285 | + | ||
1286 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
1287 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
1288 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
1289 | + dldir=$destdir/`dirname \$dlpath`~ | ||
1290 | + test -d \$dldir || mkdir -p \$dldir~ | ||
1291 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
1292 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
1293 | + dlpath=$dir/\$dldll~ | ||
1294 | + $RM \$dlpath' | ||
1295 | + shlibpath_overrides_runpath=yes | ||
1296 | + dynamic_linker='Win32 link.exe' | ||
1297 | ;; | ||
1298 | |||
1299 | *) | ||
1300 | + # Assume MSVC wrapper | ||
1301 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
1302 | + dynamic_linker='Win32 ld.exe' | ||
1303 | ;; | ||
1304 | esac | ||
1305 | - dynamic_linker='Win32 ld.exe' | ||
1306 | # FIXME: first we should search . and the directory the executable is in | ||
1307 | shlibpath_var=PATH | ||
1308 | ;; | ||
1309 | @@ -10248,7 +10899,7 @@ haiku*) | ||
1310 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1311 | shlibpath_var=LIBRARY_PATH | ||
1312 | shlibpath_overrides_runpath=yes | ||
1313 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
1314 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
1315 | hardcode_into_libs=yes | ||
1316 | ;; | ||
1317 | |||
1318 | @@ -11044,7 +11695,7 @@ else | ||
1319 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
1320 | lt_status=$lt_dlunknown | ||
1321 | cat > conftest.$ac_ext <<_LT_EOF | ||
1322 | -#line 11047 "configure" | ||
1323 | +#line $LINENO "configure" | ||
1324 | #include "confdefs.h" | ||
1325 | |||
1326 | #if HAVE_DLFCN_H | ||
1327 | @@ -11088,10 +11739,10 @@ else | ||
1328 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
1329 | correspondingly for the symbols needed. */ | ||
1330 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
1331 | -void fnord () __attribute__((visibility("default"))); | ||
1332 | +int fnord () __attribute__((visibility("default"))); | ||
1333 | #endif | ||
1334 | |||
1335 | -void fnord () { int i=42; } | ||
1336 | +int fnord () { return 42; } | ||
1337 | int main () | ||
1338 | { | ||
1339 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
1340 | @@ -11150,7 +11801,7 @@ else | ||
1341 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
1342 | lt_status=$lt_dlunknown | ||
1343 | cat > conftest.$ac_ext <<_LT_EOF | ||
1344 | -#line 11153 "configure" | ||
1345 | +#line $LINENO "configure" | ||
1346 | #include "confdefs.h" | ||
1347 | |||
1348 | #if HAVE_DLFCN_H | ||
1349 | @@ -11194,10 +11845,10 @@ else | ||
1350 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
1351 | correspondingly for the symbols needed. */ | ||
1352 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
1353 | -void fnord () __attribute__((visibility("default"))); | ||
1354 | +int fnord () __attribute__((visibility("default"))); | ||
1355 | #endif | ||
1356 | |||
1357 | -void fnord () { int i=42; } | ||
1358 | +int fnord () { return 42; } | ||
1359 | int main () | ||
1360 | { | ||
1361 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
1362 | @@ -13114,7 +13765,7 @@ SHARED_LDFLAGS= | ||
1363 | if test "$enable_shared" = "yes"; then | ||
1364 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` | ||
1365 | if test -n "$x"; then | ||
1366 | - SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | ||
1367 | + SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a" | ||
1368 | fi | ||
1369 | fi | ||
1370 | |||
1371 | @@ -15762,13 +16413,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
1372 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
1373 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
1374 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
1375 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
1376 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
1377 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
1378 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
1379 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
1380 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
1381 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
1382 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
1383 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
1384 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
1385 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
1386 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
1387 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
1388 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
1389 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
1390 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
1391 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
1392 | @@ -15783,14 +16441,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de | ||
1393 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
1394 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
1395 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
1396 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
1397 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
1398 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
1399 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
1400 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
1401 | -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
1402 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
1403 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
1404 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
1405 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
1406 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
1407 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
1408 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
1409 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
1410 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
1411 | @@ -15823,12 +16484,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q | ||
1412 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
1413 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
1414 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
1415 | -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | ||
1416 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
1417 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
1418 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
1419 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
1420 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
1421 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
1422 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
1423 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
1424 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
1425 | @@ -15883,8 +16544,13 @@ reload_flag \ | ||
1426 | OBJDUMP \ | ||
1427 | deplibs_check_method \ | ||
1428 | file_magic_cmd \ | ||
1429 | +file_magic_glob \ | ||
1430 | +want_nocaseglob \ | ||
1431 | +DLLTOOL \ | ||
1432 | +sharedlib_from_linklib_cmd \ | ||
1433 | AR \ | ||
1434 | AR_FLAGS \ | ||
1435 | +archiver_list_spec \ | ||
1436 | STRIP \ | ||
1437 | RANLIB \ | ||
1438 | CC \ | ||
1439 | @@ -15894,12 +16560,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
1440 | lt_cv_sys_global_symbol_to_cdecl \ | ||
1441 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
1442 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
1443 | +nm_file_list_spec \ | ||
1444 | lt_prog_compiler_no_builtin_flag \ | ||
1445 | -lt_prog_compiler_wl \ | ||
1446 | lt_prog_compiler_pic \ | ||
1447 | +lt_prog_compiler_wl \ | ||
1448 | lt_prog_compiler_static \ | ||
1449 | lt_cv_prog_compiler_c_o \ | ||
1450 | need_locks \ | ||
1451 | +MANIFEST_TOOL \ | ||
1452 | DSYMUTIL \ | ||
1453 | NMEDIT \ | ||
1454 | LIPO \ | ||
1455 | @@ -15915,7 +16583,6 @@ no_undefined_flag \ | ||
1456 | hardcode_libdir_flag_spec \ | ||
1457 | hardcode_libdir_flag_spec_ld \ | ||
1458 | hardcode_libdir_separator \ | ||
1459 | -fix_srcfile_path \ | ||
1460 | exclude_expsyms \ | ||
1461 | include_expsyms \ | ||
1462 | file_list_spec \ | ||
1463 | @@ -15951,6 +16618,7 @@ module_cmds \ | ||
1464 | module_expsym_cmds \ | ||
1465 | export_symbols_cmds \ | ||
1466 | prelink_cmds \ | ||
1467 | +postlink_cmds \ | ||
1468 | postinstall_cmds \ | ||
1469 | postuninstall_cmds \ | ||
1470 | finish_cmds \ | ||
1471 | @@ -16720,7 +17388,8 @@ $as_echo X"$file" | | ||
1472 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
1473 | # | ||
1474 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
1475 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
1476 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
1477 | +# Inc. | ||
1478 | # Written by Gordon Matzigkeit, 1996 | ||
1479 | # | ||
1480 | # This file is part of GNU Libtool. | ||
1481 | @@ -16823,19 +17492,42 @@ SP2NL=$lt_lt_SP2NL | ||
1482 | # turn newlines into spaces. | ||
1483 | NL2SP=$lt_lt_NL2SP | ||
1484 | |||
1485 | +# convert \$build file names to \$host format. | ||
1486 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
1487 | + | ||
1488 | +# convert \$build files to toolchain format. | ||
1489 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
1490 | + | ||
1491 | # An object symbol dumper. | ||
1492 | OBJDUMP=$lt_OBJDUMP | ||
1493 | |||
1494 | # Method to check whether dependent libraries are shared objects. | ||
1495 | deplibs_check_method=$lt_deplibs_check_method | ||
1496 | |||
1497 | -# Command to use when deplibs_check_method == "file_magic". | ||
1498 | +# Command to use when deplibs_check_method = "file_magic". | ||
1499 | file_magic_cmd=$lt_file_magic_cmd | ||
1500 | |||
1501 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
1502 | +file_magic_glob=$lt_file_magic_glob | ||
1503 | + | ||
1504 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
1505 | +want_nocaseglob=$lt_want_nocaseglob | ||
1506 | + | ||
1507 | +# DLL creation program. | ||
1508 | +DLLTOOL=$lt_DLLTOOL | ||
1509 | + | ||
1510 | +# Command to associate shared and link libraries. | ||
1511 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
1512 | + | ||
1513 | # The archiver. | ||
1514 | AR=$lt_AR | ||
1515 | + | ||
1516 | +# Flags to create an archive. | ||
1517 | AR_FLAGS=$lt_AR_FLAGS | ||
1518 | |||
1519 | +# How to feed a file listing to the archiver. | ||
1520 | +archiver_list_spec=$lt_archiver_list_spec | ||
1521 | + | ||
1522 | # A symbol stripping program. | ||
1523 | STRIP=$lt_STRIP | ||
1524 | |||
1525 | @@ -16865,6 +17557,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
1526 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
1527 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
1528 | |||
1529 | +# Specify filename containing input files for \$NM. | ||
1530 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
1531 | + | ||
1532 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
1533 | +lt_sysroot=$lt_sysroot | ||
1534 | + | ||
1535 | # The name of the directory that contains temporary libtool files. | ||
1536 | objdir=$objdir | ||
1537 | |||
1538 | @@ -16874,6 +17572,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
1539 | # Must we lock files when doing compilation? | ||
1540 | need_locks=$lt_need_locks | ||
1541 | |||
1542 | +# Manifest tool. | ||
1543 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
1544 | + | ||
1545 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
1546 | DSYMUTIL=$lt_DSYMUTIL | ||
1547 | |||
1548 | @@ -16988,12 +17689,12 @@ with_gcc=$GCC | ||
1549 | # Compiler flag to turn off builtin functions. | ||
1550 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
1551 | |||
1552 | -# How to pass a linker flag through the compiler. | ||
1553 | -wl=$lt_lt_prog_compiler_wl | ||
1554 | - | ||
1555 | # Additional compiler flags for building library objects. | ||
1556 | pic_flag=$lt_lt_prog_compiler_pic | ||
1557 | |||
1558 | +# How to pass a linker flag through the compiler. | ||
1559 | +wl=$lt_lt_prog_compiler_wl | ||
1560 | + | ||
1561 | # Compiler flag to prevent dynamic linking. | ||
1562 | link_static_flag=$lt_lt_prog_compiler_static | ||
1563 | |||
1564 | @@ -17080,9 +17781,6 @@ inherit_rpath=$inherit_rpath | ||
1565 | # Whether libtool must link a program against all its dependency libraries. | ||
1566 | link_all_deplibs=$link_all_deplibs | ||
1567 | |||
1568 | -# Fix the shell variable \$srcfile for the compiler. | ||
1569 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
1570 | - | ||
1571 | # Set to "yes" if exported symbols are required. | ||
1572 | always_export_symbols=$always_export_symbols | ||
1573 | |||
1574 | @@ -17098,6 +17796,9 @@ include_expsyms=$lt_include_expsyms | ||
1575 | # Commands necessary for linking programs (against libraries) with templates. | ||
1576 | prelink_cmds=$lt_prelink_cmds | ||
1577 | |||
1578 | +# Commands necessary for finishing linking programs. | ||
1579 | +postlink_cmds=$lt_postlink_cmds | ||
1580 | + | ||
1581 | # Specify filename containing input files. | ||
1582 | file_list_spec=$lt_file_list_spec | ||
1583 | |||
1584 | @@ -17130,210 +17831,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
1585 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
1586 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
1587 | # is reportedly fixed, but why not run on old versions too? | ||
1588 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
1589 | - || (rm -f "$cfgfile"; exit 1) | ||
1590 | - | ||
1591 | - case $xsi_shell in | ||
1592 | - yes) | ||
1593 | - cat << \_LT_EOF >> "$cfgfile" | ||
1594 | - | ||
1595 | -# func_dirname file append nondir_replacement | ||
1596 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
1597 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
1598 | -func_dirname () | ||
1599 | -{ | ||
1600 | - case ${1} in | ||
1601 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
1602 | - * ) func_dirname_result="${3}" ;; | ||
1603 | - esac | ||
1604 | -} | ||
1605 | - | ||
1606 | -# func_basename file | ||
1607 | -func_basename () | ||
1608 | -{ | ||
1609 | - func_basename_result="${1##*/}" | ||
1610 | -} | ||
1611 | - | ||
1612 | -# func_dirname_and_basename file append nondir_replacement | ||
1613 | -# perform func_basename and func_dirname in a single function | ||
1614 | -# call: | ||
1615 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
1616 | -# add APPEND to the result, otherwise set result | ||
1617 | -# to NONDIR_REPLACEMENT. | ||
1618 | -# value returned in "$func_dirname_result" | ||
1619 | -# basename: Compute filename of FILE. | ||
1620 | -# value retuned in "$func_basename_result" | ||
1621 | -# Implementation must be kept synchronized with func_dirname | ||
1622 | -# and func_basename. For efficiency, we do not delegate to | ||
1623 | -# those functions but instead duplicate the functionality here. | ||
1624 | -func_dirname_and_basename () | ||
1625 | -{ | ||
1626 | - case ${1} in | ||
1627 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
1628 | - * ) func_dirname_result="${3}" ;; | ||
1629 | - esac | ||
1630 | - func_basename_result="${1##*/}" | ||
1631 | -} | ||
1632 | - | ||
1633 | -# func_stripname prefix suffix name | ||
1634 | -# strip PREFIX and SUFFIX off of NAME. | ||
1635 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
1636 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
1637 | -# dot (in which case that matches only a dot). | ||
1638 | -func_stripname () | ||
1639 | -{ | ||
1640 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
1641 | - # positional parameters, so assign one to ordinary parameter first. | ||
1642 | - func_stripname_result=${3} | ||
1643 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
1644 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
1645 | -} | ||
1646 | - | ||
1647 | -# func_opt_split | ||
1648 | -func_opt_split () | ||
1649 | -{ | ||
1650 | - func_opt_split_opt=${1%%=*} | ||
1651 | - func_opt_split_arg=${1#*=} | ||
1652 | -} | ||
1653 | - | ||
1654 | -# func_lo2o object | ||
1655 | -func_lo2o () | ||
1656 | -{ | ||
1657 | - case ${1} in | ||
1658 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
1659 | - *) func_lo2o_result=${1} ;; | ||
1660 | - esac | ||
1661 | -} | ||
1662 | - | ||
1663 | -# func_xform libobj-or-source | ||
1664 | -func_xform () | ||
1665 | -{ | ||
1666 | - func_xform_result=${1%.*}.lo | ||
1667 | -} | ||
1668 | - | ||
1669 | -# func_arith arithmetic-term... | ||
1670 | -func_arith () | ||
1671 | -{ | ||
1672 | - func_arith_result=$(( $* )) | ||
1673 | -} | ||
1674 | - | ||
1675 | -# func_len string | ||
1676 | -# STRING may not start with a hyphen. | ||
1677 | -func_len () | ||
1678 | -{ | ||
1679 | - func_len_result=${#1} | ||
1680 | -} | ||
1681 | - | ||
1682 | -_LT_EOF | ||
1683 | - ;; | ||
1684 | - *) # Bourne compatible functions. | ||
1685 | - cat << \_LT_EOF >> "$cfgfile" | ||
1686 | - | ||
1687 | -# func_dirname file append nondir_replacement | ||
1688 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
1689 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
1690 | -func_dirname () | ||
1691 | -{ | ||
1692 | - # Extract subdirectory from the argument. | ||
1693 | - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
1694 | - if test "X$func_dirname_result" = "X${1}"; then | ||
1695 | - func_dirname_result="${3}" | ||
1696 | - else | ||
1697 | - func_dirname_result="$func_dirname_result${2}" | ||
1698 | - fi | ||
1699 | -} | ||
1700 | - | ||
1701 | -# func_basename file | ||
1702 | -func_basename () | ||
1703 | -{ | ||
1704 | - func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
1705 | -} | ||
1706 | - | ||
1707 | - | ||
1708 | -# func_stripname prefix suffix name | ||
1709 | -# strip PREFIX and SUFFIX off of NAME. | ||
1710 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
1711 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
1712 | -# dot (in which case that matches only a dot). | ||
1713 | -# func_strip_suffix prefix name | ||
1714 | -func_stripname () | ||
1715 | -{ | ||
1716 | - case ${2} in | ||
1717 | - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
1718 | - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
1719 | - esac | ||
1720 | -} | ||
1721 | - | ||
1722 | -# sed scripts: | ||
1723 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
1724 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
1725 | - | ||
1726 | -# func_opt_split | ||
1727 | -func_opt_split () | ||
1728 | -{ | ||
1729 | - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | ||
1730 | - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | ||
1731 | -} | ||
1732 | - | ||
1733 | -# func_lo2o object | ||
1734 | -func_lo2o () | ||
1735 | -{ | ||
1736 | - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
1737 | -} | ||
1738 | - | ||
1739 | -# func_xform libobj-or-source | ||
1740 | -func_xform () | ||
1741 | -{ | ||
1742 | - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
1743 | -} | ||
1744 | - | ||
1745 | -# func_arith arithmetic-term... | ||
1746 | -func_arith () | ||
1747 | -{ | ||
1748 | - func_arith_result=`expr "$@"` | ||
1749 | -} | ||
1750 | - | ||
1751 | -# func_len string | ||
1752 | -# STRING may not start with a hyphen. | ||
1753 | -func_len () | ||
1754 | -{ | ||
1755 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
1756 | -} | ||
1757 | - | ||
1758 | -_LT_EOF | ||
1759 | -esac | ||
1760 | - | ||
1761 | -case $lt_shell_append in | ||
1762 | - yes) | ||
1763 | - cat << \_LT_EOF >> "$cfgfile" | ||
1764 | - | ||
1765 | -# func_append var value | ||
1766 | -# Append VALUE to the end of shell variable VAR. | ||
1767 | -func_append () | ||
1768 | -{ | ||
1769 | - eval "$1+=\$2" | ||
1770 | -} | ||
1771 | -_LT_EOF | ||
1772 | - ;; | ||
1773 | - *) | ||
1774 | - cat << \_LT_EOF >> "$cfgfile" | ||
1775 | - | ||
1776 | -# func_append var value | ||
1777 | -# Append VALUE to the end of shell variable VAR. | ||
1778 | -func_append () | ||
1779 | -{ | ||
1780 | - eval "$1=\$$1\$2" | ||
1781 | -} | ||
1782 | - | ||
1783 | -_LT_EOF | ||
1784 | - ;; | ||
1785 | - esac | ||
1786 | - | ||
1787 | - | ||
1788 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
1789 | - || (rm -f "$cfgfile"; exit 1) | ||
1790 | - | ||
1791 | - mv -f "$cfgfile" "$ofile" || | ||
1792 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
1793 | + || (rm -f "$cfgfile"; exit 1) | ||
1794 | + | ||
1795 | + if test x"$xsi_shell" = xyes; then | ||
1796 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
1797 | +func_dirname ()\ | ||
1798 | +{\ | ||
1799 | +\ case ${1} in\ | ||
1800 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
1801 | +\ * ) func_dirname_result="${3}" ;;\ | ||
1802 | +\ esac\ | ||
1803 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1804 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1805 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1806 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1807 | + | ||
1808 | + | ||
1809 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
1810 | +func_basename ()\ | ||
1811 | +{\ | ||
1812 | +\ func_basename_result="${1##*/}"\ | ||
1813 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1814 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1815 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1816 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1817 | + | ||
1818 | + | ||
1819 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
1820 | +func_dirname_and_basename ()\ | ||
1821 | +{\ | ||
1822 | +\ case ${1} in\ | ||
1823 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
1824 | +\ * ) func_dirname_result="${3}" ;;\ | ||
1825 | +\ esac\ | ||
1826 | +\ func_basename_result="${1##*/}"\ | ||
1827 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1828 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1829 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1830 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1831 | + | ||
1832 | + | ||
1833 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
1834 | +func_stripname ()\ | ||
1835 | +{\ | ||
1836 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
1837 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
1838 | +\ func_stripname_result=${3}\ | ||
1839 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
1840 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
1841 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1842 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1843 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1844 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1845 | + | ||
1846 | + | ||
1847 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
1848 | +func_split_long_opt ()\ | ||
1849 | +{\ | ||
1850 | +\ func_split_long_opt_name=${1%%=*}\ | ||
1851 | +\ func_split_long_opt_arg=${1#*=}\ | ||
1852 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1853 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1854 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1855 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1856 | + | ||
1857 | + | ||
1858 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
1859 | +func_split_short_opt ()\ | ||
1860 | +{\ | ||
1861 | +\ func_split_short_opt_arg=${1#??}\ | ||
1862 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
1863 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1864 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1865 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1866 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1867 | + | ||
1868 | + | ||
1869 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
1870 | +func_lo2o ()\ | ||
1871 | +{\ | ||
1872 | +\ case ${1} in\ | ||
1873 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
1874 | +\ *) func_lo2o_result=${1} ;;\ | ||
1875 | +\ esac\ | ||
1876 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1877 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1878 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1879 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1880 | + | ||
1881 | + | ||
1882 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
1883 | +func_xform ()\ | ||
1884 | +{\ | ||
1885 | + func_xform_result=${1%.*}.lo\ | ||
1886 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1887 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1888 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1889 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1890 | + | ||
1891 | + | ||
1892 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
1893 | +func_arith ()\ | ||
1894 | +{\ | ||
1895 | + func_arith_result=$(( $* ))\ | ||
1896 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1897 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1898 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1899 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1900 | + | ||
1901 | + | ||
1902 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
1903 | +func_len ()\ | ||
1904 | +{\ | ||
1905 | + func_len_result=${#1}\ | ||
1906 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1907 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1908 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1909 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1910 | + | ||
1911 | +fi | ||
1912 | + | ||
1913 | +if test x"$lt_shell_append" = xyes; then | ||
1914 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
1915 | +func_append ()\ | ||
1916 | +{\ | ||
1917 | + eval "${1}+=\\${2}"\ | ||
1918 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1919 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1920 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1921 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1922 | + | ||
1923 | + | ||
1924 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
1925 | +func_append_quoted ()\ | ||
1926 | +{\ | ||
1927 | +\ func_quote_for_eval "${2}"\ | ||
1928 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
1929 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
1930 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1931 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1932 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
1933 | + | ||
1934 | + | ||
1935 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
1936 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
1937 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1938 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1939 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
1940 | +else | ||
1941 | + # Save a `func_append' function call even when '+=' is not available | ||
1942 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
1943 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
1944 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
1945 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
1946 | +fi | ||
1947 | + | ||
1948 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
1949 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
1950 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
1951 | +fi | ||
1952 | + | ||
1953 | + | ||
1954 | + mv -f "$cfgfile" "$ofile" || | ||
1955 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
1956 | chmod +x "$ofile" | ||
1957 | |||
1958 | diff --git a/bfd/configure.ac b/bfd/configure.ac | ||
1959 | index 07a75ed1626..288374c504c 100644 | ||
1960 | --- a/bfd/configure.ac | ||
1961 | +++ b/bfd/configure.ac | ||
1962 | @@ -304,7 +304,7 @@ changequote(,)dnl | ||
1963 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` | ||
1964 | changequote([,])dnl | ||
1965 | if test -n "$x"; then | ||
1966 | - SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | ||
1967 | + SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a" | ||
1968 | fi | ||
1969 | fi | ||
1970 | |||
1971 | diff --git a/binutils/configure b/binutils/configure | ||
1972 | index bf6461dab1e..8e6f6d30b4d 100755 | ||
1973 | --- a/binutils/configure | ||
1974 | +++ b/binutils/configure | ||
1975 | @@ -696,8 +696,11 @@ OTOOL | ||
1976 | LIPO | ||
1977 | NMEDIT | ||
1978 | DSYMUTIL | ||
1979 | +MANIFEST_TOOL | ||
1980 | RANLIB | ||
1981 | +ac_ct_AR | ||
1982 | AR | ||
1983 | +DLLTOOL | ||
1984 | OBJDUMP | ||
1985 | LN_S | ||
1986 | NM | ||
1987 | @@ -814,6 +817,7 @@ enable_static | ||
1988 | with_pic | ||
1989 | enable_fast_install | ||
1990 | with_gnu_ld | ||
1991 | +with_libtool_sysroot | ||
1992 | enable_libtool_lock | ||
1993 | enable_plugins | ||
1994 | enable_largefile | ||
1995 | @@ -1509,6 +1513,8 @@ Optional Packages: | ||
1996 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1997 | both] | ||
1998 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1999 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
2000 | + (or the compiler's sysroot if not specified). | ||
2001 | --with-debuginfod Enable debuginfo lookups with debuginfod | ||
2002 | (auto/yes/no) | ||
2003 | --with-system-zlib use installed libz | ||
2004 | @@ -4844,8 +4850,8 @@ esac | ||
2005 | |||
2006 | |||
2007 | |||
2008 | -macro_version='2.2.7a' | ||
2009 | -macro_revision='1.3134' | ||
2010 | +macro_version='2.4' | ||
2011 | +macro_revision='1.3293' | ||
2012 | |||
2013 | |||
2014 | |||
2015 | @@ -4885,7 +4891,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
2017 | $as_echo_n "checking how to print strings... " >&6; } | ||
2018 | # Test print first, because it will be a builtin if present. | ||
2019 | -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | ||
2020 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
2021 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
2022 | ECHO='print -r --' | ||
2023 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
2024 | @@ -5571,8 +5577,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; | ||
2025 | # Try some XSI features | ||
2026 | xsi_shell=no | ||
2027 | ( _lt_dummy="a/b/c" | ||
2028 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
2029 | - = c,a/b,, \ | ||
2030 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
2031 | + = c,a/b,b/c, \ | ||
2032 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
2033 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
2034 | && xsi_shell=yes | ||
2035 | @@ -5621,6 +5627,80 @@ esac | ||
2036 | |||
2037 | |||
2038 | |||
2039 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
2040 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
2041 | +if ${lt_cv_to_host_file_cmd+:} false; then : | ||
2042 | + $as_echo_n "(cached) " >&6 | ||
2043 | +else | ||
2044 | + case $host in | ||
2045 | + *-*-mingw* ) | ||
2046 | + case $build in | ||
2047 | + *-*-mingw* ) # actually msys | ||
2048 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
2049 | + ;; | ||
2050 | + *-*-cygwin* ) | ||
2051 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
2052 | + ;; | ||
2053 | + * ) # otherwise, assume *nix | ||
2054 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
2055 | + ;; | ||
2056 | + esac | ||
2057 | + ;; | ||
2058 | + *-*-cygwin* ) | ||
2059 | + case $build in | ||
2060 | + *-*-mingw* ) # actually msys | ||
2061 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
2062 | + ;; | ||
2063 | + *-*-cygwin* ) | ||
2064 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
2065 | + ;; | ||
2066 | + * ) # otherwise, assume *nix | ||
2067 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
2068 | + ;; | ||
2069 | + esac | ||
2070 | + ;; | ||
2071 | + * ) # unhandled hosts (and "normal" native builds) | ||
2072 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
2073 | + ;; | ||
2074 | +esac | ||
2075 | + | ||
2076 | +fi | ||
2077 | + | ||
2078 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
2079 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
2080 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
2081 | + | ||
2082 | + | ||
2083 | + | ||
2084 | + | ||
2085 | + | ||
2086 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
2087 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
2088 | +if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
2089 | + $as_echo_n "(cached) " >&6 | ||
2090 | +else | ||
2091 | + #assume ordinary cross tools, or native build. | ||
2092 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
2093 | +case $host in | ||
2094 | + *-*-mingw* ) | ||
2095 | + case $build in | ||
2096 | + *-*-mingw* ) # actually msys | ||
2097 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
2098 | + ;; | ||
2099 | + esac | ||
2100 | + ;; | ||
2101 | +esac | ||
2102 | + | ||
2103 | +fi | ||
2104 | + | ||
2105 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
2106 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
2107 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
2108 | + | ||
2109 | + | ||
2110 | + | ||
2111 | + | ||
2112 | + | ||
2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
2114 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
2115 | if ${lt_cv_ld_reload_flag+:} false; then : | ||
2116 | @@ -5637,6 +5717,11 @@ case $reload_flag in | ||
2117 | esac | ||
2118 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
2119 | case $host_os in | ||
2120 | + cygwin* | mingw* | pw32* | cegcc*) | ||
2121 | + if test "$GCC" != yes; then | ||
2122 | + reload_cmds=false | ||
2123 | + fi | ||
2124 | + ;; | ||
2125 | darwin*) | ||
2126 | if test "$GCC" = yes; then | ||
2127 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
2128 | @@ -5805,7 +5890,8 @@ mingw* | pw32*) | ||
2129 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
2130 | lt_cv_file_magic_cmd='func_win32_libid' | ||
2131 | else | ||
2132 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
2133 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
2134 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
2135 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
2136 | fi | ||
2137 | ;; | ||
2138 | @@ -5959,6 +6045,21 @@ esac | ||
2139 | fi | ||
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
2141 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
2142 | + | ||
2143 | +file_magic_glob= | ||
2144 | +want_nocaseglob=no | ||
2145 | +if test "$build" = "$host"; then | ||
2146 | + case $host_os in | ||
2147 | + mingw* | pw32*) | ||
2148 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
2149 | + want_nocaseglob=yes | ||
2150 | + else | ||
2151 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
2152 | + fi | ||
2153 | + ;; | ||
2154 | + esac | ||
2155 | +fi | ||
2156 | + | ||
2157 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
2158 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
2159 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
2160 | @@ -5974,6 +6075,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
2161 | |||
2162 | |||
2163 | |||
2164 | + | ||
2165 | + | ||
2166 | + | ||
2167 | + | ||
2168 | + | ||
2169 | + | ||
2170 | + | ||
2171 | + | ||
2172 | + | ||
2173 | + | ||
2174 | +if test -n "$ac_tool_prefix"; then | ||
2175 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
2176 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
2177 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2178 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
2179 | +if ${ac_cv_prog_DLLTOOL+:} false; then : | ||
2180 | + $as_echo_n "(cached) " >&6 | ||
2181 | +else | ||
2182 | + if test -n "$DLLTOOL"; then | ||
2183 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
2184 | +else | ||
2185 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2186 | +for as_dir in $PATH | ||
2187 | +do | ||
2188 | + IFS=$as_save_IFS | ||
2189 | + test -z "$as_dir" && as_dir=. | ||
2190 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
2191 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2192 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
2193 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2194 | + break 2 | ||
2195 | + fi | ||
2196 | +done | ||
2197 | + done | ||
2198 | +IFS=$as_save_IFS | ||
2199 | + | ||
2200 | +fi | ||
2201 | +fi | ||
2202 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
2203 | +if test -n "$DLLTOOL"; then | ||
2204 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
2205 | +$as_echo "$DLLTOOL" >&6; } | ||
2206 | +else | ||
2207 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2208 | +$as_echo "no" >&6; } | ||
2209 | +fi | ||
2210 | + | ||
2211 | + | ||
2212 | +fi | ||
2213 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
2214 | + ac_ct_DLLTOOL=$DLLTOOL | ||
2215 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
2216 | +set dummy dlltool; ac_word=$2 | ||
2217 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2218 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
2219 | +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ||
2220 | + $as_echo_n "(cached) " >&6 | ||
2221 | +else | ||
2222 | + if test -n "$ac_ct_DLLTOOL"; then | ||
2223 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
2224 | +else | ||
2225 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2226 | +for as_dir in $PATH | ||
2227 | +do | ||
2228 | + IFS=$as_save_IFS | ||
2229 | + test -z "$as_dir" && as_dir=. | ||
2230 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
2231 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2232 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
2233 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2234 | + break 2 | ||
2235 | + fi | ||
2236 | +done | ||
2237 | + done | ||
2238 | +IFS=$as_save_IFS | ||
2239 | + | ||
2240 | +fi | ||
2241 | +fi | ||
2242 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
2243 | +if test -n "$ac_ct_DLLTOOL"; then | ||
2244 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
2245 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
2246 | +else | ||
2247 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2248 | +$as_echo "no" >&6; } | ||
2249 | +fi | ||
2250 | + | ||
2251 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
2252 | + DLLTOOL="false" | ||
2253 | + else | ||
2254 | + case $cross_compiling:$ac_tool_warned in | ||
2255 | +yes:) | ||
2256 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2257 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2258 | +ac_tool_warned=yes ;; | ||
2259 | +esac | ||
2260 | + DLLTOOL=$ac_ct_DLLTOOL | ||
2261 | + fi | ||
2262 | +else | ||
2263 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
2264 | +fi | ||
2265 | + | ||
2266 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
2267 | + | ||
2268 | + | ||
2269 | + | ||
2270 | + | ||
2271 | + | ||
2272 | + | ||
2273 | + | ||
2274 | + | ||
2275 | + | ||
2276 | + | ||
2277 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
2278 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
2279 | +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
2280 | + $as_echo_n "(cached) " >&6 | ||
2281 | +else | ||
2282 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
2283 | + | ||
2284 | +case $host_os in | ||
2285 | +cygwin* | mingw* | pw32* | cegcc*) | ||
2286 | + # two different shell functions defined in ltmain.sh | ||
2287 | + # decide which to use based on capabilities of $DLLTOOL | ||
2288 | + case `$DLLTOOL --help 2>&1` in | ||
2289 | + *--identify-strict*) | ||
2290 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
2291 | + ;; | ||
2292 | + *) | ||
2293 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
2294 | + ;; | ||
2295 | + esac | ||
2296 | + ;; | ||
2297 | +*) | ||
2298 | + # fallback: assume linklib IS sharedlib | ||
2299 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
2300 | + ;; | ||
2301 | +esac | ||
2302 | + | ||
2303 | +fi | ||
2304 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
2305 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
2306 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
2307 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
2308 | + | ||
2309 | + | ||
2310 | + | ||
2311 | + | ||
2312 | + | ||
2313 | + | ||
2314 | + | ||
2315 | plugin_option= | ||
2316 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | ||
2317 | for plugin in $plugin_names; do | ||
2318 | @@ -5988,8 +6240,10 @@ for plugin in $plugin_names; do | ||
2319 | done | ||
2320 | |||
2321 | if test -n "$ac_tool_prefix"; then | ||
2322 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
2323 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
2324 | + for ac_prog in ar | ||
2325 | + do | ||
2326 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2327 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2329 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2330 | if ${ac_cv_prog_AR+:} false; then : | ||
2331 | @@ -6005,7 +6259,7 @@ do | ||
2332 | test -z "$as_dir" && as_dir=. | ||
2333 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2335 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
2336 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
2337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2338 | break 2 | ||
2339 | fi | ||
2340 | @@ -6025,11 +6279,15 @@ $as_echo "no" >&6; } | ||
2341 | fi | ||
2342 | |||
2343 | |||
2344 | + test -n "$AR" && break | ||
2345 | + done | ||
2346 | fi | ||
2347 | -if test -z "$ac_cv_prog_AR"; then | ||
2348 | +if test -z "$AR"; then | ||
2349 | ac_ct_AR=$AR | ||
2350 | - # Extract the first word of "ar", so it can be a program name with args. | ||
2351 | -set dummy ar; ac_word=$2 | ||
2352 | + for ac_prog in ar | ||
2353 | +do | ||
2354 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2355 | +set dummy $ac_prog; ac_word=$2 | ||
2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2357 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2358 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
2359 | @@ -6045,7 +6303,7 @@ do | ||
2360 | test -z "$as_dir" && as_dir=. | ||
2361 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2363 | - ac_cv_prog_ac_ct_AR="ar" | ||
2364 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
2365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2366 | break 2 | ||
2367 | fi | ||
2368 | @@ -6064,6 +6322,10 @@ else | ||
2369 | $as_echo "no" >&6; } | ||
2370 | fi | ||
2371 | |||
2372 | + | ||
2373 | + test -n "$ac_ct_AR" && break | ||
2374 | +done | ||
2375 | + | ||
2376 | if test "x$ac_ct_AR" = x; then | ||
2377 | AR="false" | ||
2378 | else | ||
2379 | @@ -6075,29 +6337,81 @@ ac_tool_warned=yes ;; | ||
2380 | esac | ||
2381 | AR=$ac_ct_AR | ||
2382 | fi | ||
2383 | -else | ||
2384 | - AR="$ac_cv_prog_AR" | ||
2385 | fi | ||
2386 | |||
2387 | -test -z "$AR" && AR=ar | ||
2388 | -if test -n "$plugin_option"; then | ||
2389 | - if $AR --help 2>&1 | grep -q "\--plugin"; then | ||
2390 | - touch conftest.c | ||
2391 | - $AR $plugin_option rc conftest.a conftest.c | ||
2392 | - if test "$?" != 0; then | ||
2393 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
2394 | + touch conftest.c | ||
2395 | + $AR $plugin_option rc conftest.a conftest.c | ||
2396 | + if test "$?" != 0; then | ||
2397 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
2398 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | ||
2399 | - else | ||
2400 | - AR="$AR $plugin_option" | ||
2401 | - fi | ||
2402 | - rm -f conftest.* | ||
2403 | + else | ||
2404 | + AR="$AR $plugin_option" | ||
2405 | fi | ||
2406 | -fi | ||
2407 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
2408 | + rm -f conftest.* | ||
2409 | +: ${AR=ar} | ||
2410 | +: ${AR_FLAGS=cru} | ||
2411 | + | ||
2412 | + | ||
2413 | + | ||
2414 | + | ||
2415 | + | ||
2416 | + | ||
2417 | + | ||
2418 | + | ||
2419 | + | ||
2420 | + | ||
2421 | + | ||
2422 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
2423 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
2424 | +if ${lt_cv_ar_at_file+:} false; then : | ||
2425 | + $as_echo_n "(cached) " >&6 | ||
2426 | +else | ||
2427 | + lt_cv_ar_at_file=no | ||
2428 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2429 | +/* end confdefs.h. */ | ||
2430 | + | ||
2431 | +int | ||
2432 | +main () | ||
2433 | +{ | ||
2434 | |||
2435 | + ; | ||
2436 | + return 0; | ||
2437 | +} | ||
2438 | +_ACEOF | ||
2439 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
2440 | + echo conftest.$ac_objext > conftest.lst | ||
2441 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
2442 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
2443 | + (eval $lt_ar_try) 2>&5 | ||
2444 | + ac_status=$? | ||
2445 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2446 | + test $ac_status = 0; } | ||
2447 | + if test "$ac_status" -eq 0; then | ||
2448 | + # Ensure the archiver fails upon bogus file names. | ||
2449 | + rm -f conftest.$ac_objext libconftest.a | ||
2450 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
2451 | + (eval $lt_ar_try) 2>&5 | ||
2452 | + ac_status=$? | ||
2453 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2454 | + test $ac_status = 0; } | ||
2455 | + if test "$ac_status" -ne 0; then | ||
2456 | + lt_cv_ar_at_file=@ | ||
2457 | + fi | ||
2458 | + fi | ||
2459 | + rm -f conftest.* libconftest.a | ||
2460 | |||
2461 | +fi | ||
2462 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2463 | |||
2464 | +fi | ||
2465 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
2466 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
2467 | |||
2468 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
2469 | + archiver_list_spec= | ||
2470 | +else | ||
2471 | + archiver_list_spec=$lt_cv_ar_at_file | ||
2472 | +fi | ||
2473 | |||
2474 | |||
2475 | |||
2476 | @@ -6444,8 +6758,8 @@ esac | ||
2477 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
2478 | |||
2479 | # Transform an extracted symbol line into symbol name and symbol address | ||
2480 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
2481 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
2482 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
2483 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
2484 | |||
2485 | # Handle CRLF in mingw tool chain | ||
2486 | opt_cr= | ||
2487 | @@ -6481,6 +6795,7 @@ for ac_symprfx in "" "_"; do | ||
2488 | else | ||
2489 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
2490 | fi | ||
2491 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
2492 | |||
2493 | # Check to see that the pipe works correctly. | ||
2494 | pipe_works=no | ||
2495 | @@ -6522,6 +6837,18 @@ _LT_EOF | ||
2496 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
2497 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
2498 | cat <<_LT_EOF > conftest.$ac_ext | ||
2499 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
2500 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
2501 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
2502 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
2503 | +# define LT_DLSYM_CONST | ||
2504 | +#elif defined(__osf__) | ||
2505 | +/* This system does not cope well with relocations in const data. */ | ||
2506 | +# define LT_DLSYM_CONST | ||
2507 | +#else | ||
2508 | +# define LT_DLSYM_CONST const | ||
2509 | +#endif | ||
2510 | + | ||
2511 | #ifdef __cplusplus | ||
2512 | extern "C" { | ||
2513 | #endif | ||
2514 | @@ -6533,7 +6860,7 @@ _LT_EOF | ||
2515 | cat <<_LT_EOF >> conftest.$ac_ext | ||
2516 | |||
2517 | /* The mapping between symbol names and symbols. */ | ||
2518 | -const struct { | ||
2519 | +LT_DLSYM_CONST struct { | ||
2520 | const char *name; | ||
2521 | void *address; | ||
2522 | } | ||
2523 | @@ -6559,8 +6886,8 @@ static const void *lt_preloaded_setup() { | ||
2524 | _LT_EOF | ||
2525 | # Now try linking the two files. | ||
2526 | mv conftest.$ac_objext conftstm.$ac_objext | ||
2527 | - lt_save_LIBS="$LIBS" | ||
2528 | - lt_save_CFLAGS="$CFLAGS" | ||
2529 | + lt_globsym_save_LIBS=$LIBS | ||
2530 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
2531 | LIBS="conftstm.$ac_objext" | ||
2532 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
2533 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
2534 | @@ -6570,8 +6897,8 @@ _LT_EOF | ||
2535 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
2536 | pipe_works=yes | ||
2537 | fi | ||
2538 | - LIBS="$lt_save_LIBS" | ||
2539 | - CFLAGS="$lt_save_CFLAGS" | ||
2540 | + LIBS=$lt_globsym_save_LIBS | ||
2541 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
2542 | else | ||
2543 | echo "cannot find nm_test_func in $nlist" >&5 | ||
2544 | fi | ||
2545 | @@ -6608,6 +6935,19 @@ else | ||
2546 | $as_echo "ok" >&6; } | ||
2547 | fi | ||
2548 | |||
2549 | +# Response file support. | ||
2550 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
2551 | + nm_file_list_spec='@' | ||
2552 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
2553 | + nm_file_list_spec='@' | ||
2554 | +fi | ||
2555 | + | ||
2556 | + | ||
2557 | + | ||
2558 | + | ||
2559 | + | ||
2560 | + | ||
2561 | + | ||
2562 | |||
2563 | |||
2564 | |||
2565 | @@ -6624,6 +6964,42 @@ fi | ||
2566 | |||
2567 | |||
2568 | |||
2569 | + | ||
2570 | + | ||
2571 | + | ||
2572 | + | ||
2573 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
2574 | +$as_echo_n "checking for sysroot... " >&6; } | ||
2575 | + | ||
2576 | +# Check whether --with-libtool-sysroot was given. | ||
2577 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
2578 | + withval=$with_libtool_sysroot; | ||
2579 | +else | ||
2580 | + with_libtool_sysroot=no | ||
2581 | +fi | ||
2582 | + | ||
2583 | + | ||
2584 | +lt_sysroot= | ||
2585 | +case ${with_libtool_sysroot} in #( | ||
2586 | + yes) | ||
2587 | + if test "$GCC" = yes; then | ||
2588 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
2589 | + fi | ||
2590 | + ;; #( | ||
2591 | + /*) | ||
2592 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
2593 | + ;; #( | ||
2594 | + no|'') | ||
2595 | + ;; #( | ||
2596 | + *) | ||
2597 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
2598 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
2599 | + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | ||
2600 | + ;; | ||
2601 | +esac | ||
2602 | + | ||
2603 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
2604 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
2605 | |||
2606 | |||
2607 | |||
2608 | @@ -6835,6 +7211,123 @@ esac | ||
2609 | |||
2610 | need_locks="$enable_libtool_lock" | ||
2611 | |||
2612 | +if test -n "$ac_tool_prefix"; then | ||
2613 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
2614 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
2615 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2616 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
2617 | +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | ||
2618 | + $as_echo_n "(cached) " >&6 | ||
2619 | +else | ||
2620 | + if test -n "$MANIFEST_TOOL"; then | ||
2621 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
2622 | +else | ||
2623 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2624 | +for as_dir in $PATH | ||
2625 | +do | ||
2626 | + IFS=$as_save_IFS | ||
2627 | + test -z "$as_dir" && as_dir=. | ||
2628 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
2629 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2630 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
2631 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2632 | + break 2 | ||
2633 | + fi | ||
2634 | +done | ||
2635 | + done | ||
2636 | +IFS=$as_save_IFS | ||
2637 | + | ||
2638 | +fi | ||
2639 | +fi | ||
2640 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
2641 | +if test -n "$MANIFEST_TOOL"; then | ||
2642 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
2643 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
2644 | +else | ||
2645 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2646 | +$as_echo "no" >&6; } | ||
2647 | +fi | ||
2648 | + | ||
2649 | + | ||
2650 | +fi | ||
2651 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
2652 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
2653 | + # Extract the first word of "mt", so it can be a program name with args. | ||
2654 | +set dummy mt; ac_word=$2 | ||
2655 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2656 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
2657 | +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | ||
2658 | + $as_echo_n "(cached) " >&6 | ||
2659 | +else | ||
2660 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
2661 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
2662 | +else | ||
2663 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2664 | +for as_dir in $PATH | ||
2665 | +do | ||
2666 | + IFS=$as_save_IFS | ||
2667 | + test -z "$as_dir" && as_dir=. | ||
2668 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
2669 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2670 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
2671 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2672 | + break 2 | ||
2673 | + fi | ||
2674 | +done | ||
2675 | + done | ||
2676 | +IFS=$as_save_IFS | ||
2677 | + | ||
2678 | +fi | ||
2679 | +fi | ||
2680 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
2681 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
2682 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
2683 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
2684 | +else | ||
2685 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2686 | +$as_echo "no" >&6; } | ||
2687 | +fi | ||
2688 | + | ||
2689 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
2690 | + MANIFEST_TOOL=":" | ||
2691 | + else | ||
2692 | + case $cross_compiling:$ac_tool_warned in | ||
2693 | +yes:) | ||
2694 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2695 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2696 | +ac_tool_warned=yes ;; | ||
2697 | +esac | ||
2698 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
2699 | + fi | ||
2700 | +else | ||
2701 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
2702 | +fi | ||
2703 | + | ||
2704 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
2705 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
2706 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
2707 | +if ${lt_cv_path_mainfest_tool+:} false; then : | ||
2708 | + $as_echo_n "(cached) " >&6 | ||
2709 | +else | ||
2710 | + lt_cv_path_mainfest_tool=no | ||
2711 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
2712 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
2713 | + cat conftest.err >&5 | ||
2714 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
2715 | + lt_cv_path_mainfest_tool=yes | ||
2716 | + fi | ||
2717 | + rm -f conftest* | ||
2718 | +fi | ||
2719 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
2720 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
2721 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
2722 | + MANIFEST_TOOL=: | ||
2723 | +fi | ||
2724 | + | ||
2725 | + | ||
2726 | + | ||
2727 | + | ||
2728 | + | ||
2729 | |||
2730 | case $host_os in | ||
2731 | rhapsody* | darwin*) | ||
2732 | @@ -7398,6 +7891,8 @@ _LT_EOF | ||
2733 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
2734 | echo "$AR cru libconftest.a conftest.o" >&5 | ||
2735 | $AR cru libconftest.a conftest.o 2>&5 | ||
2736 | + echo "$RANLIB libconftest.a" >&5 | ||
2737 | + $RANLIB libconftest.a 2>&5 | ||
2738 | cat > conftest.c << _LT_EOF | ||
2739 | int main() { return 0;} | ||
2740 | _LT_EOF | ||
2741 | @@ -7980,8 +8476,6 @@ fi | ||
2742 | lt_prog_compiler_pic= | ||
2743 | lt_prog_compiler_static= | ||
2744 | |||
2745 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
2746 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
2747 | |||
2748 | if test "$GCC" = yes; then | ||
2749 | lt_prog_compiler_wl='-Wl,' | ||
2750 | @@ -8147,6 +8641,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
2751 | lt_prog_compiler_pic='--shared' | ||
2752 | lt_prog_compiler_static='--static' | ||
2753 | ;; | ||
2754 | + nagfor*) | ||
2755 | + # NAG Fortran compiler | ||
2756 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
2757 | + lt_prog_compiler_pic='-PIC' | ||
2758 | + lt_prog_compiler_static='-Bstatic' | ||
2759 | + ;; | ||
2760 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
2761 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
2762 | # which looks to be a dead project) | ||
2763 | @@ -8209,7 +8709,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
2764 | lt_prog_compiler_pic='-KPIC' | ||
2765 | lt_prog_compiler_static='-Bstatic' | ||
2766 | case $cc_basename in | ||
2767 | - f77* | f90* | f95*) | ||
2768 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
2769 | lt_prog_compiler_wl='-Qoption ld ';; | ||
2770 | *) | ||
2771 | lt_prog_compiler_wl='-Wl,';; | ||
2772 | @@ -8266,13 +8766,17 @@ case $host_os in | ||
2773 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
2774 | ;; | ||
2775 | esac | ||
2776 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
2777 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
2778 | - | ||
2779 | - | ||
2780 | - | ||
2781 | - | ||
2782 | |||
2783 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
2784 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
2785 | +if ${lt_cv_prog_compiler_pic+:} false; then : | ||
2786 | + $as_echo_n "(cached) " >&6 | ||
2787 | +else | ||
2788 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
2789 | +fi | ||
2790 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
2791 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
2792 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
2793 | |||
2794 | # | ||
2795 | # Check to make sure the PIC flag actually works. | ||
2796 | @@ -8333,6 +8837,11 @@ fi | ||
2797 | |||
2798 | |||
2799 | |||
2800 | + | ||
2801 | + | ||
2802 | + | ||
2803 | + | ||
2804 | + | ||
2805 | # | ||
2806 | # Check to make sure the static flag actually works. | ||
2807 | # | ||
2808 | @@ -8683,7 +9192,8 @@ _LT_EOF | ||
2809 | allow_undefined_flag=unsupported | ||
2810 | always_export_symbols=no | ||
2811 | enable_shared_with_static_runtimes=yes | ||
2812 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
2813 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
2814 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
2815 | |||
2816 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
2817 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
2818 | @@ -8782,12 +9292,12 @@ _LT_EOF | ||
2819 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
2820 | hardcode_libdir_flag_spec= | ||
2821 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
2822 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
2823 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
2824 | if test "x$supports_anon_versioning" = xyes; then | ||
2825 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
2826 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
2827 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
2828 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
2829 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
2830 | fi | ||
2831 | ;; | ||
2832 | esac | ||
2833 | @@ -8801,8 +9311,8 @@ _LT_EOF | ||
2834 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
2835 | wlarc= | ||
2836 | else | ||
2837 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2838 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
2839 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2840 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
2841 | fi | ||
2842 | ;; | ||
2843 | |||
2844 | @@ -8820,8 +9330,8 @@ _LT_EOF | ||
2845 | |||
2846 | _LT_EOF | ||
2847 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
2848 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2849 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
2850 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2851 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
2852 | else | ||
2853 | ld_shlibs=no | ||
2854 | fi | ||
2855 | @@ -8867,8 +9377,8 @@ _LT_EOF | ||
2856 | |||
2857 | *) | ||
2858 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
2859 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2860 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
2861 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2862 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
2863 | else | ||
2864 | ld_shlibs=no | ||
2865 | fi | ||
2866 | @@ -8998,7 +9508,13 @@ _LT_EOF | ||
2867 | allow_undefined_flag='-berok' | ||
2868 | # Determine the default libpath from the value encoded in an | ||
2869 | # empty executable. | ||
2870 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2871 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
2872 | + aix_libpath=$lt_cv_aix_libpath | ||
2873 | +else | ||
2874 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
2875 | + $as_echo_n "(cached) " >&6 | ||
2876 | +else | ||
2877 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2878 | /* end confdefs.h. */ | ||
2879 | |||
2880 | int | ||
2881 | @@ -9011,22 +9527,29 @@ main () | ||
2882 | _ACEOF | ||
2883 | if ac_fn_c_try_link "$LINENO"; then : | ||
2884 | |||
2885 | -lt_aix_libpath_sed=' | ||
2886 | - /Import File Strings/,/^$/ { | ||
2887 | - /^0/ { | ||
2888 | - s/^0 *\(.*\)$/\1/ | ||
2889 | - p | ||
2890 | - } | ||
2891 | - }' | ||
2892 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
2893 | -# Check for a 64-bit object if we didn't find anything. | ||
2894 | -if test -z "$aix_libpath"; then | ||
2895 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
2896 | -fi | ||
2897 | + lt_aix_libpath_sed=' | ||
2898 | + /Import File Strings/,/^$/ { | ||
2899 | + /^0/ { | ||
2900 | + s/^0 *\([^ ]*\) *$/\1/ | ||
2901 | + p | ||
2902 | + } | ||
2903 | + }' | ||
2904 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
2905 | + # Check for a 64-bit object if we didn't find anything. | ||
2906 | + if test -z "$lt_cv_aix_libpath_"; then | ||
2907 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
2908 | + fi | ||
2909 | fi | ||
2910 | rm -f core conftest.err conftest.$ac_objext \ | ||
2911 | conftest$ac_exeext conftest.$ac_ext | ||
2912 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
2913 | + if test -z "$lt_cv_aix_libpath_"; then | ||
2914 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
2915 | + fi | ||
2916 | + | ||
2917 | +fi | ||
2918 | + | ||
2919 | + aix_libpath=$lt_cv_aix_libpath_ | ||
2920 | +fi | ||
2921 | |||
2922 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
2923 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
2924 | @@ -9038,7 +9561,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
2925 | else | ||
2926 | # Determine the default libpath from the value encoded in an | ||
2927 | # empty executable. | ||
2928 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2929 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
2930 | + aix_libpath=$lt_cv_aix_libpath | ||
2931 | +else | ||
2932 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
2933 | + $as_echo_n "(cached) " >&6 | ||
2934 | +else | ||
2935 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2936 | /* end confdefs.h. */ | ||
2937 | |||
2938 | int | ||
2939 | @@ -9051,22 +9580,29 @@ main () | ||
2940 | _ACEOF | ||
2941 | if ac_fn_c_try_link "$LINENO"; then : | ||
2942 | |||
2943 | -lt_aix_libpath_sed=' | ||
2944 | - /Import File Strings/,/^$/ { | ||
2945 | - /^0/ { | ||
2946 | - s/^0 *\(.*\)$/\1/ | ||
2947 | - p | ||
2948 | - } | ||
2949 | - }' | ||
2950 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
2951 | -# Check for a 64-bit object if we didn't find anything. | ||
2952 | -if test -z "$aix_libpath"; then | ||
2953 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
2954 | -fi | ||
2955 | + lt_aix_libpath_sed=' | ||
2956 | + /Import File Strings/,/^$/ { | ||
2957 | + /^0/ { | ||
2958 | + s/^0 *\([^ ]*\) *$/\1/ | ||
2959 | + p | ||
2960 | + } | ||
2961 | + }' | ||
2962 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
2963 | + # Check for a 64-bit object if we didn't find anything. | ||
2964 | + if test -z "$lt_cv_aix_libpath_"; then | ||
2965 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
2966 | + fi | ||
2967 | fi | ||
2968 | rm -f core conftest.err conftest.$ac_objext \ | ||
2969 | conftest$ac_exeext conftest.$ac_ext | ||
2970 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
2971 | + if test -z "$lt_cv_aix_libpath_"; then | ||
2972 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
2973 | + fi | ||
2974 | + | ||
2975 | +fi | ||
2976 | + | ||
2977 | + aix_libpath=$lt_cv_aix_libpath_ | ||
2978 | +fi | ||
2979 | |||
2980 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
2981 | # Warning - without using the other run time loading flags, | ||
2982 | @@ -9111,20 +9647,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
2983 | # Microsoft Visual C++. | ||
2984 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
2985 | # no search path for DLLs. | ||
2986 | - hardcode_libdir_flag_spec=' ' | ||
2987 | - allow_undefined_flag=unsupported | ||
2988 | - # Tell ltmain to make .lib files, not .a files. | ||
2989 | - libext=lib | ||
2990 | - # Tell ltmain to make .dll files, not .so files. | ||
2991 | - shrext_cmds=".dll" | ||
2992 | - # FIXME: Setting linknames here is a bad hack. | ||
2993 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
2994 | - # The linker will automatically build a .lib file if we build a DLL. | ||
2995 | - old_archive_from_new_cmds='true' | ||
2996 | - # FIXME: Should let the user specify the lib program. | ||
2997 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
2998 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
2999 | - enable_shared_with_static_runtimes=yes | ||
3000 | + case $cc_basename in | ||
3001 | + cl*) | ||
3002 | + # Native MSVC | ||
3003 | + hardcode_libdir_flag_spec=' ' | ||
3004 | + allow_undefined_flag=unsupported | ||
3005 | + always_export_symbols=yes | ||
3006 | + file_list_spec='@' | ||
3007 | + # Tell ltmain to make .lib files, not .a files. | ||
3008 | + libext=lib | ||
3009 | + # Tell ltmain to make .dll files, not .so files. | ||
3010 | + shrext_cmds=".dll" | ||
3011 | + # FIXME: Setting linknames here is a bad hack. | ||
3012 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
3013 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
3014 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
3015 | + else | ||
3016 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
3017 | + fi~ | ||
3018 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
3019 | + linknames=' | ||
3020 | + # The linker will not automatically build a static lib if we build a DLL. | ||
3021 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
3022 | + enable_shared_with_static_runtimes=yes | ||
3023 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
3024 | + # Don't use ranlib | ||
3025 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
3026 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
3027 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
3028 | + case $lt_outputfile in | ||
3029 | + *.exe|*.EXE) ;; | ||
3030 | + *) | ||
3031 | + lt_outputfile="$lt_outputfile.exe" | ||
3032 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
3033 | + ;; | ||
3034 | + esac~ | ||
3035 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
3036 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
3037 | + $RM "$lt_outputfile.manifest"; | ||
3038 | + fi' | ||
3039 | + ;; | ||
3040 | + *) | ||
3041 | + # Assume MSVC wrapper | ||
3042 | + hardcode_libdir_flag_spec=' ' | ||
3043 | + allow_undefined_flag=unsupported | ||
3044 | + # Tell ltmain to make .lib files, not .a files. | ||
3045 | + libext=lib | ||
3046 | + # Tell ltmain to make .dll files, not .so files. | ||
3047 | + shrext_cmds=".dll" | ||
3048 | + # FIXME: Setting linknames here is a bad hack. | ||
3049 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
3050 | + # The linker will automatically build a .lib file if we build a DLL. | ||
3051 | + old_archive_from_new_cmds='true' | ||
3052 | + # FIXME: Should let the user specify the lib program. | ||
3053 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
3054 | + enable_shared_with_static_runtimes=yes | ||
3055 | + ;; | ||
3056 | + esac | ||
3057 | ;; | ||
3058 | |||
3059 | darwin* | rhapsody*) | ||
3060 | @@ -9185,7 +9764,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
3061 | |||
3062 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
3063 | freebsd* | dragonfly*) | ||
3064 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
3065 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
3066 | hardcode_libdir_flag_spec='-R$libdir' | ||
3067 | hardcode_direct=yes | ||
3068 | hardcode_shlibpath_var=no | ||
3069 | @@ -9193,7 +9772,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
3070 | |||
3071 | hpux9*) | ||
3072 | if test "$GCC" = yes; then | ||
3073 | - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
3074 | + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
3075 | else | ||
3076 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
3077 | fi | ||
3078 | @@ -9209,7 +9788,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
3079 | |||
3080 | hpux10*) | ||
3081 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
3082 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
3083 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
3084 | else | ||
3085 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
3086 | fi | ||
3087 | @@ -9233,10 +9812,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
3088 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3089 | ;; | ||
3090 | ia64*) | ||
3091 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
3092 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
3093 | ;; | ||
3094 | *) | ||
3095 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
3096 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
3097 | ;; | ||
3098 | esac | ||
3099 | else | ||
3100 | @@ -9315,23 +9894,36 @@ fi | ||
3101 | |||
3102 | irix5* | irix6* | nonstopux*) | ||
3103 | if test "$GCC" = yes; then | ||
3104 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
3105 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
3106 | # Try to use the -exported_symbol ld option, if it does not | ||
3107 | # work, assume that -exports_file does not work either and | ||
3108 | # implicitly export all symbols. | ||
3109 | - save_LDFLAGS="$LDFLAGS" | ||
3110 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
3111 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3112 | + # This should be the same for all languages, so no per-tag cache variable. | ||
3113 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
3114 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
3115 | +if ${lt_cv_irix_exported_symbol+:} false; then : | ||
3116 | + $as_echo_n "(cached) " >&6 | ||
3117 | +else | ||
3118 | + save_LDFLAGS="$LDFLAGS" | ||
3119 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
3120 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3121 | /* end confdefs.h. */ | ||
3122 | -int foo(void) {} | ||
3123 | +int foo (void) { return 0; } | ||
3124 | _ACEOF | ||
3125 | if ac_fn_c_try_link "$LINENO"; then : | ||
3126 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
3127 | - | ||
3128 | + lt_cv_irix_exported_symbol=yes | ||
3129 | +else | ||
3130 | + lt_cv_irix_exported_symbol=no | ||
3131 | fi | ||
3132 | rm -f core conftest.err conftest.$ac_objext \ | ||
3133 | conftest$ac_exeext conftest.$ac_ext | ||
3134 | - LDFLAGS="$save_LDFLAGS" | ||
3135 | + LDFLAGS="$save_LDFLAGS" | ||
3136 | +fi | ||
3137 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
3138 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
3139 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
3140 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
3141 | + fi | ||
3142 | else | ||
3143 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
3144 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
3145 | @@ -9416,7 +10008,7 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
3146 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
3147 | if test "$GCC" = yes; then | ||
3148 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
3149 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
3150 | + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
3151 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
3152 | else | ||
3153 | allow_undefined_flag=' -expect_unresolved \*' | ||
3154 | @@ -9435,9 +10027,9 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
3155 | no_undefined_flag=' -z defs' | ||
3156 | if test "$GCC" = yes; then | ||
3157 | wlarc='${wl}' | ||
3158 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3159 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3160 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
3161 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
3162 | + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
3163 | else | ||
3164 | case `$CC -V 2>&1` in | ||
3165 | *"Compilers 5.0"*) | ||
3166 | @@ -10013,8 +10605,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
3167 | need_version=no | ||
3168 | need_lib_prefix=no | ||
3169 | |||
3170 | - case $GCC,$host_os in | ||
3171 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
3172 | + case $GCC,$cc_basename in | ||
3173 | + yes,*) | ||
3174 | + # gcc | ||
3175 | library_names_spec='$libname.dll.a' | ||
3176 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
3177 | postinstall_cmds='base_file=`basename \${file}`~ | ||
3178 | @@ -10047,13 +10640,71 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
3179 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
3180 | ;; | ||
3181 | esac | ||
3182 | + dynamic_linker='Win32 ld.exe' | ||
3183 | + ;; | ||
3184 | + | ||
3185 | + *,cl*) | ||
3186 | + # Native MSVC | ||
3187 | + libname_spec='$name' | ||
3188 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
3189 | + library_names_spec='${libname}.dll.lib' | ||
3190 | + | ||
3191 | + case $build_os in | ||
3192 | + mingw*) | ||
3193 | + sys_lib_search_path_spec= | ||
3194 | + lt_save_ifs=$IFS | ||
3195 | + IFS=';' | ||
3196 | + for lt_path in $LIB | ||
3197 | + do | ||
3198 | + IFS=$lt_save_ifs | ||
3199 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
3200 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
3201 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
3202 | + done | ||
3203 | + IFS=$lt_save_ifs | ||
3204 | + # Convert to MSYS style. | ||
3205 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
3206 | + ;; | ||
3207 | + cygwin*) | ||
3208 | + # Convert to unix form, then to dos form, then back to unix form | ||
3209 | + # but this time dos style (no spaces!) so that the unix form looks | ||
3210 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
3211 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
3212 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
3213 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
3214 | + ;; | ||
3215 | + *) | ||
3216 | + sys_lib_search_path_spec="$LIB" | ||
3217 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
3218 | + # It is most probably a Windows format PATH. | ||
3219 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
3220 | + else | ||
3221 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
3222 | + fi | ||
3223 | + # FIXME: find the short name or the path components, as spaces are | ||
3224 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
3225 | + ;; | ||
3226 | + esac | ||
3227 | + | ||
3228 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
3229 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
3230 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
3231 | + dldir=$destdir/`dirname \$dlpath`~ | ||
3232 | + test -d \$dldir || mkdir -p \$dldir~ | ||
3233 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
3234 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
3235 | + dlpath=$dir/\$dldll~ | ||
3236 | + $RM \$dlpath' | ||
3237 | + shlibpath_overrides_runpath=yes | ||
3238 | + dynamic_linker='Win32 link.exe' | ||
3239 | ;; | ||
3240 | |||
3241 | *) | ||
3242 | + # Assume MSVC wrapper | ||
3243 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
3244 | + dynamic_linker='Win32 ld.exe' | ||
3245 | ;; | ||
3246 | esac | ||
3247 | - dynamic_linker='Win32 ld.exe' | ||
3248 | # FIXME: first we should search . and the directory the executable is in | ||
3249 | shlibpath_var=PATH | ||
3250 | ;; | ||
3251 | @@ -10135,7 +10786,7 @@ haiku*) | ||
3252 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3253 | shlibpath_var=LIBRARY_PATH | ||
3254 | shlibpath_overrides_runpath=yes | ||
3255 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
3256 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
3257 | hardcode_into_libs=yes | ||
3258 | ;; | ||
3259 | |||
3260 | @@ -10931,7 +11582,7 @@ else | ||
3261 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
3262 | lt_status=$lt_dlunknown | ||
3263 | cat > conftest.$ac_ext <<_LT_EOF | ||
3264 | -#line 10934 "configure" | ||
3265 | +#line $LINENO "configure" | ||
3266 | #include "confdefs.h" | ||
3267 | |||
3268 | #if HAVE_DLFCN_H | ||
3269 | @@ -10975,10 +11626,10 @@ else | ||
3270 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
3271 | correspondingly for the symbols needed. */ | ||
3272 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
3273 | -void fnord () __attribute__((visibility("default"))); | ||
3274 | +int fnord () __attribute__((visibility("default"))); | ||
3275 | #endif | ||
3276 | |||
3277 | -void fnord () { int i=42; } | ||
3278 | +int fnord () { return 42; } | ||
3279 | int main () | ||
3280 | { | ||
3281 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
3282 | @@ -11037,7 +11688,7 @@ else | ||
3283 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
3284 | lt_status=$lt_dlunknown | ||
3285 | cat > conftest.$ac_ext <<_LT_EOF | ||
3286 | -#line 11040 "configure" | ||
3287 | +#line $LINENO "configure" | ||
3288 | #include "confdefs.h" | ||
3289 | |||
3290 | #if HAVE_DLFCN_H | ||
3291 | @@ -11081,10 +11732,10 @@ else | ||
3292 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
3293 | correspondingly for the symbols needed. */ | ||
3294 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
3295 | -void fnord () __attribute__((visibility("default"))); | ||
3296 | +int fnord () __attribute__((visibility("default"))); | ||
3297 | #endif | ||
3298 | |||
3299 | -void fnord () { int i=42; } | ||
3300 | +int fnord () { return 42; } | ||
3301 | int main () | ||
3302 | { | ||
3303 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
3304 | @@ -15455,13 +16106,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
3305 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
3306 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
3307 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
3308 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
3309 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
3310 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
3311 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
3312 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
3313 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
3314 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
3315 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
3316 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
3317 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
3318 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
3319 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
3320 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
3321 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
3322 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
3323 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
3324 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
3325 | @@ -15476,14 +16134,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de | ||
3326 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
3327 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
3328 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
3329 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
3330 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
3331 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
3332 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
3333 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
3334 | -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
3335 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
3336 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
3337 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
3338 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
3339 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
3340 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
3341 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
3342 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
3343 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
3344 | @@ -15516,12 +16177,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q | ||
3345 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
3346 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
3347 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
3348 | -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | ||
3349 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
3350 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
3351 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
3352 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
3353 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
3354 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
3355 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
3356 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
3357 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
3358 | @@ -15576,8 +16237,13 @@ reload_flag \ | ||
3359 | OBJDUMP \ | ||
3360 | deplibs_check_method \ | ||
3361 | file_magic_cmd \ | ||
3362 | +file_magic_glob \ | ||
3363 | +want_nocaseglob \ | ||
3364 | +DLLTOOL \ | ||
3365 | +sharedlib_from_linklib_cmd \ | ||
3366 | AR \ | ||
3367 | AR_FLAGS \ | ||
3368 | +archiver_list_spec \ | ||
3369 | STRIP \ | ||
3370 | RANLIB \ | ||
3371 | CC \ | ||
3372 | @@ -15587,12 +16253,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
3373 | lt_cv_sys_global_symbol_to_cdecl \ | ||
3374 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
3375 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
3376 | +nm_file_list_spec \ | ||
3377 | lt_prog_compiler_no_builtin_flag \ | ||
3378 | -lt_prog_compiler_wl \ | ||
3379 | lt_prog_compiler_pic \ | ||
3380 | +lt_prog_compiler_wl \ | ||
3381 | lt_prog_compiler_static \ | ||
3382 | lt_cv_prog_compiler_c_o \ | ||
3383 | need_locks \ | ||
3384 | +MANIFEST_TOOL \ | ||
3385 | DSYMUTIL \ | ||
3386 | NMEDIT \ | ||
3387 | LIPO \ | ||
3388 | @@ -15608,7 +16276,6 @@ no_undefined_flag \ | ||
3389 | hardcode_libdir_flag_spec \ | ||
3390 | hardcode_libdir_flag_spec_ld \ | ||
3391 | hardcode_libdir_separator \ | ||
3392 | -fix_srcfile_path \ | ||
3393 | exclude_expsyms \ | ||
3394 | include_expsyms \ | ||
3395 | file_list_spec \ | ||
3396 | @@ -15644,6 +16311,7 @@ module_cmds \ | ||
3397 | module_expsym_cmds \ | ||
3398 | export_symbols_cmds \ | ||
3399 | prelink_cmds \ | ||
3400 | +postlink_cmds \ | ||
3401 | postinstall_cmds \ | ||
3402 | postuninstall_cmds \ | ||
3403 | finish_cmds \ | ||
3404 | @@ -16410,7 +17078,8 @@ $as_echo X"$file" | | ||
3405 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
3406 | # | ||
3407 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
3408 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
3409 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
3410 | +# Inc. | ||
3411 | # Written by Gordon Matzigkeit, 1996 | ||
3412 | # | ||
3413 | # This file is part of GNU Libtool. | ||
3414 | @@ -16513,19 +17182,42 @@ SP2NL=$lt_lt_SP2NL | ||
3415 | # turn newlines into spaces. | ||
3416 | NL2SP=$lt_lt_NL2SP | ||
3417 | |||
3418 | +# convert \$build file names to \$host format. | ||
3419 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
3420 | + | ||
3421 | +# convert \$build files to toolchain format. | ||
3422 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
3423 | + | ||
3424 | # An object symbol dumper. | ||
3425 | OBJDUMP=$lt_OBJDUMP | ||
3426 | |||
3427 | # Method to check whether dependent libraries are shared objects. | ||
3428 | deplibs_check_method=$lt_deplibs_check_method | ||
3429 | |||
3430 | -# Command to use when deplibs_check_method == "file_magic". | ||
3431 | +# Command to use when deplibs_check_method = "file_magic". | ||
3432 | file_magic_cmd=$lt_file_magic_cmd | ||
3433 | |||
3434 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
3435 | +file_magic_glob=$lt_file_magic_glob | ||
3436 | + | ||
3437 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
3438 | +want_nocaseglob=$lt_want_nocaseglob | ||
3439 | + | ||
3440 | +# DLL creation program. | ||
3441 | +DLLTOOL=$lt_DLLTOOL | ||
3442 | + | ||
3443 | +# Command to associate shared and link libraries. | ||
3444 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
3445 | + | ||
3446 | # The archiver. | ||
3447 | AR=$lt_AR | ||
3448 | + | ||
3449 | +# Flags to create an archive. | ||
3450 | AR_FLAGS=$lt_AR_FLAGS | ||
3451 | |||
3452 | +# How to feed a file listing to the archiver. | ||
3453 | +archiver_list_spec=$lt_archiver_list_spec | ||
3454 | + | ||
3455 | # A symbol stripping program. | ||
3456 | STRIP=$lt_STRIP | ||
3457 | |||
3458 | @@ -16555,6 +17247,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
3459 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
3460 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
3461 | |||
3462 | +# Specify filename containing input files for \$NM. | ||
3463 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
3464 | + | ||
3465 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
3466 | +lt_sysroot=$lt_sysroot | ||
3467 | + | ||
3468 | # The name of the directory that contains temporary libtool files. | ||
3469 | objdir=$objdir | ||
3470 | |||
3471 | @@ -16564,6 +17262,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
3472 | # Must we lock files when doing compilation? | ||
3473 | need_locks=$lt_need_locks | ||
3474 | |||
3475 | +# Manifest tool. | ||
3476 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
3477 | + | ||
3478 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
3479 | DSYMUTIL=$lt_DSYMUTIL | ||
3480 | |||
3481 | @@ -16678,12 +17379,12 @@ with_gcc=$GCC | ||
3482 | # Compiler flag to turn off builtin functions. | ||
3483 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
3484 | |||
3485 | -# How to pass a linker flag through the compiler. | ||
3486 | -wl=$lt_lt_prog_compiler_wl | ||
3487 | - | ||
3488 | # Additional compiler flags for building library objects. | ||
3489 | pic_flag=$lt_lt_prog_compiler_pic | ||
3490 | |||
3491 | +# How to pass a linker flag through the compiler. | ||
3492 | +wl=$lt_lt_prog_compiler_wl | ||
3493 | + | ||
3494 | # Compiler flag to prevent dynamic linking. | ||
3495 | link_static_flag=$lt_lt_prog_compiler_static | ||
3496 | |||
3497 | @@ -16770,9 +17471,6 @@ inherit_rpath=$inherit_rpath | ||
3498 | # Whether libtool must link a program against all its dependency libraries. | ||
3499 | link_all_deplibs=$link_all_deplibs | ||
3500 | |||
3501 | -# Fix the shell variable \$srcfile for the compiler. | ||
3502 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
3503 | - | ||
3504 | # Set to "yes" if exported symbols are required. | ||
3505 | always_export_symbols=$always_export_symbols | ||
3506 | |||
3507 | @@ -16788,6 +17486,9 @@ include_expsyms=$lt_include_expsyms | ||
3508 | # Commands necessary for linking programs (against libraries) with templates. | ||
3509 | prelink_cmds=$lt_prelink_cmds | ||
3510 | |||
3511 | +# Commands necessary for finishing linking programs. | ||
3512 | +postlink_cmds=$lt_postlink_cmds | ||
3513 | + | ||
3514 | # Specify filename containing input files. | ||
3515 | file_list_spec=$lt_file_list_spec | ||
3516 | |||
3517 | @@ -16820,210 +17521,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
3518 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
3519 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
3520 | # is reportedly fixed, but why not run on old versions too? | ||
3521 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
3522 | - || (rm -f "$cfgfile"; exit 1) | ||
3523 | - | ||
3524 | - case $xsi_shell in | ||
3525 | - yes) | ||
3526 | - cat << \_LT_EOF >> "$cfgfile" | ||
3527 | - | ||
3528 | -# func_dirname file append nondir_replacement | ||
3529 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
3530 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
3531 | -func_dirname () | ||
3532 | -{ | ||
3533 | - case ${1} in | ||
3534 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
3535 | - * ) func_dirname_result="${3}" ;; | ||
3536 | - esac | ||
3537 | -} | ||
3538 | - | ||
3539 | -# func_basename file | ||
3540 | -func_basename () | ||
3541 | -{ | ||
3542 | - func_basename_result="${1##*/}" | ||
3543 | -} | ||
3544 | - | ||
3545 | -# func_dirname_and_basename file append nondir_replacement | ||
3546 | -# perform func_basename and func_dirname in a single function | ||
3547 | -# call: | ||
3548 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
3549 | -# add APPEND to the result, otherwise set result | ||
3550 | -# to NONDIR_REPLACEMENT. | ||
3551 | -# value returned in "$func_dirname_result" | ||
3552 | -# basename: Compute filename of FILE. | ||
3553 | -# value retuned in "$func_basename_result" | ||
3554 | -# Implementation must be kept synchronized with func_dirname | ||
3555 | -# and func_basename. For efficiency, we do not delegate to | ||
3556 | -# those functions but instead duplicate the functionality here. | ||
3557 | -func_dirname_and_basename () | ||
3558 | -{ | ||
3559 | - case ${1} in | ||
3560 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
3561 | - * ) func_dirname_result="${3}" ;; | ||
3562 | - esac | ||
3563 | - func_basename_result="${1##*/}" | ||
3564 | -} | ||
3565 | - | ||
3566 | -# func_stripname prefix suffix name | ||
3567 | -# strip PREFIX and SUFFIX off of NAME. | ||
3568 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
3569 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
3570 | -# dot (in which case that matches only a dot). | ||
3571 | -func_stripname () | ||
3572 | -{ | ||
3573 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
3574 | - # positional parameters, so assign one to ordinary parameter first. | ||
3575 | - func_stripname_result=${3} | ||
3576 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
3577 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
3578 | -} | ||
3579 | - | ||
3580 | -# func_opt_split | ||
3581 | -func_opt_split () | ||
3582 | -{ | ||
3583 | - func_opt_split_opt=${1%%=*} | ||
3584 | - func_opt_split_arg=${1#*=} | ||
3585 | -} | ||
3586 | - | ||
3587 | -# func_lo2o object | ||
3588 | -func_lo2o () | ||
3589 | -{ | ||
3590 | - case ${1} in | ||
3591 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
3592 | - *) func_lo2o_result=${1} ;; | ||
3593 | - esac | ||
3594 | -} | ||
3595 | - | ||
3596 | -# func_xform libobj-or-source | ||
3597 | -func_xform () | ||
3598 | -{ | ||
3599 | - func_xform_result=${1%.*}.lo | ||
3600 | -} | ||
3601 | - | ||
3602 | -# func_arith arithmetic-term... | ||
3603 | -func_arith () | ||
3604 | -{ | ||
3605 | - func_arith_result=$(( $* )) | ||
3606 | -} | ||
3607 | - | ||
3608 | -# func_len string | ||
3609 | -# STRING may not start with a hyphen. | ||
3610 | -func_len () | ||
3611 | -{ | ||
3612 | - func_len_result=${#1} | ||
3613 | -} | ||
3614 | - | ||
3615 | -_LT_EOF | ||
3616 | - ;; | ||
3617 | - *) # Bourne compatible functions. | ||
3618 | - cat << \_LT_EOF >> "$cfgfile" | ||
3619 | - | ||
3620 | -# func_dirname file append nondir_replacement | ||
3621 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
3622 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
3623 | -func_dirname () | ||
3624 | -{ | ||
3625 | - # Extract subdirectory from the argument. | ||
3626 | - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
3627 | - if test "X$func_dirname_result" = "X${1}"; then | ||
3628 | - func_dirname_result="${3}" | ||
3629 | - else | ||
3630 | - func_dirname_result="$func_dirname_result${2}" | ||
3631 | - fi | ||
3632 | -} | ||
3633 | - | ||
3634 | -# func_basename file | ||
3635 | -func_basename () | ||
3636 | -{ | ||
3637 | - func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
3638 | -} | ||
3639 | - | ||
3640 | - | ||
3641 | -# func_stripname prefix suffix name | ||
3642 | -# strip PREFIX and SUFFIX off of NAME. | ||
3643 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
3644 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
3645 | -# dot (in which case that matches only a dot). | ||
3646 | -# func_strip_suffix prefix name | ||
3647 | -func_stripname () | ||
3648 | -{ | ||
3649 | - case ${2} in | ||
3650 | - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
3651 | - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
3652 | - esac | ||
3653 | -} | ||
3654 | - | ||
3655 | -# sed scripts: | ||
3656 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
3657 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
3658 | - | ||
3659 | -# func_opt_split | ||
3660 | -func_opt_split () | ||
3661 | -{ | ||
3662 | - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | ||
3663 | - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | ||
3664 | -} | ||
3665 | - | ||
3666 | -# func_lo2o object | ||
3667 | -func_lo2o () | ||
3668 | -{ | ||
3669 | - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
3670 | -} | ||
3671 | - | ||
3672 | -# func_xform libobj-or-source | ||
3673 | -func_xform () | ||
3674 | -{ | ||
3675 | - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
3676 | -} | ||
3677 | - | ||
3678 | -# func_arith arithmetic-term... | ||
3679 | -func_arith () | ||
3680 | -{ | ||
3681 | - func_arith_result=`expr "$@"` | ||
3682 | -} | ||
3683 | - | ||
3684 | -# func_len string | ||
3685 | -# STRING may not start with a hyphen. | ||
3686 | -func_len () | ||
3687 | -{ | ||
3688 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
3689 | -} | ||
3690 | - | ||
3691 | -_LT_EOF | ||
3692 | -esac | ||
3693 | - | ||
3694 | -case $lt_shell_append in | ||
3695 | - yes) | ||
3696 | - cat << \_LT_EOF >> "$cfgfile" | ||
3697 | - | ||
3698 | -# func_append var value | ||
3699 | -# Append VALUE to the end of shell variable VAR. | ||
3700 | -func_append () | ||
3701 | -{ | ||
3702 | - eval "$1+=\$2" | ||
3703 | -} | ||
3704 | -_LT_EOF | ||
3705 | - ;; | ||
3706 | - *) | ||
3707 | - cat << \_LT_EOF >> "$cfgfile" | ||
3708 | - | ||
3709 | -# func_append var value | ||
3710 | -# Append VALUE to the end of shell variable VAR. | ||
3711 | -func_append () | ||
3712 | -{ | ||
3713 | - eval "$1=\$$1\$2" | ||
3714 | -} | ||
3715 | - | ||
3716 | -_LT_EOF | ||
3717 | - ;; | ||
3718 | - esac | ||
3719 | - | ||
3720 | - | ||
3721 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
3722 | - || (rm -f "$cfgfile"; exit 1) | ||
3723 | - | ||
3724 | - mv -f "$cfgfile" "$ofile" || | ||
3725 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
3726 | + || (rm -f "$cfgfile"; exit 1) | ||
3727 | + | ||
3728 | + if test x"$xsi_shell" = xyes; then | ||
3729 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
3730 | +func_dirname ()\ | ||
3731 | +{\ | ||
3732 | +\ case ${1} in\ | ||
3733 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
3734 | +\ * ) func_dirname_result="${3}" ;;\ | ||
3735 | +\ esac\ | ||
3736 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3737 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3738 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3739 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3740 | + | ||
3741 | + | ||
3742 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
3743 | +func_basename ()\ | ||
3744 | +{\ | ||
3745 | +\ func_basename_result="${1##*/}"\ | ||
3746 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3747 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3748 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3749 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3750 | + | ||
3751 | + | ||
3752 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
3753 | +func_dirname_and_basename ()\ | ||
3754 | +{\ | ||
3755 | +\ case ${1} in\ | ||
3756 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
3757 | +\ * ) func_dirname_result="${3}" ;;\ | ||
3758 | +\ esac\ | ||
3759 | +\ func_basename_result="${1##*/}"\ | ||
3760 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3761 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3762 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3763 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3764 | + | ||
3765 | + | ||
3766 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
3767 | +func_stripname ()\ | ||
3768 | +{\ | ||
3769 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
3770 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
3771 | +\ func_stripname_result=${3}\ | ||
3772 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
3773 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
3774 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3775 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3776 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3777 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3778 | + | ||
3779 | + | ||
3780 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
3781 | +func_split_long_opt ()\ | ||
3782 | +{\ | ||
3783 | +\ func_split_long_opt_name=${1%%=*}\ | ||
3784 | +\ func_split_long_opt_arg=${1#*=}\ | ||
3785 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3786 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3787 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3788 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3789 | + | ||
3790 | + | ||
3791 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
3792 | +func_split_short_opt ()\ | ||
3793 | +{\ | ||
3794 | +\ func_split_short_opt_arg=${1#??}\ | ||
3795 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
3796 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3797 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3798 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3799 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3800 | + | ||
3801 | + | ||
3802 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
3803 | +func_lo2o ()\ | ||
3804 | +{\ | ||
3805 | +\ case ${1} in\ | ||
3806 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
3807 | +\ *) func_lo2o_result=${1} ;;\ | ||
3808 | +\ esac\ | ||
3809 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3810 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3811 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3812 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3813 | + | ||
3814 | + | ||
3815 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
3816 | +func_xform ()\ | ||
3817 | +{\ | ||
3818 | + func_xform_result=${1%.*}.lo\ | ||
3819 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3820 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3821 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3822 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3823 | + | ||
3824 | + | ||
3825 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
3826 | +func_arith ()\ | ||
3827 | +{\ | ||
3828 | + func_arith_result=$(( $* ))\ | ||
3829 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3830 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3831 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3832 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3833 | + | ||
3834 | + | ||
3835 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
3836 | +func_len ()\ | ||
3837 | +{\ | ||
3838 | + func_len_result=${#1}\ | ||
3839 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3840 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3841 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3842 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3843 | + | ||
3844 | +fi | ||
3845 | + | ||
3846 | +if test x"$lt_shell_append" = xyes; then | ||
3847 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
3848 | +func_append ()\ | ||
3849 | +{\ | ||
3850 | + eval "${1}+=\\${2}"\ | ||
3851 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3852 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3853 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3854 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3855 | + | ||
3856 | + | ||
3857 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
3858 | +func_append_quoted ()\ | ||
3859 | +{\ | ||
3860 | +\ func_quote_for_eval "${2}"\ | ||
3861 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
3862 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
3863 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3864 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3865 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
3866 | + | ||
3867 | + | ||
3868 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
3869 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
3870 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3871 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3872 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
3873 | +else | ||
3874 | + # Save a `func_append' function call even when '+=' is not available | ||
3875 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
3876 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
3877 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
3878 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
3879 | +fi | ||
3880 | + | ||
3881 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
3882 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
3883 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
3884 | +fi | ||
3885 | + | ||
3886 | + | ||
3887 | + mv -f "$cfgfile" "$ofile" || | ||
3888 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
3889 | chmod +x "$ofile" | ||
3890 | |||
3891 | diff --git a/gas/configure b/gas/configure | ||
3892 | index 789d1b38b33..7ac563a13ad 100755 | ||
3893 | --- a/gas/configure | ||
3894 | +++ b/gas/configure | ||
3895 | @@ -681,8 +681,11 @@ OTOOL | ||
3896 | LIPO | ||
3897 | NMEDIT | ||
3898 | DSYMUTIL | ||
3899 | +MANIFEST_TOOL | ||
3900 | RANLIB | ||
3901 | +ac_ct_AR | ||
3902 | AR | ||
3903 | +DLLTOOL | ||
3904 | OBJDUMP | ||
3905 | LN_S | ||
3906 | NM | ||
3907 | @@ -799,6 +802,7 @@ enable_static | ||
3908 | with_pic | ||
3909 | enable_fast_install | ||
3910 | with_gnu_ld | ||
3911 | +with_libtool_sysroot | ||
3912 | enable_libtool_lock | ||
3913 | enable_plugins | ||
3914 | enable_largefile | ||
3915 | @@ -1490,6 +1494,8 @@ Optional Packages: | ||
3916 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
3917 | both] | ||
3918 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
3919 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
3920 | + (or the compiler's sysroot if not specified). | ||
3921 | --with-cpu=CPU default cpu variant is CPU (currently only supported | ||
3922 | on ARC) | ||
3923 | --with-system-zlib use installed libz | ||
3924 | @@ -4569,8 +4575,8 @@ esac | ||
3925 | |||
3926 | |||
3927 | |||
3928 | -macro_version='2.2.7a' | ||
3929 | -macro_revision='1.3134' | ||
3930 | +macro_version='2.4' | ||
3931 | +macro_revision='1.3293' | ||
3932 | |||
3933 | |||
3934 | |||
3935 | @@ -4610,7 +4616,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
3937 | $as_echo_n "checking how to print strings... " >&6; } | ||
3938 | # Test print first, because it will be a builtin if present. | ||
3939 | -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | ||
3940 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
3941 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
3942 | ECHO='print -r --' | ||
3943 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
3944 | @@ -5296,8 +5302,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; | ||
3945 | # Try some XSI features | ||
3946 | xsi_shell=no | ||
3947 | ( _lt_dummy="a/b/c" | ||
3948 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
3949 | - = c,a/b,, \ | ||
3950 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
3951 | + = c,a/b,b/c, \ | ||
3952 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
3953 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
3954 | && xsi_shell=yes | ||
3955 | @@ -5346,6 +5352,80 @@ esac | ||
3956 | |||
3957 | |||
3958 | |||
3959 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
3960 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
3961 | +if ${lt_cv_to_host_file_cmd+:} false; then : | ||
3962 | + $as_echo_n "(cached) " >&6 | ||
3963 | +else | ||
3964 | + case $host in | ||
3965 | + *-*-mingw* ) | ||
3966 | + case $build in | ||
3967 | + *-*-mingw* ) # actually msys | ||
3968 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
3969 | + ;; | ||
3970 | + *-*-cygwin* ) | ||
3971 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
3972 | + ;; | ||
3973 | + * ) # otherwise, assume *nix | ||
3974 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
3975 | + ;; | ||
3976 | + esac | ||
3977 | + ;; | ||
3978 | + *-*-cygwin* ) | ||
3979 | + case $build in | ||
3980 | + *-*-mingw* ) # actually msys | ||
3981 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
3982 | + ;; | ||
3983 | + *-*-cygwin* ) | ||
3984 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
3985 | + ;; | ||
3986 | + * ) # otherwise, assume *nix | ||
3987 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
3988 | + ;; | ||
3989 | + esac | ||
3990 | + ;; | ||
3991 | + * ) # unhandled hosts (and "normal" native builds) | ||
3992 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
3993 | + ;; | ||
3994 | +esac | ||
3995 | + | ||
3996 | +fi | ||
3997 | + | ||
3998 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
3999 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
4000 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
4001 | + | ||
4002 | + | ||
4003 | + | ||
4004 | + | ||
4005 | + | ||
4006 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
4007 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
4008 | +if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
4009 | + $as_echo_n "(cached) " >&6 | ||
4010 | +else | ||
4011 | + #assume ordinary cross tools, or native build. | ||
4012 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
4013 | +case $host in | ||
4014 | + *-*-mingw* ) | ||
4015 | + case $build in | ||
4016 | + *-*-mingw* ) # actually msys | ||
4017 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
4018 | + ;; | ||
4019 | + esac | ||
4020 | + ;; | ||
4021 | +esac | ||
4022 | + | ||
4023 | +fi | ||
4024 | + | ||
4025 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
4026 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
4027 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
4028 | + | ||
4029 | + | ||
4030 | + | ||
4031 | + | ||
4032 | + | ||
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
4034 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
4035 | if ${lt_cv_ld_reload_flag+:} false; then : | ||
4036 | @@ -5362,6 +5442,11 @@ case $reload_flag in | ||
4037 | esac | ||
4038 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
4039 | case $host_os in | ||
4040 | + cygwin* | mingw* | pw32* | cegcc*) | ||
4041 | + if test "$GCC" != yes; then | ||
4042 | + reload_cmds=false | ||
4043 | + fi | ||
4044 | + ;; | ||
4045 | darwin*) | ||
4046 | if test "$GCC" = yes; then | ||
4047 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
4048 | @@ -5530,7 +5615,8 @@ mingw* | pw32*) | ||
4049 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
4050 | lt_cv_file_magic_cmd='func_win32_libid' | ||
4051 | else | ||
4052 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
4053 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
4054 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
4055 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
4056 | fi | ||
4057 | ;; | ||
4058 | @@ -5684,6 +5770,21 @@ esac | ||
4059 | fi | ||
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
4061 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
4062 | + | ||
4063 | +file_magic_glob= | ||
4064 | +want_nocaseglob=no | ||
4065 | +if test "$build" = "$host"; then | ||
4066 | + case $host_os in | ||
4067 | + mingw* | pw32*) | ||
4068 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
4069 | + want_nocaseglob=yes | ||
4070 | + else | ||
4071 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
4072 | + fi | ||
4073 | + ;; | ||
4074 | + esac | ||
4075 | +fi | ||
4076 | + | ||
4077 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
4078 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
4079 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
4080 | @@ -5699,6 +5800,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
4081 | |||
4082 | |||
4083 | |||
4084 | + | ||
4085 | + | ||
4086 | + | ||
4087 | + | ||
4088 | + | ||
4089 | + | ||
4090 | + | ||
4091 | + | ||
4092 | + | ||
4093 | + | ||
4094 | +if test -n "$ac_tool_prefix"; then | ||
4095 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
4096 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
4097 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4098 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
4099 | +if ${ac_cv_prog_DLLTOOL+:} false; then : | ||
4100 | + $as_echo_n "(cached) " >&6 | ||
4101 | +else | ||
4102 | + if test -n "$DLLTOOL"; then | ||
4103 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
4104 | +else | ||
4105 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4106 | +for as_dir in $PATH | ||
4107 | +do | ||
4108 | + IFS=$as_save_IFS | ||
4109 | + test -z "$as_dir" && as_dir=. | ||
4110 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
4111 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4112 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
4113 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4114 | + break 2 | ||
4115 | + fi | ||
4116 | +done | ||
4117 | + done | ||
4118 | +IFS=$as_save_IFS | ||
4119 | + | ||
4120 | +fi | ||
4121 | +fi | ||
4122 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
4123 | +if test -n "$DLLTOOL"; then | ||
4124 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
4125 | +$as_echo "$DLLTOOL" >&6; } | ||
4126 | +else | ||
4127 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4128 | +$as_echo "no" >&6; } | ||
4129 | +fi | ||
4130 | + | ||
4131 | + | ||
4132 | +fi | ||
4133 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
4134 | + ac_ct_DLLTOOL=$DLLTOOL | ||
4135 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
4136 | +set dummy dlltool; ac_word=$2 | ||
4137 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4138 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
4139 | +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ||
4140 | + $as_echo_n "(cached) " >&6 | ||
4141 | +else | ||
4142 | + if test -n "$ac_ct_DLLTOOL"; then | ||
4143 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
4144 | +else | ||
4145 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4146 | +for as_dir in $PATH | ||
4147 | +do | ||
4148 | + IFS=$as_save_IFS | ||
4149 | + test -z "$as_dir" && as_dir=. | ||
4150 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
4151 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4152 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
4153 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4154 | + break 2 | ||
4155 | + fi | ||
4156 | +done | ||
4157 | + done | ||
4158 | +IFS=$as_save_IFS | ||
4159 | + | ||
4160 | +fi | ||
4161 | +fi | ||
4162 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
4163 | +if test -n "$ac_ct_DLLTOOL"; then | ||
4164 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
4165 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
4166 | +else | ||
4167 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4168 | +$as_echo "no" >&6; } | ||
4169 | +fi | ||
4170 | + | ||
4171 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
4172 | + DLLTOOL="false" | ||
4173 | + else | ||
4174 | + case $cross_compiling:$ac_tool_warned in | ||
4175 | +yes:) | ||
4176 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4177 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4178 | +ac_tool_warned=yes ;; | ||
4179 | +esac | ||
4180 | + DLLTOOL=$ac_ct_DLLTOOL | ||
4181 | + fi | ||
4182 | +else | ||
4183 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
4184 | +fi | ||
4185 | + | ||
4186 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
4187 | + | ||
4188 | + | ||
4189 | + | ||
4190 | + | ||
4191 | + | ||
4192 | + | ||
4193 | + | ||
4194 | + | ||
4195 | + | ||
4196 | + | ||
4197 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
4198 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
4199 | +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
4200 | + $as_echo_n "(cached) " >&6 | ||
4201 | +else | ||
4202 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
4203 | + | ||
4204 | +case $host_os in | ||
4205 | +cygwin* | mingw* | pw32* | cegcc*) | ||
4206 | + # two different shell functions defined in ltmain.sh | ||
4207 | + # decide which to use based on capabilities of $DLLTOOL | ||
4208 | + case `$DLLTOOL --help 2>&1` in | ||
4209 | + *--identify-strict*) | ||
4210 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
4211 | + ;; | ||
4212 | + *) | ||
4213 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
4214 | + ;; | ||
4215 | + esac | ||
4216 | + ;; | ||
4217 | +*) | ||
4218 | + # fallback: assume linklib IS sharedlib | ||
4219 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
4220 | + ;; | ||
4221 | +esac | ||
4222 | + | ||
4223 | +fi | ||
4224 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
4225 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
4226 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
4227 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
4228 | + | ||
4229 | + | ||
4230 | + | ||
4231 | + | ||
4232 | + | ||
4233 | + | ||
4234 | + | ||
4235 | plugin_option= | ||
4236 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | ||
4237 | for plugin in $plugin_names; do | ||
4238 | @@ -5713,8 +5965,10 @@ for plugin in $plugin_names; do | ||
4239 | done | ||
4240 | |||
4241 | if test -n "$ac_tool_prefix"; then | ||
4242 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
4243 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
4244 | + for ac_prog in ar | ||
4245 | + do | ||
4246 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4247 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4249 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4250 | if ${ac_cv_prog_AR+:} false; then : | ||
4251 | @@ -5730,7 +5984,7 @@ do | ||
4252 | test -z "$as_dir" && as_dir=. | ||
4253 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4254 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4255 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
4256 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
4257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4258 | break 2 | ||
4259 | fi | ||
4260 | @@ -5750,11 +6004,15 @@ $as_echo "no" >&6; } | ||
4261 | fi | ||
4262 | |||
4263 | |||
4264 | + test -n "$AR" && break | ||
4265 | + done | ||
4266 | fi | ||
4267 | -if test -z "$ac_cv_prog_AR"; then | ||
4268 | +if test -z "$AR"; then | ||
4269 | ac_ct_AR=$AR | ||
4270 | - # Extract the first word of "ar", so it can be a program name with args. | ||
4271 | -set dummy ar; ac_word=$2 | ||
4272 | + for ac_prog in ar | ||
4273 | +do | ||
4274 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4275 | +set dummy $ac_prog; ac_word=$2 | ||
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4277 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4278 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
4279 | @@ -5770,7 +6028,7 @@ do | ||
4280 | test -z "$as_dir" && as_dir=. | ||
4281 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4283 | - ac_cv_prog_ac_ct_AR="ar" | ||
4284 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
4285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4286 | break 2 | ||
4287 | fi | ||
4288 | @@ -5789,6 +6047,10 @@ else | ||
4289 | $as_echo "no" >&6; } | ||
4290 | fi | ||
4291 | |||
4292 | + | ||
4293 | + test -n "$ac_ct_AR" && break | ||
4294 | +done | ||
4295 | + | ||
4296 | if test "x$ac_ct_AR" = x; then | ||
4297 | AR="false" | ||
4298 | else | ||
4299 | @@ -5800,29 +6062,81 @@ ac_tool_warned=yes ;; | ||
4300 | esac | ||
4301 | AR=$ac_ct_AR | ||
4302 | fi | ||
4303 | -else | ||
4304 | - AR="$ac_cv_prog_AR" | ||
4305 | fi | ||
4306 | |||
4307 | -test -z "$AR" && AR=ar | ||
4308 | -if test -n "$plugin_option"; then | ||
4309 | - if $AR --help 2>&1 | grep -q "\--plugin"; then | ||
4310 | - touch conftest.c | ||
4311 | - $AR $plugin_option rc conftest.a conftest.c | ||
4312 | - if test "$?" != 0; then | ||
4313 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
4314 | + touch conftest.c | ||
4315 | + $AR $plugin_option rc conftest.a conftest.c | ||
4316 | + if test "$?" != 0; then | ||
4317 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
4318 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | ||
4319 | - else | ||
4320 | - AR="$AR $plugin_option" | ||
4321 | - fi | ||
4322 | - rm -f conftest.* | ||
4323 | + else | ||
4324 | + AR="$AR $plugin_option" | ||
4325 | fi | ||
4326 | -fi | ||
4327 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
4328 | + rm -f conftest.* | ||
4329 | +: ${AR=ar} | ||
4330 | +: ${AR_FLAGS=cru} | ||
4331 | + | ||
4332 | + | ||
4333 | + | ||
4334 | + | ||
4335 | + | ||
4336 | + | ||
4337 | + | ||
4338 | + | ||
4339 | + | ||
4340 | + | ||
4341 | + | ||
4342 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
4343 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
4344 | +if ${lt_cv_ar_at_file+:} false; then : | ||
4345 | + $as_echo_n "(cached) " >&6 | ||
4346 | +else | ||
4347 | + lt_cv_ar_at_file=no | ||
4348 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4349 | +/* end confdefs.h. */ | ||
4350 | + | ||
4351 | +int | ||
4352 | +main () | ||
4353 | +{ | ||
4354 | |||
4355 | + ; | ||
4356 | + return 0; | ||
4357 | +} | ||
4358 | +_ACEOF | ||
4359 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
4360 | + echo conftest.$ac_objext > conftest.lst | ||
4361 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
4362 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
4363 | + (eval $lt_ar_try) 2>&5 | ||
4364 | + ac_status=$? | ||
4365 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4366 | + test $ac_status = 0; } | ||
4367 | + if test "$ac_status" -eq 0; then | ||
4368 | + # Ensure the archiver fails upon bogus file names. | ||
4369 | + rm -f conftest.$ac_objext libconftest.a | ||
4370 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
4371 | + (eval $lt_ar_try) 2>&5 | ||
4372 | + ac_status=$? | ||
4373 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4374 | + test $ac_status = 0; } | ||
4375 | + if test "$ac_status" -ne 0; then | ||
4376 | + lt_cv_ar_at_file=@ | ||
4377 | + fi | ||
4378 | + fi | ||
4379 | + rm -f conftest.* libconftest.a | ||
4380 | |||
4381 | +fi | ||
4382 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4383 | |||
4384 | +fi | ||
4385 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
4386 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
4387 | |||
4388 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
4389 | + archiver_list_spec= | ||
4390 | +else | ||
4391 | + archiver_list_spec=$lt_cv_ar_at_file | ||
4392 | +fi | ||
4393 | |||
4394 | |||
4395 | |||
4396 | @@ -6169,8 +6483,8 @@ esac | ||
4397 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
4398 | |||
4399 | # Transform an extracted symbol line into symbol name and symbol address | ||
4400 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
4401 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
4402 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
4403 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
4404 | |||
4405 | # Handle CRLF in mingw tool chain | ||
4406 | opt_cr= | ||
4407 | @@ -6206,6 +6520,7 @@ for ac_symprfx in "" "_"; do | ||
4408 | else | ||
4409 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
4410 | fi | ||
4411 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
4412 | |||
4413 | # Check to see that the pipe works correctly. | ||
4414 | pipe_works=no | ||
4415 | @@ -6247,6 +6562,18 @@ _LT_EOF | ||
4416 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
4417 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
4418 | cat <<_LT_EOF > conftest.$ac_ext | ||
4419 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
4420 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
4421 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
4422 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
4423 | +# define LT_DLSYM_CONST | ||
4424 | +#elif defined(__osf__) | ||
4425 | +/* This system does not cope well with relocations in const data. */ | ||
4426 | +# define LT_DLSYM_CONST | ||
4427 | +#else | ||
4428 | +# define LT_DLSYM_CONST const | ||
4429 | +#endif | ||
4430 | + | ||
4431 | #ifdef __cplusplus | ||
4432 | extern "C" { | ||
4433 | #endif | ||
4434 | @@ -6258,7 +6585,7 @@ _LT_EOF | ||
4435 | cat <<_LT_EOF >> conftest.$ac_ext | ||
4436 | |||
4437 | /* The mapping between symbol names and symbols. */ | ||
4438 | -const struct { | ||
4439 | +LT_DLSYM_CONST struct { | ||
4440 | const char *name; | ||
4441 | void *address; | ||
4442 | } | ||
4443 | @@ -6284,8 +6611,8 @@ static const void *lt_preloaded_setup() { | ||
4444 | _LT_EOF | ||
4445 | # Now try linking the two files. | ||
4446 | mv conftest.$ac_objext conftstm.$ac_objext | ||
4447 | - lt_save_LIBS="$LIBS" | ||
4448 | - lt_save_CFLAGS="$CFLAGS" | ||
4449 | + lt_globsym_save_LIBS=$LIBS | ||
4450 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
4451 | LIBS="conftstm.$ac_objext" | ||
4452 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
4453 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
4454 | @@ -6295,8 +6622,8 @@ _LT_EOF | ||
4455 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
4456 | pipe_works=yes | ||
4457 | fi | ||
4458 | - LIBS="$lt_save_LIBS" | ||
4459 | - CFLAGS="$lt_save_CFLAGS" | ||
4460 | + LIBS=$lt_globsym_save_LIBS | ||
4461 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
4462 | else | ||
4463 | echo "cannot find nm_test_func in $nlist" >&5 | ||
4464 | fi | ||
4465 | @@ -6333,6 +6660,19 @@ else | ||
4466 | $as_echo "ok" >&6; } | ||
4467 | fi | ||
4468 | |||
4469 | +# Response file support. | ||
4470 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
4471 | + nm_file_list_spec='@' | ||
4472 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
4473 | + nm_file_list_spec='@' | ||
4474 | +fi | ||
4475 | + | ||
4476 | + | ||
4477 | + | ||
4478 | + | ||
4479 | + | ||
4480 | + | ||
4481 | + | ||
4482 | |||
4483 | |||
4484 | |||
4485 | @@ -6349,6 +6689,42 @@ fi | ||
4486 | |||
4487 | |||
4488 | |||
4489 | + | ||
4490 | + | ||
4491 | + | ||
4492 | + | ||
4493 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
4494 | +$as_echo_n "checking for sysroot... " >&6; } | ||
4495 | + | ||
4496 | +# Check whether --with-libtool-sysroot was given. | ||
4497 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
4498 | + withval=$with_libtool_sysroot; | ||
4499 | +else | ||
4500 | + with_libtool_sysroot=no | ||
4501 | +fi | ||
4502 | + | ||
4503 | + | ||
4504 | +lt_sysroot= | ||
4505 | +case ${with_libtool_sysroot} in #( | ||
4506 | + yes) | ||
4507 | + if test "$GCC" = yes; then | ||
4508 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
4509 | + fi | ||
4510 | + ;; #( | ||
4511 | + /*) | ||
4512 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
4513 | + ;; #( | ||
4514 | + no|'') | ||
4515 | + ;; #( | ||
4516 | + *) | ||
4517 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
4518 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
4519 | + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | ||
4520 | + ;; | ||
4521 | +esac | ||
4522 | + | ||
4523 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
4524 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
4525 | |||
4526 | |||
4527 | |||
4528 | @@ -6560,6 +6936,123 @@ esac | ||
4529 | |||
4530 | need_locks="$enable_libtool_lock" | ||
4531 | |||
4532 | +if test -n "$ac_tool_prefix"; then | ||
4533 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
4534 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
4535 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4536 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
4537 | +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | ||
4538 | + $as_echo_n "(cached) " >&6 | ||
4539 | +else | ||
4540 | + if test -n "$MANIFEST_TOOL"; then | ||
4541 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
4542 | +else | ||
4543 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4544 | +for as_dir in $PATH | ||
4545 | +do | ||
4546 | + IFS=$as_save_IFS | ||
4547 | + test -z "$as_dir" && as_dir=. | ||
4548 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
4549 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4550 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
4551 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4552 | + break 2 | ||
4553 | + fi | ||
4554 | +done | ||
4555 | + done | ||
4556 | +IFS=$as_save_IFS | ||
4557 | + | ||
4558 | +fi | ||
4559 | +fi | ||
4560 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
4561 | +if test -n "$MANIFEST_TOOL"; then | ||
4562 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
4563 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
4564 | +else | ||
4565 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4566 | +$as_echo "no" >&6; } | ||
4567 | +fi | ||
4568 | + | ||
4569 | + | ||
4570 | +fi | ||
4571 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
4572 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
4573 | + # Extract the first word of "mt", so it can be a program name with args. | ||
4574 | +set dummy mt; ac_word=$2 | ||
4575 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4576 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
4577 | +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | ||
4578 | + $as_echo_n "(cached) " >&6 | ||
4579 | +else | ||
4580 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
4581 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
4582 | +else | ||
4583 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4584 | +for as_dir in $PATH | ||
4585 | +do | ||
4586 | + IFS=$as_save_IFS | ||
4587 | + test -z "$as_dir" && as_dir=. | ||
4588 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
4589 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4590 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
4591 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4592 | + break 2 | ||
4593 | + fi | ||
4594 | +done | ||
4595 | + done | ||
4596 | +IFS=$as_save_IFS | ||
4597 | + | ||
4598 | +fi | ||
4599 | +fi | ||
4600 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
4601 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
4602 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
4603 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
4604 | +else | ||
4605 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4606 | +$as_echo "no" >&6; } | ||
4607 | +fi | ||
4608 | + | ||
4609 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
4610 | + MANIFEST_TOOL=":" | ||
4611 | + else | ||
4612 | + case $cross_compiling:$ac_tool_warned in | ||
4613 | +yes:) | ||
4614 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4615 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4616 | +ac_tool_warned=yes ;; | ||
4617 | +esac | ||
4618 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
4619 | + fi | ||
4620 | +else | ||
4621 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
4622 | +fi | ||
4623 | + | ||
4624 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
4625 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
4626 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
4627 | +if ${lt_cv_path_mainfest_tool+:} false; then : | ||
4628 | + $as_echo_n "(cached) " >&6 | ||
4629 | +else | ||
4630 | + lt_cv_path_mainfest_tool=no | ||
4631 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
4632 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
4633 | + cat conftest.err >&5 | ||
4634 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
4635 | + lt_cv_path_mainfest_tool=yes | ||
4636 | + fi | ||
4637 | + rm -f conftest* | ||
4638 | +fi | ||
4639 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
4640 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
4641 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
4642 | + MANIFEST_TOOL=: | ||
4643 | +fi | ||
4644 | + | ||
4645 | + | ||
4646 | + | ||
4647 | + | ||
4648 | + | ||
4649 | |||
4650 | case $host_os in | ||
4651 | rhapsody* | darwin*) | ||
4652 | @@ -7123,6 +7616,8 @@ _LT_EOF | ||
4653 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
4654 | echo "$AR cru libconftest.a conftest.o" >&5 | ||
4655 | $AR cru libconftest.a conftest.o 2>&5 | ||
4656 | + echo "$RANLIB libconftest.a" >&5 | ||
4657 | + $RANLIB libconftest.a 2>&5 | ||
4658 | cat > conftest.c << _LT_EOF | ||
4659 | int main() { return 0;} | ||
4660 | _LT_EOF | ||
4661 | @@ -7705,8 +8201,6 @@ fi | ||
4662 | lt_prog_compiler_pic= | ||
4663 | lt_prog_compiler_static= | ||
4664 | |||
4665 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
4666 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
4667 | |||
4668 | if test "$GCC" = yes; then | ||
4669 | lt_prog_compiler_wl='-Wl,' | ||
4670 | @@ -7872,6 +8366,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
4671 | lt_prog_compiler_pic='--shared' | ||
4672 | lt_prog_compiler_static='--static' | ||
4673 | ;; | ||
4674 | + nagfor*) | ||
4675 | + # NAG Fortran compiler | ||
4676 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
4677 | + lt_prog_compiler_pic='-PIC' | ||
4678 | + lt_prog_compiler_static='-Bstatic' | ||
4679 | + ;; | ||
4680 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
4681 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
4682 | # which looks to be a dead project) | ||
4683 | @@ -7934,7 +8434,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
4684 | lt_prog_compiler_pic='-KPIC' | ||
4685 | lt_prog_compiler_static='-Bstatic' | ||
4686 | case $cc_basename in | ||
4687 | - f77* | f90* | f95*) | ||
4688 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
4689 | lt_prog_compiler_wl='-Qoption ld ';; | ||
4690 | *) | ||
4691 | lt_prog_compiler_wl='-Wl,';; | ||
4692 | @@ -7991,13 +8491,17 @@ case $host_os in | ||
4693 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
4694 | ;; | ||
4695 | esac | ||
4696 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
4697 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
4698 | - | ||
4699 | - | ||
4700 | - | ||
4701 | - | ||
4702 | |||
4703 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
4704 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
4705 | +if ${lt_cv_prog_compiler_pic+:} false; then : | ||
4706 | + $as_echo_n "(cached) " >&6 | ||
4707 | +else | ||
4708 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
4709 | +fi | ||
4710 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
4711 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
4712 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
4713 | |||
4714 | # | ||
4715 | # Check to make sure the PIC flag actually works. | ||
4716 | @@ -8058,6 +8562,11 @@ fi | ||
4717 | |||
4718 | |||
4719 | |||
4720 | + | ||
4721 | + | ||
4722 | + | ||
4723 | + | ||
4724 | + | ||
4725 | # | ||
4726 | # Check to make sure the static flag actually works. | ||
4727 | # | ||
4728 | @@ -8408,7 +8917,8 @@ _LT_EOF | ||
4729 | allow_undefined_flag=unsupported | ||
4730 | always_export_symbols=no | ||
4731 | enable_shared_with_static_runtimes=yes | ||
4732 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
4733 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
4734 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
4735 | |||
4736 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
4737 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
4738 | @@ -8507,12 +9017,12 @@ _LT_EOF | ||
4739 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
4740 | hardcode_libdir_flag_spec= | ||
4741 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
4742 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
4743 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
4744 | if test "x$supports_anon_versioning" = xyes; then | ||
4745 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
4746 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
4747 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
4748 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
4749 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
4750 | fi | ||
4751 | ;; | ||
4752 | esac | ||
4753 | @@ -8526,8 +9036,8 @@ _LT_EOF | ||
4754 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
4755 | wlarc= | ||
4756 | else | ||
4757 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4758 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4759 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4760 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4761 | fi | ||
4762 | ;; | ||
4763 | |||
4764 | @@ -8545,8 +9055,8 @@ _LT_EOF | ||
4765 | |||
4766 | _LT_EOF | ||
4767 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
4768 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4769 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4770 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4771 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4772 | else | ||
4773 | ld_shlibs=no | ||
4774 | fi | ||
4775 | @@ -8592,8 +9102,8 @@ _LT_EOF | ||
4776 | |||
4777 | *) | ||
4778 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
4779 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4780 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4781 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4782 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4783 | else | ||
4784 | ld_shlibs=no | ||
4785 | fi | ||
4786 | @@ -8723,7 +9233,13 @@ _LT_EOF | ||
4787 | allow_undefined_flag='-berok' | ||
4788 | # Determine the default libpath from the value encoded in an | ||
4789 | # empty executable. | ||
4790 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4791 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
4792 | + aix_libpath=$lt_cv_aix_libpath | ||
4793 | +else | ||
4794 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
4795 | + $as_echo_n "(cached) " >&6 | ||
4796 | +else | ||
4797 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4798 | /* end confdefs.h. */ | ||
4799 | |||
4800 | int | ||
4801 | @@ -8736,22 +9252,29 @@ main () | ||
4802 | _ACEOF | ||
4803 | if ac_fn_c_try_link "$LINENO"; then : | ||
4804 | |||
4805 | -lt_aix_libpath_sed=' | ||
4806 | - /Import File Strings/,/^$/ { | ||
4807 | - /^0/ { | ||
4808 | - s/^0 *\(.*\)$/\1/ | ||
4809 | - p | ||
4810 | - } | ||
4811 | - }' | ||
4812 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
4813 | -# Check for a 64-bit object if we didn't find anything. | ||
4814 | -if test -z "$aix_libpath"; then | ||
4815 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
4816 | -fi | ||
4817 | + lt_aix_libpath_sed=' | ||
4818 | + /Import File Strings/,/^$/ { | ||
4819 | + /^0/ { | ||
4820 | + s/^0 *\([^ ]*\) *$/\1/ | ||
4821 | + p | ||
4822 | + } | ||
4823 | + }' | ||
4824 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
4825 | + # Check for a 64-bit object if we didn't find anything. | ||
4826 | + if test -z "$lt_cv_aix_libpath_"; then | ||
4827 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
4828 | + fi | ||
4829 | fi | ||
4830 | rm -f core conftest.err conftest.$ac_objext \ | ||
4831 | conftest$ac_exeext conftest.$ac_ext | ||
4832 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
4833 | + if test -z "$lt_cv_aix_libpath_"; then | ||
4834 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
4835 | + fi | ||
4836 | + | ||
4837 | +fi | ||
4838 | + | ||
4839 | + aix_libpath=$lt_cv_aix_libpath_ | ||
4840 | +fi | ||
4841 | |||
4842 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
4843 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
4844 | @@ -8763,7 +9286,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
4845 | else | ||
4846 | # Determine the default libpath from the value encoded in an | ||
4847 | # empty executable. | ||
4848 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4849 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
4850 | + aix_libpath=$lt_cv_aix_libpath | ||
4851 | +else | ||
4852 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
4853 | + $as_echo_n "(cached) " >&6 | ||
4854 | +else | ||
4855 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4856 | /* end confdefs.h. */ | ||
4857 | |||
4858 | int | ||
4859 | @@ -8776,22 +9305,29 @@ main () | ||
4860 | _ACEOF | ||
4861 | if ac_fn_c_try_link "$LINENO"; then : | ||
4862 | |||
4863 | -lt_aix_libpath_sed=' | ||
4864 | - /Import File Strings/,/^$/ { | ||
4865 | - /^0/ { | ||
4866 | - s/^0 *\(.*\)$/\1/ | ||
4867 | - p | ||
4868 | - } | ||
4869 | - }' | ||
4870 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
4871 | -# Check for a 64-bit object if we didn't find anything. | ||
4872 | -if test -z "$aix_libpath"; then | ||
4873 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
4874 | -fi | ||
4875 | + lt_aix_libpath_sed=' | ||
4876 | + /Import File Strings/,/^$/ { | ||
4877 | + /^0/ { | ||
4878 | + s/^0 *\([^ ]*\) *$/\1/ | ||
4879 | + p | ||
4880 | + } | ||
4881 | + }' | ||
4882 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
4883 | + # Check for a 64-bit object if we didn't find anything. | ||
4884 | + if test -z "$lt_cv_aix_libpath_"; then | ||
4885 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
4886 | + fi | ||
4887 | fi | ||
4888 | rm -f core conftest.err conftest.$ac_objext \ | ||
4889 | conftest$ac_exeext conftest.$ac_ext | ||
4890 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
4891 | + if test -z "$lt_cv_aix_libpath_"; then | ||
4892 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
4893 | + fi | ||
4894 | + | ||
4895 | +fi | ||
4896 | + | ||
4897 | + aix_libpath=$lt_cv_aix_libpath_ | ||
4898 | +fi | ||
4899 | |||
4900 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
4901 | # Warning - without using the other run time loading flags, | ||
4902 | @@ -8836,20 +9372,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
4903 | # Microsoft Visual C++. | ||
4904 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
4905 | # no search path for DLLs. | ||
4906 | - hardcode_libdir_flag_spec=' ' | ||
4907 | - allow_undefined_flag=unsupported | ||
4908 | - # Tell ltmain to make .lib files, not .a files. | ||
4909 | - libext=lib | ||
4910 | - # Tell ltmain to make .dll files, not .so files. | ||
4911 | - shrext_cmds=".dll" | ||
4912 | - # FIXME: Setting linknames here is a bad hack. | ||
4913 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
4914 | - # The linker will automatically build a .lib file if we build a DLL. | ||
4915 | - old_archive_from_new_cmds='true' | ||
4916 | - # FIXME: Should let the user specify the lib program. | ||
4917 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
4918 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
4919 | - enable_shared_with_static_runtimes=yes | ||
4920 | + case $cc_basename in | ||
4921 | + cl*) | ||
4922 | + # Native MSVC | ||
4923 | + hardcode_libdir_flag_spec=' ' | ||
4924 | + allow_undefined_flag=unsupported | ||
4925 | + always_export_symbols=yes | ||
4926 | + file_list_spec='@' | ||
4927 | + # Tell ltmain to make .lib files, not .a files. | ||
4928 | + libext=lib | ||
4929 | + # Tell ltmain to make .dll files, not .so files. | ||
4930 | + shrext_cmds=".dll" | ||
4931 | + # FIXME: Setting linknames here is a bad hack. | ||
4932 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
4933 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
4934 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
4935 | + else | ||
4936 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
4937 | + fi~ | ||
4938 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
4939 | + linknames=' | ||
4940 | + # The linker will not automatically build a static lib if we build a DLL. | ||
4941 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
4942 | + enable_shared_with_static_runtimes=yes | ||
4943 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
4944 | + # Don't use ranlib | ||
4945 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
4946 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
4947 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
4948 | + case $lt_outputfile in | ||
4949 | + *.exe|*.EXE) ;; | ||
4950 | + *) | ||
4951 | + lt_outputfile="$lt_outputfile.exe" | ||
4952 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
4953 | + ;; | ||
4954 | + esac~ | ||
4955 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
4956 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
4957 | + $RM "$lt_outputfile.manifest"; | ||
4958 | + fi' | ||
4959 | + ;; | ||
4960 | + *) | ||
4961 | + # Assume MSVC wrapper | ||
4962 | + hardcode_libdir_flag_spec=' ' | ||
4963 | + allow_undefined_flag=unsupported | ||
4964 | + # Tell ltmain to make .lib files, not .a files. | ||
4965 | + libext=lib | ||
4966 | + # Tell ltmain to make .dll files, not .so files. | ||
4967 | + shrext_cmds=".dll" | ||
4968 | + # FIXME: Setting linknames here is a bad hack. | ||
4969 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
4970 | + # The linker will automatically build a .lib file if we build a DLL. | ||
4971 | + old_archive_from_new_cmds='true' | ||
4972 | + # FIXME: Should let the user specify the lib program. | ||
4973 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
4974 | + enable_shared_with_static_runtimes=yes | ||
4975 | + ;; | ||
4976 | + esac | ||
4977 | ;; | ||
4978 | |||
4979 | darwin* | rhapsody*) | ||
4980 | @@ -8910,7 +9489,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
4981 | |||
4982 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
4983 | freebsd* | dragonfly*) | ||
4984 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
4985 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
4986 | hardcode_libdir_flag_spec='-R$libdir' | ||
4987 | hardcode_direct=yes | ||
4988 | hardcode_shlibpath_var=no | ||
4989 | @@ -8918,7 +9497,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
4990 | |||
4991 | hpux9*) | ||
4992 | if test "$GCC" = yes; then | ||
4993 | - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
4994 | + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
4995 | else | ||
4996 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
4997 | fi | ||
4998 | @@ -8934,7 +9513,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
4999 | |||
5000 | hpux10*) | ||
5001 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
5002 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
5003 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
5004 | else | ||
5005 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
5006 | fi | ||
5007 | @@ -8958,10 +9537,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
5008 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
5009 | ;; | ||
5010 | ia64*) | ||
5011 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
5012 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
5013 | ;; | ||
5014 | *) | ||
5015 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
5016 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
5017 | ;; | ||
5018 | esac | ||
5019 | else | ||
5020 | @@ -9040,23 +9619,36 @@ fi | ||
5021 | |||
5022 | irix5* | irix6* | nonstopux*) | ||
5023 | if test "$GCC" = yes; then | ||
5024 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
5025 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
5026 | # Try to use the -exported_symbol ld option, if it does not | ||
5027 | # work, assume that -exports_file does not work either and | ||
5028 | # implicitly export all symbols. | ||
5029 | - save_LDFLAGS="$LDFLAGS" | ||
5030 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
5031 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5032 | + # This should be the same for all languages, so no per-tag cache variable. | ||
5033 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
5034 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
5035 | +if ${lt_cv_irix_exported_symbol+:} false; then : | ||
5036 | + $as_echo_n "(cached) " >&6 | ||
5037 | +else | ||
5038 | + save_LDFLAGS="$LDFLAGS" | ||
5039 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
5040 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5041 | /* end confdefs.h. */ | ||
5042 | -int foo(void) {} | ||
5043 | +int foo (void) { return 0; } | ||
5044 | _ACEOF | ||
5045 | if ac_fn_c_try_link "$LINENO"; then : | ||
5046 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
5047 | - | ||
5048 | + lt_cv_irix_exported_symbol=yes | ||
5049 | +else | ||
5050 | + lt_cv_irix_exported_symbol=no | ||
5051 | fi | ||
5052 | rm -f core conftest.err conftest.$ac_objext \ | ||
5053 | conftest$ac_exeext conftest.$ac_ext | ||
5054 | - LDFLAGS="$save_LDFLAGS" | ||
5055 | + LDFLAGS="$save_LDFLAGS" | ||
5056 | +fi | ||
5057 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
5058 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
5059 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
5060 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
5061 | + fi | ||
5062 | else | ||
5063 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
5064 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
5065 | @@ -9141,7 +9733,7 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
5066 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
5067 | if test "$GCC" = yes; then | ||
5068 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
5069 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
5070 | + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
5071 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
5072 | else | ||
5073 | allow_undefined_flag=' -expect_unresolved \*' | ||
5074 | @@ -9160,9 +9752,9 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
5075 | no_undefined_flag=' -z defs' | ||
5076 | if test "$GCC" = yes; then | ||
5077 | wlarc='${wl}' | ||
5078 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
5079 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
5080 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
5081 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
5082 | + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
5083 | else | ||
5084 | case `$CC -V 2>&1` in | ||
5085 | *"Compilers 5.0"*) | ||
5086 | @@ -9738,8 +10330,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
5087 | need_version=no | ||
5088 | need_lib_prefix=no | ||
5089 | |||
5090 | - case $GCC,$host_os in | ||
5091 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
5092 | + case $GCC,$cc_basename in | ||
5093 | + yes,*) | ||
5094 | + # gcc | ||
5095 | library_names_spec='$libname.dll.a' | ||
5096 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
5097 | postinstall_cmds='base_file=`basename \${file}`~ | ||
5098 | @@ -9772,13 +10365,71 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
5099 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
5100 | ;; | ||
5101 | esac | ||
5102 | + dynamic_linker='Win32 ld.exe' | ||
5103 | + ;; | ||
5104 | + | ||
5105 | + *,cl*) | ||
5106 | + # Native MSVC | ||
5107 | + libname_spec='$name' | ||
5108 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
5109 | + library_names_spec='${libname}.dll.lib' | ||
5110 | + | ||
5111 | + case $build_os in | ||
5112 | + mingw*) | ||
5113 | + sys_lib_search_path_spec= | ||
5114 | + lt_save_ifs=$IFS | ||
5115 | + IFS=';' | ||
5116 | + for lt_path in $LIB | ||
5117 | + do | ||
5118 | + IFS=$lt_save_ifs | ||
5119 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
5120 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
5121 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
5122 | + done | ||
5123 | + IFS=$lt_save_ifs | ||
5124 | + # Convert to MSYS style. | ||
5125 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
5126 | + ;; | ||
5127 | + cygwin*) | ||
5128 | + # Convert to unix form, then to dos form, then back to unix form | ||
5129 | + # but this time dos style (no spaces!) so that the unix form looks | ||
5130 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
5131 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
5132 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
5133 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
5134 | + ;; | ||
5135 | + *) | ||
5136 | + sys_lib_search_path_spec="$LIB" | ||
5137 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
5138 | + # It is most probably a Windows format PATH. | ||
5139 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
5140 | + else | ||
5141 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
5142 | + fi | ||
5143 | + # FIXME: find the short name or the path components, as spaces are | ||
5144 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
5145 | + ;; | ||
5146 | + esac | ||
5147 | + | ||
5148 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
5149 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
5150 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
5151 | + dldir=$destdir/`dirname \$dlpath`~ | ||
5152 | + test -d \$dldir || mkdir -p \$dldir~ | ||
5153 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
5154 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
5155 | + dlpath=$dir/\$dldll~ | ||
5156 | + $RM \$dlpath' | ||
5157 | + shlibpath_overrides_runpath=yes | ||
5158 | + dynamic_linker='Win32 link.exe' | ||
5159 | ;; | ||
5160 | |||
5161 | *) | ||
5162 | + # Assume MSVC wrapper | ||
5163 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
5164 | + dynamic_linker='Win32 ld.exe' | ||
5165 | ;; | ||
5166 | esac | ||
5167 | - dynamic_linker='Win32 ld.exe' | ||
5168 | # FIXME: first we should search . and the directory the executable is in | ||
5169 | shlibpath_var=PATH | ||
5170 | ;; | ||
5171 | @@ -9860,7 +10511,7 @@ haiku*) | ||
5172 | soname_spec='${libname}${release}${shared_ext}$major' | ||
5173 | shlibpath_var=LIBRARY_PATH | ||
5174 | shlibpath_overrides_runpath=yes | ||
5175 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
5176 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
5177 | hardcode_into_libs=yes | ||
5178 | ;; | ||
5179 | |||
5180 | @@ -10656,7 +11307,7 @@ else | ||
5181 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
5182 | lt_status=$lt_dlunknown | ||
5183 | cat > conftest.$ac_ext <<_LT_EOF | ||
5184 | -#line 10659 "configure" | ||
5185 | +#line $LINENO "configure" | ||
5186 | #include "confdefs.h" | ||
5187 | |||
5188 | #if HAVE_DLFCN_H | ||
5189 | @@ -10700,10 +11351,10 @@ else | ||
5190 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
5191 | correspondingly for the symbols needed. */ | ||
5192 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
5193 | -void fnord () __attribute__((visibility("default"))); | ||
5194 | +int fnord () __attribute__((visibility("default"))); | ||
5195 | #endif | ||
5196 | |||
5197 | -void fnord () { int i=42; } | ||
5198 | +int fnord () { return 42; } | ||
5199 | int main () | ||
5200 | { | ||
5201 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
5202 | @@ -10762,7 +11413,7 @@ else | ||
5203 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
5204 | lt_status=$lt_dlunknown | ||
5205 | cat > conftest.$ac_ext <<_LT_EOF | ||
5206 | -#line 10765 "configure" | ||
5207 | +#line $LINENO "configure" | ||
5208 | #include "confdefs.h" | ||
5209 | |||
5210 | #if HAVE_DLFCN_H | ||
5211 | @@ -10806,10 +11457,10 @@ else | ||
5212 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
5213 | correspondingly for the symbols needed. */ | ||
5214 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
5215 | -void fnord () __attribute__((visibility("default"))); | ||
5216 | +int fnord () __attribute__((visibility("default"))); | ||
5217 | #endif | ||
5218 | |||
5219 | -void fnord () { int i=42; } | ||
5220 | +int fnord () { return 42; } | ||
5221 | int main () | ||
5222 | { | ||
5223 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
5224 | @@ -14785,13 +15436,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
5225 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
5226 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
5227 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
5228 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
5229 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
5230 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
5231 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
5232 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
5233 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
5234 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
5235 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
5236 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
5237 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
5238 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
5239 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
5240 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
5241 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
5242 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
5243 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
5244 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
5245 | @@ -14806,14 +15464,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de | ||
5246 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
5247 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
5248 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
5249 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
5250 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
5251 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
5252 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
5253 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
5254 | -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
5255 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
5256 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
5257 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
5258 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
5259 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
5260 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
5261 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
5262 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
5263 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
5264 | @@ -14846,12 +15507,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q | ||
5265 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
5266 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
5267 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
5268 | -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | ||
5269 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
5270 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
5271 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
5272 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
5273 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
5274 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
5275 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
5276 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
5277 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
5278 | @@ -14906,8 +15567,13 @@ reload_flag \ | ||
5279 | OBJDUMP \ | ||
5280 | deplibs_check_method \ | ||
5281 | file_magic_cmd \ | ||
5282 | +file_magic_glob \ | ||
5283 | +want_nocaseglob \ | ||
5284 | +DLLTOOL \ | ||
5285 | +sharedlib_from_linklib_cmd \ | ||
5286 | AR \ | ||
5287 | AR_FLAGS \ | ||
5288 | +archiver_list_spec \ | ||
5289 | STRIP \ | ||
5290 | RANLIB \ | ||
5291 | CC \ | ||
5292 | @@ -14917,12 +15583,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
5293 | lt_cv_sys_global_symbol_to_cdecl \ | ||
5294 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
5295 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
5296 | +nm_file_list_spec \ | ||
5297 | lt_prog_compiler_no_builtin_flag \ | ||
5298 | -lt_prog_compiler_wl \ | ||
5299 | lt_prog_compiler_pic \ | ||
5300 | +lt_prog_compiler_wl \ | ||
5301 | lt_prog_compiler_static \ | ||
5302 | lt_cv_prog_compiler_c_o \ | ||
5303 | need_locks \ | ||
5304 | +MANIFEST_TOOL \ | ||
5305 | DSYMUTIL \ | ||
5306 | NMEDIT \ | ||
5307 | LIPO \ | ||
5308 | @@ -14938,7 +15606,6 @@ no_undefined_flag \ | ||
5309 | hardcode_libdir_flag_spec \ | ||
5310 | hardcode_libdir_flag_spec_ld \ | ||
5311 | hardcode_libdir_separator \ | ||
5312 | -fix_srcfile_path \ | ||
5313 | exclude_expsyms \ | ||
5314 | include_expsyms \ | ||
5315 | file_list_spec \ | ||
5316 | @@ -14974,6 +15641,7 @@ module_cmds \ | ||
5317 | module_expsym_cmds \ | ||
5318 | export_symbols_cmds \ | ||
5319 | prelink_cmds \ | ||
5320 | +postlink_cmds \ | ||
5321 | postinstall_cmds \ | ||
5322 | postuninstall_cmds \ | ||
5323 | finish_cmds \ | ||
5324 | @@ -15747,7 +16415,8 @@ $as_echo X"$file" | | ||
5325 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
5326 | # | ||
5327 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
5328 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
5329 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
5330 | +# Inc. | ||
5331 | # Written by Gordon Matzigkeit, 1996 | ||
5332 | # | ||
5333 | # This file is part of GNU Libtool. | ||
5334 | @@ -15850,19 +16519,42 @@ SP2NL=$lt_lt_SP2NL | ||
5335 | # turn newlines into spaces. | ||
5336 | NL2SP=$lt_lt_NL2SP | ||
5337 | |||
5338 | +# convert \$build file names to \$host format. | ||
5339 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
5340 | + | ||
5341 | +# convert \$build files to toolchain format. | ||
5342 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
5343 | + | ||
5344 | # An object symbol dumper. | ||
5345 | OBJDUMP=$lt_OBJDUMP | ||
5346 | |||
5347 | # Method to check whether dependent libraries are shared objects. | ||
5348 | deplibs_check_method=$lt_deplibs_check_method | ||
5349 | |||
5350 | -# Command to use when deplibs_check_method == "file_magic". | ||
5351 | +# Command to use when deplibs_check_method = "file_magic". | ||
5352 | file_magic_cmd=$lt_file_magic_cmd | ||
5353 | |||
5354 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
5355 | +file_magic_glob=$lt_file_magic_glob | ||
5356 | + | ||
5357 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
5358 | +want_nocaseglob=$lt_want_nocaseglob | ||
5359 | + | ||
5360 | +# DLL creation program. | ||
5361 | +DLLTOOL=$lt_DLLTOOL | ||
5362 | + | ||
5363 | +# Command to associate shared and link libraries. | ||
5364 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
5365 | + | ||
5366 | # The archiver. | ||
5367 | AR=$lt_AR | ||
5368 | + | ||
5369 | +# Flags to create an archive. | ||
5370 | AR_FLAGS=$lt_AR_FLAGS | ||
5371 | |||
5372 | +# How to feed a file listing to the archiver. | ||
5373 | +archiver_list_spec=$lt_archiver_list_spec | ||
5374 | + | ||
5375 | # A symbol stripping program. | ||
5376 | STRIP=$lt_STRIP | ||
5377 | |||
5378 | @@ -15892,6 +16584,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
5379 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
5380 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
5381 | |||
5382 | +# Specify filename containing input files for \$NM. | ||
5383 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
5384 | + | ||
5385 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
5386 | +lt_sysroot=$lt_sysroot | ||
5387 | + | ||
5388 | # The name of the directory that contains temporary libtool files. | ||
5389 | objdir=$objdir | ||
5390 | |||
5391 | @@ -15901,6 +16599,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
5392 | # Must we lock files when doing compilation? | ||
5393 | need_locks=$lt_need_locks | ||
5394 | |||
5395 | +# Manifest tool. | ||
5396 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
5397 | + | ||
5398 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
5399 | DSYMUTIL=$lt_DSYMUTIL | ||
5400 | |||
5401 | @@ -16015,12 +16716,12 @@ with_gcc=$GCC | ||
5402 | # Compiler flag to turn off builtin functions. | ||
5403 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
5404 | |||
5405 | -# How to pass a linker flag through the compiler. | ||
5406 | -wl=$lt_lt_prog_compiler_wl | ||
5407 | - | ||
5408 | # Additional compiler flags for building library objects. | ||
5409 | pic_flag=$lt_lt_prog_compiler_pic | ||
5410 | |||
5411 | +# How to pass a linker flag through the compiler. | ||
5412 | +wl=$lt_lt_prog_compiler_wl | ||
5413 | + | ||
5414 | # Compiler flag to prevent dynamic linking. | ||
5415 | link_static_flag=$lt_lt_prog_compiler_static | ||
5416 | |||
5417 | @@ -16107,9 +16808,6 @@ inherit_rpath=$inherit_rpath | ||
5418 | # Whether libtool must link a program against all its dependency libraries. | ||
5419 | link_all_deplibs=$link_all_deplibs | ||
5420 | |||
5421 | -# Fix the shell variable \$srcfile for the compiler. | ||
5422 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
5423 | - | ||
5424 | # Set to "yes" if exported symbols are required. | ||
5425 | always_export_symbols=$always_export_symbols | ||
5426 | |||
5427 | @@ -16125,6 +16823,9 @@ include_expsyms=$lt_include_expsyms | ||
5428 | # Commands necessary for linking programs (against libraries) with templates. | ||
5429 | prelink_cmds=$lt_prelink_cmds | ||
5430 | |||
5431 | +# Commands necessary for finishing linking programs. | ||
5432 | +postlink_cmds=$lt_postlink_cmds | ||
5433 | + | ||
5434 | # Specify filename containing input files. | ||
5435 | file_list_spec=$lt_file_list_spec | ||
5436 | |||
5437 | @@ -16157,210 +16858,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
5438 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
5439 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
5440 | # is reportedly fixed, but why not run on old versions too? | ||
5441 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
5442 | - || (rm -f "$cfgfile"; exit 1) | ||
5443 | - | ||
5444 | - case $xsi_shell in | ||
5445 | - yes) | ||
5446 | - cat << \_LT_EOF >> "$cfgfile" | ||
5447 | - | ||
5448 | -# func_dirname file append nondir_replacement | ||
5449 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
5450 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
5451 | -func_dirname () | ||
5452 | -{ | ||
5453 | - case ${1} in | ||
5454 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
5455 | - * ) func_dirname_result="${3}" ;; | ||
5456 | - esac | ||
5457 | -} | ||
5458 | - | ||
5459 | -# func_basename file | ||
5460 | -func_basename () | ||
5461 | -{ | ||
5462 | - func_basename_result="${1##*/}" | ||
5463 | -} | ||
5464 | - | ||
5465 | -# func_dirname_and_basename file append nondir_replacement | ||
5466 | -# perform func_basename and func_dirname in a single function | ||
5467 | -# call: | ||
5468 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
5469 | -# add APPEND to the result, otherwise set result | ||
5470 | -# to NONDIR_REPLACEMENT. | ||
5471 | -# value returned in "$func_dirname_result" | ||
5472 | -# basename: Compute filename of FILE. | ||
5473 | -# value retuned in "$func_basename_result" | ||
5474 | -# Implementation must be kept synchronized with func_dirname | ||
5475 | -# and func_basename. For efficiency, we do not delegate to | ||
5476 | -# those functions but instead duplicate the functionality here. | ||
5477 | -func_dirname_and_basename () | ||
5478 | -{ | ||
5479 | - case ${1} in | ||
5480 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
5481 | - * ) func_dirname_result="${3}" ;; | ||
5482 | - esac | ||
5483 | - func_basename_result="${1##*/}" | ||
5484 | -} | ||
5485 | - | ||
5486 | -# func_stripname prefix suffix name | ||
5487 | -# strip PREFIX and SUFFIX off of NAME. | ||
5488 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
5489 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
5490 | -# dot (in which case that matches only a dot). | ||
5491 | -func_stripname () | ||
5492 | -{ | ||
5493 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
5494 | - # positional parameters, so assign one to ordinary parameter first. | ||
5495 | - func_stripname_result=${3} | ||
5496 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
5497 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
5498 | -} | ||
5499 | - | ||
5500 | -# func_opt_split | ||
5501 | -func_opt_split () | ||
5502 | -{ | ||
5503 | - func_opt_split_opt=${1%%=*} | ||
5504 | - func_opt_split_arg=${1#*=} | ||
5505 | -} | ||
5506 | - | ||
5507 | -# func_lo2o object | ||
5508 | -func_lo2o () | ||
5509 | -{ | ||
5510 | - case ${1} in | ||
5511 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
5512 | - *) func_lo2o_result=${1} ;; | ||
5513 | - esac | ||
5514 | -} | ||
5515 | - | ||
5516 | -# func_xform libobj-or-source | ||
5517 | -func_xform () | ||
5518 | -{ | ||
5519 | - func_xform_result=${1%.*}.lo | ||
5520 | -} | ||
5521 | - | ||
5522 | -# func_arith arithmetic-term... | ||
5523 | -func_arith () | ||
5524 | -{ | ||
5525 | - func_arith_result=$(( $* )) | ||
5526 | -} | ||
5527 | - | ||
5528 | -# func_len string | ||
5529 | -# STRING may not start with a hyphen. | ||
5530 | -func_len () | ||
5531 | -{ | ||
5532 | - func_len_result=${#1} | ||
5533 | -} | ||
5534 | - | ||
5535 | -_LT_EOF | ||
5536 | - ;; | ||
5537 | - *) # Bourne compatible functions. | ||
5538 | - cat << \_LT_EOF >> "$cfgfile" | ||
5539 | - | ||
5540 | -# func_dirname file append nondir_replacement | ||
5541 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
5542 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
5543 | -func_dirname () | ||
5544 | -{ | ||
5545 | - # Extract subdirectory from the argument. | ||
5546 | - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
5547 | - if test "X$func_dirname_result" = "X${1}"; then | ||
5548 | - func_dirname_result="${3}" | ||
5549 | - else | ||
5550 | - func_dirname_result="$func_dirname_result${2}" | ||
5551 | - fi | ||
5552 | -} | ||
5553 | - | ||
5554 | -# func_basename file | ||
5555 | -func_basename () | ||
5556 | -{ | ||
5557 | - func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
5558 | -} | ||
5559 | - | ||
5560 | - | ||
5561 | -# func_stripname prefix suffix name | ||
5562 | -# strip PREFIX and SUFFIX off of NAME. | ||
5563 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
5564 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
5565 | -# dot (in which case that matches only a dot). | ||
5566 | -# func_strip_suffix prefix name | ||
5567 | -func_stripname () | ||
5568 | -{ | ||
5569 | - case ${2} in | ||
5570 | - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
5571 | - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
5572 | - esac | ||
5573 | -} | ||
5574 | - | ||
5575 | -# sed scripts: | ||
5576 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
5577 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
5578 | - | ||
5579 | -# func_opt_split | ||
5580 | -func_opt_split () | ||
5581 | -{ | ||
5582 | - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | ||
5583 | - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | ||
5584 | -} | ||
5585 | - | ||
5586 | -# func_lo2o object | ||
5587 | -func_lo2o () | ||
5588 | -{ | ||
5589 | - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
5590 | -} | ||
5591 | - | ||
5592 | -# func_xform libobj-or-source | ||
5593 | -func_xform () | ||
5594 | -{ | ||
5595 | - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
5596 | -} | ||
5597 | - | ||
5598 | -# func_arith arithmetic-term... | ||
5599 | -func_arith () | ||
5600 | -{ | ||
5601 | - func_arith_result=`expr "$@"` | ||
5602 | -} | ||
5603 | - | ||
5604 | -# func_len string | ||
5605 | -# STRING may not start with a hyphen. | ||
5606 | -func_len () | ||
5607 | -{ | ||
5608 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
5609 | -} | ||
5610 | - | ||
5611 | -_LT_EOF | ||
5612 | -esac | ||
5613 | - | ||
5614 | -case $lt_shell_append in | ||
5615 | - yes) | ||
5616 | - cat << \_LT_EOF >> "$cfgfile" | ||
5617 | - | ||
5618 | -# func_append var value | ||
5619 | -# Append VALUE to the end of shell variable VAR. | ||
5620 | -func_append () | ||
5621 | -{ | ||
5622 | - eval "$1+=\$2" | ||
5623 | -} | ||
5624 | -_LT_EOF | ||
5625 | - ;; | ||
5626 | - *) | ||
5627 | - cat << \_LT_EOF >> "$cfgfile" | ||
5628 | - | ||
5629 | -# func_append var value | ||
5630 | -# Append VALUE to the end of shell variable VAR. | ||
5631 | -func_append () | ||
5632 | -{ | ||
5633 | - eval "$1=\$$1\$2" | ||
5634 | -} | ||
5635 | - | ||
5636 | -_LT_EOF | ||
5637 | - ;; | ||
5638 | - esac | ||
5639 | - | ||
5640 | - | ||
5641 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
5642 | - || (rm -f "$cfgfile"; exit 1) | ||
5643 | - | ||
5644 | - mv -f "$cfgfile" "$ofile" || | ||
5645 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
5646 | + || (rm -f "$cfgfile"; exit 1) | ||
5647 | + | ||
5648 | + if test x"$xsi_shell" = xyes; then | ||
5649 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
5650 | +func_dirname ()\ | ||
5651 | +{\ | ||
5652 | +\ case ${1} in\ | ||
5653 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
5654 | +\ * ) func_dirname_result="${3}" ;;\ | ||
5655 | +\ esac\ | ||
5656 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5657 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5658 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5659 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5660 | + | ||
5661 | + | ||
5662 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
5663 | +func_basename ()\ | ||
5664 | +{\ | ||
5665 | +\ func_basename_result="${1##*/}"\ | ||
5666 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5667 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5668 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5669 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5670 | + | ||
5671 | + | ||
5672 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
5673 | +func_dirname_and_basename ()\ | ||
5674 | +{\ | ||
5675 | +\ case ${1} in\ | ||
5676 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
5677 | +\ * ) func_dirname_result="${3}" ;;\ | ||
5678 | +\ esac\ | ||
5679 | +\ func_basename_result="${1##*/}"\ | ||
5680 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5681 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5682 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5683 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5684 | + | ||
5685 | + | ||
5686 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
5687 | +func_stripname ()\ | ||
5688 | +{\ | ||
5689 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
5690 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
5691 | +\ func_stripname_result=${3}\ | ||
5692 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
5693 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
5694 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5695 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5696 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5697 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5698 | + | ||
5699 | + | ||
5700 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
5701 | +func_split_long_opt ()\ | ||
5702 | +{\ | ||
5703 | +\ func_split_long_opt_name=${1%%=*}\ | ||
5704 | +\ func_split_long_opt_arg=${1#*=}\ | ||
5705 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5706 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5707 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5708 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5709 | + | ||
5710 | + | ||
5711 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
5712 | +func_split_short_opt ()\ | ||
5713 | +{\ | ||
5714 | +\ func_split_short_opt_arg=${1#??}\ | ||
5715 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
5716 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5717 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5718 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5719 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5720 | + | ||
5721 | + | ||
5722 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
5723 | +func_lo2o ()\ | ||
5724 | +{\ | ||
5725 | +\ case ${1} in\ | ||
5726 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
5727 | +\ *) func_lo2o_result=${1} ;;\ | ||
5728 | +\ esac\ | ||
5729 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5730 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5731 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5732 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5733 | + | ||
5734 | + | ||
5735 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
5736 | +func_xform ()\ | ||
5737 | +{\ | ||
5738 | + func_xform_result=${1%.*}.lo\ | ||
5739 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5740 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5741 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5742 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5743 | + | ||
5744 | + | ||
5745 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
5746 | +func_arith ()\ | ||
5747 | +{\ | ||
5748 | + func_arith_result=$(( $* ))\ | ||
5749 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5750 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5751 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5752 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5753 | + | ||
5754 | + | ||
5755 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
5756 | +func_len ()\ | ||
5757 | +{\ | ||
5758 | + func_len_result=${#1}\ | ||
5759 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5760 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5761 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5762 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5763 | + | ||
5764 | +fi | ||
5765 | + | ||
5766 | +if test x"$lt_shell_append" = xyes; then | ||
5767 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
5768 | +func_append ()\ | ||
5769 | +{\ | ||
5770 | + eval "${1}+=\\${2}"\ | ||
5771 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5772 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5773 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5774 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5775 | + | ||
5776 | + | ||
5777 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
5778 | +func_append_quoted ()\ | ||
5779 | +{\ | ||
5780 | +\ func_quote_for_eval "${2}"\ | ||
5781 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
5782 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
5783 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5784 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5785 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
5786 | + | ||
5787 | + | ||
5788 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
5789 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
5790 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5791 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5792 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
5793 | +else | ||
5794 | + # Save a `func_append' function call even when '+=' is not available | ||
5795 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
5796 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
5797 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
5798 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
5799 | +fi | ||
5800 | + | ||
5801 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
5802 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
5803 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
5804 | +fi | ||
5805 | + | ||
5806 | + | ||
5807 | + mv -f "$cfgfile" "$ofile" || | ||
5808 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
5809 | chmod +x "$ofile" | ||
5810 | |||
5811 | diff --git a/gprof/configure b/gprof/configure | ||
5812 | index 5703bba4462..e1ac86ec797 100755 | ||
5813 | --- a/gprof/configure | ||
5814 | +++ b/gprof/configure | ||
5815 | @@ -663,8 +663,11 @@ OTOOL | ||
5816 | LIPO | ||
5817 | NMEDIT | ||
5818 | DSYMUTIL | ||
5819 | +MANIFEST_TOOL | ||
5820 | RANLIB | ||
5821 | +ac_ct_AR | ||
5822 | AR | ||
5823 | +DLLTOOL | ||
5824 | OBJDUMP | ||
5825 | LN_S | ||
5826 | NM | ||
5827 | @@ -781,6 +784,7 @@ enable_static | ||
5828 | with_pic | ||
5829 | enable_fast_install | ||
5830 | with_gnu_ld | ||
5831 | +with_libtool_sysroot | ||
5832 | enable_libtool_lock | ||
5833 | enable_plugins | ||
5834 | enable_largefile | ||
5835 | @@ -1443,6 +1447,8 @@ Optional Packages: | ||
5836 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
5837 | both] | ||
5838 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
5839 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
5840 | + (or the compiler's sysroot if not specified). | ||
5841 | |||
5842 | Some influential environment variables: | ||
5843 | CC C compiler command | ||
5844 | @@ -4471,8 +4477,8 @@ esac | ||
5845 | |||
5846 | |||
5847 | |||
5848 | -macro_version='2.2.7a' | ||
5849 | -macro_revision='1.3134' | ||
5850 | +macro_version='2.4' | ||
5851 | +macro_revision='1.3293' | ||
5852 | |||
5853 | |||
5854 | |||
5855 | @@ -4512,7 +4518,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
5857 | $as_echo_n "checking how to print strings... " >&6; } | ||
5858 | # Test print first, because it will be a builtin if present. | ||
5859 | -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | ||
5860 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
5861 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
5862 | ECHO='print -r --' | ||
5863 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
5864 | @@ -5198,8 +5204,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; | ||
5865 | # Try some XSI features | ||
5866 | xsi_shell=no | ||
5867 | ( _lt_dummy="a/b/c" | ||
5868 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
5869 | - = c,a/b,, \ | ||
5870 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
5871 | + = c,a/b,b/c, \ | ||
5872 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
5873 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
5874 | && xsi_shell=yes | ||
5875 | @@ -5248,6 +5254,80 @@ esac | ||
5876 | |||
5877 | |||
5878 | |||
5879 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
5880 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
5881 | +if ${lt_cv_to_host_file_cmd+:} false; then : | ||
5882 | + $as_echo_n "(cached) " >&6 | ||
5883 | +else | ||
5884 | + case $host in | ||
5885 | + *-*-mingw* ) | ||
5886 | + case $build in | ||
5887 | + *-*-mingw* ) # actually msys | ||
5888 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
5889 | + ;; | ||
5890 | + *-*-cygwin* ) | ||
5891 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
5892 | + ;; | ||
5893 | + * ) # otherwise, assume *nix | ||
5894 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
5895 | + ;; | ||
5896 | + esac | ||
5897 | + ;; | ||
5898 | + *-*-cygwin* ) | ||
5899 | + case $build in | ||
5900 | + *-*-mingw* ) # actually msys | ||
5901 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
5902 | + ;; | ||
5903 | + *-*-cygwin* ) | ||
5904 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
5905 | + ;; | ||
5906 | + * ) # otherwise, assume *nix | ||
5907 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
5908 | + ;; | ||
5909 | + esac | ||
5910 | + ;; | ||
5911 | + * ) # unhandled hosts (and "normal" native builds) | ||
5912 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
5913 | + ;; | ||
5914 | +esac | ||
5915 | + | ||
5916 | +fi | ||
5917 | + | ||
5918 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
5919 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
5920 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
5921 | + | ||
5922 | + | ||
5923 | + | ||
5924 | + | ||
5925 | + | ||
5926 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
5927 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
5928 | +if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
5929 | + $as_echo_n "(cached) " >&6 | ||
5930 | +else | ||
5931 | + #assume ordinary cross tools, or native build. | ||
5932 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
5933 | +case $host in | ||
5934 | + *-*-mingw* ) | ||
5935 | + case $build in | ||
5936 | + *-*-mingw* ) # actually msys | ||
5937 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
5938 | + ;; | ||
5939 | + esac | ||
5940 | + ;; | ||
5941 | +esac | ||
5942 | + | ||
5943 | +fi | ||
5944 | + | ||
5945 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
5946 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
5947 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
5948 | + | ||
5949 | + | ||
5950 | + | ||
5951 | + | ||
5952 | + | ||
5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
5954 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
5955 | if ${lt_cv_ld_reload_flag+:} false; then : | ||
5956 | @@ -5264,6 +5344,11 @@ case $reload_flag in | ||
5957 | esac | ||
5958 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
5959 | case $host_os in | ||
5960 | + cygwin* | mingw* | pw32* | cegcc*) | ||
5961 | + if test "$GCC" != yes; then | ||
5962 | + reload_cmds=false | ||
5963 | + fi | ||
5964 | + ;; | ||
5965 | darwin*) | ||
5966 | if test "$GCC" = yes; then | ||
5967 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
5968 | @@ -5432,7 +5517,8 @@ mingw* | pw32*) | ||
5969 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
5970 | lt_cv_file_magic_cmd='func_win32_libid' | ||
5971 | else | ||
5972 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
5973 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
5974 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
5975 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
5976 | fi | ||
5977 | ;; | ||
5978 | @@ -5586,6 +5672,21 @@ esac | ||
5979 | fi | ||
5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
5981 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
5982 | + | ||
5983 | +file_magic_glob= | ||
5984 | +want_nocaseglob=no | ||
5985 | +if test "$build" = "$host"; then | ||
5986 | + case $host_os in | ||
5987 | + mingw* | pw32*) | ||
5988 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
5989 | + want_nocaseglob=yes | ||
5990 | + else | ||
5991 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
5992 | + fi | ||
5993 | + ;; | ||
5994 | + esac | ||
5995 | +fi | ||
5996 | + | ||
5997 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
5998 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
5999 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
6000 | @@ -5601,6 +5702,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
6001 | |||
6002 | |||
6003 | |||
6004 | + | ||
6005 | + | ||
6006 | + | ||
6007 | + | ||
6008 | + | ||
6009 | + | ||
6010 | + | ||
6011 | + | ||
6012 | + | ||
6013 | + | ||
6014 | +if test -n "$ac_tool_prefix"; then | ||
6015 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
6016 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
6017 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6018 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
6019 | +if ${ac_cv_prog_DLLTOOL+:} false; then : | ||
6020 | + $as_echo_n "(cached) " >&6 | ||
6021 | +else | ||
6022 | + if test -n "$DLLTOOL"; then | ||
6023 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
6024 | +else | ||
6025 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6026 | +for as_dir in $PATH | ||
6027 | +do | ||
6028 | + IFS=$as_save_IFS | ||
6029 | + test -z "$as_dir" && as_dir=. | ||
6030 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
6031 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6032 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
6033 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6034 | + break 2 | ||
6035 | + fi | ||
6036 | +done | ||
6037 | + done | ||
6038 | +IFS=$as_save_IFS | ||
6039 | + | ||
6040 | +fi | ||
6041 | +fi | ||
6042 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
6043 | +if test -n "$DLLTOOL"; then | ||
6044 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
6045 | +$as_echo "$DLLTOOL" >&6; } | ||
6046 | +else | ||
6047 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6048 | +$as_echo "no" >&6; } | ||
6049 | +fi | ||
6050 | + | ||
6051 | + | ||
6052 | +fi | ||
6053 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
6054 | + ac_ct_DLLTOOL=$DLLTOOL | ||
6055 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
6056 | +set dummy dlltool; ac_word=$2 | ||
6057 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6058 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
6059 | +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ||
6060 | + $as_echo_n "(cached) " >&6 | ||
6061 | +else | ||
6062 | + if test -n "$ac_ct_DLLTOOL"; then | ||
6063 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
6064 | +else | ||
6065 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6066 | +for as_dir in $PATH | ||
6067 | +do | ||
6068 | + IFS=$as_save_IFS | ||
6069 | + test -z "$as_dir" && as_dir=. | ||
6070 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
6071 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6072 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
6073 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6074 | + break 2 | ||
6075 | + fi | ||
6076 | +done | ||
6077 | + done | ||
6078 | +IFS=$as_save_IFS | ||
6079 | + | ||
6080 | +fi | ||
6081 | +fi | ||
6082 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
6083 | +if test -n "$ac_ct_DLLTOOL"; then | ||
6084 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
6085 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
6086 | +else | ||
6087 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6088 | +$as_echo "no" >&6; } | ||
6089 | +fi | ||
6090 | + | ||
6091 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
6092 | + DLLTOOL="false" | ||
6093 | + else | ||
6094 | + case $cross_compiling:$ac_tool_warned in | ||
6095 | +yes:) | ||
6096 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6097 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6098 | +ac_tool_warned=yes ;; | ||
6099 | +esac | ||
6100 | + DLLTOOL=$ac_ct_DLLTOOL | ||
6101 | + fi | ||
6102 | +else | ||
6103 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
6104 | +fi | ||
6105 | + | ||
6106 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
6107 | + | ||
6108 | + | ||
6109 | + | ||
6110 | + | ||
6111 | + | ||
6112 | + | ||
6113 | + | ||
6114 | + | ||
6115 | + | ||
6116 | + | ||
6117 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
6118 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
6119 | +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
6120 | + $as_echo_n "(cached) " >&6 | ||
6121 | +else | ||
6122 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
6123 | + | ||
6124 | +case $host_os in | ||
6125 | +cygwin* | mingw* | pw32* | cegcc*) | ||
6126 | + # two different shell functions defined in ltmain.sh | ||
6127 | + # decide which to use based on capabilities of $DLLTOOL | ||
6128 | + case `$DLLTOOL --help 2>&1` in | ||
6129 | + *--identify-strict*) | ||
6130 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
6131 | + ;; | ||
6132 | + *) | ||
6133 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
6134 | + ;; | ||
6135 | + esac | ||
6136 | + ;; | ||
6137 | +*) | ||
6138 | + # fallback: assume linklib IS sharedlib | ||
6139 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
6140 | + ;; | ||
6141 | +esac | ||
6142 | + | ||
6143 | +fi | ||
6144 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
6145 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
6146 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
6147 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
6148 | + | ||
6149 | + | ||
6150 | + | ||
6151 | + | ||
6152 | + | ||
6153 | + | ||
6154 | + | ||
6155 | plugin_option= | ||
6156 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | ||
6157 | for plugin in $plugin_names; do | ||
6158 | @@ -5615,8 +5867,10 @@ for plugin in $plugin_names; do | ||
6159 | done | ||
6160 | |||
6161 | if test -n "$ac_tool_prefix"; then | ||
6162 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
6163 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
6164 | + for ac_prog in ar | ||
6165 | + do | ||
6166 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
6167 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6169 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6170 | if ${ac_cv_prog_AR+:} false; then : | ||
6171 | @@ -5632,7 +5886,7 @@ do | ||
6172 | test -z "$as_dir" && as_dir=. | ||
6173 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6175 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
6176 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
6177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6178 | break 2 | ||
6179 | fi | ||
6180 | @@ -5652,11 +5906,15 @@ $as_echo "no" >&6; } | ||
6181 | fi | ||
6182 | |||
6183 | |||
6184 | + test -n "$AR" && break | ||
6185 | + done | ||
6186 | fi | ||
6187 | -if test -z "$ac_cv_prog_AR"; then | ||
6188 | +if test -z "$AR"; then | ||
6189 | ac_ct_AR=$AR | ||
6190 | - # Extract the first word of "ar", so it can be a program name with args. | ||
6191 | -set dummy ar; ac_word=$2 | ||
6192 | + for ac_prog in ar | ||
6193 | +do | ||
6194 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
6195 | +set dummy $ac_prog; ac_word=$2 | ||
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6197 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6198 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
6199 | @@ -5672,7 +5930,7 @@ do | ||
6200 | test -z "$as_dir" && as_dir=. | ||
6201 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6203 | - ac_cv_prog_ac_ct_AR="ar" | ||
6204 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
6205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6206 | break 2 | ||
6207 | fi | ||
6208 | @@ -5691,6 +5949,10 @@ else | ||
6209 | $as_echo "no" >&6; } | ||
6210 | fi | ||
6211 | |||
6212 | + | ||
6213 | + test -n "$ac_ct_AR" && break | ||
6214 | +done | ||
6215 | + | ||
6216 | if test "x$ac_ct_AR" = x; then | ||
6217 | AR="false" | ||
6218 | else | ||
6219 | @@ -5702,25 +5964,19 @@ ac_tool_warned=yes ;; | ||
6220 | esac | ||
6221 | AR=$ac_ct_AR | ||
6222 | fi | ||
6223 | -else | ||
6224 | - AR="$ac_cv_prog_AR" | ||
6225 | fi | ||
6226 | |||
6227 | -test -z "$AR" && AR=ar | ||
6228 | -if test -n "$plugin_option"; then | ||
6229 | - if $AR --help 2>&1 | grep -q "\--plugin"; then | ||
6230 | - touch conftest.c | ||
6231 | - $AR $plugin_option rc conftest.a conftest.c | ||
6232 | - if test "$?" != 0; then | ||
6233 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
6234 | + touch conftest.c | ||
6235 | + $AR $plugin_option rc conftest.a conftest.c | ||
6236 | + if test "$?" != 0; then | ||
6237 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
6238 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | ||
6239 | - else | ||
6240 | - AR="$AR $plugin_option" | ||
6241 | - fi | ||
6242 | - rm -f conftest.* | ||
6243 | + else | ||
6244 | + AR="$AR $plugin_option" | ||
6245 | fi | ||
6246 | -fi | ||
6247 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
6248 | + rm -f conftest.* | ||
6249 | +: ${AR=ar} | ||
6250 | +: ${AR_FLAGS=cru} | ||
6251 | |||
6252 | |||
6253 | |||
6254 | @@ -5732,6 +5988,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
6255 | |||
6256 | |||
6257 | |||
6258 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
6259 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
6260 | +if ${lt_cv_ar_at_file+:} false; then : | ||
6261 | + $as_echo_n "(cached) " >&6 | ||
6262 | +else | ||
6263 | + lt_cv_ar_at_file=no | ||
6264 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6265 | +/* end confdefs.h. */ | ||
6266 | + | ||
6267 | +int | ||
6268 | +main () | ||
6269 | +{ | ||
6270 | + | ||
6271 | + ; | ||
6272 | + return 0; | ||
6273 | +} | ||
6274 | +_ACEOF | ||
6275 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
6276 | + echo conftest.$ac_objext > conftest.lst | ||
6277 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
6278 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
6279 | + (eval $lt_ar_try) 2>&5 | ||
6280 | + ac_status=$? | ||
6281 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6282 | + test $ac_status = 0; } | ||
6283 | + if test "$ac_status" -eq 0; then | ||
6284 | + # Ensure the archiver fails upon bogus file names. | ||
6285 | + rm -f conftest.$ac_objext libconftest.a | ||
6286 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
6287 | + (eval $lt_ar_try) 2>&5 | ||
6288 | + ac_status=$? | ||
6289 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6290 | + test $ac_status = 0; } | ||
6291 | + if test "$ac_status" -ne 0; then | ||
6292 | + lt_cv_ar_at_file=@ | ||
6293 | + fi | ||
6294 | + fi | ||
6295 | + rm -f conftest.* libconftest.a | ||
6296 | + | ||
6297 | +fi | ||
6298 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6299 | + | ||
6300 | +fi | ||
6301 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
6302 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
6303 | + | ||
6304 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
6305 | + archiver_list_spec= | ||
6306 | +else | ||
6307 | + archiver_list_spec=$lt_cv_ar_at_file | ||
6308 | +fi | ||
6309 | + | ||
6310 | + | ||
6311 | + | ||
6312 | + | ||
6313 | + | ||
6314 | + | ||
6315 | + | ||
6316 | if test -n "$ac_tool_prefix"; then | ||
6317 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
6318 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
6319 | @@ -6071,8 +6385,8 @@ esac | ||
6320 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
6321 | |||
6322 | # Transform an extracted symbol line into symbol name and symbol address | ||
6323 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
6324 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
6325 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
6326 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
6327 | |||
6328 | # Handle CRLF in mingw tool chain | ||
6329 | opt_cr= | ||
6330 | @@ -6108,6 +6422,7 @@ for ac_symprfx in "" "_"; do | ||
6331 | else | ||
6332 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
6333 | fi | ||
6334 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
6335 | |||
6336 | # Check to see that the pipe works correctly. | ||
6337 | pipe_works=no | ||
6338 | @@ -6149,6 +6464,18 @@ _LT_EOF | ||
6339 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
6340 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
6341 | cat <<_LT_EOF > conftest.$ac_ext | ||
6342 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
6343 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
6344 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
6345 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
6346 | +# define LT_DLSYM_CONST | ||
6347 | +#elif defined(__osf__) | ||
6348 | +/* This system does not cope well with relocations in const data. */ | ||
6349 | +# define LT_DLSYM_CONST | ||
6350 | +#else | ||
6351 | +# define LT_DLSYM_CONST const | ||
6352 | +#endif | ||
6353 | + | ||
6354 | #ifdef __cplusplus | ||
6355 | extern "C" { | ||
6356 | #endif | ||
6357 | @@ -6160,7 +6487,7 @@ _LT_EOF | ||
6358 | cat <<_LT_EOF >> conftest.$ac_ext | ||
6359 | |||
6360 | /* The mapping between symbol names and symbols. */ | ||
6361 | -const struct { | ||
6362 | +LT_DLSYM_CONST struct { | ||
6363 | const char *name; | ||
6364 | void *address; | ||
6365 | } | ||
6366 | @@ -6186,8 +6513,8 @@ static const void *lt_preloaded_setup() { | ||
6367 | _LT_EOF | ||
6368 | # Now try linking the two files. | ||
6369 | mv conftest.$ac_objext conftstm.$ac_objext | ||
6370 | - lt_save_LIBS="$LIBS" | ||
6371 | - lt_save_CFLAGS="$CFLAGS" | ||
6372 | + lt_globsym_save_LIBS=$LIBS | ||
6373 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
6374 | LIBS="conftstm.$ac_objext" | ||
6375 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
6376 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
6377 | @@ -6197,8 +6524,8 @@ _LT_EOF | ||
6378 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
6379 | pipe_works=yes | ||
6380 | fi | ||
6381 | - LIBS="$lt_save_LIBS" | ||
6382 | - CFLAGS="$lt_save_CFLAGS" | ||
6383 | + LIBS=$lt_globsym_save_LIBS | ||
6384 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
6385 | else | ||
6386 | echo "cannot find nm_test_func in $nlist" >&5 | ||
6387 | fi | ||
6388 | @@ -6235,6 +6562,18 @@ else | ||
6389 | $as_echo "ok" >&6; } | ||
6390 | fi | ||
6391 | |||
6392 | +# Response file support. | ||
6393 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
6394 | + nm_file_list_spec='@' | ||
6395 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
6396 | + nm_file_list_spec='@' | ||
6397 | +fi | ||
6398 | + | ||
6399 | + | ||
6400 | + | ||
6401 | + | ||
6402 | + | ||
6403 | + | ||
6404 | |||
6405 | |||
6406 | |||
6407 | @@ -6251,6 +6590,43 @@ fi | ||
6408 | |||
6409 | |||
6410 | |||
6411 | + | ||
6412 | + | ||
6413 | + | ||
6414 | + | ||
6415 | + | ||
6416 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
6417 | +$as_echo_n "checking for sysroot... " >&6; } | ||
6418 | + | ||
6419 | +# Check whether --with-libtool-sysroot was given. | ||
6420 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
6421 | + withval=$with_libtool_sysroot; | ||
6422 | +else | ||
6423 | + with_libtool_sysroot=no | ||
6424 | +fi | ||
6425 | + | ||
6426 | + | ||
6427 | +lt_sysroot= | ||
6428 | +case ${with_libtool_sysroot} in #( | ||
6429 | + yes) | ||
6430 | + if test "$GCC" = yes; then | ||
6431 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
6432 | + fi | ||
6433 | + ;; #( | ||
6434 | + /*) | ||
6435 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
6436 | + ;; #( | ||
6437 | + no|'') | ||
6438 | + ;; #( | ||
6439 | + *) | ||
6440 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
6441 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
6442 | + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | ||
6443 | + ;; | ||
6444 | +esac | ||
6445 | + | ||
6446 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
6447 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
6448 | |||
6449 | |||
6450 | |||
6451 | @@ -6462,6 +6838,123 @@ esac | ||
6452 | |||
6453 | need_locks="$enable_libtool_lock" | ||
6454 | |||
6455 | +if test -n "$ac_tool_prefix"; then | ||
6456 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
6457 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
6458 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6459 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
6460 | +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | ||
6461 | + $as_echo_n "(cached) " >&6 | ||
6462 | +else | ||
6463 | + if test -n "$MANIFEST_TOOL"; then | ||
6464 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
6465 | +else | ||
6466 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6467 | +for as_dir in $PATH | ||
6468 | +do | ||
6469 | + IFS=$as_save_IFS | ||
6470 | + test -z "$as_dir" && as_dir=. | ||
6471 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
6472 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6473 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
6474 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6475 | + break 2 | ||
6476 | + fi | ||
6477 | +done | ||
6478 | + done | ||
6479 | +IFS=$as_save_IFS | ||
6480 | + | ||
6481 | +fi | ||
6482 | +fi | ||
6483 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
6484 | +if test -n "$MANIFEST_TOOL"; then | ||
6485 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
6486 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
6487 | +else | ||
6488 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6489 | +$as_echo "no" >&6; } | ||
6490 | +fi | ||
6491 | + | ||
6492 | + | ||
6493 | +fi | ||
6494 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
6495 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
6496 | + # Extract the first word of "mt", so it can be a program name with args. | ||
6497 | +set dummy mt; ac_word=$2 | ||
6498 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6499 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
6500 | +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | ||
6501 | + $as_echo_n "(cached) " >&6 | ||
6502 | +else | ||
6503 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
6504 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
6505 | +else | ||
6506 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6507 | +for as_dir in $PATH | ||
6508 | +do | ||
6509 | + IFS=$as_save_IFS | ||
6510 | + test -z "$as_dir" && as_dir=. | ||
6511 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
6512 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6513 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
6514 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6515 | + break 2 | ||
6516 | + fi | ||
6517 | +done | ||
6518 | + done | ||
6519 | +IFS=$as_save_IFS | ||
6520 | + | ||
6521 | +fi | ||
6522 | +fi | ||
6523 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
6524 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
6525 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
6526 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
6527 | +else | ||
6528 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6529 | +$as_echo "no" >&6; } | ||
6530 | +fi | ||
6531 | + | ||
6532 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
6533 | + MANIFEST_TOOL=":" | ||
6534 | + else | ||
6535 | + case $cross_compiling:$ac_tool_warned in | ||
6536 | +yes:) | ||
6537 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6538 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6539 | +ac_tool_warned=yes ;; | ||
6540 | +esac | ||
6541 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
6542 | + fi | ||
6543 | +else | ||
6544 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
6545 | +fi | ||
6546 | + | ||
6547 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
6548 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
6549 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
6550 | +if ${lt_cv_path_mainfest_tool+:} false; then : | ||
6551 | + $as_echo_n "(cached) " >&6 | ||
6552 | +else | ||
6553 | + lt_cv_path_mainfest_tool=no | ||
6554 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
6555 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
6556 | + cat conftest.err >&5 | ||
6557 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
6558 | + lt_cv_path_mainfest_tool=yes | ||
6559 | + fi | ||
6560 | + rm -f conftest* | ||
6561 | +fi | ||
6562 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
6563 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
6564 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
6565 | + MANIFEST_TOOL=: | ||
6566 | +fi | ||
6567 | + | ||
6568 | + | ||
6569 | + | ||
6570 | + | ||
6571 | + | ||
6572 | |||
6573 | case $host_os in | ||
6574 | rhapsody* | darwin*) | ||
6575 | @@ -7025,6 +7518,8 @@ _LT_EOF | ||
6576 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
6577 | echo "$AR cru libconftest.a conftest.o" >&5 | ||
6578 | $AR cru libconftest.a conftest.o 2>&5 | ||
6579 | + echo "$RANLIB libconftest.a" >&5 | ||
6580 | + $RANLIB libconftest.a 2>&5 | ||
6581 | cat > conftest.c << _LT_EOF | ||
6582 | int main() { return 0;} | ||
6583 | _LT_EOF | ||
6584 | @@ -7607,8 +8103,6 @@ fi | ||
6585 | lt_prog_compiler_pic= | ||
6586 | lt_prog_compiler_static= | ||
6587 | |||
6588 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
6589 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
6590 | |||
6591 | if test "$GCC" = yes; then | ||
6592 | lt_prog_compiler_wl='-Wl,' | ||
6593 | @@ -7774,6 +8268,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
6594 | lt_prog_compiler_pic='--shared' | ||
6595 | lt_prog_compiler_static='--static' | ||
6596 | ;; | ||
6597 | + nagfor*) | ||
6598 | + # NAG Fortran compiler | ||
6599 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
6600 | + lt_prog_compiler_pic='-PIC' | ||
6601 | + lt_prog_compiler_static='-Bstatic' | ||
6602 | + ;; | ||
6603 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
6604 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
6605 | # which looks to be a dead project) | ||
6606 | @@ -7836,7 +8336,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
6607 | lt_prog_compiler_pic='-KPIC' | ||
6608 | lt_prog_compiler_static='-Bstatic' | ||
6609 | case $cc_basename in | ||
6610 | - f77* | f90* | f95*) | ||
6611 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
6612 | lt_prog_compiler_wl='-Qoption ld ';; | ||
6613 | *) | ||
6614 | lt_prog_compiler_wl='-Wl,';; | ||
6615 | @@ -7893,13 +8393,17 @@ case $host_os in | ||
6616 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
6617 | ;; | ||
6618 | esac | ||
6619 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
6620 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
6621 | - | ||
6622 | - | ||
6623 | - | ||
6624 | - | ||
6625 | |||
6626 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
6627 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
6628 | +if ${lt_cv_prog_compiler_pic+:} false; then : | ||
6629 | + $as_echo_n "(cached) " >&6 | ||
6630 | +else | ||
6631 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
6632 | +fi | ||
6633 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
6634 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
6635 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
6636 | |||
6637 | # | ||
6638 | # Check to make sure the PIC flag actually works. | ||
6639 | @@ -7960,6 +8464,11 @@ fi | ||
6640 | |||
6641 | |||
6642 | |||
6643 | + | ||
6644 | + | ||
6645 | + | ||
6646 | + | ||
6647 | + | ||
6648 | # | ||
6649 | # Check to make sure the static flag actually works. | ||
6650 | # | ||
6651 | @@ -8310,7 +8819,8 @@ _LT_EOF | ||
6652 | allow_undefined_flag=unsupported | ||
6653 | always_export_symbols=no | ||
6654 | enable_shared_with_static_runtimes=yes | ||
6655 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
6656 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
6657 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
6658 | |||
6659 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
6660 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
6661 | @@ -8409,12 +8919,12 @@ _LT_EOF | ||
6662 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
6663 | hardcode_libdir_flag_spec= | ||
6664 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
6665 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
6666 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
6667 | if test "x$supports_anon_versioning" = xyes; then | ||
6668 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
6669 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
6670 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
6671 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
6672 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
6673 | fi | ||
6674 | ;; | ||
6675 | esac | ||
6676 | @@ -8428,8 +8938,8 @@ _LT_EOF | ||
6677 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
6678 | wlarc= | ||
6679 | else | ||
6680 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6681 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6682 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6683 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6684 | fi | ||
6685 | ;; | ||
6686 | |||
6687 | @@ -8447,8 +8957,8 @@ _LT_EOF | ||
6688 | |||
6689 | _LT_EOF | ||
6690 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
6691 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6692 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6693 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6694 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6695 | else | ||
6696 | ld_shlibs=no | ||
6697 | fi | ||
6698 | @@ -8494,8 +9004,8 @@ _LT_EOF | ||
6699 | |||
6700 | *) | ||
6701 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
6702 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6703 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6704 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6705 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6706 | else | ||
6707 | ld_shlibs=no | ||
6708 | fi | ||
6709 | @@ -8625,7 +9135,13 @@ _LT_EOF | ||
6710 | allow_undefined_flag='-berok' | ||
6711 | # Determine the default libpath from the value encoded in an | ||
6712 | # empty executable. | ||
6713 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6714 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
6715 | + aix_libpath=$lt_cv_aix_libpath | ||
6716 | +else | ||
6717 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
6718 | + $as_echo_n "(cached) " >&6 | ||
6719 | +else | ||
6720 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6721 | /* end confdefs.h. */ | ||
6722 | |||
6723 | int | ||
6724 | @@ -8638,22 +9154,29 @@ main () | ||
6725 | _ACEOF | ||
6726 | if ac_fn_c_try_link "$LINENO"; then : | ||
6727 | |||
6728 | -lt_aix_libpath_sed=' | ||
6729 | - /Import File Strings/,/^$/ { | ||
6730 | - /^0/ { | ||
6731 | - s/^0 *\(.*\)$/\1/ | ||
6732 | - p | ||
6733 | - } | ||
6734 | - }' | ||
6735 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
6736 | -# Check for a 64-bit object if we didn't find anything. | ||
6737 | -if test -z "$aix_libpath"; then | ||
6738 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
6739 | -fi | ||
6740 | + lt_aix_libpath_sed=' | ||
6741 | + /Import File Strings/,/^$/ { | ||
6742 | + /^0/ { | ||
6743 | + s/^0 *\([^ ]*\) *$/\1/ | ||
6744 | + p | ||
6745 | + } | ||
6746 | + }' | ||
6747 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
6748 | + # Check for a 64-bit object if we didn't find anything. | ||
6749 | + if test -z "$lt_cv_aix_libpath_"; then | ||
6750 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
6751 | + fi | ||
6752 | fi | ||
6753 | rm -f core conftest.err conftest.$ac_objext \ | ||
6754 | conftest$ac_exeext conftest.$ac_ext | ||
6755 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
6756 | + if test -z "$lt_cv_aix_libpath_"; then | ||
6757 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
6758 | + fi | ||
6759 | + | ||
6760 | +fi | ||
6761 | + | ||
6762 | + aix_libpath=$lt_cv_aix_libpath_ | ||
6763 | +fi | ||
6764 | |||
6765 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
6766 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
6767 | @@ -8665,7 +9188,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
6768 | else | ||
6769 | # Determine the default libpath from the value encoded in an | ||
6770 | # empty executable. | ||
6771 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6772 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
6773 | + aix_libpath=$lt_cv_aix_libpath | ||
6774 | +else | ||
6775 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
6776 | + $as_echo_n "(cached) " >&6 | ||
6777 | +else | ||
6778 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6779 | /* end confdefs.h. */ | ||
6780 | |||
6781 | int | ||
6782 | @@ -8678,22 +9207,29 @@ main () | ||
6783 | _ACEOF | ||
6784 | if ac_fn_c_try_link "$LINENO"; then : | ||
6785 | |||
6786 | -lt_aix_libpath_sed=' | ||
6787 | - /Import File Strings/,/^$/ { | ||
6788 | - /^0/ { | ||
6789 | - s/^0 *\(.*\)$/\1/ | ||
6790 | - p | ||
6791 | - } | ||
6792 | - }' | ||
6793 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
6794 | -# Check for a 64-bit object if we didn't find anything. | ||
6795 | -if test -z "$aix_libpath"; then | ||
6796 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
6797 | -fi | ||
6798 | + lt_aix_libpath_sed=' | ||
6799 | + /Import File Strings/,/^$/ { | ||
6800 | + /^0/ { | ||
6801 | + s/^0 *\([^ ]*\) *$/\1/ | ||
6802 | + p | ||
6803 | + } | ||
6804 | + }' | ||
6805 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
6806 | + # Check for a 64-bit object if we didn't find anything. | ||
6807 | + if test -z "$lt_cv_aix_libpath_"; then | ||
6808 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
6809 | + fi | ||
6810 | fi | ||
6811 | rm -f core conftest.err conftest.$ac_objext \ | ||
6812 | conftest$ac_exeext conftest.$ac_ext | ||
6813 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
6814 | + if test -z "$lt_cv_aix_libpath_"; then | ||
6815 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
6816 | + fi | ||
6817 | + | ||
6818 | +fi | ||
6819 | + | ||
6820 | + aix_libpath=$lt_cv_aix_libpath_ | ||
6821 | +fi | ||
6822 | |||
6823 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
6824 | # Warning - without using the other run time loading flags, | ||
6825 | @@ -8738,20 +9274,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
6826 | # Microsoft Visual C++. | ||
6827 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
6828 | # no search path for DLLs. | ||
6829 | - hardcode_libdir_flag_spec=' ' | ||
6830 | - allow_undefined_flag=unsupported | ||
6831 | - # Tell ltmain to make .lib files, not .a files. | ||
6832 | - libext=lib | ||
6833 | - # Tell ltmain to make .dll files, not .so files. | ||
6834 | - shrext_cmds=".dll" | ||
6835 | - # FIXME: Setting linknames here is a bad hack. | ||
6836 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
6837 | - # The linker will automatically build a .lib file if we build a DLL. | ||
6838 | - old_archive_from_new_cmds='true' | ||
6839 | - # FIXME: Should let the user specify the lib program. | ||
6840 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
6841 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
6842 | - enable_shared_with_static_runtimes=yes | ||
6843 | + case $cc_basename in | ||
6844 | + cl*) | ||
6845 | + # Native MSVC | ||
6846 | + hardcode_libdir_flag_spec=' ' | ||
6847 | + allow_undefined_flag=unsupported | ||
6848 | + always_export_symbols=yes | ||
6849 | + file_list_spec='@' | ||
6850 | + # Tell ltmain to make .lib files, not .a files. | ||
6851 | + libext=lib | ||
6852 | + # Tell ltmain to make .dll files, not .so files. | ||
6853 | + shrext_cmds=".dll" | ||
6854 | + # FIXME: Setting linknames here is a bad hack. | ||
6855 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
6856 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
6857 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
6858 | + else | ||
6859 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
6860 | + fi~ | ||
6861 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
6862 | + linknames=' | ||
6863 | + # The linker will not automatically build a static lib if we build a DLL. | ||
6864 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
6865 | + enable_shared_with_static_runtimes=yes | ||
6866 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
6867 | + # Don't use ranlib | ||
6868 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
6869 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
6870 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
6871 | + case $lt_outputfile in | ||
6872 | + *.exe|*.EXE) ;; | ||
6873 | + *) | ||
6874 | + lt_outputfile="$lt_outputfile.exe" | ||
6875 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
6876 | + ;; | ||
6877 | + esac~ | ||
6878 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
6879 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
6880 | + $RM "$lt_outputfile.manifest"; | ||
6881 | + fi' | ||
6882 | + ;; | ||
6883 | + *) | ||
6884 | + # Assume MSVC wrapper | ||
6885 | + hardcode_libdir_flag_spec=' ' | ||
6886 | + allow_undefined_flag=unsupported | ||
6887 | + # Tell ltmain to make .lib files, not .a files. | ||
6888 | + libext=lib | ||
6889 | + # Tell ltmain to make .dll files, not .so files. | ||
6890 | + shrext_cmds=".dll" | ||
6891 | + # FIXME: Setting linknames here is a bad hack. | ||
6892 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
6893 | + # The linker will automatically build a .lib file if we build a DLL. | ||
6894 | + old_archive_from_new_cmds='true' | ||
6895 | + # FIXME: Should let the user specify the lib program. | ||
6896 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
6897 | + enable_shared_with_static_runtimes=yes | ||
6898 | + ;; | ||
6899 | + esac | ||
6900 | ;; | ||
6901 | |||
6902 | darwin* | rhapsody*) | ||
6903 | @@ -8812,7 +9391,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
6904 | |||
6905 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
6906 | freebsd* | dragonfly*) | ||
6907 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
6908 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
6909 | hardcode_libdir_flag_spec='-R$libdir' | ||
6910 | hardcode_direct=yes | ||
6911 | hardcode_shlibpath_var=no | ||
6912 | @@ -8820,7 +9399,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
6913 | |||
6914 | hpux9*) | ||
6915 | if test "$GCC" = yes; then | ||
6916 | - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
6917 | + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
6918 | else | ||
6919 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
6920 | fi | ||
6921 | @@ -8836,7 +9415,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
6922 | |||
6923 | hpux10*) | ||
6924 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
6925 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
6926 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
6927 | else | ||
6928 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
6929 | fi | ||
6930 | @@ -8860,10 +9439,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
6931 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6932 | ;; | ||
6933 | ia64*) | ||
6934 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
6935 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
6936 | ;; | ||
6937 | *) | ||
6938 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
6939 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
6940 | ;; | ||
6941 | esac | ||
6942 | else | ||
6943 | @@ -8942,23 +9521,36 @@ fi | ||
6944 | |||
6945 | irix5* | irix6* | nonstopux*) | ||
6946 | if test "$GCC" = yes; then | ||
6947 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
6948 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
6949 | # Try to use the -exported_symbol ld option, if it does not | ||
6950 | # work, assume that -exports_file does not work either and | ||
6951 | # implicitly export all symbols. | ||
6952 | - save_LDFLAGS="$LDFLAGS" | ||
6953 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
6954 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6955 | + # This should be the same for all languages, so no per-tag cache variable. | ||
6956 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
6957 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
6958 | +if ${lt_cv_irix_exported_symbol+:} false; then : | ||
6959 | + $as_echo_n "(cached) " >&6 | ||
6960 | +else | ||
6961 | + save_LDFLAGS="$LDFLAGS" | ||
6962 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
6963 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6964 | /* end confdefs.h. */ | ||
6965 | -int foo(void) {} | ||
6966 | +int foo (void) { return 0; } | ||
6967 | _ACEOF | ||
6968 | if ac_fn_c_try_link "$LINENO"; then : | ||
6969 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
6970 | - | ||
6971 | + lt_cv_irix_exported_symbol=yes | ||
6972 | +else | ||
6973 | + lt_cv_irix_exported_symbol=no | ||
6974 | fi | ||
6975 | rm -f core conftest.err conftest.$ac_objext \ | ||
6976 | conftest$ac_exeext conftest.$ac_ext | ||
6977 | - LDFLAGS="$save_LDFLAGS" | ||
6978 | + LDFLAGS="$save_LDFLAGS" | ||
6979 | +fi | ||
6980 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
6981 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
6982 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
6983 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
6984 | + fi | ||
6985 | else | ||
6986 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
6987 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
6988 | @@ -9043,7 +9635,7 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
6989 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
6990 | if test "$GCC" = yes; then | ||
6991 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
6992 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
6993 | + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
6994 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
6995 | else | ||
6996 | allow_undefined_flag=' -expect_unresolved \*' | ||
6997 | @@ -9062,9 +9654,9 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
6998 | no_undefined_flag=' -z defs' | ||
6999 | if test "$GCC" = yes; then | ||
7000 | wlarc='${wl}' | ||
7001 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7002 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7003 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
7004 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
7005 | + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
7006 | else | ||
7007 | case `$CC -V 2>&1` in | ||
7008 | *"Compilers 5.0"*) | ||
7009 | @@ -9640,8 +10232,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
7010 | need_version=no | ||
7011 | need_lib_prefix=no | ||
7012 | |||
7013 | - case $GCC,$host_os in | ||
7014 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
7015 | + case $GCC,$cc_basename in | ||
7016 | + yes,*) | ||
7017 | + # gcc | ||
7018 | library_names_spec='$libname.dll.a' | ||
7019 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
7020 | postinstall_cmds='base_file=`basename \${file}`~ | ||
7021 | @@ -9674,13 +10267,71 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
7022 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
7023 | ;; | ||
7024 | esac | ||
7025 | + dynamic_linker='Win32 ld.exe' | ||
7026 | + ;; | ||
7027 | + | ||
7028 | + *,cl*) | ||
7029 | + # Native MSVC | ||
7030 | + libname_spec='$name' | ||
7031 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
7032 | + library_names_spec='${libname}.dll.lib' | ||
7033 | + | ||
7034 | + case $build_os in | ||
7035 | + mingw*) | ||
7036 | + sys_lib_search_path_spec= | ||
7037 | + lt_save_ifs=$IFS | ||
7038 | + IFS=';' | ||
7039 | + for lt_path in $LIB | ||
7040 | + do | ||
7041 | + IFS=$lt_save_ifs | ||
7042 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
7043 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
7044 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
7045 | + done | ||
7046 | + IFS=$lt_save_ifs | ||
7047 | + # Convert to MSYS style. | ||
7048 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
7049 | + ;; | ||
7050 | + cygwin*) | ||
7051 | + # Convert to unix form, then to dos form, then back to unix form | ||
7052 | + # but this time dos style (no spaces!) so that the unix form looks | ||
7053 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
7054 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
7055 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
7056 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
7057 | + ;; | ||
7058 | + *) | ||
7059 | + sys_lib_search_path_spec="$LIB" | ||
7060 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
7061 | + # It is most probably a Windows format PATH. | ||
7062 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
7063 | + else | ||
7064 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
7065 | + fi | ||
7066 | + # FIXME: find the short name or the path components, as spaces are | ||
7067 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
7068 | + ;; | ||
7069 | + esac | ||
7070 | + | ||
7071 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
7072 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
7073 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
7074 | + dldir=$destdir/`dirname \$dlpath`~ | ||
7075 | + test -d \$dldir || mkdir -p \$dldir~ | ||
7076 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
7077 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
7078 | + dlpath=$dir/\$dldll~ | ||
7079 | + $RM \$dlpath' | ||
7080 | + shlibpath_overrides_runpath=yes | ||
7081 | + dynamic_linker='Win32 link.exe' | ||
7082 | ;; | ||
7083 | |||
7084 | *) | ||
7085 | + # Assume MSVC wrapper | ||
7086 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
7087 | + dynamic_linker='Win32 ld.exe' | ||
7088 | ;; | ||
7089 | esac | ||
7090 | - dynamic_linker='Win32 ld.exe' | ||
7091 | # FIXME: first we should search . and the directory the executable is in | ||
7092 | shlibpath_var=PATH | ||
7093 | ;; | ||
7094 | @@ -9762,7 +10413,7 @@ haiku*) | ||
7095 | soname_spec='${libname}${release}${shared_ext}$major' | ||
7096 | shlibpath_var=LIBRARY_PATH | ||
7097 | shlibpath_overrides_runpath=yes | ||
7098 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
7099 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
7100 | hardcode_into_libs=yes | ||
7101 | ;; | ||
7102 | |||
7103 | @@ -10558,7 +11209,7 @@ else | ||
7104 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
7105 | lt_status=$lt_dlunknown | ||
7106 | cat > conftest.$ac_ext <<_LT_EOF | ||
7107 | -#line 10561 "configure" | ||
7108 | +#line $LINENO "configure" | ||
7109 | #include "confdefs.h" | ||
7110 | |||
7111 | #if HAVE_DLFCN_H | ||
7112 | @@ -10602,10 +11253,10 @@ else | ||
7113 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
7114 | correspondingly for the symbols needed. */ | ||
7115 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
7116 | -void fnord () __attribute__((visibility("default"))); | ||
7117 | +int fnord () __attribute__((visibility("default"))); | ||
7118 | #endif | ||
7119 | |||
7120 | -void fnord () { int i=42; } | ||
7121 | +int fnord () { return 42; } | ||
7122 | int main () | ||
7123 | { | ||
7124 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
7125 | @@ -10664,7 +11315,7 @@ else | ||
7126 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
7127 | lt_status=$lt_dlunknown | ||
7128 | cat > conftest.$ac_ext <<_LT_EOF | ||
7129 | -#line 10667 "configure" | ||
7130 | +#line $LINENO "configure" | ||
7131 | #include "confdefs.h" | ||
7132 | |||
7133 | #if HAVE_DLFCN_H | ||
7134 | @@ -10708,10 +11359,10 @@ else | ||
7135 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
7136 | correspondingly for the symbols needed. */ | ||
7137 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
7138 | -void fnord () __attribute__((visibility("default"))); | ||
7139 | +int fnord () __attribute__((visibility("default"))); | ||
7140 | #endif | ||
7141 | |||
7142 | -void fnord () { int i=42; } | ||
7143 | +int fnord () { return 42; } | ||
7144 | int main () | ||
7145 | { | ||
7146 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
7147 | @@ -12731,13 +13382,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
7148 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
7149 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
7150 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
7151 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
7152 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
7153 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
7154 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
7155 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
7156 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
7157 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
7158 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
7159 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
7160 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
7161 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
7162 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
7163 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
7164 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
7165 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
7166 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
7167 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
7168 | @@ -12752,14 +13410,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de | ||
7169 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
7170 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
7171 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
7172 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
7173 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
7174 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
7175 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
7176 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
7177 | -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
7178 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
7179 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
7180 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
7181 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
7182 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
7183 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
7184 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
7185 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
7186 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
7187 | @@ -12792,12 +13453,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q | ||
7188 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
7189 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
7190 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
7191 | -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | ||
7192 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
7193 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
7194 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
7195 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
7196 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
7197 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
7198 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
7199 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
7200 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
7201 | @@ -12852,8 +13513,13 @@ reload_flag \ | ||
7202 | OBJDUMP \ | ||
7203 | deplibs_check_method \ | ||
7204 | file_magic_cmd \ | ||
7205 | +file_magic_glob \ | ||
7206 | +want_nocaseglob \ | ||
7207 | +DLLTOOL \ | ||
7208 | +sharedlib_from_linklib_cmd \ | ||
7209 | AR \ | ||
7210 | AR_FLAGS \ | ||
7211 | +archiver_list_spec \ | ||
7212 | STRIP \ | ||
7213 | RANLIB \ | ||
7214 | CC \ | ||
7215 | @@ -12863,12 +13529,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
7216 | lt_cv_sys_global_symbol_to_cdecl \ | ||
7217 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
7218 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
7219 | +nm_file_list_spec \ | ||
7220 | lt_prog_compiler_no_builtin_flag \ | ||
7221 | -lt_prog_compiler_wl \ | ||
7222 | lt_prog_compiler_pic \ | ||
7223 | +lt_prog_compiler_wl \ | ||
7224 | lt_prog_compiler_static \ | ||
7225 | lt_cv_prog_compiler_c_o \ | ||
7226 | need_locks \ | ||
7227 | +MANIFEST_TOOL \ | ||
7228 | DSYMUTIL \ | ||
7229 | NMEDIT \ | ||
7230 | LIPO \ | ||
7231 | @@ -12884,7 +13552,6 @@ no_undefined_flag \ | ||
7232 | hardcode_libdir_flag_spec \ | ||
7233 | hardcode_libdir_flag_spec_ld \ | ||
7234 | hardcode_libdir_separator \ | ||
7235 | -fix_srcfile_path \ | ||
7236 | exclude_expsyms \ | ||
7237 | include_expsyms \ | ||
7238 | file_list_spec \ | ||
7239 | @@ -12920,6 +13587,7 @@ module_cmds \ | ||
7240 | module_expsym_cmds \ | ||
7241 | export_symbols_cmds \ | ||
7242 | prelink_cmds \ | ||
7243 | +postlink_cmds \ | ||
7244 | postinstall_cmds \ | ||
7245 | postuninstall_cmds \ | ||
7246 | finish_cmds \ | ||
7247 | @@ -13685,7 +14353,8 @@ $as_echo X"$file" | | ||
7248 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
7249 | # | ||
7250 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
7251 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
7252 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
7253 | +# Inc. | ||
7254 | # Written by Gordon Matzigkeit, 1996 | ||
7255 | # | ||
7256 | # This file is part of GNU Libtool. | ||
7257 | @@ -13788,19 +14457,42 @@ SP2NL=$lt_lt_SP2NL | ||
7258 | # turn newlines into spaces. | ||
7259 | NL2SP=$lt_lt_NL2SP | ||
7260 | |||
7261 | +# convert \$build file names to \$host format. | ||
7262 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
7263 | + | ||
7264 | +# convert \$build files to toolchain format. | ||
7265 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
7266 | + | ||
7267 | # An object symbol dumper. | ||
7268 | OBJDUMP=$lt_OBJDUMP | ||
7269 | |||
7270 | # Method to check whether dependent libraries are shared objects. | ||
7271 | deplibs_check_method=$lt_deplibs_check_method | ||
7272 | |||
7273 | -# Command to use when deplibs_check_method == "file_magic". | ||
7274 | +# Command to use when deplibs_check_method = "file_magic". | ||
7275 | file_magic_cmd=$lt_file_magic_cmd | ||
7276 | |||
7277 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
7278 | +file_magic_glob=$lt_file_magic_glob | ||
7279 | + | ||
7280 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
7281 | +want_nocaseglob=$lt_want_nocaseglob | ||
7282 | + | ||
7283 | +# DLL creation program. | ||
7284 | +DLLTOOL=$lt_DLLTOOL | ||
7285 | + | ||
7286 | +# Command to associate shared and link libraries. | ||
7287 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
7288 | + | ||
7289 | # The archiver. | ||
7290 | AR=$lt_AR | ||
7291 | + | ||
7292 | +# Flags to create an archive. | ||
7293 | AR_FLAGS=$lt_AR_FLAGS | ||
7294 | |||
7295 | +# How to feed a file listing to the archiver. | ||
7296 | +archiver_list_spec=$lt_archiver_list_spec | ||
7297 | + | ||
7298 | # A symbol stripping program. | ||
7299 | STRIP=$lt_STRIP | ||
7300 | |||
7301 | @@ -13830,6 +14522,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
7302 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
7303 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
7304 | |||
7305 | +# Specify filename containing input files for \$NM. | ||
7306 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
7307 | + | ||
7308 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
7309 | +lt_sysroot=$lt_sysroot | ||
7310 | + | ||
7311 | # The name of the directory that contains temporary libtool files. | ||
7312 | objdir=$objdir | ||
7313 | |||
7314 | @@ -13839,6 +14537,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
7315 | # Must we lock files when doing compilation? | ||
7316 | need_locks=$lt_need_locks | ||
7317 | |||
7318 | +# Manifest tool. | ||
7319 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
7320 | + | ||
7321 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
7322 | DSYMUTIL=$lt_DSYMUTIL | ||
7323 | |||
7324 | @@ -13953,12 +14654,12 @@ with_gcc=$GCC | ||
7325 | # Compiler flag to turn off builtin functions. | ||
7326 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
7327 | |||
7328 | -# How to pass a linker flag through the compiler. | ||
7329 | -wl=$lt_lt_prog_compiler_wl | ||
7330 | - | ||
7331 | # Additional compiler flags for building library objects. | ||
7332 | pic_flag=$lt_lt_prog_compiler_pic | ||
7333 | |||
7334 | +# How to pass a linker flag through the compiler. | ||
7335 | +wl=$lt_lt_prog_compiler_wl | ||
7336 | + | ||
7337 | # Compiler flag to prevent dynamic linking. | ||
7338 | link_static_flag=$lt_lt_prog_compiler_static | ||
7339 | |||
7340 | @@ -14045,9 +14746,6 @@ inherit_rpath=$inherit_rpath | ||
7341 | # Whether libtool must link a program against all its dependency libraries. | ||
7342 | link_all_deplibs=$link_all_deplibs | ||
7343 | |||
7344 | -# Fix the shell variable \$srcfile for the compiler. | ||
7345 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
7346 | - | ||
7347 | # Set to "yes" if exported symbols are required. | ||
7348 | always_export_symbols=$always_export_symbols | ||
7349 | |||
7350 | @@ -14063,6 +14761,9 @@ include_expsyms=$lt_include_expsyms | ||
7351 | # Commands necessary for linking programs (against libraries) with templates. | ||
7352 | prelink_cmds=$lt_prelink_cmds | ||
7353 | |||
7354 | +# Commands necessary for finishing linking programs. | ||
7355 | +postlink_cmds=$lt_postlink_cmds | ||
7356 | + | ||
7357 | # Specify filename containing input files. | ||
7358 | file_list_spec=$lt_file_list_spec | ||
7359 | |||
7360 | @@ -14095,210 +14796,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
7361 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
7362 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
7363 | # is reportedly fixed, but why not run on old versions too? | ||
7364 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
7365 | - || (rm -f "$cfgfile"; exit 1) | ||
7366 | - | ||
7367 | - case $xsi_shell in | ||
7368 | - yes) | ||
7369 | - cat << \_LT_EOF >> "$cfgfile" | ||
7370 | - | ||
7371 | -# func_dirname file append nondir_replacement | ||
7372 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
7373 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
7374 | -func_dirname () | ||
7375 | -{ | ||
7376 | - case ${1} in | ||
7377 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
7378 | - * ) func_dirname_result="${3}" ;; | ||
7379 | - esac | ||
7380 | -} | ||
7381 | - | ||
7382 | -# func_basename file | ||
7383 | -func_basename () | ||
7384 | -{ | ||
7385 | - func_basename_result="${1##*/}" | ||
7386 | -} | ||
7387 | - | ||
7388 | -# func_dirname_and_basename file append nondir_replacement | ||
7389 | -# perform func_basename and func_dirname in a single function | ||
7390 | -# call: | ||
7391 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
7392 | -# add APPEND to the result, otherwise set result | ||
7393 | -# to NONDIR_REPLACEMENT. | ||
7394 | -# value returned in "$func_dirname_result" | ||
7395 | -# basename: Compute filename of FILE. | ||
7396 | -# value retuned in "$func_basename_result" | ||
7397 | -# Implementation must be kept synchronized with func_dirname | ||
7398 | -# and func_basename. For efficiency, we do not delegate to | ||
7399 | -# those functions but instead duplicate the functionality here. | ||
7400 | -func_dirname_and_basename () | ||
7401 | -{ | ||
7402 | - case ${1} in | ||
7403 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
7404 | - * ) func_dirname_result="${3}" ;; | ||
7405 | - esac | ||
7406 | - func_basename_result="${1##*/}" | ||
7407 | -} | ||
7408 | - | ||
7409 | -# func_stripname prefix suffix name | ||
7410 | -# strip PREFIX and SUFFIX off of NAME. | ||
7411 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
7412 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
7413 | -# dot (in which case that matches only a dot). | ||
7414 | -func_stripname () | ||
7415 | -{ | ||
7416 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
7417 | - # positional parameters, so assign one to ordinary parameter first. | ||
7418 | - func_stripname_result=${3} | ||
7419 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
7420 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
7421 | -} | ||
7422 | - | ||
7423 | -# func_opt_split | ||
7424 | -func_opt_split () | ||
7425 | -{ | ||
7426 | - func_opt_split_opt=${1%%=*} | ||
7427 | - func_opt_split_arg=${1#*=} | ||
7428 | -} | ||
7429 | - | ||
7430 | -# func_lo2o object | ||
7431 | -func_lo2o () | ||
7432 | -{ | ||
7433 | - case ${1} in | ||
7434 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
7435 | - *) func_lo2o_result=${1} ;; | ||
7436 | - esac | ||
7437 | -} | ||
7438 | - | ||
7439 | -# func_xform libobj-or-source | ||
7440 | -func_xform () | ||
7441 | -{ | ||
7442 | - func_xform_result=${1%.*}.lo | ||
7443 | -} | ||
7444 | - | ||
7445 | -# func_arith arithmetic-term... | ||
7446 | -func_arith () | ||
7447 | -{ | ||
7448 | - func_arith_result=$(( $* )) | ||
7449 | -} | ||
7450 | - | ||
7451 | -# func_len string | ||
7452 | -# STRING may not start with a hyphen. | ||
7453 | -func_len () | ||
7454 | -{ | ||
7455 | - func_len_result=${#1} | ||
7456 | -} | ||
7457 | - | ||
7458 | -_LT_EOF | ||
7459 | - ;; | ||
7460 | - *) # Bourne compatible functions. | ||
7461 | - cat << \_LT_EOF >> "$cfgfile" | ||
7462 | - | ||
7463 | -# func_dirname file append nondir_replacement | ||
7464 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
7465 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
7466 | -func_dirname () | ||
7467 | -{ | ||
7468 | - # Extract subdirectory from the argument. | ||
7469 | - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
7470 | - if test "X$func_dirname_result" = "X${1}"; then | ||
7471 | - func_dirname_result="${3}" | ||
7472 | - else | ||
7473 | - func_dirname_result="$func_dirname_result${2}" | ||
7474 | - fi | ||
7475 | -} | ||
7476 | - | ||
7477 | -# func_basename file | ||
7478 | -func_basename () | ||
7479 | -{ | ||
7480 | - func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
7481 | -} | ||
7482 | - | ||
7483 | - | ||
7484 | -# func_stripname prefix suffix name | ||
7485 | -# strip PREFIX and SUFFIX off of NAME. | ||
7486 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
7487 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
7488 | -# dot (in which case that matches only a dot). | ||
7489 | -# func_strip_suffix prefix name | ||
7490 | -func_stripname () | ||
7491 | -{ | ||
7492 | - case ${2} in | ||
7493 | - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
7494 | - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
7495 | - esac | ||
7496 | -} | ||
7497 | - | ||
7498 | -# sed scripts: | ||
7499 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
7500 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
7501 | - | ||
7502 | -# func_opt_split | ||
7503 | -func_opt_split () | ||
7504 | -{ | ||
7505 | - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | ||
7506 | - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | ||
7507 | -} | ||
7508 | - | ||
7509 | -# func_lo2o object | ||
7510 | -func_lo2o () | ||
7511 | -{ | ||
7512 | - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
7513 | -} | ||
7514 | - | ||
7515 | -# func_xform libobj-or-source | ||
7516 | -func_xform () | ||
7517 | -{ | ||
7518 | - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
7519 | -} | ||
7520 | - | ||
7521 | -# func_arith arithmetic-term... | ||
7522 | -func_arith () | ||
7523 | -{ | ||
7524 | - func_arith_result=`expr "$@"` | ||
7525 | -} | ||
7526 | - | ||
7527 | -# func_len string | ||
7528 | -# STRING may not start with a hyphen. | ||
7529 | -func_len () | ||
7530 | -{ | ||
7531 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
7532 | -} | ||
7533 | - | ||
7534 | -_LT_EOF | ||
7535 | -esac | ||
7536 | - | ||
7537 | -case $lt_shell_append in | ||
7538 | - yes) | ||
7539 | - cat << \_LT_EOF >> "$cfgfile" | ||
7540 | - | ||
7541 | -# func_append var value | ||
7542 | -# Append VALUE to the end of shell variable VAR. | ||
7543 | -func_append () | ||
7544 | -{ | ||
7545 | - eval "$1+=\$2" | ||
7546 | -} | ||
7547 | -_LT_EOF | ||
7548 | - ;; | ||
7549 | - *) | ||
7550 | - cat << \_LT_EOF >> "$cfgfile" | ||
7551 | - | ||
7552 | -# func_append var value | ||
7553 | -# Append VALUE to the end of shell variable VAR. | ||
7554 | -func_append () | ||
7555 | -{ | ||
7556 | - eval "$1=\$$1\$2" | ||
7557 | -} | ||
7558 | - | ||
7559 | -_LT_EOF | ||
7560 | - ;; | ||
7561 | - esac | ||
7562 | - | ||
7563 | - | ||
7564 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
7565 | - || (rm -f "$cfgfile"; exit 1) | ||
7566 | - | ||
7567 | - mv -f "$cfgfile" "$ofile" || | ||
7568 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
7569 | + || (rm -f "$cfgfile"; exit 1) | ||
7570 | + | ||
7571 | + if test x"$xsi_shell" = xyes; then | ||
7572 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
7573 | +func_dirname ()\ | ||
7574 | +{\ | ||
7575 | +\ case ${1} in\ | ||
7576 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
7577 | +\ * ) func_dirname_result="${3}" ;;\ | ||
7578 | +\ esac\ | ||
7579 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7580 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7581 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7582 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7583 | + | ||
7584 | + | ||
7585 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
7586 | +func_basename ()\ | ||
7587 | +{\ | ||
7588 | +\ func_basename_result="${1##*/}"\ | ||
7589 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7590 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7591 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7592 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7593 | + | ||
7594 | + | ||
7595 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
7596 | +func_dirname_and_basename ()\ | ||
7597 | +{\ | ||
7598 | +\ case ${1} in\ | ||
7599 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
7600 | +\ * ) func_dirname_result="${3}" ;;\ | ||
7601 | +\ esac\ | ||
7602 | +\ func_basename_result="${1##*/}"\ | ||
7603 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7604 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7605 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7606 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7607 | + | ||
7608 | + | ||
7609 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
7610 | +func_stripname ()\ | ||
7611 | +{\ | ||
7612 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
7613 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
7614 | +\ func_stripname_result=${3}\ | ||
7615 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
7616 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
7617 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7618 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7619 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7620 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7621 | + | ||
7622 | + | ||
7623 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
7624 | +func_split_long_opt ()\ | ||
7625 | +{\ | ||
7626 | +\ func_split_long_opt_name=${1%%=*}\ | ||
7627 | +\ func_split_long_opt_arg=${1#*=}\ | ||
7628 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7629 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7630 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7631 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7632 | + | ||
7633 | + | ||
7634 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
7635 | +func_split_short_opt ()\ | ||
7636 | +{\ | ||
7637 | +\ func_split_short_opt_arg=${1#??}\ | ||
7638 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
7639 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7640 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7641 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7642 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7643 | + | ||
7644 | + | ||
7645 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
7646 | +func_lo2o ()\ | ||
7647 | +{\ | ||
7648 | +\ case ${1} in\ | ||
7649 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
7650 | +\ *) func_lo2o_result=${1} ;;\ | ||
7651 | +\ esac\ | ||
7652 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7653 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7654 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7655 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7656 | + | ||
7657 | + | ||
7658 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
7659 | +func_xform ()\ | ||
7660 | +{\ | ||
7661 | + func_xform_result=${1%.*}.lo\ | ||
7662 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7663 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7664 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7665 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7666 | + | ||
7667 | + | ||
7668 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
7669 | +func_arith ()\ | ||
7670 | +{\ | ||
7671 | + func_arith_result=$(( $* ))\ | ||
7672 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7673 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7674 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7675 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7676 | + | ||
7677 | + | ||
7678 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
7679 | +func_len ()\ | ||
7680 | +{\ | ||
7681 | + func_len_result=${#1}\ | ||
7682 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7683 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7684 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7685 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7686 | + | ||
7687 | +fi | ||
7688 | + | ||
7689 | +if test x"$lt_shell_append" = xyes; then | ||
7690 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
7691 | +func_append ()\ | ||
7692 | +{\ | ||
7693 | + eval "${1}+=\\${2}"\ | ||
7694 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7695 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7696 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7697 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7698 | + | ||
7699 | + | ||
7700 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
7701 | +func_append_quoted ()\ | ||
7702 | +{\ | ||
7703 | +\ func_quote_for_eval "${2}"\ | ||
7704 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
7705 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
7706 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7707 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7708 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
7709 | + | ||
7710 | + | ||
7711 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
7712 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
7713 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7714 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7715 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
7716 | +else | ||
7717 | + # Save a `func_append' function call even when '+=' is not available | ||
7718 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
7719 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
7720 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
7721 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
7722 | +fi | ||
7723 | + | ||
7724 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
7725 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
7726 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
7727 | +fi | ||
7728 | + | ||
7729 | + | ||
7730 | + mv -f "$cfgfile" "$ofile" || | ||
7731 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
7732 | chmod +x "$ofile" | ||
7733 | |||
7734 | diff --git a/ld/configure b/ld/configure | ||
7735 | index 2aeb3317b65..5ef46d31558 100755 | ||
7736 | --- a/ld/configure | ||
7737 | +++ b/ld/configure | ||
7738 | @@ -693,8 +693,11 @@ OTOOL | ||
7739 | LIPO | ||
7740 | NMEDIT | ||
7741 | DSYMUTIL | ||
7742 | +MANIFEST_TOOL | ||
7743 | RANLIB | ||
7744 | +ac_ct_AR | ||
7745 | AR | ||
7746 | +DLLTOOL | ||
7747 | OBJDUMP | ||
7748 | LN_S | ||
7749 | NM | ||
7750 | @@ -821,6 +824,7 @@ enable_static | ||
7751 | with_pic | ||
7752 | enable_fast_install | ||
7753 | with_gnu_ld | ||
7754 | +with_libtool_sysroot | ||
7755 | enable_libtool_lock | ||
7756 | enable_plugins | ||
7757 | enable_largefile | ||
7758 | @@ -1528,6 +1532,8 @@ Optional Packages: | ||
7759 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
7760 | both] | ||
7761 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
7762 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
7763 | + (or the compiler's sysroot if not specified). | ||
7764 | --with-lib-path=dir1:dir2... set default LIB_PATH | ||
7765 | --with-sysroot=DIR Search for usr/lib et al within DIR. | ||
7766 | --with-system-zlib use installed libz | ||
7767 | @@ -5327,8 +5333,8 @@ esac | ||
7768 | |||
7769 | |||
7770 | |||
7771 | -macro_version='2.2.7a' | ||
7772 | -macro_revision='1.3134' | ||
7773 | +macro_version='2.4' | ||
7774 | +macro_revision='1.3293' | ||
7775 | |||
7776 | |||
7777 | |||
7778 | @@ -5368,7 +5374,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
7780 | $as_echo_n "checking how to print strings... " >&6; } | ||
7781 | # Test print first, because it will be a builtin if present. | ||
7782 | -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | ||
7783 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
7784 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
7785 | ECHO='print -r --' | ||
7786 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
7787 | @@ -6054,8 +6060,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; | ||
7788 | # Try some XSI features | ||
7789 | xsi_shell=no | ||
7790 | ( _lt_dummy="a/b/c" | ||
7791 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
7792 | - = c,a/b,, \ | ||
7793 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
7794 | + = c,a/b,b/c, \ | ||
7795 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
7796 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
7797 | && xsi_shell=yes | ||
7798 | @@ -6104,6 +6110,80 @@ esac | ||
7799 | |||
7800 | |||
7801 | |||
7802 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
7803 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
7804 | +if ${lt_cv_to_host_file_cmd+:} false; then : | ||
7805 | + $as_echo_n "(cached) " >&6 | ||
7806 | +else | ||
7807 | + case $host in | ||
7808 | + *-*-mingw* ) | ||
7809 | + case $build in | ||
7810 | + *-*-mingw* ) # actually msys | ||
7811 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
7812 | + ;; | ||
7813 | + *-*-cygwin* ) | ||
7814 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
7815 | + ;; | ||
7816 | + * ) # otherwise, assume *nix | ||
7817 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
7818 | + ;; | ||
7819 | + esac | ||
7820 | + ;; | ||
7821 | + *-*-cygwin* ) | ||
7822 | + case $build in | ||
7823 | + *-*-mingw* ) # actually msys | ||
7824 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
7825 | + ;; | ||
7826 | + *-*-cygwin* ) | ||
7827 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
7828 | + ;; | ||
7829 | + * ) # otherwise, assume *nix | ||
7830 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
7831 | + ;; | ||
7832 | + esac | ||
7833 | + ;; | ||
7834 | + * ) # unhandled hosts (and "normal" native builds) | ||
7835 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
7836 | + ;; | ||
7837 | +esac | ||
7838 | + | ||
7839 | +fi | ||
7840 | + | ||
7841 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
7842 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
7843 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
7844 | + | ||
7845 | + | ||
7846 | + | ||
7847 | + | ||
7848 | + | ||
7849 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
7850 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
7851 | +if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
7852 | + $as_echo_n "(cached) " >&6 | ||
7853 | +else | ||
7854 | + #assume ordinary cross tools, or native build. | ||
7855 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
7856 | +case $host in | ||
7857 | + *-*-mingw* ) | ||
7858 | + case $build in | ||
7859 | + *-*-mingw* ) # actually msys | ||
7860 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
7861 | + ;; | ||
7862 | + esac | ||
7863 | + ;; | ||
7864 | +esac | ||
7865 | + | ||
7866 | +fi | ||
7867 | + | ||
7868 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
7869 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
7870 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
7871 | + | ||
7872 | + | ||
7873 | + | ||
7874 | + | ||
7875 | + | ||
7876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
7877 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
7878 | if ${lt_cv_ld_reload_flag+:} false; then : | ||
7879 | @@ -6120,6 +6200,11 @@ case $reload_flag in | ||
7880 | esac | ||
7881 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
7882 | case $host_os in | ||
7883 | + cygwin* | mingw* | pw32* | cegcc*) | ||
7884 | + if test "$GCC" != yes; then | ||
7885 | + reload_cmds=false | ||
7886 | + fi | ||
7887 | + ;; | ||
7888 | darwin*) | ||
7889 | if test "$GCC" = yes; then | ||
7890 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
7891 | @@ -6288,7 +6373,8 @@ mingw* | pw32*) | ||
7892 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
7893 | lt_cv_file_magic_cmd='func_win32_libid' | ||
7894 | else | ||
7895 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
7896 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
7897 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
7898 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
7899 | fi | ||
7900 | ;; | ||
7901 | @@ -6442,6 +6528,21 @@ esac | ||
7902 | fi | ||
7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
7904 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
7905 | + | ||
7906 | +file_magic_glob= | ||
7907 | +want_nocaseglob=no | ||
7908 | +if test "$build" = "$host"; then | ||
7909 | + case $host_os in | ||
7910 | + mingw* | pw32*) | ||
7911 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
7912 | + want_nocaseglob=yes | ||
7913 | + else | ||
7914 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
7915 | + fi | ||
7916 | + ;; | ||
7917 | + esac | ||
7918 | +fi | ||
7919 | + | ||
7920 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
7921 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
7922 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
7923 | @@ -6457,6 +6558,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
7924 | |||
7925 | |||
7926 | |||
7927 | + | ||
7928 | + | ||
7929 | + | ||
7930 | + | ||
7931 | + | ||
7932 | + | ||
7933 | + | ||
7934 | + | ||
7935 | + | ||
7936 | + | ||
7937 | +if test -n "$ac_tool_prefix"; then | ||
7938 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
7939 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
7940 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7941 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
7942 | +if ${ac_cv_prog_DLLTOOL+:} false; then : | ||
7943 | + $as_echo_n "(cached) " >&6 | ||
7944 | +else | ||
7945 | + if test -n "$DLLTOOL"; then | ||
7946 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
7947 | +else | ||
7948 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7949 | +for as_dir in $PATH | ||
7950 | +do | ||
7951 | + IFS=$as_save_IFS | ||
7952 | + test -z "$as_dir" && as_dir=. | ||
7953 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
7954 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
7955 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
7956 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7957 | + break 2 | ||
7958 | + fi | ||
7959 | +done | ||
7960 | + done | ||
7961 | +IFS=$as_save_IFS | ||
7962 | + | ||
7963 | +fi | ||
7964 | +fi | ||
7965 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
7966 | +if test -n "$DLLTOOL"; then | ||
7967 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
7968 | +$as_echo "$DLLTOOL" >&6; } | ||
7969 | +else | ||
7970 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7971 | +$as_echo "no" >&6; } | ||
7972 | +fi | ||
7973 | + | ||
7974 | + | ||
7975 | +fi | ||
7976 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
7977 | + ac_ct_DLLTOOL=$DLLTOOL | ||
7978 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
7979 | +set dummy dlltool; ac_word=$2 | ||
7980 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7981 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
7982 | +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ||
7983 | + $as_echo_n "(cached) " >&6 | ||
7984 | +else | ||
7985 | + if test -n "$ac_ct_DLLTOOL"; then | ||
7986 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
7987 | +else | ||
7988 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7989 | +for as_dir in $PATH | ||
7990 | +do | ||
7991 | + IFS=$as_save_IFS | ||
7992 | + test -z "$as_dir" && as_dir=. | ||
7993 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
7994 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
7995 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
7996 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7997 | + break 2 | ||
7998 | + fi | ||
7999 | +done | ||
8000 | + done | ||
8001 | +IFS=$as_save_IFS | ||
8002 | + | ||
8003 | +fi | ||
8004 | +fi | ||
8005 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
8006 | +if test -n "$ac_ct_DLLTOOL"; then | ||
8007 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
8008 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
8009 | +else | ||
8010 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8011 | +$as_echo "no" >&6; } | ||
8012 | +fi | ||
8013 | + | ||
8014 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
8015 | + DLLTOOL="false" | ||
8016 | + else | ||
8017 | + case $cross_compiling:$ac_tool_warned in | ||
8018 | +yes:) | ||
8019 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8020 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8021 | +ac_tool_warned=yes ;; | ||
8022 | +esac | ||
8023 | + DLLTOOL=$ac_ct_DLLTOOL | ||
8024 | + fi | ||
8025 | +else | ||
8026 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
8027 | +fi | ||
8028 | + | ||
8029 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
8030 | + | ||
8031 | + | ||
8032 | + | ||
8033 | + | ||
8034 | + | ||
8035 | + | ||
8036 | + | ||
8037 | + | ||
8038 | + | ||
8039 | + | ||
8040 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
8041 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
8042 | +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
8043 | + $as_echo_n "(cached) " >&6 | ||
8044 | +else | ||
8045 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
8046 | + | ||
8047 | +case $host_os in | ||
8048 | +cygwin* | mingw* | pw32* | cegcc*) | ||
8049 | + # two different shell functions defined in ltmain.sh | ||
8050 | + # decide which to use based on capabilities of $DLLTOOL | ||
8051 | + case `$DLLTOOL --help 2>&1` in | ||
8052 | + *--identify-strict*) | ||
8053 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
8054 | + ;; | ||
8055 | + *) | ||
8056 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
8057 | + ;; | ||
8058 | + esac | ||
8059 | + ;; | ||
8060 | +*) | ||
8061 | + # fallback: assume linklib IS sharedlib | ||
8062 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
8063 | + ;; | ||
8064 | +esac | ||
8065 | + | ||
8066 | +fi | ||
8067 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
8068 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
8069 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
8070 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
8071 | + | ||
8072 | + | ||
8073 | + | ||
8074 | + | ||
8075 | + | ||
8076 | + | ||
8077 | + | ||
8078 | plugin_option= | ||
8079 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | ||
8080 | for plugin in $plugin_names; do | ||
8081 | @@ -6471,8 +6723,10 @@ for plugin in $plugin_names; do | ||
8082 | done | ||
8083 | |||
8084 | if test -n "$ac_tool_prefix"; then | ||
8085 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
8086 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
8087 | + for ac_prog in ar | ||
8088 | + do | ||
8089 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
8090 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8092 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8093 | if ${ac_cv_prog_AR+:} false; then : | ||
8094 | @@ -6488,7 +6742,7 @@ do | ||
8095 | test -z "$as_dir" && as_dir=. | ||
8096 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8098 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
8099 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
8100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8101 | break 2 | ||
8102 | fi | ||
8103 | @@ -6508,11 +6762,15 @@ $as_echo "no" >&6; } | ||
8104 | fi | ||
8105 | |||
8106 | |||
8107 | + test -n "$AR" && break | ||
8108 | + done | ||
8109 | fi | ||
8110 | -if test -z "$ac_cv_prog_AR"; then | ||
8111 | +if test -z "$AR"; then | ||
8112 | ac_ct_AR=$AR | ||
8113 | - # Extract the first word of "ar", so it can be a program name with args. | ||
8114 | -set dummy ar; ac_word=$2 | ||
8115 | + for ac_prog in ar | ||
8116 | +do | ||
8117 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
8118 | +set dummy $ac_prog; ac_word=$2 | ||
8119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8120 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8121 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
8122 | @@ -6528,7 +6786,7 @@ do | ||
8123 | test -z "$as_dir" && as_dir=. | ||
8124 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8126 | - ac_cv_prog_ac_ct_AR="ar" | ||
8127 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
8128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8129 | break 2 | ||
8130 | fi | ||
8131 | @@ -6547,6 +6805,10 @@ else | ||
8132 | $as_echo "no" >&6; } | ||
8133 | fi | ||
8134 | |||
8135 | + | ||
8136 | + test -n "$ac_ct_AR" && break | ||
8137 | +done | ||
8138 | + | ||
8139 | if test "x$ac_ct_AR" = x; then | ||
8140 | AR="false" | ||
8141 | else | ||
8142 | @@ -6558,25 +6820,19 @@ ac_tool_warned=yes ;; | ||
8143 | esac | ||
8144 | AR=$ac_ct_AR | ||
8145 | fi | ||
8146 | -else | ||
8147 | - AR="$ac_cv_prog_AR" | ||
8148 | fi | ||
8149 | |||
8150 | -test -z "$AR" && AR=ar | ||
8151 | -if test -n "$plugin_option"; then | ||
8152 | - if $AR --help 2>&1 | grep -q "\--plugin"; then | ||
8153 | - touch conftest.c | ||
8154 | - $AR $plugin_option rc conftest.a conftest.c | ||
8155 | - if test "$?" != 0; then | ||
8156 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
8157 | + touch conftest.c | ||
8158 | + $AR $plugin_option rc conftest.a conftest.c | ||
8159 | + if test "$?" != 0; then | ||
8160 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
8161 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | ||
8162 | - else | ||
8163 | - AR="$AR $plugin_option" | ||
8164 | - fi | ||
8165 | - rm -f conftest.* | ||
8166 | + else | ||
8167 | + AR="$AR $plugin_option" | ||
8168 | fi | ||
8169 | -fi | ||
8170 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
8171 | + rm -f conftest.* | ||
8172 | +: ${AR=ar} | ||
8173 | +: ${AR_FLAGS=cru} | ||
8174 | |||
8175 | |||
8176 | |||
8177 | @@ -6588,6 +6844,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
8178 | |||
8179 | |||
8180 | |||
8181 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
8182 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
8183 | +if ${lt_cv_ar_at_file+:} false; then : | ||
8184 | + $as_echo_n "(cached) " >&6 | ||
8185 | +else | ||
8186 | + lt_cv_ar_at_file=no | ||
8187 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8188 | +/* end confdefs.h. */ | ||
8189 | + | ||
8190 | +int | ||
8191 | +main () | ||
8192 | +{ | ||
8193 | + | ||
8194 | + ; | ||
8195 | + return 0; | ||
8196 | +} | ||
8197 | +_ACEOF | ||
8198 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
8199 | + echo conftest.$ac_objext > conftest.lst | ||
8200 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
8201 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
8202 | + (eval $lt_ar_try) 2>&5 | ||
8203 | + ac_status=$? | ||
8204 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
8205 | + test $ac_status = 0; } | ||
8206 | + if test "$ac_status" -eq 0; then | ||
8207 | + # Ensure the archiver fails upon bogus file names. | ||
8208 | + rm -f conftest.$ac_objext libconftest.a | ||
8209 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
8210 | + (eval $lt_ar_try) 2>&5 | ||
8211 | + ac_status=$? | ||
8212 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
8213 | + test $ac_status = 0; } | ||
8214 | + if test "$ac_status" -ne 0; then | ||
8215 | + lt_cv_ar_at_file=@ | ||
8216 | + fi | ||
8217 | + fi | ||
8218 | + rm -f conftest.* libconftest.a | ||
8219 | + | ||
8220 | +fi | ||
8221 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8222 | + | ||
8223 | +fi | ||
8224 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
8225 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
8226 | + | ||
8227 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
8228 | + archiver_list_spec= | ||
8229 | +else | ||
8230 | + archiver_list_spec=$lt_cv_ar_at_file | ||
8231 | +fi | ||
8232 | + | ||
8233 | + | ||
8234 | + | ||
8235 | + | ||
8236 | + | ||
8237 | + | ||
8238 | + | ||
8239 | if test -n "$ac_tool_prefix"; then | ||
8240 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
8241 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
8242 | @@ -6927,8 +7241,8 @@ esac | ||
8243 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
8244 | |||
8245 | # Transform an extracted symbol line into symbol name and symbol address | ||
8246 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
8247 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
8248 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
8249 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
8250 | |||
8251 | # Handle CRLF in mingw tool chain | ||
8252 | opt_cr= | ||
8253 | @@ -6964,6 +7278,7 @@ for ac_symprfx in "" "_"; do | ||
8254 | else | ||
8255 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
8256 | fi | ||
8257 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
8258 | |||
8259 | # Check to see that the pipe works correctly. | ||
8260 | pipe_works=no | ||
8261 | @@ -7005,6 +7320,18 @@ _LT_EOF | ||
8262 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
8263 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
8264 | cat <<_LT_EOF > conftest.$ac_ext | ||
8265 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
8266 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
8267 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
8268 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
8269 | +# define LT_DLSYM_CONST | ||
8270 | +#elif defined(__osf__) | ||
8271 | +/* This system does not cope well with relocations in const data. */ | ||
8272 | +# define LT_DLSYM_CONST | ||
8273 | +#else | ||
8274 | +# define LT_DLSYM_CONST const | ||
8275 | +#endif | ||
8276 | + | ||
8277 | #ifdef __cplusplus | ||
8278 | extern "C" { | ||
8279 | #endif | ||
8280 | @@ -7016,7 +7343,7 @@ _LT_EOF | ||
8281 | cat <<_LT_EOF >> conftest.$ac_ext | ||
8282 | |||
8283 | /* The mapping between symbol names and symbols. */ | ||
8284 | -const struct { | ||
8285 | +LT_DLSYM_CONST struct { | ||
8286 | const char *name; | ||
8287 | void *address; | ||
8288 | } | ||
8289 | @@ -7042,8 +7369,8 @@ static const void *lt_preloaded_setup() { | ||
8290 | _LT_EOF | ||
8291 | # Now try linking the two files. | ||
8292 | mv conftest.$ac_objext conftstm.$ac_objext | ||
8293 | - lt_save_LIBS="$LIBS" | ||
8294 | - lt_save_CFLAGS="$CFLAGS" | ||
8295 | + lt_globsym_save_LIBS=$LIBS | ||
8296 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
8297 | LIBS="conftstm.$ac_objext" | ||
8298 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
8299 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
8300 | @@ -7053,8 +7380,8 @@ _LT_EOF | ||
8301 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
8302 | pipe_works=yes | ||
8303 | fi | ||
8304 | - LIBS="$lt_save_LIBS" | ||
8305 | - CFLAGS="$lt_save_CFLAGS" | ||
8306 | + LIBS=$lt_globsym_save_LIBS | ||
8307 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
8308 | else | ||
8309 | echo "cannot find nm_test_func in $nlist" >&5 | ||
8310 | fi | ||
8311 | @@ -7091,6 +7418,17 @@ else | ||
8312 | $as_echo "ok" >&6; } | ||
8313 | fi | ||
8314 | |||
8315 | +# Response file support. | ||
8316 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
8317 | + nm_file_list_spec='@' | ||
8318 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
8319 | + nm_file_list_spec='@' | ||
8320 | +fi | ||
8321 | + | ||
8322 | + | ||
8323 | + | ||
8324 | + | ||
8325 | + | ||
8326 | |||
8327 | |||
8328 | |||
8329 | @@ -7107,6 +7445,44 @@ fi | ||
8330 | |||
8331 | |||
8332 | |||
8333 | + | ||
8334 | + | ||
8335 | + | ||
8336 | + | ||
8337 | + | ||
8338 | + | ||
8339 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
8340 | +$as_echo_n "checking for sysroot... " >&6; } | ||
8341 | + | ||
8342 | +# Check whether --with-libtool-sysroot was given. | ||
8343 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
8344 | + withval=$with_libtool_sysroot; | ||
8345 | +else | ||
8346 | + with_libtool_sysroot=no | ||
8347 | +fi | ||
8348 | + | ||
8349 | + | ||
8350 | +lt_sysroot= | ||
8351 | +case ${with_libtool_sysroot} in #( | ||
8352 | + yes) | ||
8353 | + if test "$GCC" = yes; then | ||
8354 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
8355 | + fi | ||
8356 | + ;; #( | ||
8357 | + /*) | ||
8358 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
8359 | + ;; #( | ||
8360 | + no|'') | ||
8361 | + ;; #( | ||
8362 | + *) | ||
8363 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
8364 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
8365 | + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | ||
8366 | + ;; | ||
8367 | +esac | ||
8368 | + | ||
8369 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
8370 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
8371 | |||
8372 | |||
8373 | |||
8374 | @@ -7318,6 +7694,123 @@ esac | ||
8375 | |||
8376 | need_locks="$enable_libtool_lock" | ||
8377 | |||
8378 | +if test -n "$ac_tool_prefix"; then | ||
8379 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
8380 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
8381 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8382 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
8383 | +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | ||
8384 | + $as_echo_n "(cached) " >&6 | ||
8385 | +else | ||
8386 | + if test -n "$MANIFEST_TOOL"; then | ||
8387 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
8388 | +else | ||
8389 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8390 | +for as_dir in $PATH | ||
8391 | +do | ||
8392 | + IFS=$as_save_IFS | ||
8393 | + test -z "$as_dir" && as_dir=. | ||
8394 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
8395 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8396 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
8397 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8398 | + break 2 | ||
8399 | + fi | ||
8400 | +done | ||
8401 | + done | ||
8402 | +IFS=$as_save_IFS | ||
8403 | + | ||
8404 | +fi | ||
8405 | +fi | ||
8406 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
8407 | +if test -n "$MANIFEST_TOOL"; then | ||
8408 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
8409 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
8410 | +else | ||
8411 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8412 | +$as_echo "no" >&6; } | ||
8413 | +fi | ||
8414 | + | ||
8415 | + | ||
8416 | +fi | ||
8417 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
8418 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
8419 | + # Extract the first word of "mt", so it can be a program name with args. | ||
8420 | +set dummy mt; ac_word=$2 | ||
8421 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8422 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
8423 | +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | ||
8424 | + $as_echo_n "(cached) " >&6 | ||
8425 | +else | ||
8426 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
8427 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
8428 | +else | ||
8429 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8430 | +for as_dir in $PATH | ||
8431 | +do | ||
8432 | + IFS=$as_save_IFS | ||
8433 | + test -z "$as_dir" && as_dir=. | ||
8434 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
8435 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
8436 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
8437 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8438 | + break 2 | ||
8439 | + fi | ||
8440 | +done | ||
8441 | + done | ||
8442 | +IFS=$as_save_IFS | ||
8443 | + | ||
8444 | +fi | ||
8445 | +fi | ||
8446 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
8447 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
8448 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
8449 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
8450 | +else | ||
8451 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8452 | +$as_echo "no" >&6; } | ||
8453 | +fi | ||
8454 | + | ||
8455 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
8456 | + MANIFEST_TOOL=":" | ||
8457 | + else | ||
8458 | + case $cross_compiling:$ac_tool_warned in | ||
8459 | +yes:) | ||
8460 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8461 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8462 | +ac_tool_warned=yes ;; | ||
8463 | +esac | ||
8464 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
8465 | + fi | ||
8466 | +else | ||
8467 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
8468 | +fi | ||
8469 | + | ||
8470 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
8471 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
8472 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
8473 | +if ${lt_cv_path_mainfest_tool+:} false; then : | ||
8474 | + $as_echo_n "(cached) " >&6 | ||
8475 | +else | ||
8476 | + lt_cv_path_mainfest_tool=no | ||
8477 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
8478 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
8479 | + cat conftest.err >&5 | ||
8480 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
8481 | + lt_cv_path_mainfest_tool=yes | ||
8482 | + fi | ||
8483 | + rm -f conftest* | ||
8484 | +fi | ||
8485 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
8486 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
8487 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
8488 | + MANIFEST_TOOL=: | ||
8489 | +fi | ||
8490 | + | ||
8491 | + | ||
8492 | + | ||
8493 | + | ||
8494 | + | ||
8495 | |||
8496 | case $host_os in | ||
8497 | rhapsody* | darwin*) | ||
8498 | @@ -7881,6 +8374,8 @@ _LT_EOF | ||
8499 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
8500 | echo "$AR cru libconftest.a conftest.o" >&5 | ||
8501 | $AR cru libconftest.a conftest.o 2>&5 | ||
8502 | + echo "$RANLIB libconftest.a" >&5 | ||
8503 | + $RANLIB libconftest.a 2>&5 | ||
8504 | cat > conftest.c << _LT_EOF | ||
8505 | int main() { return 0;} | ||
8506 | _LT_EOF | ||
8507 | @@ -7949,6 +8444,16 @@ done | ||
8508 | |||
8509 | |||
8510 | |||
8511 | +func_stripname_cnf () | ||
8512 | +{ | ||
8513 | + case ${2} in | ||
8514 | + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
8515 | + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
8516 | + esac | ||
8517 | +} # func_stripname_cnf | ||
8518 | + | ||
8519 | + | ||
8520 | + | ||
8521 | |||
8522 | |||
8523 | # Set options | ||
8524 | @@ -8464,8 +8970,6 @@ fi | ||
8525 | lt_prog_compiler_pic= | ||
8526 | lt_prog_compiler_static= | ||
8527 | |||
8528 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
8529 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8530 | |||
8531 | if test "$GCC" = yes; then | ||
8532 | lt_prog_compiler_wl='-Wl,' | ||
8533 | @@ -8631,6 +9135,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8534 | lt_prog_compiler_pic='--shared' | ||
8535 | lt_prog_compiler_static='--static' | ||
8536 | ;; | ||
8537 | + nagfor*) | ||
8538 | + # NAG Fortran compiler | ||
8539 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
8540 | + lt_prog_compiler_pic='-PIC' | ||
8541 | + lt_prog_compiler_static='-Bstatic' | ||
8542 | + ;; | ||
8543 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
8544 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
8545 | # which looks to be a dead project) | ||
8546 | @@ -8693,7 +9203,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8547 | lt_prog_compiler_pic='-KPIC' | ||
8548 | lt_prog_compiler_static='-Bstatic' | ||
8549 | case $cc_basename in | ||
8550 | - f77* | f90* | f95*) | ||
8551 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
8552 | lt_prog_compiler_wl='-Qoption ld ';; | ||
8553 | *) | ||
8554 | lt_prog_compiler_wl='-Wl,';; | ||
8555 | @@ -8750,13 +9260,17 @@ case $host_os in | ||
8556 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
8557 | ;; | ||
8558 | esac | ||
8559 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
8560 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
8561 | - | ||
8562 | - | ||
8563 | - | ||
8564 | - | ||
8565 | |||
8566 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
8567 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8568 | +if ${lt_cv_prog_compiler_pic+:} false; then : | ||
8569 | + $as_echo_n "(cached) " >&6 | ||
8570 | +else | ||
8571 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
8572 | +fi | ||
8573 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
8574 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
8575 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
8576 | |||
8577 | # | ||
8578 | # Check to make sure the PIC flag actually works. | ||
8579 | @@ -8817,6 +9331,11 @@ fi | ||
8580 | |||
8581 | |||
8582 | |||
8583 | + | ||
8584 | + | ||
8585 | + | ||
8586 | + | ||
8587 | + | ||
8588 | # | ||
8589 | # Check to make sure the static flag actually works. | ||
8590 | # | ||
8591 | @@ -9167,7 +9686,8 @@ _LT_EOF | ||
8592 | allow_undefined_flag=unsupported | ||
8593 | always_export_symbols=no | ||
8594 | enable_shared_with_static_runtimes=yes | ||
8595 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
8596 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
8597 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
8598 | |||
8599 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
8600 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8601 | @@ -9266,12 +9786,12 @@ _LT_EOF | ||
8602 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
8603 | hardcode_libdir_flag_spec= | ||
8604 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
8605 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
8606 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
8607 | if test "x$supports_anon_versioning" = xyes; then | ||
8608 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8609 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8610 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8611 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
8612 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
8613 | fi | ||
8614 | ;; | ||
8615 | esac | ||
8616 | @@ -9285,8 +9805,8 @@ _LT_EOF | ||
8617 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
8618 | wlarc= | ||
8619 | else | ||
8620 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8621 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8622 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8623 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8624 | fi | ||
8625 | ;; | ||
8626 | |||
8627 | @@ -9304,8 +9824,8 @@ _LT_EOF | ||
8628 | |||
8629 | _LT_EOF | ||
8630 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8631 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8632 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8633 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8634 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8635 | else | ||
8636 | ld_shlibs=no | ||
8637 | fi | ||
8638 | @@ -9351,8 +9871,8 @@ _LT_EOF | ||
8639 | |||
8640 | *) | ||
8641 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8642 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8643 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8644 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8645 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8646 | else | ||
8647 | ld_shlibs=no | ||
8648 | fi | ||
8649 | @@ -9482,7 +10002,13 @@ _LT_EOF | ||
8650 | allow_undefined_flag='-berok' | ||
8651 | # Determine the default libpath from the value encoded in an | ||
8652 | # empty executable. | ||
8653 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8654 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
8655 | + aix_libpath=$lt_cv_aix_libpath | ||
8656 | +else | ||
8657 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
8658 | + $as_echo_n "(cached) " >&6 | ||
8659 | +else | ||
8660 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8661 | /* end confdefs.h. */ | ||
8662 | |||
8663 | int | ||
8664 | @@ -9495,22 +10021,29 @@ main () | ||
8665 | _ACEOF | ||
8666 | if ac_fn_c_try_link "$LINENO"; then : | ||
8667 | |||
8668 | -lt_aix_libpath_sed=' | ||
8669 | - /Import File Strings/,/^$/ { | ||
8670 | - /^0/ { | ||
8671 | - s/^0 *\(.*\)$/\1/ | ||
8672 | - p | ||
8673 | - } | ||
8674 | - }' | ||
8675 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8676 | -# Check for a 64-bit object if we didn't find anything. | ||
8677 | -if test -z "$aix_libpath"; then | ||
8678 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8679 | -fi | ||
8680 | + lt_aix_libpath_sed=' | ||
8681 | + /Import File Strings/,/^$/ { | ||
8682 | + /^0/ { | ||
8683 | + s/^0 *\([^ ]*\) *$/\1/ | ||
8684 | + p | ||
8685 | + } | ||
8686 | + }' | ||
8687 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8688 | + # Check for a 64-bit object if we didn't find anything. | ||
8689 | + if test -z "$lt_cv_aix_libpath_"; then | ||
8690 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8691 | + fi | ||
8692 | fi | ||
8693 | rm -f core conftest.err conftest.$ac_objext \ | ||
8694 | conftest$ac_exeext conftest.$ac_ext | ||
8695 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8696 | + if test -z "$lt_cv_aix_libpath_"; then | ||
8697 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
8698 | + fi | ||
8699 | + | ||
8700 | +fi | ||
8701 | + | ||
8702 | + aix_libpath=$lt_cv_aix_libpath_ | ||
8703 | +fi | ||
8704 | |||
8705 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8706 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
8707 | @@ -9522,7 +10055,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8708 | else | ||
8709 | # Determine the default libpath from the value encoded in an | ||
8710 | # empty executable. | ||
8711 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8712 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
8713 | + aix_libpath=$lt_cv_aix_libpath | ||
8714 | +else | ||
8715 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
8716 | + $as_echo_n "(cached) " >&6 | ||
8717 | +else | ||
8718 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8719 | /* end confdefs.h. */ | ||
8720 | |||
8721 | int | ||
8722 | @@ -9535,22 +10074,29 @@ main () | ||
8723 | _ACEOF | ||
8724 | if ac_fn_c_try_link "$LINENO"; then : | ||
8725 | |||
8726 | -lt_aix_libpath_sed=' | ||
8727 | - /Import File Strings/,/^$/ { | ||
8728 | - /^0/ { | ||
8729 | - s/^0 *\(.*\)$/\1/ | ||
8730 | - p | ||
8731 | - } | ||
8732 | - }' | ||
8733 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8734 | -# Check for a 64-bit object if we didn't find anything. | ||
8735 | -if test -z "$aix_libpath"; then | ||
8736 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8737 | -fi | ||
8738 | + lt_aix_libpath_sed=' | ||
8739 | + /Import File Strings/,/^$/ { | ||
8740 | + /^0/ { | ||
8741 | + s/^0 *\([^ ]*\) *$/\1/ | ||
8742 | + p | ||
8743 | + } | ||
8744 | + }' | ||
8745 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8746 | + # Check for a 64-bit object if we didn't find anything. | ||
8747 | + if test -z "$lt_cv_aix_libpath_"; then | ||
8748 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8749 | + fi | ||
8750 | fi | ||
8751 | rm -f core conftest.err conftest.$ac_objext \ | ||
8752 | conftest$ac_exeext conftest.$ac_ext | ||
8753 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8754 | + if test -z "$lt_cv_aix_libpath_"; then | ||
8755 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
8756 | + fi | ||
8757 | + | ||
8758 | +fi | ||
8759 | + | ||
8760 | + aix_libpath=$lt_cv_aix_libpath_ | ||
8761 | +fi | ||
8762 | |||
8763 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8764 | # Warning - without using the other run time loading flags, | ||
8765 | @@ -9594,21 +10140,64 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8766 | # When not using gcc, we currently assume that we are using | ||
8767 | # Microsoft Visual C++. | ||
8768 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
8769 | - # no search path for DLLs. | ||
8770 | - hardcode_libdir_flag_spec=' ' | ||
8771 | - allow_undefined_flag=unsupported | ||
8772 | - # Tell ltmain to make .lib files, not .a files. | ||
8773 | - libext=lib | ||
8774 | - # Tell ltmain to make .dll files, not .so files. | ||
8775 | - shrext_cmds=".dll" | ||
8776 | - # FIXME: Setting linknames here is a bad hack. | ||
8777 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8778 | - # The linker will automatically build a .lib file if we build a DLL. | ||
8779 | - old_archive_from_new_cmds='true' | ||
8780 | - # FIXME: Should let the user specify the lib program. | ||
8781 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
8782 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
8783 | - enable_shared_with_static_runtimes=yes | ||
8784 | + # no search path for DLLs. | ||
8785 | + case $cc_basename in | ||
8786 | + cl*) | ||
8787 | + # Native MSVC | ||
8788 | + hardcode_libdir_flag_spec=' ' | ||
8789 | + allow_undefined_flag=unsupported | ||
8790 | + always_export_symbols=yes | ||
8791 | + file_list_spec='@' | ||
8792 | + # Tell ltmain to make .lib files, not .a files. | ||
8793 | + libext=lib | ||
8794 | + # Tell ltmain to make .dll files, not .so files. | ||
8795 | + shrext_cmds=".dll" | ||
8796 | + # FIXME: Setting linknames here is a bad hack. | ||
8797 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
8798 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8799 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
8800 | + else | ||
8801 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
8802 | + fi~ | ||
8803 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
8804 | + linknames=' | ||
8805 | + # The linker will not automatically build a static lib if we build a DLL. | ||
8806 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
8807 | + enable_shared_with_static_runtimes=yes | ||
8808 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
8809 | + # Don't use ranlib | ||
8810 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
8811 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
8812 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
8813 | + case $lt_outputfile in | ||
8814 | + *.exe|*.EXE) ;; | ||
8815 | + *) | ||
8816 | + lt_outputfile="$lt_outputfile.exe" | ||
8817 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
8818 | + ;; | ||
8819 | + esac~ | ||
8820 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
8821 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
8822 | + $RM "$lt_outputfile.manifest"; | ||
8823 | + fi' | ||
8824 | + ;; | ||
8825 | + *) | ||
8826 | + # Assume MSVC wrapper | ||
8827 | + hardcode_libdir_flag_spec=' ' | ||
8828 | + allow_undefined_flag=unsupported | ||
8829 | + # Tell ltmain to make .lib files, not .a files. | ||
8830 | + libext=lib | ||
8831 | + # Tell ltmain to make .dll files, not .so files. | ||
8832 | + shrext_cmds=".dll" | ||
8833 | + # FIXME: Setting linknames here is a bad hack. | ||
8834 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8835 | + # The linker will automatically build a .lib file if we build a DLL. | ||
8836 | + old_archive_from_new_cmds='true' | ||
8837 | + # FIXME: Should let the user specify the lib program. | ||
8838 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
8839 | + enable_shared_with_static_runtimes=yes | ||
8840 | + ;; | ||
8841 | + esac | ||
8842 | ;; | ||
8843 | |||
8844 | darwin* | rhapsody*) | ||
8845 | @@ -9669,7 +10258,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8846 | |||
8847 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
8848 | freebsd* | dragonfly*) | ||
8849 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
8850 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
8851 | hardcode_libdir_flag_spec='-R$libdir' | ||
8852 | hardcode_direct=yes | ||
8853 | hardcode_shlibpath_var=no | ||
8854 | @@ -9677,7 +10266,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8855 | |||
8856 | hpux9*) | ||
8857 | if test "$GCC" = yes; then | ||
8858 | - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
8859 | + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
8860 | else | ||
8861 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
8862 | fi | ||
8863 | @@ -9693,7 +10282,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8864 | |||
8865 | hpux10*) | ||
8866 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
8867 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8868 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8869 | else | ||
8870 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
8871 | fi | ||
8872 | @@ -9717,10 +10306,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8873 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8874 | ;; | ||
8875 | ia64*) | ||
8876 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8877 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8878 | ;; | ||
8879 | *) | ||
8880 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8881 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8882 | ;; | ||
8883 | esac | ||
8884 | else | ||
8885 | @@ -9799,23 +10388,36 @@ fi | ||
8886 | |||
8887 | irix5* | irix6* | nonstopux*) | ||
8888 | if test "$GCC" = yes; then | ||
8889 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
8890 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
8891 | # Try to use the -exported_symbol ld option, if it does not | ||
8892 | # work, assume that -exports_file does not work either and | ||
8893 | # implicitly export all symbols. | ||
8894 | - save_LDFLAGS="$LDFLAGS" | ||
8895 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
8896 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8897 | + # This should be the same for all languages, so no per-tag cache variable. | ||
8898 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
8899 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
8900 | +if ${lt_cv_irix_exported_symbol+:} false; then : | ||
8901 | + $as_echo_n "(cached) " >&6 | ||
8902 | +else | ||
8903 | + save_LDFLAGS="$LDFLAGS" | ||
8904 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
8905 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8906 | /* end confdefs.h. */ | ||
8907 | -int foo(void) {} | ||
8908 | +int foo (void) { return 0; } | ||
8909 | _ACEOF | ||
8910 | if ac_fn_c_try_link "$LINENO"; then : | ||
8911 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
8912 | - | ||
8913 | + lt_cv_irix_exported_symbol=yes | ||
8914 | +else | ||
8915 | + lt_cv_irix_exported_symbol=no | ||
8916 | fi | ||
8917 | rm -f core conftest.err conftest.$ac_objext \ | ||
8918 | conftest$ac_exeext conftest.$ac_ext | ||
8919 | - LDFLAGS="$save_LDFLAGS" | ||
8920 | + LDFLAGS="$save_LDFLAGS" | ||
8921 | +fi | ||
8922 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
8923 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
8924 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
8925 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
8926 | + fi | ||
8927 | else | ||
8928 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
8929 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
8930 | @@ -9900,7 +10502,7 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
8931 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
8932 | if test "$GCC" = yes; then | ||
8933 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
8934 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
8935 | + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
8936 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8937 | else | ||
8938 | allow_undefined_flag=' -expect_unresolved \*' | ||
8939 | @@ -9919,9 +10521,9 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
8940 | no_undefined_flag=' -z defs' | ||
8941 | if test "$GCC" = yes; then | ||
8942 | wlarc='${wl}' | ||
8943 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8944 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8945 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
8946 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
8947 | + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
8948 | else | ||
8949 | case `$CC -V 2>&1` in | ||
8950 | *"Compilers 5.0"*) | ||
8951 | @@ -10497,8 +11099,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
8952 | need_version=no | ||
8953 | need_lib_prefix=no | ||
8954 | |||
8955 | - case $GCC,$host_os in | ||
8956 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
8957 | + case $GCC,$cc_basename in | ||
8958 | + yes,*) | ||
8959 | + # gcc | ||
8960 | library_names_spec='$libname.dll.a' | ||
8961 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
8962 | postinstall_cmds='base_file=`basename \${file}`~ | ||
8963 | @@ -10531,13 +11134,71 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
8964 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
8965 | ;; | ||
8966 | esac | ||
8967 | + dynamic_linker='Win32 ld.exe' | ||
8968 | + ;; | ||
8969 | + | ||
8970 | + *,cl*) | ||
8971 | + # Native MSVC | ||
8972 | + libname_spec='$name' | ||
8973 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
8974 | + library_names_spec='${libname}.dll.lib' | ||
8975 | + | ||
8976 | + case $build_os in | ||
8977 | + mingw*) | ||
8978 | + sys_lib_search_path_spec= | ||
8979 | + lt_save_ifs=$IFS | ||
8980 | + IFS=';' | ||
8981 | + for lt_path in $LIB | ||
8982 | + do | ||
8983 | + IFS=$lt_save_ifs | ||
8984 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
8985 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
8986 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
8987 | + done | ||
8988 | + IFS=$lt_save_ifs | ||
8989 | + # Convert to MSYS style. | ||
8990 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
8991 | + ;; | ||
8992 | + cygwin*) | ||
8993 | + # Convert to unix form, then to dos form, then back to unix form | ||
8994 | + # but this time dos style (no spaces!) so that the unix form looks | ||
8995 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
8996 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
8997 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
8998 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
8999 | + ;; | ||
9000 | + *) | ||
9001 | + sys_lib_search_path_spec="$LIB" | ||
9002 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
9003 | + # It is most probably a Windows format PATH. | ||
9004 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
9005 | + else | ||
9006 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9007 | + fi | ||
9008 | + # FIXME: find the short name or the path components, as spaces are | ||
9009 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
9010 | + ;; | ||
9011 | + esac | ||
9012 | + | ||
9013 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
9014 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
9015 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
9016 | + dldir=$destdir/`dirname \$dlpath`~ | ||
9017 | + test -d \$dldir || mkdir -p \$dldir~ | ||
9018 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
9019 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
9020 | + dlpath=$dir/\$dldll~ | ||
9021 | + $RM \$dlpath' | ||
9022 | + shlibpath_overrides_runpath=yes | ||
9023 | + dynamic_linker='Win32 link.exe' | ||
9024 | ;; | ||
9025 | |||
9026 | *) | ||
9027 | + # Assume MSVC wrapper | ||
9028 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
9029 | + dynamic_linker='Win32 ld.exe' | ||
9030 | ;; | ||
9031 | esac | ||
9032 | - dynamic_linker='Win32 ld.exe' | ||
9033 | # FIXME: first we should search . and the directory the executable is in | ||
9034 | shlibpath_var=PATH | ||
9035 | ;; | ||
9036 | @@ -10619,7 +11280,7 @@ haiku*) | ||
9037 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9038 | shlibpath_var=LIBRARY_PATH | ||
9039 | shlibpath_overrides_runpath=yes | ||
9040 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
9041 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
9042 | hardcode_into_libs=yes | ||
9043 | ;; | ||
9044 | |||
9045 | @@ -11415,7 +12076,7 @@ else | ||
9046 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
9047 | lt_status=$lt_dlunknown | ||
9048 | cat > conftest.$ac_ext <<_LT_EOF | ||
9049 | -#line 11415 "configure" | ||
9050 | +#line $LINENO "configure" | ||
9051 | #include "confdefs.h" | ||
9052 | |||
9053 | #if HAVE_DLFCN_H | ||
9054 | @@ -11459,10 +12120,10 @@ else | ||
9055 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
9056 | correspondingly for the symbols needed. */ | ||
9057 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
9058 | -void fnord () __attribute__((visibility("default"))); | ||
9059 | +int fnord () __attribute__((visibility("default"))); | ||
9060 | #endif | ||
9061 | |||
9062 | -void fnord () { int i=42; } | ||
9063 | +int fnord () { return 42; } | ||
9064 | int main () | ||
9065 | { | ||
9066 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
9067 | @@ -11521,7 +12182,7 @@ else | ||
9068 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
9069 | lt_status=$lt_dlunknown | ||
9070 | cat > conftest.$ac_ext <<_LT_EOF | ||
9071 | -#line 11521 "configure" | ||
9072 | +#line $LINENO "configure" | ||
9073 | #include "confdefs.h" | ||
9074 | |||
9075 | #if HAVE_DLFCN_H | ||
9076 | @@ -11565,10 +12226,10 @@ else | ||
9077 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
9078 | correspondingly for the symbols needed. */ | ||
9079 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
9080 | -void fnord () __attribute__((visibility("default"))); | ||
9081 | +int fnord () __attribute__((visibility("default"))); | ||
9082 | #endif | ||
9083 | |||
9084 | -void fnord () { int i=42; } | ||
9085 | +int fnord () { return 42; } | ||
9086 | int main () | ||
9087 | { | ||
9088 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
9089 | @@ -11960,6 +12621,7 @@ $RM -r conftest* | ||
9090 | |||
9091 | # Allow CC to be a program name with arguments. | ||
9092 | lt_save_CC=$CC | ||
9093 | + lt_save_CFLAGS=$CFLAGS | ||
9094 | lt_save_LD=$LD | ||
9095 | lt_save_GCC=$GCC | ||
9096 | GCC=$GXX | ||
9097 | @@ -11977,6 +12639,7 @@ $RM -r conftest* | ||
9098 | fi | ||
9099 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
9100 | CC=${CXX-"c++"} | ||
9101 | + CFLAGS=$CXXFLAGS | ||
9102 | compiler=$CC | ||
9103 | compiler_CXX=$CC | ||
9104 | for cc_temp in $compiler""; do | ||
9105 | @@ -12259,7 +12922,13 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie | ||
9106 | allow_undefined_flag_CXX='-berok' | ||
9107 | # Determine the default libpath from the value encoded in an empty | ||
9108 | # executable. | ||
9109 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9110 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
9111 | + aix_libpath=$lt_cv_aix_libpath | ||
9112 | +else | ||
9113 | + if ${lt_cv_aix_libpath__CXX+:} false; then : | ||
9114 | + $as_echo_n "(cached) " >&6 | ||
9115 | +else | ||
9116 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9117 | /* end confdefs.h. */ | ||
9118 | |||
9119 | int | ||
9120 | @@ -12272,22 +12941,29 @@ main () | ||
9121 | _ACEOF | ||
9122 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
9123 | |||
9124 | -lt_aix_libpath_sed=' | ||
9125 | - /Import File Strings/,/^$/ { | ||
9126 | - /^0/ { | ||
9127 | - s/^0 *\(.*\)$/\1/ | ||
9128 | - p | ||
9129 | - } | ||
9130 | - }' | ||
9131 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9132 | -# Check for a 64-bit object if we didn't find anything. | ||
9133 | -if test -z "$aix_libpath"; then | ||
9134 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9135 | -fi | ||
9136 | + lt_aix_libpath_sed=' | ||
9137 | + /Import File Strings/,/^$/ { | ||
9138 | + /^0/ { | ||
9139 | + s/^0 *\([^ ]*\) *$/\1/ | ||
9140 | + p | ||
9141 | + } | ||
9142 | + }' | ||
9143 | + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9144 | + # Check for a 64-bit object if we didn't find anything. | ||
9145 | + if test -z "$lt_cv_aix_libpath__CXX"; then | ||
9146 | + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9147 | + fi | ||
9148 | fi | ||
9149 | rm -f core conftest.err conftest.$ac_objext \ | ||
9150 | conftest$ac_exeext conftest.$ac_ext | ||
9151 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9152 | + if test -z "$lt_cv_aix_libpath__CXX"; then | ||
9153 | + lt_cv_aix_libpath__CXX="/usr/lib:/lib" | ||
9154 | + fi | ||
9155 | + | ||
9156 | +fi | ||
9157 | + | ||
9158 | + aix_libpath=$lt_cv_aix_libpath__CXX | ||
9159 | +fi | ||
9160 | |||
9161 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9162 | |||
9163 | @@ -12300,7 +12976,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9164 | else | ||
9165 | # Determine the default libpath from the value encoded in an | ||
9166 | # empty executable. | ||
9167 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9168 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
9169 | + aix_libpath=$lt_cv_aix_libpath | ||
9170 | +else | ||
9171 | + if ${lt_cv_aix_libpath__CXX+:} false; then : | ||
9172 | + $as_echo_n "(cached) " >&6 | ||
9173 | +else | ||
9174 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9175 | /* end confdefs.h. */ | ||
9176 | |||
9177 | int | ||
9178 | @@ -12313,22 +12995,29 @@ main () | ||
9179 | _ACEOF | ||
9180 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
9181 | |||
9182 | -lt_aix_libpath_sed=' | ||
9183 | - /Import File Strings/,/^$/ { | ||
9184 | - /^0/ { | ||
9185 | - s/^0 *\(.*\)$/\1/ | ||
9186 | - p | ||
9187 | - } | ||
9188 | - }' | ||
9189 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9190 | -# Check for a 64-bit object if we didn't find anything. | ||
9191 | -if test -z "$aix_libpath"; then | ||
9192 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9193 | -fi | ||
9194 | + lt_aix_libpath_sed=' | ||
9195 | + /Import File Strings/,/^$/ { | ||
9196 | + /^0/ { | ||
9197 | + s/^0 *\([^ ]*\) *$/\1/ | ||
9198 | + p | ||
9199 | + } | ||
9200 | + }' | ||
9201 | + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9202 | + # Check for a 64-bit object if we didn't find anything. | ||
9203 | + if test -z "$lt_cv_aix_libpath__CXX"; then | ||
9204 | + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9205 | + fi | ||
9206 | fi | ||
9207 | rm -f core conftest.err conftest.$ac_objext \ | ||
9208 | conftest$ac_exeext conftest.$ac_ext | ||
9209 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9210 | + if test -z "$lt_cv_aix_libpath__CXX"; then | ||
9211 | + lt_cv_aix_libpath__CXX="/usr/lib:/lib" | ||
9212 | + fi | ||
9213 | + | ||
9214 | +fi | ||
9215 | + | ||
9216 | + aix_libpath=$lt_cv_aix_libpath__CXX | ||
9217 | +fi | ||
9218 | |||
9219 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9220 | # Warning - without using the other run time loading flags, | ||
9221 | @@ -12371,29 +13060,75 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9222 | ;; | ||
9223 | |||
9224 | cygwin* | mingw* | pw32* | cegcc*) | ||
9225 | - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
9226 | - # as there is no search path for DLLs. | ||
9227 | - hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
9228 | - export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | ||
9229 | - allow_undefined_flag_CXX=unsupported | ||
9230 | - always_export_symbols_CXX=no | ||
9231 | - enable_shared_with_static_runtimes_CXX=yes | ||
9232 | - | ||
9233 | - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
9234 | - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9235 | - # If the export-symbols file already is a .def file (1st line | ||
9236 | - # is EXPORTS), use it as is; otherwise, prepend... | ||
9237 | - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
9238 | - cp $export_symbols $output_objdir/$soname.def; | ||
9239 | - else | ||
9240 | - echo EXPORTS > $output_objdir/$soname.def; | ||
9241 | - cat $export_symbols >> $output_objdir/$soname.def; | ||
9242 | - fi~ | ||
9243 | - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9244 | - else | ||
9245 | - ld_shlibs_CXX=no | ||
9246 | - fi | ||
9247 | - ;; | ||
9248 | + case $GXX,$cc_basename in | ||
9249 | + ,cl* | no,cl*) | ||
9250 | + # Native MSVC | ||
9251 | + # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
9252 | + # no search path for DLLs. | ||
9253 | + hardcode_libdir_flag_spec_CXX=' ' | ||
9254 | + allow_undefined_flag_CXX=unsupported | ||
9255 | + always_export_symbols_CXX=yes | ||
9256 | + file_list_spec_CXX='@' | ||
9257 | + # Tell ltmain to make .lib files, not .a files. | ||
9258 | + libext=lib | ||
9259 | + # Tell ltmain to make .dll files, not .so files. | ||
9260 | + shrext_cmds=".dll" | ||
9261 | + # FIXME: Setting linknames here is a bad hack. | ||
9262 | + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
9263 | + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
9264 | + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
9265 | + else | ||
9266 | + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
9267 | + fi~ | ||
9268 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
9269 | + linknames=' | ||
9270 | + # The linker will not automatically build a static lib if we build a DLL. | ||
9271 | + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | ||
9272 | + enable_shared_with_static_runtimes_CXX=yes | ||
9273 | + # Don't use ranlib | ||
9274 | + old_postinstall_cmds_CXX='chmod 644 $oldlib' | ||
9275 | + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | ||
9276 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
9277 | + case $lt_outputfile in | ||
9278 | + *.exe|*.EXE) ;; | ||
9279 | + *) | ||
9280 | + lt_outputfile="$lt_outputfile.exe" | ||
9281 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
9282 | + ;; | ||
9283 | + esac~ | ||
9284 | + func_to_tool_file "$lt_outputfile"~ | ||
9285 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
9286 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
9287 | + $RM "$lt_outputfile.manifest"; | ||
9288 | + fi' | ||
9289 | + ;; | ||
9290 | + *) | ||
9291 | + # g++ | ||
9292 | + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
9293 | + # as there is no search path for DLLs. | ||
9294 | + hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
9295 | + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | ||
9296 | + allow_undefined_flag_CXX=unsupported | ||
9297 | + always_export_symbols_CXX=no | ||
9298 | + enable_shared_with_static_runtimes_CXX=yes | ||
9299 | + | ||
9300 | + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
9301 | + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9302 | + # If the export-symbols file already is a .def file (1st line | ||
9303 | + # is EXPORTS), use it as is; otherwise, prepend... | ||
9304 | + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
9305 | + cp $export_symbols $output_objdir/$soname.def; | ||
9306 | + else | ||
9307 | + echo EXPORTS > $output_objdir/$soname.def; | ||
9308 | + cat $export_symbols >> $output_objdir/$soname.def; | ||
9309 | + fi~ | ||
9310 | + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9311 | + else | ||
9312 | + ld_shlibs_CXX=no | ||
9313 | + fi | ||
9314 | + ;; | ||
9315 | + esac | ||
9316 | + ;; | ||
9317 | darwin* | rhapsody*) | ||
9318 | |||
9319 | |||
9320 | @@ -12499,7 +13234,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9321 | ;; | ||
9322 | *) | ||
9323 | if test "$GXX" = yes; then | ||
9324 | - archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
9325 | + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
9326 | else | ||
9327 | # FIXME: insert proper C++ library support | ||
9328 | ld_shlibs_CXX=no | ||
9329 | @@ -12570,10 +13305,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9330 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
9331 | ;; | ||
9332 | ia64*) | ||
9333 | - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
9334 | + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
9335 | ;; | ||
9336 | *) | ||
9337 | - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
9338 | + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
9339 | ;; | ||
9340 | esac | ||
9341 | fi | ||
9342 | @@ -12614,9 +13349,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9343 | *) | ||
9344 | if test "$GXX" = yes; then | ||
9345 | if test "$with_gnu_ld" = no; then | ||
9346 | - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9347 | + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9348 | else | ||
9349 | - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | ||
9350 | + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | ||
9351 | fi | ||
9352 | fi | ||
9353 | link_all_deplibs_CXX=yes | ||
9354 | @@ -12686,20 +13421,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9355 | prelink_cmds_CXX='tpldir=Template.dir~ | ||
9356 | rm -rf $tpldir~ | ||
9357 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | ||
9358 | - compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | ||
9359 | + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | ||
9360 | old_archive_cmds_CXX='tpldir=Template.dir~ | ||
9361 | rm -rf $tpldir~ | ||
9362 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | ||
9363 | - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | ||
9364 | + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | ||
9365 | $RANLIB $oldlib' | ||
9366 | archive_cmds_CXX='tpldir=Template.dir~ | ||
9367 | rm -rf $tpldir~ | ||
9368 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
9369 | - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
9370 | + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
9371 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | ||
9372 | rm -rf $tpldir~ | ||
9373 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
9374 | - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
9375 | + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
9376 | ;; | ||
9377 | *) # Version 6 and above use weak symbols | ||
9378 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
9379 | @@ -12894,7 +13629,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9380 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9381 | ;; | ||
9382 | *) | ||
9383 | - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9384 | + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9385 | ;; | ||
9386 | esac | ||
9387 | |||
9388 | @@ -12940,7 +13675,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9389 | |||
9390 | solaris*) | ||
9391 | case $cc_basename in | ||
9392 | - CC*) | ||
9393 | + CC* | sunCC*) | ||
9394 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
9395 | archive_cmds_need_lc_CXX=yes | ||
9396 | no_undefined_flag_CXX=' -zdefs' | ||
9397 | @@ -12981,9 +13716,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9398 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
9399 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
9400 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | ||
9401 | - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
9402 | + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
9403 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9404 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
9405 | + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
9406 | |||
9407 | # Commands to make compiler produce verbose output that lists | ||
9408 | # what "hidden" libraries, object files and flags are used when | ||
9409 | @@ -13118,6 +13853,13 @@ private: | ||
9410 | }; | ||
9411 | _LT_EOF | ||
9412 | |||
9413 | + | ||
9414 | +_lt_libdeps_save_CFLAGS=$CFLAGS | ||
9415 | +case "$CC $CFLAGS " in #( | ||
9416 | +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | ||
9417 | +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | ||
9418 | +esac | ||
9419 | + | ||
9420 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
9421 | (eval $ac_compile) 2>&5 | ||
9422 | ac_status=$? | ||
9423 | @@ -13131,7 +13873,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
9424 | pre_test_object_deps_done=no | ||
9425 | |||
9426 | for p in `eval "$output_verbose_link_cmd"`; do | ||
9427 | - case $p in | ||
9428 | + case ${prev}${p} in | ||
9429 | |||
9430 | -L* | -R* | -l*) | ||
9431 | # Some compilers place space between "-{L,R}" and the path. | ||
9432 | @@ -13140,13 +13882,22 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
9433 | test $p = "-R"; then | ||
9434 | prev=$p | ||
9435 | continue | ||
9436 | - else | ||
9437 | - prev= | ||
9438 | fi | ||
9439 | |||
9440 | + # Expand the sysroot to ease extracting the directories later. | ||
9441 | + if test -z "$prev"; then | ||
9442 | + case $p in | ||
9443 | + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | ||
9444 | + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | ||
9445 | + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | ||
9446 | + esac | ||
9447 | + fi | ||
9448 | + case $p in | ||
9449 | + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | ||
9450 | + esac | ||
9451 | if test "$pre_test_object_deps_done" = no; then | ||
9452 | - case $p in | ||
9453 | - -L* | -R*) | ||
9454 | + case ${prev} in | ||
9455 | + -L | -R) | ||
9456 | # Internal compiler library paths should come after those | ||
9457 | # provided the user. The postdeps already come after the | ||
9458 | # user supplied libs so there is no need to process them. | ||
9459 | @@ -13166,8 +13917,10 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
9460 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
9461 | fi | ||
9462 | fi | ||
9463 | + prev= | ||
9464 | ;; | ||
9465 | |||
9466 | + *.lto.$objext) ;; # Ignore GCC LTO objects | ||
9467 | *.$objext) | ||
9468 | # This assumes that the test object file only shows up | ||
9469 | # once in the compiler output. | ||
9470 | @@ -13203,6 +13956,7 @@ else | ||
9471 | fi | ||
9472 | |||
9473 | $RM -f confest.$objext | ||
9474 | +CFLAGS=$_lt_libdeps_save_CFLAGS | ||
9475 | |||
9476 | # PORTME: override above test on systems where it is broken | ||
9477 | case $host_os in | ||
9478 | @@ -13238,7 +13992,7 @@ linux*) | ||
9479 | |||
9480 | solaris*) | ||
9481 | case $cc_basename in | ||
9482 | - CC*) | ||
9483 | + CC* | sunCC*) | ||
9484 | # The more standards-conforming stlport4 library is | ||
9485 | # incompatible with the Cstd library. Avoid specifying | ||
9486 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
9487 | @@ -13303,8 +14057,6 @@ fi | ||
9488 | lt_prog_compiler_pic_CXX= | ||
9489 | lt_prog_compiler_static_CXX= | ||
9490 | |||
9491 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
9492 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
9493 | |||
9494 | # C++ specific cases for pic, static, wl, etc. | ||
9495 | if test "$GXX" = yes; then | ||
9496 | @@ -13409,6 +14161,11 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
9497 | ;; | ||
9498 | esac | ||
9499 | ;; | ||
9500 | + mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
9501 | + # This hack is so that the source file can tell whether it is being | ||
9502 | + # built for inclusion in a dll (and should export symbols for example). | ||
9503 | + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
9504 | + ;; | ||
9505 | dgux*) | ||
9506 | case $cc_basename in | ||
9507 | ec++*) | ||
9508 | @@ -13561,7 +14318,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
9509 | ;; | ||
9510 | solaris*) | ||
9511 | case $cc_basename in | ||
9512 | - CC*) | ||
9513 | + CC* | sunCC*) | ||
9514 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
9515 | lt_prog_compiler_pic_CXX='-KPIC' | ||
9516 | lt_prog_compiler_static_CXX='-Bstatic' | ||
9517 | @@ -13626,10 +14383,17 @@ case $host_os in | ||
9518 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
9519 | ;; | ||
9520 | esac | ||
9521 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | ||
9522 | -$as_echo "$lt_prog_compiler_pic_CXX" >&6; } | ||
9523 | - | ||
9524 | |||
9525 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
9526 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
9527 | +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | ||
9528 | + $as_echo_n "(cached) " >&6 | ||
9529 | +else | ||
9530 | + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | ||
9531 | +fi | ||
9532 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | ||
9533 | +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | ||
9534 | +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | ||
9535 | |||
9536 | # | ||
9537 | # Check to make sure the PIC flag actually works. | ||
9538 | @@ -13687,6 +14451,8 @@ fi | ||
9539 | |||
9540 | |||
9541 | |||
9542 | + | ||
9543 | + | ||
9544 | # | ||
9545 | # Check to make sure the static flag actually works. | ||
9546 | # | ||
9547 | @@ -13864,6 +14630,7 @@ fi | ||
9548 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
9549 | |||
9550 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
9551 | + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
9552 | case $host_os in | ||
9553 | aix[4-9]*) | ||
9554 | # If we're using GNU nm, then we don't want the "-C" option. | ||
9555 | @@ -13878,15 +14645,20 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie | ||
9556 | ;; | ||
9557 | pw32*) | ||
9558 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
9559 | - ;; | ||
9560 | + ;; | ||
9561 | cygwin* | mingw* | cegcc*) | ||
9562 | - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
9563 | - ;; | ||
9564 | + case $cc_basename in | ||
9565 | + cl*) ;; | ||
9566 | + *) | ||
9567 | + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
9568 | + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
9569 | + ;; | ||
9570 | + esac | ||
9571 | + ;; | ||
9572 | *) | ||
9573 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
9574 | - ;; | ||
9575 | + ;; | ||
9576 | esac | ||
9577 | - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
9578 | |||
9579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
9580 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
9581 | @@ -14149,8 +14921,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
9582 | need_version=no | ||
9583 | need_lib_prefix=no | ||
9584 | |||
9585 | - case $GCC,$host_os in | ||
9586 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
9587 | + case $GCC,$cc_basename in | ||
9588 | + yes,*) | ||
9589 | + # gcc | ||
9590 | library_names_spec='$libname.dll.a' | ||
9591 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
9592 | postinstall_cmds='base_file=`basename \${file}`~ | ||
9593 | @@ -14182,13 +14955,71 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
9594 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9595 | ;; | ||
9596 | esac | ||
9597 | + dynamic_linker='Win32 ld.exe' | ||
9598 | + ;; | ||
9599 | + | ||
9600 | + *,cl*) | ||
9601 | + # Native MSVC | ||
9602 | + libname_spec='$name' | ||
9603 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9604 | + library_names_spec='${libname}.dll.lib' | ||
9605 | + | ||
9606 | + case $build_os in | ||
9607 | + mingw*) | ||
9608 | + sys_lib_search_path_spec= | ||
9609 | + lt_save_ifs=$IFS | ||
9610 | + IFS=';' | ||
9611 | + for lt_path in $LIB | ||
9612 | + do | ||
9613 | + IFS=$lt_save_ifs | ||
9614 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
9615 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
9616 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
9617 | + done | ||
9618 | + IFS=$lt_save_ifs | ||
9619 | + # Convert to MSYS style. | ||
9620 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
9621 | + ;; | ||
9622 | + cygwin*) | ||
9623 | + # Convert to unix form, then to dos form, then back to unix form | ||
9624 | + # but this time dos style (no spaces!) so that the unix form looks | ||
9625 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
9626 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
9627 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
9628 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9629 | + ;; | ||
9630 | + *) | ||
9631 | + sys_lib_search_path_spec="$LIB" | ||
9632 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
9633 | + # It is most probably a Windows format PATH. | ||
9634 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
9635 | + else | ||
9636 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9637 | + fi | ||
9638 | + # FIXME: find the short name or the path components, as spaces are | ||
9639 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
9640 | + ;; | ||
9641 | + esac | ||
9642 | + | ||
9643 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
9644 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
9645 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
9646 | + dldir=$destdir/`dirname \$dlpath`~ | ||
9647 | + test -d \$dldir || mkdir -p \$dldir~ | ||
9648 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
9649 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
9650 | + dlpath=$dir/\$dldll~ | ||
9651 | + $RM \$dlpath' | ||
9652 | + shlibpath_overrides_runpath=yes | ||
9653 | + dynamic_linker='Win32 link.exe' | ||
9654 | ;; | ||
9655 | |||
9656 | *) | ||
9657 | + # Assume MSVC wrapper | ||
9658 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
9659 | + dynamic_linker='Win32 ld.exe' | ||
9660 | ;; | ||
9661 | esac | ||
9662 | - dynamic_linker='Win32 ld.exe' | ||
9663 | # FIXME: first we should search . and the directory the executable is in | ||
9664 | shlibpath_var=PATH | ||
9665 | ;; | ||
9666 | @@ -14269,7 +15100,7 @@ haiku*) | ||
9667 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9668 | shlibpath_var=LIBRARY_PATH | ||
9669 | shlibpath_overrides_runpath=yes | ||
9670 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
9671 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
9672 | hardcode_into_libs=yes | ||
9673 | ;; | ||
9674 | |||
9675 | @@ -14728,6 +15559,7 @@ fi | ||
9676 | fi # test -n "$compiler" | ||
9677 | |||
9678 | CC=$lt_save_CC | ||
9679 | + CFLAGS=$lt_save_CFLAGS | ||
9680 | LDCXX=$LD | ||
9681 | LD=$lt_save_LD | ||
9682 | GCC=$lt_save_GCC | ||
9683 | @@ -17770,13 +18602,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
9684 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
9685 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
9686 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
9687 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
9688 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
9689 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
9690 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
9691 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
9692 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
9693 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
9694 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
9695 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
9696 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
9697 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
9698 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
9699 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
9700 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
9701 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
9702 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
9703 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
9704 | @@ -17791,14 +18630,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de | ||
9705 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
9706 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
9707 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
9708 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
9709 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
9710 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
9711 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
9712 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
9713 | -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
9714 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
9715 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
9716 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
9717 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
9718 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
9719 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
9720 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
9721 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
9722 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
9723 | @@ -17831,12 +18673,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q | ||
9724 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
9725 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
9726 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
9727 | -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | ||
9728 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
9729 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
9730 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
9731 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
9732 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
9733 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
9734 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
9735 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
9736 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
9737 | @@ -17875,8 +18717,8 @@ old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote | ||
9738 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | ||
9739 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | ||
9740 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | ||
9741 | -lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | ||
9742 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | ||
9743 | +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | ||
9744 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | ||
9745 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | ||
9746 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | ||
9747 | @@ -17903,12 +18745,12 @@ hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_ | ||
9748 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | ||
9749 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | ||
9750 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | ||
9751 | -fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | ||
9752 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | ||
9753 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | ||
9754 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | ||
9755 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | ||
9756 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | ||
9757 | +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | ||
9758 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | ||
9759 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | ||
9760 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | ||
9761 | @@ -17946,8 +18788,13 @@ reload_flag \ | ||
9762 | OBJDUMP \ | ||
9763 | deplibs_check_method \ | ||
9764 | file_magic_cmd \ | ||
9765 | +file_magic_glob \ | ||
9766 | +want_nocaseglob \ | ||
9767 | +DLLTOOL \ | ||
9768 | +sharedlib_from_linklib_cmd \ | ||
9769 | AR \ | ||
9770 | AR_FLAGS \ | ||
9771 | +archiver_list_spec \ | ||
9772 | STRIP \ | ||
9773 | RANLIB \ | ||
9774 | CC \ | ||
9775 | @@ -17957,12 +18804,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
9776 | lt_cv_sys_global_symbol_to_cdecl \ | ||
9777 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
9778 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
9779 | +nm_file_list_spec \ | ||
9780 | lt_prog_compiler_no_builtin_flag \ | ||
9781 | -lt_prog_compiler_wl \ | ||
9782 | lt_prog_compiler_pic \ | ||
9783 | +lt_prog_compiler_wl \ | ||
9784 | lt_prog_compiler_static \ | ||
9785 | lt_cv_prog_compiler_c_o \ | ||
9786 | need_locks \ | ||
9787 | +MANIFEST_TOOL \ | ||
9788 | DSYMUTIL \ | ||
9789 | NMEDIT \ | ||
9790 | LIPO \ | ||
9791 | @@ -17978,7 +18827,6 @@ no_undefined_flag \ | ||
9792 | hardcode_libdir_flag_spec \ | ||
9793 | hardcode_libdir_flag_spec_ld \ | ||
9794 | hardcode_libdir_separator \ | ||
9795 | -fix_srcfile_path \ | ||
9796 | exclude_expsyms \ | ||
9797 | include_expsyms \ | ||
9798 | file_list_spec \ | ||
9799 | @@ -18000,8 +18848,8 @@ LD_CXX \ | ||
9800 | reload_flag_CXX \ | ||
9801 | compiler_CXX \ | ||
9802 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
9803 | -lt_prog_compiler_wl_CXX \ | ||
9804 | lt_prog_compiler_pic_CXX \ | ||
9805 | +lt_prog_compiler_wl_CXX \ | ||
9806 | lt_prog_compiler_static_CXX \ | ||
9807 | lt_cv_prog_compiler_c_o_CXX \ | ||
9808 | export_dynamic_flag_spec_CXX \ | ||
9809 | @@ -18013,7 +18861,6 @@ no_undefined_flag_CXX \ | ||
9810 | hardcode_libdir_flag_spec_CXX \ | ||
9811 | hardcode_libdir_flag_spec_ld_CXX \ | ||
9812 | hardcode_libdir_separator_CXX \ | ||
9813 | -fix_srcfile_path_CXX \ | ||
9814 | exclude_expsyms_CXX \ | ||
9815 | include_expsyms_CXX \ | ||
9816 | file_list_spec_CXX \ | ||
9817 | @@ -18047,6 +18894,7 @@ module_cmds \ | ||
9818 | module_expsym_cmds \ | ||
9819 | export_symbols_cmds \ | ||
9820 | prelink_cmds \ | ||
9821 | +postlink_cmds \ | ||
9822 | postinstall_cmds \ | ||
9823 | postuninstall_cmds \ | ||
9824 | finish_cmds \ | ||
9825 | @@ -18061,7 +18909,8 @@ archive_expsym_cmds_CXX \ | ||
9826 | module_cmds_CXX \ | ||
9827 | module_expsym_cmds_CXX \ | ||
9828 | export_symbols_cmds_CXX \ | ||
9829 | -prelink_cmds_CXX; do | ||
9830 | +prelink_cmds_CXX \ | ||
9831 | +postlink_cmds_CXX; do | ||
9832 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
9833 | *[\\\\\\\`\\"\\\$]*) | ||
9834 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
9835 | @@ -18826,7 +19675,8 @@ $as_echo X"$file" | | ||
9836 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
9837 | # | ||
9838 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
9839 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
9840 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
9841 | +# Inc. | ||
9842 | # Written by Gordon Matzigkeit, 1996 | ||
9843 | # | ||
9844 | # This file is part of GNU Libtool. | ||
9845 | @@ -18929,19 +19779,42 @@ SP2NL=$lt_lt_SP2NL | ||
9846 | # turn newlines into spaces. | ||
9847 | NL2SP=$lt_lt_NL2SP | ||
9848 | |||
9849 | +# convert \$build file names to \$host format. | ||
9850 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
9851 | + | ||
9852 | +# convert \$build files to toolchain format. | ||
9853 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
9854 | + | ||
9855 | # An object symbol dumper. | ||
9856 | OBJDUMP=$lt_OBJDUMP | ||
9857 | |||
9858 | # Method to check whether dependent libraries are shared objects. | ||
9859 | deplibs_check_method=$lt_deplibs_check_method | ||
9860 | |||
9861 | -# Command to use when deplibs_check_method == "file_magic". | ||
9862 | +# Command to use when deplibs_check_method = "file_magic". | ||
9863 | file_magic_cmd=$lt_file_magic_cmd | ||
9864 | |||
9865 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
9866 | +file_magic_glob=$lt_file_magic_glob | ||
9867 | + | ||
9868 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
9869 | +want_nocaseglob=$lt_want_nocaseglob | ||
9870 | + | ||
9871 | +# DLL creation program. | ||
9872 | +DLLTOOL=$lt_DLLTOOL | ||
9873 | + | ||
9874 | +# Command to associate shared and link libraries. | ||
9875 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
9876 | + | ||
9877 | # The archiver. | ||
9878 | AR=$lt_AR | ||
9879 | + | ||
9880 | +# Flags to create an archive. | ||
9881 | AR_FLAGS=$lt_AR_FLAGS | ||
9882 | |||
9883 | +# How to feed a file listing to the archiver. | ||
9884 | +archiver_list_spec=$lt_archiver_list_spec | ||
9885 | + | ||
9886 | # A symbol stripping program. | ||
9887 | STRIP=$lt_STRIP | ||
9888 | |||
9889 | @@ -18971,6 +19844,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
9890 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
9891 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
9892 | |||
9893 | +# Specify filename containing input files for \$NM. | ||
9894 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
9895 | + | ||
9896 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
9897 | +lt_sysroot=$lt_sysroot | ||
9898 | + | ||
9899 | # The name of the directory that contains temporary libtool files. | ||
9900 | objdir=$objdir | ||
9901 | |||
9902 | @@ -18980,6 +19859,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
9903 | # Must we lock files when doing compilation? | ||
9904 | need_locks=$lt_need_locks | ||
9905 | |||
9906 | +# Manifest tool. | ||
9907 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
9908 | + | ||
9909 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
9910 | DSYMUTIL=$lt_DSYMUTIL | ||
9911 | |||
9912 | @@ -19094,12 +19976,12 @@ with_gcc=$GCC | ||
9913 | # Compiler flag to turn off builtin functions. | ||
9914 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
9915 | |||
9916 | -# How to pass a linker flag through the compiler. | ||
9917 | -wl=$lt_lt_prog_compiler_wl | ||
9918 | - | ||
9919 | # Additional compiler flags for building library objects. | ||
9920 | pic_flag=$lt_lt_prog_compiler_pic | ||
9921 | |||
9922 | +# How to pass a linker flag through the compiler. | ||
9923 | +wl=$lt_lt_prog_compiler_wl | ||
9924 | + | ||
9925 | # Compiler flag to prevent dynamic linking. | ||
9926 | link_static_flag=$lt_lt_prog_compiler_static | ||
9927 | |||
9928 | @@ -19186,9 +20068,6 @@ inherit_rpath=$inherit_rpath | ||
9929 | # Whether libtool must link a program against all its dependency libraries. | ||
9930 | link_all_deplibs=$link_all_deplibs | ||
9931 | |||
9932 | -# Fix the shell variable \$srcfile for the compiler. | ||
9933 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
9934 | - | ||
9935 | # Set to "yes" if exported symbols are required. | ||
9936 | always_export_symbols=$always_export_symbols | ||
9937 | |||
9938 | @@ -19204,6 +20083,9 @@ include_expsyms=$lt_include_expsyms | ||
9939 | # Commands necessary for linking programs (against libraries) with templates. | ||
9940 | prelink_cmds=$lt_prelink_cmds | ||
9941 | |||
9942 | +# Commands necessary for finishing linking programs. | ||
9943 | +postlink_cmds=$lt_postlink_cmds | ||
9944 | + | ||
9945 | # Specify filename containing input files. | ||
9946 | file_list_spec=$lt_file_list_spec | ||
9947 | |||
9948 | @@ -19250,210 +20132,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
9949 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
9950 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
9951 | # is reportedly fixed, but why not run on old versions too? | ||
9952 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
9953 | - || (rm -f "$cfgfile"; exit 1) | ||
9954 | - | ||
9955 | - case $xsi_shell in | ||
9956 | - yes) | ||
9957 | - cat << \_LT_EOF >> "$cfgfile" | ||
9958 | - | ||
9959 | -# func_dirname file append nondir_replacement | ||
9960 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
9961 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
9962 | -func_dirname () | ||
9963 | -{ | ||
9964 | - case ${1} in | ||
9965 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
9966 | - * ) func_dirname_result="${3}" ;; | ||
9967 | - esac | ||
9968 | -} | ||
9969 | - | ||
9970 | -# func_basename file | ||
9971 | -func_basename () | ||
9972 | -{ | ||
9973 | - func_basename_result="${1##*/}" | ||
9974 | -} | ||
9975 | - | ||
9976 | -# func_dirname_and_basename file append nondir_replacement | ||
9977 | -# perform func_basename and func_dirname in a single function | ||
9978 | -# call: | ||
9979 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
9980 | -# add APPEND to the result, otherwise set result | ||
9981 | -# to NONDIR_REPLACEMENT. | ||
9982 | -# value returned in "$func_dirname_result" | ||
9983 | -# basename: Compute filename of FILE. | ||
9984 | -# value retuned in "$func_basename_result" | ||
9985 | -# Implementation must be kept synchronized with func_dirname | ||
9986 | -# and func_basename. For efficiency, we do not delegate to | ||
9987 | -# those functions but instead duplicate the functionality here. | ||
9988 | -func_dirname_and_basename () | ||
9989 | -{ | ||
9990 | - case ${1} in | ||
9991 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
9992 | - * ) func_dirname_result="${3}" ;; | ||
9993 | - esac | ||
9994 | - func_basename_result="${1##*/}" | ||
9995 | -} | ||
9996 | - | ||
9997 | -# func_stripname prefix suffix name | ||
9998 | -# strip PREFIX and SUFFIX off of NAME. | ||
9999 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
10000 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
10001 | -# dot (in which case that matches only a dot). | ||
10002 | -func_stripname () | ||
10003 | -{ | ||
10004 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
10005 | - # positional parameters, so assign one to ordinary parameter first. | ||
10006 | - func_stripname_result=${3} | ||
10007 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
10008 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
10009 | -} | ||
10010 | - | ||
10011 | -# func_opt_split | ||
10012 | -func_opt_split () | ||
10013 | -{ | ||
10014 | - func_opt_split_opt=${1%%=*} | ||
10015 | - func_opt_split_arg=${1#*=} | ||
10016 | -} | ||
10017 | - | ||
10018 | -# func_lo2o object | ||
10019 | -func_lo2o () | ||
10020 | -{ | ||
10021 | - case ${1} in | ||
10022 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
10023 | - *) func_lo2o_result=${1} ;; | ||
10024 | - esac | ||
10025 | -} | ||
10026 | - | ||
10027 | -# func_xform libobj-or-source | ||
10028 | -func_xform () | ||
10029 | -{ | ||
10030 | - func_xform_result=${1%.*}.lo | ||
10031 | -} | ||
10032 | - | ||
10033 | -# func_arith arithmetic-term... | ||
10034 | -func_arith () | ||
10035 | -{ | ||
10036 | - func_arith_result=$(( $* )) | ||
10037 | -} | ||
10038 | - | ||
10039 | -# func_len string | ||
10040 | -# STRING may not start with a hyphen. | ||
10041 | -func_len () | ||
10042 | -{ | ||
10043 | - func_len_result=${#1} | ||
10044 | -} | ||
10045 | - | ||
10046 | -_LT_EOF | ||
10047 | - ;; | ||
10048 | - *) # Bourne compatible functions. | ||
10049 | - cat << \_LT_EOF >> "$cfgfile" | ||
10050 | - | ||
10051 | -# func_dirname file append nondir_replacement | ||
10052 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
10053 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
10054 | -func_dirname () | ||
10055 | -{ | ||
10056 | - # Extract subdirectory from the argument. | ||
10057 | - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
10058 | - if test "X$func_dirname_result" = "X${1}"; then | ||
10059 | - func_dirname_result="${3}" | ||
10060 | - else | ||
10061 | - func_dirname_result="$func_dirname_result${2}" | ||
10062 | - fi | ||
10063 | -} | ||
10064 | - | ||
10065 | -# func_basename file | ||
10066 | -func_basename () | ||
10067 | -{ | ||
10068 | - func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
10069 | -} | ||
10070 | - | ||
10071 | - | ||
10072 | -# func_stripname prefix suffix name | ||
10073 | -# strip PREFIX and SUFFIX off of NAME. | ||
10074 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
10075 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
10076 | -# dot (in which case that matches only a dot). | ||
10077 | -# func_strip_suffix prefix name | ||
10078 | -func_stripname () | ||
10079 | -{ | ||
10080 | - case ${2} in | ||
10081 | - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
10082 | - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
10083 | - esac | ||
10084 | -} | ||
10085 | - | ||
10086 | -# sed scripts: | ||
10087 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
10088 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
10089 | - | ||
10090 | -# func_opt_split | ||
10091 | -func_opt_split () | ||
10092 | -{ | ||
10093 | - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | ||
10094 | - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | ||
10095 | -} | ||
10096 | - | ||
10097 | -# func_lo2o object | ||
10098 | -func_lo2o () | ||
10099 | -{ | ||
10100 | - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
10101 | -} | ||
10102 | - | ||
10103 | -# func_xform libobj-or-source | ||
10104 | -func_xform () | ||
10105 | -{ | ||
10106 | - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
10107 | -} | ||
10108 | - | ||
10109 | -# func_arith arithmetic-term... | ||
10110 | -func_arith () | ||
10111 | -{ | ||
10112 | - func_arith_result=`expr "$@"` | ||
10113 | -} | ||
10114 | - | ||
10115 | -# func_len string | ||
10116 | -# STRING may not start with a hyphen. | ||
10117 | -func_len () | ||
10118 | -{ | ||
10119 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
10120 | -} | ||
10121 | - | ||
10122 | -_LT_EOF | ||
10123 | -esac | ||
10124 | - | ||
10125 | -case $lt_shell_append in | ||
10126 | - yes) | ||
10127 | - cat << \_LT_EOF >> "$cfgfile" | ||
10128 | - | ||
10129 | -# func_append var value | ||
10130 | -# Append VALUE to the end of shell variable VAR. | ||
10131 | -func_append () | ||
10132 | -{ | ||
10133 | - eval "$1+=\$2" | ||
10134 | -} | ||
10135 | -_LT_EOF | ||
10136 | - ;; | ||
10137 | - *) | ||
10138 | - cat << \_LT_EOF >> "$cfgfile" | ||
10139 | - | ||
10140 | -# func_append var value | ||
10141 | -# Append VALUE to the end of shell variable VAR. | ||
10142 | -func_append () | ||
10143 | -{ | ||
10144 | - eval "$1=\$$1\$2" | ||
10145 | -} | ||
10146 | - | ||
10147 | -_LT_EOF | ||
10148 | - ;; | ||
10149 | - esac | ||
10150 | - | ||
10151 | - | ||
10152 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
10153 | - || (rm -f "$cfgfile"; exit 1) | ||
10154 | - | ||
10155 | - mv -f "$cfgfile" "$ofile" || | ||
10156 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
10157 | + || (rm -f "$cfgfile"; exit 1) | ||
10158 | + | ||
10159 | + if test x"$xsi_shell" = xyes; then | ||
10160 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
10161 | +func_dirname ()\ | ||
10162 | +{\ | ||
10163 | +\ case ${1} in\ | ||
10164 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
10165 | +\ * ) func_dirname_result="${3}" ;;\ | ||
10166 | +\ esac\ | ||
10167 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10168 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10169 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10170 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10171 | + | ||
10172 | + | ||
10173 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
10174 | +func_basename ()\ | ||
10175 | +{\ | ||
10176 | +\ func_basename_result="${1##*/}"\ | ||
10177 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10178 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10179 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10180 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10181 | + | ||
10182 | + | ||
10183 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
10184 | +func_dirname_and_basename ()\ | ||
10185 | +{\ | ||
10186 | +\ case ${1} in\ | ||
10187 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
10188 | +\ * ) func_dirname_result="${3}" ;;\ | ||
10189 | +\ esac\ | ||
10190 | +\ func_basename_result="${1##*/}"\ | ||
10191 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10192 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10193 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10194 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10195 | + | ||
10196 | + | ||
10197 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
10198 | +func_stripname ()\ | ||
10199 | +{\ | ||
10200 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
10201 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
10202 | +\ func_stripname_result=${3}\ | ||
10203 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
10204 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
10205 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10206 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10207 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10208 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10209 | + | ||
10210 | + | ||
10211 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
10212 | +func_split_long_opt ()\ | ||
10213 | +{\ | ||
10214 | +\ func_split_long_opt_name=${1%%=*}\ | ||
10215 | +\ func_split_long_opt_arg=${1#*=}\ | ||
10216 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10217 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10218 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10219 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10220 | + | ||
10221 | + | ||
10222 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
10223 | +func_split_short_opt ()\ | ||
10224 | +{\ | ||
10225 | +\ func_split_short_opt_arg=${1#??}\ | ||
10226 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
10227 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10228 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10229 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10230 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10231 | + | ||
10232 | + | ||
10233 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
10234 | +func_lo2o ()\ | ||
10235 | +{\ | ||
10236 | +\ case ${1} in\ | ||
10237 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
10238 | +\ *) func_lo2o_result=${1} ;;\ | ||
10239 | +\ esac\ | ||
10240 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10241 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10242 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10243 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10244 | + | ||
10245 | + | ||
10246 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
10247 | +func_xform ()\ | ||
10248 | +{\ | ||
10249 | + func_xform_result=${1%.*}.lo\ | ||
10250 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10251 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10252 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10253 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10254 | + | ||
10255 | + | ||
10256 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
10257 | +func_arith ()\ | ||
10258 | +{\ | ||
10259 | + func_arith_result=$(( $* ))\ | ||
10260 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10261 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10262 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10263 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10264 | + | ||
10265 | + | ||
10266 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
10267 | +func_len ()\ | ||
10268 | +{\ | ||
10269 | + func_len_result=${#1}\ | ||
10270 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10271 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10272 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10273 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10274 | + | ||
10275 | +fi | ||
10276 | + | ||
10277 | +if test x"$lt_shell_append" = xyes; then | ||
10278 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
10279 | +func_append ()\ | ||
10280 | +{\ | ||
10281 | + eval "${1}+=\\${2}"\ | ||
10282 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10283 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10284 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10285 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10286 | + | ||
10287 | + | ||
10288 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
10289 | +func_append_quoted ()\ | ||
10290 | +{\ | ||
10291 | +\ func_quote_for_eval "${2}"\ | ||
10292 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
10293 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
10294 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10295 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10296 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
10297 | + | ||
10298 | + | ||
10299 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
10300 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
10301 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10302 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10303 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
10304 | +else | ||
10305 | + # Save a `func_append' function call even when '+=' is not available | ||
10306 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
10307 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
10308 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
10309 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
10310 | +fi | ||
10311 | + | ||
10312 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
10313 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
10314 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
10315 | +fi | ||
10316 | + | ||
10317 | + | ||
10318 | + mv -f "$cfgfile" "$ofile" || | ||
10319 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
10320 | chmod +x "$ofile" | ||
10321 | |||
10322 | @@ -19481,12 +20322,12 @@ with_gcc=$GCC_CXX | ||
10323 | # Compiler flag to turn off builtin functions. | ||
10324 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
10325 | |||
10326 | -# How to pass a linker flag through the compiler. | ||
10327 | -wl=$lt_lt_prog_compiler_wl_CXX | ||
10328 | - | ||
10329 | # Additional compiler flags for building library objects. | ||
10330 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
10331 | |||
10332 | +# How to pass a linker flag through the compiler. | ||
10333 | +wl=$lt_lt_prog_compiler_wl_CXX | ||
10334 | + | ||
10335 | # Compiler flag to prevent dynamic linking. | ||
10336 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
10337 | |||
10338 | @@ -19573,9 +20414,6 @@ inherit_rpath=$inherit_rpath_CXX | ||
10339 | # Whether libtool must link a program against all its dependency libraries. | ||
10340 | link_all_deplibs=$link_all_deplibs_CXX | ||
10341 | |||
10342 | -# Fix the shell variable \$srcfile for the compiler. | ||
10343 | -fix_srcfile_path=$lt_fix_srcfile_path_CXX | ||
10344 | - | ||
10345 | # Set to "yes" if exported symbols are required. | ||
10346 | always_export_symbols=$always_export_symbols_CXX | ||
10347 | |||
10348 | @@ -19591,6 +20429,9 @@ include_expsyms=$lt_include_expsyms_CXX | ||
10349 | # Commands necessary for linking programs (against libraries) with templates. | ||
10350 | prelink_cmds=$lt_prelink_cmds_CXX | ||
10351 | |||
10352 | +# Commands necessary for finishing linking programs. | ||
10353 | +postlink_cmds=$lt_postlink_cmds_CXX | ||
10354 | + | ||
10355 | # Specify filename containing input files. | ||
10356 | file_list_spec=$lt_file_list_spec_CXX | ||
10357 | |||
10358 | diff --git a/libctf/configure b/libctf/configure | ||
10359 | index 82bcf13a606..a7fb723a145 100755 | ||
10360 | --- a/libctf/configure | ||
10361 | +++ b/libctf/configure | ||
10362 | @@ -666,6 +666,8 @@ OTOOL | ||
10363 | LIPO | ||
10364 | NMEDIT | ||
10365 | DSYMUTIL | ||
10366 | +MANIFEST_TOOL | ||
10367 | +DLLTOOL | ||
10368 | OBJDUMP | ||
10369 | LN_S | ||
10370 | NM | ||
10371 | @@ -797,6 +799,7 @@ enable_static | ||
10372 | with_pic | ||
10373 | enable_fast_install | ||
10374 | with_gnu_ld | ||
10375 | +with_libtool_sysroot | ||
10376 | enable_libtool_lock | ||
10377 | enable_largefile | ||
10378 | enable_werror_always | ||
10379 | @@ -1460,6 +1463,8 @@ Optional Packages: | ||
10380 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
10381 | both] | ||
10382 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
10383 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
10384 | + (or the compiler's sysroot if not specified). | ||
10385 | --with-system-zlib use installed libz | ||
10386 | |||
10387 | Some influential environment variables: | ||
10388 | @@ -5529,8 +5534,8 @@ esac | ||
10389 | |||
10390 | |||
10391 | |||
10392 | -macro_version='2.2.7a' | ||
10393 | -macro_revision='1.3134' | ||
10394 | +macro_version='2.4' | ||
10395 | +macro_revision='1.3293' | ||
10396 | |||
10397 | |||
10398 | |||
10399 | @@ -5570,7 +5575,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
10401 | $as_echo_n "checking how to print strings... " >&6; } | ||
10402 | # Test print first, because it will be a builtin if present. | ||
10403 | -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | ||
10404 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
10405 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
10406 | ECHO='print -r --' | ||
10407 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
10408 | @@ -6256,8 +6261,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; | ||
10409 | # Try some XSI features | ||
10410 | xsi_shell=no | ||
10411 | ( _lt_dummy="a/b/c" | ||
10412 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
10413 | - = c,a/b,, \ | ||
10414 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
10415 | + = c,a/b,b/c, \ | ||
10416 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
10417 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
10418 | && xsi_shell=yes | ||
10419 | @@ -6306,6 +6311,80 @@ esac | ||
10420 | |||
10421 | |||
10422 | |||
10423 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
10424 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
10425 | +if ${lt_cv_to_host_file_cmd+:} false; then : | ||
10426 | + $as_echo_n "(cached) " >&6 | ||
10427 | +else | ||
10428 | + case $host in | ||
10429 | + *-*-mingw* ) | ||
10430 | + case $build in | ||
10431 | + *-*-mingw* ) # actually msys | ||
10432 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
10433 | + ;; | ||
10434 | + *-*-cygwin* ) | ||
10435 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
10436 | + ;; | ||
10437 | + * ) # otherwise, assume *nix | ||
10438 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
10439 | + ;; | ||
10440 | + esac | ||
10441 | + ;; | ||
10442 | + *-*-cygwin* ) | ||
10443 | + case $build in | ||
10444 | + *-*-mingw* ) # actually msys | ||
10445 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
10446 | + ;; | ||
10447 | + *-*-cygwin* ) | ||
10448 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
10449 | + ;; | ||
10450 | + * ) # otherwise, assume *nix | ||
10451 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
10452 | + ;; | ||
10453 | + esac | ||
10454 | + ;; | ||
10455 | + * ) # unhandled hosts (and "normal" native builds) | ||
10456 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
10457 | + ;; | ||
10458 | +esac | ||
10459 | + | ||
10460 | +fi | ||
10461 | + | ||
10462 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
10463 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
10464 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
10465 | + | ||
10466 | + | ||
10467 | + | ||
10468 | + | ||
10469 | + | ||
10470 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
10471 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
10472 | +if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
10473 | + $as_echo_n "(cached) " >&6 | ||
10474 | +else | ||
10475 | + #assume ordinary cross tools, or native build. | ||
10476 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
10477 | +case $host in | ||
10478 | + *-*-mingw* ) | ||
10479 | + case $build in | ||
10480 | + *-*-mingw* ) # actually msys | ||
10481 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
10482 | + ;; | ||
10483 | + esac | ||
10484 | + ;; | ||
10485 | +esac | ||
10486 | + | ||
10487 | +fi | ||
10488 | + | ||
10489 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
10490 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
10491 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
10492 | + | ||
10493 | + | ||
10494 | + | ||
10495 | + | ||
10496 | + | ||
10497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
10498 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
10499 | if ${lt_cv_ld_reload_flag+:} false; then : | ||
10500 | @@ -6322,6 +6401,11 @@ case $reload_flag in | ||
10501 | esac | ||
10502 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
10503 | case $host_os in | ||
10504 | + cygwin* | mingw* | pw32* | cegcc*) | ||
10505 | + if test "$GCC" != yes; then | ||
10506 | + reload_cmds=false | ||
10507 | + fi | ||
10508 | + ;; | ||
10509 | darwin*) | ||
10510 | if test "$GCC" = yes; then | ||
10511 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
10512 | @@ -6490,7 +6574,8 @@ mingw* | pw32*) | ||
10513 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
10514 | lt_cv_file_magic_cmd='func_win32_libid' | ||
10515 | else | ||
10516 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
10517 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
10518 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
10519 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
10520 | fi | ||
10521 | ;; | ||
10522 | @@ -6644,6 +6729,21 @@ esac | ||
10523 | fi | ||
10524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
10525 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
10526 | + | ||
10527 | +file_magic_glob= | ||
10528 | +want_nocaseglob=no | ||
10529 | +if test "$build" = "$host"; then | ||
10530 | + case $host_os in | ||
10531 | + mingw* | pw32*) | ||
10532 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
10533 | + want_nocaseglob=yes | ||
10534 | + else | ||
10535 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
10536 | + fi | ||
10537 | + ;; | ||
10538 | + esac | ||
10539 | +fi | ||
10540 | + | ||
10541 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
10542 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
10543 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
10544 | @@ -6659,6 +6759,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
10545 | |||
10546 | |||
10547 | |||
10548 | + | ||
10549 | + | ||
10550 | + | ||
10551 | + | ||
10552 | + | ||
10553 | + | ||
10554 | + | ||
10555 | + | ||
10556 | + | ||
10557 | + | ||
10558 | +if test -n "$ac_tool_prefix"; then | ||
10559 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
10560 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
10561 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10562 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
10563 | +if ${ac_cv_prog_DLLTOOL+:} false; then : | ||
10564 | + $as_echo_n "(cached) " >&6 | ||
10565 | +else | ||
10566 | + if test -n "$DLLTOOL"; then | ||
10567 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
10568 | +else | ||
10569 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10570 | +for as_dir in $PATH | ||
10571 | +do | ||
10572 | + IFS=$as_save_IFS | ||
10573 | + test -z "$as_dir" && as_dir=. | ||
10574 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
10575 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10576 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
10577 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10578 | + break 2 | ||
10579 | + fi | ||
10580 | +done | ||
10581 | + done | ||
10582 | +IFS=$as_save_IFS | ||
10583 | + | ||
10584 | +fi | ||
10585 | +fi | ||
10586 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
10587 | +if test -n "$DLLTOOL"; then | ||
10588 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
10589 | +$as_echo "$DLLTOOL" >&6; } | ||
10590 | +else | ||
10591 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10592 | +$as_echo "no" >&6; } | ||
10593 | +fi | ||
10594 | + | ||
10595 | + | ||
10596 | +fi | ||
10597 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
10598 | + ac_ct_DLLTOOL=$DLLTOOL | ||
10599 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
10600 | +set dummy dlltool; ac_word=$2 | ||
10601 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10602 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
10603 | +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ||
10604 | + $as_echo_n "(cached) " >&6 | ||
10605 | +else | ||
10606 | + if test -n "$ac_ct_DLLTOOL"; then | ||
10607 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
10608 | +else | ||
10609 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10610 | +for as_dir in $PATH | ||
10611 | +do | ||
10612 | + IFS=$as_save_IFS | ||
10613 | + test -z "$as_dir" && as_dir=. | ||
10614 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
10615 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10616 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
10617 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10618 | + break 2 | ||
10619 | + fi | ||
10620 | +done | ||
10621 | + done | ||
10622 | +IFS=$as_save_IFS | ||
10623 | + | ||
10624 | +fi | ||
10625 | +fi | ||
10626 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
10627 | +if test -n "$ac_ct_DLLTOOL"; then | ||
10628 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
10629 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
10630 | +else | ||
10631 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10632 | +$as_echo "no" >&6; } | ||
10633 | +fi | ||
10634 | + | ||
10635 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
10636 | + DLLTOOL="false" | ||
10637 | + else | ||
10638 | + case $cross_compiling:$ac_tool_warned in | ||
10639 | +yes:) | ||
10640 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10641 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10642 | +ac_tool_warned=yes ;; | ||
10643 | +esac | ||
10644 | + DLLTOOL=$ac_ct_DLLTOOL | ||
10645 | + fi | ||
10646 | +else | ||
10647 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
10648 | +fi | ||
10649 | + | ||
10650 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
10651 | + | ||
10652 | + | ||
10653 | + | ||
10654 | + | ||
10655 | + | ||
10656 | + | ||
10657 | + | ||
10658 | + | ||
10659 | + | ||
10660 | + | ||
10661 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
10662 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
10663 | +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
10664 | + $as_echo_n "(cached) " >&6 | ||
10665 | +else | ||
10666 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
10667 | + | ||
10668 | +case $host_os in | ||
10669 | +cygwin* | mingw* | pw32* | cegcc*) | ||
10670 | + # two different shell functions defined in ltmain.sh | ||
10671 | + # decide which to use based on capabilities of $DLLTOOL | ||
10672 | + case `$DLLTOOL --help 2>&1` in | ||
10673 | + *--identify-strict*) | ||
10674 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
10675 | + ;; | ||
10676 | + *) | ||
10677 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
10678 | + ;; | ||
10679 | + esac | ||
10680 | + ;; | ||
10681 | +*) | ||
10682 | + # fallback: assume linklib IS sharedlib | ||
10683 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
10684 | + ;; | ||
10685 | +esac | ||
10686 | + | ||
10687 | +fi | ||
10688 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
10689 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
10690 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
10691 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
10692 | + | ||
10693 | + | ||
10694 | + | ||
10695 | + | ||
10696 | + | ||
10697 | + | ||
10698 | + | ||
10699 | plugin_option= | ||
10700 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | ||
10701 | for plugin in $plugin_names; do | ||
10702 | @@ -6673,8 +6924,10 @@ for plugin in $plugin_names; do | ||
10703 | done | ||
10704 | |||
10705 | if test -n "$ac_tool_prefix"; then | ||
10706 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
10707 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
10708 | + for ac_prog in ar | ||
10709 | + do | ||
10710 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
10711 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10713 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10714 | if ${ac_cv_prog_AR+:} false; then : | ||
10715 | @@ -6690,7 +6943,7 @@ do | ||
10716 | test -z "$as_dir" && as_dir=. | ||
10717 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10719 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
10720 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
10721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10722 | break 2 | ||
10723 | fi | ||
10724 | @@ -6710,11 +6963,15 @@ $as_echo "no" >&6; } | ||
10725 | fi | ||
10726 | |||
10727 | |||
10728 | + test -n "$AR" && break | ||
10729 | + done | ||
10730 | fi | ||
10731 | -if test -z "$ac_cv_prog_AR"; then | ||
10732 | +if test -z "$AR"; then | ||
10733 | ac_ct_AR=$AR | ||
10734 | - # Extract the first word of "ar", so it can be a program name with args. | ||
10735 | -set dummy ar; ac_word=$2 | ||
10736 | + for ac_prog in ar | ||
10737 | +do | ||
10738 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
10739 | +set dummy $ac_prog; ac_word=$2 | ||
10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10741 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10742 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
10743 | @@ -6730,7 +6987,7 @@ do | ||
10744 | test -z "$as_dir" && as_dir=. | ||
10745 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10747 | - ac_cv_prog_ac_ct_AR="ar" | ||
10748 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
10749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10750 | break 2 | ||
10751 | fi | ||
10752 | @@ -6749,6 +7006,10 @@ else | ||
10753 | $as_echo "no" >&6; } | ||
10754 | fi | ||
10755 | |||
10756 | + | ||
10757 | + test -n "$ac_ct_AR" && break | ||
10758 | +done | ||
10759 | + | ||
10760 | if test "x$ac_ct_AR" = x; then | ||
10761 | AR="false" | ||
10762 | else | ||
10763 | @@ -6760,25 +7021,19 @@ ac_tool_warned=yes ;; | ||
10764 | esac | ||
10765 | AR=$ac_ct_AR | ||
10766 | fi | ||
10767 | -else | ||
10768 | - AR="$ac_cv_prog_AR" | ||
10769 | fi | ||
10770 | |||
10771 | -test -z "$AR" && AR=ar | ||
10772 | -if test -n "$plugin_option"; then | ||
10773 | - if $AR --help 2>&1 | grep -q "\--plugin"; then | ||
10774 | - touch conftest.c | ||
10775 | - $AR $plugin_option rc conftest.a conftest.c | ||
10776 | - if test "$?" != 0; then | ||
10777 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
10778 | + touch conftest.c | ||
10779 | + $AR $plugin_option rc conftest.a conftest.c | ||
10780 | + if test "$?" != 0; then | ||
10781 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
10782 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | ||
10783 | - else | ||
10784 | - AR="$AR $plugin_option" | ||
10785 | - fi | ||
10786 | - rm -f conftest.* | ||
10787 | + else | ||
10788 | + AR="$AR $plugin_option" | ||
10789 | fi | ||
10790 | -fi | ||
10791 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
10792 | + rm -f conftest.* | ||
10793 | +: ${AR=ar} | ||
10794 | +: ${AR_FLAGS=cru} | ||
10795 | |||
10796 | |||
10797 | |||
10798 | @@ -6790,6 +7045,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
10799 | |||
10800 | |||
10801 | |||
10802 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
10803 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
10804 | +if ${lt_cv_ar_at_file+:} false; then : | ||
10805 | + $as_echo_n "(cached) " >&6 | ||
10806 | +else | ||
10807 | + lt_cv_ar_at_file=no | ||
10808 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10809 | +/* end confdefs.h. */ | ||
10810 | + | ||
10811 | +int | ||
10812 | +main () | ||
10813 | +{ | ||
10814 | + | ||
10815 | + ; | ||
10816 | + return 0; | ||
10817 | +} | ||
10818 | +_ACEOF | ||
10819 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
10820 | + echo conftest.$ac_objext > conftest.lst | ||
10821 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
10822 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
10823 | + (eval $lt_ar_try) 2>&5 | ||
10824 | + ac_status=$? | ||
10825 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10826 | + test $ac_status = 0; } | ||
10827 | + if test "$ac_status" -eq 0; then | ||
10828 | + # Ensure the archiver fails upon bogus file names. | ||
10829 | + rm -f conftest.$ac_objext libconftest.a | ||
10830 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
10831 | + (eval $lt_ar_try) 2>&5 | ||
10832 | + ac_status=$? | ||
10833 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10834 | + test $ac_status = 0; } | ||
10835 | + if test "$ac_status" -ne 0; then | ||
10836 | + lt_cv_ar_at_file=@ | ||
10837 | + fi | ||
10838 | + fi | ||
10839 | + rm -f conftest.* libconftest.a | ||
10840 | + | ||
10841 | +fi | ||
10842 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10843 | + | ||
10844 | +fi | ||
10845 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
10846 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
10847 | + | ||
10848 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
10849 | + archiver_list_spec= | ||
10850 | +else | ||
10851 | + archiver_list_spec=$lt_cv_ar_at_file | ||
10852 | +fi | ||
10853 | + | ||
10854 | + | ||
10855 | + | ||
10856 | + | ||
10857 | + | ||
10858 | + | ||
10859 | + | ||
10860 | if test -n "$ac_tool_prefix"; then | ||
10861 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
10862 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
10863 | @@ -7129,8 +7442,8 @@ esac | ||
10864 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
10865 | |||
10866 | # Transform an extracted symbol line into symbol name and symbol address | ||
10867 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
10868 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
10869 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
10870 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
10871 | |||
10872 | # Handle CRLF in mingw tool chain | ||
10873 | opt_cr= | ||
10874 | @@ -7166,6 +7479,7 @@ for ac_symprfx in "" "_"; do | ||
10875 | else | ||
10876 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
10877 | fi | ||
10878 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
10879 | |||
10880 | # Check to see that the pipe works correctly. | ||
10881 | pipe_works=no | ||
10882 | @@ -7207,6 +7521,18 @@ _LT_EOF | ||
10883 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
10884 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
10885 | cat <<_LT_EOF > conftest.$ac_ext | ||
10886 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
10887 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
10888 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
10889 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
10890 | +# define LT_DLSYM_CONST | ||
10891 | +#elif defined(__osf__) | ||
10892 | +/* This system does not cope well with relocations in const data. */ | ||
10893 | +# define LT_DLSYM_CONST | ||
10894 | +#else | ||
10895 | +# define LT_DLSYM_CONST const | ||
10896 | +#endif | ||
10897 | + | ||
10898 | #ifdef __cplusplus | ||
10899 | extern "C" { | ||
10900 | #endif | ||
10901 | @@ -7218,7 +7544,7 @@ _LT_EOF | ||
10902 | cat <<_LT_EOF >> conftest.$ac_ext | ||
10903 | |||
10904 | /* The mapping between symbol names and symbols. */ | ||
10905 | -const struct { | ||
10906 | +LT_DLSYM_CONST struct { | ||
10907 | const char *name; | ||
10908 | void *address; | ||
10909 | } | ||
10910 | @@ -7244,8 +7570,8 @@ static const void *lt_preloaded_setup() { | ||
10911 | _LT_EOF | ||
10912 | # Now try linking the two files. | ||
10913 | mv conftest.$ac_objext conftstm.$ac_objext | ||
10914 | - lt_save_LIBS="$LIBS" | ||
10915 | - lt_save_CFLAGS="$CFLAGS" | ||
10916 | + lt_globsym_save_LIBS=$LIBS | ||
10917 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
10918 | LIBS="conftstm.$ac_objext" | ||
10919 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
10920 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
10921 | @@ -7255,8 +7581,8 @@ _LT_EOF | ||
10922 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
10923 | pipe_works=yes | ||
10924 | fi | ||
10925 | - LIBS="$lt_save_LIBS" | ||
10926 | - CFLAGS="$lt_save_CFLAGS" | ||
10927 | + LIBS=$lt_globsym_save_LIBS | ||
10928 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
10929 | else | ||
10930 | echo "cannot find nm_test_func in $nlist" >&5 | ||
10931 | fi | ||
10932 | @@ -7293,6 +7619,14 @@ else | ||
10933 | $as_echo "ok" >&6; } | ||
10934 | fi | ||
10935 | |||
10936 | +# Response file support. | ||
10937 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
10938 | + nm_file_list_spec='@' | ||
10939 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
10940 | + nm_file_list_spec='@' | ||
10941 | +fi | ||
10942 | + | ||
10943 | + | ||
10944 | |||
10945 | |||
10946 | |||
10947 | @@ -7311,6 +7645,47 @@ fi | ||
10948 | |||
10949 | |||
10950 | |||
10951 | + | ||
10952 | + | ||
10953 | + | ||
10954 | + | ||
10955 | + | ||
10956 | + | ||
10957 | + | ||
10958 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
10959 | +$as_echo_n "checking for sysroot... " >&6; } | ||
10960 | + | ||
10961 | +# Check whether --with-libtool-sysroot was given. | ||
10962 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
10963 | + withval=$with_libtool_sysroot; | ||
10964 | +else | ||
10965 | + with_libtool_sysroot=no | ||
10966 | +fi | ||
10967 | + | ||
10968 | + | ||
10969 | +lt_sysroot= | ||
10970 | +case ${with_libtool_sysroot} in #( | ||
10971 | + yes) | ||
10972 | + if test "$GCC" = yes; then | ||
10973 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
10974 | + fi | ||
10975 | + ;; #( | ||
10976 | + /*) | ||
10977 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
10978 | + ;; #( | ||
10979 | + no|'') | ||
10980 | + ;; #( | ||
10981 | + *) | ||
10982 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
10983 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
10984 | + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | ||
10985 | + ;; | ||
10986 | +esac | ||
10987 | + | ||
10988 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
10989 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
10990 | + | ||
10991 | + | ||
10992 | |||
10993 | |||
10994 | |||
10995 | @@ -7520,6 +7895,123 @@ esac | ||
10996 | |||
10997 | need_locks="$enable_libtool_lock" | ||
10998 | |||
10999 | +if test -n "$ac_tool_prefix"; then | ||
11000 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
11001 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
11002 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11003 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
11004 | +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | ||
11005 | + $as_echo_n "(cached) " >&6 | ||
11006 | +else | ||
11007 | + if test -n "$MANIFEST_TOOL"; then | ||
11008 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
11009 | +else | ||
11010 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11011 | +for as_dir in $PATH | ||
11012 | +do | ||
11013 | + IFS=$as_save_IFS | ||
11014 | + test -z "$as_dir" && as_dir=. | ||
11015 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
11016 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
11017 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
11018 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11019 | + break 2 | ||
11020 | + fi | ||
11021 | +done | ||
11022 | + done | ||
11023 | +IFS=$as_save_IFS | ||
11024 | + | ||
11025 | +fi | ||
11026 | +fi | ||
11027 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
11028 | +if test -n "$MANIFEST_TOOL"; then | ||
11029 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
11030 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
11031 | +else | ||
11032 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11033 | +$as_echo "no" >&6; } | ||
11034 | +fi | ||
11035 | + | ||
11036 | + | ||
11037 | +fi | ||
11038 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
11039 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
11040 | + # Extract the first word of "mt", so it can be a program name with args. | ||
11041 | +set dummy mt; ac_word=$2 | ||
11042 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11043 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
11044 | +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | ||
11045 | + $as_echo_n "(cached) " >&6 | ||
11046 | +else | ||
11047 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
11048 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
11049 | +else | ||
11050 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11051 | +for as_dir in $PATH | ||
11052 | +do | ||
11053 | + IFS=$as_save_IFS | ||
11054 | + test -z "$as_dir" && as_dir=. | ||
11055 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
11056 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
11057 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
11058 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11059 | + break 2 | ||
11060 | + fi | ||
11061 | +done | ||
11062 | + done | ||
11063 | +IFS=$as_save_IFS | ||
11064 | + | ||
11065 | +fi | ||
11066 | +fi | ||
11067 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
11068 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
11069 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
11070 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
11071 | +else | ||
11072 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11073 | +$as_echo "no" >&6; } | ||
11074 | +fi | ||
11075 | + | ||
11076 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
11077 | + MANIFEST_TOOL=":" | ||
11078 | + else | ||
11079 | + case $cross_compiling:$ac_tool_warned in | ||
11080 | +yes:) | ||
11081 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11082 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11083 | +ac_tool_warned=yes ;; | ||
11084 | +esac | ||
11085 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
11086 | + fi | ||
11087 | +else | ||
11088 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
11089 | +fi | ||
11090 | + | ||
11091 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
11092 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
11093 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
11094 | +if ${lt_cv_path_mainfest_tool+:} false; then : | ||
11095 | + $as_echo_n "(cached) " >&6 | ||
11096 | +else | ||
11097 | + lt_cv_path_mainfest_tool=no | ||
11098 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
11099 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
11100 | + cat conftest.err >&5 | ||
11101 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
11102 | + lt_cv_path_mainfest_tool=yes | ||
11103 | + fi | ||
11104 | + rm -f conftest* | ||
11105 | +fi | ||
11106 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
11107 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
11108 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
11109 | + MANIFEST_TOOL=: | ||
11110 | +fi | ||
11111 | + | ||
11112 | + | ||
11113 | + | ||
11114 | + | ||
11115 | + | ||
11116 | |||
11117 | case $host_os in | ||
11118 | rhapsody* | darwin*) | ||
11119 | @@ -8083,6 +8575,8 @@ _LT_EOF | ||
11120 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
11121 | echo "$AR cru libconftest.a conftest.o" >&5 | ||
11122 | $AR cru libconftest.a conftest.o 2>&5 | ||
11123 | + echo "$RANLIB libconftest.a" >&5 | ||
11124 | + $RANLIB libconftest.a 2>&5 | ||
11125 | cat > conftest.c << _LT_EOF | ||
11126 | int main() { return 0;} | ||
11127 | _LT_EOF | ||
11128 | @@ -8635,8 +9130,6 @@ fi | ||
11129 | lt_prog_compiler_pic= | ||
11130 | lt_prog_compiler_static= | ||
11131 | |||
11132 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
11133 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
11134 | |||
11135 | if test "$GCC" = yes; then | ||
11136 | lt_prog_compiler_wl='-Wl,' | ||
11137 | @@ -8802,6 +9295,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
11138 | lt_prog_compiler_pic='--shared' | ||
11139 | lt_prog_compiler_static='--static' | ||
11140 | ;; | ||
11141 | + nagfor*) | ||
11142 | + # NAG Fortran compiler | ||
11143 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
11144 | + lt_prog_compiler_pic='-PIC' | ||
11145 | + lt_prog_compiler_static='-Bstatic' | ||
11146 | + ;; | ||
11147 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
11148 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
11149 | # which looks to be a dead project) | ||
11150 | @@ -8864,7 +9363,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
11151 | lt_prog_compiler_pic='-KPIC' | ||
11152 | lt_prog_compiler_static='-Bstatic' | ||
11153 | case $cc_basename in | ||
11154 | - f77* | f90* | f95*) | ||
11155 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
11156 | lt_prog_compiler_wl='-Qoption ld ';; | ||
11157 | *) | ||
11158 | lt_prog_compiler_wl='-Wl,';; | ||
11159 | @@ -8921,13 +9420,17 @@ case $host_os in | ||
11160 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
11161 | ;; | ||
11162 | esac | ||
11163 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
11164 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
11165 | - | ||
11166 | - | ||
11167 | - | ||
11168 | - | ||
11169 | |||
11170 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
11171 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
11172 | +if ${lt_cv_prog_compiler_pic+:} false; then : | ||
11173 | + $as_echo_n "(cached) " >&6 | ||
11174 | +else | ||
11175 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
11176 | +fi | ||
11177 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
11178 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
11179 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
11180 | |||
11181 | # | ||
11182 | # Check to make sure the PIC flag actually works. | ||
11183 | @@ -8988,6 +9491,11 @@ fi | ||
11184 | |||
11185 | |||
11186 | |||
11187 | + | ||
11188 | + | ||
11189 | + | ||
11190 | + | ||
11191 | + | ||
11192 | # | ||
11193 | # Check to make sure the static flag actually works. | ||
11194 | # | ||
11195 | @@ -9338,7 +9846,8 @@ _LT_EOF | ||
11196 | allow_undefined_flag=unsupported | ||
11197 | always_export_symbols=no | ||
11198 | enable_shared_with_static_runtimes=yes | ||
11199 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
11200 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
11201 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
11202 | |||
11203 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
11204 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
11205 | @@ -9437,12 +9946,12 @@ _LT_EOF | ||
11206 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
11207 | hardcode_libdir_flag_spec= | ||
11208 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
11209 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
11210 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
11211 | if test "x$supports_anon_versioning" = xyes; then | ||
11212 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
11213 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
11214 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
11215 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
11216 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
11217 | fi | ||
11218 | ;; | ||
11219 | esac | ||
11220 | @@ -9456,8 +9965,8 @@ _LT_EOF | ||
11221 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
11222 | wlarc= | ||
11223 | else | ||
11224 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11225 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11226 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11227 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11228 | fi | ||
11229 | ;; | ||
11230 | |||
11231 | @@ -9475,8 +9984,8 @@ _LT_EOF | ||
11232 | |||
11233 | _LT_EOF | ||
11234 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
11235 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11236 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11237 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11238 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11239 | else | ||
11240 | ld_shlibs=no | ||
11241 | fi | ||
11242 | @@ -9522,8 +10031,8 @@ _LT_EOF | ||
11243 | |||
11244 | *) | ||
11245 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
11246 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11247 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11248 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11249 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11250 | else | ||
11251 | ld_shlibs=no | ||
11252 | fi | ||
11253 | @@ -9653,7 +10162,13 @@ _LT_EOF | ||
11254 | allow_undefined_flag='-berok' | ||
11255 | # Determine the default libpath from the value encoded in an | ||
11256 | # empty executable. | ||
11257 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11258 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
11259 | + aix_libpath=$lt_cv_aix_libpath | ||
11260 | +else | ||
11261 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
11262 | + $as_echo_n "(cached) " >&6 | ||
11263 | +else | ||
11264 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11265 | /* end confdefs.h. */ | ||
11266 | |||
11267 | int | ||
11268 | @@ -9666,22 +10181,29 @@ main () | ||
11269 | _ACEOF | ||
11270 | if ac_fn_c_try_link "$LINENO"; then : | ||
11271 | |||
11272 | -lt_aix_libpath_sed=' | ||
11273 | - /Import File Strings/,/^$/ { | ||
11274 | - /^0/ { | ||
11275 | - s/^0 *\(.*\)$/\1/ | ||
11276 | - p | ||
11277 | - } | ||
11278 | - }' | ||
11279 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11280 | -# Check for a 64-bit object if we didn't find anything. | ||
11281 | -if test -z "$aix_libpath"; then | ||
11282 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11283 | -fi | ||
11284 | + lt_aix_libpath_sed=' | ||
11285 | + /Import File Strings/,/^$/ { | ||
11286 | + /^0/ { | ||
11287 | + s/^0 *\([^ ]*\) *$/\1/ | ||
11288 | + p | ||
11289 | + } | ||
11290 | + }' | ||
11291 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11292 | + # Check for a 64-bit object if we didn't find anything. | ||
11293 | + if test -z "$lt_cv_aix_libpath_"; then | ||
11294 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11295 | + fi | ||
11296 | fi | ||
11297 | rm -f core conftest.err conftest.$ac_objext \ | ||
11298 | conftest$ac_exeext conftest.$ac_ext | ||
11299 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11300 | + if test -z "$lt_cv_aix_libpath_"; then | ||
11301 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
11302 | + fi | ||
11303 | + | ||
11304 | +fi | ||
11305 | + | ||
11306 | + aix_libpath=$lt_cv_aix_libpath_ | ||
11307 | +fi | ||
11308 | |||
11309 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
11310 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
11311 | @@ -9693,7 +10215,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11312 | else | ||
11313 | # Determine the default libpath from the value encoded in an | ||
11314 | # empty executable. | ||
11315 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11316 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
11317 | + aix_libpath=$lt_cv_aix_libpath | ||
11318 | +else | ||
11319 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
11320 | + $as_echo_n "(cached) " >&6 | ||
11321 | +else | ||
11322 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11323 | /* end confdefs.h. */ | ||
11324 | |||
11325 | int | ||
11326 | @@ -9706,22 +10234,29 @@ main () | ||
11327 | _ACEOF | ||
11328 | if ac_fn_c_try_link "$LINENO"; then : | ||
11329 | |||
11330 | -lt_aix_libpath_sed=' | ||
11331 | - /Import File Strings/,/^$/ { | ||
11332 | - /^0/ { | ||
11333 | - s/^0 *\(.*\)$/\1/ | ||
11334 | - p | ||
11335 | - } | ||
11336 | - }' | ||
11337 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11338 | -# Check for a 64-bit object if we didn't find anything. | ||
11339 | -if test -z "$aix_libpath"; then | ||
11340 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11341 | -fi | ||
11342 | + lt_aix_libpath_sed=' | ||
11343 | + /Import File Strings/,/^$/ { | ||
11344 | + /^0/ { | ||
11345 | + s/^0 *\([^ ]*\) *$/\1/ | ||
11346 | + p | ||
11347 | + } | ||
11348 | + }' | ||
11349 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11350 | + # Check for a 64-bit object if we didn't find anything. | ||
11351 | + if test -z "$lt_cv_aix_libpath_"; then | ||
11352 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11353 | + fi | ||
11354 | fi | ||
11355 | rm -f core conftest.err conftest.$ac_objext \ | ||
11356 | conftest$ac_exeext conftest.$ac_ext | ||
11357 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11358 | + if test -z "$lt_cv_aix_libpath_"; then | ||
11359 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
11360 | + fi | ||
11361 | + | ||
11362 | +fi | ||
11363 | + | ||
11364 | + aix_libpath=$lt_cv_aix_libpath_ | ||
11365 | +fi | ||
11366 | |||
11367 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
11368 | # Warning - without using the other run time loading flags, | ||
11369 | @@ -9766,20 +10301,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11370 | # Microsoft Visual C++. | ||
11371 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
11372 | # no search path for DLLs. | ||
11373 | - hardcode_libdir_flag_spec=' ' | ||
11374 | - allow_undefined_flag=unsupported | ||
11375 | - # Tell ltmain to make .lib files, not .a files. | ||
11376 | - libext=lib | ||
11377 | - # Tell ltmain to make .dll files, not .so files. | ||
11378 | - shrext_cmds=".dll" | ||
11379 | - # FIXME: Setting linknames here is a bad hack. | ||
11380 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
11381 | - # The linker will automatically build a .lib file if we build a DLL. | ||
11382 | - old_archive_from_new_cmds='true' | ||
11383 | - # FIXME: Should let the user specify the lib program. | ||
11384 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
11385 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
11386 | - enable_shared_with_static_runtimes=yes | ||
11387 | + case $cc_basename in | ||
11388 | + cl*) | ||
11389 | + # Native MSVC | ||
11390 | + hardcode_libdir_flag_spec=' ' | ||
11391 | + allow_undefined_flag=unsupported | ||
11392 | + always_export_symbols=yes | ||
11393 | + file_list_spec='@' | ||
11394 | + # Tell ltmain to make .lib files, not .a files. | ||
11395 | + libext=lib | ||
11396 | + # Tell ltmain to make .dll files, not .so files. | ||
11397 | + shrext_cmds=".dll" | ||
11398 | + # FIXME: Setting linknames here is a bad hack. | ||
11399 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
11400 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
11401 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
11402 | + else | ||
11403 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
11404 | + fi~ | ||
11405 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
11406 | + linknames=' | ||
11407 | + # The linker will not automatically build a static lib if we build a DLL. | ||
11408 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
11409 | + enable_shared_with_static_runtimes=yes | ||
11410 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
11411 | + # Don't use ranlib | ||
11412 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
11413 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
11414 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
11415 | + case $lt_outputfile in | ||
11416 | + *.exe|*.EXE) ;; | ||
11417 | + *) | ||
11418 | + lt_outputfile="$lt_outputfile.exe" | ||
11419 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
11420 | + ;; | ||
11421 | + esac~ | ||
11422 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
11423 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
11424 | + $RM "$lt_outputfile.manifest"; | ||
11425 | + fi' | ||
11426 | + ;; | ||
11427 | + *) | ||
11428 | + # Assume MSVC wrapper | ||
11429 | + hardcode_libdir_flag_spec=' ' | ||
11430 | + allow_undefined_flag=unsupported | ||
11431 | + # Tell ltmain to make .lib files, not .a files. | ||
11432 | + libext=lib | ||
11433 | + # Tell ltmain to make .dll files, not .so files. | ||
11434 | + shrext_cmds=".dll" | ||
11435 | + # FIXME: Setting linknames here is a bad hack. | ||
11436 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
11437 | + # The linker will automatically build a .lib file if we build a DLL. | ||
11438 | + old_archive_from_new_cmds='true' | ||
11439 | + # FIXME: Should let the user specify the lib program. | ||
11440 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
11441 | + enable_shared_with_static_runtimes=yes | ||
11442 | + ;; | ||
11443 | + esac | ||
11444 | ;; | ||
11445 | |||
11446 | darwin* | rhapsody*) | ||
11447 | @@ -9840,7 +10418,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11448 | |||
11449 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
11450 | freebsd* | dragonfly*) | ||
11451 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
11452 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
11453 | hardcode_libdir_flag_spec='-R$libdir' | ||
11454 | hardcode_direct=yes | ||
11455 | hardcode_shlibpath_var=no | ||
11456 | @@ -9848,7 +10426,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11457 | |||
11458 | hpux9*) | ||
11459 | if test "$GCC" = yes; then | ||
11460 | - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
11461 | + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
11462 | else | ||
11463 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
11464 | fi | ||
11465 | @@ -9864,7 +10442,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11466 | |||
11467 | hpux10*) | ||
11468 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
11469 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
11470 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
11471 | else | ||
11472 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
11473 | fi | ||
11474 | @@ -9888,10 +10466,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11475 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11476 | ;; | ||
11477 | ia64*) | ||
11478 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
11479 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
11480 | ;; | ||
11481 | *) | ||
11482 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
11483 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
11484 | ;; | ||
11485 | esac | ||
11486 | else | ||
11487 | @@ -9970,23 +10548,36 @@ fi | ||
11488 | |||
11489 | irix5* | irix6* | nonstopux*) | ||
11490 | if test "$GCC" = yes; then | ||
11491 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
11492 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
11493 | # Try to use the -exported_symbol ld option, if it does not | ||
11494 | # work, assume that -exports_file does not work either and | ||
11495 | # implicitly export all symbols. | ||
11496 | - save_LDFLAGS="$LDFLAGS" | ||
11497 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
11498 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11499 | + # This should be the same for all languages, so no per-tag cache variable. | ||
11500 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
11501 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
11502 | +if ${lt_cv_irix_exported_symbol+:} false; then : | ||
11503 | + $as_echo_n "(cached) " >&6 | ||
11504 | +else | ||
11505 | + save_LDFLAGS="$LDFLAGS" | ||
11506 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
11507 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11508 | /* end confdefs.h. */ | ||
11509 | -int foo(void) {} | ||
11510 | +int foo (void) { return 0; } | ||
11511 | _ACEOF | ||
11512 | if ac_fn_c_try_link "$LINENO"; then : | ||
11513 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
11514 | - | ||
11515 | + lt_cv_irix_exported_symbol=yes | ||
11516 | +else | ||
11517 | + lt_cv_irix_exported_symbol=no | ||
11518 | fi | ||
11519 | rm -f core conftest.err conftest.$ac_objext \ | ||
11520 | conftest$ac_exeext conftest.$ac_ext | ||
11521 | - LDFLAGS="$save_LDFLAGS" | ||
11522 | + LDFLAGS="$save_LDFLAGS" | ||
11523 | +fi | ||
11524 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
11525 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
11526 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
11527 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
11528 | + fi | ||
11529 | else | ||
11530 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
11531 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
11532 | @@ -10071,7 +10662,7 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
11533 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
11534 | if test "$GCC" = yes; then | ||
11535 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
11536 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
11537 | + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
11538 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
11539 | else | ||
11540 | allow_undefined_flag=' -expect_unresolved \*' | ||
11541 | @@ -10090,9 +10681,9 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
11542 | no_undefined_flag=' -z defs' | ||
11543 | if test "$GCC" = yes; then | ||
11544 | wlarc='${wl}' | ||
11545 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11546 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11547 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
11548 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
11549 | + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
11550 | else | ||
11551 | case `$CC -V 2>&1` in | ||
11552 | *"Compilers 5.0"*) | ||
11553 | @@ -10668,8 +11259,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
11554 | need_version=no | ||
11555 | need_lib_prefix=no | ||
11556 | |||
11557 | - case $GCC,$host_os in | ||
11558 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
11559 | + case $GCC,$cc_basename in | ||
11560 | + yes,*) | ||
11561 | + # gcc | ||
11562 | library_names_spec='$libname.dll.a' | ||
11563 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
11564 | postinstall_cmds='base_file=`basename \${file}`~ | ||
11565 | @@ -10702,13 +11294,71 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
11566 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
11567 | ;; | ||
11568 | esac | ||
11569 | + dynamic_linker='Win32 ld.exe' | ||
11570 | + ;; | ||
11571 | + | ||
11572 | + *,cl*) | ||
11573 | + # Native MSVC | ||
11574 | + libname_spec='$name' | ||
11575 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
11576 | + library_names_spec='${libname}.dll.lib' | ||
11577 | + | ||
11578 | + case $build_os in | ||
11579 | + mingw*) | ||
11580 | + sys_lib_search_path_spec= | ||
11581 | + lt_save_ifs=$IFS | ||
11582 | + IFS=';' | ||
11583 | + for lt_path in $LIB | ||
11584 | + do | ||
11585 | + IFS=$lt_save_ifs | ||
11586 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
11587 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
11588 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
11589 | + done | ||
11590 | + IFS=$lt_save_ifs | ||
11591 | + # Convert to MSYS style. | ||
11592 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
11593 | + ;; | ||
11594 | + cygwin*) | ||
11595 | + # Convert to unix form, then to dos form, then back to unix form | ||
11596 | + # but this time dos style (no spaces!) so that the unix form looks | ||
11597 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
11598 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
11599 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
11600 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
11601 | + ;; | ||
11602 | + *) | ||
11603 | + sys_lib_search_path_spec="$LIB" | ||
11604 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
11605 | + # It is most probably a Windows format PATH. | ||
11606 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
11607 | + else | ||
11608 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
11609 | + fi | ||
11610 | + # FIXME: find the short name or the path components, as spaces are | ||
11611 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
11612 | + ;; | ||
11613 | + esac | ||
11614 | + | ||
11615 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
11616 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
11617 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
11618 | + dldir=$destdir/`dirname \$dlpath`~ | ||
11619 | + test -d \$dldir || mkdir -p \$dldir~ | ||
11620 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
11621 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
11622 | + dlpath=$dir/\$dldll~ | ||
11623 | + $RM \$dlpath' | ||
11624 | + shlibpath_overrides_runpath=yes | ||
11625 | + dynamic_linker='Win32 link.exe' | ||
11626 | ;; | ||
11627 | |||
11628 | *) | ||
11629 | + # Assume MSVC wrapper | ||
11630 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
11631 | + dynamic_linker='Win32 ld.exe' | ||
11632 | ;; | ||
11633 | esac | ||
11634 | - dynamic_linker='Win32 ld.exe' | ||
11635 | # FIXME: first we should search . and the directory the executable is in | ||
11636 | shlibpath_var=PATH | ||
11637 | ;; | ||
11638 | @@ -10790,7 +11440,7 @@ haiku*) | ||
11639 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11640 | shlibpath_var=LIBRARY_PATH | ||
11641 | shlibpath_overrides_runpath=yes | ||
11642 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
11643 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
11644 | hardcode_into_libs=yes | ||
11645 | ;; | ||
11646 | |||
11647 | @@ -11586,7 +12236,7 @@ else | ||
11648 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11649 | lt_status=$lt_dlunknown | ||
11650 | cat > conftest.$ac_ext <<_LT_EOF | ||
11651 | -#line 11589 "configure" | ||
11652 | +#line $LINENO "configure" | ||
11653 | #include "confdefs.h" | ||
11654 | |||
11655 | #if HAVE_DLFCN_H | ||
11656 | @@ -11630,10 +12280,10 @@ else | ||
11657 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
11658 | correspondingly for the symbols needed. */ | ||
11659 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
11660 | -void fnord () __attribute__((visibility("default"))); | ||
11661 | +int fnord () __attribute__((visibility("default"))); | ||
11662 | #endif | ||
11663 | |||
11664 | -void fnord () { int i=42; } | ||
11665 | +int fnord () { return 42; } | ||
11666 | int main () | ||
11667 | { | ||
11668 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11669 | @@ -11692,7 +12342,7 @@ else | ||
11670 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11671 | lt_status=$lt_dlunknown | ||
11672 | cat > conftest.$ac_ext <<_LT_EOF | ||
11673 | -#line 11695 "configure" | ||
11674 | +#line $LINENO "configure" | ||
11675 | #include "confdefs.h" | ||
11676 | |||
11677 | #if HAVE_DLFCN_H | ||
11678 | @@ -11736,10 +12386,10 @@ else | ||
11679 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
11680 | correspondingly for the symbols needed. */ | ||
11681 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
11682 | -void fnord () __attribute__((visibility("default"))); | ||
11683 | +int fnord () __attribute__((visibility("default"))); | ||
11684 | #endif | ||
11685 | |||
11686 | -void fnord () { int i=42; } | ||
11687 | +int fnord () { return 42; } | ||
11688 | int main () | ||
11689 | { | ||
11690 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11691 | @@ -14286,13 +14936,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
11692 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
11693 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
11694 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
11695 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
11696 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
11697 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
11698 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
11699 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
11700 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
11701 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
11702 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
11703 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
11704 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
11705 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
11706 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
11707 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
11708 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
11709 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
11710 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
11711 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
11712 | @@ -14307,14 +14964,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de | ||
11713 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
11714 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
11715 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
11716 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
11717 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
11718 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
11719 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
11720 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
11721 | -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
11722 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
11723 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
11724 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
11725 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
11726 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
11727 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
11728 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
11729 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
11730 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
11731 | @@ -14347,12 +15007,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q | ||
11732 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
11733 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
11734 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
11735 | -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | ||
11736 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
11737 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
11738 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
11739 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
11740 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
11741 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
11742 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
11743 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
11744 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
11745 | @@ -14407,8 +15067,13 @@ reload_flag \ | ||
11746 | OBJDUMP \ | ||
11747 | deplibs_check_method \ | ||
11748 | file_magic_cmd \ | ||
11749 | +file_magic_glob \ | ||
11750 | +want_nocaseglob \ | ||
11751 | +DLLTOOL \ | ||
11752 | +sharedlib_from_linklib_cmd \ | ||
11753 | AR \ | ||
11754 | AR_FLAGS \ | ||
11755 | +archiver_list_spec \ | ||
11756 | STRIP \ | ||
11757 | RANLIB \ | ||
11758 | CC \ | ||
11759 | @@ -14418,12 +15083,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
11760 | lt_cv_sys_global_symbol_to_cdecl \ | ||
11761 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
11762 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
11763 | +nm_file_list_spec \ | ||
11764 | lt_prog_compiler_no_builtin_flag \ | ||
11765 | -lt_prog_compiler_wl \ | ||
11766 | lt_prog_compiler_pic \ | ||
11767 | +lt_prog_compiler_wl \ | ||
11768 | lt_prog_compiler_static \ | ||
11769 | lt_cv_prog_compiler_c_o \ | ||
11770 | need_locks \ | ||
11771 | +MANIFEST_TOOL \ | ||
11772 | DSYMUTIL \ | ||
11773 | NMEDIT \ | ||
11774 | LIPO \ | ||
11775 | @@ -14439,7 +15106,6 @@ no_undefined_flag \ | ||
11776 | hardcode_libdir_flag_spec \ | ||
11777 | hardcode_libdir_flag_spec_ld \ | ||
11778 | hardcode_libdir_separator \ | ||
11779 | -fix_srcfile_path \ | ||
11780 | exclude_expsyms \ | ||
11781 | include_expsyms \ | ||
11782 | file_list_spec \ | ||
11783 | @@ -14475,6 +15141,7 @@ module_cmds \ | ||
11784 | module_expsym_cmds \ | ||
11785 | export_symbols_cmds \ | ||
11786 | prelink_cmds \ | ||
11787 | +postlink_cmds \ | ||
11788 | postinstall_cmds \ | ||
11789 | postuninstall_cmds \ | ||
11790 | finish_cmds \ | ||
11791 | @@ -15231,7 +15898,8 @@ $as_echo X"$file" | | ||
11792 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
11793 | # | ||
11794 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
11795 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
11796 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
11797 | +# Inc. | ||
11798 | # Written by Gordon Matzigkeit, 1996 | ||
11799 | # | ||
11800 | # This file is part of GNU Libtool. | ||
11801 | @@ -15334,19 +16002,42 @@ SP2NL=$lt_lt_SP2NL | ||
11802 | # turn newlines into spaces. | ||
11803 | NL2SP=$lt_lt_NL2SP | ||
11804 | |||
11805 | +# convert \$build file names to \$host format. | ||
11806 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
11807 | + | ||
11808 | +# convert \$build files to toolchain format. | ||
11809 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
11810 | + | ||
11811 | # An object symbol dumper. | ||
11812 | OBJDUMP=$lt_OBJDUMP | ||
11813 | |||
11814 | # Method to check whether dependent libraries are shared objects. | ||
11815 | deplibs_check_method=$lt_deplibs_check_method | ||
11816 | |||
11817 | -# Command to use when deplibs_check_method == "file_magic". | ||
11818 | +# Command to use when deplibs_check_method = "file_magic". | ||
11819 | file_magic_cmd=$lt_file_magic_cmd | ||
11820 | |||
11821 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
11822 | +file_magic_glob=$lt_file_magic_glob | ||
11823 | + | ||
11824 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
11825 | +want_nocaseglob=$lt_want_nocaseglob | ||
11826 | + | ||
11827 | +# DLL creation program. | ||
11828 | +DLLTOOL=$lt_DLLTOOL | ||
11829 | + | ||
11830 | +# Command to associate shared and link libraries. | ||
11831 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
11832 | + | ||
11833 | # The archiver. | ||
11834 | AR=$lt_AR | ||
11835 | + | ||
11836 | +# Flags to create an archive. | ||
11837 | AR_FLAGS=$lt_AR_FLAGS | ||
11838 | |||
11839 | +# How to feed a file listing to the archiver. | ||
11840 | +archiver_list_spec=$lt_archiver_list_spec | ||
11841 | + | ||
11842 | # A symbol stripping program. | ||
11843 | STRIP=$lt_STRIP | ||
11844 | |||
11845 | @@ -15376,6 +16067,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
11846 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
11847 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
11848 | |||
11849 | +# Specify filename containing input files for \$NM. | ||
11850 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
11851 | + | ||
11852 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
11853 | +lt_sysroot=$lt_sysroot | ||
11854 | + | ||
11855 | # The name of the directory that contains temporary libtool files. | ||
11856 | objdir=$objdir | ||
11857 | |||
11858 | @@ -15385,6 +16082,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
11859 | # Must we lock files when doing compilation? | ||
11860 | need_locks=$lt_need_locks | ||
11861 | |||
11862 | +# Manifest tool. | ||
11863 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
11864 | + | ||
11865 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
11866 | DSYMUTIL=$lt_DSYMUTIL | ||
11867 | |||
11868 | @@ -15499,12 +16199,12 @@ with_gcc=$GCC | ||
11869 | # Compiler flag to turn off builtin functions. | ||
11870 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
11871 | |||
11872 | -# How to pass a linker flag through the compiler. | ||
11873 | -wl=$lt_lt_prog_compiler_wl | ||
11874 | - | ||
11875 | # Additional compiler flags for building library objects. | ||
11876 | pic_flag=$lt_lt_prog_compiler_pic | ||
11877 | |||
11878 | +# How to pass a linker flag through the compiler. | ||
11879 | +wl=$lt_lt_prog_compiler_wl | ||
11880 | + | ||
11881 | # Compiler flag to prevent dynamic linking. | ||
11882 | link_static_flag=$lt_lt_prog_compiler_static | ||
11883 | |||
11884 | @@ -15591,9 +16291,6 @@ inherit_rpath=$inherit_rpath | ||
11885 | # Whether libtool must link a program against all its dependency libraries. | ||
11886 | link_all_deplibs=$link_all_deplibs | ||
11887 | |||
11888 | -# Fix the shell variable \$srcfile for the compiler. | ||
11889 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
11890 | - | ||
11891 | # Set to "yes" if exported symbols are required. | ||
11892 | always_export_symbols=$always_export_symbols | ||
11893 | |||
11894 | @@ -15609,6 +16306,9 @@ include_expsyms=$lt_include_expsyms | ||
11895 | # Commands necessary for linking programs (against libraries) with templates. | ||
11896 | prelink_cmds=$lt_prelink_cmds | ||
11897 | |||
11898 | +# Commands necessary for finishing linking programs. | ||
11899 | +postlink_cmds=$lt_postlink_cmds | ||
11900 | + | ||
11901 | # Specify filename containing input files. | ||
11902 | file_list_spec=$lt_file_list_spec | ||
11903 | |||
11904 | @@ -15641,210 +16341,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
11905 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
11906 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
11907 | # is reportedly fixed, but why not run on old versions too? | ||
11908 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
11909 | - || (rm -f "$cfgfile"; exit 1) | ||
11910 | - | ||
11911 | - case $xsi_shell in | ||
11912 | - yes) | ||
11913 | - cat << \_LT_EOF >> "$cfgfile" | ||
11914 | - | ||
11915 | -# func_dirname file append nondir_replacement | ||
11916 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
11917 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
11918 | -func_dirname () | ||
11919 | -{ | ||
11920 | - case ${1} in | ||
11921 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
11922 | - * ) func_dirname_result="${3}" ;; | ||
11923 | - esac | ||
11924 | -} | ||
11925 | - | ||
11926 | -# func_basename file | ||
11927 | -func_basename () | ||
11928 | -{ | ||
11929 | - func_basename_result="${1##*/}" | ||
11930 | -} | ||
11931 | - | ||
11932 | -# func_dirname_and_basename file append nondir_replacement | ||
11933 | -# perform func_basename and func_dirname in a single function | ||
11934 | -# call: | ||
11935 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
11936 | -# add APPEND to the result, otherwise set result | ||
11937 | -# to NONDIR_REPLACEMENT. | ||
11938 | -# value returned in "$func_dirname_result" | ||
11939 | -# basename: Compute filename of FILE. | ||
11940 | -# value retuned in "$func_basename_result" | ||
11941 | -# Implementation must be kept synchronized with func_dirname | ||
11942 | -# and func_basename. For efficiency, we do not delegate to | ||
11943 | -# those functions but instead duplicate the functionality here. | ||
11944 | -func_dirname_and_basename () | ||
11945 | -{ | ||
11946 | - case ${1} in | ||
11947 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
11948 | - * ) func_dirname_result="${3}" ;; | ||
11949 | - esac | ||
11950 | - func_basename_result="${1##*/}" | ||
11951 | -} | ||
11952 | - | ||
11953 | -# func_stripname prefix suffix name | ||
11954 | -# strip PREFIX and SUFFIX off of NAME. | ||
11955 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
11956 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
11957 | -# dot (in which case that matches only a dot). | ||
11958 | -func_stripname () | ||
11959 | -{ | ||
11960 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
11961 | - # positional parameters, so assign one to ordinary parameter first. | ||
11962 | - func_stripname_result=${3} | ||
11963 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
11964 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
11965 | -} | ||
11966 | - | ||
11967 | -# func_opt_split | ||
11968 | -func_opt_split () | ||
11969 | -{ | ||
11970 | - func_opt_split_opt=${1%%=*} | ||
11971 | - func_opt_split_arg=${1#*=} | ||
11972 | -} | ||
11973 | - | ||
11974 | -# func_lo2o object | ||
11975 | -func_lo2o () | ||
11976 | -{ | ||
11977 | - case ${1} in | ||
11978 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
11979 | - *) func_lo2o_result=${1} ;; | ||
11980 | - esac | ||
11981 | -} | ||
11982 | - | ||
11983 | -# func_xform libobj-or-source | ||
11984 | -func_xform () | ||
11985 | -{ | ||
11986 | - func_xform_result=${1%.*}.lo | ||
11987 | -} | ||
11988 | - | ||
11989 | -# func_arith arithmetic-term... | ||
11990 | -func_arith () | ||
11991 | -{ | ||
11992 | - func_arith_result=$(( $* )) | ||
11993 | -} | ||
11994 | - | ||
11995 | -# func_len string | ||
11996 | -# STRING may not start with a hyphen. | ||
11997 | -func_len () | ||
11998 | -{ | ||
11999 | - func_len_result=${#1} | ||
12000 | -} | ||
12001 | - | ||
12002 | -_LT_EOF | ||
12003 | - ;; | ||
12004 | - *) # Bourne compatible functions. | ||
12005 | - cat << \_LT_EOF >> "$cfgfile" | ||
12006 | - | ||
12007 | -# func_dirname file append nondir_replacement | ||
12008 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
12009 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
12010 | -func_dirname () | ||
12011 | -{ | ||
12012 | - # Extract subdirectory from the argument. | ||
12013 | - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
12014 | - if test "X$func_dirname_result" = "X${1}"; then | ||
12015 | - func_dirname_result="${3}" | ||
12016 | - else | ||
12017 | - func_dirname_result="$func_dirname_result${2}" | ||
12018 | - fi | ||
12019 | -} | ||
12020 | - | ||
12021 | -# func_basename file | ||
12022 | -func_basename () | ||
12023 | -{ | ||
12024 | - func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
12025 | -} | ||
12026 | - | ||
12027 | - | ||
12028 | -# func_stripname prefix suffix name | ||
12029 | -# strip PREFIX and SUFFIX off of NAME. | ||
12030 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
12031 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
12032 | -# dot (in which case that matches only a dot). | ||
12033 | -# func_strip_suffix prefix name | ||
12034 | -func_stripname () | ||
12035 | -{ | ||
12036 | - case ${2} in | ||
12037 | - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
12038 | - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
12039 | - esac | ||
12040 | -} | ||
12041 | - | ||
12042 | -# sed scripts: | ||
12043 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
12044 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
12045 | - | ||
12046 | -# func_opt_split | ||
12047 | -func_opt_split () | ||
12048 | -{ | ||
12049 | - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | ||
12050 | - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | ||
12051 | -} | ||
12052 | - | ||
12053 | -# func_lo2o object | ||
12054 | -func_lo2o () | ||
12055 | -{ | ||
12056 | - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
12057 | -} | ||
12058 | - | ||
12059 | -# func_xform libobj-or-source | ||
12060 | -func_xform () | ||
12061 | -{ | ||
12062 | - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
12063 | -} | ||
12064 | - | ||
12065 | -# func_arith arithmetic-term... | ||
12066 | -func_arith () | ||
12067 | -{ | ||
12068 | - func_arith_result=`expr "$@"` | ||
12069 | -} | ||
12070 | - | ||
12071 | -# func_len string | ||
12072 | -# STRING may not start with a hyphen. | ||
12073 | -func_len () | ||
12074 | -{ | ||
12075 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
12076 | -} | ||
12077 | - | ||
12078 | -_LT_EOF | ||
12079 | -esac | ||
12080 | - | ||
12081 | -case $lt_shell_append in | ||
12082 | - yes) | ||
12083 | - cat << \_LT_EOF >> "$cfgfile" | ||
12084 | - | ||
12085 | -# func_append var value | ||
12086 | -# Append VALUE to the end of shell variable VAR. | ||
12087 | -func_append () | ||
12088 | -{ | ||
12089 | - eval "$1+=\$2" | ||
12090 | -} | ||
12091 | -_LT_EOF | ||
12092 | - ;; | ||
12093 | - *) | ||
12094 | - cat << \_LT_EOF >> "$cfgfile" | ||
12095 | - | ||
12096 | -# func_append var value | ||
12097 | -# Append VALUE to the end of shell variable VAR. | ||
12098 | -func_append () | ||
12099 | -{ | ||
12100 | - eval "$1=\$$1\$2" | ||
12101 | -} | ||
12102 | - | ||
12103 | -_LT_EOF | ||
12104 | - ;; | ||
12105 | - esac | ||
12106 | - | ||
12107 | - | ||
12108 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
12109 | - || (rm -f "$cfgfile"; exit 1) | ||
12110 | - | ||
12111 | - mv -f "$cfgfile" "$ofile" || | ||
12112 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
12113 | + || (rm -f "$cfgfile"; exit 1) | ||
12114 | + | ||
12115 | + if test x"$xsi_shell" = xyes; then | ||
12116 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
12117 | +func_dirname ()\ | ||
12118 | +{\ | ||
12119 | +\ case ${1} in\ | ||
12120 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
12121 | +\ * ) func_dirname_result="${3}" ;;\ | ||
12122 | +\ esac\ | ||
12123 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12124 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12125 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12126 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12127 | + | ||
12128 | + | ||
12129 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
12130 | +func_basename ()\ | ||
12131 | +{\ | ||
12132 | +\ func_basename_result="${1##*/}"\ | ||
12133 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12134 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12135 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12136 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12137 | + | ||
12138 | + | ||
12139 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
12140 | +func_dirname_and_basename ()\ | ||
12141 | +{\ | ||
12142 | +\ case ${1} in\ | ||
12143 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
12144 | +\ * ) func_dirname_result="${3}" ;;\ | ||
12145 | +\ esac\ | ||
12146 | +\ func_basename_result="${1##*/}"\ | ||
12147 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12148 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12149 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12150 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12151 | + | ||
12152 | + | ||
12153 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
12154 | +func_stripname ()\ | ||
12155 | +{\ | ||
12156 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
12157 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
12158 | +\ func_stripname_result=${3}\ | ||
12159 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
12160 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
12161 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12162 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12163 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12164 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12165 | + | ||
12166 | + | ||
12167 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
12168 | +func_split_long_opt ()\ | ||
12169 | +{\ | ||
12170 | +\ func_split_long_opt_name=${1%%=*}\ | ||
12171 | +\ func_split_long_opt_arg=${1#*=}\ | ||
12172 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12173 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12174 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12175 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12176 | + | ||
12177 | + | ||
12178 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
12179 | +func_split_short_opt ()\ | ||
12180 | +{\ | ||
12181 | +\ func_split_short_opt_arg=${1#??}\ | ||
12182 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
12183 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12184 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12185 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12186 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12187 | + | ||
12188 | + | ||
12189 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
12190 | +func_lo2o ()\ | ||
12191 | +{\ | ||
12192 | +\ case ${1} in\ | ||
12193 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
12194 | +\ *) func_lo2o_result=${1} ;;\ | ||
12195 | +\ esac\ | ||
12196 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12197 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12198 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12199 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12200 | + | ||
12201 | + | ||
12202 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
12203 | +func_xform ()\ | ||
12204 | +{\ | ||
12205 | + func_xform_result=${1%.*}.lo\ | ||
12206 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12207 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12208 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12209 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12210 | + | ||
12211 | + | ||
12212 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
12213 | +func_arith ()\ | ||
12214 | +{\ | ||
12215 | + func_arith_result=$(( $* ))\ | ||
12216 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12217 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12218 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12219 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12220 | + | ||
12221 | + | ||
12222 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
12223 | +func_len ()\ | ||
12224 | +{\ | ||
12225 | + func_len_result=${#1}\ | ||
12226 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12227 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12228 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12229 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12230 | + | ||
12231 | +fi | ||
12232 | + | ||
12233 | +if test x"$lt_shell_append" = xyes; then | ||
12234 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
12235 | +func_append ()\ | ||
12236 | +{\ | ||
12237 | + eval "${1}+=\\${2}"\ | ||
12238 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12239 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12240 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12241 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12242 | + | ||
12243 | + | ||
12244 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
12245 | +func_append_quoted ()\ | ||
12246 | +{\ | ||
12247 | +\ func_quote_for_eval "${2}"\ | ||
12248 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
12249 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
12250 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12251 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12252 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
12253 | + | ||
12254 | + | ||
12255 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
12256 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
12257 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12258 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12259 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
12260 | +else | ||
12261 | + # Save a `func_append' function call even when '+=' is not available | ||
12262 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
12263 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
12264 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
12265 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
12266 | +fi | ||
12267 | + | ||
12268 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
12269 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
12270 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
12271 | +fi | ||
12272 | + | ||
12273 | + | ||
12274 | + mv -f "$cfgfile" "$ofile" || | ||
12275 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
12276 | chmod +x "$ofile" | ||
12277 | |||
12278 | diff --git a/libtool.m4 b/libtool.m4 | ||
12279 | index 9a13f3b117a..5be47564443 100644 | ||
12280 | --- a/libtool.m4 | ||
12281 | +++ b/libtool.m4 | ||
12282 | @@ -1,7 +1,8 @@ | ||
12283 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
12284 | # | ||
12285 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
12286 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
12287 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
12288 | +# Inc. | ||
12289 | # Written by Gordon Matzigkeit, 1996 | ||
12290 | # | ||
12291 | # This file is free software; the Free Software Foundation gives | ||
12292 | @@ -10,7 +11,8 @@ | ||
12293 | |||
12294 | m4_define([_LT_COPYING], [dnl | ||
12295 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
12296 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
12297 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
12298 | +# Inc. | ||
12299 | # Written by Gordon Matzigkeit, 1996 | ||
12300 | # | ||
12301 | # This file is part of GNU Libtool. | ||
12302 | @@ -37,7 +39,7 @@ m4_define([_LT_COPYING], [dnl | ||
12303 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
12304 | ]) | ||
12305 | |||
12306 | -# serial 56 LT_INIT | ||
12307 | +# serial 57 LT_INIT | ||
12308 | |||
12309 | |||
12310 | # LT_PREREQ(VERSION) | ||
12311 | @@ -166,10 +169,13 @@ _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | ||
12312 | dnl | ||
12313 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
12314 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
12315 | +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | ||
12316 | m4_require([_LT_CMD_RELOAD])dnl | ||
12317 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl | ||
12318 | +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | ||
12319 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl | ||
12320 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | ||
12321 | +m4_require([_LT_WITH_SYSROOT])dnl | ||
12322 | |||
12323 | _LT_CONFIG_LIBTOOL_INIT([ | ||
12324 | # See if we are running on zsh, and set the options which allow our | ||
12325 | @@ -632,7 +638,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | ||
12326 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | ||
12327 | configured by $[0], generated by m4_PACKAGE_STRING. | ||
12328 | |||
12329 | -Copyright (C) 2009 Free Software Foundation, Inc. | ||
12330 | +Copyright (C) 2010 Free Software Foundation, Inc. | ||
12331 | This config.lt script is free software; the Free Software Foundation | ||
12332 | gives unlimited permision to copy, distribute and modify it." | ||
12333 | |||
12334 | @@ -746,15 +752,12 @@ _LT_EOF | ||
12335 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
12336 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
12337 | # is reportedly fixed, but why not run on old versions too? | ||
12338 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
12339 | - || (rm -f "$cfgfile"; exit 1) | ||
12340 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
12341 | + || (rm -f "$cfgfile"; exit 1) | ||
12342 | |||
12343 | - _LT_PROG_XSI_SHELLFNS | ||
12344 | + _LT_PROG_REPLACE_SHELLFNS | ||
12345 | |||
12346 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
12347 | - || (rm -f "$cfgfile"; exit 1) | ||
12348 | - | ||
12349 | - mv -f "$cfgfile" "$ofile" || | ||
12350 | + mv -f "$cfgfile" "$ofile" || | ||
12351 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
12352 | chmod +x "$ofile" | ||
12353 | ], | ||
12354 | @@ -980,6 +983,8 @@ _LT_EOF | ||
12355 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | ||
12356 | echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | ||
12357 | $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | ||
12358 | + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | ||
12359 | + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | ||
12360 | cat > conftest.c << _LT_EOF | ||
12361 | int main() { return 0;} | ||
12362 | _LT_EOF | ||
12363 | @@ -1069,30 +1074,41 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], | ||
12364 | fi | ||
12365 | ]) | ||
12366 | |||
12367 | -# _LT_SYS_MODULE_PATH_AIX | ||
12368 | -# ----------------------- | ||
12369 | +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | ||
12370 | +# ---------------------------------- | ||
12371 | # Links a minimal program and checks the executable | ||
12372 | # for the system default hardcoded library path. In most cases, | ||
12373 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
12374 | # the location of the communication and MPI libs are included too. | ||
12375 | # If we don't find anything, use the default library path according | ||
12376 | # to the aix ld manual. | ||
12377 | +# Store the results from the different compilers for each TAGNAME. | ||
12378 | +# Allow to override them for all tags through lt_cv_aix_libpath. | ||
12379 | m4_defun([_LT_SYS_MODULE_PATH_AIX], | ||
12380 | [m4_require([_LT_DECL_SED])dnl | ||
12381 | -AC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM])],[ | ||
12382 | -lt_aix_libpath_sed=' | ||
12383 | - /Import File Strings/,/^$/ { | ||
12384 | - /^0/ { | ||
12385 | - s/^0 *\(.*\)$/\1/ | ||
12386 | - p | ||
12387 | - } | ||
12388 | - }' | ||
12389 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
12390 | -# Check for a 64-bit object if we didn't find anything. | ||
12391 | -if test -z "$aix_libpath"; then | ||
12392 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
12393 | -fi],[]) | ||
12394 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
12395 | +if test "${lt_cv_aix_libpath+set}" = set; then | ||
12396 | + aix_libpath=$lt_cv_aix_libpath | ||
12397 | +else | ||
12398 | + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], | ||
12399 | + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ | ||
12400 | + lt_aix_libpath_sed='[ | ||
12401 | + /Import File Strings/,/^$/ { | ||
12402 | + /^0/ { | ||
12403 | + s/^0 *\([^ ]*\) *$/\1/ | ||
12404 | + p | ||
12405 | + } | ||
12406 | + }]' | ||
12407 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
12408 | + # Check for a 64-bit object if we didn't find anything. | ||
12409 | + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
12410 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
12411 | + fi],[]) | ||
12412 | + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
12413 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" | ||
12414 | + fi | ||
12415 | + ]) | ||
12416 | + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) | ||
12417 | +fi | ||
12418 | ])# _LT_SYS_MODULE_PATH_AIX | ||
12419 | |||
12420 | |||
12421 | @@ -1117,7 +1133,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
12422 | |||
12423 | AC_MSG_CHECKING([how to print strings]) | ||
12424 | # Test print first, because it will be a builtin if present. | ||
12425 | -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | ||
12426 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
12427 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
12428 | ECHO='print -r --' | ||
12429 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
12430 | @@ -1161,6 +1177,39 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | ||
12431 | ])# _LT_PROG_ECHO_BACKSLASH | ||
12432 | |||
12433 | |||
12434 | +# _LT_WITH_SYSROOT | ||
12435 | +# ---------------- | ||
12436 | +AC_DEFUN([_LT_WITH_SYSROOT], | ||
12437 | +[AC_MSG_CHECKING([for sysroot]) | ||
12438 | +AC_ARG_WITH([libtool-sysroot], | ||
12439 | +[ --with-libtool-sysroot[=DIR] Search for dependent libraries within DIR | ||
12440 | + (or the compiler's sysroot if not specified).], | ||
12441 | +[], [with_libtool_sysroot=no]) | ||
12442 | + | ||
12443 | +dnl lt_sysroot will always be passed unquoted. We quote it here | ||
12444 | +dnl in case the user passed a directory name. | ||
12445 | +lt_sysroot= | ||
12446 | +case ${with_libtool_sysroot} in #( | ||
12447 | + yes) | ||
12448 | + if test "$GCC" = yes; then | ||
12449 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
12450 | + fi | ||
12451 | + ;; #( | ||
12452 | + /*) | ||
12453 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
12454 | + ;; #( | ||
12455 | + no|'') | ||
12456 | + ;; #( | ||
12457 | + *) | ||
12458 | + AC_MSG_RESULT([${with_libtool_sysroot}]) | ||
12459 | + AC_MSG_ERROR([The sysroot must be an absolute path.]) | ||
12460 | + ;; | ||
12461 | +esac | ||
12462 | + | ||
12463 | + AC_MSG_RESULT([${lt_sysroot:-no}]) | ||
12464 | +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | ||
12465 | +[dependent libraries, and in which our libraries should be installed.])]) | ||
12466 | + | ||
12467 | # _LT_ENABLE_LOCK | ||
12468 | # --------------- | ||
12469 | m4_defun([_LT_ENABLE_LOCK], | ||
12470 | @@ -1320,6 +1369,51 @@ need_locks="$enable_libtool_lock" | ||
12471 | ])# _LT_ENABLE_LOCK | ||
12472 | |||
12473 | |||
12474 | +# _LT_PROG_AR | ||
12475 | +# ----------- | ||
12476 | +m4_defun([_LT_PROG_AR], | ||
12477 | +[AC_CHECK_TOOLS(AR, [ar], false) | ||
12478 | + touch conftest.c | ||
12479 | + $AR $plugin_option rc conftest.a conftest.c | ||
12480 | + if test "$?" != 0; then | ||
12481 | + AC_MSG_WARN([Failed: $AR $plugin_option rc]) | ||
12482 | + else | ||
12483 | + AR="$AR $plugin_option" | ||
12484 | + fi | ||
12485 | + rm -f conftest.* | ||
12486 | +: ${AR=ar} | ||
12487 | +: ${AR_FLAGS=cru} | ||
12488 | +_LT_DECL([], [AR], [1], [The archiver]) | ||
12489 | +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) | ||
12490 | + | ||
12491 | +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | ||
12492 | + [lt_cv_ar_at_file=no | ||
12493 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], | ||
12494 | + [echo conftest.$ac_objext > conftest.lst | ||
12495 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' | ||
12496 | + AC_TRY_EVAL([lt_ar_try]) | ||
12497 | + if test "$ac_status" -eq 0; then | ||
12498 | + # Ensure the archiver fails upon bogus file names. | ||
12499 | + rm -f conftest.$ac_objext libconftest.a | ||
12500 | + AC_TRY_EVAL([lt_ar_try]) | ||
12501 | + if test "$ac_status" -ne 0; then | ||
12502 | + lt_cv_ar_at_file=@ | ||
12503 | + fi | ||
12504 | + fi | ||
12505 | + rm -f conftest.* libconftest.a | ||
12506 | + ]) | ||
12507 | + ]) | ||
12508 | + | ||
12509 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
12510 | + archiver_list_spec= | ||
12511 | +else | ||
12512 | + archiver_list_spec=$lt_cv_ar_at_file | ||
12513 | +fi | ||
12514 | +_LT_DECL([], [archiver_list_spec], [1], | ||
12515 | + [How to feed a file listing to the archiver]) | ||
12516 | +])# _LT_PROG_AR | ||
12517 | + | ||
12518 | + | ||
12519 | # _LT_CMD_OLD_ARCHIVE | ||
12520 | # ------------------- | ||
12521 | m4_defun([_LT_CMD_OLD_ARCHIVE], | ||
12522 | @@ -1336,23 +1430,7 @@ for plugin in $plugin_names; do | ||
12523 | fi | ||
12524 | done | ||
12525 | |||
12526 | -AC_CHECK_TOOL(AR, ar, false) | ||
12527 | -test -z "$AR" && AR=ar | ||
12528 | -if test -n "$plugin_option"; then | ||
12529 | - if $AR --help 2>&1 | grep -q "\--plugin"; then | ||
12530 | - touch conftest.c | ||
12531 | - $AR $plugin_option rc conftest.a conftest.c | ||
12532 | - if test "$?" != 0; then | ||
12533 | - AC_MSG_WARN([Failed: $AR $plugin_option rc]) | ||
12534 | - else | ||
12535 | - AR="$AR $plugin_option" | ||
12536 | - fi | ||
12537 | - rm -f conftest.* | ||
12538 | - fi | ||
12539 | -fi | ||
12540 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
12541 | -_LT_DECL([], [AR], [1], [The archiver]) | ||
12542 | -_LT_DECL([], [AR_FLAGS], [1]) | ||
12543 | +_LT_PROG_AR | ||
12544 | |||
12545 | AC_CHECK_TOOL(STRIP, strip, :) | ||
12546 | test -z "$STRIP" && STRIP=: | ||
12547 | @@ -1653,7 +1731,7 @@ else | ||
12548 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
12549 | lt_status=$lt_dlunknown | ||
12550 | cat > conftest.$ac_ext <<_LT_EOF | ||
12551 | -[#line __oline__ "configure" | ||
12552 | +[#line $LINENO "configure" | ||
12553 | #include "confdefs.h" | ||
12554 | |||
12555 | #if HAVE_DLFCN_H | ||
12556 | @@ -1697,10 +1775,10 @@ else | ||
12557 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
12558 | correspondingly for the symbols needed. */ | ||
12559 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
12560 | -void fnord () __attribute__((visibility("default"))); | ||
12561 | +int fnord () __attribute__((visibility("default"))); | ||
12562 | #endif | ||
12563 | |||
12564 | -void fnord () { int i=42; } | ||
12565 | +int fnord () { return 42; } | ||
12566 | int main () | ||
12567 | { | ||
12568 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
12569 | @@ -2240,8 +2318,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
12570 | need_version=no | ||
12571 | need_lib_prefix=no | ||
12572 | |||
12573 | - case $GCC,$host_os in | ||
12574 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
12575 | + case $GCC,$cc_basename in | ||
12576 | + yes,*) | ||
12577 | + # gcc | ||
12578 | library_names_spec='$libname.dll.a' | ||
12579 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
12580 | postinstall_cmds='base_file=`basename \${file}`~ | ||
12581 | @@ -2274,13 +2353,71 @@ m4_if([$1], [],[ | ||
12582 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
12583 | ;; | ||
12584 | esac | ||
12585 | + dynamic_linker='Win32 ld.exe' | ||
12586 | + ;; | ||
12587 | + | ||
12588 | + *,cl*) | ||
12589 | + # Native MSVC | ||
12590 | + libname_spec='$name' | ||
12591 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
12592 | + library_names_spec='${libname}.dll.lib' | ||
12593 | + | ||
12594 | + case $build_os in | ||
12595 | + mingw*) | ||
12596 | + sys_lib_search_path_spec= | ||
12597 | + lt_save_ifs=$IFS | ||
12598 | + IFS=';' | ||
12599 | + for lt_path in $LIB | ||
12600 | + do | ||
12601 | + IFS=$lt_save_ifs | ||
12602 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
12603 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
12604 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
12605 | + done | ||
12606 | + IFS=$lt_save_ifs | ||
12607 | + # Convert to MSYS style. | ||
12608 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | ||
12609 | + ;; | ||
12610 | + cygwin*) | ||
12611 | + # Convert to unix form, then to dos form, then back to unix form | ||
12612 | + # but this time dos style (no spaces!) so that the unix form looks | ||
12613 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
12614 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
12615 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
12616 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
12617 | + ;; | ||
12618 | + *) | ||
12619 | + sys_lib_search_path_spec="$LIB" | ||
12620 | + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | ||
12621 | + # It is most probably a Windows format PATH. | ||
12622 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
12623 | + else | ||
12624 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
12625 | + fi | ||
12626 | + # FIXME: find the short name or the path components, as spaces are | ||
12627 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
12628 | + ;; | ||
12629 | + esac | ||
12630 | + | ||
12631 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
12632 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
12633 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
12634 | + dldir=$destdir/`dirname \$dlpath`~ | ||
12635 | + test -d \$dldir || mkdir -p \$dldir~ | ||
12636 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
12637 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
12638 | + dlpath=$dir/\$dldll~ | ||
12639 | + $RM \$dlpath' | ||
12640 | + shlibpath_overrides_runpath=yes | ||
12641 | + dynamic_linker='Win32 link.exe' | ||
12642 | ;; | ||
12643 | |||
12644 | *) | ||
12645 | + # Assume MSVC wrapper | ||
12646 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
12647 | + dynamic_linker='Win32 ld.exe' | ||
12648 | ;; | ||
12649 | esac | ||
12650 | - dynamic_linker='Win32 ld.exe' | ||
12651 | # FIXME: first we should search . and the directory the executable is in | ||
12652 | shlibpath_var=PATH | ||
12653 | ;; | ||
12654 | @@ -2362,7 +2499,7 @@ haiku*) | ||
12655 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12656 | shlibpath_var=LIBRARY_PATH | ||
12657 | shlibpath_overrides_runpath=yes | ||
12658 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
12659 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
12660 | hardcode_into_libs=yes | ||
12661 | ;; | ||
12662 | |||
12663 | @@ -2970,6 +3107,11 @@ case $reload_flag in | ||
12664 | esac | ||
12665 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
12666 | case $host_os in | ||
12667 | + cygwin* | mingw* | pw32* | cegcc*) | ||
12668 | + if test "$GCC" != yes; then | ||
12669 | + reload_cmds=false | ||
12670 | + fi | ||
12671 | + ;; | ||
12672 | darwin*) | ||
12673 | if test "$GCC" = yes; then | ||
12674 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
12675 | @@ -3036,7 +3178,8 @@ mingw* | pw32*) | ||
12676 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
12677 | lt_cv_file_magic_cmd='func_win32_libid' | ||
12678 | else | ||
12679 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
12680 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
12681 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
12682 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
12683 | fi | ||
12684 | ;; | ||
12685 | @@ -3187,6 +3330,21 @@ tpf*) | ||
12686 | ;; | ||
12687 | esac | ||
12688 | ]) | ||
12689 | + | ||
12690 | +file_magic_glob= | ||
12691 | +want_nocaseglob=no | ||
12692 | +if test "$build" = "$host"; then | ||
12693 | + case $host_os in | ||
12694 | + mingw* | pw32*) | ||
12695 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
12696 | + want_nocaseglob=yes | ||
12697 | + else | ||
12698 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` | ||
12699 | + fi | ||
12700 | + ;; | ||
12701 | + esac | ||
12702 | +fi | ||
12703 | + | ||
12704 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
12705 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
12706 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
12707 | @@ -3194,7 +3352,11 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
12708 | _LT_DECL([], [deplibs_check_method], [1], | ||
12709 | [Method to check whether dependent libraries are shared objects]) | ||
12710 | _LT_DECL([], [file_magic_cmd], [1], | ||
12711 | - [Command to use when deplibs_check_method == "file_magic"]) | ||
12712 | + [Command to use when deplibs_check_method = "file_magic"]) | ||
12713 | +_LT_DECL([], [file_magic_glob], [1], | ||
12714 | + [How to find potential files when deplibs_check_method = "file_magic"]) | ||
12715 | +_LT_DECL([], [want_nocaseglob], [1], | ||
12716 | + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) | ||
12717 | ])# _LT_CHECK_MAGIC_METHOD | ||
12718 | |||
12719 | |||
12720 | @@ -3297,6 +3459,67 @@ dnl aclocal-1.4 backwards compatibility: | ||
12721 | dnl AC_DEFUN([AM_PROG_NM], []) | ||
12722 | dnl AC_DEFUN([AC_PROG_NM], []) | ||
12723 | |||
12724 | +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | ||
12725 | +# -------------------------------- | ||
12726 | +# how to determine the name of the shared library | ||
12727 | +# associated with a specific link library. | ||
12728 | +# -- PORTME fill in with the dynamic library characteristics | ||
12729 | +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], | ||
12730 | +[m4_require([_LT_DECL_EGREP]) | ||
12731 | +m4_require([_LT_DECL_OBJDUMP]) | ||
12732 | +m4_require([_LT_DECL_DLLTOOL]) | ||
12733 | +AC_CACHE_CHECK([how to associate runtime and link libraries], | ||
12734 | +lt_cv_sharedlib_from_linklib_cmd, | ||
12735 | +[lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
12736 | + | ||
12737 | +case $host_os in | ||
12738 | +cygwin* | mingw* | pw32* | cegcc*) | ||
12739 | + # two different shell functions defined in ltmain.sh | ||
12740 | + # decide which to use based on capabilities of $DLLTOOL | ||
12741 | + case `$DLLTOOL --help 2>&1` in | ||
12742 | + *--identify-strict*) | ||
12743 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
12744 | + ;; | ||
12745 | + *) | ||
12746 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
12747 | + ;; | ||
12748 | + esac | ||
12749 | + ;; | ||
12750 | +*) | ||
12751 | + # fallback: assume linklib IS sharedlib | ||
12752 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
12753 | + ;; | ||
12754 | +esac | ||
12755 | +]) | ||
12756 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
12757 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
12758 | + | ||
12759 | +_LT_DECL([], [sharedlib_from_linklib_cmd], [1], | ||
12760 | + [Command to associate shared and link libraries]) | ||
12761 | +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | ||
12762 | + | ||
12763 | + | ||
12764 | +# _LT_PATH_MANIFEST_TOOL | ||
12765 | +# ---------------------- | ||
12766 | +# locate the manifest tool | ||
12767 | +m4_defun([_LT_PATH_MANIFEST_TOOL], | ||
12768 | +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) | ||
12769 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
12770 | +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], | ||
12771 | + [lt_cv_path_mainfest_tool=no | ||
12772 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD | ||
12773 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
12774 | + cat conftest.err >&AS_MESSAGE_LOG_FD | ||
12775 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
12776 | + lt_cv_path_mainfest_tool=yes | ||
12777 | + fi | ||
12778 | + rm -f conftest*]) | ||
12779 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
12780 | + MANIFEST_TOOL=: | ||
12781 | +fi | ||
12782 | +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl | ||
12783 | +])# _LT_PATH_MANIFEST_TOOL | ||
12784 | + | ||
12785 | |||
12786 | # LT_LIB_M | ||
12787 | # -------- | ||
12788 | @@ -3423,8 +3646,8 @@ esac | ||
12789 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
12790 | |||
12791 | # Transform an extracted symbol line into symbol name and symbol address | ||
12792 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
12793 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
12794 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
12795 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
12796 | |||
12797 | # Handle CRLF in mingw tool chain | ||
12798 | opt_cr= | ||
12799 | @@ -3460,6 +3683,7 @@ for ac_symprfx in "" "_"; do | ||
12800 | else | ||
12801 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
12802 | fi | ||
12803 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
12804 | |||
12805 | # Check to see that the pipe works correctly. | ||
12806 | pipe_works=no | ||
12807 | @@ -3493,6 +3717,18 @@ _LT_EOF | ||
12808 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
12809 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
12810 | cat <<_LT_EOF > conftest.$ac_ext | ||
12811 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
12812 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
12813 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
12814 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
12815 | +# define LT@&t@_DLSYM_CONST | ||
12816 | +#elif defined(__osf__) | ||
12817 | +/* This system does not cope well with relocations in const data. */ | ||
12818 | +# define LT@&t@_DLSYM_CONST | ||
12819 | +#else | ||
12820 | +# define LT@&t@_DLSYM_CONST const | ||
12821 | +#endif | ||
12822 | + | ||
12823 | #ifdef __cplusplus | ||
12824 | extern "C" { | ||
12825 | #endif | ||
12826 | @@ -3504,7 +3740,7 @@ _LT_EOF | ||
12827 | cat <<_LT_EOF >> conftest.$ac_ext | ||
12828 | |||
12829 | /* The mapping between symbol names and symbols. */ | ||
12830 | -const struct { | ||
12831 | +LT@&t@_DLSYM_CONST struct { | ||
12832 | const char *name; | ||
12833 | void *address; | ||
12834 | } | ||
12835 | @@ -3530,15 +3766,15 @@ static const void *lt_preloaded_setup() { | ||
12836 | _LT_EOF | ||
12837 | # Now try linking the two files. | ||
12838 | mv conftest.$ac_objext conftstm.$ac_objext | ||
12839 | - lt_save_LIBS="$LIBS" | ||
12840 | - lt_save_CFLAGS="$CFLAGS" | ||
12841 | + lt_globsym_save_LIBS=$LIBS | ||
12842 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
12843 | LIBS="conftstm.$ac_objext" | ||
12844 | CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | ||
12845 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | ||
12846 | pipe_works=yes | ||
12847 | fi | ||
12848 | - LIBS="$lt_save_LIBS" | ||
12849 | - CFLAGS="$lt_save_CFLAGS" | ||
12850 | + LIBS=$lt_globsym_save_LIBS | ||
12851 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
12852 | else | ||
12853 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | ||
12854 | fi | ||
12855 | @@ -3571,6 +3807,13 @@ else | ||
12856 | AC_MSG_RESULT(ok) | ||
12857 | fi | ||
12858 | |||
12859 | +# Response file support. | ||
12860 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
12861 | + nm_file_list_spec='@' | ||
12862 | +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then | ||
12863 | + nm_file_list_spec='@' | ||
12864 | +fi | ||
12865 | + | ||
12866 | _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | ||
12867 | [Take the output of nm and produce a listing of raw symbols and C names]) | ||
12868 | _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | ||
12869 | @@ -3581,6 +3824,8 @@ _LT_DECL([global_symbol_to_c_name_address], | ||
12870 | _LT_DECL([global_symbol_to_c_name_address_lib_prefix], | ||
12871 | [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | ||
12872 | [Transform the output of nm in a C name address pair when lib prefix is needed]) | ||
12873 | +_LT_DECL([], [nm_file_list_spec], [1], | ||
12874 | + [Specify filename containing input files for $NM]) | ||
12875 | ]) # _LT_CMD_GLOBAL_SYMBOLS | ||
12876 | |||
12877 | |||
12878 | @@ -3592,7 +3837,6 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)= | ||
12879 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
12880 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
12881 | |||
12882 | -AC_MSG_CHECKING([for $compiler option to produce PIC]) | ||
12883 | m4_if([$1], [CXX], [ | ||
12884 | # C++ specific cases for pic, static, wl, etc. | ||
12885 | if test "$GXX" = yes; then | ||
12886 | @@ -3698,6 +3942,12 @@ m4_if([$1], [CXX], [ | ||
12887 | ;; | ||
12888 | esac | ||
12889 | ;; | ||
12890 | + mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
12891 | + # This hack is so that the source file can tell whether it is being | ||
12892 | + # built for inclusion in a dll (and should export symbols for example). | ||
12893 | + m4_if([$1], [GCJ], [], | ||
12894 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
12895 | + ;; | ||
12896 | dgux*) | ||
12897 | case $cc_basename in | ||
12898 | ec++*) | ||
12899 | @@ -3850,7 +4100,7 @@ m4_if([$1], [CXX], [ | ||
12900 | ;; | ||
12901 | solaris*) | ||
12902 | case $cc_basename in | ||
12903 | - CC*) | ||
12904 | + CC* | sunCC*) | ||
12905 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
12906 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
12907 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
12908 | @@ -4073,6 +4323,12 @@ m4_if([$1], [CXX], [ | ||
12909 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | ||
12910 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | ||
12911 | ;; | ||
12912 | + nagfor*) | ||
12913 | + # NAG Fortran compiler | ||
12914 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' | ||
12915 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
12916 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
12917 | + ;; | ||
12918 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
12919 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
12920 | # which looks to be a dead project) | ||
12921 | @@ -4135,7 +4391,7 @@ m4_if([$1], [CXX], [ | ||
12922 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
12923 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
12924 | case $cc_basename in | ||
12925 | - f77* | f90* | f95*) | ||
12926 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
12927 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | ||
12928 | *) | ||
12929 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | ||
12930 | @@ -4192,9 +4448,11 @@ case $host_os in | ||
12931 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | ||
12932 | ;; | ||
12933 | esac | ||
12934 | -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | ||
12935 | -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | ||
12936 | - [How to pass a linker flag through the compiler]) | ||
12937 | + | ||
12938 | +AC_CACHE_CHECK([for $compiler option to produce PIC], | ||
12939 | + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], | ||
12940 | + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | ||
12941 | +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) | ||
12942 | |||
12943 | # | ||
12944 | # Check to make sure the PIC flag actually works. | ||
12945 | @@ -4213,6 +4471,8 @@ fi | ||
12946 | _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], | ||
12947 | [Additional compiler flags for building library objects]) | ||
12948 | |||
12949 | +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | ||
12950 | + [How to pass a linker flag through the compiler]) | ||
12951 | # | ||
12952 | # Check to make sure the static flag actually works. | ||
12953 | # | ||
12954 | @@ -4233,6 +4493,7 @@ _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], | ||
12955 | m4_defun([_LT_LINKER_SHLIBS], | ||
12956 | [AC_REQUIRE([LT_PATH_LD])dnl | ||
12957 | AC_REQUIRE([LT_PATH_NM])dnl | ||
12958 | +m4_require([_LT_PATH_MANIFEST_TOOL])dnl | ||
12959 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
12960 | m4_require([_LT_DECL_EGREP])dnl | ||
12961 | m4_require([_LT_DECL_SED])dnl | ||
12962 | @@ -4241,6 +4502,7 @@ m4_require([_LT_TAG_COMPILER])dnl | ||
12963 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
12964 | m4_if([$1], [CXX], [ | ||
12965 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
12966 | + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | ||
12967 | case $host_os in | ||
12968 | aix[[4-9]]*) | ||
12969 | # If we're using GNU nm, then we don't want the "-C" option. | ||
12970 | @@ -4255,15 +4517,20 @@ m4_if([$1], [CXX], [ | ||
12971 | ;; | ||
12972 | pw32*) | ||
12973 | _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | ||
12974 | - ;; | ||
12975 | + ;; | ||
12976 | cygwin* | mingw* | cegcc*) | ||
12977 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
12978 | - ;; | ||
12979 | + case $cc_basename in | ||
12980 | + cl*) ;; | ||
12981 | + *) | ||
12982 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
12983 | + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | ||
12984 | + ;; | ||
12985 | + esac | ||
12986 | + ;; | ||
12987 | *) | ||
12988 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
12989 | - ;; | ||
12990 | + ;; | ||
12991 | esac | ||
12992 | - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | ||
12993 | ], [ | ||
12994 | runpath_var= | ||
12995 | _LT_TAGVAR(allow_undefined_flag, $1)= | ||
12996 | @@ -4431,7 +4698,8 @@ _LT_EOF | ||
12997 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
12998 | _LT_TAGVAR(always_export_symbols, $1)=no | ||
12999 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
13000 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' | ||
13001 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
13002 | + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | ||
13003 | |||
13004 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
13005 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
13006 | @@ -4530,12 +4798,12 @@ _LT_EOF | ||
13007 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | ||
13008 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
13009 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | ||
13010 | - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
13011 | + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
13012 | if test "x$supports_anon_versioning" = xyes; then | ||
13013 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | ||
13014 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
13015 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
13016 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
13017 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
13018 | fi | ||
13019 | ;; | ||
13020 | esac | ||
13021 | @@ -4549,8 +4817,8 @@ _LT_EOF | ||
13022 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
13023 | wlarc= | ||
13024 | else | ||
13025 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
13026 | - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
13027 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
13028 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
13029 | fi | ||
13030 | ;; | ||
13031 | |||
13032 | @@ -4568,8 +4836,8 @@ _LT_EOF | ||
13033 | |||
13034 | _LT_EOF | ||
13035 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
13036 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
13037 | - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
13038 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
13039 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
13040 | else | ||
13041 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
13042 | fi | ||
13043 | @@ -4615,8 +4883,8 @@ _LT_EOF | ||
13044 | |||
13045 | *) | ||
13046 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
13047 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
13048 | - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
13049 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
13050 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
13051 | else | ||
13052 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
13053 | fi | ||
13054 | @@ -4746,7 +5014,7 @@ _LT_EOF | ||
13055 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
13056 | # Determine the default libpath from the value encoded in an | ||
13057 | # empty executable. | ||
13058 | - _LT_SYS_MODULE_PATH_AIX | ||
13059 | + _LT_SYS_MODULE_PATH_AIX([$1]) | ||
13060 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
13061 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
13062 | else | ||
13063 | @@ -4757,7 +5025,7 @@ _LT_EOF | ||
13064 | else | ||
13065 | # Determine the default libpath from the value encoded in an | ||
13066 | # empty executable. | ||
13067 | - _LT_SYS_MODULE_PATH_AIX | ||
13068 | + _LT_SYS_MODULE_PATH_AIX([$1]) | ||
13069 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
13070 | # Warning - without using the other run time loading flags, | ||
13071 | # -berok will link without error, but may produce a broken library. | ||
13072 | @@ -4801,20 +5069,63 @@ _LT_EOF | ||
13073 | # Microsoft Visual C++. | ||
13074 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
13075 | # no search path for DLLs. | ||
13076 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
13077 | - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
13078 | - # Tell ltmain to make .lib files, not .a files. | ||
13079 | - libext=lib | ||
13080 | - # Tell ltmain to make .dll files, not .so files. | ||
13081 | - shrext_cmds=".dll" | ||
13082 | - # FIXME: Setting linknames here is a bad hack. | ||
13083 | - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
13084 | - # The linker will automatically build a .lib file if we build a DLL. | ||
13085 | - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | ||
13086 | - # FIXME: Should let the user specify the lib program. | ||
13087 | - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
13088 | - _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | ||
13089 | - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
13090 | + case $cc_basename in | ||
13091 | + cl*) | ||
13092 | + # Native MSVC | ||
13093 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
13094 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
13095 | + _LT_TAGVAR(always_export_symbols, $1)=yes | ||
13096 | + _LT_TAGVAR(file_list_spec, $1)='@' | ||
13097 | + # Tell ltmain to make .lib files, not .a files. | ||
13098 | + libext=lib | ||
13099 | + # Tell ltmain to make .dll files, not .so files. | ||
13100 | + shrext_cmds=".dll" | ||
13101 | + # FIXME: Setting linknames here is a bad hack. | ||
13102 | + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
13103 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
13104 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
13105 | + else | ||
13106 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
13107 | + fi~ | ||
13108 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
13109 | + linknames=' | ||
13110 | + # The linker will not automatically build a static lib if we build a DLL. | ||
13111 | + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | ||
13112 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
13113 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' | ||
13114 | + # Don't use ranlib | ||
13115 | + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | ||
13116 | + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | ||
13117 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
13118 | + case $lt_outputfile in | ||
13119 | + *.exe|*.EXE) ;; | ||
13120 | + *) | ||
13121 | + lt_outputfile="$lt_outputfile.exe" | ||
13122 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
13123 | + ;; | ||
13124 | + esac~ | ||
13125 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
13126 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
13127 | + $RM "$lt_outputfile.manifest"; | ||
13128 | + fi' | ||
13129 | + ;; | ||
13130 | + *) | ||
13131 | + # Assume MSVC wrapper | ||
13132 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
13133 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
13134 | + # Tell ltmain to make .lib files, not .a files. | ||
13135 | + libext=lib | ||
13136 | + # Tell ltmain to make .dll files, not .so files. | ||
13137 | + shrext_cmds=".dll" | ||
13138 | + # FIXME: Setting linknames here is a bad hack. | ||
13139 | + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
13140 | + # The linker will automatically build a .lib file if we build a DLL. | ||
13141 | + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | ||
13142 | + # FIXME: Should let the user specify the lib program. | ||
13143 | + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
13144 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
13145 | + ;; | ||
13146 | + esac | ||
13147 | ;; | ||
13148 | |||
13149 | darwin* | rhapsody*) | ||
13150 | @@ -4848,7 +5159,7 @@ _LT_EOF | ||
13151 | |||
13152 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
13153 | freebsd* | dragonfly*) | ||
13154 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
13155 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
13156 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
13157 | _LT_TAGVAR(hardcode_direct, $1)=yes | ||
13158 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
13159 | @@ -4856,7 +5167,7 @@ _LT_EOF | ||
13160 | |||
13161 | hpux9*) | ||
13162 | if test "$GCC" = yes; then | ||
13163 | - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
13164 | + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
13165 | else | ||
13166 | _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
13167 | fi | ||
13168 | @@ -4872,7 +5183,7 @@ _LT_EOF | ||
13169 | |||
13170 | hpux10*) | ||
13171 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
13172 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
13173 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
13174 | else | ||
13175 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
13176 | fi | ||
13177 | @@ -4896,10 +5207,10 @@ _LT_EOF | ||
13178 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
13179 | ;; | ||
13180 | ia64*) | ||
13181 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
13182 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
13183 | ;; | ||
13184 | *) | ||
13185 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
13186 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
13187 | ;; | ||
13188 | esac | ||
13189 | else | ||
13190 | @@ -4946,16 +5257,31 @@ _LT_EOF | ||
13191 | |||
13192 | irix5* | irix6* | nonstopux*) | ||
13193 | if test "$GCC" = yes; then | ||
13194 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
13195 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
13196 | # Try to use the -exported_symbol ld option, if it does not | ||
13197 | # work, assume that -exports_file does not work either and | ||
13198 | # implicitly export all symbols. | ||
13199 | - save_LDFLAGS="$LDFLAGS" | ||
13200 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
13201 | - AC_LINK_IFELSE([AC_LANG_SOURCE([int foo(void) {}])], | ||
13202 | - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
13203 | - ) | ||
13204 | - LDFLAGS="$save_LDFLAGS" | ||
13205 | + # This should be the same for all languages, so no per-tag cache variable. | ||
13206 | + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], | ||
13207 | + [lt_cv_irix_exported_symbol], | ||
13208 | + [save_LDFLAGS="$LDFLAGS" | ||
13209 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
13210 | + AC_LINK_IFELSE( | ||
13211 | + [AC_LANG_SOURCE( | ||
13212 | + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], | ||
13213 | + [C++], [[int foo (void) { return 0; }]], | ||
13214 | + [Fortran 77], [[ | ||
13215 | + subroutine foo | ||
13216 | + end]], | ||
13217 | + [Fortran], [[ | ||
13218 | + subroutine foo | ||
13219 | + end]])])], | ||
13220 | + [lt_cv_irix_exported_symbol=yes], | ||
13221 | + [lt_cv_irix_exported_symbol=no]) | ||
13222 | + LDFLAGS="$save_LDFLAGS"]) | ||
13223 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
13224 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
13225 | + fi | ||
13226 | else | ||
13227 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
13228 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
13229 | @@ -5040,7 +5366,7 @@ _LT_EOF | ||
13230 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
13231 | if test "$GCC" = yes; then | ||
13232 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
13233 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
13234 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
13235 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
13236 | else | ||
13237 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
13238 | @@ -5059,9 +5385,9 @@ _LT_EOF | ||
13239 | _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' | ||
13240 | if test "$GCC" = yes; then | ||
13241 | wlarc='${wl}' | ||
13242 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
13243 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
13244 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
13245 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
13246 | + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
13247 | else | ||
13248 | case `$CC -V 2>&1` in | ||
13249 | *"Compilers 5.0"*) | ||
13250 | @@ -5333,8 +5659,6 @@ _LT_TAGDECL([], [inherit_rpath], [0], | ||
13251 | to runtime path list]) | ||
13252 | _LT_TAGDECL([], [link_all_deplibs], [0], | ||
13253 | [Whether libtool must link a program against all its dependency libraries]) | ||
13254 | -_LT_TAGDECL([], [fix_srcfile_path], [1], | ||
13255 | - [Fix the shell variable $srcfile for the compiler]) | ||
13256 | _LT_TAGDECL([], [always_export_symbols], [0], | ||
13257 | [Set to "yes" if exported symbols are required]) | ||
13258 | _LT_TAGDECL([], [export_symbols_cmds], [2], | ||
13259 | @@ -5345,6 +5669,8 @@ _LT_TAGDECL([], [include_expsyms], [1], | ||
13260 | [Symbols that must always be exported]) | ||
13261 | _LT_TAGDECL([], [prelink_cmds], [2], | ||
13262 | [Commands necessary for linking programs (against libraries) with templates]) | ||
13263 | +_LT_TAGDECL([], [postlink_cmds], [2], | ||
13264 | + [Commands necessary for finishing linking programs]) | ||
13265 | _LT_TAGDECL([], [file_list_spec], [1], | ||
13266 | [Specify filename containing input files]) | ||
13267 | dnl FIXME: Not yet implemented | ||
13268 | @@ -5446,6 +5772,7 @@ CC="$lt_save_CC" | ||
13269 | m4_defun([_LT_LANG_CXX_CONFIG], | ||
13270 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
13271 | m4_require([_LT_DECL_EGREP])dnl | ||
13272 | +m4_require([_LT_PATH_MANIFEST_TOOL])dnl | ||
13273 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
13274 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
13275 | (test "X$CXX" != "Xg++"))) ; then | ||
13276 | @@ -5507,6 +5834,7 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13277 | |||
13278 | # Allow CC to be a program name with arguments. | ||
13279 | lt_save_CC=$CC | ||
13280 | + lt_save_CFLAGS=$CFLAGS | ||
13281 | lt_save_LD=$LD | ||
13282 | lt_save_GCC=$GCC | ||
13283 | GCC=$GXX | ||
13284 | @@ -5524,6 +5852,7 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13285 | fi | ||
13286 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
13287 | CC=${CXX-"c++"} | ||
13288 | + CFLAGS=$CXXFLAGS | ||
13289 | compiler=$CC | ||
13290 | _LT_TAGVAR(compiler, $1)=$CC | ||
13291 | _LT_CC_BASENAME([$compiler]) | ||
13292 | @@ -5687,7 +6016,7 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13293 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
13294 | # Determine the default libpath from the value encoded in an empty | ||
13295 | # executable. | ||
13296 | - _LT_SYS_MODULE_PATH_AIX | ||
13297 | + _LT_SYS_MODULE_PATH_AIX([$1]) | ||
13298 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
13299 | |||
13300 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
13301 | @@ -5699,7 +6028,7 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13302 | else | ||
13303 | # Determine the default libpath from the value encoded in an | ||
13304 | # empty executable. | ||
13305 | - _LT_SYS_MODULE_PATH_AIX | ||
13306 | + _LT_SYS_MODULE_PATH_AIX([$1]) | ||
13307 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
13308 | # Warning - without using the other run time loading flags, | ||
13309 | # -berok will link without error, but may produce a broken library. | ||
13310 | @@ -5741,29 +6070,75 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13311 | ;; | ||
13312 | |||
13313 | cygwin* | mingw* | pw32* | cegcc*) | ||
13314 | - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
13315 | - # as there is no search path for DLLs. | ||
13316 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
13317 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | ||
13318 | - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
13319 | - _LT_TAGVAR(always_export_symbols, $1)=no | ||
13320 | - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
13321 | - | ||
13322 | - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
13323 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
13324 | - # If the export-symbols file already is a .def file (1st line | ||
13325 | - # is EXPORTS), use it as is; otherwise, prepend... | ||
13326 | - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
13327 | - cp $export_symbols $output_objdir/$soname.def; | ||
13328 | - else | ||
13329 | - echo EXPORTS > $output_objdir/$soname.def; | ||
13330 | - cat $export_symbols >> $output_objdir/$soname.def; | ||
13331 | - fi~ | ||
13332 | - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
13333 | - else | ||
13334 | - _LT_TAGVAR(ld_shlibs, $1)=no | ||
13335 | - fi | ||
13336 | - ;; | ||
13337 | + case $GXX,$cc_basename in | ||
13338 | + ,cl* | no,cl*) | ||
13339 | + # Native MSVC | ||
13340 | + # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
13341 | + # no search path for DLLs. | ||
13342 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
13343 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
13344 | + _LT_TAGVAR(always_export_symbols, $1)=yes | ||
13345 | + _LT_TAGVAR(file_list_spec, $1)='@' | ||
13346 | + # Tell ltmain to make .lib files, not .a files. | ||
13347 | + libext=lib | ||
13348 | + # Tell ltmain to make .dll files, not .so files. | ||
13349 | + shrext_cmds=".dll" | ||
13350 | + # FIXME: Setting linknames here is a bad hack. | ||
13351 | + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
13352 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
13353 | + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
13354 | + else | ||
13355 | + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
13356 | + fi~ | ||
13357 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
13358 | + linknames=' | ||
13359 | + # The linker will not automatically build a static lib if we build a DLL. | ||
13360 | + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | ||
13361 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
13362 | + # Don't use ranlib | ||
13363 | + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | ||
13364 | + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | ||
13365 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
13366 | + case $lt_outputfile in | ||
13367 | + *.exe|*.EXE) ;; | ||
13368 | + *) | ||
13369 | + lt_outputfile="$lt_outputfile.exe" | ||
13370 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
13371 | + ;; | ||
13372 | + esac~ | ||
13373 | + func_to_tool_file "$lt_outputfile"~ | ||
13374 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
13375 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
13376 | + $RM "$lt_outputfile.manifest"; | ||
13377 | + fi' | ||
13378 | + ;; | ||
13379 | + *) | ||
13380 | + # g++ | ||
13381 | + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
13382 | + # as there is no search path for DLLs. | ||
13383 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
13384 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | ||
13385 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
13386 | + _LT_TAGVAR(always_export_symbols, $1)=no | ||
13387 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
13388 | + | ||
13389 | + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
13390 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
13391 | + # If the export-symbols file already is a .def file (1st line | ||
13392 | + # is EXPORTS), use it as is; otherwise, prepend... | ||
13393 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
13394 | + cp $export_symbols $output_objdir/$soname.def; | ||
13395 | + else | ||
13396 | + echo EXPORTS > $output_objdir/$soname.def; | ||
13397 | + cat $export_symbols >> $output_objdir/$soname.def; | ||
13398 | + fi~ | ||
13399 | + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
13400 | + else | ||
13401 | + _LT_TAGVAR(ld_shlibs, $1)=no | ||
13402 | + fi | ||
13403 | + ;; | ||
13404 | + esac | ||
13405 | + ;; | ||
13406 | darwin* | rhapsody*) | ||
13407 | _LT_DARWIN_LINKER_FEATURES($1) | ||
13408 | ;; | ||
13409 | @@ -5838,7 +6213,7 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13410 | ;; | ||
13411 | *) | ||
13412 | if test "$GXX" = yes; then | ||
13413 | - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
13414 | + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
13415 | else | ||
13416 | # FIXME: insert proper C++ library support | ||
13417 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
13418 | @@ -5909,10 +6284,10 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13419 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
13420 | ;; | ||
13421 | ia64*) | ||
13422 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
13423 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
13424 | ;; | ||
13425 | *) | ||
13426 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
13427 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
13428 | ;; | ||
13429 | esac | ||
13430 | fi | ||
13431 | @@ -5953,9 +6328,9 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13432 | *) | ||
13433 | if test "$GXX" = yes; then | ||
13434 | if test "$with_gnu_ld" = no; then | ||
13435 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
13436 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
13437 | else | ||
13438 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | ||
13439 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | ||
13440 | fi | ||
13441 | fi | ||
13442 | _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
13443 | @@ -6025,20 +6400,20 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13444 | _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | ||
13445 | rm -rf $tpldir~ | ||
13446 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | ||
13447 | - compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | ||
13448 | + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | ||
13449 | _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | ||
13450 | rm -rf $tpldir~ | ||
13451 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | ||
13452 | - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | ||
13453 | + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | ||
13454 | $RANLIB $oldlib' | ||
13455 | _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | ||
13456 | rm -rf $tpldir~ | ||
13457 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
13458 | - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
13459 | + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
13460 | _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | ||
13461 | rm -rf $tpldir~ | ||
13462 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
13463 | - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
13464 | + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
13465 | ;; | ||
13466 | *) # Version 6 and above use weak symbols | ||
13467 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
13468 | @@ -6233,7 +6608,7 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13469 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
13470 | ;; | ||
13471 | *) | ||
13472 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
13473 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
13474 | ;; | ||
13475 | esac | ||
13476 | |||
13477 | @@ -6279,7 +6654,7 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13478 | |||
13479 | solaris*) | ||
13480 | case $cc_basename in | ||
13481 | - CC*) | ||
13482 | + CC* | sunCC*) | ||
13483 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
13484 | _LT_TAGVAR(archive_cmds_need_lc,$1)=yes | ||
13485 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | ||
13486 | @@ -6320,9 +6695,9 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13487 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
13488 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | ||
13489 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | ||
13490 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
13491 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
13492 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
13493 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
13494 | + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
13495 | |||
13496 | # Commands to make compiler produce verbose output that lists | ||
13497 | # what "hidden" libraries, object files and flags are used when | ||
13498 | @@ -6451,6 +6826,7 @@ if test "$_lt_caught_CXX_error" != yes; then | ||
13499 | fi # test -n "$compiler" | ||
13500 | |||
13501 | CC=$lt_save_CC | ||
13502 | + CFLAGS=$lt_save_CFLAGS | ||
13503 | LDCXX=$LD | ||
13504 | LD=$lt_save_LD | ||
13505 | GCC=$lt_save_GCC | ||
13506 | @@ -6465,6 +6841,29 @@ AC_LANG_POP | ||
13507 | ])# _LT_LANG_CXX_CONFIG | ||
13508 | |||
13509 | |||
13510 | +# _LT_FUNC_STRIPNAME_CNF | ||
13511 | +# ---------------------- | ||
13512 | +# func_stripname_cnf prefix suffix name | ||
13513 | +# strip PREFIX and SUFFIX off of NAME. | ||
13514 | +# PREFIX and SUFFIX must not contain globbing or regex special | ||
13515 | +# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
13516 | +# dot (in which case that matches only a dot). | ||
13517 | +# | ||
13518 | +# This function is identical to the (non-XSI) version of func_stripname, | ||
13519 | +# except this one can be used by m4 code that may be executed by configure, | ||
13520 | +# rather than the libtool script. | ||
13521 | +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl | ||
13522 | +AC_REQUIRE([_LT_DECL_SED]) | ||
13523 | +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) | ||
13524 | +func_stripname_cnf () | ||
13525 | +{ | ||
13526 | + case ${2} in | ||
13527 | + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
13528 | + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
13529 | + esac | ||
13530 | +} # func_stripname_cnf | ||
13531 | +])# _LT_FUNC_STRIPNAME_CNF | ||
13532 | + | ||
13533 | # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | ||
13534 | # --------------------------------- | ||
13535 | # Figure out "hidden" library dependencies from verbose | ||
13536 | @@ -6473,6 +6872,7 @@ AC_LANG_POP | ||
13537 | # objects, libraries and library flags. | ||
13538 | m4_defun([_LT_SYS_HIDDEN_LIBDEPS], | ||
13539 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
13540 | +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl | ||
13541 | # Dependencies to place before and after the object being linked: | ||
13542 | _LT_TAGVAR(predep_objects, $1)= | ||
13543 | _LT_TAGVAR(postdep_objects, $1)= | ||
13544 | @@ -6523,6 +6923,13 @@ public class foo { | ||
13545 | }; | ||
13546 | _LT_EOF | ||
13547 | ]) | ||
13548 | + | ||
13549 | +_lt_libdeps_save_CFLAGS=$CFLAGS | ||
13550 | +case "$CC $CFLAGS " in #( | ||
13551 | +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | ||
13552 | +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | ||
13553 | +esac | ||
13554 | + | ||
13555 | dnl Parse the compiler output and extract the necessary | ||
13556 | dnl objects, libraries and library flags. | ||
13557 | if AC_TRY_EVAL(ac_compile); then | ||
13558 | @@ -6534,7 +6941,7 @@ if AC_TRY_EVAL(ac_compile); then | ||
13559 | pre_test_object_deps_done=no | ||
13560 | |||
13561 | for p in `eval "$output_verbose_link_cmd"`; do | ||
13562 | - case $p in | ||
13563 | + case ${prev}${p} in | ||
13564 | |||
13565 | -L* | -R* | -l*) | ||
13566 | # Some compilers place space between "-{L,R}" and the path. | ||
13567 | @@ -6543,13 +6950,22 @@ if AC_TRY_EVAL(ac_compile); then | ||
13568 | test $p = "-R"; then | ||
13569 | prev=$p | ||
13570 | continue | ||
13571 | - else | ||
13572 | - prev= | ||
13573 | fi | ||
13574 | |||
13575 | + # Expand the sysroot to ease extracting the directories later. | ||
13576 | + if test -z "$prev"; then | ||
13577 | + case $p in | ||
13578 | + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | ||
13579 | + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | ||
13580 | + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | ||
13581 | + esac | ||
13582 | + fi | ||
13583 | + case $p in | ||
13584 | + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | ||
13585 | + esac | ||
13586 | if test "$pre_test_object_deps_done" = no; then | ||
13587 | - case $p in | ||
13588 | - -L* | -R*) | ||
13589 | + case ${prev} in | ||
13590 | + -L | -R) | ||
13591 | # Internal compiler library paths should come after those | ||
13592 | # provided the user. The postdeps already come after the | ||
13593 | # user supplied libs so there is no need to process them. | ||
13594 | @@ -6569,8 +6985,10 @@ if AC_TRY_EVAL(ac_compile); then | ||
13595 | _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" | ||
13596 | fi | ||
13597 | fi | ||
13598 | + prev= | ||
13599 | ;; | ||
13600 | |||
13601 | + *.lto.$objext) ;; # Ignore GCC LTO objects | ||
13602 | *.$objext) | ||
13603 | # This assumes that the test object file only shows up | ||
13604 | # once in the compiler output. | ||
13605 | @@ -6606,6 +7024,7 @@ else | ||
13606 | fi | ||
13607 | |||
13608 | $RM -f confest.$objext | ||
13609 | +CFLAGS=$_lt_libdeps_save_CFLAGS | ||
13610 | |||
13611 | # PORTME: override above test on systems where it is broken | ||
13612 | m4_if([$1], [CXX], | ||
13613 | @@ -6642,7 +7061,7 @@ linux*) | ||
13614 | |||
13615 | solaris*) | ||
13616 | case $cc_basename in | ||
13617 | - CC*) | ||
13618 | + CC* | sunCC*) | ||
13619 | # The more standards-conforming stlport4 library is | ||
13620 | # incompatible with the Cstd library. Avoid specifying | ||
13621 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
13622 | @@ -6755,7 +7174,9 @@ if test "$_lt_disable_F77" != yes; then | ||
13623 | # Allow CC to be a program name with arguments. | ||
13624 | lt_save_CC="$CC" | ||
13625 | lt_save_GCC=$GCC | ||
13626 | + lt_save_CFLAGS=$CFLAGS | ||
13627 | CC=${F77-"f77"} | ||
13628 | + CFLAGS=$FFLAGS | ||
13629 | compiler=$CC | ||
13630 | _LT_TAGVAR(compiler, $1)=$CC | ||
13631 | _LT_CC_BASENAME([$compiler]) | ||
13632 | @@ -6809,6 +7230,7 @@ if test "$_lt_disable_F77" != yes; then | ||
13633 | |||
13634 | GCC=$lt_save_GCC | ||
13635 | CC="$lt_save_CC" | ||
13636 | + CFLAGS="$lt_save_CFLAGS" | ||
13637 | fi # test "$_lt_disable_F77" != yes | ||
13638 | |||
13639 | AC_LANG_POP | ||
13640 | @@ -6885,7 +7307,9 @@ if test "$_lt_disable_FC" != yes; then | ||
13641 | # Allow CC to be a program name with arguments. | ||
13642 | lt_save_CC="$CC" | ||
13643 | lt_save_GCC=$GCC | ||
13644 | + lt_save_CFLAGS=$CFLAGS | ||
13645 | CC=${FC-"f95"} | ||
13646 | + CFLAGS=$FCFLAGS | ||
13647 | compiler=$CC | ||
13648 | GCC=$ac_cv_fc_compiler_gnu | ||
13649 | |||
13650 | @@ -6941,7 +7365,8 @@ if test "$_lt_disable_FC" != yes; then | ||
13651 | fi # test -n "$compiler" | ||
13652 | |||
13653 | GCC=$lt_save_GCC | ||
13654 | - CC="$lt_save_CC" | ||
13655 | + CC=$lt_save_CC | ||
13656 | + CFLAGS=$lt_save_CFLAGS | ||
13657 | fi # test "$_lt_disable_FC" != yes | ||
13658 | |||
13659 | AC_LANG_POP | ||
13660 | @@ -6978,10 +7403,12 @@ _LT_COMPILER_BOILERPLATE | ||
13661 | _LT_LINKER_BOILERPLATE | ||
13662 | |||
13663 | # Allow CC to be a program name with arguments. | ||
13664 | -lt_save_CC="$CC" | ||
13665 | +lt_save_CC=$CC | ||
13666 | +lt_save_CFLAGS=$CFLAGS | ||
13667 | lt_save_GCC=$GCC | ||
13668 | GCC=yes | ||
13669 | CC=${GCJ-"gcj"} | ||
13670 | +CFLAGS=$GCJFLAGS | ||
13671 | compiler=$CC | ||
13672 | _LT_TAGVAR(compiler, $1)=$CC | ||
13673 | _LT_TAGVAR(LD, $1)="$LD" | ||
13674 | @@ -7012,7 +7439,8 @@ fi | ||
13675 | AC_LANG_RESTORE | ||
13676 | |||
13677 | GCC=$lt_save_GCC | ||
13678 | -CC="$lt_save_CC" | ||
13679 | +CC=$lt_save_CC | ||
13680 | +CFLAGS=$lt_save_CFLAGS | ||
13681 | ])# _LT_LANG_GCJ_CONFIG | ||
13682 | |||
13683 | |||
13684 | @@ -7047,9 +7475,11 @@ _LT_LINKER_BOILERPLATE | ||
13685 | |||
13686 | # Allow CC to be a program name with arguments. | ||
13687 | lt_save_CC="$CC" | ||
13688 | +lt_save_CFLAGS=$CFLAGS | ||
13689 | lt_save_GCC=$GCC | ||
13690 | GCC= | ||
13691 | CC=${RC-"windres"} | ||
13692 | +CFLAGS= | ||
13693 | compiler=$CC | ||
13694 | _LT_TAGVAR(compiler, $1)=$CC | ||
13695 | _LT_CC_BASENAME([$compiler]) | ||
13696 | @@ -7062,7 +7492,8 @@ fi | ||
13697 | |||
13698 | GCC=$lt_save_GCC | ||
13699 | AC_LANG_RESTORE | ||
13700 | -CC="$lt_save_CC" | ||
13701 | +CC=$lt_save_CC | ||
13702 | +CFLAGS=$lt_save_CFLAGS | ||
13703 | ])# _LT_LANG_RC_CONFIG | ||
13704 | |||
13705 | |||
13706 | @@ -7121,6 +7552,15 @@ _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) | ||
13707 | AC_SUBST([OBJDUMP]) | ||
13708 | ]) | ||
13709 | |||
13710 | +# _LT_DECL_DLLTOOL | ||
13711 | +# ---------------- | ||
13712 | +# Ensure DLLTOOL variable is set. | ||
13713 | +m4_defun([_LT_DECL_DLLTOOL], | ||
13714 | +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) | ||
13715 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
13716 | +_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) | ||
13717 | +AC_SUBST([DLLTOOL]) | ||
13718 | +]) | ||
13719 | |||
13720 | # _LT_DECL_SED | ||
13721 | # ------------ | ||
13722 | @@ -7214,8 +7654,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES], | ||
13723 | # Try some XSI features | ||
13724 | xsi_shell=no | ||
13725 | ( _lt_dummy="a/b/c" | ||
13726 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
13727 | - = c,a/b,, \ | ||
13728 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
13729 | + = c,a/b,b/c, \ | ||
13730 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
13731 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
13732 | && xsi_shell=yes | ||
13733 | @@ -7254,206 +7694,162 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl | ||
13734 | ])# _LT_CHECK_SHELL_FEATURES | ||
13735 | |||
13736 | |||
13737 | -# _LT_PROG_XSI_SHELLFNS | ||
13738 | -# --------------------- | ||
13739 | -# Bourne and XSI compatible variants of some useful shell functions. | ||
13740 | -m4_defun([_LT_PROG_XSI_SHELLFNS], | ||
13741 | -[case $xsi_shell in | ||
13742 | - yes) | ||
13743 | - cat << \_LT_EOF >> "$cfgfile" | ||
13744 | - | ||
13745 | -# func_dirname file append nondir_replacement | ||
13746 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
13747 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
13748 | -func_dirname () | ||
13749 | -{ | ||
13750 | - case ${1} in | ||
13751 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
13752 | - * ) func_dirname_result="${3}" ;; | ||
13753 | - esac | ||
13754 | -} | ||
13755 | - | ||
13756 | -# func_basename file | ||
13757 | -func_basename () | ||
13758 | -{ | ||
13759 | - func_basename_result="${1##*/}" | ||
13760 | -} | ||
13761 | - | ||
13762 | -# func_dirname_and_basename file append nondir_replacement | ||
13763 | -# perform func_basename and func_dirname in a single function | ||
13764 | -# call: | ||
13765 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
13766 | -# add APPEND to the result, otherwise set result | ||
13767 | -# to NONDIR_REPLACEMENT. | ||
13768 | -# value returned in "$func_dirname_result" | ||
13769 | -# basename: Compute filename of FILE. | ||
13770 | -# value retuned in "$func_basename_result" | ||
13771 | -# Implementation must be kept synchronized with func_dirname | ||
13772 | -# and func_basename. For efficiency, we do not delegate to | ||
13773 | -# those functions but instead duplicate the functionality here. | ||
13774 | -func_dirname_and_basename () | ||
13775 | -{ | ||
13776 | - case ${1} in | ||
13777 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
13778 | - * ) func_dirname_result="${3}" ;; | ||
13779 | - esac | ||
13780 | - func_basename_result="${1##*/}" | ||
13781 | -} | ||
13782 | - | ||
13783 | -# func_stripname prefix suffix name | ||
13784 | -# strip PREFIX and SUFFIX off of NAME. | ||
13785 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
13786 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
13787 | -# dot (in which case that matches only a dot). | ||
13788 | -func_stripname () | ||
13789 | -{ | ||
13790 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
13791 | - # positional parameters, so assign one to ordinary parameter first. | ||
13792 | - func_stripname_result=${3} | ||
13793 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
13794 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
13795 | -} | ||
13796 | - | ||
13797 | -# func_opt_split | ||
13798 | -func_opt_split () | ||
13799 | -{ | ||
13800 | - func_opt_split_opt=${1%%=*} | ||
13801 | - func_opt_split_arg=${1#*=} | ||
13802 | -} | ||
13803 | - | ||
13804 | -# func_lo2o object | ||
13805 | -func_lo2o () | ||
13806 | -{ | ||
13807 | - case ${1} in | ||
13808 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
13809 | - *) func_lo2o_result=${1} ;; | ||
13810 | - esac | ||
13811 | -} | ||
13812 | - | ||
13813 | -# func_xform libobj-or-source | ||
13814 | -func_xform () | ||
13815 | -{ | ||
13816 | - func_xform_result=${1%.*}.lo | ||
13817 | -} | ||
13818 | - | ||
13819 | -# func_arith arithmetic-term... | ||
13820 | -func_arith () | ||
13821 | -{ | ||
13822 | - func_arith_result=$(( $[*] )) | ||
13823 | -} | ||
13824 | - | ||
13825 | -# func_len string | ||
13826 | -# STRING may not start with a hyphen. | ||
13827 | -func_len () | ||
13828 | -{ | ||
13829 | - func_len_result=${#1} | ||
13830 | -} | ||
13831 | +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) | ||
13832 | +# ------------------------------------------------------ | ||
13833 | +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and | ||
13834 | +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. | ||
13835 | +m4_defun([_LT_PROG_FUNCTION_REPLACE], | ||
13836 | +[dnl { | ||
13837 | +sed -e '/^$1 ()$/,/^} # $1 /c\ | ||
13838 | +$1 ()\ | ||
13839 | +{\ | ||
13840 | +m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) | ||
13841 | +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13842 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13843 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13844 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13845 | +]) | ||
13846 | |||
13847 | -_LT_EOF | ||
13848 | - ;; | ||
13849 | - *) # Bourne compatible functions. | ||
13850 | - cat << \_LT_EOF >> "$cfgfile" | ||
13851 | |||
13852 | -# func_dirname file append nondir_replacement | ||
13853 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
13854 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
13855 | -func_dirname () | ||
13856 | -{ | ||
13857 | - # Extract subdirectory from the argument. | ||
13858 | - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
13859 | - if test "X$func_dirname_result" = "X${1}"; then | ||
13860 | - func_dirname_result="${3}" | ||
13861 | - else | ||
13862 | - func_dirname_result="$func_dirname_result${2}" | ||
13863 | - fi | ||
13864 | -} | ||
13865 | +# _LT_PROG_REPLACE_SHELLFNS | ||
13866 | +# ------------------------- | ||
13867 | +# Replace existing portable implementations of several shell functions with | ||
13868 | +# equivalent extended shell implementations where those features are available.. | ||
13869 | +m4_defun([_LT_PROG_REPLACE_SHELLFNS], | ||
13870 | +[if test x"$xsi_shell" = xyes; then | ||
13871 | + _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl | ||
13872 | + case ${1} in | ||
13873 | + */*) func_dirname_result="${1%/*}${2}" ;; | ||
13874 | + * ) func_dirname_result="${3}" ;; | ||
13875 | + esac]) | ||
13876 | + | ||
13877 | + _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl | ||
13878 | + func_basename_result="${1##*/}"]) | ||
13879 | + | ||
13880 | + _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl | ||
13881 | + case ${1} in | ||
13882 | + */*) func_dirname_result="${1%/*}${2}" ;; | ||
13883 | + * ) func_dirname_result="${3}" ;; | ||
13884 | + esac | ||
13885 | + func_basename_result="${1##*/}"]) | ||
13886 | |||
13887 | -# func_basename file | ||
13888 | -func_basename () | ||
13889 | -{ | ||
13890 | - func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
13891 | -} | ||
13892 | + _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl | ||
13893 | + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
13894 | + # positional parameters, so assign one to ordinary parameter first. | ||
13895 | + func_stripname_result=${3} | ||
13896 | + func_stripname_result=${func_stripname_result#"${1}"} | ||
13897 | + func_stripname_result=${func_stripname_result%"${2}"}]) | ||
13898 | |||
13899 | -dnl func_dirname_and_basename | ||
13900 | -dnl A portable version of this function is already defined in general.m4sh | ||
13901 | -dnl so there is no need for it here. | ||
13902 | + _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl | ||
13903 | + func_split_long_opt_name=${1%%=*} | ||
13904 | + func_split_long_opt_arg=${1#*=}]) | ||
13905 | |||
13906 | -# func_stripname prefix suffix name | ||
13907 | -# strip PREFIX and SUFFIX off of NAME. | ||
13908 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
13909 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
13910 | -# dot (in which case that matches only a dot). | ||
13911 | -# func_strip_suffix prefix name | ||
13912 | -func_stripname () | ||
13913 | -{ | ||
13914 | - case ${2} in | ||
13915 | - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
13916 | - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
13917 | - esac | ||
13918 | -} | ||
13919 | + _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl | ||
13920 | + func_split_short_opt_arg=${1#??} | ||
13921 | + func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) | ||
13922 | |||
13923 | -# sed scripts: | ||
13924 | -my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' | ||
13925 | -my_sed_long_arg='1s/^-[[^=]]*=//' | ||
13926 | + _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl | ||
13927 | + case ${1} in | ||
13928 | + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
13929 | + *) func_lo2o_result=${1} ;; | ||
13930 | + esac]) | ||
13931 | |||
13932 | -# func_opt_split | ||
13933 | -func_opt_split () | ||
13934 | -{ | ||
13935 | - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | ||
13936 | - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | ||
13937 | -} | ||
13938 | + _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) | ||
13939 | |||
13940 | -# func_lo2o object | ||
13941 | -func_lo2o () | ||
13942 | -{ | ||
13943 | - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
13944 | -} | ||
13945 | + _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) | ||
13946 | |||
13947 | -# func_xform libobj-or-source | ||
13948 | -func_xform () | ||
13949 | -{ | ||
13950 | - func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` | ||
13951 | -} | ||
13952 | + _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) | ||
13953 | +fi | ||
13954 | |||
13955 | -# func_arith arithmetic-term... | ||
13956 | -func_arith () | ||
13957 | -{ | ||
13958 | - func_arith_result=`expr "$[@]"` | ||
13959 | -} | ||
13960 | +if test x"$lt_shell_append" = xyes; then | ||
13961 | + _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) | ||
13962 | |||
13963 | -# func_len string | ||
13964 | -# STRING may not start with a hyphen. | ||
13965 | -func_len () | ||
13966 | -{ | ||
13967 | - func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
13968 | -} | ||
13969 | + _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl | ||
13970 | + func_quote_for_eval "${2}" | ||
13971 | +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ | ||
13972 | + eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) | ||
13973 | |||
13974 | -_LT_EOF | ||
13975 | -esac | ||
13976 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
13977 | + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
13978 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13979 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13980 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
13981 | +else | ||
13982 | + # Save a `func_append' function call even when '+=' is not available | ||
13983 | + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
13984 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13985 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13986 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
13987 | +fi | ||
13988 | |||
13989 | -case $lt_shell_append in | ||
13990 | - yes) | ||
13991 | - cat << \_LT_EOF >> "$cfgfile" | ||
13992 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
13993 | + AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) | ||
13994 | +fi | ||
13995 | +]) | ||
13996 | |||
13997 | -# func_append var value | ||
13998 | -# Append VALUE to the end of shell variable VAR. | ||
13999 | -func_append () | ||
14000 | -{ | ||
14001 | - eval "$[1]+=\$[2]" | ||
14002 | -} | ||
14003 | -_LT_EOF | ||
14004 | +# _LT_PATH_CONVERSION_FUNCTIONS | ||
14005 | +# ----------------------------- | ||
14006 | +# Determine which file name conversion functions should be used by | ||
14007 | +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed | ||
14008 | +# for certain cross-compile configurations and native mingw. | ||
14009 | +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], | ||
14010 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
14011 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
14012 | +AC_MSG_CHECKING([how to convert $build file names to $host format]) | ||
14013 | +AC_CACHE_VAL(lt_cv_to_host_file_cmd, | ||
14014 | +[case $host in | ||
14015 | + *-*-mingw* ) | ||
14016 | + case $build in | ||
14017 | + *-*-mingw* ) # actually msys | ||
14018 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
14019 | + ;; | ||
14020 | + *-*-cygwin* ) | ||
14021 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
14022 | + ;; | ||
14023 | + * ) # otherwise, assume *nix | ||
14024 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
14025 | + ;; | ||
14026 | + esac | ||
14027 | ;; | ||
14028 | - *) | ||
14029 | - cat << \_LT_EOF >> "$cfgfile" | ||
14030 | - | ||
14031 | -# func_append var value | ||
14032 | -# Append VALUE to the end of shell variable VAR. | ||
14033 | -func_append () | ||
14034 | -{ | ||
14035 | - eval "$[1]=\$$[1]\$[2]" | ||
14036 | -} | ||
14037 | - | ||
14038 | -_LT_EOF | ||
14039 | + *-*-cygwin* ) | ||
14040 | + case $build in | ||
14041 | + *-*-mingw* ) # actually msys | ||
14042 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
14043 | + ;; | ||
14044 | + *-*-cygwin* ) | ||
14045 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
14046 | + ;; | ||
14047 | + * ) # otherwise, assume *nix | ||
14048 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
14049 | + ;; | ||
14050 | + esac | ||
14051 | ;; | ||
14052 | - esac | ||
14053 | + * ) # unhandled hosts (and "normal" native builds) | ||
14054 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
14055 | + ;; | ||
14056 | +esac | ||
14057 | +]) | ||
14058 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
14059 | +AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) | ||
14060 | +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], | ||
14061 | + [0], [convert $build file names to $host format])dnl | ||
14062 | + | ||
14063 | +AC_MSG_CHECKING([how to convert $build file names to toolchain format]) | ||
14064 | +AC_CACHE_VAL(lt_cv_to_tool_file_cmd, | ||
14065 | +[#assume ordinary cross tools, or native build. | ||
14066 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
14067 | +case $host in | ||
14068 | + *-*-mingw* ) | ||
14069 | + case $build in | ||
14070 | + *-*-mingw* ) # actually msys | ||
14071 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
14072 | + ;; | ||
14073 | + esac | ||
14074 | + ;; | ||
14075 | +esac | ||
14076 | ]) | ||
14077 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
14078 | +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) | ||
14079 | +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], | ||
14080 | + [0], [convert $build files to toolchain format])dnl | ||
14081 | +])# _LT_PATH_CONVERSION_FUNCTIONS | ||
14082 | diff --git a/ltmain.sh b/ltmain.sh | ||
14083 | index 9503ec85d70..70e856e0659 100644 | ||
14084 | --- a/ltmain.sh | ||
14085 | +++ b/ltmain.sh | ||
14086 | @@ -1,10 +1,9 @@ | ||
14087 | -# Generated from ltmain.m4sh. | ||
14088 | |||
14089 | -# libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a | ||
14090 | +# libtool (GNU libtool) 2.4 | ||
14091 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
14092 | |||
14093 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, | ||
14094 | -# 2007, 2008, 2009 Free Software Foundation, Inc. | ||
14095 | +# 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
14096 | # This is free software; see the source for copying conditions. There is NO | ||
14097 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
14098 | |||
14099 | @@ -38,7 +37,6 @@ | ||
14100 | # -n, --dry-run display commands without modifying any files | ||
14101 | # --features display basic configuration information and exit | ||
14102 | # --mode=MODE use operation mode MODE | ||
14103 | -# --no-finish let install mode avoid finish commands | ||
14104 | # --preserve-dup-deps don't remove duplicate dependency libraries | ||
14105 | # --quiet, --silent don't print informational messages | ||
14106 | # --no-quiet, --no-silent | ||
14107 | @@ -71,17 +69,19 @@ | ||
14108 | # compiler: $LTCC | ||
14109 | # compiler flags: $LTCFLAGS | ||
14110 | # linker: $LD (gnu? $with_gnu_ld) | ||
14111 | -# $progname: (GNU libtool 1.3134 2009-11-29) 2.2.7a | ||
14112 | +# $progname: (GNU libtool) 2.4 | ||
14113 | # automake: $automake_version | ||
14114 | # autoconf: $autoconf_version | ||
14115 | # | ||
14116 | # Report bugs to <bug-libtool@gnu.org>. | ||
14117 | +# GNU libtool home page: <http://www.gnu.org/software/libtool/>. | ||
14118 | +# General help using GNU software: <http://www.gnu.org/gethelp/>. | ||
14119 | |||
14120 | PROGRAM=libtool | ||
14121 | PACKAGE=libtool | ||
14122 | -VERSION=2.2.7a | ||
14123 | -TIMESTAMP=" 1.3134 2009-11-29" | ||
14124 | -package_revision=1.3134 | ||
14125 | +VERSION=2.4 | ||
14126 | +TIMESTAMP="" | ||
14127 | +package_revision=1.3293 | ||
14128 | |||
14129 | # Be Bourne compatible | ||
14130 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
14131 | @@ -106,9 +106,6 @@ _LTECHO_EOF' | ||
14132 | } | ||
14133 | |||
14134 | # NLS nuisances: We save the old values to restore during execute mode. | ||
14135 | -# Only set LANG and LC_ALL to C if already set. | ||
14136 | -# These must not be set unconditionally because not all systems understand | ||
14137 | -# e.g. LANG=C (notably SCO). | ||
14138 | lt_user_locale= | ||
14139 | lt_safe_locale= | ||
14140 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES | ||
14141 | @@ -121,15 +118,13 @@ do | ||
14142 | lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" | ||
14143 | fi" | ||
14144 | done | ||
14145 | +LC_ALL=C | ||
14146 | +LANGUAGE=C | ||
14147 | +export LANGUAGE LC_ALL | ||
14148 | |||
14149 | $lt_unset CDPATH | ||
14150 | |||
14151 | |||
14152 | - | ||
14153 | - | ||
14154 | - | ||
14155 | - | ||
14156 | - | ||
14157 | # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh | ||
14158 | # is ksh but when the shell is invoked as "sh" and the current value of | ||
14159 | # the _XPG environment variable is not equal to 1 (one), the special | ||
14160 | @@ -140,7 +135,7 @@ progpath="$0" | ||
14161 | |||
14162 | |||
14163 | : ${CP="cp -f"} | ||
14164 | -: ${ECHO=$as_echo} | ||
14165 | +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} | ||
14166 | : ${EGREP="/bin/grep -E"} | ||
14167 | : ${FGREP="/bin/grep -F"} | ||
14168 | : ${GREP="/bin/grep"} | ||
14169 | @@ -149,7 +144,7 @@ progpath="$0" | ||
14170 | : ${MKDIR="mkdir"} | ||
14171 | : ${MV="mv -f"} | ||
14172 | : ${RM="rm -f"} | ||
14173 | -: ${SED="/mount/endor/wildenhu/local-x86_64/bin/sed"} | ||
14174 | +: ${SED="/bin/sed"} | ||
14175 | : ${SHELL="${CONFIG_SHELL-/bin/sh}"} | ||
14176 | : ${Xsed="$SED -e 1s/^X//"} | ||
14177 | |||
14178 | @@ -169,6 +164,27 @@ IFS=" $lt_nl" | ||
14179 | dirname="s,/[^/]*$,," | ||
14180 | basename="s,^.*/,," | ||
14181 | |||
14182 | +# func_dirname file append nondir_replacement | ||
14183 | +# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
14184 | +# otherwise set result to NONDIR_REPLACEMENT. | ||
14185 | +func_dirname () | ||
14186 | +{ | ||
14187 | + func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
14188 | + if test "X$func_dirname_result" = "X${1}"; then | ||
14189 | + func_dirname_result="${3}" | ||
14190 | + else | ||
14191 | + func_dirname_result="$func_dirname_result${2}" | ||
14192 | + fi | ||
14193 | +} # func_dirname may be replaced by extended shell implementation | ||
14194 | + | ||
14195 | + | ||
14196 | +# func_basename file | ||
14197 | +func_basename () | ||
14198 | +{ | ||
14199 | + func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
14200 | +} # func_basename may be replaced by extended shell implementation | ||
14201 | + | ||
14202 | + | ||
14203 | # func_dirname_and_basename file append nondir_replacement | ||
14204 | # perform func_basename and func_dirname in a single function | ||
14205 | # call: | ||
14206 | @@ -183,17 +199,31 @@ basename="s,^.*/,," | ||
14207 | # those functions but instead duplicate the functionality here. | ||
14208 | func_dirname_and_basename () | ||
14209 | { | ||
14210 | - # Extract subdirectory from the argument. | ||
14211 | - func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` | ||
14212 | - if test "X$func_dirname_result" = "X${1}"; then | ||
14213 | - func_dirname_result="${3}" | ||
14214 | - else | ||
14215 | - func_dirname_result="$func_dirname_result${2}" | ||
14216 | - fi | ||
14217 | - func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` | ||
14218 | -} | ||
14219 | + # Extract subdirectory from the argument. | ||
14220 | + func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` | ||
14221 | + if test "X$func_dirname_result" = "X${1}"; then | ||
14222 | + func_dirname_result="${3}" | ||
14223 | + else | ||
14224 | + func_dirname_result="$func_dirname_result${2}" | ||
14225 | + fi | ||
14226 | + func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` | ||
14227 | +} # func_dirname_and_basename may be replaced by extended shell implementation | ||
14228 | + | ||
14229 | + | ||
14230 | +# func_stripname prefix suffix name | ||
14231 | +# strip PREFIX and SUFFIX off of NAME. | ||
14232 | +# PREFIX and SUFFIX must not contain globbing or regex special | ||
14233 | +# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
14234 | +# dot (in which case that matches only a dot). | ||
14235 | +# func_strip_suffix prefix name | ||
14236 | +func_stripname () | ||
14237 | +{ | ||
14238 | + case ${2} in | ||
14239 | + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
14240 | + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
14241 | + esac | ||
14242 | +} # func_stripname may be replaced by extended shell implementation | ||
14243 | |||
14244 | -# Generated shell functions inserted here. | ||
14245 | |||
14246 | # These SED scripts presuppose an absolute path with a trailing slash. | ||
14247 | pathcar='s,^/\([^/]*\).*$,\1,' | ||
14248 | @@ -376,6 +406,15 @@ sed_quote_subst='s/\([`"$\\]\)/\\\1/g' | ||
14249 | # Same as above, but do not quote variable references. | ||
14250 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
14251 | |||
14252 | +# Sed substitution that turns a string into a regex matching for the | ||
14253 | +# string literally. | ||
14254 | +sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' | ||
14255 | + | ||
14256 | +# Sed substitution that converts a w32 file name or path | ||
14257 | +# which contains forward slashes, into one that contains | ||
14258 | +# (escaped) backslashes. A very naive implementation. | ||
14259 | +lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | ||
14260 | + | ||
14261 | # Re-`\' parameter expansions in output of double_quote_subst that were | ||
14262 | # `\'-ed in input to the same. If an odd number of `\' preceded a '$' | ||
14263 | # in input to double_quote_subst, that '$' was protected from expansion. | ||
14264 | @@ -404,7 +443,7 @@ opt_warning=: | ||
14265 | # name if it has been set yet. | ||
14266 | func_echo () | ||
14267 | { | ||
14268 | - $ECHO "$progname${mode+: }$mode: $*" | ||
14269 | + $ECHO "$progname: ${opt_mode+$opt_mode: }$*" | ||
14270 | } | ||
14271 | |||
14272 | # func_verbose arg... | ||
14273 | @@ -430,14 +469,14 @@ func_echo_all () | ||
14274 | # Echo program name prefixed message to standard error. | ||
14275 | func_error () | ||
14276 | { | ||
14277 | - $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 | ||
14278 | + $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 | ||
14279 | } | ||
14280 | |||
14281 | # func_warning arg... | ||
14282 | # Echo program name prefixed warning message to standard error. | ||
14283 | func_warning () | ||
14284 | { | ||
14285 | - $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 | ||
14286 | + $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 | ||
14287 | |||
14288 | # bash bug again: | ||
14289 | : | ||
14290 | @@ -656,19 +695,35 @@ func_show_eval_locale () | ||
14291 | fi | ||
14292 | } | ||
14293 | |||
14294 | - | ||
14295 | - | ||
14296 | +# func_tr_sh | ||
14297 | +# Turn $1 into a string suitable for a shell variable name. | ||
14298 | +# Result is stored in $func_tr_sh_result. All characters | ||
14299 | +# not in the set a-zA-Z0-9_ are replaced with '_'. Further, | ||
14300 | +# if $1 begins with a digit, a '_' is prepended as well. | ||
14301 | +func_tr_sh () | ||
14302 | +{ | ||
14303 | + case $1 in | ||
14304 | + [0-9]* | *[!a-zA-Z0-9_]*) | ||
14305 | + func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` | ||
14306 | + ;; | ||
14307 | + * ) | ||
14308 | + func_tr_sh_result=$1 | ||
14309 | + ;; | ||
14310 | + esac | ||
14311 | +} | ||
14312 | |||
14313 | |||
14314 | # func_version | ||
14315 | # Echo version message to standard output and exit. | ||
14316 | func_version () | ||
14317 | { | ||
14318 | + $opt_debug | ||
14319 | + | ||
14320 | $SED -n '/(C)/!b go | ||
14321 | :more | ||
14322 | /\./!{ | ||
14323 | N | ||
14324 | - s/\n# // | ||
14325 | + s/\n# / / | ||
14326 | b more | ||
14327 | } | ||
14328 | :go | ||
14329 | @@ -685,7 +740,9 @@ func_version () | ||
14330 | # Echo short help message to standard output and exit. | ||
14331 | func_usage () | ||
14332 | { | ||
14333 | - $SED -n '/^# Usage:/,/^# *-h/ { | ||
14334 | + $opt_debug | ||
14335 | + | ||
14336 | + $SED -n '/^# Usage:/,/^# *.*--help/ { | ||
14337 | s/^# // | ||
14338 | s/^# *$// | ||
14339 | s/\$progname/'$progname'/ | ||
14340 | @@ -701,7 +758,10 @@ func_usage () | ||
14341 | # unless 'noexit' is passed as argument. | ||
14342 | func_help () | ||
14343 | { | ||
14344 | + $opt_debug | ||
14345 | + | ||
14346 | $SED -n '/^# Usage:/,/# Report bugs to/ { | ||
14347 | |||
14348 | s/^# // | ||
14349 | s/^# *$// | ||
14350 | s*\$progname*'$progname'* | ||
14351 | @@ -714,7 +774,11 @@ func_help () | ||
14352 | s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ | ||
14353 | s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ | ||
14354 | p | ||
14355 | - }' < "$progpath" | ||
14356 | + d | ||
14357 | + } | ||
14358 | + /^# .* home page:/b print | ||
14359 | + /^# General help using/b print | ||
14360 | + ' < "$progpath" | ||
14361 | ret=$? | ||
14362 | if test -z "$1"; then | ||
14363 | exit $ret | ||
14364 | @@ -726,12 +790,39 @@ func_help () | ||
14365 | # exit_cmd. | ||
14366 | func_missing_arg () | ||
14367 | { | ||
14368 | - func_error "missing argument for $1" | ||
14369 | + $opt_debug | ||
14370 | + | ||
14371 | + func_error "missing argument for $1." | ||
14372 | exit_cmd=exit | ||
14373 | } | ||
14374 | |||
14375 | -exit_cmd=: | ||
14376 | |||
14377 | +# func_split_short_opt shortopt | ||
14378 | +# Set func_split_short_opt_name and func_split_short_opt_arg shell | ||
14379 | +# variables after splitting SHORTOPT after the 2nd character. | ||
14380 | +func_split_short_opt () | ||
14381 | +{ | ||
14382 | + my_sed_short_opt='1s/^\(..\).*$/\1/;q' | ||
14383 | + my_sed_short_rest='1s/^..\(.*\)$/\1/;q' | ||
14384 | + | ||
14385 | + func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` | ||
14386 | + func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` | ||
14387 | +} # func_split_short_opt may be replaced by extended shell implementation | ||
14388 | + | ||
14389 | + | ||
14390 | +# func_split_long_opt longopt | ||
14391 | +# Set func_split_long_opt_name and func_split_long_opt_arg shell | ||
14392 | +# variables after splitting LONGOPT at the `=' sign. | ||
14393 | +func_split_long_opt () | ||
14394 | +{ | ||
14395 | + my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' | ||
14396 | + my_sed_long_arg='1s/^--[^=]*=//' | ||
14397 | + | ||
14398 | + func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` | ||
14399 | + func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` | ||
14400 | +} # func_split_long_opt may be replaced by extended shell implementation | ||
14401 | + | ||
14402 | +exit_cmd=: | ||
14403 | |||
14404 | |||
14405 | |||
14406 | @@ -741,26 +832,64 @@ magic="%%%MAGIC variable%%%" | ||
14407 | magic_exe="%%%MAGIC EXE variable%%%" | ||
14408 | |||
14409 | # Global variables. | ||
14410 | -# $mode is unset | ||
14411 | nonopt= | ||
14412 | -execute_dlfiles= | ||
14413 | preserve_args= | ||
14414 | lo2o="s/\\.lo\$/.${objext}/" | ||
14415 | o2lo="s/\\.${objext}\$/.lo/" | ||
14416 | extracted_archives= | ||
14417 | extracted_serial=0 | ||
14418 | |||
14419 | -opt_dry_run=false | ||
14420 | -opt_finish=: | ||
14421 | -opt_duplicate_deps=false | ||
14422 | -opt_silent=false | ||
14423 | -opt_debug=: | ||
14424 | - | ||
14425 | # If this variable is set in any of the actions, the command in it | ||
14426 | # will be execed at the end. This prevents here-documents from being | ||
14427 | # left over by shells. | ||
14428 | exec_cmd= | ||
14429 | |||
14430 | +# func_append var value | ||
14431 | +# Append VALUE to the end of shell variable VAR. | ||
14432 | +func_append () | ||
14433 | +{ | ||
14434 | + eval "${1}=\$${1}\${2}" | ||
14435 | +} # func_append may be replaced by extended shell implementation | ||
14436 | + | ||
14437 | +# func_append_quoted var value | ||
14438 | +# Quote VALUE and append to the end of shell variable VAR, separated | ||
14439 | +# by a space. | ||
14440 | +func_append_quoted () | ||
14441 | +{ | ||
14442 | + func_quote_for_eval "${2}" | ||
14443 | + eval "${1}=\$${1}\\ \$func_quote_for_eval_result" | ||
14444 | +} # func_append_quoted may be replaced by extended shell implementation | ||
14445 | + | ||
14446 | + | ||
14447 | +# func_arith arithmetic-term... | ||
14448 | +func_arith () | ||
14449 | +{ | ||
14450 | + func_arith_result=`expr "${@}"` | ||
14451 | +} # func_arith may be replaced by extended shell implementation | ||
14452 | + | ||
14453 | + | ||
14454 | +# func_len string | ||
14455 | +# STRING may not start with a hyphen. | ||
14456 | +func_len () | ||
14457 | +{ | ||
14458 | + func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
14459 | +} # func_len may be replaced by extended shell implementation | ||
14460 | + | ||
14461 | + | ||
14462 | +# func_lo2o object | ||
14463 | +func_lo2o () | ||
14464 | +{ | ||
14465 | + func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
14466 | +} # func_lo2o may be replaced by extended shell implementation | ||
14467 | + | ||
14468 | + | ||
14469 | +# func_xform libobj-or-source | ||
14470 | +func_xform () | ||
14471 | +{ | ||
14472 | + func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
14473 | +} # func_xform may be replaced by extended shell implementation | ||
14474 | + | ||
14475 | + | ||
14476 | # func_fatal_configuration arg... | ||
14477 | # Echo program name prefixed message to standard error, followed by | ||
14478 | # a configuration failure hint, and exit. | ||
14479 | @@ -850,130 +979,204 @@ func_enable_tag () | ||
14480 | esac | ||
14481 | } | ||
14482 | |||
14483 | -# Parse options once, thoroughly. This comes as soon as possible in | ||
14484 | -# the script to make things like `libtool --version' happen quickly. | ||
14485 | +# func_check_version_match | ||
14486 | +# Ensure that we are using m4 macros, and libtool script from the same | ||
14487 | +# release of libtool. | ||
14488 | +func_check_version_match () | ||
14489 | { | ||
14490 | + if test "$package_revision" != "$macro_revision"; then | ||
14491 | + if test "$VERSION" != "$macro_version"; then | ||
14492 | + if test -z "$macro_version"; then | ||
14493 | + cat >&2 <<_LT_EOF | ||
14494 | +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the | ||
14495 | +$progname: definition of this LT_INIT comes from an older release. | ||
14496 | +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION | ||
14497 | +$progname: and run autoconf again. | ||
14498 | +_LT_EOF | ||
14499 | + else | ||
14500 | + cat >&2 <<_LT_EOF | ||
14501 | +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the | ||
14502 | +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. | ||
14503 | +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION | ||
14504 | +$progname: and run autoconf again. | ||
14505 | +_LT_EOF | ||
14506 | + fi | ||
14507 | + else | ||
14508 | + cat >&2 <<_LT_EOF | ||
14509 | +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, | ||
14510 | +$progname: but the definition of this LT_INIT comes from revision $macro_revision. | ||
14511 | +$progname: You should recreate aclocal.m4 with macros from revision $package_revision | ||
14512 | +$progname: of $PACKAGE $VERSION and run autoconf again. | ||
14513 | +_LT_EOF | ||
14514 | + fi | ||
14515 | |||
14516 | - # Shorthand for --mode=foo, only valid as the first argument | ||
14517 | - case $1 in | ||
14518 | - clean|clea|cle|cl) | ||
14519 | - shift; set dummy --mode clean ${1+"$@"}; shift | ||
14520 | - ;; | ||
14521 | - compile|compil|compi|comp|com|co|c) | ||
14522 | - shift; set dummy --mode compile ${1+"$@"}; shift | ||
14523 | - ;; | ||
14524 | - execute|execut|execu|exec|exe|ex|e) | ||
14525 | - shift; set dummy --mode execute ${1+"$@"}; shift | ||
14526 | - ;; | ||
14527 | - finish|finis|fini|fin|fi|f) | ||
14528 | - shift; set dummy --mode finish ${1+"$@"}; shift | ||
14529 | - ;; | ||
14530 | - install|instal|insta|inst|ins|in|i) | ||
14531 | - shift; set dummy --mode install ${1+"$@"}; shift | ||
14532 | - ;; | ||
14533 | - link|lin|li|l) | ||
14534 | - shift; set dummy --mode link ${1+"$@"}; shift | ||
14535 | - ;; | ||
14536 | - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) | ||
14537 | - shift; set dummy --mode uninstall ${1+"$@"}; shift | ||
14538 | - ;; | ||
14539 | - esac | ||
14540 | + exit $EXIT_MISMATCH | ||
14541 | + fi | ||
14542 | +} | ||
14543 | + | ||
14544 | + | ||
14545 | +# Shorthand for --mode=foo, only valid as the first argument | ||
14546 | +case $1 in | ||
14547 | +clean|clea|cle|cl) | ||
14548 | + shift; set dummy --mode clean ${1+"$@"}; shift | ||
14549 | + ;; | ||
14550 | +compile|compil|compi|comp|com|co|c) | ||
14551 | + shift; set dummy --mode compile ${1+"$@"}; shift | ||
14552 | + ;; | ||
14553 | +execute|execut|execu|exec|exe|ex|e) | ||
14554 | + shift; set dummy --mode execute ${1+"$@"}; shift | ||
14555 | + ;; | ||
14556 | +finish|finis|fini|fin|fi|f) | ||
14557 | + shift; set dummy --mode finish ${1+"$@"}; shift | ||
14558 | + ;; | ||
14559 | +install|instal|insta|inst|ins|in|i) | ||
14560 | + shift; set dummy --mode install ${1+"$@"}; shift | ||
14561 | + ;; | ||
14562 | +link|lin|li|l) | ||
14563 | + shift; set dummy --mode link ${1+"$@"}; shift | ||
14564 | + ;; | ||
14565 | +uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) | ||
14566 | + shift; set dummy --mode uninstall ${1+"$@"}; shift | ||
14567 | + ;; | ||
14568 | +esac | ||
14569 | |||
14570 | - # Parse non-mode specific arguments: | ||
14571 | - while test "$#" -gt 0; do | ||
14572 | + | ||
14573 | + | ||
14574 | +# Option defaults: | ||
14575 | +opt_debug=: | ||
14576 | +opt_dry_run=false | ||
14577 | +opt_config=false | ||
14578 | +opt_preserve_dup_deps=false | ||
14579 | +opt_features=false | ||
14580 | +opt_finish=false | ||
14581 | +opt_help=false | ||
14582 | +opt_help_all=false | ||
14583 | +opt_silent=: | ||
14584 | +opt_verbose=: | ||
14585 | +opt_silent=false | ||
14586 | +opt_verbose=false | ||
14587 | + | ||
14588 | + | ||
14589 | +# Parse options once, thoroughly. This comes as soon as possible in the | ||
14590 | +# script to make things like `--version' happen as quickly as we can. | ||
14591 | +{ | ||
14592 | + # this just eases exit handling | ||
14593 | + while test $# -gt 0; do | ||
14594 | opt="$1" | ||
14595 | shift | ||
14596 | - | ||
14597 | case $opt in | ||
14598 | - --config) func_config ;; | ||
14599 | - | ||
14600 | - --debug) preserve_args="$preserve_args $opt" | ||
14601 | + --debug|-x) opt_debug='set -x' | ||
14602 | func_echo "enabling shell trace mode" | ||
14603 | - opt_debug='set -x' | ||
14604 | $opt_debug | ||
14605 | ;; | ||
14606 | - | ||
14607 | - -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break | ||
14608 | - execute_dlfiles="$execute_dlfiles $1" | ||
14609 | - shift | ||
14610 | + --dry-run|--dryrun|-n) | ||
14611 | + opt_dry_run=: | ||
14612 | ;; | ||
14613 | - | ||
14614 | - --dry-run | -n) opt_dry_run=: ;; | ||
14615 | - --features) func_features ;; | ||
14616 | - --finish) mode="finish" ;; | ||
14617 | - --no-finish) opt_finish=false ;; | ||
14618 | - | ||
14619 | - --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break | ||
14620 | - case $1 in | ||
14621 | - # Valid mode arguments: | ||
14622 | - clean) ;; | ||
14623 | - compile) ;; | ||
14624 | - execute) ;; | ||
14625 | - finish) ;; | ||
14626 | - install) ;; | ||
14627 | - link) ;; | ||
14628 | - relink) ;; | ||
14629 | - uninstall) ;; | ||
14630 | - | ||
14631 | - # Catch anything else as an error | ||
14632 | - *) func_error "invalid argument for $opt" | ||
14633 | - exit_cmd=exit | ||
14634 | - break | ||
14635 | - ;; | ||
14636 | - esac | ||
14637 | - | ||
14638 | - mode="$1" | ||
14639 | + --config) | ||
14640 | + opt_config=: | ||
14641 | +func_config | ||
14642 | + ;; | ||
14643 | + --dlopen|-dlopen) | ||
14644 | + optarg="$1" | ||
14645 | + opt_dlopen="${opt_dlopen+$opt_dlopen | ||
14646 | +}$optarg" | ||
14647 | shift | ||
14648 | ;; | ||
14649 | - | ||
14650 | --preserve-dup-deps) | ||
14651 | - opt_duplicate_deps=: ;; | ||
14652 | - | ||
14653 | - --quiet|--silent) preserve_args="$preserve_args $opt" | ||
14654 | - opt_silent=: | ||
14655 | - opt_verbose=false | ||
14656 | + opt_preserve_dup_deps=: | ||
14657 | ;; | ||
14658 | - | ||
14659 | - --no-quiet|--no-silent) | ||
14660 | - preserve_args="$preserve_args $opt" | ||
14661 | - opt_silent=false | ||
14662 | + --features) | ||
14663 | + opt_features=: | ||
14664 | +func_features | ||
14665 | ;; | ||
14666 | - | ||
14667 | - --verbose| -v) preserve_args="$preserve_args $opt" | ||
14668 | + --finish) | ||
14669 | + opt_finish=: | ||
14670 | +set dummy --mode finish ${1+"$@"}; shift | ||
14671 | + ;; | ||
14672 | + --help) | ||
14673 | + opt_help=: | ||
14674 | + ;; | ||
14675 | + --help-all) | ||
14676 | + opt_help_all=: | ||
14677 | +opt_help=': help-all' | ||
14678 | + ;; | ||
14679 | + --mode) | ||
14680 | + test $# = 0 && func_missing_arg $opt && break | ||
14681 | + optarg="$1" | ||
14682 | + opt_mode="$optarg" | ||
14683 | +case $optarg in | ||
14684 | + # Valid mode arguments: | ||
14685 | + clean|compile|execute|finish|install|link|relink|uninstall) ;; | ||
14686 | + | ||
14687 | + # Catch anything else as an error | ||
14688 | + *) func_error "invalid argument for $opt" | ||
14689 | + exit_cmd=exit | ||
14690 | + break | ||
14691 | + ;; | ||
14692 | +esac | ||
14693 | + shift | ||
14694 | + ;; | ||
14695 | + --no-silent|--no-quiet) | ||
14696 | opt_silent=false | ||
14697 | - opt_verbose=: | ||
14698 | +func_append preserve_args " $opt" | ||
14699 | ;; | ||
14700 | - | ||
14701 | - --no-verbose) preserve_args="$preserve_args $opt" | ||
14702 | + --no-verbose) | ||
14703 | opt_verbose=false | ||
14704 | +func_append preserve_args " $opt" | ||
14705 | ;; | ||
14706 | - | ||
14707 | - --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break | ||
14708 | - preserve_args="$preserve_args $opt $1" | ||
14709 | - func_enable_tag "$1" # tagname is set here | ||
14710 | + --silent|--quiet) | ||
14711 | + opt_silent=: | ||
14712 | +func_append preserve_args " $opt" | ||
14713 | + opt_verbose=false | ||
14714 | + ;; | ||
14715 | + --verbose|-v) | ||
14716 | + opt_verbose=: | ||
14717 | +func_append preserve_args " $opt" | ||
14718 | +opt_silent=false | ||
14719 | + ;; | ||
14720 | + --tag) | ||
14721 | + test $# = 0 && func_missing_arg $opt && break | ||
14722 | + optarg="$1" | ||
14723 | + opt_tag="$optarg" | ||
14724 | +func_append preserve_args " $opt $optarg" | ||
14725 | +func_enable_tag "$optarg" | ||
14726 | shift | ||
14727 | ;; | ||
14728 | |||
14729 | + -\?|-h) func_usage ;; | ||
14730 | + --help) func_help ;; | ||
14731 | + --version) func_version ;; | ||
14732 | + | ||
14733 | # Separate optargs to long options: | ||
14734 | - -dlopen=*|--mode=*|--tag=*) | ||
14735 | - func_opt_split "$opt" | ||
14736 | - set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} | ||
14737 | + --*=*) | ||
14738 | + func_split_long_opt "$opt" | ||
14739 | + set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} | ||
14740 | shift | ||
14741 | ;; | ||
14742 | |||
14743 | - -\?|-h) func_usage ;; | ||
14744 | - --help) opt_help=: ;; | ||
14745 | - --help-all) opt_help=': help-all' ;; | ||
14746 | - --version) func_version ;; | ||
14747 | - | ||
14748 | - -*) func_fatal_help "unrecognized option \`$opt'" ;; | ||
14749 | - | ||
14750 | - *) nonopt="$opt" | ||
14751 | - break | ||
14752 | + # Separate non-argument short options: | ||
14753 | + -\?*|-h*|-n*|-v*) | ||
14754 | + func_split_short_opt "$opt" | ||
14755 | + set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} | ||
14756 | + shift | ||
14757 | ;; | ||
14758 | + | ||
14759 | + --) break ;; | ||
14760 | + -*) func_fatal_help "unrecognized option \`$opt'" ;; | ||
14761 | + *) set dummy "$opt" ${1+"$@"}; shift; break ;; | ||
14762 | esac | ||
14763 | done | ||
14764 | |||
14765 | + # Validate options: | ||
14766 | + | ||
14767 | + # save first non-option argument | ||
14768 | + if test "$#" -gt 0; then | ||
14769 | + nonopt="$opt" | ||
14770 | + shift | ||
14771 | + fi | ||
14772 | + | ||
14773 | + # preserve --debug | ||
14774 | + test "$opt_debug" = : || func_append preserve_args " --debug" | ||
14775 | |||
14776 | case $host in | ||
14777 | *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* ) | ||
14778 | @@ -981,82 +1184,44 @@ func_enable_tag () | ||
14779 | opt_duplicate_compiler_generated_deps=: | ||
14780 | ;; | ||
14781 | *) | ||
14782 | - opt_duplicate_compiler_generated_deps=$opt_duplicate_deps | ||
14783 | + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps | ||
14784 | ;; | ||
14785 | esac | ||
14786 | |||
14787 | - # Having warned about all mis-specified options, bail out if | ||
14788 | - # anything was wrong. | ||
14789 | - $exit_cmd $EXIT_FAILURE | ||
14790 | -} | ||
14791 | + $opt_help || { | ||
14792 | + # Sanity checks first: | ||
14793 | + func_check_version_match | ||
14794 | |||
14795 | -# func_check_version_match | ||
14796 | -# Ensure that we are using m4 macros, and libtool script from the same | ||
14797 | -# release of libtool. | ||
14798 | -func_check_version_match () | ||
14799 | -{ | ||
14800 | - if test "$package_revision" != "$macro_revision"; then | ||
14801 | - if test "$VERSION" != "$macro_version"; then | ||
14802 | - if test -z "$macro_version"; then | ||
14803 | - cat >&2 <<_LT_EOF | ||
14804 | -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the | ||
14805 | -$progname: definition of this LT_INIT comes from an older release. | ||
14806 | -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION | ||
14807 | -$progname: and run autoconf again. | ||
14808 | -_LT_EOF | ||
14809 | - else | ||
14810 | - cat >&2 <<_LT_EOF | ||
14811 | -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the | ||
14812 | -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. | ||
14813 | -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION | ||
14814 | -$progname: and run autoconf again. | ||
14815 | -_LT_EOF | ||
14816 | - fi | ||
14817 | - else | ||
14818 | - cat >&2 <<_LT_EOF | ||
14819 | -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, | ||
14820 | -$progname: but the definition of this LT_INIT comes from revision $macro_revision. | ||
14821 | -$progname: You should recreate aclocal.m4 with macros from revision $package_revision | ||
14822 | -$progname: of $PACKAGE $VERSION and run autoconf again. | ||
14823 | -_LT_EOF | ||
14824 | + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | ||
14825 | + func_fatal_configuration "not configured to build any kind of library" | ||
14826 | fi | ||
14827 | |||
14828 | - exit $EXIT_MISMATCH | ||
14829 | - fi | ||
14830 | -} | ||
14831 | - | ||
14832 | + # Darwin sucks | ||
14833 | + eval std_shrext=\"$shrext_cmds\" | ||
14834 | |||
14835 | -## ----------- ## | ||
14836 | -## Main. ## | ||
14837 | -## ----------- ## | ||
14838 | - | ||
14839 | -$opt_help || { | ||
14840 | - # Sanity checks first: | ||
14841 | - func_check_version_match | ||
14842 | - | ||
14843 | - if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | ||
14844 | - func_fatal_configuration "not configured to build any kind of library" | ||
14845 | - fi | ||
14846 | + # Only execute mode is allowed to have -dlopen flags. | ||
14847 | + if test -n "$opt_dlopen" && test "$opt_mode" != execute; then | ||
14848 | + func_error "unrecognized option \`-dlopen'" | ||
14849 | + $ECHO "$help" 1>&2 | ||
14850 | + exit $EXIT_FAILURE | ||
14851 | + fi | ||
14852 | |||
14853 | - test -z "$mode" && func_fatal_error "error: you must specify a MODE." | ||
14854 | + # Change the help message to a mode-specific one. | ||
14855 | + generic_help="$help" | ||
14856 | + help="Try \`$progname --help --mode=$opt_mode' for more information." | ||
14857 | + } | ||
14858 | |||
14859 | |||
14860 | - # Darwin sucks | ||
14861 | - eval "std_shrext=\"$shrext_cmds\"" | ||
14862 | + # Bail if the options were screwed | ||
14863 | + $exit_cmd $EXIT_FAILURE | ||
14864 | +} | ||
14865 | |||
14866 | |||
14867 | - # Only execute mode is allowed to have -dlopen flags. | ||
14868 | - if test -n "$execute_dlfiles" && test "$mode" != execute; then | ||
14869 | - func_error "unrecognized option \`-dlopen'" | ||
14870 | - $ECHO "$help" 1>&2 | ||
14871 | - exit $EXIT_FAILURE | ||
14872 | - fi | ||
14873 | |||
14874 | - # Change the help message to a mode-specific one. | ||
14875 | - generic_help="$help" | ||
14876 | - help="Try \`$progname --help --mode=$mode' for more information." | ||
14877 | -} | ||
14878 | |||
14879 | +## ----------- ## | ||
14880 | +## Main. ## | ||
14881 | +## ----------- ## | ||
14882 | |||
14883 | # func_lalib_p file | ||
14884 | # True iff FILE is a libtool `.la' library or `.lo' object file. | ||
14885 | @@ -1121,12 +1286,9 @@ func_ltwrapper_executable_p () | ||
14886 | # temporary ltwrapper_script. | ||
14887 | func_ltwrapper_scriptname () | ||
14888 | { | ||
14889 | - func_ltwrapper_scriptname_result="" | ||
14890 | - if func_ltwrapper_executable_p "$1"; then | ||
14891 | - func_dirname_and_basename "$1" "" "." | ||
14892 | - func_stripname '' '.exe' "$func_basename_result" | ||
14893 | - func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" | ||
14894 | - fi | ||
14895 | + func_dirname_and_basename "$1" "" "." | ||
14896 | + func_stripname '' '.exe' "$func_basename_result" | ||
14897 | + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" | ||
14898 | } | ||
14899 | |||
14900 | # func_ltwrapper_p file | ||
14901 | @@ -1149,7 +1311,7 @@ func_execute_cmds () | ||
14902 | save_ifs=$IFS; IFS='~' | ||
14903 | for cmd in $1; do | ||
14904 | IFS=$save_ifs | ||
14905 | - eval "cmd=\"$cmd\"" | ||
14906 | + eval cmd=\"$cmd\" | ||
14907 | func_show_eval "$cmd" "${2-:}" | ||
14908 | done | ||
14909 | IFS=$save_ifs | ||
14910 | @@ -1172,6 +1334,37 @@ func_source () | ||
14911 | } | ||
14912 | |||
14913 | |||
14914 | +# func_resolve_sysroot PATH | ||
14915 | +# Replace a leading = in PATH with a sysroot. Store the result into | ||
14916 | +# func_resolve_sysroot_result | ||
14917 | +func_resolve_sysroot () | ||
14918 | +{ | ||
14919 | + func_resolve_sysroot_result=$1 | ||
14920 | + case $func_resolve_sysroot_result in | ||
14921 | + =*) | ||
14922 | + func_stripname '=' '' "$func_resolve_sysroot_result" | ||
14923 | + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result | ||
14924 | + ;; | ||
14925 | + esac | ||
14926 | +} | ||
14927 | + | ||
14928 | +# func_replace_sysroot PATH | ||
14929 | +# If PATH begins with the sysroot, replace it with = and | ||
14930 | +# store the result into func_replace_sysroot_result. | ||
14931 | +func_replace_sysroot () | ||
14932 | +{ | ||
14933 | + case "$lt_sysroot:$1" in | ||
14934 | + ?*:"$lt_sysroot"*) | ||
14935 | + func_stripname "$lt_sysroot" '' "$1" | ||
14936 | + func_replace_sysroot_result="=$func_stripname_result" | ||
14937 | + ;; | ||
14938 | + *) | ||
14939 | + # Including no sysroot. | ||
14940 | + func_replace_sysroot_result=$1 | ||
14941 | + ;; | ||
14942 | + esac | ||
14943 | +} | ||
14944 | + | ||
14945 | # func_infer_tag arg | ||
14946 | # Infer tagged configuration to use if any are available and | ||
14947 | # if one wasn't chosen via the "--tag" command line option. | ||
14948 | @@ -1184,8 +1377,7 @@ func_infer_tag () | ||
14949 | if test -n "$available_tags" && test -z "$tagname"; then | ||
14950 | CC_quoted= | ||
14951 | for arg in $CC; do | ||
14952 | - func_quote_for_eval "$arg" | ||
14953 | - CC_quoted="$CC_quoted $func_quote_for_eval_result" | ||
14954 | + func_append_quoted CC_quoted "$arg" | ||
14955 | done | ||
14956 | CC_expanded=`func_echo_all $CC` | ||
14957 | CC_quoted_expanded=`func_echo_all $CC_quoted` | ||
14958 | @@ -1204,8 +1396,7 @@ func_infer_tag () | ||
14959 | CC_quoted= | ||
14960 | for arg in $CC; do | ||
14961 | # Double-quote args containing other shell metacharacters. | ||
14962 | - func_quote_for_eval "$arg" | ||
14963 | - CC_quoted="$CC_quoted $func_quote_for_eval_result" | ||
14964 | + func_append_quoted CC_quoted "$arg" | ||
14965 | done | ||
14966 | CC_expanded=`func_echo_all $CC` | ||
14967 | CC_quoted_expanded=`func_echo_all $CC_quoted` | ||
14968 | @@ -1274,6 +1465,486 @@ EOF | ||
14969 | } | ||
14970 | } | ||
14971 | |||
14972 | + | ||
14973 | +################################################## | ||
14974 | +# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS # | ||
14975 | +################################################## | ||
14976 | + | ||
14977 | +# func_convert_core_file_wine_to_w32 ARG | ||
14978 | +# Helper function used by file name conversion functions when $build is *nix, | ||
14979 | +# and $host is mingw, cygwin, or some other w32 environment. Relies on a | ||
14980 | +# correctly configured wine environment available, with the winepath program | ||
14981 | +# in $build's $PATH. | ||
14982 | +# | ||
14983 | +# ARG is the $build file name to be converted to w32 format. | ||
14984 | +# Result is available in $func_convert_core_file_wine_to_w32_result, and will | ||
14985 | +# be empty on error (or when ARG is empty) | ||
14986 | +func_convert_core_file_wine_to_w32 () | ||
14987 | +{ | ||
14988 | + $opt_debug | ||
14989 | + func_convert_core_file_wine_to_w32_result="$1" | ||
14990 | + if test -n "$1"; then | ||
14991 | + # Unfortunately, winepath does not exit with a non-zero error code, so we | ||
14992 | + # are forced to check the contents of stdout. On the other hand, if the | ||
14993 | + # command is not found, the shell will set an exit code of 127 and print | ||
14994 | + # *an error message* to stdout. So we must check for both error code of | ||
14995 | + # zero AND non-empty stdout, which explains the odd construction: | ||
14996 | + func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null` | ||
14997 | + if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then | ||
14998 | + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | | ||
14999 | + $SED -e "$lt_sed_naive_backslashify"` | ||
15000 | + else | ||
15001 | + func_convert_core_file_wine_to_w32_result= | ||
15002 | + fi | ||
15003 | + fi | ||
15004 | +} | ||
15005 | +# end: func_convert_core_file_wine_to_w32 | ||
15006 | + | ||
15007 | + | ||
15008 | +# func_convert_core_path_wine_to_w32 ARG | ||
15009 | +# Helper function used by path conversion functions when $build is *nix, and | ||
15010 | +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly | ||
15011 | +# configured wine environment available, with the winepath program in $build's | ||
15012 | +# $PATH. Assumes ARG has no leading or trailing path separator characters. | ||
15013 | +# | ||
15014 | +# ARG is path to be converted from $build format to win32. | ||
15015 | +# Result is available in $func_convert_core_path_wine_to_w32_result. | ||
15016 | +# Unconvertible file (directory) names in ARG are skipped; if no directory names | ||
15017 | +# are convertible, then the result may be empty. | ||
15018 | +func_convert_core_path_wine_to_w32 () | ||
15019 | +{ | ||
15020 | + $opt_debug | ||
15021 | + # unfortunately, winepath doesn't convert paths, only file names | ||
15022 | + func_convert_core_path_wine_to_w32_result="" | ||
15023 | + if test -n "$1"; then | ||
15024 | + oldIFS=$IFS | ||
15025 | + IFS=: | ||
15026 | + for func_convert_core_path_wine_to_w32_f in $1; do | ||
15027 | + IFS=$oldIFS | ||
15028 | + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" | ||
15029 | + if test -n "$func_convert_core_file_wine_to_w32_result" ; then | ||
15030 | + if test -z "$func_convert_core_path_wine_to_w32_result"; then | ||
15031 | + func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" | ||
15032 | + else | ||
15033 | + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" | ||
15034 | + fi | ||
15035 | + fi | ||
15036 | + done | ||
15037 | + IFS=$oldIFS | ||
15038 | + fi | ||
15039 | +} | ||
15040 | +# end: func_convert_core_path_wine_to_w32 | ||
15041 | + | ||
15042 | + | ||
15043 | +# func_cygpath ARGS... | ||
15044 | +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when | ||
15045 | +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) | ||
15046 | +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or | ||
15047 | +# (2), returns the Cygwin file name or path in func_cygpath_result (input | ||
15048 | +# file name or path is assumed to be in w32 format, as previously converted | ||
15049 | +# from $build's *nix or MSYS format). In case (3), returns the w32 file name | ||
15050 | +# or path in func_cygpath_result (input file name or path is assumed to be in | ||
15051 | +# Cygwin format). Returns an empty string on error. | ||
15052 | +# | ||
15053 | +# ARGS are passed to cygpath, with the last one being the file name or path to | ||
15054 | +# be converted. | ||
15055 | +# | ||
15056 | +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH | ||
15057 | +# environment variable; do not put it in $PATH. | ||
15058 | +func_cygpath () | ||
15059 | +{ | ||
15060 | + $opt_debug | ||
15061 | + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then | ||
15062 | + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` | ||
15063 | + if test "$?" -ne 0; then | ||
15064 | + # on failure, ensure result is empty | ||
15065 | + func_cygpath_result= | ||
15066 | + fi | ||
15067 | + else | ||
15068 | + func_cygpath_result= | ||
15069 | + func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" | ||
15070 | + fi | ||
15071 | +} | ||
15072 | +#end: func_cygpath | ||
15073 | + | ||
15074 | + | ||
15075 | +# func_convert_core_msys_to_w32 ARG | ||
15076 | +# Convert file name or path ARG from MSYS format to w32 format. Return | ||
15077 | +# result in func_convert_core_msys_to_w32_result. | ||
15078 | +func_convert_core_msys_to_w32 () | ||
15079 | +{ | ||
15080 | + $opt_debug | ||
15081 | + # awkward: cmd appends spaces to result | ||
15082 | + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | | ||
15083 | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | ||
15084 | +} | ||
15085 | +#end: func_convert_core_msys_to_w32 | ||
15086 | + | ||
15087 | + | ||
15088 | +# func_convert_file_check ARG1 ARG2 | ||
15089 | +# Verify that ARG1 (a file name in $build format) was converted to $host | ||
15090 | +# format in ARG2. Otherwise, emit an error message, but continue (resetting | ||
15091 | +# func_to_host_file_result to ARG1). | ||
15092 | +func_convert_file_check () | ||
15093 | +{ | ||
15094 | + $opt_debug | ||
15095 | + if test -z "$2" && test -n "$1" ; then | ||
15096 | + func_error "Could not determine host file name corresponding to" | ||
15097 | + func_error " \`$1'" | ||
15098 | + func_error "Continuing, but uninstalled executables may not work." | ||
15099 | + # Fallback: | ||
15100 | + func_to_host_file_result="$1" | ||
15101 | + fi | ||
15102 | +} | ||
15103 | +# end func_convert_file_check | ||
15104 | + | ||
15105 | + | ||
15106 | +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH | ||
15107 | +# Verify that FROM_PATH (a path in $build format) was converted to $host | ||
15108 | +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting | ||
15109 | +# func_to_host_file_result to a simplistic fallback value (see below). | ||
15110 | +func_convert_path_check () | ||
15111 | +{ | ||
15112 | + $opt_debug | ||
15113 | + if test -z "$4" && test -n "$3"; then | ||
15114 | + func_error "Could not determine the host path corresponding to" | ||
15115 | + func_error " \`$3'" | ||
15116 | + func_error "Continuing, but uninstalled executables may not work." | ||
15117 | + # Fallback. This is a deliberately simplistic "conversion" and | ||
15118 | + # should not be "improved". See libtool.info. | ||
15119 | + if test "x$1" != "x$2"; then | ||
15120 | + lt_replace_pathsep_chars="s|$1|$2|g" | ||
15121 | + func_to_host_path_result=`echo "$3" | | ||
15122 | + $SED -e "$lt_replace_pathsep_chars"` | ||
15123 | + else | ||
15124 | + func_to_host_path_result="$3" | ||
15125 | + fi | ||
15126 | + fi | ||
15127 | +} | ||
15128 | +# end func_convert_path_check | ||
15129 | + | ||
15130 | + | ||
15131 | +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG | ||
15132 | +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT | ||
15133 | +# and appending REPL if ORIG matches BACKPAT. | ||
15134 | +func_convert_path_front_back_pathsep () | ||
15135 | +{ | ||
15136 | + $opt_debug | ||
15137 | + case $4 in | ||
15138 | + $1 ) func_to_host_path_result="$3$func_to_host_path_result" | ||
15139 | + ;; | ||
15140 | + esac | ||
15141 | + case $4 in | ||
15142 | + $2 ) func_append func_to_host_path_result "$3" | ||
15143 | + ;; | ||
15144 | + esac | ||
15145 | +} | ||
15146 | +# end func_convert_path_front_back_pathsep | ||
15147 | + | ||
15148 | + | ||
15149 | +################################################## | ||
15150 | +# $build to $host FILE NAME CONVERSION FUNCTIONS # | ||
15151 | +################################################## | ||
15152 | +# invoked via `$to_host_file_cmd ARG' | ||
15153 | +# | ||
15154 | +# In each case, ARG is the path to be converted from $build to $host format. | ||
15155 | +# Result will be available in $func_to_host_file_result. | ||
15156 | + | ||
15157 | + | ||
15158 | +# func_to_host_file ARG | ||
15159 | +# Converts the file name ARG from $build format to $host format. Return result | ||
15160 | +# in func_to_host_file_result. | ||
15161 | +func_to_host_file () | ||
15162 | +{ | ||
15163 | + $opt_debug | ||
15164 | + $to_host_file_cmd "$1" | ||
15165 | +} | ||
15166 | +# end func_to_host_file | ||
15167 | + | ||
15168 | + | ||
15169 | +# func_to_tool_file ARG LAZY | ||
15170 | +# converts the file name ARG from $build format to toolchain format. Return | ||
15171 | +# result in func_to_tool_file_result. If the conversion in use is listed | ||
15172 | +# in (the comma separated) LAZY, no conversion takes place. | ||
15173 | +func_to_tool_file () | ||
15174 | +{ | ||
15175 | + $opt_debug | ||
15176 | + case ,$2, in | ||
15177 | + *,"$to_tool_file_cmd",*) | ||
15178 | + func_to_tool_file_result=$1 | ||
15179 | + ;; | ||
15180 | + *) | ||
15181 | + $to_tool_file_cmd "$1" | ||
15182 | + func_to_tool_file_result=$func_to_host_file_result | ||
15183 | + ;; | ||
15184 | + esac | ||
15185 | +} | ||
15186 | +# end func_to_tool_file | ||
15187 | + | ||
15188 | + | ||
15189 | +# func_convert_file_noop ARG | ||
15190 | +# Copy ARG to func_to_host_file_result. | ||
15191 | +func_convert_file_noop () | ||
15192 | +{ | ||
15193 | + func_to_host_file_result="$1" | ||
15194 | +} | ||
15195 | +# end func_convert_file_noop | ||
15196 | + | ||
15197 | + | ||
15198 | +# func_convert_file_msys_to_w32 ARG | ||
15199 | +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic | ||
15200 | +# conversion to w32 is not available inside the cwrapper. Returns result in | ||
15201 | +# func_to_host_file_result. | ||
15202 | +func_convert_file_msys_to_w32 () | ||
15203 | +{ | ||
15204 | + $opt_debug | ||
15205 | + func_to_host_file_result="$1" | ||
15206 | + if test -n "$1"; then | ||
15207 | + func_convert_core_msys_to_w32 "$1" | ||
15208 | + func_to_host_file_result="$func_convert_core_msys_to_w32_result" | ||
15209 | + fi | ||
15210 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
15211 | +} | ||
15212 | +# end func_convert_file_msys_to_w32 | ||
15213 | + | ||
15214 | + | ||
15215 | +# func_convert_file_cygwin_to_w32 ARG | ||
15216 | +# Convert file name ARG from Cygwin to w32 format. Returns result in | ||
15217 | +# func_to_host_file_result. | ||
15218 | +func_convert_file_cygwin_to_w32 () | ||
15219 | +{ | ||
15220 | + $opt_debug | ||
15221 | + func_to_host_file_result="$1" | ||
15222 | + if test -n "$1"; then | ||
15223 | + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use | ||
15224 | + # LT_CYGPATH in this case. | ||
15225 | + func_to_host_file_result=`cygpath -m "$1"` | ||
15226 | + fi | ||
15227 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
15228 | +} | ||
15229 | +# end func_convert_file_cygwin_to_w32 | ||
15230 | + | ||
15231 | + | ||
15232 | +# func_convert_file_nix_to_w32 ARG | ||
15233 | +# Convert file name ARG from *nix to w32 format. Requires a wine environment | ||
15234 | +# and a working winepath. Returns result in func_to_host_file_result. | ||
15235 | +func_convert_file_nix_to_w32 () | ||
15236 | +{ | ||
15237 | + $opt_debug | ||
15238 | + func_to_host_file_result="$1" | ||
15239 | + if test -n "$1"; then | ||
15240 | + func_convert_core_file_wine_to_w32 "$1" | ||
15241 | + func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" | ||
15242 | + fi | ||
15243 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
15244 | +} | ||
15245 | +# end func_convert_file_nix_to_w32 | ||
15246 | + | ||
15247 | + | ||
15248 | +# func_convert_file_msys_to_cygwin ARG | ||
15249 | +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. | ||
15250 | +# Returns result in func_to_host_file_result. | ||
15251 | +func_convert_file_msys_to_cygwin () | ||
15252 | +{ | ||
15253 | + $opt_debug | ||
15254 | + func_to_host_file_result="$1" | ||
15255 | + if test -n "$1"; then | ||
15256 | + func_convert_core_msys_to_w32 "$1" | ||
15257 | + func_cygpath -u "$func_convert_core_msys_to_w32_result" | ||
15258 | + func_to_host_file_result="$func_cygpath_result" | ||
15259 | + fi | ||
15260 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
15261 | +} | ||
15262 | +# end func_convert_file_msys_to_cygwin | ||
15263 | + | ||
15264 | + | ||
15265 | +# func_convert_file_nix_to_cygwin ARG | ||
15266 | +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed | ||
15267 | +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result | ||
15268 | +# in func_to_host_file_result. | ||
15269 | +func_convert_file_nix_to_cygwin () | ||
15270 | +{ | ||
15271 | + $opt_debug | ||
15272 | + func_to_host_file_result="$1" | ||
15273 | + if test -n "$1"; then | ||
15274 | + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. | ||
15275 | + func_convert_core_file_wine_to_w32 "$1" | ||
15276 | + func_cygpath -u "$func_convert_core_file_wine_to_w32_result" | ||
15277 | + func_to_host_file_result="$func_cygpath_result" | ||
15278 | + fi | ||
15279 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
15280 | +} | ||
15281 | +# end func_convert_file_nix_to_cygwin | ||
15282 | + | ||
15283 | + | ||
15284 | +############################################# | ||
15285 | +# $build to $host PATH CONVERSION FUNCTIONS # | ||
15286 | +############################################# | ||
15287 | +# invoked via `$to_host_path_cmd ARG' | ||
15288 | +# | ||
15289 | +# In each case, ARG is the path to be converted from $build to $host format. | ||
15290 | +# The result will be available in $func_to_host_path_result. | ||
15291 | +# | ||
15292 | +# Path separators are also converted from $build format to $host format. If | ||
15293 | +# ARG begins or ends with a path separator character, it is preserved (but | ||
15294 | +# converted to $host format) on output. | ||
15295 | +# | ||
15296 | +# All path conversion functions are named using the following convention: | ||
15297 | +# file name conversion function : func_convert_file_X_to_Y () | ||
15298 | +# path conversion function : func_convert_path_X_to_Y () | ||
15299 | +# where, for any given $build/$host combination the 'X_to_Y' value is the | ||
15300 | +# same. If conversion functions are added for new $build/$host combinations, | ||
15301 | +# the two new functions must follow this pattern, or func_init_to_host_path_cmd | ||
15302 | +# will break. | ||
15303 | + | ||
15304 | + | ||
15305 | +# func_init_to_host_path_cmd | ||
15306 | +# Ensures that function "pointer" variable $to_host_path_cmd is set to the | ||
15307 | +# appropriate value, based on the value of $to_host_file_cmd. | ||
15308 | +to_host_path_cmd= | ||
15309 | +func_init_to_host_path_cmd () | ||
15310 | +{ | ||
15311 | + $opt_debug | ||
15312 | + if test -z "$to_host_path_cmd"; then | ||
15313 | + func_stripname 'func_convert_file_' '' "$to_host_file_cmd" | ||
15314 | + to_host_path_cmd="func_convert_path_${func_stripname_result}" | ||
15315 | + fi | ||
15316 | +} | ||
15317 | + | ||
15318 | + | ||
15319 | +# func_to_host_path ARG | ||
15320 | +# Converts the path ARG from $build format to $host format. Return result | ||
15321 | +# in func_to_host_path_result. | ||
15322 | +func_to_host_path () | ||
15323 | +{ | ||
15324 | + $opt_debug | ||
15325 | + func_init_to_host_path_cmd | ||
15326 | + $to_host_path_cmd "$1" | ||
15327 | +} | ||
15328 | +# end func_to_host_path | ||
15329 | + | ||
15330 | + | ||
15331 | +# func_convert_path_noop ARG | ||
15332 | +# Copy ARG to func_to_host_path_result. | ||
15333 | +func_convert_path_noop () | ||
15334 | +{ | ||
15335 | + func_to_host_path_result="$1" | ||
15336 | +} | ||
15337 | +# end func_convert_path_noop | ||
15338 | + | ||
15339 | + | ||
15340 | +# func_convert_path_msys_to_w32 ARG | ||
15341 | +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic | ||
15342 | +# conversion to w32 is not available inside the cwrapper. Returns result in | ||
15343 | +# func_to_host_path_result. | ||
15344 | +func_convert_path_msys_to_w32 () | ||
15345 | +{ | ||
15346 | + $opt_debug | ||
15347 | + func_to_host_path_result="$1" | ||
15348 | + if test -n "$1"; then | ||
15349 | + # Remove leading and trailing path separator characters from ARG. MSYS | ||
15350 | + # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; | ||
15351 | + # and winepath ignores them completely. | ||
15352 | + func_stripname : : "$1" | ||
15353 | + func_to_host_path_tmp1=$func_stripname_result | ||
15354 | + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" | ||
15355 | + func_to_host_path_result="$func_convert_core_msys_to_w32_result" | ||
15356 | + func_convert_path_check : ";" \ | ||
15357 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
15358 | + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | ||
15359 | + fi | ||
15360 | +} | ||
15361 | +# end func_convert_path_msys_to_w32 | ||
15362 | + | ||
15363 | + | ||
15364 | +# func_convert_path_cygwin_to_w32 ARG | ||
15365 | +# Convert path ARG from Cygwin to w32 format. Returns result in | ||
15366 | +# func_to_host_file_result. | ||
15367 | +func_convert_path_cygwin_to_w32 () | ||
15368 | +{ | ||
15369 | + $opt_debug | ||
15370 | + func_to_host_path_result="$1" | ||
15371 | + if test -n "$1"; then | ||
15372 | + # See func_convert_path_msys_to_w32: | ||
15373 | + func_stripname : : "$1" | ||
15374 | + func_to_host_path_tmp1=$func_stripname_result | ||
15375 | + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` | ||
15376 | + func_convert_path_check : ";" \ | ||
15377 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
15378 | + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | ||
15379 | + fi | ||
15380 | +} | ||
15381 | +# end func_convert_path_cygwin_to_w32 | ||
15382 | + | ||
15383 | + | ||
15384 | +# func_convert_path_nix_to_w32 ARG | ||
15385 | +# Convert path ARG from *nix to w32 format. Requires a wine environment and | ||
15386 | +# a working winepath. Returns result in func_to_host_file_result. | ||
15387 | +func_convert_path_nix_to_w32 () | ||
15388 | +{ | ||
15389 | + $opt_debug | ||
15390 | + func_to_host_path_result="$1" | ||
15391 | + if test -n "$1"; then | ||
15392 | + # See func_convert_path_msys_to_w32: | ||
15393 | + func_stripname : : "$1" | ||
15394 | + func_to_host_path_tmp1=$func_stripname_result | ||
15395 | + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" | ||
15396 | + func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" | ||
15397 | + func_convert_path_check : ";" \ | ||
15398 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
15399 | + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | ||
15400 | + fi | ||
15401 | +} | ||
15402 | +# end func_convert_path_nix_to_w32 | ||
15403 | + | ||
15404 | + | ||
15405 | +# func_convert_path_msys_to_cygwin ARG | ||
15406 | +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. | ||
15407 | +# Returns result in func_to_host_file_result. | ||
15408 | +func_convert_path_msys_to_cygwin () | ||
15409 | +{ | ||
15410 | + $opt_debug | ||
15411 | + func_to_host_path_result="$1" | ||
15412 | + if test -n "$1"; then | ||
15413 | + # See func_convert_path_msys_to_w32: | ||
15414 | + func_stripname : : "$1" | ||
15415 | + func_to_host_path_tmp1=$func_stripname_result | ||
15416 | + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" | ||
15417 | + func_cygpath -u -p "$func_convert_core_msys_to_w32_result" | ||
15418 | + func_to_host_path_result="$func_cygpath_result" | ||
15419 | + func_convert_path_check : : \ | ||
15420 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
15421 | + func_convert_path_front_back_pathsep ":*" "*:" : "$1" | ||
15422 | + fi | ||
15423 | +} | ||
15424 | +# end func_convert_path_msys_to_cygwin | ||
15425 | + | ||
15426 | + | ||
15427 | +# func_convert_path_nix_to_cygwin ARG | ||
15428 | +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a | ||
15429 | +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in | ||
15430 | +# func_to_host_file_result. | ||
15431 | +func_convert_path_nix_to_cygwin () | ||
15432 | +{ | ||
15433 | + $opt_debug | ||
15434 | + func_to_host_path_result="$1" | ||
15435 | + if test -n "$1"; then | ||
15436 | + # Remove leading and trailing path separator characters from | ||
15437 | + # ARG. msys behavior is inconsistent here, cygpath turns them | ||
15438 | + # into '.;' and ';.', and winepath ignores them completely. | ||
15439 | + func_stripname : : "$1" | ||
15440 | + func_to_host_path_tmp1=$func_stripname_result | ||
15441 | + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" | ||
15442 | + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" | ||
15443 | + func_to_host_path_result="$func_cygpath_result" | ||
15444 | + func_convert_path_check : : \ | ||
15445 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
15446 | + func_convert_path_front_back_pathsep ":*" "*:" : "$1" | ||
15447 | + fi | ||
15448 | +} | ||
15449 | +# end func_convert_path_nix_to_cygwin | ||
15450 | + | ||
15451 | + | ||
15452 | # func_mode_compile arg... | ||
15453 | func_mode_compile () | ||
15454 | { | ||
15455 | @@ -1314,12 +1985,12 @@ func_mode_compile () | ||
15456 | ;; | ||
15457 | |||
15458 | -pie | -fpie | -fPIE) | ||
15459 | - pie_flag="$pie_flag $arg" | ||
15460 | + func_append pie_flag " $arg" | ||
15461 | continue | ||
15462 | ;; | ||
15463 | |||
15464 | -shared | -static | -prefer-pic | -prefer-non-pic) | ||
15465 | - later="$later $arg" | ||
15466 | + func_append later " $arg" | ||
15467 | continue | ||
15468 | ;; | ||
15469 | |||
15470 | @@ -1340,15 +2011,14 @@ func_mode_compile () | ||
15471 | save_ifs="$IFS"; IFS=',' | ||
15472 | for arg in $args; do | ||
15473 | IFS="$save_ifs" | ||
15474 | - func_quote_for_eval "$arg" | ||
15475 | - lastarg="$lastarg $func_quote_for_eval_result" | ||
15476 | + func_append_quoted lastarg "$arg" | ||
15477 | done | ||
15478 | IFS="$save_ifs" | ||
15479 | func_stripname ' ' '' "$lastarg" | ||
15480 | lastarg=$func_stripname_result | ||
15481 | |||
15482 | # Add the arguments to base_compile. | ||
15483 | - base_compile="$base_compile $lastarg" | ||
15484 | + func_append base_compile " $lastarg" | ||
15485 | continue | ||
15486 | ;; | ||
15487 | |||
15488 | @@ -1364,8 +2034,7 @@ func_mode_compile () | ||
15489 | esac # case $arg_mode | ||
15490 | |||
15491 | # Aesthetically quote the previous argument. | ||
15492 | - func_quote_for_eval "$lastarg" | ||
15493 | - base_compile="$base_compile $func_quote_for_eval_result" | ||
15494 | + func_append_quoted base_compile "$lastarg" | ||
15495 | done # for arg | ||
15496 | |||
15497 | case $arg_mode in | ||
15498 | @@ -1496,17 +2165,16 @@ compiler." | ||
15499 | $opt_dry_run || $RM $removelist | ||
15500 | exit $EXIT_FAILURE | ||
15501 | fi | ||
15502 | - removelist="$removelist $output_obj" | ||
15503 | + func_append removelist " $output_obj" | ||
15504 | $ECHO "$srcfile" > "$lockfile" | ||
15505 | fi | ||
15506 | |||
15507 | $opt_dry_run || $RM $removelist | ||
15508 | - removelist="$removelist $lockfile" | ||
15509 | + func_append removelist " $lockfile" | ||
15510 | trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 | ||
15511 | |||
15512 | - if test -n "$fix_srcfile_path"; then | ||
15513 | - eval "srcfile=\"$fix_srcfile_path\"" | ||
15514 | - fi | ||
15515 | + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 | ||
15516 | + srcfile=$func_to_tool_file_result | ||
15517 | func_quote_for_eval "$srcfile" | ||
15518 | qsrcfile=$func_quote_for_eval_result | ||
15519 | |||
15520 | @@ -1526,7 +2194,7 @@ compiler." | ||
15521 | |||
15522 | if test -z "$output_obj"; then | ||
15523 | # Place PIC objects in $objdir | ||
15524 | - command="$command -o $lobj" | ||
15525 | + func_append command " -o $lobj" | ||
15526 | fi | ||
15527 | |||
15528 | func_show_eval_locale "$command" \ | ||
15529 | @@ -1573,11 +2241,11 @@ compiler." | ||
15530 | command="$base_compile $qsrcfile $pic_flag" | ||
15531 | fi | ||
15532 | if test "$compiler_c_o" = yes; then | ||
15533 | - command="$command -o $obj" | ||
15534 | + func_append command " -o $obj" | ||
15535 | fi | ||
15536 | |||
15537 | # Suppress compiler output if we already did a PIC compilation. | ||
15538 | - command="$command$suppress_output" | ||
15539 | + func_append command "$suppress_output" | ||
15540 | func_show_eval_locale "$command" \ | ||
15541 | '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' | ||
15542 | |||
15543 | @@ -1622,13 +2290,13 @@ compiler." | ||
15544 | } | ||
15545 | |||
15546 | $opt_help || { | ||
15547 | - test "$mode" = compile && func_mode_compile ${1+"$@"} | ||
15548 | + test "$opt_mode" = compile && func_mode_compile ${1+"$@"} | ||
15549 | } | ||
15550 | |||
15551 | func_mode_help () | ||
15552 | { | ||
15553 | # We need to display help for each of the modes. | ||
15554 | - case $mode in | ||
15555 | + case $opt_mode in | ||
15556 | "") | ||
15557 | # Generic help is extracted from the usage comments | ||
15558 | # at the start of this file. | ||
15559 | @@ -1659,8 +2327,8 @@ This mode accepts the following additional options: | ||
15560 | |||
15561 | -o OUTPUT-FILE set the output file name to OUTPUT-FILE | ||
15562 | -no-suppress do not suppress compiler output for multiple passes | ||
15563 | - -prefer-pic try to building PIC objects only | ||
15564 | - -prefer-non-pic try to building non-PIC objects only | ||
15565 | + -prefer-pic try to build PIC objects only | ||
15566 | + -prefer-non-pic try to build non-PIC objects only | ||
15567 | -shared do not build a \`.o' file suitable for static linking | ||
15568 | -static only build a \`.o' file suitable for static linking | ||
15569 | -Wc,FLAG pass FLAG directly to the compiler | ||
15570 | @@ -1804,7 +2472,7 @@ Otherwise, only FILE itself is deleted using RM." | ||
15571 | ;; | ||
15572 | |||
15573 | *) | ||
15574 | - func_fatal_help "invalid operation mode \`$mode'" | ||
15575 | + func_fatal_help "invalid operation mode \`$opt_mode'" | ||
15576 | ;; | ||
15577 | esac | ||
15578 | |||
15579 | @@ -1819,13 +2487,13 @@ if $opt_help; then | ||
15580 | else | ||
15581 | { | ||
15582 | func_help noexit | ||
15583 | - for mode in compile link execute install finish uninstall clean; do | ||
15584 | + for opt_mode in compile link execute install finish uninstall clean; do | ||
15585 | func_mode_help | ||
15586 | done | ||
15587 | } | sed -n '1p; 2,$s/^Usage:/ or: /p' | ||
15588 | { | ||
15589 | func_help noexit | ||
15590 | - for mode in compile link execute install finish uninstall clean; do | ||
15591 | + for opt_mode in compile link execute install finish uninstall clean; do | ||
15592 | echo | ||
15593 | func_mode_help | ||
15594 | done | ||
15595 | @@ -1854,13 +2522,16 @@ func_mode_execute () | ||
15596 | func_fatal_help "you must specify a COMMAND" | ||
15597 | |||
15598 | # Handle -dlopen flags immediately. | ||
15599 | - for file in $execute_dlfiles; do | ||
15600 | + for file in $opt_dlopen; do | ||
15601 | test -f "$file" \ | ||
15602 | || func_fatal_help "\`$file' is not a file" | ||
15603 | |||
15604 | dir= | ||
15605 | case $file in | ||
15606 | *.la) | ||
15607 | + func_resolve_sysroot "$file" | ||
15608 | + file=$func_resolve_sysroot_result | ||
15609 | + | ||
15610 | # Check to see that this really is a libtool archive. | ||
15611 | func_lalib_unsafe_p "$file" \ | ||
15612 | || func_fatal_help "\`$lib' is not a valid libtool archive" | ||
15613 | @@ -1882,7 +2553,7 @@ func_mode_execute () | ||
15614 | dir="$func_dirname_result" | ||
15615 | |||
15616 | if test -f "$dir/$objdir/$dlname"; then | ||
15617 | - dir="$dir/$objdir" | ||
15618 | + func_append dir "/$objdir" | ||
15619 | else | ||
15620 | if test ! -f "$dir/$dlname"; then | ||
15621 | func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" | ||
15622 | @@ -1907,10 +2578,10 @@ func_mode_execute () | ||
15623 | test -n "$absdir" && dir="$absdir" | ||
15624 | |||
15625 | # Now add the directory to shlibpath_var. | ||
15626 | - if eval test -z \"\$$shlibpath_var\"; then | ||
15627 | - eval $shlibpath_var=\$dir | ||
15628 | + if eval "test -z \"\$$shlibpath_var\""; then | ||
15629 | + eval "$shlibpath_var=\"\$dir\"" | ||
15630 | else | ||
15631 | - eval $shlibpath_var=\$dir:\$$shlibpath_var | ||
15632 | + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" | ||
15633 | fi | ||
15634 | done | ||
15635 | |||
15636 | @@ -1939,8 +2610,7 @@ func_mode_execute () | ||
15637 | ;; | ||
15638 | esac | ||
15639 | # Quote arguments (to preserve shell metacharacters). | ||
15640 | - func_quote_for_eval "$file" | ||
15641 | - args="$args $func_quote_for_eval_result" | ||
15642 | + func_append_quoted args "$file" | ||
15643 | done | ||
15644 | |||
15645 | if test "X$opt_dry_run" = Xfalse; then | ||
15646 | @@ -1972,22 +2642,59 @@ func_mode_execute () | ||
15647 | fi | ||
15648 | } | ||
15649 | |||
15650 | -test "$mode" = execute && func_mode_execute ${1+"$@"} | ||
15651 | +test "$opt_mode" = execute && func_mode_execute ${1+"$@"} | ||
15652 | |||
15653 | |||
15654 | # func_mode_finish arg... | ||
15655 | func_mode_finish () | ||
15656 | { | ||
15657 | $opt_debug | ||
15658 | - libdirs="$nonopt" | ||
15659 | + libs= | ||
15660 | + libdirs= | ||
15661 | admincmds= | ||
15662 | |||
15663 | - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then | ||
15664 | - for dir | ||
15665 | - do | ||
15666 | - libdirs="$libdirs $dir" | ||
15667 | - done | ||
15668 | + for opt in "$nonopt" ${1+"$@"} | ||
15669 | + do | ||
15670 | + if test -d "$opt"; then | ||
15671 | + func_append libdirs " $opt" | ||
15672 | |||
15673 | + elif test -f "$opt"; then | ||
15674 | + if func_lalib_unsafe_p "$opt"; then | ||
15675 | + func_append libs " $opt" | ||
15676 | + else | ||
15677 | + func_warning "\`$opt' is not a valid libtool archive" | ||
15678 | + fi | ||
15679 | + | ||
15680 | + else | ||
15681 | + func_fatal_error "invalid argument \`$opt'" | ||
15682 | + fi | ||
15683 | + done | ||
15684 | + | ||
15685 | + if test -n "$libs"; then | ||
15686 | + if test -n "$lt_sysroot"; then | ||
15687 | + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` | ||
15688 | + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" | ||
15689 | + else | ||
15690 | + sysroot_cmd= | ||
15691 | + fi | ||
15692 | + | ||
15693 | + # Remove sysroot references | ||
15694 | + if $opt_dry_run; then | ||
15695 | + for lib in $libs; do | ||
15696 | + echo "removing references to $lt_sysroot and \`=' prefixes from $lib" | ||
15697 | + done | ||
15698 | + else | ||
15699 | + tmpdir=`func_mktempdir` | ||
15700 | + for lib in $libs; do | ||
15701 | + sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ | ||
15702 | + > $tmpdir/tmp-la | ||
15703 | + mv -f $tmpdir/tmp-la $lib | ||
15704 | + done | ||
15705 | + ${RM}r "$tmpdir" | ||
15706 | + fi | ||
15707 | + fi | ||
15708 | + | ||
15709 | + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then | ||
15710 | for libdir in $libdirs; do | ||
15711 | if test -n "$finish_cmds"; then | ||
15712 | # Do each command in the finish commands. | ||
15713 | @@ -1997,7 +2704,7 @@ func_mode_finish () | ||
15714 | if test -n "$finish_eval"; then | ||
15715 | # Do the single finish_eval. | ||
15716 | eval cmds=\"$finish_eval\" | ||
15717 | - $opt_dry_run || eval "$cmds" || admincmds="$admincmds | ||
15718 | + $opt_dry_run || eval "$cmds" || func_append admincmds " | ||
15719 | $cmds" | ||
15720 | fi | ||
15721 | done | ||
15722 | @@ -2006,53 +2713,55 @@ func_mode_finish () | ||
15723 | # Exit here if they wanted silent mode. | ||
15724 | $opt_silent && exit $EXIT_SUCCESS | ||
15725 | |||
15726 | - echo "----------------------------------------------------------------------" | ||
15727 | - echo "Libraries have been installed in:" | ||
15728 | - for libdir in $libdirs; do | ||
15729 | - $ECHO " $libdir" | ||
15730 | - done | ||
15731 | - echo | ||
15732 | - echo "If you ever happen to want to link against installed libraries" | ||
15733 | - echo "in a given directory, LIBDIR, you must either use libtool, and" | ||
15734 | - echo "specify the full pathname of the library, or use the \`-LLIBDIR'" | ||
15735 | - echo "flag during linking and do at least one of the following:" | ||
15736 | - if test -n "$shlibpath_var"; then | ||
15737 | - echo " - add LIBDIR to the \`$shlibpath_var' environment variable" | ||
15738 | - echo " during execution" | ||
15739 | - fi | ||
15740 | - if test -n "$runpath_var"; then | ||
15741 | - echo " - add LIBDIR to the \`$runpath_var' environment variable" | ||
15742 | - echo " during linking" | ||
15743 | - fi | ||
15744 | - if test -n "$hardcode_libdir_flag_spec"; then | ||
15745 | - libdir=LIBDIR | ||
15746 | - eval "flag=\"$hardcode_libdir_flag_spec\"" | ||
15747 | + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then | ||
15748 | + echo "----------------------------------------------------------------------" | ||
15749 | + echo "Libraries have been installed in:" | ||
15750 | + for libdir in $libdirs; do | ||
15751 | + $ECHO " $libdir" | ||
15752 | + done | ||
15753 | + echo | ||
15754 | + echo "If you ever happen to want to link against installed libraries" | ||
15755 | + echo "in a given directory, LIBDIR, you must either use libtool, and" | ||
15756 | + echo "specify the full pathname of the library, or use the \`-LLIBDIR'" | ||
15757 | + echo "flag during linking and do at least one of the following:" | ||
15758 | + if test -n "$shlibpath_var"; then | ||
15759 | + echo " - add LIBDIR to the \`$shlibpath_var' environment variable" | ||
15760 | + echo " during execution" | ||
15761 | + fi | ||
15762 | + if test -n "$runpath_var"; then | ||
15763 | + echo " - add LIBDIR to the \`$runpath_var' environment variable" | ||
15764 | + echo " during linking" | ||
15765 | + fi | ||
15766 | + if test -n "$hardcode_libdir_flag_spec"; then | ||
15767 | + libdir=LIBDIR | ||
15768 | + eval flag=\"$hardcode_libdir_flag_spec\" | ||
15769 | |||
15770 | - $ECHO " - use the \`$flag' linker flag" | ||
15771 | - fi | ||
15772 | - if test -n "$admincmds"; then | ||
15773 | - $ECHO " - have your system administrator run these commands:$admincmds" | ||
15774 | - fi | ||
15775 | - if test -f /etc/ld.so.conf; then | ||
15776 | - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" | ||
15777 | - fi | ||
15778 | - echo | ||
15779 | + $ECHO " - use the \`$flag' linker flag" | ||
15780 | + fi | ||
15781 | + if test -n "$admincmds"; then | ||
15782 | + $ECHO " - have your system administrator run these commands:$admincmds" | ||
15783 | + fi | ||
15784 | + if test -f /etc/ld.so.conf; then | ||
15785 | + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" | ||
15786 | + fi | ||
15787 | + echo | ||
15788 | |||
15789 | - echo "See any operating system documentation about shared libraries for" | ||
15790 | - case $host in | ||
15791 | - solaris2.[6789]|solaris2.1[0-9]) | ||
15792 | - echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" | ||
15793 | - echo "pages." | ||
15794 | - ;; | ||
15795 | - *) | ||
15796 | - echo "more information, such as the ld(1) and ld.so(8) manual pages." | ||
15797 | - ;; | ||
15798 | - esac | ||
15799 | - echo "----------------------------------------------------------------------" | ||
15800 | + echo "See any operating system documentation about shared libraries for" | ||
15801 | + case $host in | ||
15802 | + solaris2.[6789]|solaris2.1[0-9]) | ||
15803 | + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" | ||
15804 | + echo "pages." | ||
15805 | + ;; | ||
15806 | + *) | ||
15807 | + echo "more information, such as the ld(1) and ld.so(8) manual pages." | ||
15808 | + ;; | ||
15809 | + esac | ||
15810 | + echo "----------------------------------------------------------------------" | ||
15811 | + fi | ||
15812 | exit $EXIT_SUCCESS | ||
15813 | } | ||
15814 | |||
15815 | -test "$mode" = finish && func_mode_finish ${1+"$@"} | ||
15816 | +test "$opt_mode" = finish && func_mode_finish ${1+"$@"} | ||
15817 | |||
15818 | |||
15819 | # func_mode_install arg... | ||
15820 | @@ -2077,7 +2786,7 @@ func_mode_install () | ||
15821 | # The real first argument should be the name of the installation program. | ||
15822 | # Aesthetically quote it. | ||
15823 | func_quote_for_eval "$arg" | ||
15824 | - install_prog="$install_prog$func_quote_for_eval_result" | ||
15825 | + func_append install_prog "$func_quote_for_eval_result" | ||
15826 | install_shared_prog=$install_prog | ||
15827 | case " $install_prog " in | ||
15828 | *[\\\ /]cp\ *) install_cp=: ;; | ||
15829 | @@ -2097,7 +2806,7 @@ func_mode_install () | ||
15830 | do | ||
15831 | arg2= | ||
15832 | if test -n "$dest"; then | ||
15833 | - files="$files $dest" | ||
15834 | + func_append files " $dest" | ||
15835 | dest=$arg | ||
15836 | continue | ||
15837 | fi | ||
15838 | @@ -2135,11 +2844,11 @@ func_mode_install () | ||
15839 | |||
15840 | # Aesthetically quote the argument. | ||
15841 | func_quote_for_eval "$arg" | ||
15842 | - install_prog="$install_prog $func_quote_for_eval_result" | ||
15843 | + func_append install_prog " $func_quote_for_eval_result" | ||
15844 | if test -n "$arg2"; then | ||
15845 | func_quote_for_eval "$arg2" | ||
15846 | fi | ||
15847 | - install_shared_prog="$install_shared_prog $func_quote_for_eval_result" | ||
15848 | + func_append install_shared_prog " $func_quote_for_eval_result" | ||
15849 | done | ||
15850 | |||
15851 | test -z "$install_prog" && \ | ||
15852 | @@ -2151,7 +2860,7 @@ func_mode_install () | ||
15853 | if test -n "$install_override_mode" && $no_mode; then | ||
15854 | if $install_cp; then :; else | ||
15855 | func_quote_for_eval "$install_override_mode" | ||
15856 | - install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result" | ||
15857 | + func_append install_shared_prog " -m $func_quote_for_eval_result" | ||
15858 | fi | ||
15859 | fi | ||
15860 | |||
15861 | @@ -2209,10 +2918,13 @@ func_mode_install () | ||
15862 | case $file in | ||
15863 | *.$libext) | ||
15864 | # Do the static libraries later. | ||
15865 | - staticlibs="$staticlibs $file" | ||
15866 | + func_append staticlibs " $file" | ||
15867 | ;; | ||
15868 | |||
15869 | *.la) | ||
15870 | + func_resolve_sysroot "$file" | ||
15871 | + file=$func_resolve_sysroot_result | ||
15872 | + | ||
15873 | # Check to see that this really is a libtool archive. | ||
15874 | func_lalib_unsafe_p "$file" \ | ||
15875 | || func_fatal_help "\`$file' is not a valid libtool archive" | ||
15876 | @@ -2226,23 +2938,30 @@ func_mode_install () | ||
15877 | if test "X$destdir" = "X$libdir"; then | ||
15878 | case "$current_libdirs " in | ||
15879 | *" $libdir "*) ;; | ||
15880 | - *) current_libdirs="$current_libdirs $libdir" ;; | ||
15881 | + *) func_append current_libdirs " $libdir" ;; | ||
15882 | esac | ||
15883 | else | ||
15884 | # Note the libdir as a future libdir. | ||
15885 | case "$future_libdirs " in | ||
15886 | *" $libdir "*) ;; | ||
15887 | - *) future_libdirs="$future_libdirs $libdir" ;; | ||
15888 | + *) func_append future_libdirs " $libdir" ;; | ||
15889 | esac | ||
15890 | fi | ||
15891 | |||
15892 | func_dirname "$file" "/" "" | ||
15893 | dir="$func_dirname_result" | ||
15894 | - dir="$dir$objdir" | ||
15895 | + func_append dir "$objdir" | ||
15896 | |||
15897 | if test -n "$relink_command"; then | ||
15898 | + # Strip any trailing slash from the destination. | ||
15899 | + func_stripname '' '/' "$libdir" | ||
15900 | + destlibdir=$func_stripname_result | ||
15901 | + | ||
15902 | + func_stripname '' '/' "$destdir" | ||
15903 | + s_destdir=$func_stripname_result | ||
15904 | + | ||
15905 | # Determine the prefix the user has applied to our future dir. | ||
15906 | - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` | ||
15907 | + inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"` | ||
15908 | |||
15909 | # Don't allow the user to place us outside of our expected | ||
15910 | # location b/c this prevents finding dependent libraries that | ||
15911 | @@ -2315,7 +3034,7 @@ func_mode_install () | ||
15912 | func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' | ||
15913 | |||
15914 | # Maybe install the static library, too. | ||
15915 | - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" | ||
15916 | + test -n "$old_library" && func_append staticlibs " $dir/$old_library" | ||
15917 | ;; | ||
15918 | |||
15919 | *.lo) | ||
15920 | @@ -2503,7 +3222,7 @@ func_mode_install () | ||
15921 | test -n "$future_libdirs" && \ | ||
15922 | func_warning "remember to run \`$progname --finish$future_libdirs'" | ||
15923 | |||
15924 | - if test -n "$current_libdirs" && $opt_finish; then | ||
15925 | + if test -n "$current_libdirs"; then | ||
15926 | # Maybe just do a dry run. | ||
15927 | $opt_dry_run && current_libdirs=" -n$current_libdirs" | ||
15928 | exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' | ||
15929 | @@ -2512,7 +3231,7 @@ func_mode_install () | ||
15930 | fi | ||
15931 | } | ||
15932 | |||
15933 | -test "$mode" = install && func_mode_install ${1+"$@"} | ||
15934 | +test "$opt_mode" = install && func_mode_install ${1+"$@"} | ||
15935 | |||
15936 | |||
15937 | # func_generate_dlsyms outputname originator pic_p | ||
15938 | @@ -2559,6 +3278,18 @@ extern \"C\" { | ||
15939 | #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" | ||
15940 | #endif | ||
15941 | |||
15942 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
15943 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
15944 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
15945 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
15946 | +# define LT_DLSYM_CONST | ||
15947 | +#elif defined(__osf__) | ||
15948 | +/* This system does not cope well with relocations in const data. */ | ||
15949 | +# define LT_DLSYM_CONST | ||
15950 | +#else | ||
15951 | +# define LT_DLSYM_CONST const | ||
15952 | +#endif | ||
15953 | + | ||
15954 | /* External symbol declarations for the compiler. */\ | ||
15955 | " | ||
15956 | |||
15957 | @@ -2570,21 +3301,22 @@ extern \"C\" { | ||
15958 | # Add our own program objects to the symbol list. | ||
15959 | progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` | ||
15960 | for progfile in $progfiles; do | ||
15961 | - func_verbose "extracting global C symbols from \`$progfile'" | ||
15962 | - $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" | ||
15963 | + func_to_tool_file "$progfile" func_convert_file_msys_to_w32 | ||
15964 | + func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" | ||
15965 | + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" | ||
15966 | done | ||
15967 | |||
15968 | if test -n "$exclude_expsyms"; then | ||
15969 | $opt_dry_run || { | ||
15970 | - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T | ||
15971 | - $MV "$nlist"T "$nlist" | ||
15972 | + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' | ||
15973 | + eval '$MV "$nlist"T "$nlist"' | ||
15974 | } | ||
15975 | fi | ||
15976 | |||
15977 | if test -n "$export_symbols_regex"; then | ||
15978 | $opt_dry_run || { | ||
15979 | - $EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T | ||
15980 | - $MV "$nlist"T "$nlist" | ||
15981 | + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' | ||
15982 | + eval '$MV "$nlist"T "$nlist"' | ||
15983 | } | ||
15984 | fi | ||
15985 | |||
15986 | @@ -2593,23 +3325,23 @@ extern \"C\" { | ||
15987 | export_symbols="$output_objdir/$outputname.exp" | ||
15988 | $opt_dry_run || { | ||
15989 | $RM $export_symbols | ||
15990 | - ${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' < "$nlist" > "$export_symbols" | ||
15991 | + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' | ||
15992 | case $host in | ||
15993 | *cygwin* | *mingw* | *cegcc* ) | ||
15994 | - echo EXPORTS > "$output_objdir/$outputname.def" | ||
15995 | - cat "$export_symbols" >> "$output_objdir/$outputname.def" | ||
15996 | + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' | ||
15997 | + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' | ||
15998 | ;; | ||
15999 | esac | ||
16000 | } | ||
16001 | else | ||
16002 | $opt_dry_run || { | ||
16003 | - ${SED} -e 's/\([].[*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/' < "$export_symbols" > "$output_objdir/$outputname.exp" | ||
16004 | - $GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T | ||
16005 | - $MV "$nlist"T "$nlist" | ||
16006 | + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' | ||
16007 | + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' | ||
16008 | + eval '$MV "$nlist"T "$nlist"' | ||
16009 | case $host in | ||
16010 | *cygwin* | *mingw* | *cegcc* ) | ||
16011 | - echo EXPORTS > "$output_objdir/$outputname.def" | ||
16012 | - cat "$nlist" >> "$output_objdir/$outputname.def" | ||
16013 | + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' | ||
16014 | + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' | ||
16015 | ;; | ||
16016 | esac | ||
16017 | } | ||
16018 | @@ -2620,10 +3352,52 @@ extern \"C\" { | ||
16019 | func_verbose "extracting global C symbols from \`$dlprefile'" | ||
16020 | func_basename "$dlprefile" | ||
16021 | name="$func_basename_result" | ||
16022 | - $opt_dry_run || { | ||
16023 | - $ECHO ": $name " >> "$nlist" | ||
16024 | - eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" | ||
16025 | - } | ||
16026 | + case $host in | ||
16027 | + *cygwin* | *mingw* | *cegcc* ) | ||
16028 | + # if an import library, we need to obtain dlname | ||
16029 | + if func_win32_import_lib_p "$dlprefile"; then | ||
16030 | + func_tr_sh "$dlprefile" | ||
16031 | + eval "curr_lafile=\$libfile_$func_tr_sh_result" | ||
16032 | + dlprefile_dlbasename="" | ||
16033 | + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then | ||
16034 | + # Use subshell, to avoid clobbering current variable values | ||
16035 | + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` | ||
16036 | + if test -n "$dlprefile_dlname" ; then | ||
16037 | + func_basename "$dlprefile_dlname" | ||
16038 | + dlprefile_dlbasename="$func_basename_result" | ||
16039 | + else | ||
16040 | + # no lafile. user explicitly requested -dlpreopen <import library>. | ||
16041 | + $sharedlib_from_linklib_cmd "$dlprefile" | ||
16042 | + dlprefile_dlbasename=$sharedlib_from_linklib_result | ||
16043 | + fi | ||
16044 | + fi | ||
16045 | + $opt_dry_run || { | ||
16046 | + if test -n "$dlprefile_dlbasename" ; then | ||
16047 | + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' | ||
16048 | + else | ||
16049 | + func_warning "Could not compute DLL name from $name" | ||
16050 | + eval '$ECHO ": $name " >> "$nlist"' | ||
16051 | + fi | ||
16052 | + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 | ||
16053 | + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | | ||
16054 | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" | ||
16055 | + } | ||
16056 | + else # not an import lib | ||
16057 | + $opt_dry_run || { | ||
16058 | + eval '$ECHO ": $name " >> "$nlist"' | ||
16059 | + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 | ||
16060 | + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" | ||
16061 | + } | ||
16062 | + fi | ||
16063 | + ;; | ||
16064 | + *) | ||
16065 | + $opt_dry_run || { | ||
16066 | + eval '$ECHO ": $name " >> "$nlist"' | ||
16067 | + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 | ||
16068 | + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" | ||
16069 | + } | ||
16070 | + ;; | ||
16071 | + esac | ||
16072 | done | ||
16073 | |||
16074 | $opt_dry_run || { | ||
16075 | @@ -2661,26 +3435,9 @@ typedef struct { | ||
16076 | const char *name; | ||
16077 | void *address; | ||
16078 | } lt_dlsymlist; | ||
16079 | -" | ||
16080 | - case $host in | ||
16081 | - *cygwin* | *mingw* | *cegcc* ) | ||
16082 | - echo >> "$output_objdir/$my_dlsyms" "\ | ||
16083 | -/* DATA imports from DLLs on WIN32 con't be const, because | ||
16084 | - runtime relocations are performed -- see ld's documentation | ||
16085 | - on pseudo-relocs. */" | ||
16086 | - lt_dlsym_const= ;; | ||
16087 | - *osf5*) | ||
16088 | - echo >> "$output_objdir/$my_dlsyms" "\ | ||
16089 | -/* This system does not cope well with relocations in const data */" | ||
16090 | - lt_dlsym_const= ;; | ||
16091 | - *) | ||
16092 | - lt_dlsym_const=const ;; | ||
16093 | - esac | ||
16094 | - | ||
16095 | - echo >> "$output_objdir/$my_dlsyms" "\ | ||
16096 | -extern $lt_dlsym_const lt_dlsymlist | ||
16097 | +extern LT_DLSYM_CONST lt_dlsymlist | ||
16098 | lt_${my_prefix}_LTX_preloaded_symbols[]; | ||
16099 | -$lt_dlsym_const lt_dlsymlist | ||
16100 | +LT_DLSYM_CONST lt_dlsymlist | ||
16101 | lt_${my_prefix}_LTX_preloaded_symbols[] = | ||
16102 | {\ | ||
16103 | { \"$my_originator\", (void *) 0 }," | ||
16104 | @@ -2736,7 +3493,7 @@ static const void *lt_preloaded_setup() { | ||
16105 | for arg in $LTCFLAGS; do | ||
16106 | case $arg in | ||
16107 | -pie | -fpie | -fPIE) ;; | ||
16108 | - *) symtab_cflags="$symtab_cflags $arg" ;; | ||
16109 | + *) func_append symtab_cflags " $arg" ;; | ||
16110 | esac | ||
16111 | done | ||
16112 | |||
16113 | @@ -2796,9 +3553,11 @@ func_win32_libid () | ||
16114 | win32_libid_type="x86 archive import" | ||
16115 | ;; | ||
16116 | *ar\ archive*) # could be an import, or static | ||
16117 | - if $OBJDUMP -f "$1" | $SED -e '10q' 2>/dev/null | | ||
16118 | - $EGREP 'file format (pe-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then | ||
16119 | - win32_nmres=`$NM -f posix -A "$1" | | ||
16120 | + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. | ||
16121 | + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | | ||
16122 | + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then | ||
16123 | + func_to_tool_file "$1" func_convert_file_msys_to_w32 | ||
16124 | + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | | ||
16125 | $SED -n -e ' | ||
16126 | 1,100{ | ||
16127 | / I /{ | ||
16128 | @@ -2827,6 +3586,131 @@ func_win32_libid () | ||
16129 | $ECHO "$win32_libid_type" | ||
16130 | } | ||
16131 | |||
16132 | +# func_cygming_dll_for_implib ARG | ||
16133 | +# | ||
16134 | +# Platform-specific function to extract the | ||
16135 | +# name of the DLL associated with the specified | ||
16136 | +# import library ARG. | ||
16137 | +# Invoked by eval'ing the libtool variable | ||
16138 | +# $sharedlib_from_linklib_cmd | ||
16139 | +# Result is available in the variable | ||
16140 | +# $sharedlib_from_linklib_result | ||
16141 | +func_cygming_dll_for_implib () | ||
16142 | +{ | ||
16143 | + $opt_debug | ||
16144 | + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` | ||
16145 | +} | ||
16146 | + | ||
16147 | +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs | ||
16148 | +# | ||
16149 | +# The is the core of a fallback implementation of a | ||
16150 | +# platform-specific function to extract the name of the | ||
16151 | +# DLL associated with the specified import library LIBNAME. | ||
16152 | +# | ||
16153 | +# SECTION_NAME is either .idata$6 or .idata$7, depending | ||
16154 | +# on the platform and compiler that created the implib. | ||
16155 | +# | ||
16156 | +# Echos the name of the DLL associated with the | ||
16157 | +# specified import library. | ||
16158 | +func_cygming_dll_for_implib_fallback_core () | ||
16159 | +{ | ||
16160 | + $opt_debug | ||
16161 | + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` | ||
16162 | + $OBJDUMP -s --section "$1" "$2" 2>/dev/null | | ||
16163 | + $SED '/^Contents of section '"$match_literal"':/{ | ||
16164 | + # Place marker at beginning of archive member dllname section | ||
16165 | + s/.*/====MARK====/ | ||
16166 | + p | ||
16167 | + d | ||
16168 | + } | ||
16169 | + # These lines can sometimes be longer than 43 characters, but | ||
16170 | + # are always uninteresting | ||
16171 | + /:[ ]*file format pe[i]\{,1\}-/d | ||
16172 | + /^In archive [^:]*:/d | ||
16173 | + # Ensure marker is printed | ||
16174 | + /^====MARK====/p | ||
16175 | + # Remove all lines with less than 43 characters | ||
16176 | + /^.\{43\}/!d | ||
16177 | + # From remaining lines, remove first 43 characters | ||
16178 | + s/^.\{43\}//' | | ||
16179 | + $SED -n ' | ||
16180 | + # Join marker and all lines until next marker into a single line | ||
16181 | + /^====MARK====/ b para | ||
16182 | + H | ||
16183 | + $ b para | ||
16184 | + b | ||
16185 | + :para | ||
16186 | + x | ||
16187 | + s/\n//g | ||
16188 | + # Remove the marker | ||
16189 | + s/^====MARK====// | ||
16190 | + # Remove trailing dots and whitespace | ||
16191 | + s/[\. \t]*$// | ||
16192 | |||
16193 | + /./p' | | ||
16194 | + # we now have a list, one entry per line, of the stringified | ||
16195 | + # contents of the appropriate section of all members of the | ||
16196 | + # archive which possess that section. Heuristic: eliminate | ||
16197 | + # all those which have a first or second character that is | ||
16198 | + # a '.' (that is, objdump's representation of an unprintable | ||
16199 | + # character.) This should work for all archives with less than | ||
16200 | + # 0x302f exports -- but will fail for DLLs whose name actually | ||
16201 | + # begins with a literal '.' or a single character followed by | ||
16202 | + # a '.'. | ||
16203 | + # | ||
16204 | + # Of those that remain, print the first one. | ||
16205 | + $SED -e '/^\./d;/^.\./d;q' | ||
16206 | +} | ||
16207 | + | ||
16208 | +# func_cygming_gnu_implib_p ARG | ||
16209 | +# This predicate returns with zero status (TRUE) if | ||
16210 | +# ARG is a GNU/binutils-style import library. Returns | ||
16211 | +# with nonzero status (FALSE) otherwise. | ||
16212 | +func_cygming_gnu_implib_p () | ||
16213 | +{ | ||
16214 | + $opt_debug | ||
16215 | + func_to_tool_file "$1" func_convert_file_msys_to_w32 | ||
16216 | + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` | ||
16217 | + test -n "$func_cygming_gnu_implib_tmp" | ||
16218 | +} | ||
16219 | + | ||
16220 | +# func_cygming_ms_implib_p ARG | ||
16221 | +# This predicate returns with zero status (TRUE) if | ||
16222 | +# ARG is an MS-style import library. Returns | ||
16223 | +# with nonzero status (FALSE) otherwise. | ||
16224 | +func_cygming_ms_implib_p () | ||
16225 | +{ | ||
16226 | + $opt_debug | ||
16227 | + func_to_tool_file "$1" func_convert_file_msys_to_w32 | ||
16228 | + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` | ||
16229 | + test -n "$func_cygming_ms_implib_tmp" | ||
16230 | +} | ||
16231 | + | ||
16232 | +# func_cygming_dll_for_implib_fallback ARG | ||
16233 | +# Platform-specific function to extract the | ||
16234 | +# name of the DLL associated with the specified | ||
16235 | +# import library ARG. | ||
16236 | +# | ||
16237 | +# This fallback implementation is for use when $DLLTOOL | ||
16238 | +# does not support the --identify-strict option. | ||
16239 | +# Invoked by eval'ing the libtool variable | ||
16240 | +# $sharedlib_from_linklib_cmd | ||
16241 | +# Result is available in the variable | ||
16242 | +# $sharedlib_from_linklib_result | ||
16243 | +func_cygming_dll_for_implib_fallback () | ||
16244 | +{ | ||
16245 | + $opt_debug | ||
16246 | + if func_cygming_gnu_implib_p "$1" ; then | ||
16247 | + # binutils import library | ||
16248 | + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` | ||
16249 | + elif func_cygming_ms_implib_p "$1" ; then | ||
16250 | + # ms-generated import library | ||
16251 | + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` | ||
16252 | + else | ||
16253 | + # unknown | ||
16254 | + sharedlib_from_linklib_result="" | ||
16255 | + fi | ||
16256 | +} | ||
16257 | |||
16258 | |||
16259 | # func_extract_an_archive dir oldlib | ||
16260 | @@ -2917,7 +3801,7 @@ func_extract_archives () | ||
16261 | darwin_file= | ||
16262 | darwin_files= | ||
16263 | for darwin_file in $darwin_filelist; do | ||
16264 | - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` | ||
16265 | + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` | ||
16266 | $LIPO -create -output "$darwin_file" $darwin_files | ||
16267 | done # $darwin_filelist | ||
16268 | $RM -rf unfat-$$ | ||
16269 | @@ -2932,7 +3816,7 @@ func_extract_archives () | ||
16270 | func_extract_an_archive "$my_xdir" "$my_xabs" | ||
16271 | ;; | ||
16272 | esac | ||
16273 | - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` | ||
16274 | + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` | ||
16275 | done | ||
16276 | |||
16277 | func_extract_archives_result="$my_oldobjs" | ||
16278 | @@ -3014,7 +3898,110 @@ func_fallback_echo () | ||
16279 | _LTECHO_EOF' | ||
16280 | } | ||
16281 | ECHO=\"$qECHO\" | ||
16282 | - fi\ | ||
16283 | + fi | ||
16284 | + | ||
16285 | +# Very basic option parsing. These options are (a) specific to | ||
16286 | +# the libtool wrapper, (b) are identical between the wrapper | ||
16287 | +# /script/ and the wrapper /executable/ which is used only on | ||
16288 | +# windows platforms, and (c) all begin with the string "--lt-" | ||
16289 | +# (application programs are unlikely to have options which match | ||
16290 | +# this pattern). | ||
16291 | +# | ||
16292 | +# There are only two supported options: --lt-debug and | ||
16293 | +# --lt-dump-script. There is, deliberately, no --lt-help. | ||
16294 | +# | ||
16295 | +# The first argument to this parsing function should be the | ||
16296 | +# script's $0 value, followed by "$@". | ||
16297 | +lt_option_debug= | ||
16298 | +func_parse_lt_options () | ||
16299 | +{ | ||
16300 | + lt_script_arg0=\$0 | ||
16301 | + shift | ||
16302 | + for lt_opt | ||
16303 | + do | ||
16304 | + case \"\$lt_opt\" in | ||
16305 | + --lt-debug) lt_option_debug=1 ;; | ||
16306 | + --lt-dump-script) | ||
16307 | + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` | ||
16308 | + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. | ||
16309 | + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` | ||
16310 | + cat \"\$lt_dump_D/\$lt_dump_F\" | ||
16311 | + exit 0 | ||
16312 | + ;; | ||
16313 | + --lt-*) | ||
16314 | + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 | ||
16315 | + exit 1 | ||
16316 | + ;; | ||
16317 | + esac | ||
16318 | + done | ||
16319 | + | ||
16320 | + # Print the debug banner immediately: | ||
16321 | + if test -n \"\$lt_option_debug\"; then | ||
16322 | + echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 | ||
16323 | + fi | ||
16324 | +} | ||
16325 | + | ||
16326 | +# Used when --lt-debug. Prints its arguments to stdout | ||
16327 | +# (redirection is the responsibility of the caller) | ||
16328 | +func_lt_dump_args () | ||
16329 | +{ | ||
16330 | + lt_dump_args_N=1; | ||
16331 | + for lt_arg | ||
16332 | + do | ||
16333 | + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" | ||
16334 | + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` | ||
16335 | + done | ||
16336 | +} | ||
16337 | + | ||
16338 | +# Core function for launching the target application | ||
16339 | +func_exec_program_core () | ||
16340 | +{ | ||
16341 | +" | ||
16342 | + case $host in | ||
16343 | + # Backslashes separate directories on plain windows | ||
16344 | + *-*-mingw | *-*-os2* | *-cegcc*) | ||
16345 | + $ECHO "\ | ||
16346 | + if test -n \"\$lt_option_debug\"; then | ||
16347 | + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 | ||
16348 | + func_lt_dump_args \${1+\"\$@\"} 1>&2 | ||
16349 | + fi | ||
16350 | + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} | ||
16351 | +" | ||
16352 | + ;; | ||
16353 | + | ||
16354 | + *) | ||
16355 | + $ECHO "\ | ||
16356 | + if test -n \"\$lt_option_debug\"; then | ||
16357 | + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 | ||
16358 | + func_lt_dump_args \${1+\"\$@\"} 1>&2 | ||
16359 | + fi | ||
16360 | + exec \"\$progdir/\$program\" \${1+\"\$@\"} | ||
16361 | +" | ||
16362 | + ;; | ||
16363 | + esac | ||
16364 | + $ECHO "\ | ||
16365 | + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 | ||
16366 | + exit 1 | ||
16367 | +} | ||
16368 | + | ||
16369 | +# A function to encapsulate launching the target application | ||
16370 | +# Strips options in the --lt-* namespace from \$@ and | ||
16371 | +# launches target application with the remaining arguments. | ||
16372 | +func_exec_program () | ||
16373 | +{ | ||
16374 | + for lt_wr_arg | ||
16375 | + do | ||
16376 | + case \$lt_wr_arg in | ||
16377 | + --lt-*) ;; | ||
16378 | + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; | ||
16379 | + esac | ||
16380 | + shift | ||
16381 | + done | ||
16382 | + func_exec_program_core \${1+\"\$@\"} | ||
16383 | +} | ||
16384 | + | ||
16385 | + # Parse options | ||
16386 | + func_parse_lt_options \"\$0\" \${1+\"\$@\"} | ||
16387 | |||
16388 | # Find the directory that this script lives in. | ||
16389 | thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` | ||
16390 | @@ -3078,7 +4065,7 @@ _LTECHO_EOF' | ||
16391 | |||
16392 | # relink executable if necessary | ||
16393 | if test -n \"\$relink_command\"; then | ||
16394 | - if relink_command_output=\`eval \"\$relink_command\" 2>&1\`; then : | ||
16395 | + if relink_command_output=\`eval \$relink_command 2>&1\`; then : | ||
16396 | else | ||
16397 | $ECHO \"\$relink_command_output\" >&2 | ||
16398 | $RM \"\$progdir/\$file\" | ||
16399 | @@ -3102,6 +4089,18 @@ _LTECHO_EOF' | ||
16400 | |||
16401 | if test -f \"\$progdir/\$program\"; then" | ||
16402 | |||
16403 | + # fixup the dll searchpath if we need to. | ||
16404 | + # | ||
16405 | + # Fix the DLL searchpath if we need to. Do this before prepending | ||
16406 | + # to shlibpath, because on Windows, both are PATH and uninstalled | ||
16407 | + # libraries must come first. | ||
16408 | + if test -n "$dllsearchpath"; then | ||
16409 | + $ECHO "\ | ||
16410 | + # Add the dll search path components to the executable PATH | ||
16411 | + PATH=$dllsearchpath:\$PATH | ||
16412 | +" | ||
16413 | + fi | ||
16414 | + | ||
16415 | # Export our shlibpath_var if we have one. | ||
16416 | if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then | ||
16417 | $ECHO "\ | ||
16418 | @@ -3116,35 +4115,10 @@ _LTECHO_EOF' | ||
16419 | " | ||
16420 | fi | ||
16421 | |||
16422 | - # fixup the dll searchpath if we need to. | ||
16423 | - if test -n "$dllsearchpath"; then | ||
16424 | - $ECHO "\ | ||
16425 | - # Add the dll search path components to the executable PATH | ||
16426 | - PATH=$dllsearchpath:\$PATH | ||
16427 | -" | ||
16428 | - fi | ||
16429 | - | ||
16430 | $ECHO "\ | ||
16431 | if test \"\$libtool_execute_magic\" != \"$magic\"; then | ||
16432 | # Run the actual program with our arguments. | ||
16433 | -" | ||
16434 | - case $host in | ||
16435 | - # Backslashes separate directories on plain windows | ||
16436 | - *-*-mingw | *-*-os2* | *-cegcc*) | ||
16437 | - $ECHO "\ | ||
16438 | - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} | ||
16439 | -" | ||
16440 | - ;; | ||
16441 | - | ||
16442 | - *) | ||
16443 | - $ECHO "\ | ||
16444 | - exec \"\$progdir/\$program\" \${1+\"\$@\"} | ||
16445 | -" | ||
16446 | - ;; | ||
16447 | - esac | ||
16448 | - $ECHO "\ | ||
16449 | - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 | ||
16450 | - exit 1 | ||
16451 | + func_exec_program \${1+\"\$@\"} | ||
16452 | fi | ||
16453 | else | ||
16454 | # The program doesn't exist. | ||
16455 | @@ -3158,166 +4132,6 @@ fi\ | ||
16456 | } | ||
16457 | |||
16458 | |||
16459 | -# func_to_host_path arg | ||
16460 | -# | ||
16461 | -# Convert paths to host format when used with build tools. | ||
16462 | -# Intended for use with "native" mingw (where libtool itself | ||
16463 | -# is running under the msys shell), or in the following cross- | ||
16464 | -# build environments: | ||
16465 | -# $build $host | ||
16466 | -# mingw (msys) mingw [e.g. native] | ||
16467 | -# cygwin mingw | ||
16468 | -# *nix + wine mingw | ||
16469 | -# where wine is equipped with the `winepath' executable. | ||
16470 | -# In the native mingw case, the (msys) shell automatically | ||
16471 | -# converts paths for any non-msys applications it launches, | ||
16472 | -# but that facility isn't available from inside the cwrapper. | ||
16473 | -# Similar accommodations are necessary for $host mingw and | ||
16474 | -# $build cygwin. Calling this function does no harm for other | ||
16475 | -# $host/$build combinations not listed above. | ||
16476 | -# | ||
16477 | -# ARG is the path (on $build) that should be converted to | ||
16478 | -# the proper representation for $host. The result is stored | ||
16479 | -# in $func_to_host_path_result. | ||
16480 | -func_to_host_path () | ||
16481 | -{ | ||
16482 | - func_to_host_path_result="$1" | ||
16483 | - if test -n "$1"; then | ||
16484 | - case $host in | ||
16485 | - *mingw* ) | ||
16486 | - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | ||
16487 | - case $build in | ||
16488 | - *mingw* ) # actually, msys | ||
16489 | - # awkward: cmd appends spaces to result | ||
16490 | - func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null | | ||
16491 | - $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | ||
16492 | - ;; | ||
16493 | - *cygwin* ) | ||
16494 | - func_to_host_path_result=`cygpath -w "$1" | | ||
16495 | - $SED -e "$lt_sed_naive_backslashify"` | ||
16496 | - ;; | ||
16497 | - * ) | ||
16498 | - # Unfortunately, winepath does not exit with a non-zero | ||
16499 | - # error code, so we are forced to check the contents of | ||
16500 | - # stdout. On the other hand, if the command is not | ||
16501 | - # found, the shell will set an exit code of 127 and print | ||
16502 | - # *an error message* to stdout. So we must check for both | ||
16503 | - # error code of zero AND non-empty stdout, which explains | ||
16504 | - # the odd construction: | ||
16505 | - func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` | ||
16506 | - if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then | ||
16507 | - func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" | | ||
16508 | - $SED -e "$lt_sed_naive_backslashify"` | ||
16509 | - else | ||
16510 | - # Allow warning below. | ||
16511 | - func_to_host_path_result= | ||
16512 | - fi | ||
16513 | - ;; | ||
16514 | - esac | ||
16515 | - if test -z "$func_to_host_path_result" ; then | ||
16516 | - func_error "Could not determine host path corresponding to" | ||
16517 | - func_error " \`$1'" | ||
16518 | - func_error "Continuing, but uninstalled executables may not work." | ||
16519 | - # Fallback: | ||
16520 | - func_to_host_path_result="$1" | ||
16521 | - fi | ||
16522 | - ;; | ||
16523 | - esac | ||
16524 | - fi | ||
16525 | -} | ||
16526 | -# end: func_to_host_path | ||
16527 | - | ||
16528 | -# func_to_host_pathlist arg | ||
16529 | -# | ||
16530 | -# Convert pathlists to host format when used with build tools. | ||
16531 | -# See func_to_host_path(), above. This function supports the | ||
16532 | -# following $build/$host combinations (but does no harm for | ||
16533 | -# combinations not listed here): | ||
16534 | -# $build $host | ||
16535 | -# mingw (msys) mingw [e.g. native] | ||
16536 | -# cygwin mingw | ||
16537 | -# *nix + wine mingw | ||
16538 | -# | ||
16539 | -# Path separators are also converted from $build format to | ||
16540 | -# $host format. If ARG begins or ends with a path separator | ||
16541 | -# character, it is preserved (but converted to $host format) | ||
16542 | -# on output. | ||
16543 | -# | ||
16544 | -# ARG is a pathlist (on $build) that should be converted to | ||
16545 | -# the proper representation on $host. The result is stored | ||
16546 | -# in $func_to_host_pathlist_result. | ||
16547 | -func_to_host_pathlist () | ||
16548 | -{ | ||
16549 | - func_to_host_pathlist_result="$1" | ||
16550 | - if test -n "$1"; then | ||
16551 | - case $host in | ||
16552 | - *mingw* ) | ||
16553 | - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | ||
16554 | - # Remove leading and trailing path separator characters from | ||
16555 | - # ARG. msys behavior is inconsistent here, cygpath turns them | ||
16556 | - # into '.;' and ';.', and winepath ignores them completely. | ||
16557 | - func_stripname : : "$1" | ||
16558 | - func_to_host_pathlist_tmp1=$func_stripname_result | ||
16559 | - case $build in | ||
16560 | - *mingw* ) # Actually, msys. | ||
16561 | - # Awkward: cmd appends spaces to result. | ||
16562 | - func_to_host_pathlist_result=` | ||
16563 | - ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null | | ||
16564 | - $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | ||
16565 | - ;; | ||
16566 | - *cygwin* ) | ||
16567 | - func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" | | ||
16568 | - $SED -e "$lt_sed_naive_backslashify"` | ||
16569 | - ;; | ||
16570 | - * ) | ||
16571 | - # unfortunately, winepath doesn't convert pathlists | ||
16572 | - func_to_host_pathlist_result="" | ||
16573 | - func_to_host_pathlist_oldIFS=$IFS | ||
16574 | - IFS=: | ||
16575 | - for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do | ||
16576 | - IFS=$func_to_host_pathlist_oldIFS | ||
16577 | - if test -n "$func_to_host_pathlist_f" ; then | ||
16578 | - func_to_host_path "$func_to_host_pathlist_f" | ||
16579 | - if test -n "$func_to_host_path_result" ; then | ||
16580 | - if test -z "$func_to_host_pathlist_result" ; then | ||
16581 | - func_to_host_pathlist_result="$func_to_host_path_result" | ||
16582 | - else | ||
16583 | - func_append func_to_host_pathlist_result ";$func_to_host_path_result" | ||
16584 | - fi | ||
16585 | - fi | ||
16586 | - fi | ||
16587 | - done | ||
16588 | - IFS=$func_to_host_pathlist_oldIFS | ||
16589 | - ;; | ||
16590 | - esac | ||
16591 | - if test -z "$func_to_host_pathlist_result"; then | ||
16592 | - func_error "Could not determine the host path(s) corresponding to" | ||
16593 | - func_error " \`$1'" | ||
16594 | - func_error "Continuing, but uninstalled executables may not work." | ||
16595 | - # Fallback. This may break if $1 contains DOS-style drive | ||
16596 | - # specifications. The fix is not to complicate the expression | ||
16597 | - # below, but for the user to provide a working wine installation | ||
16598 | - # with winepath so that path translation in the cross-to-mingw | ||
16599 | - # case works properly. | ||
16600 | - lt_replace_pathsep_nix_to_dos="s|:|;|g" | ||
16601 | - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ | ||
16602 | - $SED -e "$lt_replace_pathsep_nix_to_dos"` | ||
16603 | - fi | ||
16604 | - # Now, add the leading and trailing path separators back | ||
16605 | - case "$1" in | ||
16606 | - :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" | ||
16607 | - ;; | ||
16608 | - esac | ||
16609 | - case "$1" in | ||
16610 | - *: ) func_append func_to_host_pathlist_result ";" | ||
16611 | - ;; | ||
16612 | - esac | ||
16613 | - ;; | ||
16614 | - esac | ||
16615 | - fi | ||
16616 | -} | ||
16617 | -# end: func_to_host_pathlist | ||
16618 | - | ||
16619 | # func_emit_cwrapperexe_src | ||
16620 | # emit the source code for a wrapper executable on stdout | ||
16621 | # Must ONLY be called from within func_mode_link because | ||
16622 | @@ -3334,10 +4148,6 @@ func_emit_cwrapperexe_src () | ||
16623 | |||
16624 | This wrapper executable should never be moved out of the build directory. | ||
16625 | If it is, it will not operate correctly. | ||
16626 | - | ||
16627 | - Currently, it simply execs the wrapper *script* "$SHELL $output", | ||
16628 | - but could eventually absorb all of the scripts functionality and | ||
16629 | - exec $objdir/$outputname directly. | ||
16630 | */ | ||
16631 | EOF | ||
16632 | cat <<"EOF" | ||
16633 | @@ -3462,22 +4272,13 @@ int setenv (const char *, const char *, int); | ||
16634 | if (stale) { free ((void *) stale); stale = 0; } \ | ||
16635 | } while (0) | ||
16636 | |||
16637 | -#undef LTWRAPPER_DEBUGPRINTF | ||
16638 | -#if defined LT_DEBUGWRAPPER | ||
16639 | -# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args | ||
16640 | -static void | ||
16641 | -ltwrapper_debugprintf (const char *fmt, ...) | ||
16642 | -{ | ||
16643 | - va_list args; | ||
16644 | - va_start (args, fmt); | ||
16645 | - (void) vfprintf (stderr, fmt, args); | ||
16646 | - va_end (args); | ||
16647 | -} | ||
16648 | +#if defined(LT_DEBUGWRAPPER) | ||
16649 | +static int lt_debug = 1; | ||
16650 | #else | ||
16651 | -# define LTWRAPPER_DEBUGPRINTF(args) | ||
16652 | +static int lt_debug = 0; | ||
16653 | #endif | ||
16654 | |||
16655 | -const char *program_name = NULL; | ||
16656 | +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ | ||
16657 | |||
16658 | void *xmalloc (size_t num); | ||
16659 | char *xstrdup (const char *string); | ||
16660 | @@ -3487,7 +4288,10 @@ char *chase_symlinks (const char *pathspec); | ||
16661 | int make_executable (const char *path); | ||
16662 | int check_executable (const char *path); | ||
16663 | char *strendzap (char *str, const char *pat); | ||
16664 | -void lt_fatal (const char *message, ...); | ||
16665 | +void lt_debugprintf (const char *file, int line, const char *fmt, ...); | ||
16666 | +void lt_fatal (const char *file, int line, const char *message, ...); | ||
16667 | +static const char *nonnull (const char *s); | ||
16668 | +static const char *nonempty (const char *s); | ||
16669 | void lt_setenv (const char *name, const char *value); | ||
16670 | char *lt_extend_str (const char *orig_value, const char *add, int to_end); | ||
16671 | void lt_update_exe_path (const char *name, const char *value); | ||
16672 | @@ -3497,14 +4301,14 @@ void lt_dump_script (FILE *f); | ||
16673 | EOF | ||
16674 | |||
16675 | cat <<EOF | ||
16676 | -const char * MAGIC_EXE = "$magic_exe"; | ||
16677 | +volatile const char * MAGIC_EXE = "$magic_exe"; | ||
16678 | const char * LIB_PATH_VARNAME = "$shlibpath_var"; | ||
16679 | EOF | ||
16680 | |||
16681 | if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then | ||
16682 | - func_to_host_pathlist "$temp_rpath" | ||
16683 | + func_to_host_path "$temp_rpath" | ||
16684 | cat <<EOF | ||
16685 | -const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result"; | ||
16686 | +const char * LIB_PATH_VALUE = "$func_to_host_path_result"; | ||
16687 | EOF | ||
16688 | else | ||
16689 | cat <<"EOF" | ||
16690 | @@ -3513,10 +4317,10 @@ EOF | ||
16691 | fi | ||
16692 | |||
16693 | if test -n "$dllsearchpath"; then | ||
16694 | - func_to_host_pathlist "$dllsearchpath:" | ||
16695 | + func_to_host_path "$dllsearchpath:" | ||
16696 | cat <<EOF | ||
16697 | const char * EXE_PATH_VARNAME = "PATH"; | ||
16698 | -const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result"; | ||
16699 | +const char * EXE_PATH_VALUE = "$func_to_host_path_result"; | ||
16700 | EOF | ||
16701 | else | ||
16702 | cat <<"EOF" | ||
16703 | @@ -3539,12 +4343,10 @@ EOF | ||
16704 | cat <<"EOF" | ||
16705 | |||
16706 | #define LTWRAPPER_OPTION_PREFIX "--lt-" | ||
16707 | -#define LTWRAPPER_OPTION_PREFIX_LENGTH 5 | ||
16708 | |||
16709 | -static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH; | ||
16710 | static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; | ||
16711 | - | ||
16712 | static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script"; | ||
16713 | +static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug"; | ||
16714 | |||
16715 | int | ||
16716 | main (int argc, char *argv[]) | ||
16717 | @@ -3561,10 +4363,13 @@ main (int argc, char *argv[]) | ||
16718 | int i; | ||
16719 | |||
16720 | program_name = (char *) xstrdup (base_name (argv[0])); | ||
16721 | - LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0])); | ||
16722 | - LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name)); | ||
16723 | + newargz = XMALLOC (char *, argc + 1); | ||
16724 | |||
16725 | - /* very simple arg parsing; don't want to rely on getopt */ | ||
16726 | + /* very simple arg parsing; don't want to rely on getopt | ||
16727 | + * also, copy all non cwrapper options to newargz, except | ||
16728 | + * argz[0], which is handled differently | ||
16729 | + */ | ||
16730 | + newargc=0; | ||
16731 | for (i = 1; i < argc; i++) | ||
16732 | { | ||
16733 | if (strcmp (argv[i], dumpscript_opt) == 0) | ||
16734 | @@ -3581,21 +4386,54 @@ EOF | ||
16735 | lt_dump_script (stdout); | ||
16736 | return 0; | ||
16737 | } | ||
16738 | + if (strcmp (argv[i], debug_opt) == 0) | ||
16739 | + { | ||
16740 | + lt_debug = 1; | ||
16741 | + continue; | ||
16742 | + } | ||
16743 | + if (strcmp (argv[i], ltwrapper_option_prefix) == 0) | ||
16744 | + { | ||
16745 | + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX | ||
16746 | + namespace, but it is not one of the ones we know about and | ||
16747 | + have already dealt with, above (inluding dump-script), then | ||
16748 | + report an error. Otherwise, targets might begin to believe | ||
16749 | + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX | ||
16750 | + namespace. The first time any user complains about this, we'll | ||
16751 | + need to make LTWRAPPER_OPTION_PREFIX a configure-time option | ||
16752 | + or a configure.ac-settable value. | ||
16753 | + */ | ||
16754 | + lt_fatal (__FILE__, __LINE__, | ||
16755 | + "unrecognized %s option: '%s'", | ||
16756 | + ltwrapper_option_prefix, argv[i]); | ||
16757 | + } | ||
16758 | + /* otherwise ... */ | ||
16759 | + newargz[++newargc] = xstrdup (argv[i]); | ||
16760 | } | ||
16761 | + newargz[++newargc] = NULL; | ||
16762 | + | ||
16763 | +EOF | ||
16764 | + cat <<EOF | ||
16765 | + /* The GNU banner must be the first non-error debug message */ | ||
16766 | + lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n"); | ||
16767 | +EOF | ||
16768 | + cat <<"EOF" | ||
16769 | + lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]); | ||
16770 | + lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name); | ||
16771 | |||
16772 | - newargz = XMALLOC (char *, argc + 1); | ||
16773 | tmp_pathspec = find_executable (argv[0]); | ||
16774 | if (tmp_pathspec == NULL) | ||
16775 | - lt_fatal ("Couldn't find %s", argv[0]); | ||
16776 | - LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n", | ||
16777 | - tmp_pathspec)); | ||
16778 | + lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]); | ||
16779 | + lt_debugprintf (__FILE__, __LINE__, | ||
16780 | + "(main) found exe (before symlink chase) at: %s\n", | ||
16781 | + tmp_pathspec); | ||
16782 | |||
16783 | actual_cwrapper_path = chase_symlinks (tmp_pathspec); | ||
16784 | - LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n", | ||
16785 | - actual_cwrapper_path)); | ||
16786 | + lt_debugprintf (__FILE__, __LINE__, | ||
16787 | + "(main) found exe (after symlink chase) at: %s\n", | ||
16788 | + actual_cwrapper_path); | ||
16789 | XFREE (tmp_pathspec); | ||
16790 | |||
16791 | - actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path)); | ||
16792 | + actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path)); | ||
16793 | strendzap (actual_cwrapper_path, actual_cwrapper_name); | ||
16794 | |||
16795 | /* wrapper name transforms */ | ||
16796 | @@ -3613,8 +4451,9 @@ EOF | ||
16797 | target_name = tmp_pathspec; | ||
16798 | tmp_pathspec = 0; | ||
16799 | |||
16800 | - LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n", | ||
16801 | - target_name)); | ||
16802 | + lt_debugprintf (__FILE__, __LINE__, | ||
16803 | + "(main) libtool target name: %s\n", | ||
16804 | + target_name); | ||
16805 | EOF | ||
16806 | |||
16807 | cat <<EOF | ||
16808 | @@ -3664,35 +4503,19 @@ EOF | ||
16809 | |||
16810 | lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ | ||
16811 | lt_setenv ("DUALCASE", "1"); /* for MSK sh */ | ||
16812 | - lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); | ||
16813 | + /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must | ||
16814 | + be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath) | ||
16815 | + because on Windows, both *_VARNAMEs are PATH but uninstalled | ||
16816 | + libraries must come first. */ | ||
16817 | lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); | ||
16818 | + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); | ||
16819 | |||
16820 | - newargc=0; | ||
16821 | - for (i = 1; i < argc; i++) | ||
16822 | - { | ||
16823 | - if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0) | ||
16824 | - { | ||
16825 | - /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX | ||
16826 | - namespace, but it is not one of the ones we know about and | ||
16827 | - have already dealt with, above (inluding dump-script), then | ||
16828 | - report an error. Otherwise, targets might begin to believe | ||
16829 | - they are allowed to use options in the LTWRAPPER_OPTION_PREFIX | ||
16830 | - namespace. The first time any user complains about this, we'll | ||
16831 | - need to make LTWRAPPER_OPTION_PREFIX a configure-time option | ||
16832 | - or a configure.ac-settable value. | ||
16833 | - */ | ||
16834 | - lt_fatal ("Unrecognized option in %s namespace: '%s'", | ||
16835 | - ltwrapper_option_prefix, argv[i]); | ||
16836 | - } | ||
16837 | - /* otherwise ... */ | ||
16838 | - newargz[++newargc] = xstrdup (argv[i]); | ||
16839 | - } | ||
16840 | - newargz[++newargc] = NULL; | ||
16841 | - | ||
16842 | - LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>"))); | ||
16843 | + lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n", | ||
16844 | + nonnull (lt_argv_zero)); | ||
16845 | for (i = 0; i < newargc; i++) | ||
16846 | { | ||
16847 | - LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>"))); | ||
16848 | + lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n", | ||
16849 | + i, nonnull (newargz[i])); | ||
16850 | } | ||
16851 | |||
16852 | EOF | ||
16853 | @@ -3706,7 +4529,9 @@ EOF | ||
16854 | if (rval == -1) | ||
16855 | { | ||
16856 | /* failed to start process */ | ||
16857 | - LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); | ||
16858 | + lt_debugprintf (__FILE__, __LINE__, | ||
16859 | + "(main) failed to launch target \"%s\": %s\n", | ||
16860 | + lt_argv_zero, nonnull (strerror (errno))); | ||
16861 | return 127; | ||
16862 | } | ||
16863 | return rval; | ||
16864 | @@ -3728,7 +4553,7 @@ xmalloc (size_t num) | ||
16865 | { | ||
16866 | void *p = (void *) malloc (num); | ||
16867 | if (!p) | ||
16868 | - lt_fatal ("Memory exhausted"); | ||
16869 | + lt_fatal (__FILE__, __LINE__, "memory exhausted"); | ||
16870 | |||
16871 | return p; | ||
16872 | } | ||
16873 | @@ -3762,8 +4587,8 @@ check_executable (const char *path) | ||
16874 | { | ||
16875 | struct stat st; | ||
16876 | |||
16877 | - LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", | ||
16878 | - path ? (*path ? path : "EMPTY!") : "NULL!")); | ||
16879 | + lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n", | ||
16880 | + nonempty (path)); | ||
16881 | if ((!path) || (!*path)) | ||
16882 | return 0; | ||
16883 | |||
16884 | @@ -3780,8 +4605,8 @@ make_executable (const char *path) | ||
16885 | int rval = 0; | ||
16886 | struct stat st; | ||
16887 | |||
16888 | - LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", | ||
16889 | - path ? (*path ? path : "EMPTY!") : "NULL!")); | ||
16890 | + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", | ||
16891 | + nonempty (path)); | ||
16892 | if ((!path) || (!*path)) | ||
16893 | return 0; | ||
16894 | |||
16895 | @@ -3807,8 +4632,8 @@ find_executable (const char *wrapper) | ||
16896 | int tmp_len; | ||
16897 | char *concat_name; | ||
16898 | |||
16899 | - LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", | ||
16900 | - wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); | ||
16901 | + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", | ||
16902 | + nonempty (wrapper)); | ||
16903 | |||
16904 | if ((wrapper == NULL) || (*wrapper == '\0')) | ||
16905 | return NULL; | ||
16906 | @@ -3861,7 +4686,8 @@ find_executable (const char *wrapper) | ||
16907 | { | ||
16908 | /* empty path: current directory */ | ||
16909 | if (getcwd (tmp, LT_PATHMAX) == NULL) | ||
16910 | - lt_fatal ("getcwd failed"); | ||
16911 | + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | ||
16912 | + nonnull (strerror (errno))); | ||
16913 | tmp_len = strlen (tmp); | ||
16914 | concat_name = | ||
16915 | XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); | ||
16916 | @@ -3886,7 +4712,8 @@ find_executable (const char *wrapper) | ||
16917 | } | ||
16918 | /* Relative path | not found in path: prepend cwd */ | ||
16919 | if (getcwd (tmp, LT_PATHMAX) == NULL) | ||
16920 | - lt_fatal ("getcwd failed"); | ||
16921 | + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | ||
16922 | + nonnull (strerror (errno))); | ||
16923 | tmp_len = strlen (tmp); | ||
16924 | concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); | ||
16925 | memcpy (concat_name, tmp, tmp_len); | ||
16926 | @@ -3912,8 +4739,9 @@ chase_symlinks (const char *pathspec) | ||
16927 | int has_symlinks = 0; | ||
16928 | while (strlen (tmp_pathspec) && !has_symlinks) | ||
16929 | { | ||
16930 | - LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", | ||
16931 | - tmp_pathspec)); | ||
16932 | + lt_debugprintf (__FILE__, __LINE__, | ||
16933 | + "checking path component for symlinks: %s\n", | ||
16934 | + tmp_pathspec); | ||
16935 | if (lstat (tmp_pathspec, &s) == 0) | ||
16936 | { | ||
16937 | if (S_ISLNK (s.st_mode) != 0) | ||
16938 | @@ -3935,8 +4763,9 @@ chase_symlinks (const char *pathspec) | ||
16939 | } | ||
16940 | else | ||
16941 | { | ||
16942 | - char *errstr = strerror (errno); | ||
16943 | - lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); | ||
16944 | + lt_fatal (__FILE__, __LINE__, | ||
16945 | + "error accessing file \"%s\": %s", | ||
16946 | + tmp_pathspec, nonnull (strerror (errno))); | ||
16947 | } | ||
16948 | } | ||
16949 | XFREE (tmp_pathspec); | ||
16950 | @@ -3949,7 +4778,8 @@ chase_symlinks (const char *pathspec) | ||
16951 | tmp_pathspec = realpath (pathspec, buf); | ||
16952 | if (tmp_pathspec == 0) | ||
16953 | { | ||
16954 | - lt_fatal ("Could not follow symlinks for %s", pathspec); | ||
16955 | + lt_fatal (__FILE__, __LINE__, | ||
16956 | + "could not follow symlinks for %s", pathspec); | ||
16957 | } | ||
16958 | return xstrdup (tmp_pathspec); | ||
16959 | #endif | ||
16960 | @@ -3975,11 +4805,25 @@ strendzap (char *str, const char *pat) | ||
16961 | return str; | ||
16962 | } | ||
16963 | |||
16964 | +void | ||
16965 | +lt_debugprintf (const char *file, int line, const char *fmt, ...) | ||
16966 | +{ | ||
16967 | + va_list args; | ||
16968 | + if (lt_debug) | ||
16969 | + { | ||
16970 | + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); | ||
16971 | + va_start (args, fmt); | ||
16972 | + (void) vfprintf (stderr, fmt, args); | ||
16973 | + va_end (args); | ||
16974 | + } | ||
16975 | +} | ||
16976 | + | ||
16977 | static void | ||
16978 | -lt_error_core (int exit_status, const char *mode, | ||
16979 | +lt_error_core (int exit_status, const char *file, | ||
16980 | + int line, const char *mode, | ||
16981 | const char *message, va_list ap) | ||
16982 | { | ||
16983 | - fprintf (stderr, "%s: %s: ", program_name, mode); | ||
16984 | + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); | ||
16985 | vfprintf (stderr, message, ap); | ||
16986 | fprintf (stderr, ".\n"); | ||
16987 | |||
16988 | @@ -3988,20 +4832,32 @@ lt_error_core (int exit_status, const char *mode, | ||
16989 | } | ||
16990 | |||
16991 | void | ||
16992 | -lt_fatal (const char *message, ...) | ||
16993 | +lt_fatal (const char *file, int line, const char *message, ...) | ||
16994 | { | ||
16995 | va_list ap; | ||
16996 | va_start (ap, message); | ||
16997 | - lt_error_core (EXIT_FAILURE, "FATAL", message, ap); | ||
16998 | + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); | ||
16999 | va_end (ap); | ||
17000 | } | ||
17001 | |||
17002 | +static const char * | ||
17003 | +nonnull (const char *s) | ||
17004 | +{ | ||
17005 | + return s ? s : "(null)"; | ||
17006 | +} | ||
17007 | + | ||
17008 | +static const char * | ||
17009 | +nonempty (const char *s) | ||
17010 | +{ | ||
17011 | + return (s && !*s) ? "(empty)" : nonnull (s); | ||
17012 | +} | ||
17013 | + | ||
17014 | void | ||
17015 | lt_setenv (const char *name, const char *value) | ||
17016 | { | ||
17017 | - LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", | ||
17018 | - (name ? name : "<NULL>"), | ||
17019 | - (value ? value : "<NULL>"))); | ||
17020 | + lt_debugprintf (__FILE__, __LINE__, | ||
17021 | + "(lt_setenv) setting '%s' to '%s'\n", | ||
17022 | + nonnull (name), nonnull (value)); | ||
17023 | { | ||
17024 | #ifdef HAVE_SETENV | ||
17025 | /* always make a copy, for consistency with !HAVE_SETENV */ | ||
17026 | @@ -4049,9 +4905,9 @@ lt_extend_str (const char *orig_value, const char *add, int to_end) | ||
17027 | void | ||
17028 | lt_update_exe_path (const char *name, const char *value) | ||
17029 | { | ||
17030 | - LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", | ||
17031 | - (name ? name : "<NULL>"), | ||
17032 | - (value ? value : "<NULL>"))); | ||
17033 | + lt_debugprintf (__FILE__, __LINE__, | ||
17034 | + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", | ||
17035 | + nonnull (name), nonnull (value)); | ||
17036 | |||
17037 | if (name && *name && value && *value) | ||
17038 | { | ||
17039 | @@ -4070,9 +4926,9 @@ lt_update_exe_path (const char *name, const char *value) | ||
17040 | void | ||
17041 | lt_update_lib_path (const char *name, const char *value) | ||
17042 | { | ||
17043 | - LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", | ||
17044 | - (name ? name : "<NULL>"), | ||
17045 | - (value ? value : "<NULL>"))); | ||
17046 | + lt_debugprintf (__FILE__, __LINE__, | ||
17047 | + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", | ||
17048 | + nonnull (name), nonnull (value)); | ||
17049 | |||
17050 | if (name && *name && value && *value) | ||
17051 | { | ||
17052 | @@ -4222,7 +5078,7 @@ EOF | ||
17053 | func_win32_import_lib_p () | ||
17054 | { | ||
17055 | $opt_debug | ||
17056 | - case `eval "$file_magic_cmd \"\$1\" 2>/dev/null" | $SED -e 10q` in | ||
17057 | + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in | ||
17058 | *import*) : ;; | ||
17059 | *) false ;; | ||
17060 | esac | ||
17061 | @@ -4401,9 +5257,9 @@ func_mode_link () | ||
17062 | ;; | ||
17063 | *) | ||
17064 | if test "$prev" = dlfiles; then | ||
17065 | - dlfiles="$dlfiles $arg" | ||
17066 | + func_append dlfiles " $arg" | ||
17067 | else | ||
17068 | - dlprefiles="$dlprefiles $arg" | ||
17069 | + func_append dlprefiles " $arg" | ||
17070 | fi | ||
17071 | prev= | ||
17072 | continue | ||
17073 | @@ -4427,7 +5283,7 @@ func_mode_link () | ||
17074 | *-*-darwin*) | ||
17075 | case "$deplibs " in | ||
17076 | *" $qarg.ltframework "*) ;; | ||
17077 | - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later | ||
17078 | + *) func_append deplibs " $qarg.ltframework" # this is fixed later | ||
17079 | ;; | ||
17080 | esac | ||
17081 | ;; | ||
17082 | @@ -4446,7 +5302,7 @@ func_mode_link () | ||
17083 | moreargs= | ||
17084 | for fil in `cat "$save_arg"` | ||
17085 | do | ||
17086 | -# moreargs="$moreargs $fil" | ||
17087 | +# func_append moreargs " $fil" | ||
17088 | arg=$fil | ||
17089 | # A libtool-controlled object. | ||
17090 | |||
17091 | @@ -4475,7 +5331,7 @@ func_mode_link () | ||
17092 | |||
17093 | if test "$prev" = dlfiles; then | ||
17094 | if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then | ||
17095 | - dlfiles="$dlfiles $pic_object" | ||
17096 | + func_append dlfiles " $pic_object" | ||
17097 | prev= | ||
17098 | continue | ||
17099 | else | ||
17100 | @@ -4487,7 +5343,7 @@ func_mode_link () | ||
17101 | # CHECK ME: I think I busted this. -Ossama | ||
17102 | if test "$prev" = dlprefiles; then | ||
17103 | # Preload the old-style object. | ||
17104 | - dlprefiles="$dlprefiles $pic_object" | ||
17105 | + func_append dlprefiles " $pic_object" | ||
17106 | prev= | ||
17107 | fi | ||
17108 | |||
17109 | @@ -4557,12 +5413,12 @@ func_mode_link () | ||
17110 | if test "$prev" = rpath; then | ||
17111 | case "$rpath " in | ||
17112 | *" $arg "*) ;; | ||
17113 | - *) rpath="$rpath $arg" ;; | ||
17114 | + *) func_append rpath " $arg" ;; | ||
17115 | esac | ||
17116 | else | ||
17117 | case "$xrpath " in | ||
17118 | *" $arg "*) ;; | ||
17119 | - *) xrpath="$xrpath $arg" ;; | ||
17120 | + *) func_append xrpath " $arg" ;; | ||
17121 | esac | ||
17122 | fi | ||
17123 | prev= | ||
17124 | @@ -4574,28 +5430,28 @@ func_mode_link () | ||
17125 | continue | ||
17126 | ;; | ||
17127 | weak) | ||
17128 | - weak_libs="$weak_libs $arg" | ||
17129 | + func_append weak_libs " $arg" | ||
17130 | prev= | ||
17131 | continue | ||
17132 | ;; | ||
17133 | xcclinker) | ||
17134 | - linker_flags="$linker_flags $qarg" | ||
17135 | - compiler_flags="$compiler_flags $qarg" | ||
17136 | + func_append linker_flags " $qarg" | ||
17137 | + func_append compiler_flags " $qarg" | ||
17138 | prev= | ||
17139 | func_append compile_command " $qarg" | ||
17140 | func_append finalize_command " $qarg" | ||
17141 | continue | ||
17142 | ;; | ||
17143 | xcompiler) | ||
17144 | - compiler_flags="$compiler_flags $qarg" | ||
17145 | + func_append compiler_flags " $qarg" | ||
17146 | prev= | ||
17147 | func_append compile_command " $qarg" | ||
17148 | func_append finalize_command " $qarg" | ||
17149 | continue | ||
17150 | ;; | ||
17151 | xlinker) | ||
17152 | - linker_flags="$linker_flags $qarg" | ||
17153 | - compiler_flags="$compiler_flags $wl$qarg" | ||
17154 | + func_append linker_flags " $qarg" | ||
17155 | + func_append compiler_flags " $wl$qarg" | ||
17156 | prev= | ||
17157 | func_append compile_command " $wl$qarg" | ||
17158 | func_append finalize_command " $wl$qarg" | ||
17159 | @@ -4686,15 +5542,16 @@ func_mode_link () | ||
17160 | ;; | ||
17161 | |||
17162 | -L*) | ||
17163 | - func_stripname '-L' '' "$arg" | ||
17164 | - dir=$func_stripname_result | ||
17165 | - if test -z "$dir"; then | ||
17166 | + func_stripname "-L" '' "$arg" | ||
17167 | + if test -z "$func_stripname_result"; then | ||
17168 | if test "$#" -gt 0; then | ||
17169 | func_fatal_error "require no space between \`-L' and \`$1'" | ||
17170 | else | ||
17171 | func_fatal_error "need path for \`-L' option" | ||
17172 | fi | ||
17173 | fi | ||
17174 | + func_resolve_sysroot "$func_stripname_result" | ||
17175 | + dir=$func_resolve_sysroot_result | ||
17176 | # We need an absolute path. | ||
17177 | case $dir in | ||
17178 | [\\/]* | [A-Za-z]:[\\/]*) ;; | ||
17179 | @@ -4706,10 +5563,16 @@ func_mode_link () | ||
17180 | ;; | ||
17181 | esac | ||
17182 | case "$deplibs " in | ||
17183 | - *" -L$dir "*) ;; | ||
17184 | + *" -L$dir "* | *" $arg "*) | ||
17185 | + # Will only happen for absolute or sysroot arguments | ||
17186 | + ;; | ||
17187 | *) | ||
17188 | - deplibs="$deplibs -L$dir" | ||
17189 | - lib_search_path="$lib_search_path $dir" | ||
17190 | + # Preserve sysroot, but never include relative directories | ||
17191 | + case $dir in | ||
17192 | + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; | ||
17193 | + *) func_append deplibs " -L$dir" ;; | ||
17194 | + esac | ||
17195 | + func_append lib_search_path " $dir" | ||
17196 | ;; | ||
17197 | esac | ||
17198 | case $host in | ||
17199 | @@ -4718,12 +5581,12 @@ func_mode_link () | ||
17200 | case :$dllsearchpath: in | ||
17201 | *":$dir:"*) ;; | ||
17202 | ::) dllsearchpath=$dir;; | ||
17203 | - *) dllsearchpath="$dllsearchpath:$dir";; | ||
17204 | + *) func_append dllsearchpath ":$dir";; | ||
17205 | esac | ||
17206 | case :$dllsearchpath: in | ||
17207 | *":$testbindir:"*) ;; | ||
17208 | ::) dllsearchpath=$testbindir;; | ||
17209 | - *) dllsearchpath="$dllsearchpath:$testbindir";; | ||
17210 | + *) func_append dllsearchpath ":$testbindir";; | ||
17211 | esac | ||
17212 | ;; | ||
17213 | esac | ||
17214 | @@ -4747,7 +5610,7 @@ func_mode_link () | ||
17215 | ;; | ||
17216 | *-*-rhapsody* | *-*-darwin1.[012]) | ||
17217 | # Rhapsody C and math libraries are in the System framework | ||
17218 | - deplibs="$deplibs System.ltframework" | ||
17219 | + func_append deplibs " System.ltframework" | ||
17220 | continue | ||
17221 | ;; | ||
17222 | *-*-sco3.2v5* | *-*-sco5v6*) | ||
17223 | @@ -4758,9 +5621,6 @@ func_mode_link () | ||
17224 | # Compiler inserts libc in the correct place for threads to work | ||
17225 | test "X$arg" = "X-lc" && continue | ||
17226 | ;; | ||
17227 | - *-*-linux*) | ||
17228 | - test "X$arg" = "X-lc" && continue | ||
17229 | - ;; | ||
17230 | esac | ||
17231 | elif test "X$arg" = "X-lc_r"; then | ||
17232 | case $host in | ||
17233 | @@ -4770,7 +5630,7 @@ func_mode_link () | ||
17234 | ;; | ||
17235 | esac | ||
17236 | fi | ||
17237 | - deplibs="$deplibs $arg" | ||
17238 | + func_append deplibs " $arg" | ||
17239 | continue | ||
17240 | ;; | ||
17241 | |||
17242 | @@ -4782,8 +5642,8 @@ func_mode_link () | ||
17243 | # Tru64 UNIX uses -model [arg] to determine the layout of C++ | ||
17244 | # classes, name mangling, and exception handling. | ||
17245 | # Darwin uses the -arch flag to determine output architecture. | ||
17246 | - -model|-arch|-isysroot) | ||
17247 | - compiler_flags="$compiler_flags $arg" | ||
17248 | + -model|-arch|-isysroot|--sysroot) | ||
17249 | + func_append compiler_flags " $arg" | ||
17250 | func_append compile_command " $arg" | ||
17251 | func_append finalize_command " $arg" | ||
17252 | prev=xcompiler | ||
17253 | @@ -4791,12 +5651,12 @@ func_mode_link () | ||
17254 | ;; | ||
17255 | |||
17256 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) | ||
17257 | - compiler_flags="$compiler_flags $arg" | ||
17258 | + func_append compiler_flags " $arg" | ||
17259 | func_append compile_command " $arg" | ||
17260 | func_append finalize_command " $arg" | ||
17261 | case "$new_inherited_linker_flags " in | ||
17262 | *" $arg "*) ;; | ||
17263 | - * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; | ||
17264 | + * ) func_append new_inherited_linker_flags " $arg" ;; | ||
17265 | esac | ||
17266 | continue | ||
17267 | ;; | ||
17268 | @@ -4863,13 +5723,17 @@ func_mode_link () | ||
17269 | # We need an absolute path. | ||
17270 | case $dir in | ||
17271 | [\\/]* | [A-Za-z]:[\\/]*) ;; | ||
17272 | + =*) | ||
17273 | + func_stripname '=' '' "$dir" | ||
17274 | + dir=$lt_sysroot$func_stripname_result | ||
17275 | + ;; | ||
17276 | *) | ||
17277 | func_fatal_error "only absolute run-paths are allowed" | ||
17278 | ;; | ||
17279 | esac | ||
17280 | case "$xrpath " in | ||
17281 | *" $dir "*) ;; | ||
17282 | - *) xrpath="$xrpath $dir" ;; | ||
17283 | + *) func_append xrpath " $dir" ;; | ||
17284 | esac | ||
17285 | continue | ||
17286 | ;; | ||
17287 | @@ -4922,8 +5786,8 @@ func_mode_link () | ||
17288 | for flag in $args; do | ||
17289 | IFS="$save_ifs" | ||
17290 | func_quote_for_eval "$flag" | ||
17291 | - arg="$arg $func_quote_for_eval_result" | ||
17292 | - compiler_flags="$compiler_flags $func_quote_for_eval_result" | ||
17293 | + func_append arg " $func_quote_for_eval_result" | ||
17294 | + func_append compiler_flags " $func_quote_for_eval_result" | ||
17295 | done | ||
17296 | IFS="$save_ifs" | ||
17297 | func_stripname ' ' '' "$arg" | ||
17298 | @@ -4938,9 +5802,9 @@ func_mode_link () | ||
17299 | for flag in $args; do | ||
17300 | IFS="$save_ifs" | ||
17301 | func_quote_for_eval "$flag" | ||
17302 | - arg="$arg $wl$func_quote_for_eval_result" | ||
17303 | - compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" | ||
17304 | - linker_flags="$linker_flags $func_quote_for_eval_result" | ||
17305 | + func_append arg " $wl$func_quote_for_eval_result" | ||
17306 | + func_append compiler_flags " $wl$func_quote_for_eval_result" | ||
17307 | + func_append linker_flags " $func_quote_for_eval_result" | ||
17308 | done | ||
17309 | IFS="$save_ifs" | ||
17310 | func_stripname ' ' '' "$arg" | ||
17311 | @@ -4968,24 +5832,27 @@ func_mode_link () | ||
17312 | arg="$func_quote_for_eval_result" | ||
17313 | ;; | ||
17314 | |||
17315 | - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler | ||
17316 | - # -r[0-9][0-9]* specifies the processor on the SGI compiler | ||
17317 | - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler | ||
17318 | - # +DA*, +DD* enable 64-bit mode on the HP compiler | ||
17319 | - # -q* pass through compiler args for the IBM compiler | ||
17320 | - # -m*, -t[45]*, -txscale* pass through architecture-specific | ||
17321 | - # compiler args for GCC | ||
17322 | - # -F/path gives path to uninstalled frameworks, gcc on darwin | ||
17323 | - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC | ||
17324 | - # @file GCC response files | ||
17325 | - # -tp=* Portland pgcc target processor selection | ||
17326 | + # Flags to be passed through unchanged, with rationale: | ||
17327 | + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler | ||
17328 | + # -r[0-9][0-9]* specify processor for the SGI compiler | ||
17329 | + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler | ||
17330 | + # +DA*, +DD* enable 64-bit mode for the HP compiler | ||
17331 | + # -q* compiler args for the IBM compiler | ||
17332 | + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC | ||
17333 | + # -F/path path to uninstalled frameworks, gcc on darwin | ||
17334 | + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC | ||
17335 | + # @file GCC response files | ||
17336 | + # -tp=* Portland pgcc target processor selection | ||
17337 | + # --sysroot=* for sysroot support | ||
17338 | + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization | ||
17339 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ | ||
17340 | - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*) | ||
17341 | + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | ||
17342 | + -O*|-flto*|-fwhopr*|-fuse-linker-plugin) | ||
17343 | func_quote_for_eval "$arg" | ||
17344 | arg="$func_quote_for_eval_result" | ||
17345 | func_append compile_command " $arg" | ||
17346 | func_append finalize_command " $arg" | ||
17347 | - compiler_flags="$compiler_flags $arg" | ||
17348 | + func_append compiler_flags " $arg" | ||
17349 | continue | ||
17350 | ;; | ||
17351 | |||
17352 | @@ -4997,7 +5864,7 @@ func_mode_link () | ||
17353 | |||
17354 | *.$objext) | ||
17355 | # A standard object. | ||
17356 | - objs="$objs $arg" | ||
17357 | + func_append objs " $arg" | ||
17358 | ;; | ||
17359 | |||
17360 | *.lo) | ||
17361 | @@ -5028,7 +5895,7 @@ func_mode_link () | ||
17362 | |||
17363 | if test "$prev" = dlfiles; then | ||
17364 | if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then | ||
17365 | - dlfiles="$dlfiles $pic_object" | ||
17366 | + func_append dlfiles " $pic_object" | ||
17367 | prev= | ||
17368 | continue | ||
17369 | else | ||
17370 | @@ -5040,7 +5907,7 @@ func_mode_link () | ||
17371 | # CHECK ME: I think I busted this. -Ossama | ||
17372 | if test "$prev" = dlprefiles; then | ||
17373 | # Preload the old-style object. | ||
17374 | - dlprefiles="$dlprefiles $pic_object" | ||
17375 | + func_append dlprefiles " $pic_object" | ||
17376 | prev= | ||
17377 | fi | ||
17378 | |||
17379 | @@ -5085,24 +5952,25 @@ func_mode_link () | ||
17380 | |||
17381 | *.$libext) | ||
17382 | # An archive. | ||
17383 | - deplibs="$deplibs $arg" | ||
17384 | - old_deplibs="$old_deplibs $arg" | ||
17385 | + func_append deplibs " $arg" | ||
17386 | + func_append old_deplibs " $arg" | ||
17387 | continue | ||
17388 | ;; | ||
17389 | |||
17390 | *.la) | ||
17391 | # A libtool-controlled library. | ||
17392 | |||
17393 | + func_resolve_sysroot "$arg" | ||
17394 | if test "$prev" = dlfiles; then | ||
17395 | # This library was specified with -dlopen. | ||
17396 | - dlfiles="$dlfiles $arg" | ||
17397 | + func_append dlfiles " $func_resolve_sysroot_result" | ||
17398 | prev= | ||
17399 | elif test "$prev" = dlprefiles; then | ||
17400 | # The library was specified with -dlpreopen. | ||
17401 | - dlprefiles="$dlprefiles $arg" | ||
17402 | + func_append dlprefiles " $func_resolve_sysroot_result" | ||
17403 | prev= | ||
17404 | else | ||
17405 | - deplibs="$deplibs $arg" | ||
17406 | + func_append deplibs " $func_resolve_sysroot_result" | ||
17407 | fi | ||
17408 | continue | ||
17409 | ;; | ||
17410 | @@ -5127,7 +5995,7 @@ func_mode_link () | ||
17411 | func_fatal_help "the \`$prevarg' option requires an argument" | ||
17412 | |||
17413 | if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then | ||
17414 | - eval "arg=\"$export_dynamic_flag_spec\"" | ||
17415 | + eval arg=\"$export_dynamic_flag_spec\" | ||
17416 | func_append compile_command " $arg" | ||
17417 | func_append finalize_command " $arg" | ||
17418 | fi | ||
17419 | @@ -5144,11 +6012,13 @@ func_mode_link () | ||
17420 | else | ||
17421 | shlib_search_path= | ||
17422 | fi | ||
17423 | - eval "sys_lib_search_path=\"$sys_lib_search_path_spec\"" | ||
17424 | - eval "sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"" | ||
17425 | + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" | ||
17426 | + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" | ||
17427 | |||
17428 | func_dirname "$output" "/" "" | ||
17429 | output_objdir="$func_dirname_result$objdir" | ||
17430 | + func_to_tool_file "$output_objdir/" | ||
17431 | + tool_output_objdir=$func_to_tool_file_result | ||
17432 | # Create the object directory. | ||
17433 | func_mkdir_p "$output_objdir" | ||
17434 | |||
17435 | @@ -5169,12 +6039,12 @@ func_mode_link () | ||
17436 | # Find all interdependent deplibs by searching for libraries | ||
17437 | # that are linked more than once (e.g. -la -lb -la) | ||
17438 | for deplib in $deplibs; do | ||
17439 | - if $opt_duplicate_deps ; then | ||
17440 | + if $opt_preserve_dup_deps ; then | ||
17441 | case "$libs " in | ||
17442 | - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | ||
17443 | + *" $deplib "*) func_append specialdeplibs " $deplib" ;; | ||
17444 | esac | ||
17445 | fi | ||
17446 | - libs="$libs $deplib" | ||
17447 | + func_append libs " $deplib" | ||
17448 | done | ||
17449 | |||
17450 | if test "$linkmode" = lib; then | ||
17451 | @@ -5187,9 +6057,9 @@ func_mode_link () | ||
17452 | if $opt_duplicate_compiler_generated_deps; then | ||
17453 | for pre_post_dep in $predeps $postdeps; do | ||
17454 | case "$pre_post_deps " in | ||
17455 | - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; | ||
17456 | + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; | ||
17457 | esac | ||
17458 | - pre_post_deps="$pre_post_deps $pre_post_dep" | ||
17459 | + func_append pre_post_deps " $pre_post_dep" | ||
17460 | done | ||
17461 | fi | ||
17462 | pre_post_deps= | ||
17463 | @@ -5256,8 +6126,9 @@ func_mode_link () | ||
17464 | for lib in $dlprefiles; do | ||
17465 | # Ignore non-libtool-libs | ||
17466 | dependency_libs= | ||
17467 | + func_resolve_sysroot "$lib" | ||
17468 | case $lib in | ||
17469 | - *.la) func_source "$lib" ;; | ||
17470 | + *.la) func_source "$func_resolve_sysroot_result" ;; | ||
17471 | esac | ||
17472 | |||
17473 | # Collect preopened libtool deplibs, except any this library | ||
17474 | @@ -5267,7 +6138,7 @@ func_mode_link () | ||
17475 | deplib_base=$func_basename_result | ||
17476 | case " $weak_libs " in | ||
17477 | *" $deplib_base "*) ;; | ||
17478 | - *) deplibs="$deplibs $deplib" ;; | ||
17479 | + *) func_append deplibs " $deplib" ;; | ||
17480 | esac | ||
17481 | done | ||
17482 | done | ||
17483 | @@ -5288,11 +6159,11 @@ func_mode_link () | ||
17484 | compile_deplibs="$deplib $compile_deplibs" | ||
17485 | finalize_deplibs="$deplib $finalize_deplibs" | ||
17486 | else | ||
17487 | - compiler_flags="$compiler_flags $deplib" | ||
17488 | + func_append compiler_flags " $deplib" | ||
17489 | if test "$linkmode" = lib ; then | ||
17490 | case "$new_inherited_linker_flags " in | ||
17491 | *" $deplib "*) ;; | ||
17492 | - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; | ||
17493 | + * ) func_append new_inherited_linker_flags " $deplib" ;; | ||
17494 | esac | ||
17495 | fi | ||
17496 | fi | ||
17497 | @@ -5377,7 +6248,7 @@ func_mode_link () | ||
17498 | if test "$linkmode" = lib ; then | ||
17499 | case "$new_inherited_linker_flags " in | ||
17500 | *" $deplib "*) ;; | ||
17501 | - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; | ||
17502 | + * ) func_append new_inherited_linker_flags " $deplib" ;; | ||
17503 | esac | ||
17504 | fi | ||
17505 | fi | ||
17506 | @@ -5390,7 +6261,8 @@ func_mode_link () | ||
17507 | test "$pass" = conv && continue | ||
17508 | newdependency_libs="$deplib $newdependency_libs" | ||
17509 | func_stripname '-L' '' "$deplib" | ||
17510 | - newlib_search_path="$newlib_search_path $func_stripname_result" | ||
17511 | + func_resolve_sysroot "$func_stripname_result" | ||
17512 | + func_append newlib_search_path " $func_resolve_sysroot_result" | ||
17513 | ;; | ||
17514 | prog) | ||
17515 | if test "$pass" = conv; then | ||
17516 | @@ -5404,7 +6276,8 @@ func_mode_link () | ||
17517 | finalize_deplibs="$deplib $finalize_deplibs" | ||
17518 | fi | ||
17519 | func_stripname '-L' '' "$deplib" | ||
17520 | - newlib_search_path="$newlib_search_path $func_stripname_result" | ||
17521 | + func_resolve_sysroot "$func_stripname_result" | ||
17522 | + func_append newlib_search_path " $func_resolve_sysroot_result" | ||
17523 | ;; | ||
17524 | *) | ||
17525 | func_warning "\`-L' is ignored for archives/objects" | ||
17526 | @@ -5415,17 +6288,21 @@ func_mode_link () | ||
17527 | -R*) | ||
17528 | if test "$pass" = link; then | ||
17529 | func_stripname '-R' '' "$deplib" | ||
17530 | - dir=$func_stripname_result | ||
17531 | + func_resolve_sysroot "$func_stripname_result" | ||
17532 | + dir=$func_resolve_sysroot_result | ||
17533 | # Make sure the xrpath contains only unique directories. | ||
17534 | case "$xrpath " in | ||
17535 | *" $dir "*) ;; | ||
17536 | - *) xrpath="$xrpath $dir" ;; | ||
17537 | + *) func_append xrpath " $dir" ;; | ||
17538 | esac | ||
17539 | fi | ||
17540 | deplibs="$deplib $deplibs" | ||
17541 | continue | ||
17542 | ;; | ||
17543 | - *.la) lib="$deplib" ;; | ||
17544 | + *.la) | ||
17545 | + func_resolve_sysroot "$deplib" | ||
17546 | + lib=$func_resolve_sysroot_result | ||
17547 | + ;; | ||
17548 | *.$libext) | ||
17549 | if test "$pass" = conv; then | ||
17550 | deplibs="$deplib $deplibs" | ||
17551 | @@ -5488,11 +6365,11 @@ func_mode_link () | ||
17552 | if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then | ||
17553 | # If there is no dlopen support or we're linking statically, | ||
17554 | # we need to preload. | ||
17555 | - newdlprefiles="$newdlprefiles $deplib" | ||
17556 | + func_append newdlprefiles " $deplib" | ||
17557 | compile_deplibs="$deplib $compile_deplibs" | ||
17558 | finalize_deplibs="$deplib $finalize_deplibs" | ||
17559 | else | ||
17560 | - newdlfiles="$newdlfiles $deplib" | ||
17561 | + func_append newdlfiles " $deplib" | ||
17562 | fi | ||
17563 | fi | ||
17564 | continue | ||
17565 | @@ -5538,7 +6415,7 @@ func_mode_link () | ||
17566 | for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do | ||
17567 | case " $new_inherited_linker_flags " in | ||
17568 | *" $tmp_inherited_linker_flag "*) ;; | ||
17569 | - *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; | ||
17570 | + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; | ||
17571 | esac | ||
17572 | done | ||
17573 | fi | ||
17574 | @@ -5546,8 +6423,8 @@ func_mode_link () | ||
17575 | if test "$linkmode,$pass" = "lib,link" || | ||
17576 | test "$linkmode,$pass" = "prog,scan" || | ||
17577 | { test "$linkmode" != prog && test "$linkmode" != lib; }; then | ||
17578 | - test -n "$dlopen" && dlfiles="$dlfiles $dlopen" | ||
17579 | - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" | ||
17580 | + test -n "$dlopen" && func_append dlfiles " $dlopen" | ||
17581 | + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" | ||
17582 | fi | ||
17583 | |||
17584 | if test "$pass" = conv; then | ||
17585 | @@ -5558,20 +6435,20 @@ func_mode_link () | ||
17586 | func_fatal_error "cannot find name of link library for \`$lib'" | ||
17587 | fi | ||
17588 | # It is a libtool convenience library, so add in its objects. | ||
17589 | - convenience="$convenience $ladir/$objdir/$old_library" | ||
17590 | - old_convenience="$old_convenience $ladir/$objdir/$old_library" | ||
17591 | + func_append convenience " $ladir/$objdir/$old_library" | ||
17592 | + func_append old_convenience " $ladir/$objdir/$old_library" | ||
17593 | elif test "$linkmode" != prog && test "$linkmode" != lib; then | ||
17594 | func_fatal_error "\`$lib' is not a convenience library" | ||
17595 | fi | ||
17596 | tmp_libs= | ||
17597 | for deplib in $dependency_libs; do | ||
17598 | deplibs="$deplib $deplibs" | ||
17599 | - if $opt_duplicate_deps ; then | ||
17600 | + if $opt_preserve_dup_deps ; then | ||
17601 | case "$tmp_libs " in | ||
17602 | - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | ||
17603 | + *" $deplib "*) func_append specialdeplibs " $deplib" ;; | ||
17604 | esac | ||
17605 | fi | ||
17606 | - tmp_libs="$tmp_libs $deplib" | ||
17607 | + func_append tmp_libs " $deplib" | ||
17608 | done | ||
17609 | continue | ||
17610 | fi # $pass = conv | ||
17611 | @@ -5579,9 +6456,15 @@ func_mode_link () | ||
17612 | |||
17613 | # Get the name of the library we link against. | ||
17614 | linklib= | ||
17615 | - for l in $old_library $library_names; do | ||
17616 | - linklib="$l" | ||
17617 | - done | ||
17618 | + if test -n "$old_library" && | ||
17619 | + { test "$prefer_static_libs" = yes || | ||
17620 | + test "$prefer_static_libs,$installed" = "built,no"; }; then | ||
17621 | + linklib=$old_library | ||
17622 | + else | ||
17623 | + for l in $old_library $library_names; do | ||
17624 | + linklib="$l" | ||
17625 | + done | ||
17626 | + fi | ||
17627 | if test -z "$linklib"; then | ||
17628 | func_fatal_error "cannot find name of link library for \`$lib'" | ||
17629 | fi | ||
17630 | @@ -5598,9 +6481,9 @@ func_mode_link () | ||
17631 | # statically, we need to preload. We also need to preload any | ||
17632 | # dependent libraries so libltdl's deplib preloader doesn't | ||
17633 | # bomb out in the load deplibs phase. | ||
17634 | - dlprefiles="$dlprefiles $lib $dependency_libs" | ||
17635 | + func_append dlprefiles " $lib $dependency_libs" | ||
17636 | else | ||
17637 | - newdlfiles="$newdlfiles $lib" | ||
17638 | + func_append newdlfiles " $lib" | ||
17639 | fi | ||
17640 | continue | ||
17641 | fi # $pass = dlopen | ||
17642 | @@ -5622,14 +6505,14 @@ func_mode_link () | ||
17643 | |||
17644 | # Find the relevant object directory and library name. | ||
17645 | if test "X$installed" = Xyes; then | ||
17646 | - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then | ||
17647 | + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then | ||
17648 | func_warning "library \`$lib' was moved." | ||
17649 | dir="$ladir" | ||
17650 | absdir="$abs_ladir" | ||
17651 | libdir="$abs_ladir" | ||
17652 | else | ||
17653 | - dir="$libdir" | ||
17654 | - absdir="$libdir" | ||
17655 | + dir="$lt_sysroot$libdir" | ||
17656 | + absdir="$lt_sysroot$libdir" | ||
17657 | fi | ||
17658 | test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes | ||
17659 | else | ||
17660 | @@ -5637,12 +6520,12 @@ func_mode_link () | ||
17661 | dir="$ladir" | ||
17662 | absdir="$abs_ladir" | ||
17663 | # Remove this search path later | ||
17664 | - notinst_path="$notinst_path $abs_ladir" | ||
17665 | + func_append notinst_path " $abs_ladir" | ||
17666 | else | ||
17667 | dir="$ladir/$objdir" | ||
17668 | absdir="$abs_ladir/$objdir" | ||
17669 | # Remove this search path later | ||
17670 | - notinst_path="$notinst_path $abs_ladir" | ||
17671 | + func_append notinst_path " $abs_ladir" | ||
17672 | fi | ||
17673 | fi # $installed = yes | ||
17674 | func_stripname 'lib' '.la' "$laname" | ||
17675 | @@ -5653,20 +6536,46 @@ func_mode_link () | ||
17676 | if test -z "$libdir" && test "$linkmode" = prog; then | ||
17677 | func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" | ||
17678 | fi | ||
17679 | - # Prefer using a static library (so that no silly _DYNAMIC symbols | ||
17680 | - # are required to link). | ||
17681 | - if test -n "$old_library"; then | ||
17682 | - newdlprefiles="$newdlprefiles $dir/$old_library" | ||
17683 | - # Keep a list of preopened convenience libraries to check | ||
17684 | - # that they are being used correctly in the link pass. | ||
17685 | - test -z "$libdir" && \ | ||
17686 | - dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" | ||
17687 | - # Otherwise, use the dlname, so that lt_dlopen finds it. | ||
17688 | - elif test -n "$dlname"; then | ||
17689 | - newdlprefiles="$newdlprefiles $dir/$dlname" | ||
17690 | - else | ||
17691 | - newdlprefiles="$newdlprefiles $dir/$linklib" | ||
17692 | - fi | ||
17693 | + case "$host" in | ||
17694 | + # special handling for platforms with PE-DLLs. | ||
17695 | + *cygwin* | *mingw* | *cegcc* ) | ||
17696 | + # Linker will automatically link against shared library if both | ||
17697 | + # static and shared are present. Therefore, ensure we extract | ||
17698 | + # symbols from the import library if a shared library is present | ||
17699 | + # (otherwise, the dlopen module name will be incorrect). We do | ||
17700 | + # this by putting the import library name into $newdlprefiles. | ||
17701 | + # We recover the dlopen module name by 'saving' the la file | ||
17702 | + # name in a special purpose variable, and (later) extracting the | ||
17703 | + # dlname from the la file. | ||
17704 | + if test -n "$dlname"; then | ||
17705 | + func_tr_sh "$dir/$linklib" | ||
17706 | + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" | ||
17707 | + func_append newdlprefiles " $dir/$linklib" | ||
17708 | + else | ||
17709 | + func_append newdlprefiles " $dir/$old_library" | ||
17710 | + # Keep a list of preopened convenience libraries to check | ||
17711 | + # that they are being used correctly in the link pass. | ||
17712 | + test -z "$libdir" && \ | ||
17713 | + func_append dlpreconveniencelibs " $dir/$old_library" | ||
17714 | + fi | ||
17715 | + ;; | ||
17716 | + * ) | ||
17717 | + # Prefer using a static library (so that no silly _DYNAMIC symbols | ||
17718 | + # are required to link). | ||
17719 | + if test -n "$old_library"; then | ||
17720 | + func_append newdlprefiles " $dir/$old_library" | ||
17721 | + # Keep a list of preopened convenience libraries to check | ||
17722 | + # that they are being used correctly in the link pass. | ||
17723 | + test -z "$libdir" && \ | ||
17724 | + func_append dlpreconveniencelibs " $dir/$old_library" | ||
17725 | + # Otherwise, use the dlname, so that lt_dlopen finds it. | ||
17726 | + elif test -n "$dlname"; then | ||
17727 | + func_append newdlprefiles " $dir/$dlname" | ||
17728 | + else | ||
17729 | + func_append newdlprefiles " $dir/$linklib" | ||
17730 | + fi | ||
17731 | + ;; | ||
17732 | + esac | ||
17733 | fi # $pass = dlpreopen | ||
17734 | |||
17735 | if test -z "$libdir"; then | ||
17736 | @@ -5684,7 +6593,7 @@ func_mode_link () | ||
17737 | |||
17738 | |||
17739 | if test "$linkmode" = prog && test "$pass" != link; then | ||
17740 | - newlib_search_path="$newlib_search_path $ladir" | ||
17741 | + func_append newlib_search_path " $ladir" | ||
17742 | deplibs="$lib $deplibs" | ||
17743 | |||
17744 | linkalldeplibs=no | ||
17745 | @@ -5697,7 +6606,8 @@ func_mode_link () | ||
17746 | for deplib in $dependency_libs; do | ||
17747 | case $deplib in | ||
17748 | -L*) func_stripname '-L' '' "$deplib" | ||
17749 | - newlib_search_path="$newlib_search_path $func_stripname_result" | ||
17750 | + func_resolve_sysroot "$func_stripname_result" | ||
17751 | + func_append newlib_search_path " $func_resolve_sysroot_result" | ||
17752 | ;; | ||
17753 | esac | ||
17754 | # Need to link against all dependency_libs? | ||
17755 | @@ -5708,12 +6618,12 @@ func_mode_link () | ||
17756 | # or/and link against static libraries | ||
17757 | newdependency_libs="$deplib $newdependency_libs" | ||
17758 | fi | ||
17759 | - if $opt_duplicate_deps ; then | ||
17760 | + if $opt_preserve_dup_deps ; then | ||
17761 | case "$tmp_libs " in | ||
17762 | - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | ||
17763 | + *" $deplib "*) func_append specialdeplibs " $deplib" ;; | ||
17764 | esac | ||
17765 | fi | ||
17766 | - tmp_libs="$tmp_libs $deplib" | ||
17767 | + func_append tmp_libs " $deplib" | ||
17768 | done # for deplib | ||
17769 | continue | ||
17770 | fi # $linkmode = prog... | ||
17771 | @@ -5728,7 +6638,7 @@ func_mode_link () | ||
17772 | # Make sure the rpath contains only unique directories. | ||
17773 | case "$temp_rpath:" in | ||
17774 | *"$absdir:"*) ;; | ||
17775 | - *) temp_rpath="$temp_rpath$absdir:" ;; | ||
17776 | + *) func_append temp_rpath "$absdir:" ;; | ||
17777 | esac | ||
17778 | fi | ||
17779 | |||
17780 | @@ -5740,7 +6650,7 @@ func_mode_link () | ||
17781 | *) | ||
17782 | case "$compile_rpath " in | ||
17783 | *" $absdir "*) ;; | ||
17784 | - *) compile_rpath="$compile_rpath $absdir" | ||
17785 | + *) func_append compile_rpath " $absdir" ;; | ||
17786 | esac | ||
17787 | ;; | ||
17788 | esac | ||
17789 | @@ -5749,7 +6659,7 @@ func_mode_link () | ||
17790 | *) | ||
17791 | case "$finalize_rpath " in | ||
17792 | *" $libdir "*) ;; | ||
17793 | - *) finalize_rpath="$finalize_rpath $libdir" | ||
17794 | + *) func_append finalize_rpath " $libdir" ;; | ||
17795 | esac | ||
17796 | ;; | ||
17797 | esac | ||
17798 | @@ -5774,12 +6684,12 @@ func_mode_link () | ||
17799 | case $host in | ||
17800 | *cygwin* | *mingw* | *cegcc*) | ||
17801 | # No point in relinking DLLs because paths are not encoded | ||
17802 | - notinst_deplibs="$notinst_deplibs $lib" | ||
17803 | + func_append notinst_deplibs " $lib" | ||
17804 | need_relink=no | ||
17805 | ;; | ||
17806 | *) | ||
17807 | if test "$installed" = no; then | ||
17808 | - notinst_deplibs="$notinst_deplibs $lib" | ||
17809 | + func_append notinst_deplibs " $lib" | ||
17810 | need_relink=yes | ||
17811 | fi | ||
17812 | ;; | ||
17813 | @@ -5814,7 +6724,7 @@ func_mode_link () | ||
17814 | *) | ||
17815 | case "$compile_rpath " in | ||
17816 | *" $absdir "*) ;; | ||
17817 | - *) compile_rpath="$compile_rpath $absdir" | ||
17818 | + *) func_append compile_rpath " $absdir" ;; | ||
17819 | esac | ||
17820 | ;; | ||
17821 | esac | ||
17822 | @@ -5823,7 +6733,7 @@ func_mode_link () | ||
17823 | *) | ||
17824 | case "$finalize_rpath " in | ||
17825 | *" $libdir "*) ;; | ||
17826 | - *) finalize_rpath="$finalize_rpath $libdir" | ||
17827 | + *) func_append finalize_rpath " $libdir" ;; | ||
17828 | esac | ||
17829 | ;; | ||
17830 | esac | ||
17831 | @@ -5835,7 +6745,7 @@ func_mode_link () | ||
17832 | shift | ||
17833 | realname="$1" | ||
17834 | shift | ||
17835 | - eval "libname=\"$libname_spec\"" | ||
17836 | + libname=`eval "\\$ECHO \"$libname_spec\""` | ||
17837 | # use dlname if we got it. it's perfectly good, no? | ||
17838 | if test -n "$dlname"; then | ||
17839 | soname="$dlname" | ||
17840 | @@ -5848,7 +6758,7 @@ func_mode_link () | ||
17841 | versuffix="-$major" | ||
17842 | ;; | ||
17843 | esac | ||
17844 | - eval "soname=\"$soname_spec\"" | ||
17845 | + eval soname=\"$soname_spec\" | ||
17846 | else | ||
17847 | soname="$realname" | ||
17848 | fi | ||
17849 | @@ -5877,7 +6787,7 @@ func_mode_link () | ||
17850 | linklib=$newlib | ||
17851 | fi # test -n "$old_archive_from_expsyms_cmds" | ||
17852 | |||
17853 | - if test "$linkmode" = prog || test "$mode" != relink; then | ||
17854 | + if test "$linkmode" = prog || test "$opt_mode" != relink; then | ||
17855 | add_shlibpath= | ||
17856 | add_dir= | ||
17857 | add= | ||
17858 | @@ -5933,7 +6843,7 @@ func_mode_link () | ||
17859 | if test -n "$inst_prefix_dir"; then | ||
17860 | case $libdir in | ||
17861 | [\\/]*) | ||
17862 | - add_dir="$add_dir -L$inst_prefix_dir$libdir" | ||
17863 | + func_append add_dir " -L$inst_prefix_dir$libdir" | ||
17864 | ;; | ||
17865 | esac | ||
17866 | fi | ||
17867 | @@ -5955,7 +6865,7 @@ func_mode_link () | ||
17868 | if test -n "$add_shlibpath"; then | ||
17869 | case :$compile_shlibpath: in | ||
17870 | *":$add_shlibpath:"*) ;; | ||
17871 | - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; | ||
17872 | + *) func_append compile_shlibpath "$add_shlibpath:" ;; | ||
17873 | esac | ||
17874 | fi | ||
17875 | if test "$linkmode" = prog; then | ||
17876 | @@ -5969,13 +6879,13 @@ func_mode_link () | ||
17877 | test "$hardcode_shlibpath_var" = yes; then | ||
17878 | case :$finalize_shlibpath: in | ||
17879 | *":$libdir:"*) ;; | ||
17880 | - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; | ||
17881 | + *) func_append finalize_shlibpath "$libdir:" ;; | ||
17882 | esac | ||
17883 | fi | ||
17884 | fi | ||
17885 | fi | ||
17886 | |||
17887 | - if test "$linkmode" = prog || test "$mode" = relink; then | ||
17888 | + if test "$linkmode" = prog || test "$opt_mode" = relink; then | ||
17889 | add_shlibpath= | ||
17890 | add_dir= | ||
17891 | add= | ||
17892 | @@ -5989,7 +6899,7 @@ func_mode_link () | ||
17893 | elif test "$hardcode_shlibpath_var" = yes; then | ||
17894 | case :$finalize_shlibpath: in | ||
17895 | *":$libdir:"*) ;; | ||
17896 | - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; | ||
17897 | + *) func_append finalize_shlibpath "$libdir:" ;; | ||
17898 | esac | ||
17899 | add="-l$name" | ||
17900 | elif test "$hardcode_automatic" = yes; then | ||
17901 | @@ -6001,12 +6911,12 @@ func_mode_link () | ||
17902 | fi | ||
17903 | else | ||
17904 | # We cannot seem to hardcode it, guess we'll fake it. | ||
17905 | - add_dir="-L$libdir" | ||
17906 | + add_dir="-L$lt_sysroot$libdir" | ||
17907 | # Try looking first in the location we're being installed to. | ||
17908 | if test -n "$inst_prefix_dir"; then | ||
17909 | case $libdir in | ||
17910 | [\\/]*) | ||
17911 | - add_dir="$add_dir -L$inst_prefix_dir$libdir" | ||
17912 | + func_append add_dir " -L$inst_prefix_dir$libdir" | ||
17913 | ;; | ||
17914 | esac | ||
17915 | fi | ||
17916 | @@ -6083,27 +6993,33 @@ func_mode_link () | ||
17917 | temp_xrpath=$func_stripname_result | ||
17918 | case " $xrpath " in | ||
17919 | *" $temp_xrpath "*) ;; | ||
17920 | - *) xrpath="$xrpath $temp_xrpath";; | ||
17921 | + *) func_append xrpath " $temp_xrpath";; | ||
17922 | esac;; | ||
17923 | - *) temp_deplibs="$temp_deplibs $libdir";; | ||
17924 | + *) func_append temp_deplibs " $libdir";; | ||
17925 | esac | ||
17926 | done | ||
17927 | dependency_libs="$temp_deplibs" | ||
17928 | fi | ||
17929 | |||
17930 | - newlib_search_path="$newlib_search_path $absdir" | ||
17931 | + func_append newlib_search_path " $absdir" | ||
17932 | # Link against this library | ||
17933 | test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" | ||
17934 | # ... and its dependency_libs | ||
17935 | tmp_libs= | ||
17936 | for deplib in $dependency_libs; do | ||
17937 | newdependency_libs="$deplib $newdependency_libs" | ||
17938 | - if $opt_duplicate_deps ; then | ||
17939 | + case $deplib in | ||
17940 | + -L*) func_stripname '-L' '' "$deplib" | ||
17941 | + func_resolve_sysroot "$func_stripname_result";; | ||
17942 | + *) func_resolve_sysroot "$deplib" ;; | ||
17943 | + esac | ||
17944 | + if $opt_preserve_dup_deps ; then | ||
17945 | case "$tmp_libs " in | ||
17946 | - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | ||
17947 | + *" $func_resolve_sysroot_result "*) | ||
17948 | + func_append specialdeplibs " $func_resolve_sysroot_result" ;; | ||
17949 | esac | ||
17950 | fi | ||
17951 | - tmp_libs="$tmp_libs $deplib" | ||
17952 | + func_append tmp_libs " $func_resolve_sysroot_result" | ||
17953 | done | ||
17954 | |||
17955 | if test "$link_all_deplibs" != no; then | ||
17956 | @@ -6113,8 +7029,10 @@ func_mode_link () | ||
17957 | case $deplib in | ||
17958 | -L*) path="$deplib" ;; | ||
17959 | *.la) | ||
17960 | + func_resolve_sysroot "$deplib" | ||
17961 | + deplib=$func_resolve_sysroot_result | ||
17962 | func_dirname "$deplib" "" "." | ||
17963 | - dir="$func_dirname_result" | ||
17964 | + dir=$func_dirname_result | ||
17965 | # We need an absolute path. | ||
17966 | case $dir in | ||
17967 | [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; | ||
17968 | @@ -6130,7 +7048,7 @@ func_mode_link () | ||
17969 | case $host in | ||
17970 | *-*-darwin*) | ||
17971 | depdepl= | ||
17972 | - deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` | ||
17973 | + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` | ||
17974 | if test -n "$deplibrary_names" ; then | ||
17975 | for tmp in $deplibrary_names ; do | ||
17976 | depdepl=$tmp | ||
17977 | @@ -6141,8 +7059,8 @@ func_mode_link () | ||
17978 | if test -z "$darwin_install_name"; then | ||
17979 | darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` | ||
17980 | fi | ||
17981 | - compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" | ||
17982 | - linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" | ||
17983 | + func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" | ||
17984 | + func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" | ||
17985 | path= | ||
17986 | fi | ||
17987 | fi | ||
17988 | @@ -6152,7 +7070,7 @@ func_mode_link () | ||
17989 | ;; | ||
17990 | esac | ||
17991 | else | ||
17992 | - libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` | ||
17993 | + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` | ||
17994 | test -z "$libdir" && \ | ||
17995 | func_fatal_error "\`$deplib' is not a valid libtool archive" | ||
17996 | test "$absdir" != "$libdir" && \ | ||
17997 | @@ -6192,7 +7110,7 @@ func_mode_link () | ||
17998 | for dir in $newlib_search_path; do | ||
17999 | case "$lib_search_path " in | ||
18000 | *" $dir "*) ;; | ||
18001 | - *) lib_search_path="$lib_search_path $dir" ;; | ||
18002 | + *) func_append lib_search_path " $dir" ;; | ||
18003 | esac | ||
18004 | done | ||
18005 | newlib_search_path= | ||
18006 | @@ -6205,7 +7123,7 @@ func_mode_link () | ||
18007 | fi | ||
18008 | for var in $vars dependency_libs; do | ||
18009 | # Add libraries to $var in reverse order | ||
18010 | - eval tmp_libs=\$$var | ||
18011 | + eval tmp_libs=\"\$$var\" | ||
18012 | new_libs= | ||
18013 | for deplib in $tmp_libs; do | ||
18014 | # FIXME: Pedantically, this is the right thing to do, so | ||
18015 | @@ -6250,13 +7168,13 @@ func_mode_link () | ||
18016 | -L*) | ||
18017 | case " $tmp_libs " in | ||
18018 | *" $deplib "*) ;; | ||
18019 | - *) tmp_libs="$tmp_libs $deplib" ;; | ||
18020 | + *) func_append tmp_libs " $deplib" ;; | ||
18021 | esac | ||
18022 | ;; | ||
18023 | - *) tmp_libs="$tmp_libs $deplib" ;; | ||
18024 | + *) func_append tmp_libs " $deplib" ;; | ||
18025 | esac | ||
18026 | done | ||
18027 | - eval $var=\$tmp_libs | ||
18028 | + eval $var=\"$tmp_libs\" | ||
18029 | done # for var | ||
18030 | fi | ||
18031 | # Last step: remove runtime libs from dependency_libs | ||
18032 | @@ -6269,7 +7187,7 @@ func_mode_link () | ||
18033 | ;; | ||
18034 | esac | ||
18035 | if test -n "$i" ; then | ||
18036 | - tmp_libs="$tmp_libs $i" | ||
18037 | + func_append tmp_libs " $i" | ||
18038 | fi | ||
18039 | done | ||
18040 | dependency_libs=$tmp_libs | ||
18041 | @@ -6310,7 +7228,7 @@ func_mode_link () | ||
18042 | # Now set the variables for building old libraries. | ||
18043 | build_libtool_libs=no | ||
18044 | oldlibs="$output" | ||
18045 | - objs="$objs$old_deplibs" | ||
18046 | + func_append objs "$old_deplibs" | ||
18047 | ;; | ||
18048 | |||
18049 | lib) | ||
18050 | @@ -6319,8 +7237,8 @@ func_mode_link () | ||
18051 | lib*) | ||
18052 | func_stripname 'lib' '.la' "$outputname" | ||
18053 | name=$func_stripname_result | ||
18054 | - eval "shared_ext=\"$shrext_cmds\"" | ||
18055 | - eval "libname=\"$libname_spec\"" | ||
18056 | + eval shared_ext=\"$shrext_cmds\" | ||
18057 | + eval libname=\"$libname_spec\" | ||
18058 | ;; | ||
18059 | *) | ||
18060 | test "$module" = no && \ | ||
18061 | @@ -6330,8 +7248,8 @@ func_mode_link () | ||
18062 | # Add the "lib" prefix for modules if required | ||
18063 | func_stripname '' '.la' "$outputname" | ||
18064 | name=$func_stripname_result | ||
18065 | - eval "shared_ext=\"$shrext_cmds\"" | ||
18066 | - eval "libname=\"$libname_spec\"" | ||
18067 | + eval shared_ext=\"$shrext_cmds\" | ||
18068 | + eval libname=\"$libname_spec\" | ||
18069 | else | ||
18070 | func_stripname '' '.la' "$outputname" | ||
18071 | libname=$func_stripname_result | ||
18072 | @@ -6346,7 +7264,7 @@ func_mode_link () | ||
18073 | echo | ||
18074 | $ECHO "*** Warning: Linking the shared library $output against the non-libtool" | ||
18075 | $ECHO "*** objects $objs is not portable!" | ||
18076 | - libobjs="$libobjs $objs" | ||
18077 | + func_append libobjs " $objs" | ||
18078 | fi | ||
18079 | fi | ||
18080 | |||
18081 | @@ -6544,7 +7462,7 @@ func_mode_link () | ||
18082 | done | ||
18083 | |||
18084 | # Make executables depend on our current version. | ||
18085 | - verstring="$verstring:${current}.0" | ||
18086 | + func_append verstring ":${current}.0" | ||
18087 | ;; | ||
18088 | |||
18089 | qnx) | ||
18090 | @@ -6612,10 +7530,10 @@ func_mode_link () | ||
18091 | fi | ||
18092 | |||
18093 | func_generate_dlsyms "$libname" "$libname" "yes" | ||
18094 | - libobjs="$libobjs $symfileobj" | ||
18095 | + func_append libobjs " $symfileobj" | ||
18096 | test "X$libobjs" = "X " && libobjs= | ||
18097 | |||
18098 | - if test "$mode" != relink; then | ||
18099 | + if test "$opt_mode" != relink; then | ||
18100 | # Remove our outputs, but don't remove object files since they | ||
18101 | # may have been created when compiling PIC objects. | ||
18102 | removelist= | ||
18103 | @@ -6631,7 +7549,7 @@ func_mode_link () | ||
18104 | continue | ||
18105 | fi | ||
18106 | fi | ||
18107 | - removelist="$removelist $p" | ||
18108 | + func_append removelist " $p" | ||
18109 | ;; | ||
18110 | *) ;; | ||
18111 | esac | ||
18112 | @@ -6642,7 +7560,7 @@ func_mode_link () | ||
18113 | |||
18114 | # Now set the variables for building old libraries. | ||
18115 | if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then | ||
18116 | - oldlibs="$oldlibs $output_objdir/$libname.$libext" | ||
18117 | + func_append oldlibs " $output_objdir/$libname.$libext" | ||
18118 | |||
18119 | # Transform .lo files to .o files. | ||
18120 | oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` | ||
18121 | @@ -6659,10 +7577,11 @@ func_mode_link () | ||
18122 | # If the user specified any rpath flags, then add them. | ||
18123 | temp_xrpath= | ||
18124 | for libdir in $xrpath; do | ||
18125 | - temp_xrpath="$temp_xrpath -R$libdir" | ||
18126 | + func_replace_sysroot "$libdir" | ||
18127 | + func_append temp_xrpath " -R$func_replace_sysroot_result" | ||
18128 | case "$finalize_rpath " in | ||
18129 | *" $libdir "*) ;; | ||
18130 | - *) finalize_rpath="$finalize_rpath $libdir" ;; | ||
18131 | + *) func_append finalize_rpath " $libdir" ;; | ||
18132 | esac | ||
18133 | done | ||
18134 | if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then | ||
18135 | @@ -6676,7 +7595,7 @@ func_mode_link () | ||
18136 | for lib in $old_dlfiles; do | ||
18137 | case " $dlprefiles $dlfiles " in | ||
18138 | *" $lib "*) ;; | ||
18139 | - *) dlfiles="$dlfiles $lib" ;; | ||
18140 | + *) func_append dlfiles " $lib" ;; | ||
18141 | esac | ||
18142 | done | ||
18143 | |||
18144 | @@ -6686,7 +7605,7 @@ func_mode_link () | ||
18145 | for lib in $old_dlprefiles; do | ||
18146 | case "$dlprefiles " in | ||
18147 | *" $lib "*) ;; | ||
18148 | - *) dlprefiles="$dlprefiles $lib" ;; | ||
18149 | + *) func_append dlprefiles " $lib" ;; | ||
18150 | esac | ||
18151 | done | ||
18152 | |||
18153 | @@ -6698,7 +7617,7 @@ func_mode_link () | ||
18154 | ;; | ||
18155 | *-*-rhapsody* | *-*-darwin1.[012]) | ||
18156 | # Rhapsody C library is in the System framework | ||
18157 | - deplibs="$deplibs System.ltframework" | ||
18158 | + func_append deplibs " System.ltframework" | ||
18159 | ;; | ||
18160 | *-*-netbsd*) | ||
18161 | # Don't link with libc until the a.out ld.so is fixed. | ||
18162 | @@ -6715,7 +7634,7 @@ func_mode_link () | ||
18163 | *) | ||
18164 | # Add libc to deplibs on all other systems if necessary. | ||
18165 | if test "$build_libtool_need_lc" = "yes"; then | ||
18166 | - deplibs="$deplibs -lc" | ||
18167 | + func_append deplibs " -lc" | ||
18168 | fi | ||
18169 | ;; | ||
18170 | esac | ||
18171 | @@ -6764,18 +7683,18 @@ EOF | ||
18172 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | ||
18173 | case " $predeps $postdeps " in | ||
18174 | *" $i "*) | ||
18175 | - newdeplibs="$newdeplibs $i" | ||
18176 | + func_append newdeplibs " $i" | ||
18177 | i="" | ||
18178 | ;; | ||
18179 | esac | ||
18180 | fi | ||
18181 | if test -n "$i" ; then | ||
18182 | - eval "libname=\"$libname_spec\"" | ||
18183 | - eval "deplib_matches=\"$library_names_spec\"" | ||
18184 | + libname=`eval "\\$ECHO \"$libname_spec\""` | ||
18185 | + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` | ||
18186 | set dummy $deplib_matches; shift | ||
18187 | deplib_match=$1 | ||
18188 | if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then | ||
18189 | - newdeplibs="$newdeplibs $i" | ||
18190 | + func_append newdeplibs " $i" | ||
18191 | else | ||
18192 | droppeddeps=yes | ||
18193 | echo | ||
18194 | @@ -6789,7 +7708,7 @@ EOF | ||
18195 | fi | ||
18196 | ;; | ||
18197 | *) | ||
18198 | - newdeplibs="$newdeplibs $i" | ||
18199 | + func_append newdeplibs " $i" | ||
18200 | ;; | ||
18201 | esac | ||
18202 | done | ||
18203 | @@ -6807,18 +7726,18 @@ EOF | ||
18204 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | ||
18205 | case " $predeps $postdeps " in | ||
18206 | *" $i "*) | ||
18207 | - newdeplibs="$newdeplibs $i" | ||
18208 | + func_append newdeplibs " $i" | ||
18209 | i="" | ||
18210 | ;; | ||
18211 | esac | ||
18212 | fi | ||
18213 | if test -n "$i" ; then | ||
18214 | - eval "libname=\"$libname_spec\"" | ||
18215 | - eval "deplib_matches=\"$library_names_spec\"" | ||
18216 | + libname=`eval "\\$ECHO \"$libname_spec\""` | ||
18217 | + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` | ||
18218 | set dummy $deplib_matches; shift | ||
18219 | deplib_match=$1 | ||
18220 | if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then | ||
18221 | - newdeplibs="$newdeplibs $i" | ||
18222 | + func_append newdeplibs " $i" | ||
18223 | else | ||
18224 | droppeddeps=yes | ||
18225 | echo | ||
18226 | @@ -6840,7 +7759,7 @@ EOF | ||
18227 | fi | ||
18228 | ;; | ||
18229 | *) | ||
18230 | - newdeplibs="$newdeplibs $i" | ||
18231 | + func_append newdeplibs " $i" | ||
18232 | ;; | ||
18233 | esac | ||
18234 | done | ||
18235 | @@ -6857,15 +7776,27 @@ EOF | ||
18236 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | ||
18237 | case " $predeps $postdeps " in | ||
18238 | *" $a_deplib "*) | ||
18239 | - newdeplibs="$newdeplibs $a_deplib" | ||
18240 | + func_append newdeplibs " $a_deplib" | ||
18241 | a_deplib="" | ||
18242 | ;; | ||
18243 | esac | ||
18244 | fi | ||
18245 | if test -n "$a_deplib" ; then | ||
18246 | - eval "libname=\"$libname_spec\"" | ||
18247 | + libname=`eval "\\$ECHO \"$libname_spec\""` | ||
18248 | + if test -n "$file_magic_glob"; then | ||
18249 | + libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob` | ||
18250 | + else | ||
18251 | + libnameglob=$libname | ||
18252 | + fi | ||
18253 | + test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob` | ||
18254 | for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do | ||
18255 | - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` | ||
18256 | + if test "$want_nocaseglob" = yes; then | ||
18257 | + shopt -s nocaseglob | ||
18258 | + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` | ||
18259 | + $nocaseglob | ||
18260 | + else | ||
18261 | + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` | ||
18262 | + fi | ||
18263 | for potent_lib in $potential_libs; do | ||
18264 | # Follow soft links. | ||
18265 | if ls -lLd "$potent_lib" 2>/dev/null | | ||
18266 | @@ -6885,10 +7816,10 @@ EOF | ||
18267 | *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; | ||
18268 | esac | ||
18269 | done | ||
18270 | - if eval "$file_magic_cmd \"\$potlib\"" 2>/dev/null | | ||
18271 | + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | | ||
18272 | $SED -e 10q | | ||
18273 | $EGREP "$file_magic_regex" > /dev/null; then | ||
18274 | - newdeplibs="$newdeplibs $a_deplib" | ||
18275 | + func_append newdeplibs " $a_deplib" | ||
18276 | a_deplib="" | ||
18277 | break 2 | ||
18278 | fi | ||
18279 | @@ -6913,7 +7844,7 @@ EOF | ||
18280 | ;; | ||
18281 | *) | ||
18282 | # Add a -L argument. | ||
18283 | - newdeplibs="$newdeplibs $a_deplib" | ||
18284 | + func_append newdeplibs " $a_deplib" | ||
18285 | ;; | ||
18286 | esac | ||
18287 | done # Gone through all deplibs. | ||
18288 | @@ -6929,20 +7860,20 @@ EOF | ||
18289 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | ||
18290 | case " $predeps $postdeps " in | ||
18291 | *" $a_deplib "*) | ||
18292 | - newdeplibs="$newdeplibs $a_deplib" | ||
18293 | + func_append newdeplibs " $a_deplib" | ||
18294 | a_deplib="" | ||
18295 | ;; | ||
18296 | esac | ||
18297 | fi | ||
18298 | if test -n "$a_deplib" ; then | ||
18299 | - eval "libname=\"$libname_spec\"" | ||
18300 | + libname=`eval "\\$ECHO \"$libname_spec\""` | ||
18301 | for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do | ||
18302 | potential_libs=`ls $i/$libname[.-]* 2>/dev/null` | ||
18303 | for potent_lib in $potential_libs; do | ||
18304 | potlib="$potent_lib" # see symlink-check above in file_magic test | ||
18305 | if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ | ||
18306 | $EGREP "$match_pattern_regex" > /dev/null; then | ||
18307 | - newdeplibs="$newdeplibs $a_deplib" | ||
18308 | + func_append newdeplibs " $a_deplib" | ||
18309 | a_deplib="" | ||
18310 | break 2 | ||
18311 | fi | ||
18312 | @@ -6967,7 +7898,7 @@ EOF | ||
18313 | ;; | ||
18314 | *) | ||
18315 | # Add a -L argument. | ||
18316 | - newdeplibs="$newdeplibs $a_deplib" | ||
18317 | + func_append newdeplibs " $a_deplib" | ||
18318 | ;; | ||
18319 | esac | ||
18320 | done # Gone through all deplibs. | ||
18321 | @@ -7071,7 +8002,7 @@ EOF | ||
18322 | *) | ||
18323 | case " $deplibs " in | ||
18324 | *" -L$path/$objdir "*) | ||
18325 | - new_libs="$new_libs -L$path/$objdir" ;; | ||
18326 | + func_append new_libs " -L$path/$objdir" ;; | ||
18327 | esac | ||
18328 | ;; | ||
18329 | esac | ||
18330 | @@ -7081,10 +8012,10 @@ EOF | ||
18331 | -L*) | ||
18332 | case " $new_libs " in | ||
18333 | *" $deplib "*) ;; | ||
18334 | - *) new_libs="$new_libs $deplib" ;; | ||
18335 | + *) func_append new_libs " $deplib" ;; | ||
18336 | esac | ||
18337 | ;; | ||
18338 | - *) new_libs="$new_libs $deplib" ;; | ||
18339 | + *) func_append new_libs " $deplib" ;; | ||
18340 | esac | ||
18341 | done | ||
18342 | deplibs="$new_libs" | ||
18343 | @@ -7101,10 +8032,12 @@ EOF | ||
18344 | hardcode_libdirs= | ||
18345 | dep_rpath= | ||
18346 | rpath="$finalize_rpath" | ||
18347 | - test "$mode" != relink && rpath="$compile_rpath$rpath" | ||
18348 | + test "$opt_mode" != relink && rpath="$compile_rpath$rpath" | ||
18349 | for libdir in $rpath; do | ||
18350 | if test -n "$hardcode_libdir_flag_spec"; then | ||
18351 | if test -n "$hardcode_libdir_separator"; then | ||
18352 | + func_replace_sysroot "$libdir" | ||
18353 | + libdir=$func_replace_sysroot_result | ||
18354 | if test -z "$hardcode_libdirs"; then | ||
18355 | hardcode_libdirs="$libdir" | ||
18356 | else | ||
18357 | @@ -7113,18 +8046,18 @@ EOF | ||
18358 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) | ||
18359 | ;; | ||
18360 | *) | ||
18361 | - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | ||
18362 | + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | ||
18363 | ;; | ||
18364 | esac | ||
18365 | fi | ||
18366 | else | ||
18367 | - eval "flag=\"$hardcode_libdir_flag_spec\"" | ||
18368 | - dep_rpath="$dep_rpath $flag" | ||
18369 | + eval flag=\"$hardcode_libdir_flag_spec\" | ||
18370 | + func_append dep_rpath " $flag" | ||
18371 | fi | ||
18372 | elif test -n "$runpath_var"; then | ||
18373 | case "$perm_rpath " in | ||
18374 | *" $libdir "*) ;; | ||
18375 | - *) perm_rpath="$perm_rpath $libdir" ;; | ||
18376 | + *) func_apped perm_rpath " $libdir" ;; | ||
18377 | esac | ||
18378 | fi | ||
18379 | done | ||
18380 | @@ -7133,40 +8066,38 @@ EOF | ||
18381 | test -n "$hardcode_libdirs"; then | ||
18382 | libdir="$hardcode_libdirs" | ||
18383 | if test -n "$hardcode_libdir_flag_spec_ld"; then | ||
18384 | - eval "dep_rpath=\"$hardcode_libdir_flag_spec_ld\"" | ||
18385 | + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" | ||
18386 | else | ||
18387 | - eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" | ||
18388 | + eval dep_rpath=\"$hardcode_libdir_flag_spec\" | ||
18389 | fi | ||
18390 | fi | ||
18391 | if test -n "$runpath_var" && test -n "$perm_rpath"; then | ||
18392 | # We should set the runpath_var. | ||
18393 | rpath= | ||
18394 | for dir in $perm_rpath; do | ||
18395 | - rpath="$rpath$dir:" | ||
18396 | + func_append rpath "$dir:" | ||
18397 | done | ||
18398 | - eval $runpath_var=\$rpath\$$runpath_var | ||
18399 | - export $runpath_var | ||
18400 | + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" | ||
18401 | fi | ||
18402 | test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" | ||
18403 | fi | ||
18404 | |||
18405 | shlibpath="$finalize_shlibpath" | ||
18406 | - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" | ||
18407 | + test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" | ||
18408 | if test -n "$shlibpath"; then | ||
18409 | - eval $shlibpath_var=\$shlibpath\$$shlibpath_var | ||
18410 | - export $shlibpath_var | ||
18411 | + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" | ||
18412 | fi | ||
18413 | |||
18414 | # Get the real and link names of the library. | ||
18415 | - eval "shared_ext=\"$shrext_cmds\"" | ||
18416 | - eval "library_names=\"$library_names_spec\"" | ||
18417 | + eval shared_ext=\"$shrext_cmds\" | ||
18418 | + eval library_names=\"$library_names_spec\" | ||
18419 | set dummy $library_names | ||
18420 | shift | ||
18421 | realname="$1" | ||
18422 | shift | ||
18423 | |||
18424 | if test -n "$soname_spec"; then | ||
18425 | - eval "soname=\"$soname_spec\"" | ||
18426 | + eval soname=\"$soname_spec\" | ||
18427 | else | ||
18428 | soname="$realname" | ||
18429 | fi | ||
18430 | @@ -7178,7 +8109,7 @@ EOF | ||
18431 | linknames= | ||
18432 | for link | ||
18433 | do | ||
18434 | - linknames="$linknames $link" | ||
18435 | + func_append linknames " $link" | ||
18436 | done | ||
18437 | |||
18438 | # Use standard objects if they are pic | ||
18439 | @@ -7189,7 +8120,7 @@ EOF | ||
18440 | if test -n "$export_symbols" && test -n "$include_expsyms"; then | ||
18441 | $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" | ||
18442 | export_symbols="$output_objdir/$libname.uexp" | ||
18443 | - delfiles="$delfiles $export_symbols" | ||
18444 | + func_append delfiles " $export_symbols" | ||
18445 | fi | ||
18446 | |||
18447 | orig_export_symbols= | ||
18448 | @@ -7220,13 +8151,45 @@ EOF | ||
18449 | $opt_dry_run || $RM $export_symbols | ||
18450 | cmds=$export_symbols_cmds | ||
18451 | save_ifs="$IFS"; IFS='~' | ||
18452 | - for cmd in $cmds; do | ||
18453 | + for cmd1 in $cmds; do | ||
18454 | IFS="$save_ifs" | ||
18455 | - eval "cmd=\"$cmd\"" | ||
18456 | - func_len " $cmd" | ||
18457 | - len=$func_len_result | ||
18458 | - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then | ||
18459 | + # Take the normal branch if the nm_file_list_spec branch | ||
18460 | + # doesn't work or if tool conversion is not needed. | ||
18461 | + case $nm_file_list_spec~$to_tool_file_cmd in | ||
18462 | + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) | ||
18463 | + try_normal_branch=yes | ||
18464 | + eval cmd=\"$cmd1\" | ||
18465 | + func_len " $cmd" | ||
18466 | + len=$func_len_result | ||
18467 | + ;; | ||
18468 | + *) | ||
18469 | + try_normal_branch=no | ||
18470 | + ;; | ||
18471 | + esac | ||
18472 | + if test "$try_normal_branch" = yes \ | ||
18473 | + && { test "$len" -lt "$max_cmd_len" \ | ||
18474 | + || test "$max_cmd_len" -le -1; } | ||
18475 | + then | ||
18476 | + func_show_eval "$cmd" 'exit $?' | ||
18477 | + skipped_export=false | ||
18478 | + elif test -n "$nm_file_list_spec"; then | ||
18479 | + func_basename "$output" | ||
18480 | + output_la=$func_basename_result | ||
18481 | + save_libobjs=$libobjs | ||
18482 | + save_output=$output | ||
18483 | + output=${output_objdir}/${output_la}.nm | ||
18484 | + func_to_tool_file "$output" | ||
18485 | + libobjs=$nm_file_list_spec$func_to_tool_file_result | ||
18486 | + func_append delfiles " $output" | ||
18487 | + func_verbose "creating $NM input file list: $output" | ||
18488 | + for obj in $save_libobjs; do | ||
18489 | + func_to_tool_file "$obj" | ||
18490 | + $ECHO "$func_to_tool_file_result" | ||
18491 | + done > "$output" | ||
18492 | + eval cmd=\"$cmd1\" | ||
18493 | func_show_eval "$cmd" 'exit $?' | ||
18494 | + output=$save_output | ||
18495 | + libobjs=$save_libobjs | ||
18496 | skipped_export=false | ||
18497 | else | ||
18498 | # The command line is too long to execute in one step. | ||
18499 | @@ -7248,7 +8211,7 @@ EOF | ||
18500 | if test -n "$export_symbols" && test -n "$include_expsyms"; then | ||
18501 | tmp_export_symbols="$export_symbols" | ||
18502 | test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" | ||
18503 | - $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols" | ||
18504 | + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' | ||
18505 | fi | ||
18506 | |||
18507 | if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then | ||
18508 | @@ -7260,7 +8223,7 @@ EOF | ||
18509 | # global variables. join(1) would be nice here, but unfortunately | ||
18510 | # isn't a blessed tool. | ||
18511 | $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter | ||
18512 | - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" | ||
18513 | + func_append delfiles " $export_symbols $output_objdir/$libname.filter" | ||
18514 | export_symbols=$output_objdir/$libname.def | ||
18515 | $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols | ||
18516 | fi | ||
18517 | @@ -7270,7 +8233,7 @@ EOF | ||
18518 | case " $convenience " in | ||
18519 | *" $test_deplib "*) ;; | ||
18520 | *) | ||
18521 | - tmp_deplibs="$tmp_deplibs $test_deplib" | ||
18522 | + func_append tmp_deplibs " $test_deplib" | ||
18523 | ;; | ||
18524 | esac | ||
18525 | done | ||
18526 | @@ -7286,43 +8249,43 @@ EOF | ||
18527 | fi | ||
18528 | if test -n "$whole_archive_flag_spec"; then | ||
18529 | save_libobjs=$libobjs | ||
18530 | - eval "libobjs=\"\$libobjs $whole_archive_flag_spec\"" | ||
18531 | + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" | ||
18532 | test "X$libobjs" = "X " && libobjs= | ||
18533 | else | ||
18534 | gentop="$output_objdir/${outputname}x" | ||
18535 | - generated="$generated $gentop" | ||
18536 | + func_append generated " $gentop" | ||
18537 | |||
18538 | func_extract_archives $gentop $convenience | ||
18539 | - libobjs="$libobjs $func_extract_archives_result" | ||
18540 | + func_append libobjs " $func_extract_archives_result" | ||
18541 | test "X$libobjs" = "X " && libobjs= | ||
18542 | fi | ||
18543 | fi | ||
18544 | |||
18545 | if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then | ||
18546 | - eval "flag=\"$thread_safe_flag_spec\"" | ||
18547 | - linker_flags="$linker_flags $flag" | ||
18548 | + eval flag=\"$thread_safe_flag_spec\" | ||
18549 | + func_append linker_flags " $flag" | ||
18550 | fi | ||
18551 | |||
18552 | # Make a backup of the uninstalled library when relinking | ||
18553 | - if test "$mode" = relink; then | ||
18554 | - $opt_dry_run || (cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U) || exit $? | ||
18555 | + if test "$opt_mode" = relink; then | ||
18556 | + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? | ||
18557 | fi | ||
18558 | |||
18559 | # Do each of the archive commands. | ||
18560 | if test "$module" = yes && test -n "$module_cmds" ; then | ||
18561 | if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then | ||
18562 | - eval "test_cmds=\"$module_expsym_cmds\"" | ||
18563 | + eval test_cmds=\"$module_expsym_cmds\" | ||
18564 | cmds=$module_expsym_cmds | ||
18565 | else | ||
18566 | - eval "test_cmds=\"$module_cmds\"" | ||
18567 | + eval test_cmds=\"$module_cmds\" | ||
18568 | cmds=$module_cmds | ||
18569 | fi | ||
18570 | else | ||
18571 | if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then | ||
18572 | - eval "test_cmds=\"$archive_expsym_cmds\"" | ||
18573 | + eval test_cmds=\"$archive_expsym_cmds\" | ||
18574 | cmds=$archive_expsym_cmds | ||
18575 | else | ||
18576 | - eval "test_cmds=\"$archive_cmds\"" | ||
18577 | + eval test_cmds=\"$archive_cmds\" | ||
18578 | cmds=$archive_cmds | ||
18579 | fi | ||
18580 | fi | ||
18581 | @@ -7366,10 +8329,13 @@ EOF | ||
18582 | echo 'INPUT (' > $output | ||
18583 | for obj in $save_libobjs | ||
18584 | do | ||
18585 | - $ECHO "$obj" >> $output | ||
18586 | + func_to_tool_file "$obj" | ||
18587 | + $ECHO "$func_to_tool_file_result" >> $output | ||
18588 | done | ||
18589 | echo ')' >> $output | ||
18590 | - delfiles="$delfiles $output" | ||
18591 | + func_append delfiles " $output" | ||
18592 | + func_to_tool_file "$output" | ||
18593 | + output=$func_to_tool_file_result | ||
18594 | elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then | ||
18595 | output=${output_objdir}/${output_la}.lnk | ||
18596 | func_verbose "creating linker input file list: $output" | ||
18597 | @@ -7383,15 +8349,17 @@ EOF | ||
18598 | fi | ||
18599 | for obj | ||
18600 | do | ||
18601 | - $ECHO "$obj" >> $output | ||
18602 | + func_to_tool_file "$obj" | ||
18603 | + $ECHO "$func_to_tool_file_result" >> $output | ||
18604 | done | ||
18605 | - delfiles="$delfiles $output" | ||
18606 | - output=$firstobj\"$file_list_spec$output\" | ||
18607 | + func_append delfiles " $output" | ||
18608 | + func_to_tool_file "$output" | ||
18609 | + output=$firstobj\"$file_list_spec$func_to_tool_file_result\" | ||
18610 | else | ||
18611 | if test -n "$save_libobjs"; then | ||
18612 | func_verbose "creating reloadable object files..." | ||
18613 | output=$output_objdir/$output_la-${k}.$objext | ||
18614 | - eval "test_cmds=\"$reload_cmds\"" | ||
18615 | + eval test_cmds=\"$reload_cmds\" | ||
18616 | func_len " $test_cmds" | ||
18617 | len0=$func_len_result | ||
18618 | len=$len0 | ||
18619 | @@ -7411,12 +8379,12 @@ EOF | ||
18620 | if test "$k" -eq 1 ; then | ||
18621 | # The first file doesn't have a previous command to add. | ||
18622 | reload_objs=$objlist | ||
18623 | - eval "concat_cmds=\"$reload_cmds\"" | ||
18624 | + eval concat_cmds=\"$reload_cmds\" | ||
18625 | else | ||
18626 | # All subsequent reloadable object files will link in | ||
18627 | # the last one created. | ||
18628 | reload_objs="$objlist $last_robj" | ||
18629 | - eval "concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"" | ||
18630 | + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" | ||
18631 | fi | ||
18632 | last_robj=$output_objdir/$output_la-${k}.$objext | ||
18633 | func_arith $k + 1 | ||
18634 | @@ -7433,11 +8401,11 @@ EOF | ||
18635 | # files will link in the last one created. | ||
18636 | test -z "$concat_cmds" || concat_cmds=$concat_cmds~ | ||
18637 | reload_objs="$objlist $last_robj" | ||
18638 | - eval "concat_cmds=\"\${concat_cmds}$reload_cmds\"" | ||
18639 | + eval concat_cmds=\"\${concat_cmds}$reload_cmds\" | ||
18640 | if test -n "$last_robj"; then | ||
18641 | - eval "concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"" | ||
18642 | + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" | ||
18643 | fi | ||
18644 | - delfiles="$delfiles $output" | ||
18645 | + func_append delfiles " $output" | ||
18646 | |||
18647 | else | ||
18648 | output= | ||
18649 | @@ -7450,9 +8418,9 @@ EOF | ||
18650 | libobjs=$output | ||
18651 | # Append the command to create the export file. | ||
18652 | test -z "$concat_cmds" || concat_cmds=$concat_cmds~ | ||
18653 | - eval "concat_cmds=\"\$concat_cmds$export_symbols_cmds\"" | ||
18654 | + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" | ||
18655 | if test -n "$last_robj"; then | ||
18656 | - eval "concat_cmds=\"\$concat_cmds~\$RM $last_robj\"" | ||
18657 | + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" | ||
18658 | fi | ||
18659 | fi | ||
18660 | |||
18661 | @@ -7471,7 +8439,7 @@ EOF | ||
18662 | lt_exit=$? | ||
18663 | |||
18664 | # Restore the uninstalled library and exit | ||
18665 | - if test "$mode" = relink; then | ||
18666 | + if test "$opt_mode" = relink; then | ||
18667 | ( cd "$output_objdir" && \ | ||
18668 | $RM "${realname}T" && \ | ||
18669 | $MV "${realname}U" "$realname" ) | ||
18670 | @@ -7492,7 +8460,7 @@ EOF | ||
18671 | if test -n "$export_symbols" && test -n "$include_expsyms"; then | ||
18672 | tmp_export_symbols="$export_symbols" | ||
18673 | test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" | ||
18674 | - $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols" | ||
18675 | + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' | ||
18676 | fi | ||
18677 | |||
18678 | if test -n "$orig_export_symbols"; then | ||
18679 | @@ -7504,7 +8472,7 @@ EOF | ||
18680 | # global variables. join(1) would be nice here, but unfortunately | ||
18681 | # isn't a blessed tool. | ||
18682 | $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter | ||
18683 | - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" | ||
18684 | + func_append delfiles " $export_symbols $output_objdir/$libname.filter" | ||
18685 | export_symbols=$output_objdir/$libname.def | ||
18686 | $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols | ||
18687 | fi | ||
18688 | @@ -7515,7 +8483,7 @@ EOF | ||
18689 | output=$save_output | ||
18690 | |||
18691 | if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then | ||
18692 | - eval "libobjs=\"\$libobjs $whole_archive_flag_spec\"" | ||
18693 | + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" | ||
18694 | test "X$libobjs" = "X " && libobjs= | ||
18695 | fi | ||
18696 | # Expand the library linking commands again to reset the | ||
18697 | @@ -7539,23 +8507,23 @@ EOF | ||
18698 | |||
18699 | if test -n "$delfiles"; then | ||
18700 | # Append the command to remove temporary files to $cmds. | ||
18701 | - eval "cmds=\"\$cmds~\$RM $delfiles\"" | ||
18702 | + eval cmds=\"\$cmds~\$RM $delfiles\" | ||
18703 | fi | ||
18704 | |||
18705 | # Add any objects from preloaded convenience libraries | ||
18706 | if test -n "$dlprefiles"; then | ||
18707 | gentop="$output_objdir/${outputname}x" | ||
18708 | - generated="$generated $gentop" | ||
18709 | + func_append generated " $gentop" | ||
18710 | |||
18711 | func_extract_archives $gentop $dlprefiles | ||
18712 | - libobjs="$libobjs $func_extract_archives_result" | ||
18713 | + func_append libobjs " $func_extract_archives_result" | ||
18714 | test "X$libobjs" = "X " && libobjs= | ||
18715 | fi | ||
18716 | |||
18717 | save_ifs="$IFS"; IFS='~' | ||
18718 | for cmd in $cmds; do | ||
18719 | IFS="$save_ifs" | ||
18720 | - eval "cmd=\"$cmd\"" | ||
18721 | + eval cmd=\"$cmd\" | ||
18722 | $opt_silent || { | ||
18723 | func_quote_for_expand "$cmd" | ||
18724 | eval "func_echo $func_quote_for_expand_result" | ||
18725 | @@ -7564,7 +8532,7 @@ EOF | ||
18726 | lt_exit=$? | ||
18727 | |||
18728 | # Restore the uninstalled library and exit | ||
18729 | - if test "$mode" = relink; then | ||
18730 | + if test "$opt_mode" = relink; then | ||
18731 | ( cd "$output_objdir" && \ | ||
18732 | $RM "${realname}T" && \ | ||
18733 | $MV "${realname}U" "$realname" ) | ||
18734 | @@ -7576,8 +8544,8 @@ EOF | ||
18735 | IFS="$save_ifs" | ||
18736 | |||
18737 | # Restore the uninstalled library and exit | ||
18738 | - if test "$mode" = relink; then | ||
18739 | - $opt_dry_run || (cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname) || exit $? | ||
18740 | + if test "$opt_mode" = relink; then | ||
18741 | + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? | ||
18742 | |||
18743 | if test -n "$convenience"; then | ||
18744 | if test -z "$whole_archive_flag_spec"; then | ||
18745 | @@ -7656,17 +8624,20 @@ EOF | ||
18746 | |||
18747 | if test -n "$convenience"; then | ||
18748 | if test -n "$whole_archive_flag_spec"; then | ||
18749 | - eval "tmp_whole_archive_flags=\"$whole_archive_flag_spec\"" | ||
18750 | + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" | ||
18751 | reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` | ||
18752 | else | ||
18753 | gentop="$output_objdir/${obj}x" | ||
18754 | - generated="$generated $gentop" | ||
18755 | + func_append generated " $gentop" | ||
18756 | |||
18757 | func_extract_archives $gentop $convenience | ||
18758 | reload_conv_objs="$reload_objs $func_extract_archives_result" | ||
18759 | fi | ||
18760 | fi | ||
18761 | |||
18762 | + # If we're not building shared, we need to use non_pic_objs | ||
18763 | + test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" | ||
18764 | + | ||
18765 | # Create the old-style object. | ||
18766 | reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test | ||
18767 | |||
18768 | @@ -7690,7 +8661,7 @@ EOF | ||
18769 | # Create an invalid libtool object if no PIC, so that we don't | ||
18770 | # accidentally link it into a program. | ||
18771 | # $show "echo timestamp > $libobj" | ||
18772 | - # $opt_dry_run || echo timestamp > $libobj || exit $? | ||
18773 | + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? | ||
18774 | exit $EXIT_SUCCESS | ||
18775 | fi | ||
18776 | |||
18777 | @@ -7740,8 +8711,8 @@ EOF | ||
18778 | if test "$tagname" = CXX ; then | ||
18779 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | ||
18780 | 10.[0123]) | ||
18781 | - compile_command="$compile_command ${wl}-bind_at_load" | ||
18782 | - finalize_command="$finalize_command ${wl}-bind_at_load" | ||
18783 | + func_append compile_command " ${wl}-bind_at_load" | ||
18784 | + func_append finalize_command " ${wl}-bind_at_load" | ||
18785 | ;; | ||
18786 | esac | ||
18787 | fi | ||
18788 | @@ -7761,7 +8732,7 @@ EOF | ||
18789 | *) | ||
18790 | case " $compile_deplibs " in | ||
18791 | *" -L$path/$objdir "*) | ||
18792 | - new_libs="$new_libs -L$path/$objdir" ;; | ||
18793 | + func_append new_libs " -L$path/$objdir" ;; | ||
18794 | esac | ||
18795 | ;; | ||
18796 | esac | ||
18797 | @@ -7771,17 +8742,17 @@ EOF | ||
18798 | -L*) | ||
18799 | case " $new_libs " in | ||
18800 | *" $deplib "*) ;; | ||
18801 | - *) new_libs="$new_libs $deplib" ;; | ||
18802 | + *) func_append new_libs " $deplib" ;; | ||
18803 | esac | ||
18804 | ;; | ||
18805 | - *) new_libs="$new_libs $deplib" ;; | ||
18806 | + *) func_append new_libs " $deplib" ;; | ||
18807 | esac | ||
18808 | done | ||
18809 | compile_deplibs="$new_libs" | ||
18810 | |||
18811 | |||
18812 | - compile_command="$compile_command $compile_deplibs" | ||
18813 | - finalize_command="$finalize_command $finalize_deplibs" | ||
18814 | + func_append compile_command " $compile_deplibs" | ||
18815 | + func_append finalize_command " $finalize_deplibs" | ||
18816 | |||
18817 | if test -n "$rpath$xrpath"; then | ||
18818 | # If the user specified any rpath flags, then add them. | ||
18819 | @@ -7789,7 +8760,7 @@ EOF | ||
18820 | # This is the magic to use -rpath. | ||
18821 | case "$finalize_rpath " in | ||
18822 | *" $libdir "*) ;; | ||
18823 | - *) finalize_rpath="$finalize_rpath $libdir" ;; | ||
18824 | + *) func_append finalize_rpath " $libdir" ;; | ||
18825 | esac | ||
18826 | done | ||
18827 | fi | ||
18828 | @@ -7808,18 +8779,18 @@ EOF | ||
18829 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) | ||
18830 | ;; | ||
18831 | *) | ||
18832 | - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | ||
18833 | + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | ||
18834 | ;; | ||
18835 | esac | ||
18836 | fi | ||
18837 | else | ||
18838 | - eval "flag=\"$hardcode_libdir_flag_spec\"" | ||
18839 | - rpath="$rpath $flag" | ||
18840 | + eval flag=\"$hardcode_libdir_flag_spec\" | ||
18841 | + func_append rpath " $flag" | ||
18842 | fi | ||
18843 | elif test -n "$runpath_var"; then | ||
18844 | case "$perm_rpath " in | ||
18845 | *" $libdir "*) ;; | ||
18846 | - *) perm_rpath="$perm_rpath $libdir" ;; | ||
18847 | + *) func_append perm_rpath " $libdir" ;; | ||
18848 | esac | ||
18849 | fi | ||
18850 | case $host in | ||
18851 | @@ -7828,12 +8799,12 @@ EOF | ||
18852 | case :$dllsearchpath: in | ||
18853 | *":$libdir:"*) ;; | ||
18854 | ::) dllsearchpath=$libdir;; | ||
18855 | - *) dllsearchpath="$dllsearchpath:$libdir";; | ||
18856 | + *) func_append dllsearchpath ":$libdir";; | ||
18857 | esac | ||
18858 | case :$dllsearchpath: in | ||
18859 | *":$testbindir:"*) ;; | ||
18860 | ::) dllsearchpath=$testbindir;; | ||
18861 | - *) dllsearchpath="$dllsearchpath:$testbindir";; | ||
18862 | + *) func_append dllsearchpath ":$testbindir";; | ||
18863 | esac | ||
18864 | ;; | ||
18865 | esac | ||
18866 | @@ -7842,7 +8813,7 @@ EOF | ||
18867 | if test -n "$hardcode_libdir_separator" && | ||
18868 | test -n "$hardcode_libdirs"; then | ||
18869 | libdir="$hardcode_libdirs" | ||
18870 | - eval "rpath=\" $hardcode_libdir_flag_spec\"" | ||
18871 | + eval rpath=\" $hardcode_libdir_flag_spec\" | ||
18872 | fi | ||
18873 | compile_rpath="$rpath" | ||
18874 | |||
18875 | @@ -7859,18 +8830,18 @@ EOF | ||
18876 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) | ||
18877 | ;; | ||
18878 | *) | ||
18879 | - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | ||
18880 | + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | ||
18881 | ;; | ||
18882 | esac | ||
18883 | fi | ||
18884 | else | ||
18885 | - eval "flag=\"$hardcode_libdir_flag_spec\"" | ||
18886 | - rpath="$rpath $flag" | ||
18887 | + eval flag=\"$hardcode_libdir_flag_spec\" | ||
18888 | + func_append rpath " $flag" | ||
18889 | fi | ||
18890 | elif test -n "$runpath_var"; then | ||
18891 | case "$finalize_perm_rpath " in | ||
18892 | *" $libdir "*) ;; | ||
18893 | - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; | ||
18894 | + *) func_append finalize_perm_rpath " $libdir" ;; | ||
18895 | esac | ||
18896 | fi | ||
18897 | done | ||
18898 | @@ -7878,7 +8849,7 @@ EOF | ||
18899 | if test -n "$hardcode_libdir_separator" && | ||
18900 | test -n "$hardcode_libdirs"; then | ||
18901 | libdir="$hardcode_libdirs" | ||
18902 | - eval "rpath=\" $hardcode_libdir_flag_spec\"" | ||
18903 | + eval rpath=\" $hardcode_libdir_flag_spec\" | ||
18904 | fi | ||
18905 | finalize_rpath="$rpath" | ||
18906 | |||
18907 | @@ -7921,6 +8892,12 @@ EOF | ||
18908 | exit_status=0 | ||
18909 | func_show_eval "$link_command" 'exit_status=$?' | ||
18910 | |||
18911 | + if test -n "$postlink_cmds"; then | ||
18912 | + func_to_tool_file "$output" | ||
18913 | + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` | ||
18914 | + func_execute_cmds "$postlink_cmds" 'exit $?' | ||
18915 | + fi | ||
18916 | + | ||
18917 | # Delete the generated files. | ||
18918 | if test -f "$output_objdir/${outputname}S.${objext}"; then | ||
18919 | func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' | ||
18920 | @@ -7943,7 +8920,7 @@ EOF | ||
18921 | # We should set the runpath_var. | ||
18922 | rpath= | ||
18923 | for dir in $perm_rpath; do | ||
18924 | - rpath="$rpath$dir:" | ||
18925 | + func_append rpath "$dir:" | ||
18926 | done | ||
18927 | compile_var="$runpath_var=\"$rpath\$$runpath_var\" " | ||
18928 | fi | ||
18929 | @@ -7951,7 +8928,7 @@ EOF | ||
18930 | # We should set the runpath_var. | ||
18931 | rpath= | ||
18932 | for dir in $finalize_perm_rpath; do | ||
18933 | - rpath="$rpath$dir:" | ||
18934 | + func_append rpath "$dir:" | ||
18935 | done | ||
18936 | finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " | ||
18937 | fi | ||
18938 | @@ -7966,6 +8943,13 @@ EOF | ||
18939 | $opt_dry_run || $RM $output | ||
18940 | # Link the executable and exit | ||
18941 | func_show_eval "$link_command" 'exit $?' | ||
18942 | + | ||
18943 | + if test -n "$postlink_cmds"; then | ||
18944 | + func_to_tool_file "$output" | ||
18945 | + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` | ||
18946 | + func_execute_cmds "$postlink_cmds" 'exit $?' | ||
18947 | + fi | ||
18948 | + | ||
18949 | exit $EXIT_SUCCESS | ||
18950 | fi | ||
18951 | |||
18952 | @@ -7999,6 +8983,12 @@ EOF | ||
18953 | |||
18954 | func_show_eval "$link_command" 'exit $?' | ||
18955 | |||
18956 | + if test -n "$postlink_cmds"; then | ||
18957 | + func_to_tool_file "$output_objdir/$outputname" | ||
18958 | + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` | ||
18959 | + func_execute_cmds "$postlink_cmds" 'exit $?' | ||
18960 | + fi | ||
18961 | + | ||
18962 | # Now create the wrapper script. | ||
18963 | func_verbose "creating $output" | ||
18964 | |||
18965 | @@ -8096,7 +9086,7 @@ EOF | ||
18966 | else | ||
18967 | oldobjs="$old_deplibs $non_pic_objects" | ||
18968 | if test "$preload" = yes && test -f "$symfileobj"; then | ||
18969 | - oldobjs="$oldobjs $symfileobj" | ||
18970 | + func_append oldobjs " $symfileobj" | ||
18971 | fi | ||
18972 | fi | ||
18973 | addlibs="$old_convenience" | ||
18974 | @@ -8104,10 +9094,10 @@ EOF | ||
18975 | |||
18976 | if test -n "$addlibs"; then | ||
18977 | gentop="$output_objdir/${outputname}x" | ||
18978 | - generated="$generated $gentop" | ||
18979 | + func_append generated " $gentop" | ||
18980 | |||
18981 | func_extract_archives $gentop $addlibs | ||
18982 | - oldobjs="$oldobjs $func_extract_archives_result" | ||
18983 | + func_append oldobjs " $func_extract_archives_result" | ||
18984 | fi | ||
18985 | |||
18986 | # Do each command in the archive commands. | ||
18987 | @@ -8118,10 +9108,10 @@ EOF | ||
18988 | # Add any objects from preloaded convenience libraries | ||
18989 | if test -n "$dlprefiles"; then | ||
18990 | gentop="$output_objdir/${outputname}x" | ||
18991 | - generated="$generated $gentop" | ||
18992 | + func_append generated " $gentop" | ||
18993 | |||
18994 | func_extract_archives $gentop $dlprefiles | ||
18995 | - oldobjs="$oldobjs $func_extract_archives_result" | ||
18996 | + func_append oldobjs " $func_extract_archives_result" | ||
18997 | fi | ||
18998 | |||
18999 | # POSIX demands no paths to be encoded in archives. We have | ||
19000 | @@ -8139,7 +9129,7 @@ EOF | ||
19001 | else | ||
19002 | echo "copying selected object files to avoid basename conflicts..." | ||
19003 | gentop="$output_objdir/${outputname}x" | ||
19004 | - generated="$generated $gentop" | ||
19005 | + func_append generated " $gentop" | ||
19006 | func_mkdir_p "$gentop" | ||
19007 | save_oldobjs=$oldobjs | ||
19008 | oldobjs= | ||
19009 | @@ -8163,18 +9153,28 @@ EOF | ||
19010 | esac | ||
19011 | done | ||
19012 | func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" | ||
19013 | - oldobjs="$oldobjs $gentop/$newobj" | ||
19014 | + func_append oldobjs " $gentop/$newobj" | ||
19015 | ;; | ||
19016 | - *) oldobjs="$oldobjs $obj" ;; | ||
19017 | + *) func_append oldobjs " $obj" ;; | ||
19018 | esac | ||
19019 | done | ||
19020 | fi | ||
19021 | - eval "cmds=\"$old_archive_cmds\"" | ||
19022 | + eval cmds=\"$old_archive_cmds\" | ||
19023 | |||
19024 | func_len " $cmds" | ||
19025 | len=$func_len_result | ||
19026 | if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then | ||
19027 | cmds=$old_archive_cmds | ||
19028 | + elif test -n "$archiver_list_spec"; then | ||
19029 | + func_verbose "using command file archive linking..." | ||
19030 | + for obj in $oldobjs | ||
19031 | + do | ||
19032 | + func_to_tool_file "$obj" | ||
19033 | + $ECHO "$func_to_tool_file_result" | ||
19034 | + done > $output_objdir/$libname.libcmd | ||
19035 | + func_to_tool_file "$output_objdir/$libname.libcmd" | ||
19036 | + oldobjs=" $archiver_list_spec$func_to_tool_file_result" | ||
19037 | + cmds=$old_archive_cmds | ||
19038 | else | ||
19039 | # the command line is too long to link in one step, link in parts | ||
19040 | func_verbose "using piecewise archive linking..." | ||
19041 | @@ -8189,7 +9189,7 @@ EOF | ||
19042 | do | ||
19043 | last_oldobj=$obj | ||
19044 | done | ||
19045 | - eval "test_cmds=\"$old_archive_cmds\"" | ||
19046 | + eval test_cmds=\"$old_archive_cmds\" | ||
19047 | func_len " $test_cmds" | ||
19048 | len0=$func_len_result | ||
19049 | len=$len0 | ||
19050 | @@ -8208,7 +9208,7 @@ EOF | ||
19051 | RANLIB=$save_RANLIB | ||
19052 | fi | ||
19053 | test -z "$concat_cmds" || concat_cmds=$concat_cmds~ | ||
19054 | - eval "concat_cmds=\"\${concat_cmds}$old_archive_cmds\"" | ||
19055 | + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" | ||
19056 | objlist= | ||
19057 | len=$len0 | ||
19058 | fi | ||
19059 | @@ -8216,9 +9216,9 @@ EOF | ||
19060 | RANLIB=$save_RANLIB | ||
19061 | oldobjs=$objlist | ||
19062 | if test "X$oldobjs" = "X" ; then | ||
19063 | - eval "cmds=\"\$concat_cmds\"" | ||
19064 | + eval cmds=\"\$concat_cmds\" | ||
19065 | else | ||
19066 | - eval "cmds=\"\$concat_cmds~\$old_archive_cmds\"" | ||
19067 | + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" | ||
19068 | fi | ||
19069 | fi | ||
19070 | fi | ||
19071 | @@ -8268,12 +9268,23 @@ EOF | ||
19072 | *.la) | ||
19073 | func_basename "$deplib" | ||
19074 | name="$func_basename_result" | ||
19075 | - libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` | ||
19076 | + func_resolve_sysroot "$deplib" | ||
19077 | + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` | ||
19078 | test -z "$libdir" && \ | ||
19079 | func_fatal_error "\`$deplib' is not a valid libtool archive" | ||
19080 | - newdependency_libs="$newdependency_libs $libdir/$name" | ||
19081 | + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" | ||
19082 | + ;; | ||
19083 | + -L*) | ||
19084 | + func_stripname -L '' "$deplib" | ||
19085 | + func_replace_sysroot "$func_stripname_result" | ||
19086 | + func_append newdependency_libs " -L$func_replace_sysroot_result" | ||
19087 | ;; | ||
19088 | - *) newdependency_libs="$newdependency_libs $deplib" ;; | ||
19089 | + -R*) | ||
19090 | + func_stripname -R '' "$deplib" | ||
19091 | + func_replace_sysroot "$func_stripname_result" | ||
19092 | + func_append newdependency_libs " -R$func_replace_sysroot_result" | ||
19093 | + ;; | ||
19094 | + *) func_append newdependency_libs " $deplib" ;; | ||
19095 | esac | ||
19096 | done | ||
19097 | dependency_libs="$newdependency_libs" | ||
19098 | @@ -8284,12 +9295,14 @@ EOF | ||
19099 | *.la) | ||
19100 | func_basename "$lib" | ||
19101 | name="$func_basename_result" | ||
19102 | - libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` | ||
19103 | + func_resolve_sysroot "$lib" | ||
19104 | + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` | ||
19105 | + | ||
19106 | test -z "$libdir" && \ | ||
19107 | func_fatal_error "\`$lib' is not a valid libtool archive" | ||
19108 | - newdlfiles="$newdlfiles $libdir/$name" | ||
19109 | + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" | ||
19110 | ;; | ||
19111 | - *) newdlfiles="$newdlfiles $lib" ;; | ||
19112 | + *) func_append newdlfiles " $lib" ;; | ||
19113 | esac | ||
19114 | done | ||
19115 | dlfiles="$newdlfiles" | ||
19116 | @@ -8303,10 +9316,11 @@ EOF | ||
19117 | # the library: | ||
19118 | func_basename "$lib" | ||
19119 | name="$func_basename_result" | ||
19120 | - libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` | ||
19121 | + func_resolve_sysroot "$lib" | ||
19122 | + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` | ||
19123 | test -z "$libdir" && \ | ||
19124 | func_fatal_error "\`$lib' is not a valid libtool archive" | ||
19125 | - newdlprefiles="$newdlprefiles $libdir/$name" | ||
19126 | + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" | ||
19127 | ;; | ||
19128 | esac | ||
19129 | done | ||
19130 | @@ -8318,7 +9332,7 @@ EOF | ||
19131 | [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; | ||
19132 | *) abs=`pwd`"/$lib" ;; | ||
19133 | esac | ||
19134 | - newdlfiles="$newdlfiles $abs" | ||
19135 | + func_append newdlfiles " $abs" | ||
19136 | done | ||
19137 | dlfiles="$newdlfiles" | ||
19138 | newdlprefiles= | ||
19139 | @@ -8327,7 +9341,7 @@ EOF | ||
19140 | [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; | ||
19141 | *) abs=`pwd`"/$lib" ;; | ||
19142 | esac | ||
19143 | - newdlprefiles="$newdlprefiles $abs" | ||
19144 | + func_append newdlprefiles " $abs" | ||
19145 | done | ||
19146 | dlprefiles="$newdlprefiles" | ||
19147 | fi | ||
19148 | @@ -8412,7 +9426,7 @@ relink_command=\"$relink_command\"" | ||
19149 | exit $EXIT_SUCCESS | ||
19150 | } | ||
19151 | |||
19152 | -{ test "$mode" = link || test "$mode" = relink; } && | ||
19153 | +{ test "$opt_mode" = link || test "$opt_mode" = relink; } && | ||
19154 | func_mode_link ${1+"$@"} | ||
19155 | |||
19156 | |||
19157 | @@ -8432,9 +9446,9 @@ func_mode_uninstall () | ||
19158 | for arg | ||
19159 | do | ||
19160 | case $arg in | ||
19161 | - -f) RM="$RM $arg"; rmforce=yes ;; | ||
19162 | - -*) RM="$RM $arg" ;; | ||
19163 | - *) files="$files $arg" ;; | ||
19164 | + -f) func_append RM " $arg"; rmforce=yes ;; | ||
19165 | + -*) func_append RM " $arg" ;; | ||
19166 | + *) func_append files " $arg" ;; | ||
19167 | esac | ||
19168 | done | ||
19169 | |||
19170 | @@ -8443,24 +9457,23 @@ func_mode_uninstall () | ||
19171 | |||
19172 | rmdirs= | ||
19173 | |||
19174 | - origobjdir="$objdir" | ||
19175 | for file in $files; do | ||
19176 | func_dirname "$file" "" "." | ||
19177 | dir="$func_dirname_result" | ||
19178 | if test "X$dir" = X.; then | ||
19179 | - objdir="$origobjdir" | ||
19180 | + odir="$objdir" | ||
19181 | else | ||
19182 | - objdir="$dir/$origobjdir" | ||
19183 | + odir="$dir/$objdir" | ||
19184 | fi | ||
19185 | func_basename "$file" | ||
19186 | name="$func_basename_result" | ||
19187 | - test "$mode" = uninstall && objdir="$dir" | ||
19188 | + test "$opt_mode" = uninstall && odir="$dir" | ||
19189 | |||
19190 | - # Remember objdir for removal later, being careful to avoid duplicates | ||
19191 | - if test "$mode" = clean; then | ||
19192 | + # Remember odir for removal later, being careful to avoid duplicates | ||
19193 | + if test "$opt_mode" = clean; then | ||
19194 | case " $rmdirs " in | ||
19195 | - *" $objdir "*) ;; | ||
19196 | - *) rmdirs="$rmdirs $objdir" ;; | ||
19197 | + *" $odir "*) ;; | ||
19198 | + *) func_append rmdirs " $odir" ;; | ||
19199 | esac | ||
19200 | fi | ||
19201 | |||
19202 | @@ -8486,18 +9499,17 @@ func_mode_uninstall () | ||
19203 | |||
19204 | # Delete the libtool libraries and symlinks. | ||
19205 | for n in $library_names; do | ||
19206 | - rmfiles="$rmfiles $objdir/$n" | ||
19207 | + func_append rmfiles " $odir/$n" | ||
19208 | done | ||
19209 | - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" | ||
19210 | + test -n "$old_library" && func_append rmfiles " $odir/$old_library" | ||
19211 | |||
19212 | - case "$mode" in | ||
19213 | + case "$opt_mode" in | ||
19214 | clean) | ||
19215 | - case " $library_names " in | ||
19216 | - # " " in the beginning catches empty $dlname | ||
19217 | + case " $library_names " in | ||
19218 | *" $dlname "*) ;; | ||
19219 | - *) rmfiles="$rmfiles $objdir/$dlname" ;; | ||
19220 | + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; | ||
19221 | esac | ||
19222 | - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" | ||
19223 | + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" | ||
19224 | ;; | ||
19225 | uninstall) | ||
19226 | if test -n "$library_names"; then | ||
19227 | @@ -8525,19 +9537,19 @@ func_mode_uninstall () | ||
19228 | # Add PIC object to the list of files to remove. | ||
19229 | if test -n "$pic_object" && | ||
19230 | test "$pic_object" != none; then | ||
19231 | - rmfiles="$rmfiles $dir/$pic_object" | ||
19232 | + func_append rmfiles " $dir/$pic_object" | ||
19233 | fi | ||
19234 | |||
19235 | # Add non-PIC object to the list of files to remove. | ||
19236 | if test -n "$non_pic_object" && | ||
19237 | test "$non_pic_object" != none; then | ||
19238 | - rmfiles="$rmfiles $dir/$non_pic_object" | ||
19239 | + func_append rmfiles " $dir/$non_pic_object" | ||
19240 | fi | ||
19241 | fi | ||
19242 | ;; | ||
19243 | |||
19244 | *) | ||
19245 | - if test "$mode" = clean ; then | ||
19246 | + if test "$opt_mode" = clean ; then | ||
19247 | noexename=$name | ||
19248 | case $file in | ||
19249 | *.exe) | ||
19250 | @@ -8547,7 +9559,7 @@ func_mode_uninstall () | ||
19251 | noexename=$func_stripname_result | ||
19252 | # $file with .exe has already been added to rmfiles, | ||
19253 | # add $file without .exe | ||
19254 | - rmfiles="$rmfiles $file" | ||
19255 | + func_append rmfiles " $file" | ||
19256 | ;; | ||
19257 | esac | ||
19258 | # Do a test to see if this is a libtool program. | ||
19259 | @@ -8556,7 +9568,7 @@ func_mode_uninstall () | ||
19260 | func_ltwrapper_scriptname "$file" | ||
19261 | relink_command= | ||
19262 | func_source $func_ltwrapper_scriptname_result | ||
19263 | - rmfiles="$rmfiles $func_ltwrapper_scriptname_result" | ||
19264 | + func_append rmfiles " $func_ltwrapper_scriptname_result" | ||
19265 | else | ||
19266 | relink_command= | ||
19267 | func_source $dir/$noexename | ||
19268 | @@ -8564,12 +9576,12 @@ func_mode_uninstall () | ||
19269 | |||
19270 | # note $name still contains .exe if it was in $file originally | ||
19271 | # as does the version of $file that was added into $rmfiles | ||
19272 | - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" | ||
19273 | + func_append rmfiles " $odir/$name $odir/${name}S.${objext}" | ||
19274 | if test "$fast_install" = yes && test -n "$relink_command"; then | ||
19275 | - rmfiles="$rmfiles $objdir/lt-$name" | ||
19276 | + func_append rmfiles " $odir/lt-$name" | ||
19277 | fi | ||
19278 | if test "X$noexename" != "X$name" ; then | ||
19279 | - rmfiles="$rmfiles $objdir/lt-${noexename}.c" | ||
19280 | + func_append rmfiles " $odir/lt-${noexename}.c" | ||
19281 | fi | ||
19282 | fi | ||
19283 | fi | ||
19284 | @@ -8577,7 +9589,6 @@ func_mode_uninstall () | ||
19285 | esac | ||
19286 | func_show_eval "$RM $rmfiles" 'exit_status=1' | ||
19287 | done | ||
19288 | - objdir="$origobjdir" | ||
19289 | |||
19290 | # Try to remove the ${objdir}s in the directories where we deleted files | ||
19291 | for dir in $rmdirs; do | ||
19292 | @@ -8589,16 +9600,16 @@ func_mode_uninstall () | ||
19293 | exit $exit_status | ||
19294 | } | ||
19295 | |||
19296 | -{ test "$mode" = uninstall || test "$mode" = clean; } && | ||
19297 | +{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && | ||
19298 | func_mode_uninstall ${1+"$@"} | ||
19299 | |||
19300 | -test -z "$mode" && { | ||
19301 | +test -z "$opt_mode" && { | ||
19302 | help="$generic_help" | ||
19303 | func_fatal_help "you must specify a MODE" | ||
19304 | } | ||
19305 | |||
19306 | test -z "$exec_cmd" && \ | ||
19307 | - func_fatal_help "invalid operation mode \`$mode'" | ||
19308 | + func_fatal_help "invalid operation mode \`$opt_mode'" | ||
19309 | |||
19310 | if test -n "$exec_cmd"; then | ||
19311 | eval exec "$exec_cmd" | ||
19312 | diff --git a/ltoptions.m4 b/ltoptions.m4 | ||
19313 | index 5ef12ced2a8..17cfd51c0b3 100644 | ||
19314 | --- a/ltoptions.m4 | ||
19315 | +++ b/ltoptions.m4 | ||
19316 | @@ -8,7 +8,7 @@ | ||
19317 | # unlimited permission to copy and/or distribute it, with or without | ||
19318 | # modifications, as long as this notice is preserved. | ||
19319 | |||
19320 | -# serial 6 ltoptions.m4 | ||
19321 | +# serial 7 ltoptions.m4 | ||
19322 | |||
19323 | # This is to help aclocal find these macros, as it can't see m4_define. | ||
19324 | AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) | ||
19325 | diff --git a/ltversion.m4 b/ltversion.m4 | ||
19326 | index bf87f77132d..9c7b5d41185 100644 | ||
19327 | --- a/ltversion.m4 | ||
19328 | +++ b/ltversion.m4 | ||
19329 | @@ -7,17 +7,17 @@ | ||
19330 | # unlimited permission to copy and/or distribute it, with or without | ||
19331 | # modifications, as long as this notice is preserved. | ||
19332 | |||
19333 | -# Generated from ltversion.in. | ||
19334 | +# @configure_input@ | ||
19335 | |||
19336 | -# serial 3134 ltversion.m4 | ||
19337 | +# serial 3293 ltversion.m4 | ||
19338 | # This file is part of GNU Libtool | ||
19339 | |||
19340 | -m4_define([LT_PACKAGE_VERSION], [2.2.7a]) | ||
19341 | -m4_define([LT_PACKAGE_REVISION], [1.3134]) | ||
19342 | +m4_define([LT_PACKAGE_VERSION], [2.4]) | ||
19343 | +m4_define([LT_PACKAGE_REVISION], [1.3293]) | ||
19344 | |||
19345 | AC_DEFUN([LTVERSION_VERSION], | ||
19346 | -[macro_version='2.2.7a' | ||
19347 | -macro_revision='1.3134' | ||
19348 | +[macro_version='2.4' | ||
19349 | +macro_revision='1.3293' | ||
19350 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | ||
19351 | _LT_DECL(, macro_revision, 0) | ||
19352 | ]) | ||
19353 | diff --git a/lt~obsolete.m4 b/lt~obsolete.m4 | ||
19354 | index bf92b5e0790..c573da90c5c 100644 | ||
19355 | --- a/lt~obsolete.m4 | ||
19356 | +++ b/lt~obsolete.m4 | ||
19357 | @@ -7,7 +7,7 @@ | ||
19358 | # unlimited permission to copy and/or distribute it, with or without | ||
19359 | # modifications, as long as this notice is preserved. | ||
19360 | |||
19361 | -# serial 4 lt~obsolete.m4 | ||
19362 | +# serial 5 lt~obsolete.m4 | ||
19363 | |||
19364 | # These exist entirely to fool aclocal when bootstrapping libtool. | ||
19365 | # | ||
19366 | diff --git a/opcodes/configure b/opcodes/configure | ||
19367 | index 3513e408ce1..133948631e9 100755 | ||
19368 | --- a/opcodes/configure | ||
19369 | +++ b/opcodes/configure | ||
19370 | @@ -680,6 +680,9 @@ OTOOL | ||
19371 | LIPO | ||
19372 | NMEDIT | ||
19373 | DSYMUTIL | ||
19374 | +MANIFEST_TOOL | ||
19375 | +ac_ct_AR | ||
19376 | +DLLTOOL | ||
19377 | OBJDUMP | ||
19378 | LN_S | ||
19379 | NM | ||
19380 | @@ -798,6 +801,7 @@ enable_static | ||
19381 | with_pic | ||
19382 | enable_fast_install | ||
19383 | with_gnu_ld | ||
19384 | +with_libtool_sysroot | ||
19385 | enable_libtool_lock | ||
19386 | enable_checking | ||
19387 | enable_targets | ||
19388 | @@ -1464,6 +1468,8 @@ Optional Packages: | ||
19389 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
19390 | both] | ||
19391 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
19392 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
19393 | + (or the compiler's sysroot if not specified). | ||
19394 | |||
19395 | Some influential environment variables: | ||
19396 | CC C compiler command | ||
19397 | @@ -4751,8 +4757,8 @@ esac | ||
19398 | |||
19399 | |||
19400 | |||
19401 | -macro_version='2.2.7a' | ||
19402 | -macro_revision='1.3134' | ||
19403 | +macro_version='2.4' | ||
19404 | +macro_revision='1.3293' | ||
19405 | |||
19406 | |||
19407 | |||
19408 | @@ -4792,7 +4798,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
19409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
19410 | $as_echo_n "checking how to print strings... " >&6; } | ||
19411 | # Test print first, because it will be a builtin if present. | ||
19412 | -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | ||
19413 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
19414 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
19415 | ECHO='print -r --' | ||
19416 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
19417 | @@ -5478,8 +5484,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; | ||
19418 | # Try some XSI features | ||
19419 | xsi_shell=no | ||
19420 | ( _lt_dummy="a/b/c" | ||
19421 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
19422 | - = c,a/b,, \ | ||
19423 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
19424 | + = c,a/b,b/c, \ | ||
19425 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
19426 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
19427 | && xsi_shell=yes | ||
19428 | @@ -5528,6 +5534,80 @@ esac | ||
19429 | |||
19430 | |||
19431 | |||
19432 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
19433 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
19434 | +if ${lt_cv_to_host_file_cmd+:} false; then : | ||
19435 | + $as_echo_n "(cached) " >&6 | ||
19436 | +else | ||
19437 | + case $host in | ||
19438 | + *-*-mingw* ) | ||
19439 | + case $build in | ||
19440 | + *-*-mingw* ) # actually msys | ||
19441 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
19442 | + ;; | ||
19443 | + *-*-cygwin* ) | ||
19444 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
19445 | + ;; | ||
19446 | + * ) # otherwise, assume *nix | ||
19447 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
19448 | + ;; | ||
19449 | + esac | ||
19450 | + ;; | ||
19451 | + *-*-cygwin* ) | ||
19452 | + case $build in | ||
19453 | + *-*-mingw* ) # actually msys | ||
19454 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
19455 | + ;; | ||
19456 | + *-*-cygwin* ) | ||
19457 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
19458 | + ;; | ||
19459 | + * ) # otherwise, assume *nix | ||
19460 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
19461 | + ;; | ||
19462 | + esac | ||
19463 | + ;; | ||
19464 | + * ) # unhandled hosts (and "normal" native builds) | ||
19465 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
19466 | + ;; | ||
19467 | +esac | ||
19468 | + | ||
19469 | +fi | ||
19470 | + | ||
19471 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
19472 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
19473 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
19474 | + | ||
19475 | + | ||
19476 | + | ||
19477 | + | ||
19478 | + | ||
19479 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
19480 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
19481 | +if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
19482 | + $as_echo_n "(cached) " >&6 | ||
19483 | +else | ||
19484 | + #assume ordinary cross tools, or native build. | ||
19485 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
19486 | +case $host in | ||
19487 | + *-*-mingw* ) | ||
19488 | + case $build in | ||
19489 | + *-*-mingw* ) # actually msys | ||
19490 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
19491 | + ;; | ||
19492 | + esac | ||
19493 | + ;; | ||
19494 | +esac | ||
19495 | + | ||
19496 | +fi | ||
19497 | + | ||
19498 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
19499 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
19500 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
19501 | + | ||
19502 | + | ||
19503 | + | ||
19504 | + | ||
19505 | + | ||
19506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
19507 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
19508 | if ${lt_cv_ld_reload_flag+:} false; then : | ||
19509 | @@ -5544,6 +5624,11 @@ case $reload_flag in | ||
19510 | esac | ||
19511 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
19512 | case $host_os in | ||
19513 | + cygwin* | mingw* | pw32* | cegcc*) | ||
19514 | + if test "$GCC" != yes; then | ||
19515 | + reload_cmds=false | ||
19516 | + fi | ||
19517 | + ;; | ||
19518 | darwin*) | ||
19519 | if test "$GCC" = yes; then | ||
19520 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
19521 | @@ -5712,7 +5797,8 @@ mingw* | pw32*) | ||
19522 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
19523 | lt_cv_file_magic_cmd='func_win32_libid' | ||
19524 | else | ||
19525 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
19526 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
19527 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
19528 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
19529 | fi | ||
19530 | ;; | ||
19531 | @@ -5866,6 +5952,21 @@ esac | ||
19532 | fi | ||
19533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
19534 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
19535 | + | ||
19536 | +file_magic_glob= | ||
19537 | +want_nocaseglob=no | ||
19538 | +if test "$build" = "$host"; then | ||
19539 | + case $host_os in | ||
19540 | + mingw* | pw32*) | ||
19541 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
19542 | + want_nocaseglob=yes | ||
19543 | + else | ||
19544 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
19545 | + fi | ||
19546 | + ;; | ||
19547 | + esac | ||
19548 | +fi | ||
19549 | + | ||
19550 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
19551 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
19552 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
19553 | @@ -5881,6 +5982,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
19554 | |||
19555 | |||
19556 | |||
19557 | + | ||
19558 | + | ||
19559 | + | ||
19560 | + | ||
19561 | + | ||
19562 | + | ||
19563 | + | ||
19564 | + | ||
19565 | + | ||
19566 | + | ||
19567 | +if test -n "$ac_tool_prefix"; then | ||
19568 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
19569 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
19570 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19571 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
19572 | +if ${ac_cv_prog_DLLTOOL+:} false; then : | ||
19573 | + $as_echo_n "(cached) " >&6 | ||
19574 | +else | ||
19575 | + if test -n "$DLLTOOL"; then | ||
19576 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
19577 | +else | ||
19578 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19579 | +for as_dir in $PATH | ||
19580 | +do | ||
19581 | + IFS=$as_save_IFS | ||
19582 | + test -z "$as_dir" && as_dir=. | ||
19583 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
19584 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
19585 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
19586 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19587 | + break 2 | ||
19588 | + fi | ||
19589 | +done | ||
19590 | + done | ||
19591 | +IFS=$as_save_IFS | ||
19592 | + | ||
19593 | +fi | ||
19594 | +fi | ||
19595 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
19596 | +if test -n "$DLLTOOL"; then | ||
19597 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
19598 | +$as_echo "$DLLTOOL" >&6; } | ||
19599 | +else | ||
19600 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19601 | +$as_echo "no" >&6; } | ||
19602 | +fi | ||
19603 | + | ||
19604 | + | ||
19605 | +fi | ||
19606 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
19607 | + ac_ct_DLLTOOL=$DLLTOOL | ||
19608 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
19609 | +set dummy dlltool; ac_word=$2 | ||
19610 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19611 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
19612 | +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ||
19613 | + $as_echo_n "(cached) " >&6 | ||
19614 | +else | ||
19615 | + if test -n "$ac_ct_DLLTOOL"; then | ||
19616 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
19617 | +else | ||
19618 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19619 | +for as_dir in $PATH | ||
19620 | +do | ||
19621 | + IFS=$as_save_IFS | ||
19622 | + test -z "$as_dir" && as_dir=. | ||
19623 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
19624 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
19625 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
19626 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19627 | + break 2 | ||
19628 | + fi | ||
19629 | +done | ||
19630 | + done | ||
19631 | +IFS=$as_save_IFS | ||
19632 | + | ||
19633 | +fi | ||
19634 | +fi | ||
19635 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
19636 | +if test -n "$ac_ct_DLLTOOL"; then | ||
19637 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
19638 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
19639 | +else | ||
19640 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19641 | +$as_echo "no" >&6; } | ||
19642 | +fi | ||
19643 | + | ||
19644 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
19645 | + DLLTOOL="false" | ||
19646 | + else | ||
19647 | + case $cross_compiling:$ac_tool_warned in | ||
19648 | +yes:) | ||
19649 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
19650 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
19651 | +ac_tool_warned=yes ;; | ||
19652 | +esac | ||
19653 | + DLLTOOL=$ac_ct_DLLTOOL | ||
19654 | + fi | ||
19655 | +else | ||
19656 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
19657 | +fi | ||
19658 | + | ||
19659 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
19660 | + | ||
19661 | + | ||
19662 | + | ||
19663 | + | ||
19664 | + | ||
19665 | + | ||
19666 | + | ||
19667 | + | ||
19668 | + | ||
19669 | + | ||
19670 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
19671 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
19672 | +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
19673 | + $as_echo_n "(cached) " >&6 | ||
19674 | +else | ||
19675 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
19676 | + | ||
19677 | +case $host_os in | ||
19678 | +cygwin* | mingw* | pw32* | cegcc*) | ||
19679 | + # two different shell functions defined in ltmain.sh | ||
19680 | + # decide which to use based on capabilities of $DLLTOOL | ||
19681 | + case `$DLLTOOL --help 2>&1` in | ||
19682 | + *--identify-strict*) | ||
19683 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
19684 | + ;; | ||
19685 | + *) | ||
19686 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
19687 | + ;; | ||
19688 | + esac | ||
19689 | + ;; | ||
19690 | +*) | ||
19691 | + # fallback: assume linklib IS sharedlib | ||
19692 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
19693 | + ;; | ||
19694 | +esac | ||
19695 | + | ||
19696 | +fi | ||
19697 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
19698 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
19699 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
19700 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
19701 | + | ||
19702 | + | ||
19703 | + | ||
19704 | + | ||
19705 | + | ||
19706 | + | ||
19707 | + | ||
19708 | plugin_option= | ||
19709 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | ||
19710 | for plugin in $plugin_names; do | ||
19711 | @@ -5895,8 +6147,10 @@ for plugin in $plugin_names; do | ||
19712 | done | ||
19713 | |||
19714 | if test -n "$ac_tool_prefix"; then | ||
19715 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
19716 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
19717 | + for ac_prog in ar | ||
19718 | + do | ||
19719 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
19720 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
19721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19722 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19723 | if ${ac_cv_prog_AR+:} false; then : | ||
19724 | @@ -5912,7 +6166,7 @@ do | ||
19725 | test -z "$as_dir" && as_dir=. | ||
19726 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19727 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
19728 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
19729 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
19730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19731 | break 2 | ||
19732 | fi | ||
19733 | @@ -5932,11 +6186,15 @@ $as_echo "no" >&6; } | ||
19734 | fi | ||
19735 | |||
19736 | |||
19737 | + test -n "$AR" && break | ||
19738 | + done | ||
19739 | fi | ||
19740 | -if test -z "$ac_cv_prog_AR"; then | ||
19741 | +if test -z "$AR"; then | ||
19742 | ac_ct_AR=$AR | ||
19743 | - # Extract the first word of "ar", so it can be a program name with args. | ||
19744 | -set dummy ar; ac_word=$2 | ||
19745 | + for ac_prog in ar | ||
19746 | +do | ||
19747 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
19748 | +set dummy $ac_prog; ac_word=$2 | ||
19749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19750 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19751 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
19752 | @@ -5952,7 +6210,7 @@ do | ||
19753 | test -z "$as_dir" && as_dir=. | ||
19754 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
19756 | - ac_cv_prog_ac_ct_AR="ar" | ||
19757 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
19758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19759 | break 2 | ||
19760 | fi | ||
19761 | @@ -5971,6 +6229,10 @@ else | ||
19762 | $as_echo "no" >&6; } | ||
19763 | fi | ||
19764 | |||
19765 | + | ||
19766 | + test -n "$ac_ct_AR" && break | ||
19767 | +done | ||
19768 | + | ||
19769 | if test "x$ac_ct_AR" = x; then | ||
19770 | AR="false" | ||
19771 | else | ||
19772 | @@ -5982,25 +6244,20 @@ ac_tool_warned=yes ;; | ||
19773 | esac | ||
19774 | AR=$ac_ct_AR | ||
19775 | fi | ||
19776 | -else | ||
19777 | - AR="$ac_cv_prog_AR" | ||
19778 | fi | ||
19779 | |||
19780 | -test -z "$AR" && AR=ar | ||
19781 | -if test -n "$plugin_option"; then | ||
19782 | - if $AR --help 2>&1 | grep -q "\--plugin"; then | ||
19783 | - touch conftest.c | ||
19784 | - $AR $plugin_option rc conftest.a conftest.c | ||
19785 | - if test "$?" != 0; then | ||
19786 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
19787 | + touch conftest.c | ||
19788 | + $AR $plugin_option rc conftest.a conftest.c | ||
19789 | + if test "$?" != 0; then | ||
19790 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
19791 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | ||
19792 | - else | ||
19793 | - AR="$AR $plugin_option" | ||
19794 | - fi | ||
19795 | - rm -f conftest.* | ||
19796 | + else | ||
19797 | + AR="$AR $plugin_option" | ||
19798 | fi | ||
19799 | -fi | ||
19800 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
19801 | + rm -f conftest.* | ||
19802 | +: ${AR=ar} | ||
19803 | +: ${AR_FLAGS=cru} | ||
19804 | + | ||
19805 | |||
19806 | |||
19807 | |||
19808 | @@ -6011,6 +6268,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
19809 | |||
19810 | |||
19811 | |||
19812 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
19813 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
19814 | +if ${lt_cv_ar_at_file+:} false; then : | ||
19815 | + $as_echo_n "(cached) " >&6 | ||
19816 | +else | ||
19817 | + lt_cv_ar_at_file=no | ||
19818 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19819 | +/* end confdefs.h. */ | ||
19820 | + | ||
19821 | +int | ||
19822 | +main () | ||
19823 | +{ | ||
19824 | + | ||
19825 | + ; | ||
19826 | + return 0; | ||
19827 | +} | ||
19828 | +_ACEOF | ||
19829 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
19830 | + echo conftest.$ac_objext > conftest.lst | ||
19831 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
19832 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
19833 | + (eval $lt_ar_try) 2>&5 | ||
19834 | + ac_status=$? | ||
19835 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19836 | + test $ac_status = 0; } | ||
19837 | + if test "$ac_status" -eq 0; then | ||
19838 | + # Ensure the archiver fails upon bogus file names. | ||
19839 | + rm -f conftest.$ac_objext libconftest.a | ||
19840 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
19841 | + (eval $lt_ar_try) 2>&5 | ||
19842 | + ac_status=$? | ||
19843 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19844 | + test $ac_status = 0; } | ||
19845 | + if test "$ac_status" -ne 0; then | ||
19846 | + lt_cv_ar_at_file=@ | ||
19847 | + fi | ||
19848 | + fi | ||
19849 | + rm -f conftest.* libconftest.a | ||
19850 | + | ||
19851 | +fi | ||
19852 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19853 | + | ||
19854 | +fi | ||
19855 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
19856 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
19857 | + | ||
19858 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
19859 | + archiver_list_spec= | ||
19860 | +else | ||
19861 | + archiver_list_spec=$lt_cv_ar_at_file | ||
19862 | +fi | ||
19863 | + | ||
19864 | + | ||
19865 | + | ||
19866 | + | ||
19867 | + | ||
19868 | + | ||
19869 | |||
19870 | if test -n "$ac_tool_prefix"; then | ||
19871 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
19872 | @@ -6351,8 +6665,8 @@ esac | ||
19873 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
19874 | |||
19875 | # Transform an extracted symbol line into symbol name and symbol address | ||
19876 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
19877 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
19878 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
19879 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
19880 | |||
19881 | # Handle CRLF in mingw tool chain | ||
19882 | opt_cr= | ||
19883 | @@ -6388,6 +6702,7 @@ for ac_symprfx in "" "_"; do | ||
19884 | else | ||
19885 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
19886 | fi | ||
19887 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
19888 | |||
19889 | # Check to see that the pipe works correctly. | ||
19890 | pipe_works=no | ||
19891 | @@ -6429,6 +6744,18 @@ _LT_EOF | ||
19892 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
19893 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
19894 | cat <<_LT_EOF > conftest.$ac_ext | ||
19895 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
19896 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
19897 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
19898 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
19899 | +# define LT_DLSYM_CONST | ||
19900 | +#elif defined(__osf__) | ||
19901 | +/* This system does not cope well with relocations in const data. */ | ||
19902 | +# define LT_DLSYM_CONST | ||
19903 | +#else | ||
19904 | +# define LT_DLSYM_CONST const | ||
19905 | +#endif | ||
19906 | + | ||
19907 | #ifdef __cplusplus | ||
19908 | extern "C" { | ||
19909 | #endif | ||
19910 | @@ -6440,7 +6767,7 @@ _LT_EOF | ||
19911 | cat <<_LT_EOF >> conftest.$ac_ext | ||
19912 | |||
19913 | /* The mapping between symbol names and symbols. */ | ||
19914 | -const struct { | ||
19915 | +LT_DLSYM_CONST struct { | ||
19916 | const char *name; | ||
19917 | void *address; | ||
19918 | } | ||
19919 | @@ -6466,8 +6793,8 @@ static const void *lt_preloaded_setup() { | ||
19920 | _LT_EOF | ||
19921 | # Now try linking the two files. | ||
19922 | mv conftest.$ac_objext conftstm.$ac_objext | ||
19923 | - lt_save_LIBS="$LIBS" | ||
19924 | - lt_save_CFLAGS="$CFLAGS" | ||
19925 | + lt_globsym_save_LIBS=$LIBS | ||
19926 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
19927 | LIBS="conftstm.$ac_objext" | ||
19928 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
19929 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
19930 | @@ -6477,8 +6804,8 @@ _LT_EOF | ||
19931 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
19932 | pipe_works=yes | ||
19933 | fi | ||
19934 | - LIBS="$lt_save_LIBS" | ||
19935 | - CFLAGS="$lt_save_CFLAGS" | ||
19936 | + LIBS=$lt_globsym_save_LIBS | ||
19937 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
19938 | else | ||
19939 | echo "cannot find nm_test_func in $nlist" >&5 | ||
19940 | fi | ||
19941 | @@ -6515,6 +6842,14 @@ else | ||
19942 | $as_echo "ok" >&6; } | ||
19943 | fi | ||
19944 | |||
19945 | +# Response file support. | ||
19946 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
19947 | + nm_file_list_spec='@' | ||
19948 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
19949 | + nm_file_list_spec='@' | ||
19950 | +fi | ||
19951 | + | ||
19952 | + | ||
19953 | |||
19954 | |||
19955 | |||
19956 | @@ -6533,6 +6868,47 @@ fi | ||
19957 | |||
19958 | |||
19959 | |||
19960 | + | ||
19961 | + | ||
19962 | + | ||
19963 | + | ||
19964 | + | ||
19965 | + | ||
19966 | + | ||
19967 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
19968 | +$as_echo_n "checking for sysroot... " >&6; } | ||
19969 | + | ||
19970 | +# Check whether --with-libtool-sysroot was given. | ||
19971 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
19972 | + withval=$with_libtool_sysroot; | ||
19973 | +else | ||
19974 | + with_libtool_sysroot=no | ||
19975 | +fi | ||
19976 | + | ||
19977 | + | ||
19978 | +lt_sysroot= | ||
19979 | +case ${with_libtool_sysroot} in #( | ||
19980 | + yes) | ||
19981 | + if test "$GCC" = yes; then | ||
19982 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
19983 | + fi | ||
19984 | + ;; #( | ||
19985 | + /*) | ||
19986 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
19987 | + ;; #( | ||
19988 | + no|'') | ||
19989 | + ;; #( | ||
19990 | + *) | ||
19991 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
19992 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
19993 | + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | ||
19994 | + ;; | ||
19995 | +esac | ||
19996 | + | ||
19997 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
19998 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
19999 | + | ||
20000 | + | ||
20001 | |||
20002 | |||
20003 | |||
20004 | @@ -6742,6 +7118,123 @@ esac | ||
20005 | |||
20006 | need_locks="$enable_libtool_lock" | ||
20007 | |||
20008 | +if test -n "$ac_tool_prefix"; then | ||
20009 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
20010 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
20011 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
20012 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
20013 | +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | ||
20014 | + $as_echo_n "(cached) " >&6 | ||
20015 | +else | ||
20016 | + if test -n "$MANIFEST_TOOL"; then | ||
20017 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
20018 | +else | ||
20019 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20020 | +for as_dir in $PATH | ||
20021 | +do | ||
20022 | + IFS=$as_save_IFS | ||
20023 | + test -z "$as_dir" && as_dir=. | ||
20024 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
20025 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
20026 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
20027 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20028 | + break 2 | ||
20029 | + fi | ||
20030 | +done | ||
20031 | + done | ||
20032 | +IFS=$as_save_IFS | ||
20033 | + | ||
20034 | +fi | ||
20035 | +fi | ||
20036 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
20037 | +if test -n "$MANIFEST_TOOL"; then | ||
20038 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
20039 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
20040 | +else | ||
20041 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20042 | +$as_echo "no" >&6; } | ||
20043 | +fi | ||
20044 | + | ||
20045 | + | ||
20046 | +fi | ||
20047 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
20048 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
20049 | + # Extract the first word of "mt", so it can be a program name with args. | ||
20050 | +set dummy mt; ac_word=$2 | ||
20051 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
20052 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
20053 | +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | ||
20054 | + $as_echo_n "(cached) " >&6 | ||
20055 | +else | ||
20056 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
20057 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
20058 | +else | ||
20059 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20060 | +for as_dir in $PATH | ||
20061 | +do | ||
20062 | + IFS=$as_save_IFS | ||
20063 | + test -z "$as_dir" && as_dir=. | ||
20064 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
20065 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
20066 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
20067 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20068 | + break 2 | ||
20069 | + fi | ||
20070 | +done | ||
20071 | + done | ||
20072 | +IFS=$as_save_IFS | ||
20073 | + | ||
20074 | +fi | ||
20075 | +fi | ||
20076 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
20077 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
20078 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
20079 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
20080 | +else | ||
20081 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20082 | +$as_echo "no" >&6; } | ||
20083 | +fi | ||
20084 | + | ||
20085 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
20086 | + MANIFEST_TOOL=":" | ||
20087 | + else | ||
20088 | + case $cross_compiling:$ac_tool_warned in | ||
20089 | +yes:) | ||
20090 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
20091 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
20092 | +ac_tool_warned=yes ;; | ||
20093 | +esac | ||
20094 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
20095 | + fi | ||
20096 | +else | ||
20097 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
20098 | +fi | ||
20099 | + | ||
20100 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
20101 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
20102 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
20103 | +if ${lt_cv_path_mainfest_tool+:} false; then : | ||
20104 | + $as_echo_n "(cached) " >&6 | ||
20105 | +else | ||
20106 | + lt_cv_path_mainfest_tool=no | ||
20107 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
20108 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
20109 | + cat conftest.err >&5 | ||
20110 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
20111 | + lt_cv_path_mainfest_tool=yes | ||
20112 | + fi | ||
20113 | + rm -f conftest* | ||
20114 | +fi | ||
20115 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
20116 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
20117 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
20118 | + MANIFEST_TOOL=: | ||
20119 | +fi | ||
20120 | + | ||
20121 | + | ||
20122 | + | ||
20123 | + | ||
20124 | + | ||
20125 | |||
20126 | case $host_os in | ||
20127 | rhapsody* | darwin*) | ||
20128 | @@ -7305,6 +7798,8 @@ _LT_EOF | ||
20129 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
20130 | echo "$AR cru libconftest.a conftest.o" >&5 | ||
20131 | $AR cru libconftest.a conftest.o 2>&5 | ||
20132 | + echo "$RANLIB libconftest.a" >&5 | ||
20133 | + $RANLIB libconftest.a 2>&5 | ||
20134 | cat > conftest.c << _LT_EOF | ||
20135 | int main() { return 0;} | ||
20136 | _LT_EOF | ||
20137 | @@ -7857,8 +8353,6 @@ fi | ||
20138 | lt_prog_compiler_pic= | ||
20139 | lt_prog_compiler_static= | ||
20140 | |||
20141 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
20142 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
20143 | |||
20144 | if test "$GCC" = yes; then | ||
20145 | lt_prog_compiler_wl='-Wl,' | ||
20146 | @@ -8024,6 +8518,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
20147 | lt_prog_compiler_pic='--shared' | ||
20148 | lt_prog_compiler_static='--static' | ||
20149 | ;; | ||
20150 | + nagfor*) | ||
20151 | + # NAG Fortran compiler | ||
20152 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
20153 | + lt_prog_compiler_pic='-PIC' | ||
20154 | + lt_prog_compiler_static='-Bstatic' | ||
20155 | + ;; | ||
20156 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
20157 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
20158 | # which looks to be a dead project) | ||
20159 | @@ -8086,7 +8586,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
20160 | lt_prog_compiler_pic='-KPIC' | ||
20161 | lt_prog_compiler_static='-Bstatic' | ||
20162 | case $cc_basename in | ||
20163 | - f77* | f90* | f95*) | ||
20164 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
20165 | lt_prog_compiler_wl='-Qoption ld ';; | ||
20166 | *) | ||
20167 | lt_prog_compiler_wl='-Wl,';; | ||
20168 | @@ -8143,13 +8643,17 @@ case $host_os in | ||
20169 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
20170 | ;; | ||
20171 | esac | ||
20172 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
20173 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
20174 | - | ||
20175 | - | ||
20176 | - | ||
20177 | - | ||
20178 | |||
20179 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
20180 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
20181 | +if ${lt_cv_prog_compiler_pic+:} false; then : | ||
20182 | + $as_echo_n "(cached) " >&6 | ||
20183 | +else | ||
20184 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
20185 | +fi | ||
20186 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
20187 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
20188 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
20189 | |||
20190 | # | ||
20191 | # Check to make sure the PIC flag actually works. | ||
20192 | @@ -8210,6 +8714,11 @@ fi | ||
20193 | |||
20194 | |||
20195 | |||
20196 | + | ||
20197 | + | ||
20198 | + | ||
20199 | + | ||
20200 | + | ||
20201 | # | ||
20202 | # Check to make sure the static flag actually works. | ||
20203 | # | ||
20204 | @@ -8560,7 +9069,8 @@ _LT_EOF | ||
20205 | allow_undefined_flag=unsupported | ||
20206 | always_export_symbols=no | ||
20207 | enable_shared_with_static_runtimes=yes | ||
20208 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
20209 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
20210 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
20211 | |||
20212 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
20213 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
20214 | @@ -8659,12 +9169,12 @@ _LT_EOF | ||
20215 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
20216 | hardcode_libdir_flag_spec= | ||
20217 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
20218 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
20219 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
20220 | if test "x$supports_anon_versioning" = xyes; then | ||
20221 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
20222 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
20223 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
20224 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
20225 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
20226 | fi | ||
20227 | ;; | ||
20228 | esac | ||
20229 | @@ -8678,8 +9188,8 @@ _LT_EOF | ||
20230 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
20231 | wlarc= | ||
20232 | else | ||
20233 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
20234 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
20235 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
20236 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
20237 | fi | ||
20238 | ;; | ||
20239 | |||
20240 | @@ -8697,8 +9207,8 @@ _LT_EOF | ||
20241 | |||
20242 | _LT_EOF | ||
20243 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
20244 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
20245 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
20246 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
20247 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
20248 | else | ||
20249 | ld_shlibs=no | ||
20250 | fi | ||
20251 | @@ -8744,8 +9254,8 @@ _LT_EOF | ||
20252 | |||
20253 | *) | ||
20254 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
20255 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
20256 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
20257 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
20258 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
20259 | else | ||
20260 | ld_shlibs=no | ||
20261 | fi | ||
20262 | @@ -8875,7 +9385,13 @@ _LT_EOF | ||
20263 | allow_undefined_flag='-berok' | ||
20264 | # Determine the default libpath from the value encoded in an | ||
20265 | # empty executable. | ||
20266 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20267 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
20268 | + aix_libpath=$lt_cv_aix_libpath | ||
20269 | +else | ||
20270 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
20271 | + $as_echo_n "(cached) " >&6 | ||
20272 | +else | ||
20273 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20274 | /* end confdefs.h. */ | ||
20275 | |||
20276 | int | ||
20277 | @@ -8888,22 +9404,29 @@ main () | ||
20278 | _ACEOF | ||
20279 | if ac_fn_c_try_link "$LINENO"; then : | ||
20280 | |||
20281 | -lt_aix_libpath_sed=' | ||
20282 | - /Import File Strings/,/^$/ { | ||
20283 | - /^0/ { | ||
20284 | - s/^0 *\(.*\)$/\1/ | ||
20285 | - p | ||
20286 | - } | ||
20287 | - }' | ||
20288 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
20289 | -# Check for a 64-bit object if we didn't find anything. | ||
20290 | -if test -z "$aix_libpath"; then | ||
20291 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
20292 | -fi | ||
20293 | + lt_aix_libpath_sed=' | ||
20294 | + /Import File Strings/,/^$/ { | ||
20295 | + /^0/ { | ||
20296 | + s/^0 *\([^ ]*\) *$/\1/ | ||
20297 | + p | ||
20298 | + } | ||
20299 | + }' | ||
20300 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
20301 | + # Check for a 64-bit object if we didn't find anything. | ||
20302 | + if test -z "$lt_cv_aix_libpath_"; then | ||
20303 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
20304 | + fi | ||
20305 | fi | ||
20306 | rm -f core conftest.err conftest.$ac_objext \ | ||
20307 | conftest$ac_exeext conftest.$ac_ext | ||
20308 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
20309 | + if test -z "$lt_cv_aix_libpath_"; then | ||
20310 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
20311 | + fi | ||
20312 | + | ||
20313 | +fi | ||
20314 | + | ||
20315 | + aix_libpath=$lt_cv_aix_libpath_ | ||
20316 | +fi | ||
20317 | |||
20318 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
20319 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
20320 | @@ -8915,7 +9438,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
20321 | else | ||
20322 | # Determine the default libpath from the value encoded in an | ||
20323 | # empty executable. | ||
20324 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20325 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
20326 | + aix_libpath=$lt_cv_aix_libpath | ||
20327 | +else | ||
20328 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
20329 | + $as_echo_n "(cached) " >&6 | ||
20330 | +else | ||
20331 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20332 | /* end confdefs.h. */ | ||
20333 | |||
20334 | int | ||
20335 | @@ -8928,22 +9457,29 @@ main () | ||
20336 | _ACEOF | ||
20337 | if ac_fn_c_try_link "$LINENO"; then : | ||
20338 | |||
20339 | -lt_aix_libpath_sed=' | ||
20340 | - /Import File Strings/,/^$/ { | ||
20341 | - /^0/ { | ||
20342 | - s/^0 *\(.*\)$/\1/ | ||
20343 | - p | ||
20344 | - } | ||
20345 | - }' | ||
20346 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
20347 | -# Check for a 64-bit object if we didn't find anything. | ||
20348 | -if test -z "$aix_libpath"; then | ||
20349 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
20350 | -fi | ||
20351 | + lt_aix_libpath_sed=' | ||
20352 | + /Import File Strings/,/^$/ { | ||
20353 | + /^0/ { | ||
20354 | + s/^0 *\([^ ]*\) *$/\1/ | ||
20355 | + p | ||
20356 | + } | ||
20357 | + }' | ||
20358 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
20359 | + # Check for a 64-bit object if we didn't find anything. | ||
20360 | + if test -z "$lt_cv_aix_libpath_"; then | ||
20361 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
20362 | + fi | ||
20363 | fi | ||
20364 | rm -f core conftest.err conftest.$ac_objext \ | ||
20365 | conftest$ac_exeext conftest.$ac_ext | ||
20366 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
20367 | + if test -z "$lt_cv_aix_libpath_"; then | ||
20368 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
20369 | + fi | ||
20370 | + | ||
20371 | +fi | ||
20372 | + | ||
20373 | + aix_libpath=$lt_cv_aix_libpath_ | ||
20374 | +fi | ||
20375 | |||
20376 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
20377 | # Warning - without using the other run time loading flags, | ||
20378 | @@ -8988,20 +9524,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
20379 | # Microsoft Visual C++. | ||
20380 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
20381 | # no search path for DLLs. | ||
20382 | - hardcode_libdir_flag_spec=' ' | ||
20383 | - allow_undefined_flag=unsupported | ||
20384 | - # Tell ltmain to make .lib files, not .a files. | ||
20385 | - libext=lib | ||
20386 | - # Tell ltmain to make .dll files, not .so files. | ||
20387 | - shrext_cmds=".dll" | ||
20388 | - # FIXME: Setting linknames here is a bad hack. | ||
20389 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
20390 | - # The linker will automatically build a .lib file if we build a DLL. | ||
20391 | - old_archive_from_new_cmds='true' | ||
20392 | - # FIXME: Should let the user specify the lib program. | ||
20393 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
20394 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
20395 | - enable_shared_with_static_runtimes=yes | ||
20396 | + case $cc_basename in | ||
20397 | + cl*) | ||
20398 | + # Native MSVC | ||
20399 | + hardcode_libdir_flag_spec=' ' | ||
20400 | + allow_undefined_flag=unsupported | ||
20401 | + always_export_symbols=yes | ||
20402 | + file_list_spec='@' | ||
20403 | + # Tell ltmain to make .lib files, not .a files. | ||
20404 | + libext=lib | ||
20405 | + # Tell ltmain to make .dll files, not .so files. | ||
20406 | + shrext_cmds=".dll" | ||
20407 | + # FIXME: Setting linknames here is a bad hack. | ||
20408 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
20409 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
20410 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
20411 | + else | ||
20412 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
20413 | + fi~ | ||
20414 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
20415 | + linknames=' | ||
20416 | + # The linker will not automatically build a static lib if we build a DLL. | ||
20417 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
20418 | + enable_shared_with_static_runtimes=yes | ||
20419 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
20420 | + # Don't use ranlib | ||
20421 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
20422 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
20423 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
20424 | + case $lt_outputfile in | ||
20425 | + *.exe|*.EXE) ;; | ||
20426 | + *) | ||
20427 | + lt_outputfile="$lt_outputfile.exe" | ||
20428 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
20429 | + ;; | ||
20430 | + esac~ | ||
20431 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
20432 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
20433 | + $RM "$lt_outputfile.manifest"; | ||
20434 | + fi' | ||
20435 | + ;; | ||
20436 | + *) | ||
20437 | + # Assume MSVC wrapper | ||
20438 | + hardcode_libdir_flag_spec=' ' | ||
20439 | + allow_undefined_flag=unsupported | ||
20440 | + # Tell ltmain to make .lib files, not .a files. | ||
20441 | + libext=lib | ||
20442 | + # Tell ltmain to make .dll files, not .so files. | ||
20443 | + shrext_cmds=".dll" | ||
20444 | + # FIXME: Setting linknames here is a bad hack. | ||
20445 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
20446 | + # The linker will automatically build a .lib file if we build a DLL. | ||
20447 | + old_archive_from_new_cmds='true' | ||
20448 | + # FIXME: Should let the user specify the lib program. | ||
20449 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
20450 | + enable_shared_with_static_runtimes=yes | ||
20451 | + ;; | ||
20452 | + esac | ||
20453 | ;; | ||
20454 | |||
20455 | darwin* | rhapsody*) | ||
20456 | @@ -9062,7 +9641,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
20457 | |||
20458 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
20459 | freebsd* | dragonfly*) | ||
20460 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
20461 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
20462 | hardcode_libdir_flag_spec='-R$libdir' | ||
20463 | hardcode_direct=yes | ||
20464 | hardcode_shlibpath_var=no | ||
20465 | @@ -9070,7 +9649,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
20466 | |||
20467 | hpux9*) | ||
20468 | if test "$GCC" = yes; then | ||
20469 | - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
20470 | + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
20471 | else | ||
20472 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
20473 | fi | ||
20474 | @@ -9086,7 +9665,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
20475 | |||
20476 | hpux10*) | ||
20477 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
20478 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
20479 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
20480 | else | ||
20481 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
20482 | fi | ||
20483 | @@ -9110,10 +9689,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
20484 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
20485 | ;; | ||
20486 | ia64*) | ||
20487 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
20488 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
20489 | ;; | ||
20490 | *) | ||
20491 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
20492 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
20493 | ;; | ||
20494 | esac | ||
20495 | else | ||
20496 | @@ -9192,23 +9771,36 @@ fi | ||
20497 | |||
20498 | irix5* | irix6* | nonstopux*) | ||
20499 | if test "$GCC" = yes; then | ||
20500 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
20501 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
20502 | # Try to use the -exported_symbol ld option, if it does not | ||
20503 | # work, assume that -exports_file does not work either and | ||
20504 | # implicitly export all symbols. | ||
20505 | - save_LDFLAGS="$LDFLAGS" | ||
20506 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
20507 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20508 | + # This should be the same for all languages, so no per-tag cache variable. | ||
20509 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
20510 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
20511 | +if ${lt_cv_irix_exported_symbol+:} false; then : | ||
20512 | + $as_echo_n "(cached) " >&6 | ||
20513 | +else | ||
20514 | + save_LDFLAGS="$LDFLAGS" | ||
20515 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
20516 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20517 | /* end confdefs.h. */ | ||
20518 | -int foo(void) {} | ||
20519 | +int foo (void) { return 0; } | ||
20520 | _ACEOF | ||
20521 | if ac_fn_c_try_link "$LINENO"; then : | ||
20522 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
20523 | - | ||
20524 | + lt_cv_irix_exported_symbol=yes | ||
20525 | +else | ||
20526 | + lt_cv_irix_exported_symbol=no | ||
20527 | fi | ||
20528 | rm -f core conftest.err conftest.$ac_objext \ | ||
20529 | conftest$ac_exeext conftest.$ac_ext | ||
20530 | - LDFLAGS="$save_LDFLAGS" | ||
20531 | + LDFLAGS="$save_LDFLAGS" | ||
20532 | +fi | ||
20533 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
20534 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
20535 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
20536 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
20537 | + fi | ||
20538 | else | ||
20539 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
20540 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
20541 | @@ -9293,7 +9885,7 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
20542 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
20543 | if test "$GCC" = yes; then | ||
20544 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
20545 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
20546 | + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
20547 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
20548 | else | ||
20549 | allow_undefined_flag=' -expect_unresolved \*' | ||
20550 | @@ -9312,9 +9904,9 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
20551 | no_undefined_flag=' -z defs' | ||
20552 | if test "$GCC" = yes; then | ||
20553 | wlarc='${wl}' | ||
20554 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
20555 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
20556 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
20557 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
20558 | + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
20559 | else | ||
20560 | case `$CC -V 2>&1` in | ||
20561 | *"Compilers 5.0"*) | ||
20562 | @@ -9890,8 +10482,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
20563 | need_version=no | ||
20564 | need_lib_prefix=no | ||
20565 | |||
20566 | - case $GCC,$host_os in | ||
20567 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
20568 | + case $GCC,$cc_basename in | ||
20569 | + yes,*) | ||
20570 | + # gcc | ||
20571 | library_names_spec='$libname.dll.a' | ||
20572 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
20573 | postinstall_cmds='base_file=`basename \${file}`~ | ||
20574 | @@ -9924,13 +10517,71 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
20575 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
20576 | ;; | ||
20577 | esac | ||
20578 | + dynamic_linker='Win32 ld.exe' | ||
20579 | + ;; | ||
20580 | + | ||
20581 | + *,cl*) | ||
20582 | + # Native MSVC | ||
20583 | + libname_spec='$name' | ||
20584 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
20585 | + library_names_spec='${libname}.dll.lib' | ||
20586 | + | ||
20587 | + case $build_os in | ||
20588 | + mingw*) | ||
20589 | + sys_lib_search_path_spec= | ||
20590 | + lt_save_ifs=$IFS | ||
20591 | + IFS=';' | ||
20592 | + for lt_path in $LIB | ||
20593 | + do | ||
20594 | + IFS=$lt_save_ifs | ||
20595 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
20596 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
20597 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
20598 | + done | ||
20599 | + IFS=$lt_save_ifs | ||
20600 | + # Convert to MSYS style. | ||
20601 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
20602 | + ;; | ||
20603 | + cygwin*) | ||
20604 | + # Convert to unix form, then to dos form, then back to unix form | ||
20605 | + # but this time dos style (no spaces!) so that the unix form looks | ||
20606 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
20607 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
20608 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
20609 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
20610 | + ;; | ||
20611 | + *) | ||
20612 | + sys_lib_search_path_spec="$LIB" | ||
20613 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
20614 | + # It is most probably a Windows format PATH. | ||
20615 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
20616 | + else | ||
20617 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
20618 | + fi | ||
20619 | + # FIXME: find the short name or the path components, as spaces are | ||
20620 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
20621 | + ;; | ||
20622 | + esac | ||
20623 | + | ||
20624 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
20625 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
20626 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
20627 | + dldir=$destdir/`dirname \$dlpath`~ | ||
20628 | + test -d \$dldir || mkdir -p \$dldir~ | ||
20629 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
20630 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
20631 | + dlpath=$dir/\$dldll~ | ||
20632 | + $RM \$dlpath' | ||
20633 | + shlibpath_overrides_runpath=yes | ||
20634 | + dynamic_linker='Win32 link.exe' | ||
20635 | ;; | ||
20636 | |||
20637 | *) | ||
20638 | + # Assume MSVC wrapper | ||
20639 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
20640 | + dynamic_linker='Win32 ld.exe' | ||
20641 | ;; | ||
20642 | esac | ||
20643 | - dynamic_linker='Win32 ld.exe' | ||
20644 | # FIXME: first we should search . and the directory the executable is in | ||
20645 | shlibpath_var=PATH | ||
20646 | ;; | ||
20647 | @@ -10012,7 +10663,7 @@ haiku*) | ||
20648 | soname_spec='${libname}${release}${shared_ext}$major' | ||
20649 | shlibpath_var=LIBRARY_PATH | ||
20650 | shlibpath_overrides_runpath=yes | ||
20651 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
20652 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
20653 | hardcode_into_libs=yes | ||
20654 | ;; | ||
20655 | |||
20656 | @@ -10808,7 +11459,7 @@ else | ||
20657 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
20658 | lt_status=$lt_dlunknown | ||
20659 | cat > conftest.$ac_ext <<_LT_EOF | ||
20660 | -#line 10811 "configure" | ||
20661 | +#line $LINENO "configure" | ||
20662 | #include "confdefs.h" | ||
20663 | |||
20664 | #if HAVE_DLFCN_H | ||
20665 | @@ -10852,10 +11503,10 @@ else | ||
20666 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
20667 | correspondingly for the symbols needed. */ | ||
20668 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
20669 | -void fnord () __attribute__((visibility("default"))); | ||
20670 | +int fnord () __attribute__((visibility("default"))); | ||
20671 | #endif | ||
20672 | |||
20673 | -void fnord () { int i=42; } | ||
20674 | +int fnord () { return 42; } | ||
20675 | int main () | ||
20676 | { | ||
20677 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
20678 | @@ -10914,7 +11565,7 @@ else | ||
20679 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
20680 | lt_status=$lt_dlunknown | ||
20681 | cat > conftest.$ac_ext <<_LT_EOF | ||
20682 | -#line 10917 "configure" | ||
20683 | +#line $LINENO "configure" | ||
20684 | #include "confdefs.h" | ||
20685 | |||
20686 | #if HAVE_DLFCN_H | ||
20687 | @@ -10958,10 +11609,10 @@ else | ||
20688 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
20689 | correspondingly for the symbols needed. */ | ||
20690 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
20691 | -void fnord () __attribute__((visibility("default"))); | ||
20692 | +int fnord () __attribute__((visibility("default"))); | ||
20693 | #endif | ||
20694 | |||
20695 | -void fnord () { int i=42; } | ||
20696 | +int fnord () { return 42; } | ||
20697 | int main () | ||
20698 | { | ||
20699 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
20700 | @@ -13101,13 +13752,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
20701 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
20702 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
20703 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
20704 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
20705 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
20706 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
20707 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
20708 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
20709 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
20710 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
20711 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
20712 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
20713 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
20714 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
20715 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
20716 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
20717 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
20718 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
20719 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
20720 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
20721 | @@ -13122,14 +13780,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de | ||
20722 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
20723 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
20724 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
20725 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
20726 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
20727 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
20728 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
20729 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
20730 | -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
20731 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
20732 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
20733 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
20734 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
20735 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
20736 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
20737 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
20738 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
20739 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
20740 | @@ -13162,12 +13823,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q | ||
20741 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
20742 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
20743 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
20744 | -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | ||
20745 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
20746 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
20747 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
20748 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
20749 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
20750 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
20751 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
20752 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
20753 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
20754 | @@ -13222,8 +13883,13 @@ reload_flag \ | ||
20755 | OBJDUMP \ | ||
20756 | deplibs_check_method \ | ||
20757 | file_magic_cmd \ | ||
20758 | +file_magic_glob \ | ||
20759 | +want_nocaseglob \ | ||
20760 | +DLLTOOL \ | ||
20761 | +sharedlib_from_linklib_cmd \ | ||
20762 | AR \ | ||
20763 | AR_FLAGS \ | ||
20764 | +archiver_list_spec \ | ||
20765 | STRIP \ | ||
20766 | RANLIB \ | ||
20767 | CC \ | ||
20768 | @@ -13233,12 +13899,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
20769 | lt_cv_sys_global_symbol_to_cdecl \ | ||
20770 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
20771 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
20772 | +nm_file_list_spec \ | ||
20773 | lt_prog_compiler_no_builtin_flag \ | ||
20774 | -lt_prog_compiler_wl \ | ||
20775 | lt_prog_compiler_pic \ | ||
20776 | +lt_prog_compiler_wl \ | ||
20777 | lt_prog_compiler_static \ | ||
20778 | lt_cv_prog_compiler_c_o \ | ||
20779 | need_locks \ | ||
20780 | +MANIFEST_TOOL \ | ||
20781 | DSYMUTIL \ | ||
20782 | NMEDIT \ | ||
20783 | LIPO \ | ||
20784 | @@ -13254,7 +13922,6 @@ no_undefined_flag \ | ||
20785 | hardcode_libdir_flag_spec \ | ||
20786 | hardcode_libdir_flag_spec_ld \ | ||
20787 | hardcode_libdir_separator \ | ||
20788 | -fix_srcfile_path \ | ||
20789 | exclude_expsyms \ | ||
20790 | include_expsyms \ | ||
20791 | file_list_spec \ | ||
20792 | @@ -13290,6 +13957,7 @@ module_cmds \ | ||
20793 | module_expsym_cmds \ | ||
20794 | export_symbols_cmds \ | ||
20795 | prelink_cmds \ | ||
20796 | +postlink_cmds \ | ||
20797 | postinstall_cmds \ | ||
20798 | postuninstall_cmds \ | ||
20799 | finish_cmds \ | ||
20800 | @@ -14055,7 +14723,8 @@ $as_echo X"$file" | | ||
20801 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
20802 | # | ||
20803 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
20804 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
20805 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
20806 | +# Inc. | ||
20807 | # Written by Gordon Matzigkeit, 1996 | ||
20808 | # | ||
20809 | # This file is part of GNU Libtool. | ||
20810 | @@ -14158,19 +14827,42 @@ SP2NL=$lt_lt_SP2NL | ||
20811 | # turn newlines into spaces. | ||
20812 | NL2SP=$lt_lt_NL2SP | ||
20813 | |||
20814 | +# convert \$build file names to \$host format. | ||
20815 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
20816 | + | ||
20817 | +# convert \$build files to toolchain format. | ||
20818 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
20819 | + | ||
20820 | # An object symbol dumper. | ||
20821 | OBJDUMP=$lt_OBJDUMP | ||
20822 | |||
20823 | # Method to check whether dependent libraries are shared objects. | ||
20824 | deplibs_check_method=$lt_deplibs_check_method | ||
20825 | |||
20826 | -# Command to use when deplibs_check_method == "file_magic". | ||
20827 | +# Command to use when deplibs_check_method = "file_magic". | ||
20828 | file_magic_cmd=$lt_file_magic_cmd | ||
20829 | |||
20830 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
20831 | +file_magic_glob=$lt_file_magic_glob | ||
20832 | + | ||
20833 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
20834 | +want_nocaseglob=$lt_want_nocaseglob | ||
20835 | + | ||
20836 | +# DLL creation program. | ||
20837 | +DLLTOOL=$lt_DLLTOOL | ||
20838 | + | ||
20839 | +# Command to associate shared and link libraries. | ||
20840 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
20841 | + | ||
20842 | # The archiver. | ||
20843 | AR=$lt_AR | ||
20844 | + | ||
20845 | +# Flags to create an archive. | ||
20846 | AR_FLAGS=$lt_AR_FLAGS | ||
20847 | |||
20848 | +# How to feed a file listing to the archiver. | ||
20849 | +archiver_list_spec=$lt_archiver_list_spec | ||
20850 | + | ||
20851 | # A symbol stripping program. | ||
20852 | STRIP=$lt_STRIP | ||
20853 | |||
20854 | @@ -14200,6 +14892,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
20855 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
20856 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
20857 | |||
20858 | +# Specify filename containing input files for \$NM. | ||
20859 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
20860 | + | ||
20861 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
20862 | +lt_sysroot=$lt_sysroot | ||
20863 | + | ||
20864 | # The name of the directory that contains temporary libtool files. | ||
20865 | objdir=$objdir | ||
20866 | |||
20867 | @@ -14209,6 +14907,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
20868 | # Must we lock files when doing compilation? | ||
20869 | need_locks=$lt_need_locks | ||
20870 | |||
20871 | +# Manifest tool. | ||
20872 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
20873 | + | ||
20874 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
20875 | DSYMUTIL=$lt_DSYMUTIL | ||
20876 | |||
20877 | @@ -14323,12 +15024,12 @@ with_gcc=$GCC | ||
20878 | # Compiler flag to turn off builtin functions. | ||
20879 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
20880 | |||
20881 | -# How to pass a linker flag through the compiler. | ||
20882 | -wl=$lt_lt_prog_compiler_wl | ||
20883 | - | ||
20884 | # Additional compiler flags for building library objects. | ||
20885 | pic_flag=$lt_lt_prog_compiler_pic | ||
20886 | |||
20887 | +# How to pass a linker flag through the compiler. | ||
20888 | +wl=$lt_lt_prog_compiler_wl | ||
20889 | + | ||
20890 | # Compiler flag to prevent dynamic linking. | ||
20891 | link_static_flag=$lt_lt_prog_compiler_static | ||
20892 | |||
20893 | @@ -14415,9 +15116,6 @@ inherit_rpath=$inherit_rpath | ||
20894 | # Whether libtool must link a program against all its dependency libraries. | ||
20895 | link_all_deplibs=$link_all_deplibs | ||
20896 | |||
20897 | -# Fix the shell variable \$srcfile for the compiler. | ||
20898 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
20899 | - | ||
20900 | # Set to "yes" if exported symbols are required. | ||
20901 | always_export_symbols=$always_export_symbols | ||
20902 | |||
20903 | @@ -14433,6 +15131,9 @@ include_expsyms=$lt_include_expsyms | ||
20904 | # Commands necessary for linking programs (against libraries) with templates. | ||
20905 | prelink_cmds=$lt_prelink_cmds | ||
20906 | |||
20907 | +# Commands necessary for finishing linking programs. | ||
20908 | +postlink_cmds=$lt_postlink_cmds | ||
20909 | + | ||
20910 | # Specify filename containing input files. | ||
20911 | file_list_spec=$lt_file_list_spec | ||
20912 | |||
20913 | @@ -14465,210 +15166,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
20914 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
20915 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
20916 | # is reportedly fixed, but why not run on old versions too? | ||
20917 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
20918 | - || (rm -f "$cfgfile"; exit 1) | ||
20919 | - | ||
20920 | - case $xsi_shell in | ||
20921 | - yes) | ||
20922 | - cat << \_LT_EOF >> "$cfgfile" | ||
20923 | - | ||
20924 | -# func_dirname file append nondir_replacement | ||
20925 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
20926 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
20927 | -func_dirname () | ||
20928 | -{ | ||
20929 | - case ${1} in | ||
20930 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
20931 | - * ) func_dirname_result="${3}" ;; | ||
20932 | - esac | ||
20933 | -} | ||
20934 | - | ||
20935 | -# func_basename file | ||
20936 | -func_basename () | ||
20937 | -{ | ||
20938 | - func_basename_result="${1##*/}" | ||
20939 | -} | ||
20940 | - | ||
20941 | -# func_dirname_and_basename file append nondir_replacement | ||
20942 | -# perform func_basename and func_dirname in a single function | ||
20943 | -# call: | ||
20944 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
20945 | -# add APPEND to the result, otherwise set result | ||
20946 | -# to NONDIR_REPLACEMENT. | ||
20947 | -# value returned in "$func_dirname_result" | ||
20948 | -# basename: Compute filename of FILE. | ||
20949 | -# value retuned in "$func_basename_result" | ||
20950 | -# Implementation must be kept synchronized with func_dirname | ||
20951 | -# and func_basename. For efficiency, we do not delegate to | ||
20952 | -# those functions but instead duplicate the functionality here. | ||
20953 | -func_dirname_and_basename () | ||
20954 | -{ | ||
20955 | - case ${1} in | ||
20956 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
20957 | - * ) func_dirname_result="${3}" ;; | ||
20958 | - esac | ||
20959 | - func_basename_result="${1##*/}" | ||
20960 | -} | ||
20961 | - | ||
20962 | -# func_stripname prefix suffix name | ||
20963 | -# strip PREFIX and SUFFIX off of NAME. | ||
20964 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
20965 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
20966 | -# dot (in which case that matches only a dot). | ||
20967 | -func_stripname () | ||
20968 | -{ | ||
20969 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
20970 | - # positional parameters, so assign one to ordinary parameter first. | ||
20971 | - func_stripname_result=${3} | ||
20972 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
20973 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
20974 | -} | ||
20975 | - | ||
20976 | -# func_opt_split | ||
20977 | -func_opt_split () | ||
20978 | -{ | ||
20979 | - func_opt_split_opt=${1%%=*} | ||
20980 | - func_opt_split_arg=${1#*=} | ||
20981 | -} | ||
20982 | - | ||
20983 | -# func_lo2o object | ||
20984 | -func_lo2o () | ||
20985 | -{ | ||
20986 | - case ${1} in | ||
20987 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
20988 | - *) func_lo2o_result=${1} ;; | ||
20989 | - esac | ||
20990 | -} | ||
20991 | - | ||
20992 | -# func_xform libobj-or-source | ||
20993 | -func_xform () | ||
20994 | -{ | ||
20995 | - func_xform_result=${1%.*}.lo | ||
20996 | -} | ||
20997 | - | ||
20998 | -# func_arith arithmetic-term... | ||
20999 | -func_arith () | ||
21000 | -{ | ||
21001 | - func_arith_result=$(( $* )) | ||
21002 | -} | ||
21003 | - | ||
21004 | -# func_len string | ||
21005 | -# STRING may not start with a hyphen. | ||
21006 | -func_len () | ||
21007 | -{ | ||
21008 | - func_len_result=${#1} | ||
21009 | -} | ||
21010 | - | ||
21011 | -_LT_EOF | ||
21012 | - ;; | ||
21013 | - *) # Bourne compatible functions. | ||
21014 | - cat << \_LT_EOF >> "$cfgfile" | ||
21015 | - | ||
21016 | -# func_dirname file append nondir_replacement | ||
21017 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
21018 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
21019 | -func_dirname () | ||
21020 | -{ | ||
21021 | - # Extract subdirectory from the argument. | ||
21022 | - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
21023 | - if test "X$func_dirname_result" = "X${1}"; then | ||
21024 | - func_dirname_result="${3}" | ||
21025 | - else | ||
21026 | - func_dirname_result="$func_dirname_result${2}" | ||
21027 | - fi | ||
21028 | -} | ||
21029 | - | ||
21030 | -# func_basename file | ||
21031 | -func_basename () | ||
21032 | -{ | ||
21033 | - func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
21034 | -} | ||
21035 | - | ||
21036 | - | ||
21037 | -# func_stripname prefix suffix name | ||
21038 | -# strip PREFIX and SUFFIX off of NAME. | ||
21039 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
21040 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
21041 | -# dot (in which case that matches only a dot). | ||
21042 | -# func_strip_suffix prefix name | ||
21043 | -func_stripname () | ||
21044 | -{ | ||
21045 | - case ${2} in | ||
21046 | - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
21047 | - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
21048 | - esac | ||
21049 | -} | ||
21050 | - | ||
21051 | -# sed scripts: | ||
21052 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
21053 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
21054 | - | ||
21055 | -# func_opt_split | ||
21056 | -func_opt_split () | ||
21057 | -{ | ||
21058 | - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | ||
21059 | - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | ||
21060 | -} | ||
21061 | - | ||
21062 | -# func_lo2o object | ||
21063 | -func_lo2o () | ||
21064 | -{ | ||
21065 | - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
21066 | -} | ||
21067 | - | ||
21068 | -# func_xform libobj-or-source | ||
21069 | -func_xform () | ||
21070 | -{ | ||
21071 | - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
21072 | -} | ||
21073 | - | ||
21074 | -# func_arith arithmetic-term... | ||
21075 | -func_arith () | ||
21076 | -{ | ||
21077 | - func_arith_result=`expr "$@"` | ||
21078 | -} | ||
21079 | - | ||
21080 | -# func_len string | ||
21081 | -# STRING may not start with a hyphen. | ||
21082 | -func_len () | ||
21083 | -{ | ||
21084 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
21085 | -} | ||
21086 | - | ||
21087 | -_LT_EOF | ||
21088 | -esac | ||
21089 | - | ||
21090 | -case $lt_shell_append in | ||
21091 | - yes) | ||
21092 | - cat << \_LT_EOF >> "$cfgfile" | ||
21093 | - | ||
21094 | -# func_append var value | ||
21095 | -# Append VALUE to the end of shell variable VAR. | ||
21096 | -func_append () | ||
21097 | -{ | ||
21098 | - eval "$1+=\$2" | ||
21099 | -} | ||
21100 | -_LT_EOF | ||
21101 | - ;; | ||
21102 | - *) | ||
21103 | - cat << \_LT_EOF >> "$cfgfile" | ||
21104 | - | ||
21105 | -# func_append var value | ||
21106 | -# Append VALUE to the end of shell variable VAR. | ||
21107 | -func_append () | ||
21108 | -{ | ||
21109 | - eval "$1=\$$1\$2" | ||
21110 | -} | ||
21111 | - | ||
21112 | -_LT_EOF | ||
21113 | - ;; | ||
21114 | - esac | ||
21115 | - | ||
21116 | - | ||
21117 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
21118 | - || (rm -f "$cfgfile"; exit 1) | ||
21119 | - | ||
21120 | - mv -f "$cfgfile" "$ofile" || | ||
21121 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
21122 | + || (rm -f "$cfgfile"; exit 1) | ||
21123 | + | ||
21124 | + if test x"$xsi_shell" = xyes; then | ||
21125 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
21126 | +func_dirname ()\ | ||
21127 | +{\ | ||
21128 | +\ case ${1} in\ | ||
21129 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
21130 | +\ * ) func_dirname_result="${3}" ;;\ | ||
21131 | +\ esac\ | ||
21132 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21133 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21134 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21135 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21136 | + | ||
21137 | + | ||
21138 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
21139 | +func_basename ()\ | ||
21140 | +{\ | ||
21141 | +\ func_basename_result="${1##*/}"\ | ||
21142 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21143 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21144 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21145 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21146 | + | ||
21147 | + | ||
21148 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
21149 | +func_dirname_and_basename ()\ | ||
21150 | +{\ | ||
21151 | +\ case ${1} in\ | ||
21152 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
21153 | +\ * ) func_dirname_result="${3}" ;;\ | ||
21154 | +\ esac\ | ||
21155 | +\ func_basename_result="${1##*/}"\ | ||
21156 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21157 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21158 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21159 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21160 | + | ||
21161 | + | ||
21162 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
21163 | +func_stripname ()\ | ||
21164 | +{\ | ||
21165 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
21166 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
21167 | +\ func_stripname_result=${3}\ | ||
21168 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
21169 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
21170 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21171 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21172 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21173 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21174 | + | ||
21175 | + | ||
21176 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
21177 | +func_split_long_opt ()\ | ||
21178 | +{\ | ||
21179 | +\ func_split_long_opt_name=${1%%=*}\ | ||
21180 | +\ func_split_long_opt_arg=${1#*=}\ | ||
21181 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21182 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21183 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21184 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21185 | + | ||
21186 | + | ||
21187 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
21188 | +func_split_short_opt ()\ | ||
21189 | +{\ | ||
21190 | +\ func_split_short_opt_arg=${1#??}\ | ||
21191 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
21192 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21193 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21194 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21195 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21196 | + | ||
21197 | + | ||
21198 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
21199 | +func_lo2o ()\ | ||
21200 | +{\ | ||
21201 | +\ case ${1} in\ | ||
21202 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
21203 | +\ *) func_lo2o_result=${1} ;;\ | ||
21204 | +\ esac\ | ||
21205 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21206 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21207 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21208 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21209 | + | ||
21210 | + | ||
21211 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
21212 | +func_xform ()\ | ||
21213 | +{\ | ||
21214 | + func_xform_result=${1%.*}.lo\ | ||
21215 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21216 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21217 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21218 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21219 | + | ||
21220 | + | ||
21221 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
21222 | +func_arith ()\ | ||
21223 | +{\ | ||
21224 | + func_arith_result=$(( $* ))\ | ||
21225 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21226 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21227 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21228 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21229 | + | ||
21230 | + | ||
21231 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
21232 | +func_len ()\ | ||
21233 | +{\ | ||
21234 | + func_len_result=${#1}\ | ||
21235 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21236 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21237 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21238 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21239 | + | ||
21240 | +fi | ||
21241 | + | ||
21242 | +if test x"$lt_shell_append" = xyes; then | ||
21243 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
21244 | +func_append ()\ | ||
21245 | +{\ | ||
21246 | + eval "${1}+=\\${2}"\ | ||
21247 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21248 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21249 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21250 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21251 | + | ||
21252 | + | ||
21253 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
21254 | +func_append_quoted ()\ | ||
21255 | +{\ | ||
21256 | +\ func_quote_for_eval "${2}"\ | ||
21257 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
21258 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
21259 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21260 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21261 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
21262 | + | ||
21263 | + | ||
21264 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
21265 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
21266 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21267 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21268 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
21269 | +else | ||
21270 | + # Save a `func_append' function call even when '+=' is not available | ||
21271 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
21272 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
21273 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
21274 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
21275 | +fi | ||
21276 | + | ||
21277 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
21278 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
21279 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
21280 | +fi | ||
21281 | + | ||
21282 | + | ||
21283 | + mv -f "$cfgfile" "$ofile" || | ||
21284 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
21285 | chmod +x "$ofile" | ||
21286 | |||
21287 | diff --git a/zlib/configure b/zlib/configure | ||
21288 | index 695819cd54b..14b5f28013a 100755 | ||
21289 | --- a/zlib/configure | ||
21290 | +++ b/zlib/configure | ||
21291 | @@ -646,8 +646,11 @@ OTOOL | ||
21292 | LIPO | ||
21293 | NMEDIT | ||
21294 | DSYMUTIL | ||
21295 | +MANIFEST_TOOL | ||
21296 | RANLIB | ||
21297 | +ac_ct_AR | ||
21298 | AR | ||
21299 | +DLLTOOL | ||
21300 | OBJDUMP | ||
21301 | LN_S | ||
21302 | NM | ||
21303 | @@ -774,6 +777,7 @@ enable_static | ||
21304 | with_pic | ||
21305 | enable_fast_install | ||
21306 | with_gnu_ld | ||
21307 | +with_libtool_sysroot | ||
21308 | enable_libtool_lock | ||
21309 | enable_host_shared | ||
21310 | ' | ||
21311 | @@ -1428,6 +1432,8 @@ Optional Packages: | ||
21312 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
21313 | both] | ||
21314 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
21315 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
21316 | + (or the compiler's sysroot if not specified). | ||
21317 | |||
21318 | Some influential environment variables: | ||
21319 | CC C compiler command | ||
21320 | @@ -4147,8 +4153,8 @@ esac | ||
21321 | |||
21322 | |||
21323 | |||
21324 | -macro_version='2.2.7a' | ||
21325 | -macro_revision='1.3134' | ||
21326 | +macro_version='2.4' | ||
21327 | +macro_revision='1.3293' | ||
21328 | |||
21329 | |||
21330 | |||
21331 | @@ -4188,7 +4194,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
21332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
21333 | $as_echo_n "checking how to print strings... " >&6; } | ||
21334 | # Test print first, because it will be a builtin if present. | ||
21335 | -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | ||
21336 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
21337 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
21338 | ECHO='print -r --' | ||
21339 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
21340 | @@ -5004,8 +5010,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; | ||
21341 | # Try some XSI features | ||
21342 | xsi_shell=no | ||
21343 | ( _lt_dummy="a/b/c" | ||
21344 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
21345 | - = c,a/b,, \ | ||
21346 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
21347 | + = c,a/b,b/c, \ | ||
21348 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
21349 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
21350 | && xsi_shell=yes | ||
21351 | @@ -5054,6 +5060,80 @@ esac | ||
21352 | |||
21353 | |||
21354 | |||
21355 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
21356 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
21357 | +if ${lt_cv_to_host_file_cmd+:} false; then : | ||
21358 | + $as_echo_n "(cached) " >&6 | ||
21359 | +else | ||
21360 | + case $host in | ||
21361 | + *-*-mingw* ) | ||
21362 | + case $build in | ||
21363 | + *-*-mingw* ) # actually msys | ||
21364 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
21365 | + ;; | ||
21366 | + *-*-cygwin* ) | ||
21367 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
21368 | + ;; | ||
21369 | + * ) # otherwise, assume *nix | ||
21370 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
21371 | + ;; | ||
21372 | + esac | ||
21373 | + ;; | ||
21374 | + *-*-cygwin* ) | ||
21375 | + case $build in | ||
21376 | + *-*-mingw* ) # actually msys | ||
21377 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
21378 | + ;; | ||
21379 | + *-*-cygwin* ) | ||
21380 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
21381 | + ;; | ||
21382 | + * ) # otherwise, assume *nix | ||
21383 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
21384 | + ;; | ||
21385 | + esac | ||
21386 | + ;; | ||
21387 | + * ) # unhandled hosts (and "normal" native builds) | ||
21388 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
21389 | + ;; | ||
21390 | +esac | ||
21391 | + | ||
21392 | +fi | ||
21393 | + | ||
21394 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
21395 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
21396 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
21397 | + | ||
21398 | + | ||
21399 | + | ||
21400 | + | ||
21401 | + | ||
21402 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
21403 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
21404 | +if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
21405 | + $as_echo_n "(cached) " >&6 | ||
21406 | +else | ||
21407 | + #assume ordinary cross tools, or native build. | ||
21408 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
21409 | +case $host in | ||
21410 | + *-*-mingw* ) | ||
21411 | + case $build in | ||
21412 | + *-*-mingw* ) # actually msys | ||
21413 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
21414 | + ;; | ||
21415 | + esac | ||
21416 | + ;; | ||
21417 | +esac | ||
21418 | + | ||
21419 | +fi | ||
21420 | + | ||
21421 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
21422 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
21423 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
21424 | + | ||
21425 | + | ||
21426 | + | ||
21427 | + | ||
21428 | + | ||
21429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
21430 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
21431 | if ${lt_cv_ld_reload_flag+:} false; then : | ||
21432 | @@ -5070,6 +5150,11 @@ case $reload_flag in | ||
21433 | esac | ||
21434 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
21435 | case $host_os in | ||
21436 | + cygwin* | mingw* | pw32* | cegcc*) | ||
21437 | + if test "$GCC" != yes; then | ||
21438 | + reload_cmds=false | ||
21439 | + fi | ||
21440 | + ;; | ||
21441 | darwin*) | ||
21442 | if test "$GCC" = yes; then | ||
21443 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
21444 | @@ -5238,7 +5323,8 @@ mingw* | pw32*) | ||
21445 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
21446 | lt_cv_file_magic_cmd='func_win32_libid' | ||
21447 | else | ||
21448 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
21449 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
21450 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
21451 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
21452 | fi | ||
21453 | ;; | ||
21454 | @@ -5392,6 +5478,21 @@ esac | ||
21455 | fi | ||
21456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
21457 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
21458 | + | ||
21459 | +file_magic_glob= | ||
21460 | +want_nocaseglob=no | ||
21461 | +if test "$build" = "$host"; then | ||
21462 | + case $host_os in | ||
21463 | + mingw* | pw32*) | ||
21464 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
21465 | + want_nocaseglob=yes | ||
21466 | + else | ||
21467 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
21468 | + fi | ||
21469 | + ;; | ||
21470 | + esac | ||
21471 | +fi | ||
21472 | + | ||
21473 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
21474 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
21475 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
21476 | @@ -5407,6 +5508,158 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
21477 | |||
21478 | |||
21479 | |||
21480 | + | ||
21481 | + | ||
21482 | + | ||
21483 | + | ||
21484 | + | ||
21485 | + | ||
21486 | + | ||
21487 | + | ||
21488 | + | ||
21489 | + | ||
21490 | +if test -n "$ac_tool_prefix"; then | ||
21491 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
21492 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
21493 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21494 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
21495 | +if ${ac_cv_prog_DLLTOOL+:} false; then : | ||
21496 | + $as_echo_n "(cached) " >&6 | ||
21497 | +else | ||
21498 | + if test -n "$DLLTOOL"; then | ||
21499 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
21500 | +else | ||
21501 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21502 | +for as_dir in $PATH | ||
21503 | +do | ||
21504 | + IFS=$as_save_IFS | ||
21505 | + test -z "$as_dir" && as_dir=. | ||
21506 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
21507 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
21508 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
21509 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21510 | + break 2 | ||
21511 | + fi | ||
21512 | +done | ||
21513 | + done | ||
21514 | +IFS=$as_save_IFS | ||
21515 | + | ||
21516 | +fi | ||
21517 | +fi | ||
21518 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
21519 | +if test -n "$DLLTOOL"; then | ||
21520 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
21521 | +$as_echo "$DLLTOOL" >&6; } | ||
21522 | +else | ||
21523 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21524 | +$as_echo "no" >&6; } | ||
21525 | +fi | ||
21526 | + | ||
21527 | + | ||
21528 | +fi | ||
21529 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
21530 | + ac_ct_DLLTOOL=$DLLTOOL | ||
21531 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
21532 | +set dummy dlltool; ac_word=$2 | ||
21533 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21534 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
21535 | +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ||
21536 | + $as_echo_n "(cached) " >&6 | ||
21537 | +else | ||
21538 | + if test -n "$ac_ct_DLLTOOL"; then | ||
21539 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
21540 | +else | ||
21541 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21542 | +for as_dir in $PATH | ||
21543 | +do | ||
21544 | + IFS=$as_save_IFS | ||
21545 | + test -z "$as_dir" && as_dir=. | ||
21546 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
21547 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
21548 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
21549 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21550 | + break 2 | ||
21551 | + fi | ||
21552 | +done | ||
21553 | + done | ||
21554 | +IFS=$as_save_IFS | ||
21555 | + | ||
21556 | +fi | ||
21557 | +fi | ||
21558 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
21559 | +if test -n "$ac_ct_DLLTOOL"; then | ||
21560 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
21561 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
21562 | +else | ||
21563 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21564 | +$as_echo "no" >&6; } | ||
21565 | +fi | ||
21566 | + | ||
21567 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
21568 | + DLLTOOL="false" | ||
21569 | + else | ||
21570 | + case $cross_compiling:$ac_tool_warned in | ||
21571 | +yes:) | ||
21572 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
21573 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
21574 | +ac_tool_warned=yes ;; | ||
21575 | +esac | ||
21576 | + DLLTOOL=$ac_ct_DLLTOOL | ||
21577 | + fi | ||
21578 | +else | ||
21579 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
21580 | +fi | ||
21581 | + | ||
21582 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
21583 | + | ||
21584 | + | ||
21585 | + | ||
21586 | + | ||
21587 | + | ||
21588 | + | ||
21589 | + | ||
21590 | + | ||
21591 | + | ||
21592 | + | ||
21593 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
21594 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
21595 | +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
21596 | + $as_echo_n "(cached) " >&6 | ||
21597 | +else | ||
21598 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
21599 | + | ||
21600 | +case $host_os in | ||
21601 | +cygwin* | mingw* | pw32* | cegcc*) | ||
21602 | + # two different shell functions defined in ltmain.sh | ||
21603 | + # decide which to use based on capabilities of $DLLTOOL | ||
21604 | + case `$DLLTOOL --help 2>&1` in | ||
21605 | + *--identify-strict*) | ||
21606 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
21607 | + ;; | ||
21608 | + *) | ||
21609 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
21610 | + ;; | ||
21611 | + esac | ||
21612 | + ;; | ||
21613 | +*) | ||
21614 | + # fallback: assume linklib IS sharedlib | ||
21615 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
21616 | + ;; | ||
21617 | +esac | ||
21618 | + | ||
21619 | +fi | ||
21620 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
21621 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
21622 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
21623 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
21624 | + | ||
21625 | + | ||
21626 | + | ||
21627 | + | ||
21628 | + | ||
21629 | + | ||
21630 | + | ||
21631 | + | ||
21632 | plugin_option= | ||
21633 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | ||
21634 | for plugin in $plugin_names; do | ||
21635 | @@ -5421,8 +5674,10 @@ for plugin in $plugin_names; do | ||
21636 | done | ||
21637 | |||
21638 | if test -n "$ac_tool_prefix"; then | ||
21639 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
21640 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
21641 | + for ac_prog in ar | ||
21642 | + do | ||
21643 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
21644 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
21645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21646 | $as_echo_n "checking for $ac_word... " >&6; } | ||
21647 | if ${ac_cv_prog_AR+:} false; then : | ||
21648 | @@ -5438,7 +5693,7 @@ do | ||
21649 | test -z "$as_dir" && as_dir=. | ||
21650 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
21652 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
21653 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
21654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21655 | break 2 | ||
21656 | fi | ||
21657 | @@ -5458,11 +5713,15 @@ $as_echo "no" >&6; } | ||
21658 | fi | ||
21659 | |||
21660 | |||
21661 | + test -n "$AR" && break | ||
21662 | + done | ||
21663 | fi | ||
21664 | -if test -z "$ac_cv_prog_AR"; then | ||
21665 | +if test -z "$AR"; then | ||
21666 | ac_ct_AR=$AR | ||
21667 | - # Extract the first word of "ar", so it can be a program name with args. | ||
21668 | -set dummy ar; ac_word=$2 | ||
21669 | + for ac_prog in ar | ||
21670 | +do | ||
21671 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
21672 | +set dummy $ac_prog; ac_word=$2 | ||
21673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21674 | $as_echo_n "checking for $ac_word... " >&6; } | ||
21675 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
21676 | @@ -5478,7 +5737,7 @@ do | ||
21677 | test -z "$as_dir" && as_dir=. | ||
21678 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
21680 | - ac_cv_prog_ac_ct_AR="ar" | ||
21681 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
21682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21683 | break 2 | ||
21684 | fi | ||
21685 | @@ -5497,6 +5756,10 @@ else | ||
21686 | $as_echo "no" >&6; } | ||
21687 | fi | ||
21688 | |||
21689 | + | ||
21690 | + test -n "$ac_ct_AR" && break | ||
21691 | +done | ||
21692 | + | ||
21693 | if test "x$ac_ct_AR" = x; then | ||
21694 | AR="false" | ||
21695 | else | ||
21696 | @@ -5508,25 +5771,19 @@ ac_tool_warned=yes ;; | ||
21697 | esac | ||
21698 | AR=$ac_ct_AR | ||
21699 | fi | ||
21700 | -else | ||
21701 | - AR="$ac_cv_prog_AR" | ||
21702 | fi | ||
21703 | |||
21704 | -test -z "$AR" && AR=ar | ||
21705 | -if test -n "$plugin_option"; then | ||
21706 | - if $AR --help 2>&1 | grep -q "\--plugin"; then | ||
21707 | - touch conftest.c | ||
21708 | - $AR $plugin_option rc conftest.a conftest.c | ||
21709 | - if test "$?" != 0; then | ||
21710 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
21711 | + touch conftest.c | ||
21712 | + $AR $plugin_option rc conftest.a conftest.c | ||
21713 | + if test "$?" != 0; then | ||
21714 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | ||
21715 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | ||
21716 | - else | ||
21717 | - AR="$AR $plugin_option" | ||
21718 | - fi | ||
21719 | - rm -f conftest.* | ||
21720 | + else | ||
21721 | + AR="$AR $plugin_option" | ||
21722 | fi | ||
21723 | -fi | ||
21724 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
21725 | + rm -f conftest.* | ||
21726 | +: ${AR=ar} | ||
21727 | +: ${AR_FLAGS=cru} | ||
21728 | |||
21729 | |||
21730 | |||
21731 | @@ -5538,6 +5795,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
21732 | |||
21733 | |||
21734 | |||
21735 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
21736 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
21737 | +if ${lt_cv_ar_at_file+:} false; then : | ||
21738 | + $as_echo_n "(cached) " >&6 | ||
21739 | +else | ||
21740 | + lt_cv_ar_at_file=no | ||
21741 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21742 | +/* end confdefs.h. */ | ||
21743 | + | ||
21744 | +int | ||
21745 | +main () | ||
21746 | +{ | ||
21747 | + | ||
21748 | + ; | ||
21749 | + return 0; | ||
21750 | +} | ||
21751 | +_ACEOF | ||
21752 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
21753 | + echo conftest.$ac_objext > conftest.lst | ||
21754 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
21755 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
21756 | + (eval $lt_ar_try) 2>&5 | ||
21757 | + ac_status=$? | ||
21758 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21759 | + test $ac_status = 0; } | ||
21760 | + if test "$ac_status" -eq 0; then | ||
21761 | + # Ensure the archiver fails upon bogus file names. | ||
21762 | + rm -f conftest.$ac_objext libconftest.a | ||
21763 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
21764 | + (eval $lt_ar_try) 2>&5 | ||
21765 | + ac_status=$? | ||
21766 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21767 | + test $ac_status = 0; } | ||
21768 | + if test "$ac_status" -ne 0; then | ||
21769 | + lt_cv_ar_at_file=@ | ||
21770 | + fi | ||
21771 | + fi | ||
21772 | + rm -f conftest.* libconftest.a | ||
21773 | + | ||
21774 | +fi | ||
21775 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21776 | + | ||
21777 | +fi | ||
21778 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
21779 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
21780 | + | ||
21781 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
21782 | + archiver_list_spec= | ||
21783 | +else | ||
21784 | + archiver_list_spec=$lt_cv_ar_at_file | ||
21785 | +fi | ||
21786 | + | ||
21787 | + | ||
21788 | + | ||
21789 | + | ||
21790 | + | ||
21791 | + | ||
21792 | + | ||
21793 | if test -n "$ac_tool_prefix"; then | ||
21794 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
21795 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
21796 | @@ -5877,8 +6192,8 @@ esac | ||
21797 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
21798 | |||
21799 | # Transform an extracted symbol line into symbol name and symbol address | ||
21800 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
21801 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
21802 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
21803 | +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | ||
21804 | |||
21805 | # Handle CRLF in mingw tool chain | ||
21806 | opt_cr= | ||
21807 | @@ -5914,6 +6229,7 @@ for ac_symprfx in "" "_"; do | ||
21808 | else | ||
21809 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
21810 | fi | ||
21811 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
21812 | |||
21813 | # Check to see that the pipe works correctly. | ||
21814 | pipe_works=no | ||
21815 | @@ -5955,6 +6271,18 @@ _LT_EOF | ||
21816 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
21817 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
21818 | cat <<_LT_EOF > conftest.$ac_ext | ||
21819 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
21820 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
21821 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
21822 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
21823 | +# define LT_DLSYM_CONST | ||
21824 | +#elif defined(__osf__) | ||
21825 | +/* This system does not cope well with relocations in const data. */ | ||
21826 | +# define LT_DLSYM_CONST | ||
21827 | +#else | ||
21828 | +# define LT_DLSYM_CONST const | ||
21829 | +#endif | ||
21830 | + | ||
21831 | #ifdef __cplusplus | ||
21832 | extern "C" { | ||
21833 | #endif | ||
21834 | @@ -5966,7 +6294,7 @@ _LT_EOF | ||
21835 | cat <<_LT_EOF >> conftest.$ac_ext | ||
21836 | |||
21837 | /* The mapping between symbol names and symbols. */ | ||
21838 | -const struct { | ||
21839 | +LT_DLSYM_CONST struct { | ||
21840 | const char *name; | ||
21841 | void *address; | ||
21842 | } | ||
21843 | @@ -5992,8 +6320,8 @@ static const void *lt_preloaded_setup() { | ||
21844 | _LT_EOF | ||
21845 | # Now try linking the two files. | ||
21846 | mv conftest.$ac_objext conftstm.$ac_objext | ||
21847 | - lt_save_LIBS="$LIBS" | ||
21848 | - lt_save_CFLAGS="$CFLAGS" | ||
21849 | + lt_globsym_save_LIBS=$LIBS | ||
21850 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
21851 | LIBS="conftstm.$ac_objext" | ||
21852 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
21853 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
21854 | @@ -6003,8 +6331,8 @@ _LT_EOF | ||
21855 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
21856 | pipe_works=yes | ||
21857 | fi | ||
21858 | - LIBS="$lt_save_LIBS" | ||
21859 | - CFLAGS="$lt_save_CFLAGS" | ||
21860 | + LIBS=$lt_globsym_save_LIBS | ||
21861 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
21862 | else | ||
21863 | echo "cannot find nm_test_func in $nlist" >&5 | ||
21864 | fi | ||
21865 | @@ -6041,6 +6369,17 @@ else | ||
21866 | $as_echo "ok" >&6; } | ||
21867 | fi | ||
21868 | |||
21869 | +# Response file support. | ||
21870 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
21871 | + nm_file_list_spec='@' | ||
21872 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
21873 | + nm_file_list_spec='@' | ||
21874 | +fi | ||
21875 | + | ||
21876 | + | ||
21877 | + | ||
21878 | + | ||
21879 | + | ||
21880 | |||
21881 | |||
21882 | |||
21883 | @@ -6058,6 +6397,43 @@ fi | ||
21884 | |||
21885 | |||
21886 | |||
21887 | + | ||
21888 | + | ||
21889 | + | ||
21890 | + | ||
21891 | + | ||
21892 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
21893 | +$as_echo_n "checking for sysroot... " >&6; } | ||
21894 | + | ||
21895 | +# Check whether --with-libtool-sysroot was given. | ||
21896 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
21897 | + withval=$with_libtool_sysroot; | ||
21898 | +else | ||
21899 | + with_libtool_sysroot=no | ||
21900 | +fi | ||
21901 | + | ||
21902 | + | ||
21903 | +lt_sysroot= | ||
21904 | +case ${with_libtool_sysroot} in #( | ||
21905 | + yes) | ||
21906 | + if test "$GCC" = yes; then | ||
21907 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
21908 | + fi | ||
21909 | + ;; #( | ||
21910 | + /*) | ||
21911 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
21912 | + ;; #( | ||
21913 | + no|'') | ||
21914 | + ;; #( | ||
21915 | + *) | ||
21916 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
21917 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
21918 | + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | ||
21919 | + ;; | ||
21920 | +esac | ||
21921 | + | ||
21922 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
21923 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
21924 | |||
21925 | |||
21926 | |||
21927 | @@ -6272,6 +6648,123 @@ esac | ||
21928 | |||
21929 | need_locks="$enable_libtool_lock" | ||
21930 | |||
21931 | +if test -n "$ac_tool_prefix"; then | ||
21932 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
21933 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
21934 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21935 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
21936 | +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | ||
21937 | + $as_echo_n "(cached) " >&6 | ||
21938 | +else | ||
21939 | + if test -n "$MANIFEST_TOOL"; then | ||
21940 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
21941 | +else | ||
21942 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21943 | +for as_dir in $PATH | ||
21944 | +do | ||
21945 | + IFS=$as_save_IFS | ||
21946 | + test -z "$as_dir" && as_dir=. | ||
21947 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
21948 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
21949 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
21950 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21951 | + break 2 | ||
21952 | + fi | ||
21953 | +done | ||
21954 | + done | ||
21955 | +IFS=$as_save_IFS | ||
21956 | + | ||
21957 | +fi | ||
21958 | +fi | ||
21959 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
21960 | +if test -n "$MANIFEST_TOOL"; then | ||
21961 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
21962 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
21963 | +else | ||
21964 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21965 | +$as_echo "no" >&6; } | ||
21966 | +fi | ||
21967 | + | ||
21968 | + | ||
21969 | +fi | ||
21970 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
21971 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
21972 | + # Extract the first word of "mt", so it can be a program name with args. | ||
21973 | +set dummy mt; ac_word=$2 | ||
21974 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21975 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
21976 | +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | ||
21977 | + $as_echo_n "(cached) " >&6 | ||
21978 | +else | ||
21979 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
21980 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
21981 | +else | ||
21982 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21983 | +for as_dir in $PATH | ||
21984 | +do | ||
21985 | + IFS=$as_save_IFS | ||
21986 | + test -z "$as_dir" && as_dir=. | ||
21987 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
21988 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
21989 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
21990 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21991 | + break 2 | ||
21992 | + fi | ||
21993 | +done | ||
21994 | + done | ||
21995 | +IFS=$as_save_IFS | ||
21996 | + | ||
21997 | +fi | ||
21998 | +fi | ||
21999 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
22000 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
22001 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
22002 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
22003 | +else | ||
22004 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22005 | +$as_echo "no" >&6; } | ||
22006 | +fi | ||
22007 | + | ||
22008 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
22009 | + MANIFEST_TOOL=":" | ||
22010 | + else | ||
22011 | + case $cross_compiling:$ac_tool_warned in | ||
22012 | +yes:) | ||
22013 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
22014 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
22015 | +ac_tool_warned=yes ;; | ||
22016 | +esac | ||
22017 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
22018 | + fi | ||
22019 | +else | ||
22020 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
22021 | +fi | ||
22022 | + | ||
22023 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
22024 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
22025 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
22026 | +if ${lt_cv_path_mainfest_tool+:} false; then : | ||
22027 | + $as_echo_n "(cached) " >&6 | ||
22028 | +else | ||
22029 | + lt_cv_path_mainfest_tool=no | ||
22030 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
22031 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
22032 | + cat conftest.err >&5 | ||
22033 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
22034 | + lt_cv_path_mainfest_tool=yes | ||
22035 | + fi | ||
22036 | + rm -f conftest* | ||
22037 | +fi | ||
22038 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
22039 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
22040 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
22041 | + MANIFEST_TOOL=: | ||
22042 | +fi | ||
22043 | + | ||
22044 | + | ||
22045 | + | ||
22046 | + | ||
22047 | + | ||
22048 | |||
22049 | case $host_os in | ||
22050 | rhapsody* | darwin*) | ||
22051 | @@ -6838,6 +7331,8 @@ _LT_EOF | ||
22052 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
22053 | echo "$AR cru libconftest.a conftest.o" >&5 | ||
22054 | $AR cru libconftest.a conftest.o 2>&5 | ||
22055 | + echo "$RANLIB libconftest.a" >&5 | ||
22056 | + $RANLIB libconftest.a 2>&5 | ||
22057 | cat > conftest.c << _LT_EOF | ||
22058 | int main() { return 0;} | ||
22059 | _LT_EOF | ||
22060 | @@ -7687,8 +8183,6 @@ fi | ||
22061 | lt_prog_compiler_pic= | ||
22062 | lt_prog_compiler_static= | ||
22063 | |||
22064 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
22065 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
22066 | |||
22067 | if test "$GCC" = yes; then | ||
22068 | lt_prog_compiler_wl='-Wl,' | ||
22069 | @@ -7854,6 +8348,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
22070 | lt_prog_compiler_pic='--shared' | ||
22071 | lt_prog_compiler_static='--static' | ||
22072 | ;; | ||
22073 | + nagfor*) | ||
22074 | + # NAG Fortran compiler | ||
22075 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
22076 | + lt_prog_compiler_pic='-PIC' | ||
22077 | + lt_prog_compiler_static='-Bstatic' | ||
22078 | + ;; | ||
22079 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
22080 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
22081 | # which looks to be a dead project) | ||
22082 | @@ -7916,7 +8416,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
22083 | lt_prog_compiler_pic='-KPIC' | ||
22084 | lt_prog_compiler_static='-Bstatic' | ||
22085 | case $cc_basename in | ||
22086 | - f77* | f90* | f95*) | ||
22087 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
22088 | lt_prog_compiler_wl='-Qoption ld ';; | ||
22089 | *) | ||
22090 | lt_prog_compiler_wl='-Wl,';; | ||
22091 | @@ -7973,13 +8473,17 @@ case $host_os in | ||
22092 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
22093 | ;; | ||
22094 | esac | ||
22095 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
22096 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
22097 | - | ||
22098 | - | ||
22099 | - | ||
22100 | - | ||
22101 | |||
22102 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
22103 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
22104 | +if ${lt_cv_prog_compiler_pic+:} false; then : | ||
22105 | + $as_echo_n "(cached) " >&6 | ||
22106 | +else | ||
22107 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
22108 | +fi | ||
22109 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
22110 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
22111 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
22112 | |||
22113 | # | ||
22114 | # Check to make sure the PIC flag actually works. | ||
22115 | @@ -8040,6 +8544,11 @@ fi | ||
22116 | |||
22117 | |||
22118 | |||
22119 | + | ||
22120 | + | ||
22121 | + | ||
22122 | + | ||
22123 | + | ||
22124 | # | ||
22125 | # Check to make sure the static flag actually works. | ||
22126 | # | ||
22127 | @@ -8390,7 +8899,8 @@ _LT_EOF | ||
22128 | allow_undefined_flag=unsupported | ||
22129 | always_export_symbols=no | ||
22130 | enable_shared_with_static_runtimes=yes | ||
22131 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
22132 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
22133 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
22134 | |||
22135 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
22136 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
22137 | @@ -8489,12 +8999,12 @@ _LT_EOF | ||
22138 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
22139 | hardcode_libdir_flag_spec= | ||
22140 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
22141 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
22142 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
22143 | if test "x$supports_anon_versioning" = xyes; then | ||
22144 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
22145 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
22146 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
22147 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
22148 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
22149 | fi | ||
22150 | ;; | ||
22151 | esac | ||
22152 | @@ -8508,8 +9018,8 @@ _LT_EOF | ||
22153 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
22154 | wlarc= | ||
22155 | else | ||
22156 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22157 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22158 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22159 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22160 | fi | ||
22161 | ;; | ||
22162 | |||
22163 | @@ -8527,8 +9037,8 @@ _LT_EOF | ||
22164 | |||
22165 | _LT_EOF | ||
22166 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
22167 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22168 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22169 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22170 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22171 | else | ||
22172 | ld_shlibs=no | ||
22173 | fi | ||
22174 | @@ -8574,8 +9084,8 @@ _LT_EOF | ||
22175 | |||
22176 | *) | ||
22177 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
22178 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22179 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22180 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22181 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22182 | else | ||
22183 | ld_shlibs=no | ||
22184 | fi | ||
22185 | @@ -8705,7 +9215,13 @@ _LT_EOF | ||
22186 | allow_undefined_flag='-berok' | ||
22187 | # Determine the default libpath from the value encoded in an | ||
22188 | # empty executable. | ||
22189 | - if test x$gcc_no_link = xyes; then | ||
22190 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
22191 | + aix_libpath=$lt_cv_aix_libpath | ||
22192 | +else | ||
22193 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
22194 | + $as_echo_n "(cached) " >&6 | ||
22195 | +else | ||
22196 | + if test x$gcc_no_link = xyes; then | ||
22197 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | ||
22198 | fi | ||
22199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22200 | @@ -8721,22 +9237,29 @@ main () | ||
22201 | _ACEOF | ||
22202 | if ac_fn_c_try_link "$LINENO"; then : | ||
22203 | |||
22204 | -lt_aix_libpath_sed=' | ||
22205 | - /Import File Strings/,/^$/ { | ||
22206 | - /^0/ { | ||
22207 | - s/^0 *\(.*\)$/\1/ | ||
22208 | - p | ||
22209 | - } | ||
22210 | - }' | ||
22211 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22212 | -# Check for a 64-bit object if we didn't find anything. | ||
22213 | -if test -z "$aix_libpath"; then | ||
22214 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22215 | -fi | ||
22216 | + lt_aix_libpath_sed=' | ||
22217 | + /Import File Strings/,/^$/ { | ||
22218 | + /^0/ { | ||
22219 | + s/^0 *\([^ ]*\) *$/\1/ | ||
22220 | + p | ||
22221 | + } | ||
22222 | + }' | ||
22223 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22224 | + # Check for a 64-bit object if we didn't find anything. | ||
22225 | + if test -z "$lt_cv_aix_libpath_"; then | ||
22226 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22227 | + fi | ||
22228 | fi | ||
22229 | rm -f core conftest.err conftest.$ac_objext \ | ||
22230 | conftest$ac_exeext conftest.$ac_ext | ||
22231 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22232 | + if test -z "$lt_cv_aix_libpath_"; then | ||
22233 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
22234 | + fi | ||
22235 | + | ||
22236 | +fi | ||
22237 | + | ||
22238 | + aix_libpath=$lt_cv_aix_libpath_ | ||
22239 | +fi | ||
22240 | |||
22241 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
22242 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
22243 | @@ -8748,7 +9271,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22244 | else | ||
22245 | # Determine the default libpath from the value encoded in an | ||
22246 | # empty executable. | ||
22247 | - if test x$gcc_no_link = xyes; then | ||
22248 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
22249 | + aix_libpath=$lt_cv_aix_libpath | ||
22250 | +else | ||
22251 | + if ${lt_cv_aix_libpath_+:} false; then : | ||
22252 | + $as_echo_n "(cached) " >&6 | ||
22253 | +else | ||
22254 | + if test x$gcc_no_link = xyes; then | ||
22255 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | ||
22256 | fi | ||
22257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22258 | @@ -8764,22 +9293,29 @@ main () | ||
22259 | _ACEOF | ||
22260 | if ac_fn_c_try_link "$LINENO"; then : | ||
22261 | |||
22262 | -lt_aix_libpath_sed=' | ||
22263 | - /Import File Strings/,/^$/ { | ||
22264 | - /^0/ { | ||
22265 | - s/^0 *\(.*\)$/\1/ | ||
22266 | - p | ||
22267 | - } | ||
22268 | - }' | ||
22269 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22270 | -# Check for a 64-bit object if we didn't find anything. | ||
22271 | -if test -z "$aix_libpath"; then | ||
22272 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22273 | -fi | ||
22274 | + lt_aix_libpath_sed=' | ||
22275 | + /Import File Strings/,/^$/ { | ||
22276 | + /^0/ { | ||
22277 | + s/^0 *\([^ ]*\) *$/\1/ | ||
22278 | + p | ||
22279 | + } | ||
22280 | + }' | ||
22281 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22282 | + # Check for a 64-bit object if we didn't find anything. | ||
22283 | + if test -z "$lt_cv_aix_libpath_"; then | ||
22284 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22285 | + fi | ||
22286 | fi | ||
22287 | rm -f core conftest.err conftest.$ac_objext \ | ||
22288 | conftest$ac_exeext conftest.$ac_ext | ||
22289 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22290 | + if test -z "$lt_cv_aix_libpath_"; then | ||
22291 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
22292 | + fi | ||
22293 | + | ||
22294 | +fi | ||
22295 | + | ||
22296 | + aix_libpath=$lt_cv_aix_libpath_ | ||
22297 | +fi | ||
22298 | |||
22299 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
22300 | # Warning - without using the other run time loading flags, | ||
22301 | @@ -8824,20 +9360,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22302 | # Microsoft Visual C++. | ||
22303 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
22304 | # no search path for DLLs. | ||
22305 | - hardcode_libdir_flag_spec=' ' | ||
22306 | - allow_undefined_flag=unsupported | ||
22307 | - # Tell ltmain to make .lib files, not .a files. | ||
22308 | - libext=lib | ||
22309 | - # Tell ltmain to make .dll files, not .so files. | ||
22310 | - shrext_cmds=".dll" | ||
22311 | - # FIXME: Setting linknames here is a bad hack. | ||
22312 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
22313 | - # The linker will automatically build a .lib file if we build a DLL. | ||
22314 | - old_archive_from_new_cmds='true' | ||
22315 | - # FIXME: Should let the user specify the lib program. | ||
22316 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
22317 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
22318 | - enable_shared_with_static_runtimes=yes | ||
22319 | + case $cc_basename in | ||
22320 | + cl*) | ||
22321 | + # Native MSVC | ||
22322 | + hardcode_libdir_flag_spec=' ' | ||
22323 | + allow_undefined_flag=unsupported | ||
22324 | + always_export_symbols=yes | ||
22325 | + file_list_spec='@' | ||
22326 | + # Tell ltmain to make .lib files, not .a files. | ||
22327 | + libext=lib | ||
22328 | + # Tell ltmain to make .dll files, not .so files. | ||
22329 | + shrext_cmds=".dll" | ||
22330 | + # FIXME: Setting linknames here is a bad hack. | ||
22331 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
22332 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
22333 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
22334 | + else | ||
22335 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
22336 | + fi~ | ||
22337 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
22338 | + linknames=' | ||
22339 | + # The linker will not automatically build a static lib if we build a DLL. | ||
22340 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
22341 | + enable_shared_with_static_runtimes=yes | ||
22342 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
22343 | + # Don't use ranlib | ||
22344 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
22345 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
22346 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
22347 | + case $lt_outputfile in | ||
22348 | + *.exe|*.EXE) ;; | ||
22349 | + *) | ||
22350 | + lt_outputfile="$lt_outputfile.exe" | ||
22351 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
22352 | + ;; | ||
22353 | + esac~ | ||
22354 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
22355 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
22356 | + $RM "$lt_outputfile.manifest"; | ||
22357 | + fi' | ||
22358 | + ;; | ||
22359 | + *) | ||
22360 | + # Assume MSVC wrapper | ||
22361 | + hardcode_libdir_flag_spec=' ' | ||
22362 | + allow_undefined_flag=unsupported | ||
22363 | + # Tell ltmain to make .lib files, not .a files. | ||
22364 | + libext=lib | ||
22365 | + # Tell ltmain to make .dll files, not .so files. | ||
22366 | + shrext_cmds=".dll" | ||
22367 | + # FIXME: Setting linknames here is a bad hack. | ||
22368 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
22369 | + # The linker will automatically build a .lib file if we build a DLL. | ||
22370 | + old_archive_from_new_cmds='true' | ||
22371 | + # FIXME: Should let the user specify the lib program. | ||
22372 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
22373 | + enable_shared_with_static_runtimes=yes | ||
22374 | + ;; | ||
22375 | + esac | ||
22376 | ;; | ||
22377 | |||
22378 | darwin* | rhapsody*) | ||
22379 | @@ -8898,7 +9477,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22380 | |||
22381 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
22382 | freebsd* | dragonfly*) | ||
22383 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
22384 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
22385 | hardcode_libdir_flag_spec='-R$libdir' | ||
22386 | hardcode_direct=yes | ||
22387 | hardcode_shlibpath_var=no | ||
22388 | @@ -8906,7 +9485,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22389 | |||
22390 | hpux9*) | ||
22391 | if test "$GCC" = yes; then | ||
22392 | - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
22393 | + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
22394 | else | ||
22395 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
22396 | fi | ||
22397 | @@ -8922,7 +9501,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22398 | |||
22399 | hpux10*) | ||
22400 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
22401 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22402 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22403 | else | ||
22404 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
22405 | fi | ||
22406 | @@ -8946,10 +9525,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22407 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
22408 | ;; | ||
22409 | ia64*) | ||
22410 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
22411 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
22412 | ;; | ||
22413 | *) | ||
22414 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22415 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22416 | ;; | ||
22417 | esac | ||
22418 | else | ||
22419 | @@ -9028,26 +9607,39 @@ fi | ||
22420 | |||
22421 | irix5* | irix6* | nonstopux*) | ||
22422 | if test "$GCC" = yes; then | ||
22423 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
22424 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
22425 | # Try to use the -exported_symbol ld option, if it does not | ||
22426 | # work, assume that -exports_file does not work either and | ||
22427 | # implicitly export all symbols. | ||
22428 | - save_LDFLAGS="$LDFLAGS" | ||
22429 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
22430 | - if test x$gcc_no_link = xyes; then | ||
22431 | + # This should be the same for all languages, so no per-tag cache variable. | ||
22432 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
22433 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
22434 | +if ${lt_cv_irix_exported_symbol+:} false; then : | ||
22435 | + $as_echo_n "(cached) " >&6 | ||
22436 | +else | ||
22437 | + save_LDFLAGS="$LDFLAGS" | ||
22438 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
22439 | + if test x$gcc_no_link = xyes; then | ||
22440 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | ||
22441 | fi | ||
22442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22443 | /* end confdefs.h. */ | ||
22444 | -int foo(void) {} | ||
22445 | +int foo (void) { return 0; } | ||
22446 | _ACEOF | ||
22447 | if ac_fn_c_try_link "$LINENO"; then : | ||
22448 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
22449 | - | ||
22450 | + lt_cv_irix_exported_symbol=yes | ||
22451 | +else | ||
22452 | + lt_cv_irix_exported_symbol=no | ||
22453 | fi | ||
22454 | rm -f core conftest.err conftest.$ac_objext \ | ||
22455 | conftest$ac_exeext conftest.$ac_ext | ||
22456 | - LDFLAGS="$save_LDFLAGS" | ||
22457 | + LDFLAGS="$save_LDFLAGS" | ||
22458 | +fi | ||
22459 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
22460 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
22461 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
22462 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
22463 | + fi | ||
22464 | else | ||
22465 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
22466 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
22467 | @@ -9132,7 +9724,7 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
22468 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
22469 | if test "$GCC" = yes; then | ||
22470 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
22471 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
22472 | + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
22473 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
22474 | else | ||
22475 | allow_undefined_flag=' -expect_unresolved \*' | ||
22476 | @@ -9151,9 +9743,9 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
22477 | no_undefined_flag=' -z defs' | ||
22478 | if test "$GCC" = yes; then | ||
22479 | wlarc='${wl}' | ||
22480 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
22481 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
22482 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
22483 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
22484 | + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
22485 | else | ||
22486 | case `$CC -V 2>&1` in | ||
22487 | *"Compilers 5.0"*) | ||
22488 | @@ -9729,8 +10321,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
22489 | need_version=no | ||
22490 | need_lib_prefix=no | ||
22491 | |||
22492 | - case $GCC,$host_os in | ||
22493 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
22494 | + case $GCC,$cc_basename in | ||
22495 | + yes,*) | ||
22496 | + # gcc | ||
22497 | library_names_spec='$libname.dll.a' | ||
22498 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
22499 | postinstall_cmds='base_file=`basename \${file}`~ | ||
22500 | @@ -9763,13 +10356,71 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
22501 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
22502 | ;; | ||
22503 | esac | ||
22504 | + dynamic_linker='Win32 ld.exe' | ||
22505 | + ;; | ||
22506 | + | ||
22507 | + *,cl*) | ||
22508 | + # Native MSVC | ||
22509 | + libname_spec='$name' | ||
22510 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
22511 | + library_names_spec='${libname}.dll.lib' | ||
22512 | + | ||
22513 | + case $build_os in | ||
22514 | + mingw*) | ||
22515 | + sys_lib_search_path_spec= | ||
22516 | + lt_save_ifs=$IFS | ||
22517 | + IFS=';' | ||
22518 | + for lt_path in $LIB | ||
22519 | + do | ||
22520 | + IFS=$lt_save_ifs | ||
22521 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
22522 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
22523 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
22524 | + done | ||
22525 | + IFS=$lt_save_ifs | ||
22526 | + # Convert to MSYS style. | ||
22527 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
22528 | + ;; | ||
22529 | + cygwin*) | ||
22530 | + # Convert to unix form, then to dos form, then back to unix form | ||
22531 | + # but this time dos style (no spaces!) so that the unix form looks | ||
22532 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
22533 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
22534 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
22535 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
22536 | + ;; | ||
22537 | + *) | ||
22538 | + sys_lib_search_path_spec="$LIB" | ||
22539 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
22540 | + # It is most probably a Windows format PATH. | ||
22541 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
22542 | + else | ||
22543 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
22544 | + fi | ||
22545 | + # FIXME: find the short name or the path components, as spaces are | ||
22546 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
22547 | + ;; | ||
22548 | + esac | ||
22549 | + | ||
22550 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
22551 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
22552 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
22553 | + dldir=$destdir/`dirname \$dlpath`~ | ||
22554 | + test -d \$dldir || mkdir -p \$dldir~ | ||
22555 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
22556 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
22557 | + dlpath=$dir/\$dldll~ | ||
22558 | + $RM \$dlpath' | ||
22559 | + shlibpath_overrides_runpath=yes | ||
22560 | + dynamic_linker='Win32 link.exe' | ||
22561 | ;; | ||
22562 | |||
22563 | *) | ||
22564 | + # Assume MSVC wrapper | ||
22565 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
22566 | + dynamic_linker='Win32 ld.exe' | ||
22567 | ;; | ||
22568 | esac | ||
22569 | - dynamic_linker='Win32 ld.exe' | ||
22570 | # FIXME: first we should search . and the directory the executable is in | ||
22571 | shlibpath_var=PATH | ||
22572 | ;; | ||
22573 | @@ -9851,7 +10502,7 @@ haiku*) | ||
22574 | soname_spec='${libname}${release}${shared_ext}$major' | ||
22575 | shlibpath_var=LIBRARY_PATH | ||
22576 | shlibpath_overrides_runpath=yes | ||
22577 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | ||
22578 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
22579 | hardcode_into_libs=yes | ||
22580 | ;; | ||
22581 | |||
22582 | @@ -10665,7 +11316,7 @@ else | ||
22583 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
22584 | lt_status=$lt_dlunknown | ||
22585 | cat > conftest.$ac_ext <<_LT_EOF | ||
22586 | -#line 10668 "configure" | ||
22587 | +#line $LINENO "configure" | ||
22588 | #include "confdefs.h" | ||
22589 | |||
22590 | #if HAVE_DLFCN_H | ||
22591 | @@ -10709,10 +11360,10 @@ else | ||
22592 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
22593 | correspondingly for the symbols needed. */ | ||
22594 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
22595 | -void fnord () __attribute__((visibility("default"))); | ||
22596 | +int fnord () __attribute__((visibility("default"))); | ||
22597 | #endif | ||
22598 | |||
22599 | -void fnord () { int i=42; } | ||
22600 | +int fnord () { return 42; } | ||
22601 | int main () | ||
22602 | { | ||
22603 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
22604 | @@ -10771,7 +11422,7 @@ else | ||
22605 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
22606 | lt_status=$lt_dlunknown | ||
22607 | cat > conftest.$ac_ext <<_LT_EOF | ||
22608 | -#line 10774 "configure" | ||
22609 | +#line $LINENO "configure" | ||
22610 | #include "confdefs.h" | ||
22611 | |||
22612 | #if HAVE_DLFCN_H | ||
22613 | @@ -10815,10 +11466,10 @@ else | ||
22614 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
22615 | correspondingly for the symbols needed. */ | ||
22616 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
22617 | -void fnord () __attribute__((visibility("default"))); | ||
22618 | +int fnord () __attribute__((visibility("default"))); | ||
22619 | #endif | ||
22620 | |||
22621 | -void fnord () { int i=42; } | ||
22622 | +int fnord () { return 42; } | ||
22623 | int main () | ||
22624 | { | ||
22625 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
22626 | @@ -12288,13 +12939,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
22627 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
22628 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
22629 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
22630 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
22631 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
22632 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
22633 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
22634 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
22635 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
22636 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
22637 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
22638 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
22639 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
22640 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
22641 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
22642 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
22643 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
22644 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
22645 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
22646 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
22647 | @@ -12309,14 +12967,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de | ||
22648 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
22649 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
22650 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
22651 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
22652 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
22653 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
22654 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
22655 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
22656 | -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
22657 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
22658 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
22659 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
22660 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
22661 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
22662 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
22663 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
22664 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
22665 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
22666 | @@ -12349,12 +13010,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q | ||
22667 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
22668 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
22669 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
22670 | -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | ||
22671 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
22672 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
22673 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
22674 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
22675 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
22676 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
22677 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
22678 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
22679 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
22680 | @@ -12409,8 +13070,13 @@ reload_flag \ | ||
22681 | OBJDUMP \ | ||
22682 | deplibs_check_method \ | ||
22683 | file_magic_cmd \ | ||
22684 | +file_magic_glob \ | ||
22685 | +want_nocaseglob \ | ||
22686 | +DLLTOOL \ | ||
22687 | +sharedlib_from_linklib_cmd \ | ||
22688 | AR \ | ||
22689 | AR_FLAGS \ | ||
22690 | +archiver_list_spec \ | ||
22691 | STRIP \ | ||
22692 | RANLIB \ | ||
22693 | CC \ | ||
22694 | @@ -12420,12 +13086,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
22695 | lt_cv_sys_global_symbol_to_cdecl \ | ||
22696 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
22697 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
22698 | +nm_file_list_spec \ | ||
22699 | lt_prog_compiler_no_builtin_flag \ | ||
22700 | -lt_prog_compiler_wl \ | ||
22701 | lt_prog_compiler_pic \ | ||
22702 | +lt_prog_compiler_wl \ | ||
22703 | lt_prog_compiler_static \ | ||
22704 | lt_cv_prog_compiler_c_o \ | ||
22705 | need_locks \ | ||
22706 | +MANIFEST_TOOL \ | ||
22707 | DSYMUTIL \ | ||
22708 | NMEDIT \ | ||
22709 | LIPO \ | ||
22710 | @@ -12441,7 +13109,6 @@ no_undefined_flag \ | ||
22711 | hardcode_libdir_flag_spec \ | ||
22712 | hardcode_libdir_flag_spec_ld \ | ||
22713 | hardcode_libdir_separator \ | ||
22714 | -fix_srcfile_path \ | ||
22715 | exclude_expsyms \ | ||
22716 | include_expsyms \ | ||
22717 | file_list_spec \ | ||
22718 | @@ -12477,6 +13144,7 @@ module_cmds \ | ||
22719 | module_expsym_cmds \ | ||
22720 | export_symbols_cmds \ | ||
22721 | prelink_cmds \ | ||
22722 | +postlink_cmds \ | ||
22723 | postinstall_cmds \ | ||
22724 | postuninstall_cmds \ | ||
22725 | finish_cmds \ | ||
22726 | @@ -13075,7 +13743,8 @@ $as_echo X"$file" | | ||
22727 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
22728 | # | ||
22729 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
22730 | -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
22731 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
22732 | +# Inc. | ||
22733 | # Written by Gordon Matzigkeit, 1996 | ||
22734 | # | ||
22735 | # This file is part of GNU Libtool. | ||
22736 | @@ -13178,19 +13847,42 @@ SP2NL=$lt_lt_SP2NL | ||
22737 | # turn newlines into spaces. | ||
22738 | NL2SP=$lt_lt_NL2SP | ||
22739 | |||
22740 | +# convert \$build file names to \$host format. | ||
22741 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
22742 | + | ||
22743 | +# convert \$build files to toolchain format. | ||
22744 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
22745 | + | ||
22746 | # An object symbol dumper. | ||
22747 | OBJDUMP=$lt_OBJDUMP | ||
22748 | |||
22749 | # Method to check whether dependent libraries are shared objects. | ||
22750 | deplibs_check_method=$lt_deplibs_check_method | ||
22751 | |||
22752 | -# Command to use when deplibs_check_method == "file_magic". | ||
22753 | +# Command to use when deplibs_check_method = "file_magic". | ||
22754 | file_magic_cmd=$lt_file_magic_cmd | ||
22755 | |||
22756 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
22757 | +file_magic_glob=$lt_file_magic_glob | ||
22758 | + | ||
22759 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
22760 | +want_nocaseglob=$lt_want_nocaseglob | ||
22761 | + | ||
22762 | +# DLL creation program. | ||
22763 | +DLLTOOL=$lt_DLLTOOL | ||
22764 | + | ||
22765 | +# Command to associate shared and link libraries. | ||
22766 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
22767 | + | ||
22768 | # The archiver. | ||
22769 | AR=$lt_AR | ||
22770 | + | ||
22771 | +# Flags to create an archive. | ||
22772 | AR_FLAGS=$lt_AR_FLAGS | ||
22773 | |||
22774 | +# How to feed a file listing to the archiver. | ||
22775 | +archiver_list_spec=$lt_archiver_list_spec | ||
22776 | + | ||
22777 | # A symbol stripping program. | ||
22778 | STRIP=$lt_STRIP | ||
22779 | |||
22780 | @@ -13220,6 +13912,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
22781 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
22782 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
22783 | |||
22784 | +# Specify filename containing input files for \$NM. | ||
22785 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
22786 | + | ||
22787 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
22788 | +lt_sysroot=$lt_sysroot | ||
22789 | + | ||
22790 | # The name of the directory that contains temporary libtool files. | ||
22791 | objdir=$objdir | ||
22792 | |||
22793 | @@ -13229,6 +13927,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
22794 | # Must we lock files when doing compilation? | ||
22795 | need_locks=$lt_need_locks | ||
22796 | |||
22797 | +# Manifest tool. | ||
22798 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
22799 | + | ||
22800 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
22801 | DSYMUTIL=$lt_DSYMUTIL | ||
22802 | |||
22803 | @@ -13343,12 +14044,12 @@ with_gcc=$GCC | ||
22804 | # Compiler flag to turn off builtin functions. | ||
22805 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
22806 | |||
22807 | -# How to pass a linker flag through the compiler. | ||
22808 | -wl=$lt_lt_prog_compiler_wl | ||
22809 | - | ||
22810 | # Additional compiler flags for building library objects. | ||
22811 | pic_flag=$lt_lt_prog_compiler_pic | ||
22812 | |||
22813 | +# How to pass a linker flag through the compiler. | ||
22814 | +wl=$lt_lt_prog_compiler_wl | ||
22815 | + | ||
22816 | # Compiler flag to prevent dynamic linking. | ||
22817 | link_static_flag=$lt_lt_prog_compiler_static | ||
22818 | |||
22819 | @@ -13435,9 +14136,6 @@ inherit_rpath=$inherit_rpath | ||
22820 | # Whether libtool must link a program against all its dependency libraries. | ||
22821 | link_all_deplibs=$link_all_deplibs | ||
22822 | |||
22823 | -# Fix the shell variable \$srcfile for the compiler. | ||
22824 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
22825 | - | ||
22826 | # Set to "yes" if exported symbols are required. | ||
22827 | always_export_symbols=$always_export_symbols | ||
22828 | |||
22829 | @@ -13453,6 +14151,9 @@ include_expsyms=$lt_include_expsyms | ||
22830 | # Commands necessary for linking programs (against libraries) with templates. | ||
22831 | prelink_cmds=$lt_prelink_cmds | ||
22832 | |||
22833 | +# Commands necessary for finishing linking programs. | ||
22834 | +postlink_cmds=$lt_postlink_cmds | ||
22835 | + | ||
22836 | # Specify filename containing input files. | ||
22837 | file_list_spec=$lt_file_list_spec | ||
22838 | |||
22839 | @@ -13485,210 +14186,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
22840 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
22841 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
22842 | # is reportedly fixed, but why not run on old versions too? | ||
22843 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
22844 | - || (rm -f "$cfgfile"; exit 1) | ||
22845 | - | ||
22846 | - case $xsi_shell in | ||
22847 | - yes) | ||
22848 | - cat << \_LT_EOF >> "$cfgfile" | ||
22849 | - | ||
22850 | -# func_dirname file append nondir_replacement | ||
22851 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
22852 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
22853 | -func_dirname () | ||
22854 | -{ | ||
22855 | - case ${1} in | ||
22856 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
22857 | - * ) func_dirname_result="${3}" ;; | ||
22858 | - esac | ||
22859 | -} | ||
22860 | - | ||
22861 | -# func_basename file | ||
22862 | -func_basename () | ||
22863 | -{ | ||
22864 | - func_basename_result="${1##*/}" | ||
22865 | -} | ||
22866 | - | ||
22867 | -# func_dirname_and_basename file append nondir_replacement | ||
22868 | -# perform func_basename and func_dirname in a single function | ||
22869 | -# call: | ||
22870 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
22871 | -# add APPEND to the result, otherwise set result | ||
22872 | -# to NONDIR_REPLACEMENT. | ||
22873 | -# value returned in "$func_dirname_result" | ||
22874 | -# basename: Compute filename of FILE. | ||
22875 | -# value retuned in "$func_basename_result" | ||
22876 | -# Implementation must be kept synchronized with func_dirname | ||
22877 | -# and func_basename. For efficiency, we do not delegate to | ||
22878 | -# those functions but instead duplicate the functionality here. | ||
22879 | -func_dirname_and_basename () | ||
22880 | -{ | ||
22881 | - case ${1} in | ||
22882 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
22883 | - * ) func_dirname_result="${3}" ;; | ||
22884 | - esac | ||
22885 | - func_basename_result="${1##*/}" | ||
22886 | -} | ||
22887 | - | ||
22888 | -# func_stripname prefix suffix name | ||
22889 | -# strip PREFIX and SUFFIX off of NAME. | ||
22890 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
22891 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
22892 | -# dot (in which case that matches only a dot). | ||
22893 | -func_stripname () | ||
22894 | -{ | ||
22895 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
22896 | - # positional parameters, so assign one to ordinary parameter first. | ||
22897 | - func_stripname_result=${3} | ||
22898 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
22899 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
22900 | -} | ||
22901 | - | ||
22902 | -# func_opt_split | ||
22903 | -func_opt_split () | ||
22904 | -{ | ||
22905 | - func_opt_split_opt=${1%%=*} | ||
22906 | - func_opt_split_arg=${1#*=} | ||
22907 | -} | ||
22908 | - | ||
22909 | -# func_lo2o object | ||
22910 | -func_lo2o () | ||
22911 | -{ | ||
22912 | - case ${1} in | ||
22913 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
22914 | - *) func_lo2o_result=${1} ;; | ||
22915 | - esac | ||
22916 | -} | ||
22917 | - | ||
22918 | -# func_xform libobj-or-source | ||
22919 | -func_xform () | ||
22920 | -{ | ||
22921 | - func_xform_result=${1%.*}.lo | ||
22922 | -} | ||
22923 | - | ||
22924 | -# func_arith arithmetic-term... | ||
22925 | -func_arith () | ||
22926 | -{ | ||
22927 | - func_arith_result=$(( $* )) | ||
22928 | -} | ||
22929 | - | ||
22930 | -# func_len string | ||
22931 | -# STRING may not start with a hyphen. | ||
22932 | -func_len () | ||
22933 | -{ | ||
22934 | - func_len_result=${#1} | ||
22935 | -} | ||
22936 | - | ||
22937 | -_LT_EOF | ||
22938 | - ;; | ||
22939 | - *) # Bourne compatible functions. | ||
22940 | - cat << \_LT_EOF >> "$cfgfile" | ||
22941 | - | ||
22942 | -# func_dirname file append nondir_replacement | ||
22943 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
22944 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
22945 | -func_dirname () | ||
22946 | -{ | ||
22947 | - # Extract subdirectory from the argument. | ||
22948 | - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
22949 | - if test "X$func_dirname_result" = "X${1}"; then | ||
22950 | - func_dirname_result="${3}" | ||
22951 | - else | ||
22952 | - func_dirname_result="$func_dirname_result${2}" | ||
22953 | - fi | ||
22954 | -} | ||
22955 | - | ||
22956 | -# func_basename file | ||
22957 | -func_basename () | ||
22958 | -{ | ||
22959 | - func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
22960 | -} | ||
22961 | - | ||
22962 | - | ||
22963 | -# func_stripname prefix suffix name | ||
22964 | -# strip PREFIX and SUFFIX off of NAME. | ||
22965 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
22966 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
22967 | -# dot (in which case that matches only a dot). | ||
22968 | -# func_strip_suffix prefix name | ||
22969 | -func_stripname () | ||
22970 | -{ | ||
22971 | - case ${2} in | ||
22972 | - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
22973 | - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
22974 | - esac | ||
22975 | -} | ||
22976 | - | ||
22977 | -# sed scripts: | ||
22978 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
22979 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
22980 | - | ||
22981 | -# func_opt_split | ||
22982 | -func_opt_split () | ||
22983 | -{ | ||
22984 | - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | ||
22985 | - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | ||
22986 | -} | ||
22987 | - | ||
22988 | -# func_lo2o object | ||
22989 | -func_lo2o () | ||
22990 | -{ | ||
22991 | - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
22992 | -} | ||
22993 | - | ||
22994 | -# func_xform libobj-or-source | ||
22995 | -func_xform () | ||
22996 | -{ | ||
22997 | - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
22998 | -} | ||
22999 | - | ||
23000 | -# func_arith arithmetic-term... | ||
23001 | -func_arith () | ||
23002 | -{ | ||
23003 | - func_arith_result=`expr "$@"` | ||
23004 | -} | ||
23005 | - | ||
23006 | -# func_len string | ||
23007 | -# STRING may not start with a hyphen. | ||
23008 | -func_len () | ||
23009 | -{ | ||
23010 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
23011 | -} | ||
23012 | - | ||
23013 | -_LT_EOF | ||
23014 | -esac | ||
23015 | - | ||
23016 | -case $lt_shell_append in | ||
23017 | - yes) | ||
23018 | - cat << \_LT_EOF >> "$cfgfile" | ||
23019 | - | ||
23020 | -# func_append var value | ||
23021 | -# Append VALUE to the end of shell variable VAR. | ||
23022 | -func_append () | ||
23023 | -{ | ||
23024 | - eval "$1+=\$2" | ||
23025 | -} | ||
23026 | -_LT_EOF | ||
23027 | - ;; | ||
23028 | - *) | ||
23029 | - cat << \_LT_EOF >> "$cfgfile" | ||
23030 | - | ||
23031 | -# func_append var value | ||
23032 | -# Append VALUE to the end of shell variable VAR. | ||
23033 | -func_append () | ||
23034 | -{ | ||
23035 | - eval "$1=\$$1\$2" | ||
23036 | -} | ||
23037 | - | ||
23038 | -_LT_EOF | ||
23039 | - ;; | ||
23040 | - esac | ||
23041 | - | ||
23042 | - | ||
23043 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
23044 | - || (rm -f "$cfgfile"; exit 1) | ||
23045 | - | ||
23046 | - mv -f "$cfgfile" "$ofile" || | ||
23047 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
23048 | + || (rm -f "$cfgfile"; exit 1) | ||
23049 | + | ||
23050 | + if test x"$xsi_shell" = xyes; then | ||
23051 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
23052 | +func_dirname ()\ | ||
23053 | +{\ | ||
23054 | +\ case ${1} in\ | ||
23055 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
23056 | +\ * ) func_dirname_result="${3}" ;;\ | ||
23057 | +\ esac\ | ||
23058 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23059 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23060 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23061 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23062 | + | ||
23063 | + | ||
23064 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
23065 | +func_basename ()\ | ||
23066 | +{\ | ||
23067 | +\ func_basename_result="${1##*/}"\ | ||
23068 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23069 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23070 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23071 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23072 | + | ||
23073 | + | ||
23074 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
23075 | +func_dirname_and_basename ()\ | ||
23076 | +{\ | ||
23077 | +\ case ${1} in\ | ||
23078 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
23079 | +\ * ) func_dirname_result="${3}" ;;\ | ||
23080 | +\ esac\ | ||
23081 | +\ func_basename_result="${1##*/}"\ | ||
23082 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23083 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23084 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23085 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23086 | + | ||
23087 | + | ||
23088 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
23089 | +func_stripname ()\ | ||
23090 | +{\ | ||
23091 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
23092 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
23093 | +\ func_stripname_result=${3}\ | ||
23094 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
23095 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
23096 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23097 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23098 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23099 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23100 | + | ||
23101 | + | ||
23102 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
23103 | +func_split_long_opt ()\ | ||
23104 | +{\ | ||
23105 | +\ func_split_long_opt_name=${1%%=*}\ | ||
23106 | +\ func_split_long_opt_arg=${1#*=}\ | ||
23107 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23108 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23109 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23110 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23111 | + | ||
23112 | + | ||
23113 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
23114 | +func_split_short_opt ()\ | ||
23115 | +{\ | ||
23116 | +\ func_split_short_opt_arg=${1#??}\ | ||
23117 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
23118 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23119 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23120 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23121 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23122 | + | ||
23123 | + | ||
23124 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
23125 | +func_lo2o ()\ | ||
23126 | +{\ | ||
23127 | +\ case ${1} in\ | ||
23128 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
23129 | +\ *) func_lo2o_result=${1} ;;\ | ||
23130 | +\ esac\ | ||
23131 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23132 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23133 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23134 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23135 | + | ||
23136 | + | ||
23137 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
23138 | +func_xform ()\ | ||
23139 | +{\ | ||
23140 | + func_xform_result=${1%.*}.lo\ | ||
23141 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23142 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23143 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23144 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23145 | + | ||
23146 | + | ||
23147 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
23148 | +func_arith ()\ | ||
23149 | +{\ | ||
23150 | + func_arith_result=$(( $* ))\ | ||
23151 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23152 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23153 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23154 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23155 | + | ||
23156 | + | ||
23157 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
23158 | +func_len ()\ | ||
23159 | +{\ | ||
23160 | + func_len_result=${#1}\ | ||
23161 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23162 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23163 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23164 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23165 | + | ||
23166 | +fi | ||
23167 | + | ||
23168 | +if test x"$lt_shell_append" = xyes; then | ||
23169 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
23170 | +func_append ()\ | ||
23171 | +{\ | ||
23172 | + eval "${1}+=\\${2}"\ | ||
23173 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23174 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23175 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23176 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23177 | + | ||
23178 | + | ||
23179 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
23180 | +func_append_quoted ()\ | ||
23181 | +{\ | ||
23182 | +\ func_quote_for_eval "${2}"\ | ||
23183 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
23184 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23185 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23186 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23187 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23188 | + | ||
23189 | + | ||
23190 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
23191 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
23192 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23193 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23194 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
23195 | +else | ||
23196 | + # Save a `func_append' function call even when '+=' is not available | ||
23197 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
23198 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23199 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23200 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
23201 | +fi | ||
23202 | + | ||
23203 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
23204 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
23205 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
23206 | +fi | ||
23207 | + | ||
23208 | + | ||
23209 | + mv -f "$cfgfile" "$ofile" || | ||
23210 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
23211 | chmod +x "$ofile" | ||
23212 | |||