diff options
25 files changed, 0 insertions, 32560 deletions
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/110-arm-eabi-conf.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/110-arm-eabi-conf.patch deleted file mode 100644 index eace3e998..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/110-arm-eabi-conf.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | --- /tmp/configure.ac 2008-06-22 14:14:59.000000000 +0200 | ||
2 | +++ binutils-2.18.50.0.7/configure.ac 2008-06-22 14:15:30.000000000 +0200 | ||
3 | @@ -561,7 +561,7 @@ | ||
4 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" | ||
5 | libgloss_dir=arm | ||
6 | ;; | ||
7 | - arm*-*-linux-gnueabi) | ||
8 | + arm*-*-linux-gnueabi | arm*-*-linux-uclibceabi) | ||
9 | noconfigdirs="$noconfigdirs target-qthreads" | ||
10 | noconfigdirs="$noconfigdirs target-libobjc" | ||
11 | case ${with_newlib} in | ||
12 | --- /tmp/configure 2008-06-22 14:17:11.000000000 +0200 | ||
13 | +++ binutils-2.18.50.0.7/configure 2008-06-22 14:17:56.000000000 +0200 | ||
14 | @@ -2307,7 +2307,7 @@ | ||
15 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" | ||
16 | libgloss_dir=arm | ||
17 | ;; | ||
18 | - arm*-*-linux-gnueabi) | ||
19 | + arm*-*-linux-gnueabi | arm*-*-linux-uclibceabi) | ||
20 | noconfigdirs="$noconfigdirs target-qthreads" | ||
21 | noconfigdirs="$noconfigdirs target-libobjc" | ||
22 | case ${with_newlib} in | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/152_arm_branches_to_weak_symbols.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/152_arm_branches_to_weak_symbols.patch deleted file mode 100644 index 48523f889..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/152_arm_branches_to_weak_symbols.patch +++ /dev/null | |||
@@ -1,240 +0,0 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 152_arm_branches_to_weak_symbols.dpatch | ||
3 | ## | ||
4 | ## DP: Description: http://sourceware.org/ml/binutils/2010-04/msg00446.html | ||
5 | ## DP: Description: taken from the trunk | ||
6 | |||
7 | if [ $# -ne 1 ]; then | ||
8 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
9 | exit 1 | ||
10 | fi | ||
11 | |||
12 | [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts | ||
13 | patch_opts="${patch_opts:--f --no-backup-if-mismatch}" | ||
14 | |||
15 | case "$1" in | ||
16 | -patch) patch $patch_opts -p0 < $0;; | ||
17 | -unpatch) patch $patch_opts -p0 -R < $0;; | ||
18 | *) | ||
19 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
20 | exit 1;; | ||
21 | esac | ||
22 | |||
23 | exit 0 | ||
24 | |||
25 | gas/ | ||
26 | |||
27 | 2010-05-04 Nick Clifton <nickc@redhat.com> | ||
28 | |||
29 | * write.c (fixup_segment): Revert previous delta. | ||
30 | * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Also force the | ||
31 | generation of relocations for fixups against weak symbols. | ||
32 | |||
33 | 2010-04-29 Nathan Sidwell <nathan@codesourcery.com> | ||
34 | |||
35 | * write.c (fixup_segment): Do not assume we know the section a | ||
36 | defined weak symbol is in. | ||
37 | * config/tc-arm.c (relax_adr, relax_branch, md_apply_fix): Treat | ||
38 | weak symbols as not known to be in the same section, even if they | ||
39 | are defined. | ||
40 | |||
41 | gas/testsuite/ | ||
42 | |||
43 | 2010-04-29 Nathan Sidwell <nathan@codesourcery.com> | ||
44 | |||
45 | * gas/arm/weakdef-1.s: New. | ||
46 | * gas/arm/weakdef-1.d: New. | ||
47 | * gas/arm/weakdef-2.s: New. | ||
48 | * gas/arm/weakdef-2.d: New. | ||
49 | * gas/arm/weakdef-2.l: New. | ||
50 | |||
51 | @DPATCH@ | ||
52 | diff -urN gas.orig/config/tc-arm.c gas/config/tc-arm.c | ||
53 | --- a/gas/config/tc-arm.c 2010-02-22 08:06:52.000000000 +0000 | ||
54 | +++ b/gas/config/tc-arm.c 2010-05-06 12:52:25.391085365 +0000 | ||
55 | @@ -18207,7 +18207,8 @@ | ||
56 | |||
57 | /* Assume worst case for symbols not known to be in the same section. */ | ||
58 | if (!S_IS_DEFINED (fragp->fr_symbol) | ||
59 | - || sec != S_GET_SEGMENT (fragp->fr_symbol)) | ||
60 | + || sec != S_GET_SEGMENT (fragp->fr_symbol) | ||
61 | + || S_IS_WEAK (fragp->fr_symbol)) | ||
62 | return 4; | ||
63 | |||
64 | val = relaxed_symbol_addr (fragp, stretch); | ||
65 | @@ -18250,7 +18251,8 @@ | ||
66 | |||
67 | /* Assume worst case for symbols not known to be in the same section. */ | ||
68 | if (!S_IS_DEFINED (fragp->fr_symbol) | ||
69 | - || sec != S_GET_SEGMENT (fragp->fr_symbol)) | ||
70 | + || sec != S_GET_SEGMENT (fragp->fr_symbol) | ||
71 | + || S_IS_WEAK (fragp->fr_symbol)) | ||
72 | return 4; | ||
73 | |||
74 | #ifdef OBJ_ELF | ||
75 | @@ -19463,22 +19465,23 @@ | ||
76 | not have a reloc for it, so tc_gen_reloc will reject it. */ | ||
77 | fixP->fx_done = 1; | ||
78 | |||
79 | - if (fixP->fx_addsy | ||
80 | - && ! S_IS_DEFINED (fixP->fx_addsy)) | ||
81 | + if (fixP->fx_addsy) | ||
82 | { | ||
83 | - as_bad_where (fixP->fx_file, fixP->fx_line, | ||
84 | - _("undefined symbol %s used as an immediate value"), | ||
85 | - S_GET_NAME (fixP->fx_addsy)); | ||
86 | - break; | ||
87 | - } | ||
88 | + const char *msg = 0; | ||
89 | |||
90 | - if (fixP->fx_addsy | ||
91 | - && S_GET_SEGMENT (fixP->fx_addsy) != seg) | ||
92 | - { | ||
93 | - as_bad_where (fixP->fx_file, fixP->fx_line, | ||
94 | - _("symbol %s is in a different section"), | ||
95 | - S_GET_NAME (fixP->fx_addsy)); | ||
96 | - break; | ||
97 | + if (! S_IS_DEFINED (fixP->fx_addsy)) | ||
98 | + msg = _("undefined symbol %s used as an immediate value"); | ||
99 | + else if (S_GET_SEGMENT (fixP->fx_addsy) != seg) | ||
100 | + msg = _("symbol %s is in a different section"); | ||
101 | + else if (S_IS_WEAK (fixP->fx_addsy)) | ||
102 | + msg = _("symbol %s is weak and may be overridden later"); | ||
103 | + | ||
104 | + if (msg) | ||
105 | + { | ||
106 | + as_bad_where (fixP->fx_file, fixP->fx_line, | ||
107 | + msg, S_GET_NAME (fixP->fx_addsy)); | ||
108 | + break; | ||
109 | + } | ||
110 | } | ||
111 | |||
112 | newimm = encode_arm_immediate (value); | ||
113 | @@ -19504,24 +19507,25 @@ | ||
114 | unsigned int highpart = 0; | ||
115 | unsigned int newinsn = 0xe1a00000; /* nop. */ | ||
116 | |||
117 | - if (fixP->fx_addsy | ||
118 | - && ! S_IS_DEFINED (fixP->fx_addsy)) | ||
119 | + if (fixP->fx_addsy) | ||
120 | { | ||
121 | - as_bad_where (fixP->fx_file, fixP->fx_line, | ||
122 | - _("undefined symbol %s used as an immediate value"), | ||
123 | - S_GET_NAME (fixP->fx_addsy)); | ||
124 | - break; | ||
125 | - } | ||
126 | + const char *msg = 0; | ||
127 | |||
128 | - if (fixP->fx_addsy | ||
129 | - && S_GET_SEGMENT (fixP->fx_addsy) != seg) | ||
130 | - { | ||
131 | - as_bad_where (fixP->fx_file, fixP->fx_line, | ||
132 | - _("symbol %s is in a different section"), | ||
133 | - S_GET_NAME (fixP->fx_addsy)); | ||
134 | - break; | ||
135 | + if (! S_IS_DEFINED (fixP->fx_addsy)) | ||
136 | + msg = _("undefined symbol %s used as an immediate value"); | ||
137 | + else if (S_GET_SEGMENT (fixP->fx_addsy) != seg) | ||
138 | + msg = _("symbol %s is in a different section"); | ||
139 | + else if (S_IS_WEAK (fixP->fx_addsy)) | ||
140 | + msg = _("symbol %s is weak and may be overridden later"); | ||
141 | + | ||
142 | + if (msg) | ||
143 | + { | ||
144 | + as_bad_where (fixP->fx_file, fixP->fx_line, | ||
145 | + msg, S_GET_NAME (fixP->fx_addsy)); | ||
146 | + break; | ||
147 | + } | ||
148 | } | ||
149 | - | ||
150 | + | ||
151 | newimm = encode_arm_immediate (value); | ||
152 | temp = md_chars_to_number (buf, INSN_SIZE); | ||
153 | |||
154 | diff -urN gas.orig/config/tc-arm.h gas/config/tc-arm.h | ||
155 | --- a/gas/config/tc-arm.h 2009-09-01 00:24:01.000000000 +0000 | ||
156 | +++ b/gas/config/tc-arm.h 2010-05-06 12:53:42.784835970 +0000 | ||
157 | @@ -183,6 +183,7 @@ | ||
158 | (!(FIX)->fx_pcrel \ | ||
159 | || (FIX)->fx_r_type == BFD_RELOC_ARM_GOT32 \ | ||
160 | || (FIX)->fx_r_type == BFD_RELOC_32 \ | ||
161 | + || ((FIX)->fx_addsy != NULL && S_IS_WEAK ((FIX)->fx_addsy)) \ | ||
162 | || TC_FORCE_RELOCATION (FIX)) | ||
163 | |||
164 | /* Force output of R_ARM_REL32 relocations against thumb function symbols. | ||
165 | diff -urN gas.orig/testsuite/gas/arm/weakdef-1.d gas/testsuite/gas/arm/weakdef-1.d | ||
166 | --- a/gas/testsuite/gas/arm/weakdef-1.d 1970-01-01 00:00:00.000000000 +0000 | ||
167 | +++ b/gas/testsuite/gas/arm/weakdef-1.d 2010-05-06 12:52:25.391085365 +0000 | ||
168 | @@ -0,0 +1,20 @@ | ||
169 | +# name: Thumb branch to weak | ||
170 | +# as: | ||
171 | +# objdump: -dr | ||
172 | +# This test is only valid on ELF based ports. | ||
173 | +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* | ||
174 | + | ||
175 | +.*: +file format .*arm.* | ||
176 | + | ||
177 | + | ||
178 | +Disassembly of section .text: | ||
179 | + | ||
180 | +0+000 <Weak>: | ||
181 | + 0: e7fe b.n 2 <Strong> | ||
182 | + 0: R_ARM_THM_JUMP11 Strong | ||
183 | + | ||
184 | +0+002 <Strong>: | ||
185 | + 2: f7ff bffe b.w 0 <Random> | ||
186 | + 2: R_ARM_THM_JUMP24 Random | ||
187 | + 6: f7ff bffe b.w 0 <Weak> | ||
188 | + 6: R_ARM_THM_JUMP24 Weak | ||
189 | diff -urN gas.orig/testsuite/gas/arm/weakdef-1.s gas/testsuite/gas/arm/weakdef-1.s | ||
190 | --- a/gas/testsuite/gas/arm/weakdef-1.s 1970-01-01 00:00:00.000000000 +0000 | ||
191 | +++ b/gas/testsuite/gas/arm/weakdef-1.s 2010-05-06 12:52:25.391085365 +0000 | ||
192 | @@ -0,0 +1,18 @@ | ||
193 | + .syntax unified | ||
194 | + .text | ||
195 | + .thumb | ||
196 | + | ||
197 | + .globl Weak | ||
198 | + .weak Weak | ||
199 | + .thumb_func | ||
200 | + .type Weak, %function | ||
201 | +Weak: | ||
202 | + b Strong | ||
203 | + .size Weak, .-Weak | ||
204 | + | ||
205 | + .globl Strong | ||
206 | + .type Strong, %function | ||
207 | +Strong: | ||
208 | + b Random | ||
209 | + b Weak | ||
210 | + .size Strong, .-Strong | ||
211 | diff -urN gas.orig/testsuite/gas/arm/weakdef-2.d gas/testsuite/gas/arm/weakdef-2.d | ||
212 | --- a/gas/testsuite/gas/arm/weakdef-2.d 1970-01-01 00:00:00.000000000 +0000 | ||
213 | +++ b/gas/testsuite/gas/arm/weakdef-2.d 2010-05-06 12:52:25.391085365 +0000 | ||
214 | @@ -0,0 +1,5 @@ | ||
215 | +# name: adr of weak | ||
216 | +# as: | ||
217 | +# error-output: weakdef-2.l | ||
218 | +# This test is only valid on ELF based ports. | ||
219 | +#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* | ||
220 | diff -urN gas.orig/testsuite/gas/arm/weakdef-2.l gas/testsuite/gas/arm/weakdef-2.l | ||
221 | --- a/gas/testsuite/gas/arm/weakdef-2.l 1970-01-01 00:00:00.000000000 +0000 | ||
222 | +++ b/gas/testsuite/gas/arm/weakdef-2.l 2010-05-06 12:52:25.391085365 +0000 | ||
223 | @@ -0,0 +1,3 @@ | ||
224 | +[^:]*: Assembler messages: | ||
225 | +[^:]*:9: Error: symbol Weak is weak and may be overridden later | ||
226 | +[^:]*:10: Error: symbol Weak is weak and may be overridden later | ||
227 | diff -urN gas.orig/testsuite/gas/arm/weakdef-2.s gas/testsuite/gas/arm/weakdef-2.s | ||
228 | --- a/gas/testsuite/gas/arm/weakdef-2.s 1970-01-01 00:00:00.000000000 +0000 | ||
229 | +++ b/gas/testsuite/gas/arm/weakdef-2.s 2010-05-06 12:52:25.391085365 +0000 | ||
230 | @@ -0,0 +1,10 @@ | ||
231 | + .syntax unified | ||
232 | + .text | ||
233 | + .globl Strong | ||
234 | +Strong: | ||
235 | + adrl r0,Strong | ||
236 | + adr r0,Strong | ||
237 | + .globl Weak | ||
238 | + .weak Weak | ||
239 | +Weak: adrl r0,Weak | ||
240 | + adr r0,Weak | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/200_elflink_%B_fixes.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/200_elflink_%B_fixes.patch deleted file mode 100644 index ac8168574..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/200_elflink_%B_fixes.patch +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
2 | ## 200_elflink_%B_fixes.dpatch by <kirr@landau.phys.spbu.ru> | ||
3 | ## | ||
4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
5 | ## DP: Description: Fixes several msgs; needed for later elflink patches | ||
6 | ## DP: Upstream status: submitted upstream for binutils-2_20-branch | ||
7 | |||
8 | 2010-08-07 Kirill Smelkov <kirr@landau.phys.spbu.ru> | ||
9 | |||
10 | Backport from mainline: | ||
11 | 2009-10-12 Roland McGrath <roland@frob.com> | ||
12 | |||
13 | * elflink.c (elf_link_add_object_symbols, _bfd_elf_merge_symbol): | ||
14 | Fix %s that should be %B in several message formats. | ||
15 | |||
16 | @DPATCH@ | ||
17 | diff --git a/bfd/elflink.c b/bfd/elflink.c | ||
18 | index c42c6e1..4a348de 100644 | ||
19 | --- a/bfd/elflink.c | ||
20 | +++ b/bfd/elflink.c | ||
21 | @@ -1110,19 +1110,19 @@ _bfd_elf_merge_symbol (bfd *abfd, | ||
22 | |||
23 | if (tdef && ntdef) | ||
24 | (*_bfd_error_handler) | ||
25 | - (_("%s: TLS definition in %B section %A mismatches non-TLS definition in %B section %A"), | ||
26 | + (_("%B: TLS definition in %B section %A mismatches non-TLS definition in %B section %A"), | ||
27 | tbfd, tsec, ntbfd, ntsec, h->root.root.string); | ||
28 | else if (!tdef && !ntdef) | ||
29 | (*_bfd_error_handler) | ||
30 | - (_("%s: TLS reference in %B mismatches non-TLS reference in %B"), | ||
31 | + (_("%B: TLS reference in %B mismatches non-TLS reference in %B"), | ||
32 | tbfd, ntbfd, h->root.root.string); | ||
33 | else if (tdef) | ||
34 | (*_bfd_error_handler) | ||
35 | - (_("%s: TLS definition in %B section %A mismatches non-TLS reference in %B"), | ||
36 | + (_("%B: TLS definition in %B section %A mismatches non-TLS reference in %B"), | ||
37 | tbfd, tsec, ntbfd, h->root.root.string); | ||
38 | else | ||
39 | (*_bfd_error_handler) | ||
40 | - (_("%s: TLS reference in %B mismatches non-TLS definition in %B section %A"), | ||
41 | + (_("%B: TLS reference in %B mismatches non-TLS definition in %B section %A"), | ||
42 | tbfd, ntbfd, ntsec, h->root.root.string); | ||
43 | |||
44 | bfd_set_error (bfd_error_bad_value); | ||
45 | @@ -4437,7 +4437,7 @@ error_free_dyn: | ||
46 | if ((elf_dyn_lib_class (abfd) & DYN_NO_NEEDED) != 0) | ||
47 | { | ||
48 | (*_bfd_error_handler) | ||
49 | - (_("%s: invalid DSO for symbol `%s' definition"), | ||
50 | + (_("%B: invalid DSO for symbol `%s' definition"), | ||
51 | abfd, name); | ||
52 | bfd_set_error (bfd_error_bad_value); | ||
53 | goto error_free_vers; | ||
54 | @@ -12495,7 +12495,7 @@ _bfd_elf_get_dynamic_reloc_section (bfd * abfd, | ||
55 | section does not exist it is created and attached to the DYNOBJ | ||
56 | bfd and stored in the SRELOC field of SEC's elf_section_data | ||
57 | structure. | ||
58 | - | ||
59 | + | ||
60 | ALIGNMENT is the alignment for the newly created section and | ||
61 | IS_RELA defines whether the name should be .rela.<SEC's name> | ||
62 | or .rel.<SEC's name>. The section name is looked up in the | ||
63 | -- | ||
64 | 1.7.2.1.44.g721e7 | ||
65 | |||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/201_elflink_improve_noaddneeded_errors.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/201_elflink_improve_noaddneeded_errors.patch deleted file mode 100644 index 85675a3d9..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/201_elflink_improve_noaddneeded_errors.patch +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
2 | ## 201_elflink_improve_errors.dpatch by <kirr@landau.phys.spbu.ru> | ||
3 | ## | ||
4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
5 | ## DP: Improves error messages regarding -no-add-needed cases; needed for | ||
6 | ## DP: later elflink patches | ||
7 | ## DP: Upstream status: submitted upstream for binutils-2_20-branch | ||
8 | |||
9 | 2010-08-07 Kirill Smelkov <kirr@landau.phys.spbu.ru> | ||
10 | |||
11 | Backport from mainline: | ||
12 | 2009-11-05 Nick Clifton <nickc@redhat.com> | ||
13 | |||
14 | * elflink.c (elf_link_add_object_symbols): Improve error | ||
15 | message generated when a symbol is left unresolved because a | ||
16 | --no-add-needed command line option has prevented the | ||
17 | inclusion of the DSO defining it. | ||
18 | |||
19 | @DPATCH@ | ||
20 | diff --git a/bfd/elflink.c b/bfd/elflink.c | ||
21 | index 4a348de..10eee8c 100644 | ||
22 | --- a/bfd/elflink.c | ||
23 | +++ b/bfd/elflink.c | ||
24 | @@ -3866,6 +3866,7 @@ error_free_dyn: | ||
25 | bfd_boolean common; | ||
26 | unsigned int old_alignment; | ||
27 | bfd *old_bfd; | ||
28 | + bfd * undef_bfd = NULL; | ||
29 | |||
30 | override = FALSE; | ||
31 | |||
32 | @@ -4097,6 +4098,20 @@ error_free_dyn: | ||
33 | name = newname; | ||
34 | } | ||
35 | |||
36 | + /* If this is a definition of a previously undefined symbol | ||
37 | + make a note of the bfd that contained the reference in | ||
38 | + case we need to refer to it later on in error messages. */ | ||
39 | + if (! bfd_is_und_section (sec)) | ||
40 | + { | ||
41 | + h = elf_link_hash_lookup (elf_hash_table (info), name, FALSE, FALSE, FALSE); | ||
42 | + | ||
43 | + if (h != NULL | ||
44 | + && (h->root.type == bfd_link_hash_undefined | ||
45 | + || h->root.type == bfd_link_hash_undefweak) | ||
46 | + && h->root.u.undef.abfd) | ||
47 | + undef_bfd = h->root.u.undef.abfd; | ||
48 | + } | ||
49 | + | ||
50 | if (!_bfd_elf_merge_symbol (abfd, info, name, isym, &sec, | ||
51 | &value, &old_alignment, | ||
52 | sym_hash, &skip, &override, | ||
53 | @@ -4437,9 +4452,12 @@ error_free_dyn: | ||
54 | if ((elf_dyn_lib_class (abfd) & DYN_NO_NEEDED) != 0) | ||
55 | { | ||
56 | (*_bfd_error_handler) | ||
57 | - (_("%B: invalid DSO for symbol `%s' definition"), | ||
58 | + (_("%B: undefined reference to symbol '%s'"), | ||
59 | + undef_bfd == NULL ? info->output_bfd : undef_bfd, name); | ||
60 | + (*_bfd_error_handler) | ||
61 | + (_("note: '%s' is defined in DSO %B so try adding it to the linker command line"), | ||
62 | abfd, name); | ||
63 | - bfd_set_error (bfd_error_bad_value); | ||
64 | + bfd_set_error (bfd_error_invalid_operation); | ||
65 | goto error_free_vers; | ||
66 | } | ||
67 | |||
68 | -- | ||
69 | 1.7.2.1.44.g721e7 | ||
70 | |||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/202_elflink_noaddneeded_vs_weak.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/202_elflink_noaddneeded_vs_weak.patch deleted file mode 100644 index a7dbc7ad8..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/202_elflink_noaddneeded_vs_weak.patch +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
2 | ## 202_elflink_noaddneeded_vs_weak.dpatch by <kirr@landau.phys.spbu.ru> | ||
3 | ## | ||
4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
5 | ## DP: Fixes '-no-add-needed breaks linking with weak symbols' | ||
6 | ## DP: Upstream status: submitted upstream for binutils-2_20-branch | ||
7 | |||
8 | |||
9 | 2010-08-07 Kirill Smelkov <kirr@landau.phys.spbu.ru> | ||
10 | |||
11 | Backport from mainline: | ||
12 | 2010-01-21 Nick Clifton <nickc@redhat.com> | ||
13 | |||
14 | * elflink.c (elf_link_add_object_symbols): Look up name of | ||
15 | undefined symbol both before and after versioning has been | ||
16 | applied. Do not bother with symbols that are weakly undefined. | ||
17 | |||
18 | |||
19 | @DPATCH@ | ||
20 | diff --git a/bfd/elflink.c b/bfd/elflink.c | ||
21 | index 10eee8c..e058064 100644 | ||
22 | --- a/bfd/elflink.c | ||
23 | +++ b/bfd/elflink.c | ||
24 | @@ -3991,6 +3991,20 @@ error_free_dyn: | ||
25 | unsigned int vernum = 0; | ||
26 | bfd_boolean skip; | ||
27 | |||
28 | + /* If this is a definition of a symbol which was previously | ||
29 | + referenced in a non-weak manner then make a note of the bfd | ||
30 | + that contained the reference. This is used if we need to | ||
31 | + refer to the source of the reference later on. */ | ||
32 | + if (! bfd_is_und_section (sec)) | ||
33 | + { | ||
34 | + h = elf_link_hash_lookup (elf_hash_table (info), name, FALSE, FALSE, FALSE); | ||
35 | + | ||
36 | + if (h != NULL | ||
37 | + && h->root.type == bfd_link_hash_undefined | ||
38 | + && h->root.u.undef.abfd) | ||
39 | + undef_bfd = h->root.u.undef.abfd; | ||
40 | + } | ||
41 | + | ||
42 | if (ever == NULL) | ||
43 | { | ||
44 | if (info->default_imported_symver) | ||
45 | @@ -4098,16 +4112,15 @@ error_free_dyn: | ||
46 | name = newname; | ||
47 | } | ||
48 | |||
49 | - /* If this is a definition of a previously undefined symbol | ||
50 | - make a note of the bfd that contained the reference in | ||
51 | - case we need to refer to it later on in error messages. */ | ||
52 | - if (! bfd_is_und_section (sec)) | ||
53 | + /* If necessary, make a second attempt to locate the bfd | ||
54 | + containing an unresolved, non-weak reference to the | ||
55 | + current symbol. */ | ||
56 | + if (! bfd_is_und_section (sec) && undef_bfd == NULL) | ||
57 | { | ||
58 | h = elf_link_hash_lookup (elf_hash_table (info), name, FALSE, FALSE, FALSE); | ||
59 | |||
60 | if (h != NULL | ||
61 | - && (h->root.type == bfd_link_hash_undefined | ||
62 | - || h->root.type == bfd_link_hash_undefweak) | ||
63 | + && h->root.type == bfd_link_hash_undefined | ||
64 | && h->root.u.undef.abfd) | ||
65 | undef_bfd = h->root.u.undef.abfd; | ||
66 | } | ||
67 | @@ -4448,12 +4461,14 @@ error_free_dyn: | ||
68 | /* A symbol from a library loaded via DT_NEEDED of some | ||
69 | other library is referenced by a regular object. | ||
70 | Add a DT_NEEDED entry for it. Issue an error if | ||
71 | - --no-add-needed is used. */ | ||
72 | - if ((elf_dyn_lib_class (abfd) & DYN_NO_NEEDED) != 0) | ||
73 | + --no-add-needed is used and the reference was not | ||
74 | + a weak one. */ | ||
75 | + if (undef_bfd != NULL | ||
76 | + && (elf_dyn_lib_class (abfd) & DYN_NO_NEEDED) != 0) | ||
77 | { | ||
78 | (*_bfd_error_handler) | ||
79 | (_("%B: undefined reference to symbol '%s'"), | ||
80 | - undef_bfd == NULL ? info->output_bfd : undef_bfd, name); | ||
81 | + undef_bfd, name); | ||
82 | (*_bfd_error_handler) | ||
83 | (_("note: '%s' is defined in DSO %B so try adding it to the linker command line"), | ||
84 | abfd, name); | ||
85 | -- | ||
86 | 1.7.2.1.44.g721e7 | ||
87 | |||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-2.16.1-e300c2c3.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-2.16.1-e300c2c3.patch deleted file mode 100644 index dfe9b18e1..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-2.16.1-e300c2c3.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | Adds support for Freescale Power architecture e300c2 and e300c3 cores. | ||
2 | http://www.bitshrine.org/gpp/tc-fsl-x86lnx-e300c3-nptl-4.0.2-2.src.rpm | ||
3 | |||
4 | Leon Woestenberg <leonw@mailcan.com> | ||
5 | |||
6 | Index: binutils-2.19.51.0.3/opcodes/ppc-dis.c | ||
7 | =================================================================== | ||
8 | --- binutils-2.19.51.0.3.orig/opcodes/ppc-dis.c 2009-04-16 00:38:45.000000000 -0700 | ||
9 | +++ binutils-2.19.51.0.3/opcodes/ppc-dis.c 2009-04-16 00:43:56.000000000 -0700 | ||
10 | @@ -132,6 +132,8 @@ | ||
11 | | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7 | PPC_OPCODE_ALTIVEC | ||
12 | | PPC_OPCODE_VSX), | ||
13 | 0 }, | ||
14 | + { "pmr", (PPC_OPCODE_PMR), | ||
15 | + 0 }, | ||
16 | { "ppc", (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_32), | ||
17 | 0 }, | ||
18 | { "ppc32", (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_32), | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-2.19.1-ld-sysroot.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-2.19.1-ld-sysroot.patch deleted file mode 100644 index adcabb4f6..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-2.19.1-ld-sysroot.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | http://sourceware.org/bugzilla/show_bug.cgi?id=10340 | ||
2 | |||
3 | Signed-off-by: Sven Rebhan <odinshorse@googlemail.com> | ||
4 | |||
5 | Always try to prepend the sysroot prefix to absolute filenames first. | ||
6 | |||
7 | Index: binutils-2.21/ld/ldfile.c | ||
8 | =================================================================== | ||
9 | --- binutils-2.21.orig/ld/ldfile.c | ||
10 | +++ binutils-2.21/ld/ldfile.c | ||
11 | @@ -372,18 +372,24 @@ ldfile_open_file_search (const char *arc | ||
12 | directory first. */ | ||
13 | if (! entry->is_archive) | ||
14 | { | ||
15 | - if (entry->sysrooted && IS_ABSOLUTE_PATH (entry->filename)) | ||
16 | + /* For absolute pathnames, try to always open the file in the | ||
17 | + sysroot first. If this fails, try to open the file at the | ||
18 | + given location. */ | ||
19 | + entry->sysrooted = is_sysrooted_pathname(entry->filename, FALSE); | ||
20 | + if (IS_ABSOLUTE_PATH (entry->filename) && ld_sysroot && ! entry->sysrooted) | ||
21 | { | ||
22 | char *name = concat (ld_sysroot, entry->filename, | ||
23 | (const char *) NULL); | ||
24 | if (ldfile_try_open_bfd (name, entry)) | ||
25 | { | ||
26 | entry->filename = name; | ||
27 | + entry->sysrooted = TRUE; | ||
28 | return TRUE; | ||
29 | } | ||
30 | free (name); | ||
31 | } | ||
32 | - else if (ldfile_try_open_bfd (entry->filename, entry)) | ||
33 | + | ||
34 | + if (ldfile_try_open_bfd (entry->filename, entry)) | ||
35 | { | ||
36 | entry->sysrooted = IS_ABSOLUTE_PATH (entry->filename) | ||
37 | && is_sysrooted_pathname (entry->filename, TRUE); | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-mips-pie.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-mips-pie.patch deleted file mode 100644 index c71f0ad4d..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-mips-pie.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | # "-fPIE" always triggers segmentation fault in ld.so.1 on mips platform, | ||
2 | # which was first saw on dbus-daemon. Below borrow the binutils fix from | ||
3 | # binutils bugzilla: | ||
4 | # | ||
5 | # http://sourceware.org/bugzilla/show_bug.cgi?id=10858 | ||
6 | # | ||
7 | # Its commit message says: | ||
8 | # * elfxx-mips.c (mips_elf_create_dynamic_relocation): Use section | ||
9 | # sym dynindx for relocs against defined syms in PIEs. | ||
10 | # | ||
11 | # It's in upstream CVS now (rev 1.267), but not in current release | ||
12 | # | ||
13 | # By Kevin Tian <kevin.tian@intel.com>, 2010-07-15 | ||
14 | |||
15 | diff --git a/elfxx-mips.c b/elfxx-mips.c | ||
16 | index 3a1c8ba..f6c2c1c 100644 | ||
17 | --- binutils-2.20.1.orig/bfd/elfxx-mips.c | ||
18 | +++ binutils-2.20.1/bfd/elfxx-mips.c | ||
19 | @@ -5688,9 +5688,7 @@ mips_elf_create_dynamic_relocation (bfd *output_bfd, | ||
20 | |||
21 | /* We must now calculate the dynamic symbol table index to use | ||
22 | in the relocation. */ | ||
23 | - if (h != NULL | ||
24 | - && (!h->root.def_regular | ||
25 | - || (info->shared && !info->symbolic && !h->root.forced_local))) | ||
26 | + if (h != NULL && ! SYMBOL_REFERENCES_LOCAL (info, &h->root)) | ||
27 | { | ||
28 | indx = h->root.dynindx; | ||
29 | if (SGI_COMPAT (output_bfd)) | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-poison.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-poison.patch deleted file mode 100644 index c2f19276f..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-poison.patch +++ /dev/null | |||
@@ -1,253 +0,0 @@ | |||
1 | This patch is recived from Mark Hatle | ||
2 | |||
3 | purpose: warn for uses of system directories when cross linking | ||
4 | |||
5 | Signed-Off-By: Mark Hatle <mark.hatle@windriver.com> | ||
6 | |||
7 | Code Merged from Sourcery G++ binutils 2.19 - 4.4-277 | ||
8 | |||
9 | 2008-07-02 Joseph Myers <joseph@codesourcery.com> | ||
10 | |||
11 | ld/ | ||
12 | * ld.h (args_type): Add error_poison_system_directories. | ||
13 | * ld.texinfo (--error-poison-system-directories): Document. | ||
14 | * ldfile.c (ldfile_add_library_path): Check | ||
15 | command_line.error_poison_system_directories. | ||
16 | * ldmain.c (main): Initialize | ||
17 | command_line.error_poison_system_directories. | ||
18 | * lexsup.c (enum option_values): Add | ||
19 | OPTION_ERROR_POISON_SYSTEM_DIRECTORIES. | ||
20 | (ld_options): Add --error-poison-system-directories. | ||
21 | (parse_args): Handle new option. | ||
22 | |||
23 | 2007-06-13 Joseph Myers <joseph@codesourcery.com> | ||
24 | |||
25 | ld/ | ||
26 | * config.in: Regenerate. | ||
27 | * ld.h (args_type): Add poison_system_directories. | ||
28 | * ld.texinfo (--no-poison-system-directories): Document. | ||
29 | * ldfile.c (ldfile_add_library_path): Check | ||
30 | command_line.poison_system_directories. | ||
31 | * ldmain.c (main): Initialize | ||
32 | command_line.poison_system_directories. | ||
33 | * lexsup.c (enum option_values): Add | ||
34 | OPTION_NO_POISON_SYSTEM_DIRECTORIES. | ||
35 | (ld_options): Add --no-poison-system-directories. | ||
36 | (parse_args): Handle new option. | ||
37 | |||
38 | 2007-04-20 Joseph Myers <joseph@codesourcery.com> | ||
39 | |||
40 | Merge from Sourcery G++ binutils 2.17: | ||
41 | |||
42 | 2007-03-20 Joseph Myers <joseph@codesourcery.com> | ||
43 | Based on patch by Mark Hatle <mark.hatle@windriver.com>. | ||
44 | ld/ | ||
45 | * configure.in (--enable-poison-system-directories): New option. | ||
46 | * configure, config.in: Regenerate. | ||
47 | * ldfile.c (ldfile_add_library_path): If | ||
48 | ENABLE_POISON_SYSTEM_DIRECTORIES defined, warn for use of /lib, | ||
49 | /usr/lib, /usr/local/lib or /usr/X11R6/lib. | ||
50 | |||
51 | Index: binutils-2.20.1/ld/config.in | ||
52 | =================================================================== | ||
53 | --- binutils-2.20.1.orig/ld/config.in | ||
54 | +++ binutils-2.20.1/ld/config.in | ||
55 | @@ -4,6 +4,9 @@ | ||
56 | language is requested. */ | ||
57 | #undef ENABLE_NLS | ||
58 | |||
59 | +/* Define to warn for use of native system library directories */ | ||
60 | +#undef ENABLE_POISON_SYSTEM_DIRECTORIES | ||
61 | + | ||
62 | /* Additional extension a shared object might have. */ | ||
63 | #undef EXTRA_SHLIB_EXTENSION | ||
64 | |||
65 | Index: binutils-2.20.1/ld/configure.in | ||
66 | =================================================================== | ||
67 | --- binutils-2.20.1.orig/ld/configure.in | ||
68 | +++ binutils-2.20.1/ld/configure.in | ||
69 | @@ -69,6 +69,16 @@ AC_SUBST(use_sysroot) | ||
70 | AC_SUBST(TARGET_SYSTEM_ROOT) | ||
71 | AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) | ||
72 | |||
73 | +AC_ARG_ENABLE([poison-system-directories], | ||
74 | + AS_HELP_STRING([--enable-poison-system-directories], | ||
75 | + [warn for use of native system library directories]),, | ||
76 | + [enable_poison_system_directories=no]) | ||
77 | +if test "x${enable_poison_system_directories}" = "xyes"; then | ||
78 | + AC_DEFINE([ENABLE_POISON_SYSTEM_DIRECTORIES], | ||
79 | + [1], | ||
80 | + [Define to warn for use of native system library directories]) | ||
81 | +fi | ||
82 | + | ||
83 | AC_ARG_ENABLE([got], | ||
84 | AS_HELP_STRING([--enable-got=<type>], | ||
85 | [GOT handling scheme (target, single, negative, multigot)]), | ||
86 | Index: binutils-2.20.1/ld/ld.h | ||
87 | =================================================================== | ||
88 | --- binutils-2.20.1.orig/ld/ld.h | ||
89 | +++ binutils-2.20.1/ld/ld.h | ||
90 | @@ -176,6 +176,14 @@ typedef struct { | ||
91 | input files. */ | ||
92 | bfd_boolean accept_unknown_input_arch; | ||
93 | |||
94 | + /* If TRUE (the default) warn for uses of system directories when | ||
95 | + cross linking. */ | ||
96 | + bfd_boolean poison_system_directories; | ||
97 | + | ||
98 | + /* If TRUE (default FALSE) give an error for uses of system | ||
99 | + directories when cross linking instead of a warning. */ | ||
100 | + bfd_boolean error_poison_system_directories; | ||
101 | + | ||
102 | /* Big or little endian as set on command line. */ | ||
103 | enum endian_enum endian; | ||
104 | |||
105 | Index: binutils-2.20.1/ld/ld.texinfo | ||
106 | =================================================================== | ||
107 | --- binutils-2.20.1.orig/ld/ld.texinfo | ||
108 | +++ binutils-2.20.1/ld/ld.texinfo | ||
109 | @@ -2084,6 +2084,18 @@ string identifying the original linked f | ||
110 | |||
111 | Passing @code{none} for @var{style} disables the setting from any | ||
112 | @code{--build-id} options earlier on the command line. | ||
113 | + | ||
114 | +@kindex --no-poison-system-directories | ||
115 | +@item --no-poison-system-directories | ||
116 | +Do not warn for @option{-L} options using system directories such as | ||
117 | +@file{/usr/lib} when cross linking. This option is intended for use | ||
118 | +in chroot environments when such directories contain the correct | ||
119 | +libraries for the target system rather than the host. | ||
120 | + | ||
121 | +@kindex --error-poison-system-directories | ||
122 | +@item --error-poison-system-directories | ||
123 | +Give an error instead of a warning for @option{-L} options using | ||
124 | +system directories when cross linking. | ||
125 | @end table | ||
126 | |||
127 | @c man end | ||
128 | Index: binutils-2.20.1/ld/ldfile.c | ||
129 | =================================================================== | ||
130 | --- binutils-2.20.1.orig/ld/ldfile.c | ||
131 | +++ binutils-2.20.1/ld/ldfile.c | ||
132 | @@ -120,6 +120,23 @@ ldfile_add_library_path (const char *nam | ||
133 | { | ||
134 | new_dirs->name = xstrdup (name); | ||
135 | new_dirs->sysrooted = is_sysrooted_pathname (name, FALSE); | ||
136 | + | ||
137 | +#ifdef ENABLE_POISON_SYSTEM_DIRECTORIES | ||
138 | + if (command_line.poison_system_directories | ||
139 | + && ((!strncmp (name, "/lib", 4)) | ||
140 | + || (!strncmp (name, "/usr/lib", 8)) | ||
141 | + || (!strncmp (name, "/usr/local/lib", 14)) | ||
142 | + || (!strncmp (name, "/usr/X11R6/lib", 14)))) | ||
143 | + { | ||
144 | + if (command_line.error_poison_system_directories) | ||
145 | + einfo (_("%X%P: error: library search path \"%s\" is unsafe for " | ||
146 | + "cross-compilation\n"), name); | ||
147 | + else | ||
148 | + einfo (_("%P: warning: library search path \"%s\" is unsafe for " | ||
149 | + "cross-compilation\n"), name); | ||
150 | + } | ||
151 | +#endif | ||
152 | + | ||
153 | } | ||
154 | } | ||
155 | |||
156 | Index: binutils-2.20.1/ld/ldmain.c | ||
157 | =================================================================== | ||
158 | --- binutils-2.20.1.orig/ld/ldmain.c | ||
159 | +++ binutils-2.20.1/ld/ldmain.c | ||
160 | @@ -252,6 +252,8 @@ main (int argc, char **argv) | ||
161 | command_line.warn_mismatch = TRUE; | ||
162 | command_line.warn_search_mismatch = TRUE; | ||
163 | command_line.check_section_addresses = -1; | ||
164 | + command_line.poison_system_directories = TRUE; | ||
165 | + command_line.error_poison_system_directories = FALSE; | ||
166 | |||
167 | /* We initialize DEMANGLING based on the environment variable | ||
168 | COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the | ||
169 | Index: binutils-2.20.1/ld/lexsup.c | ||
170 | =================================================================== | ||
171 | --- binutils-2.20.1.orig/ld/lexsup.c | ||
172 | +++ binutils-2.20.1/ld/lexsup.c | ||
173 | @@ -166,7 +166,9 @@ enum option_values | ||
174 | OPTION_WARN_SHARED_TEXTREL, | ||
175 | OPTION_WARN_ALTERNATE_EM, | ||
176 | OPTION_REDUCE_MEMORY_OVERHEADS, | ||
177 | - OPTION_DEFAULT_SCRIPT | ||
178 | + OPTION_DEFAULT_SCRIPT, | ||
179 | + OPTION_NO_POISON_SYSTEM_DIRECTORIES, | ||
180 | + OPTION_ERROR_POISON_SYSTEM_DIRECTORIES | ||
181 | }; | ||
182 | |||
183 | /* The long options. This structure is used for both the option | ||
184 | @@ -575,6 +577,14 @@ static const struct ld_option ld_options | ||
185 | TWO_DASHES }, | ||
186 | { {"wrap", required_argument, NULL, OPTION_WRAP}, | ||
187 | '\0', N_("SYMBOL"), N_("Use wrapper functions for SYMBOL"), TWO_DASHES }, | ||
188 | + { {"no-poison-system-directories", no_argument, NULL, | ||
189 | + OPTION_NO_POISON_SYSTEM_DIRECTORIES}, | ||
190 | + '\0', NULL, N_("Do not warn for -L options using system directories"), | ||
191 | + TWO_DASHES }, | ||
192 | + { {"error-poison-system-directories", no_argument, NULL, | ||
193 | + OPTION_ERROR_POISON_SYSTEM_DIRECTORIES}, | ||
194 | + '\0', NULL, N_("Give an error for -L options using system directories"), | ||
195 | + TWO_DASHES }, | ||
196 | }; | ||
197 | |||
198 | #define OPTION_COUNT ARRAY_SIZE (ld_options) | ||
199 | @@ -1480,6 +1490,14 @@ parse_args (unsigned argc, char **argv) | ||
200 | einfo (_("%P%X: --hash-size needs a numeric argument\n")); | ||
201 | } | ||
202 | break; | ||
203 | + | ||
204 | + case OPTION_NO_POISON_SYSTEM_DIRECTORIES: | ||
205 | + command_line.poison_system_directories = FALSE; | ||
206 | + break; | ||
207 | + | ||
208 | + case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES: | ||
209 | + command_line.error_poison_system_directories = TRUE; | ||
210 | + break; | ||
211 | } | ||
212 | } | ||
213 | |||
214 | diff -ur binutils-2.20.1.orig/ld/configure binutils-2.20.1/ld/configure | ||
215 | --- binutils-2.20.1.orig/ld/configure 2010-03-03 08:06:22.000000000 -0600 | ||
216 | +++ binutils-2.20.1/ld/configure 2010-09-30 11:19:35.776990594 -0500 | ||
217 | @@ -901,6 +904,7 @@ | ||
218 | enable_targets | ||
219 | enable_64_bit_bfd | ||
220 | with_sysroot | ||
221 | +enable_poison_system_directories | ||
222 | enable_got | ||
223 | enable_werror | ||
224 | enable_build_warnings | ||
225 | @@ -1548,6 +1552,8 @@ | ||
226 | (and sometimes confusing) to the casual installer | ||
227 | --enable-targets alternative target configurations | ||
228 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | ||
229 | + --enable-poison-system-directories | ||
230 | + warn for use of native system library directories | ||
231 | --enable-got=<type> GOT handling scheme (target, single, negative, | ||
232 | multigot) | ||
233 | --enable-werror treat compile warnings as errors | ||
234 | @@ -4302,6 +4334,19 @@ | ||
235 | |||
236 | |||
237 | |||
238 | +# Check whether --enable-poison-system-directories was given. | ||
239 | +if test "${enable_poison_system_directories+set}" = set; then : | ||
240 | + enableval=$enable_poison_system_directories; | ||
241 | +else | ||
242 | + enable_poison_system_directories=no | ||
243 | +fi | ||
244 | + | ||
245 | +if test "x${enable_poison_system_directories}" = "xyes"; then | ||
246 | + | ||
247 | +$as_echo "#define ENABLE_POISON_SYSTEM_DIRECTORIES 1" >>confdefs.h | ||
248 | + | ||
249 | +fi | ||
250 | + | ||
251 | # Check whether --enable-got was given. | ||
252 | if test "${enable_got+set}" = set; then : | ||
253 | enableval=$enable_got; case "${enableval}" in | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-100-uclibc-conf.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-100-uclibc-conf.patch deleted file mode 100644 index 8de04e0fe..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-100-uclibc-conf.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | --- binutils-2.18.orig/configure | ||
2 | +++ binutils-2.18/configure | ||
3 | @@ -2206,7 +2206,7 @@ | ||
4 | am33_2.0-*-linux*) | ||
5 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | ||
6 | ;; | ||
7 | - sh-*-linux*) | ||
8 | + sh*-*-linux*) | ||
9 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | ||
10 | ;; | ||
11 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | ||
12 | @@ -2504,7 +2504,7 @@ | ||
13 | romp-*-*) | ||
14 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" | ||
15 | ;; | ||
16 | - sh-*-* | sh64-*-*) | ||
17 | + sh*-*-* | sh64-*-*) | ||
18 | case "${host}" in | ||
19 | i[3456789]86-*-vsta) ;; # don't add gprof back in | ||
20 | i[3456789]86-*-go32*) ;; # don't add gprof back in | ||
21 | --- binutils-2.18.orig/gprof/configure | ||
22 | +++ binutils-2.18/gprof/configure | ||
23 | @@ -4124,6 +4124,11 @@ | ||
24 | lt_cv_deplibs_check_method=pass_all | ||
25 | ;; | ||
26 | |||
27 | +linux-uclibc*) | ||
28 | + lt_cv_deplibs_check_method=pass_all | ||
29 | + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` | ||
30 | + ;; | ||
31 | + | ||
32 | netbsd*) | ||
33 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
34 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-001_ld_makefile_patch.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-001_ld_makefile_patch.patch deleted file mode 100644 index 04a7e61e2..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-001_ld_makefile_patch.patch +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 001_ld_makefile_patch.dpatch | ||
3 | ## | ||
4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
5 | ## DP: Description: correct where ld scripts are installed | ||
6 | ## DP: Author: Chris Chimelis <chris@debian.org> | ||
7 | ## DP: Upstream status: N/A | ||
8 | ## DP: Date: ?? | ||
9 | |||
10 | if [ $# -ne 1 ]; then | ||
11 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
12 | exit 1 | ||
13 | fi | ||
14 | |||
15 | [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts | ||
16 | patch_opts="${patch_opts:--f --no-backup-if-mismatch}" | ||
17 | |||
18 | case "$1" in | ||
19 | -patch) patch $patch_opts -p1 < $0;; | ||
20 | -unpatch) patch $patch_opts -p1 -R < $0;; | ||
21 | *) | ||
22 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
23 | exit 1;; | ||
24 | esac | ||
25 | |||
26 | exit 0 | ||
27 | |||
28 | @DPATCH@ | ||
29 | --- binutils-2.16.91.0.1/ld/Makefile.am | ||
30 | +++ binutils-2.16.91.0.1/ld/Makefile.am | ||
31 | @@ -20,7 +20,7 @@ | ||
32 | # We put the scripts in the directory $(scriptdir)/ldscripts. | ||
33 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
34 | # directives need to be different for native and cross linkers. | ||
35 | -scriptdir = $(tooldir)/lib | ||
36 | +scriptdir = $(libdir) | ||
37 | |||
38 | EMUL = @EMUL@ | ||
39 | EMULATION_OFILES = @EMULATION_OFILES@ | ||
40 | --- binutils-2.16.91.0.1/ld/Makefile.in | ||
41 | +++ binutils-2.16.91.0.1/ld/Makefile.in | ||
42 | @@ -268,7 +268,7 @@ | ||
43 | # We put the scripts in the directory $(scriptdir)/ldscripts. | ||
44 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
45 | # directives need to be different for native and cross linkers. | ||
46 | -scriptdir = $(tooldir)/lib | ||
47 | +scriptdir = $(libdir) | ||
48 | BASEDIR = $(srcdir)/.. | ||
49 | BFDDIR = $(BASEDIR)/bfd | ||
50 | INCDIR = $(BASEDIR)/include | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-006_better_file_error.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-006_better_file_error.patch deleted file mode 100644 index f337611ed..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-006_better_file_error.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 006_better_file_error.dpatch by David Kimdon <dwhedon@gordian.com> | ||
3 | ## | ||
4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
5 | ## DP: Specify which filename is causing an error if the filename is a | ||
6 | ## DP: directory. (#45832) | ||
7 | |||
8 | if [ $# -ne 1 ]; then | ||
9 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
10 | exit 1 | ||
11 | fi | ||
12 | |||
13 | [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts | ||
14 | patch_opts="${patch_opts:--f --no-backup-if-mismatch}" | ||
15 | |||
16 | case "$1" in | ||
17 | -patch) patch $patch_opts -p1 < $0;; | ||
18 | -unpatch) patch $patch_opts -p1 -R < $0;; | ||
19 | *) | ||
20 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
21 | exit 1;; | ||
22 | esac | ||
23 | |||
24 | exit 0 | ||
25 | |||
26 | @DPATCH@ | ||
27 | diff -urNad /home/james/debian/packages/binutils/binutils-2.14.90.0.6/bfd/opncls.c binutils-2.14.90.0.6/bfd/opncls.c | ||
28 | --- /home/james/debian/packages/binutils/binutils-2.14.90.0.6/bfd/opncls.c 2003-07-23 16:08:09.000000000 +0100 | ||
29 | +++ binutils-2.14.90.0.6/bfd/opncls.c 2003-09-10 22:35:00.000000000 +0100 | ||
30 | @@ -150,6 +150,13 @@ | ||
31 | { | ||
32 | bfd *nbfd; | ||
33 | const bfd_target *target_vec; | ||
34 | + struct stat s; | ||
35 | + | ||
36 | + if (stat (filename, &s) == 0) | ||
37 | + if (S_ISDIR(s.st_mode)) { | ||
38 | + bfd_set_error (bfd_error_file_not_recognized); | ||
39 | + return NULL; | ||
40 | + } | ||
41 | |||
42 | nbfd = _bfd_new_bfd (); | ||
43 | if (nbfd == NULL) | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-012_check_ldrunpath_length.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-012_check_ldrunpath_length.patch deleted file mode 100644 index 498651a90..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-012_check_ldrunpath_length.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 012_check_ldrunpath_length.dpatch by Chris Chimelis <chris@debian.org> | ||
3 | ## | ||
4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
5 | ## DP: Only generate an RPATH entry if LD_RUN_PATH is not empty, for | ||
6 | ## DP: cases where -rpath isn't specified. (#151024) | ||
7 | |||
8 | if [ $# -ne 1 ]; then | ||
9 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
10 | exit 1 | ||
11 | fi | ||
12 | |||
13 | [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts | ||
14 | patch_opts="${patch_opts:--f --no-backup-if-mismatch}" | ||
15 | |||
16 | case "$1" in | ||
17 | -patch) patch $patch_opts -p1 < $0;; | ||
18 | -unpatch) patch $patch_opts -p1 -R < $0;; | ||
19 | *) | ||
20 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
21 | exit 1;; | ||
22 | esac | ||
23 | |||
24 | exit 0 | ||
25 | |||
26 | @DPATCH@ | ||
27 | diff -urNad /home/james/debian/packages/binutils/new/binutils-2.15/ld/emultempl/elf32.em binutils-2.15/ld/emultempl/elf32.em | ||
28 | --- /home/james/debian/packages/binutils/new/binutils-2.15/ld/emultempl/elf32.em 2004-05-21 23:12:58.000000000 +0100 | ||
29 | +++ binutils-2.15/ld/emultempl/elf32.em 2004-05-21 23:12:59.000000000 +0100 | ||
30 | @@ -692,6 +692,8 @@ | ||
31 | && command_line.rpath == NULL) | ||
32 | { | ||
33 | lib_path = (const char *) getenv ("LD_RUN_PATH"); | ||
34 | + if ((lib_path) && (strlen (lib_path) == 0)) | ||
35 | + lib_path = NULL; | ||
36 | if (gld${EMULATION_NAME}_search_needed (lib_path, &n, | ||
37 | force)) | ||
38 | break; | ||
39 | @@ -871,6 +873,8 @@ | ||
40 | rpath = command_line.rpath; | ||
41 | if (rpath == NULL) | ||
42 | rpath = (const char *) getenv ("LD_RUN_PATH"); | ||
43 | + if ((rpath) && (strlen (rpath) == 0)) | ||
44 | + rpath = NULL; | ||
45 | if (! (bfd_elf_size_dynamic_sections | ||
46 | (output_bfd, command_line.soname, rpath, | ||
47 | command_line.filter_shlib, | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-gas-needs-libm.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-gas-needs-libm.patch deleted file mode 100644 index db838cf20..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-gas-needs-libm.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | Source: Khem Raj <raj.khem@gmail.com> | ||
2 | Disposition: submit upstream. | ||
3 | |||
4 | Description: | ||
5 | |||
6 | We do not need to have the libtool patch anymore for binutils after | ||
7 | libtool has been updated upstream it include support for it. However | ||
8 | for building gas natively on uclibc systems we have to link it with | ||
9 | -lm so that it picks up missing symbols. | ||
10 | |||
11 | /local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_from_double': | ||
12 | floatformat.c:(.text+0x1ec): undefined reference to `frexp' | ||
13 | floatformat.c:(.text+0x2f8): undefined reference to `ldexp' | ||
14 | /local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_to_double': | ||
15 | floatformat.c:(.text+0x38a): undefined reference to `ldexp' | ||
16 | floatformat.c:(.text+0x3d2): undefined reference to `ldexp' | ||
17 | floatformat.c:(.text+0x43e): undefined reference to `ldexp' floatformat.c:(.text+0x4e2): undefined reference to `ldexp' | ||
18 | collect2: ld returned 1 exit status | ||
19 | make[4]: *** [as-new] Error 1 | ||
20 | |||
21 | Index: binutils-2.17.50/gas/configure.tgt | ||
22 | =================================================================== | ||
23 | --- binutils-2.17.50.orig/gas/configure.tgt | ||
24 | +++ binutils-2.17.50/gas/configure.tgt | ||
25 | @@ -408,6 +408,12 @@ case ${generic_target} in | ||
26 | *-*-netware) fmt=elf em=netware ;; | ||
27 | esac | ||
28 | |||
29 | +case ${generic_target} in | ||
30 | + arm-*-*uclibc*) | ||
31 | + need_libm=yes | ||
32 | + ;; | ||
33 | +esac | ||
34 | + | ||
35 | case ${cpu_type} in | ||
36 | alpha | arm | i386 | ia64 | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k) | ||
37 | bfd_gas=yes | ||
38 | |||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-x86_64_i386_biarch.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-x86_64_i386_biarch.patch deleted file mode 100644 index 4cd9e2243..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/binutils-x86_64_i386_biarch.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 127_x86_64_i386_biarch.dpatch | ||
3 | ## | ||
4 | ## DP: Description: Add (/usr)/lib32 to the search paths on x86_64. | ||
5 | ## DP: Author: Aurelien Jarno <aurel32.debian.org> | ||
6 | ## DP: Upstream status: Debian specific | ||
7 | # | ||
8 | # Hacked to apply with quilt | ||
9 | # Adapted to binutils 2.18.50.0.7 | ||
10 | |||
11 | --- binutils/ld/emulparams/elf_i386.sh | ||
12 | +++ binutils/ld/emulparams/elf_i386.sh | ||
13 | @@ -12,3 +12,13 @@ | ||
14 | SEPARATE_GOTPLT=12 | ||
15 | SHARABLE_SECTIONS=yes | ||
16 | IREL_IN_PLT= | ||
17 | + | ||
18 | +# Linux modify the default library search path to first include | ||
19 | +# a 32-bit specific directory. | ||
20 | +case "$target" in | ||
21 | + x86_64*-linux* | i[3-7]86*-linux* | x86_64*-kfreebsd*-gnu | i[3-7]86*-kfreebsd*-gnu) | ||
22 | + case "$EMULATION_NAME" in | ||
23 | + *i386*) LIBPATH_SUFFIX=32 ;; | ||
24 | + esac | ||
25 | + ;; | ||
26 | +esac | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/libiberty_path_fix.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/libiberty_path_fix.patch deleted file mode 100644 index 36a14d7a1..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/libiberty_path_fix.patch +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | don't let the distro compiler point to the wrong installation location | ||
2 | |||
3 | Thanks to RP for helping find the source code causing the issue. | ||
4 | |||
5 | 2010/08/13 | ||
6 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
7 | Index: binutils-2.20.1/libiberty/Makefile.in | ||
8 | =================================================================== | ||
9 | --- binutils-2.20.1.orig/libiberty/Makefile.in | ||
10 | +++ binutils-2.20.1/libiberty/Makefile.in | ||
11 | @@ -327,7 +327,8 @@ install: install_to_$(INSTALL_DEST) inst | ||
12 | # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the | ||
13 | # default multilib, so we have to take CFLAGS into account as well, | ||
14 | # since it will be passed the multilib flags. | ||
15 | -MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory` | ||
16 | +#MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory` | ||
17 | +MULTIOSDIR = "" | ||
18 | install_to_libdir: all | ||
19 | ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR) | ||
20 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/libtool-2.4-update.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/libtool-2.4-update.patch deleted file mode 100644 index f3a9203cd..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/libtool-2.4-update.patch +++ /dev/null | |||
@@ -1,31174 +0,0 @@ | |||
1 | Index: binutils-2.20.1/ltmain.sh | ||
2 | =================================================================== | ||
3 | --- binutils-2.20.1.orig/ltmain.sh | ||
4 | +++ binutils-2.20.1/ltmain.sh | ||
5 | @@ -1,9 +1,9 @@ | ||
6 | -# Generated from ltmain.m4sh. | ||
7 | |||
8 | -# ltmain.sh (GNU libtool) 2.2.6 | ||
9 | +# libtool (GNU libtool) 2.4 | ||
10 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
11 | |||
12 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. | ||
13 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, | ||
14 | +# 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
15 | # This is free software; see the source for copying conditions. There is NO | ||
16 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | |||
18 | @@ -32,50 +32,56 @@ | ||
19 | # | ||
20 | # Provide generalized library-building support services. | ||
21 | # | ||
22 | -# --config show all configuration variables | ||
23 | -# --debug enable verbose shell tracing | ||
24 | -# -n, --dry-run display commands without modifying any files | ||
25 | -# --features display basic configuration information and exit | ||
26 | -# --mode=MODE use operation mode MODE | ||
27 | -# --preserve-dup-deps don't remove duplicate dependency libraries | ||
28 | -# --quiet, --silent don't print informational messages | ||
29 | -# --tag=TAG use configuration variables from tag TAG | ||
30 | -# -v, --verbose print informational messages (default) | ||
31 | -# --version print version information | ||
32 | -# -h, --help print short or long help message | ||
33 | +# --config show all configuration variables | ||
34 | +# --debug enable verbose shell tracing | ||
35 | +# -n, --dry-run display commands without modifying any files | ||
36 | +# --features display basic configuration information and exit | ||
37 | +# --mode=MODE use operation mode MODE | ||
38 | +# --preserve-dup-deps don't remove duplicate dependency libraries | ||
39 | +# --quiet, --silent don't print informational messages | ||
40 | +# --no-quiet, --no-silent | ||
41 | +# print informational messages (default) | ||
42 | +# --tag=TAG use configuration variables from tag TAG | ||
43 | +# -v, --verbose print more informational messages than default | ||
44 | +# --no-verbose don't print the extra informational messages | ||
45 | +# --version print version information | ||
46 | +# -h, --help, --help-all print short, long, or detailed help message | ||
47 | # | ||
48 | # MODE must be one of the following: | ||
49 | # | ||
50 | -# clean remove files from the build directory | ||
51 | -# compile compile a source file into a libtool object | ||
52 | -# execute automatically set library path, then run a program | ||
53 | -# finish complete the installation of libtool libraries | ||
54 | -# install install libraries or executables | ||
55 | -# link create a library or an executable | ||
56 | -# uninstall remove libraries from an installed directory | ||
57 | +# clean remove files from the build directory | ||
58 | +# compile compile a source file into a libtool object | ||
59 | +# execute automatically set library path, then run a program | ||
60 | +# finish complete the installation of libtool libraries | ||
61 | +# install install libraries or executables | ||
62 | +# link create a library or an executable | ||
63 | +# uninstall remove libraries from an installed directory | ||
64 | # | ||
65 | -# MODE-ARGS vary depending on the MODE. | ||
66 | +# MODE-ARGS vary depending on the MODE. When passed as first option, | ||
67 | +# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. | ||
68 | # Try `$progname --help --mode=MODE' for a more detailed description of MODE. | ||
69 | # | ||
70 | # When reporting a bug, please describe a test case to reproduce it and | ||
71 | # include the following information: | ||
72 | # | ||
73 | -# host-triplet: $host | ||
74 | -# shell: $SHELL | ||
75 | -# compiler: $LTCC | ||
76 | -# compiler flags: $LTCFLAGS | ||
77 | -# linker: $LD (gnu? $with_gnu_ld) | ||
78 | -# $progname: (GNU libtool) 2.2.6 | ||
79 | -# automake: $automake_version | ||
80 | -# autoconf: $autoconf_version | ||
81 | +# host-triplet: $host | ||
82 | +# shell: $SHELL | ||
83 | +# compiler: $LTCC | ||
84 | +# compiler flags: $LTCFLAGS | ||
85 | +# linker: $LD (gnu? $with_gnu_ld) | ||
86 | +# $progname: (GNU libtool) 2.4 | ||
87 | +# automake: $automake_version | ||
88 | +# autoconf: $autoconf_version | ||
89 | # | ||
90 | # Report bugs to <bug-libtool@gnu.org>. | ||
91 | +# GNU libtool home page: <http://www.gnu.org/software/libtool/>. | ||
92 | +# General help using GNU software: <http://www.gnu.org/gethelp/>. | ||
93 | |||
94 | -PROGRAM=ltmain.sh | ||
95 | +PROGRAM=libtool | ||
96 | PACKAGE=libtool | ||
97 | -VERSION=2.2.6 | ||
98 | +VERSION=2.4 | ||
99 | TIMESTAMP="" | ||
100 | -package_revision=1.3012 | ||
101 | +package_revision=1.3293 | ||
102 | |||
103 | # Be Bourne compatible | ||
104 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
105 | @@ -91,10 +97,15 @@ fi | ||
106 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
107 | DUALCASE=1; export DUALCASE # for MKS sh | ||
108 | |||
109 | +# A function that is used when there is no print builtin or printf. | ||
110 | +func_fallback_echo () | ||
111 | +{ | ||
112 | + eval 'cat <<_LTECHO_EOF | ||
113 | +$1 | ||
114 | +_LTECHO_EOF' | ||
115 | +} | ||
116 | + | ||
117 | # NLS nuisances: We save the old values to restore during execute mode. | ||
118 | -# Only set LANG and LC_ALL to C if already set. | ||
119 | -# These must not be set unconditionally because not all systems understand | ||
120 | -# e.g. LANG=C (notably SCO). | ||
121 | lt_user_locale= | ||
122 | lt_safe_locale= | ||
123 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES | ||
124 | @@ -107,24 +118,33 @@ do | ||
125 | lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" | ||
126 | fi" | ||
127 | done | ||
128 | +LC_ALL=C | ||
129 | +LANGUAGE=C | ||
130 | +export LANGUAGE LC_ALL | ||
131 | |||
132 | $lt_unset CDPATH | ||
133 | |||
134 | |||
135 | +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh | ||
136 | +# is ksh but when the shell is invoked as "sh" and the current value of | ||
137 | +# the _XPG environment variable is not equal to 1 (one), the special | ||
138 | +# positional parameter $0, within a function call, is the name of the | ||
139 | +# function. | ||
140 | +progpath="$0" | ||
141 | |||
142 | |||
143 | |||
144 | : ${CP="cp -f"} | ||
145 | -: ${ECHO="echo"} | ||
146 | -: ${EGREP="/usr/bin/grep -E"} | ||
147 | -: ${FGREP="/usr/bin/grep -F"} | ||
148 | -: ${GREP="/usr/bin/grep"} | ||
149 | +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} | ||
150 | +: ${EGREP="/bin/grep -E"} | ||
151 | +: ${FGREP="/bin/grep -F"} | ||
152 | +: ${GREP="/bin/grep"} | ||
153 | : ${LN_S="ln -s"} | ||
154 | : ${MAKE="make"} | ||
155 | : ${MKDIR="mkdir"} | ||
156 | : ${MV="mv -f"} | ||
157 | : ${RM="rm -f"} | ||
158 | -: ${SED="/opt/local/bin/gsed"} | ||
159 | +: ${SED="/bin/sed"} | ||
160 | : ${SHELL="${CONFIG_SHELL-/bin/sh}"} | ||
161 | : ${Xsed="$SED -e 1s/^X//"} | ||
162 | |||
163 | @@ -144,6 +164,27 @@ IFS=" $lt_nl" | ||
164 | dirname="s,/[^/]*$,," | ||
165 | basename="s,^.*/,," | ||
166 | |||
167 | +# func_dirname file append nondir_replacement | ||
168 | +# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
169 | +# otherwise set result to NONDIR_REPLACEMENT. | ||
170 | +func_dirname () | ||
171 | +{ | ||
172 | + func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
173 | + if test "X$func_dirname_result" = "X${1}"; then | ||
174 | + func_dirname_result="${3}" | ||
175 | + else | ||
176 | + func_dirname_result="$func_dirname_result${2}" | ||
177 | + fi | ||
178 | +} # func_dirname may be replaced by extended shell implementation | ||
179 | + | ||
180 | + | ||
181 | +# func_basename file | ||
182 | +func_basename () | ||
183 | +{ | ||
184 | + func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
185 | +} # func_basename may be replaced by extended shell implementation | ||
186 | + | ||
187 | + | ||
188 | # func_dirname_and_basename file append nondir_replacement | ||
189 | # perform func_basename and func_dirname in a single function | ||
190 | # call: | ||
191 | @@ -158,24 +199,41 @@ basename="s,^.*/,," | ||
192 | # those functions but instead duplicate the functionality here. | ||
193 | func_dirname_and_basename () | ||
194 | { | ||
195 | - # Extract subdirectory from the argument. | ||
196 | - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
197 | - if test "X$func_dirname_result" = "X${1}"; then | ||
198 | - func_dirname_result="${3}" | ||
199 | - else | ||
200 | - func_dirname_result="$func_dirname_result${2}" | ||
201 | - fi | ||
202 | - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
203 | -} | ||
204 | + # Extract subdirectory from the argument. | ||
205 | + func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` | ||
206 | + if test "X$func_dirname_result" = "X${1}"; then | ||
207 | + func_dirname_result="${3}" | ||
208 | + else | ||
209 | + func_dirname_result="$func_dirname_result${2}" | ||
210 | + fi | ||
211 | + func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` | ||
212 | +} # func_dirname_and_basename may be replaced by extended shell implementation | ||
213 | + | ||
214 | + | ||
215 | +# func_stripname prefix suffix name | ||
216 | +# strip PREFIX and SUFFIX off of NAME. | ||
217 | +# PREFIX and SUFFIX must not contain globbing or regex special | ||
218 | +# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
219 | +# dot (in which case that matches only a dot). | ||
220 | +# func_strip_suffix prefix name | ||
221 | +func_stripname () | ||
222 | +{ | ||
223 | + case ${2} in | ||
224 | + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
225 | + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
226 | + esac | ||
227 | +} # func_stripname may be replaced by extended shell implementation | ||
228 | |||
229 | -# Generated shell functions inserted here. | ||
230 | |||
231 | # These SED scripts presuppose an absolute path with a trailing slash. | ||
232 | -pathcar="s,^/\([^/]*\).*$,\1," | ||
233 | -pathcdr="s,^/[^/]*,," | ||
234 | -removedotparts="s@/\(\./\)\{1,\}@/@g;s,/\.$,/," | ||
235 | -collapseslashes="s@/\{1,\}@/@g" | ||
236 | -finalslash="s,/*$,/," | ||
237 | +pathcar='s,^/\([^/]*\).*$,\1,' | ||
238 | +pathcdr='s,^/[^/]*,,' | ||
239 | +removedotparts=':dotsl | ||
240 | + s@/\./@/@g | ||
241 | + t dotsl | ||
242 | + s,/\.$,/,' | ||
243 | +collapseslashes='s@/\{1,\}@/@g' | ||
244 | +finalslash='s,/*$,/,' | ||
245 | |||
246 | # func_normal_abspath PATH | ||
247 | # Remove doubled-up and trailing slashes, "." path components, | ||
248 | @@ -315,21 +373,9 @@ func_relative_path () | ||
249 | fi | ||
250 | } | ||
251 | |||
252 | -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh | ||
253 | -# is ksh but when the shell is invoked as "sh" and the current value of | ||
254 | -# the _XPG environment variable is not equal to 1 (one), the special | ||
255 | -# positional parameter $0, within a function call, is the name of the | ||
256 | -# function. | ||
257 | -progpath="$0" | ||
258 | - | ||
259 | # The name of this program: | ||
260 | -# In the unlikely event $progname began with a '-', it would play havoc with | ||
261 | -# func_echo (imagine progname=-n), so we prepend ./ in that case: | ||
262 | func_dirname_and_basename "$progpath" | ||
263 | progname=$func_basename_result | ||
264 | -case $progname in | ||
265 | - -*) progname=./$progname ;; | ||
266 | -esac | ||
267 | |||
268 | # Make sure we have an absolute path for reexecution: | ||
269 | case $progpath in | ||
270 | @@ -360,6 +406,15 @@ sed_quote_subst='s/\([`"$\\]\)/\\\1/g' | ||
271 | # Same as above, but do not quote variable references. | ||
272 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
273 | |||
274 | +# Sed substitution that turns a string into a regex matching for the | ||
275 | +# string literally. | ||
276 | +sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' | ||
277 | + | ||
278 | +# Sed substitution that converts a w32 file name or path | ||
279 | +# which contains forward slashes, into one that contains | ||
280 | +# (escaped) backslashes. A very naive implementation. | ||
281 | +lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | ||
282 | + | ||
283 | # Re-`\' parameter expansions in output of double_quote_subst that were | ||
284 | # `\'-ed in input to the same. If an odd number of `\' preceded a '$' | ||
285 | # in input to double_quote_subst, that '$' was protected from expansion. | ||
286 | @@ -388,7 +443,7 @@ opt_warning=: | ||
287 | # name if it has been set yet. | ||
288 | func_echo () | ||
289 | { | ||
290 | - $ECHO "$progname${mode+: }$mode: $*" | ||
291 | + $ECHO "$progname: ${opt_mode+$opt_mode: }$*" | ||
292 | } | ||
293 | |||
294 | # func_verbose arg... | ||
295 | @@ -403,18 +458,25 @@ func_verbose () | ||
296 | : | ||
297 | } | ||
298 | |||
299 | +# func_echo_all arg... | ||
300 | +# Invoke $ECHO with all args, space-separated. | ||
301 | +func_echo_all () | ||
302 | +{ | ||
303 | + $ECHO "$*" | ||
304 | +} | ||
305 | + | ||
306 | # func_error arg... | ||
307 | # Echo program name prefixed message to standard error. | ||
308 | func_error () | ||
309 | { | ||
310 | - $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 | ||
311 | + $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 | ||
312 | } | ||
313 | |||
314 | # func_warning arg... | ||
315 | # Echo program name prefixed warning message to standard error. | ||
316 | func_warning () | ||
317 | { | ||
318 | - $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 | ||
319 | + $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 | ||
320 | |||
321 | # bash bug again: | ||
322 | : | ||
323 | @@ -471,9 +533,9 @@ func_mkdir_p () | ||
324 | case $my_directory_path in */*) ;; *) break ;; esac | ||
325 | |||
326 | # ...otherwise throw away the child directory and loop | ||
327 | - my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` | ||
328 | + my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` | ||
329 | done | ||
330 | - my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` | ||
331 | + my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` | ||
332 | |||
333 | save_mkdir_p_IFS="$IFS"; IFS=':' | ||
334 | for my_dir in $my_dir_list; do | ||
335 | @@ -523,7 +585,7 @@ func_mktempdir () | ||
336 | func_fatal_error "cannot create temporary directory \`$my_tmpdir'" | ||
337 | fi | ||
338 | |||
339 | - $ECHO "X$my_tmpdir" | $Xsed | ||
340 | + $ECHO "$my_tmpdir" | ||
341 | } | ||
342 | |||
343 | |||
344 | @@ -537,7 +599,7 @@ func_quote_for_eval () | ||
345 | { | ||
346 | case $1 in | ||
347 | *[\\\`\"\$]*) | ||
348 | - func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; | ||
349 | + func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; | ||
350 | *) | ||
351 | func_quote_for_eval_unquoted_result="$1" ;; | ||
352 | esac | ||
353 | @@ -564,7 +626,7 @@ func_quote_for_expand () | ||
354 | { | ||
355 | case $1 in | ||
356 | *[\\\`\"]*) | ||
357 | - my_arg=`$ECHO "X$1" | $Xsed \ | ||
358 | + my_arg=`$ECHO "$1" | $SED \ | ||
359 | -e "$double_quote_subst" -e "$sed_double_backslash"` ;; | ||
360 | *) | ||
361 | my_arg="$1" ;; | ||
362 | @@ -633,15 +695,39 @@ func_show_eval_locale () | ||
363 | fi | ||
364 | } | ||
365 | |||
366 | - | ||
367 | - | ||
368 | +# func_tr_sh | ||
369 | +# Turn $1 into a string suitable for a shell variable name. | ||
370 | +# Result is stored in $func_tr_sh_result. All characters | ||
371 | +# not in the set a-zA-Z0-9_ are replaced with '_'. Further, | ||
372 | +# if $1 begins with a digit, a '_' is prepended as well. | ||
373 | +func_tr_sh () | ||
374 | +{ | ||
375 | + case $1 in | ||
376 | + [0-9]* | *[!a-zA-Z0-9_]*) | ||
377 | + func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` | ||
378 | + ;; | ||
379 | + * ) | ||
380 | + func_tr_sh_result=$1 | ||
381 | + ;; | ||
382 | + esac | ||
383 | +} | ||
384 | |||
385 | |||
386 | # func_version | ||
387 | # Echo version message to standard output and exit. | ||
388 | func_version () | ||
389 | { | ||
390 | - $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { | ||
391 | + $opt_debug | ||
392 | + | ||
393 | + $SED -n '/(C)/!b go | ||
394 | + :more | ||
395 | + /\./!{ | ||
396 | + N | ||
397 | + s/\n# / / | ||
398 | + b more | ||
399 | + } | ||
400 | + :go | ||
401 | + /^# '$PROGRAM' (GNU /,/# warranty; / { | ||
402 | s/^# // | ||
403 | s/^# *$// | ||
404 | s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ | ||
405 | @@ -654,22 +740,28 @@ func_version () | ||
406 | # Echo short help message to standard output and exit. | ||
407 | func_usage () | ||
408 | { | ||
409 | - $SED -n '/^# Usage:/,/# -h/ { | ||
410 | + $opt_debug | ||
411 | + | ||
412 | + $SED -n '/^# Usage:/,/^# *.*--help/ { | ||
413 | s/^# // | ||
414 | s/^# *$// | ||
415 | s/\$progname/'$progname'/ | ||
416 | p | ||
417 | }' < "$progpath" | ||
418 | - $ECHO | ||
419 | + echo | ||
420 | $ECHO "run \`$progname --help | more' for full usage" | ||
421 | exit $? | ||
422 | } | ||
423 | |||
424 | -# func_help | ||
425 | -# Echo long help message to standard output and exit. | ||
426 | +# func_help [NOEXIT] | ||
427 | +# Echo long help message to standard output and exit, | ||
428 | +# unless 'noexit' is passed as argument. | ||
429 | func_help () | ||
430 | { | ||
431 | + $opt_debug | ||
432 | + | ||
433 | $SED -n '/^# Usage:/,/# Report bugs to/ { | ||
434 | |||
435 | s/^# // | ||
436 | s/^# *$// | ||
437 | s*\$progname*'$progname'* | ||
438 | @@ -682,8 +774,15 @@ func_help () | ||
439 | s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ | ||
440 | s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ | ||
441 | p | ||
442 | - }' < "$progpath" | ||
443 | - exit $? | ||
444 | + d | ||
445 | + } | ||
446 | + /^# .* home page:/b print | ||
447 | + /^# General help using/b print | ||
448 | + ' < "$progpath" | ||
449 | + ret=$? | ||
450 | + if test -z "$1"; then | ||
451 | + exit $ret | ||
452 | + fi | ||
453 | } | ||
454 | |||
455 | # func_missing_arg argname | ||
456 | @@ -691,63 +790,106 @@ func_help () | ||
457 | # exit_cmd. | ||
458 | func_missing_arg () | ||
459 | { | ||
460 | - func_error "missing argument for $1" | ||
461 | + $opt_debug | ||
462 | + | ||
463 | + func_error "missing argument for $1." | ||
464 | exit_cmd=exit | ||
465 | } | ||
466 | |||
467 | -exit_cmd=: | ||
468 | |||
469 | +# func_split_short_opt shortopt | ||
470 | +# Set func_split_short_opt_name and func_split_short_opt_arg shell | ||
471 | +# variables after splitting SHORTOPT after the 2nd character. | ||
472 | +func_split_short_opt () | ||
473 | +{ | ||
474 | + my_sed_short_opt='1s/^\(..\).*$/\1/;q' | ||
475 | + my_sed_short_rest='1s/^..\(.*\)$/\1/;q' | ||
476 | + | ||
477 | + func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` | ||
478 | + func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` | ||
479 | +} # func_split_short_opt may be replaced by extended shell implementation | ||
480 | + | ||
481 | + | ||
482 | +# func_split_long_opt longopt | ||
483 | +# Set func_split_long_opt_name and func_split_long_opt_arg shell | ||
484 | +# variables after splitting LONGOPT at the `=' sign. | ||
485 | +func_split_long_opt () | ||
486 | +{ | ||
487 | + my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' | ||
488 | + my_sed_long_arg='1s/^--[^=]*=//' | ||
489 | + | ||
490 | + func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` | ||
491 | + func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` | ||
492 | +} # func_split_long_opt may be replaced by extended shell implementation | ||
493 | |||
494 | +exit_cmd=: | ||
495 | |||
496 | |||
497 | |||
498 | -# Check that we have a working $ECHO. | ||
499 | -if test "X$1" = X--no-reexec; then | ||
500 | - # Discard the --no-reexec flag, and continue. | ||
501 | - shift | ||
502 | -elif test "X$1" = X--fallback-echo; then | ||
503 | - # Avoid inline document here, it may be left over | ||
504 | - : | ||
505 | -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then | ||
506 | - # Yippee, $ECHO works! | ||
507 | - : | ||
508 | -else | ||
509 | - # Restart under the correct shell, and then maybe $ECHO will work. | ||
510 | - exec $SHELL "$progpath" --no-reexec ${1+"$@"} | ||
511 | -fi | ||
512 | |||
513 | -if test "X$1" = X--fallback-echo; then | ||
514 | - # used as fallback echo | ||
515 | - shift | ||
516 | - cat <<EOF | ||
517 | -$* | ||
518 | -EOF | ||
519 | - exit $EXIT_SUCCESS | ||
520 | -fi | ||
521 | |||
522 | magic="%%%MAGIC variable%%%" | ||
523 | magic_exe="%%%MAGIC EXE variable%%%" | ||
524 | |||
525 | # Global variables. | ||
526 | -# $mode is unset | ||
527 | nonopt= | ||
528 | -execute_dlfiles= | ||
529 | preserve_args= | ||
530 | lo2o="s/\\.lo\$/.${objext}/" | ||
531 | o2lo="s/\\.${objext}\$/.lo/" | ||
532 | extracted_archives= | ||
533 | extracted_serial=0 | ||
534 | |||
535 | -opt_dry_run=false | ||
536 | -opt_duplicate_deps=false | ||
537 | -opt_silent=false | ||
538 | -opt_debug=: | ||
539 | - | ||
540 | # If this variable is set in any of the actions, the command in it | ||
541 | # will be execed at the end. This prevents here-documents from being | ||
542 | # left over by shells. | ||
543 | exec_cmd= | ||
544 | |||
545 | +# func_append var value | ||
546 | +# Append VALUE to the end of shell variable VAR. | ||
547 | +func_append () | ||
548 | +{ | ||
549 | + eval "${1}=\$${1}\${2}" | ||
550 | +} # func_append may be replaced by extended shell implementation | ||
551 | + | ||
552 | +# func_append_quoted var value | ||
553 | +# Quote VALUE and append to the end of shell variable VAR, separated | ||
554 | +# by a space. | ||
555 | +func_append_quoted () | ||
556 | +{ | ||
557 | + func_quote_for_eval "${2}" | ||
558 | + eval "${1}=\$${1}\\ \$func_quote_for_eval_result" | ||
559 | +} # func_append_quoted may be replaced by extended shell implementation | ||
560 | + | ||
561 | + | ||
562 | +# func_arith arithmetic-term... | ||
563 | +func_arith () | ||
564 | +{ | ||
565 | + func_arith_result=`expr "${@}"` | ||
566 | +} # func_arith may be replaced by extended shell implementation | ||
567 | + | ||
568 | + | ||
569 | +# func_len string | ||
570 | +# STRING may not start with a hyphen. | ||
571 | +func_len () | ||
572 | +{ | ||
573 | + func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
574 | +} # func_len may be replaced by extended shell implementation | ||
575 | + | ||
576 | + | ||
577 | +# func_lo2o object | ||
578 | +func_lo2o () | ||
579 | +{ | ||
580 | + func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
581 | +} # func_lo2o may be replaced by extended shell implementation | ||
582 | + | ||
583 | + | ||
584 | +# func_xform libobj-or-source | ||
585 | +func_xform () | ||
586 | +{ | ||
587 | + func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
588 | +} # func_xform may be replaced by extended shell implementation | ||
589 | + | ||
590 | + | ||
591 | # func_fatal_configuration arg... | ||
592 | # Echo program name prefixed message to standard error, followed by | ||
593 | # a configuration failure hint, and exit. | ||
594 | @@ -781,16 +923,16 @@ func_config () | ||
595 | # Display the features supported by this script. | ||
596 | func_features () | ||
597 | { | ||
598 | - $ECHO "host: $host" | ||
599 | + echo "host: $host" | ||
600 | if test "$build_libtool_libs" = yes; then | ||
601 | - $ECHO "enable shared libraries" | ||
602 | + echo "enable shared libraries" | ||
603 | else | ||
604 | - $ECHO "disable shared libraries" | ||
605 | + echo "disable shared libraries" | ||
606 | fi | ||
607 | if test "$build_old_libs" = yes; then | ||
608 | - $ECHO "enable static libraries" | ||
609 | + echo "enable static libraries" | ||
610 | else | ||
611 | - $ECHO "disable static libraries" | ||
612 | + echo "disable static libraries" | ||
613 | fi | ||
614 | |||
615 | exit $? | ||
616 | @@ -837,117 +979,204 @@ func_enable_tag () | ||
617 | esac | ||
618 | } | ||
619 | |||
620 | -# Parse options once, thoroughly. This comes as soon as possible in | ||
621 | -# the script to make things like `libtool --version' happen quickly. | ||
622 | +# func_check_version_match | ||
623 | +# Ensure that we are using m4 macros, and libtool script from the same | ||
624 | +# release of libtool. | ||
625 | +func_check_version_match () | ||
626 | { | ||
627 | + if test "$package_revision" != "$macro_revision"; then | ||
628 | + if test "$VERSION" != "$macro_version"; then | ||
629 | + if test -z "$macro_version"; then | ||
630 | + cat >&2 <<_LT_EOF | ||
631 | +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the | ||
632 | +$progname: definition of this LT_INIT comes from an older release. | ||
633 | +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION | ||
634 | +$progname: and run autoconf again. | ||
635 | +_LT_EOF | ||
636 | + else | ||
637 | + cat >&2 <<_LT_EOF | ||
638 | +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the | ||
639 | +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. | ||
640 | +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION | ||
641 | +$progname: and run autoconf again. | ||
642 | +_LT_EOF | ||
643 | + fi | ||
644 | + else | ||
645 | + cat >&2 <<_LT_EOF | ||
646 | +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, | ||
647 | +$progname: but the definition of this LT_INIT comes from revision $macro_revision. | ||
648 | +$progname: You should recreate aclocal.m4 with macros from revision $package_revision | ||
649 | +$progname: of $PACKAGE $VERSION and run autoconf again. | ||
650 | +_LT_EOF | ||
651 | + fi | ||
652 | + | ||
653 | + exit $EXIT_MISMATCH | ||
654 | + fi | ||
655 | +} | ||
656 | + | ||
657 | + | ||
658 | +# Shorthand for --mode=foo, only valid as the first argument | ||
659 | +case $1 in | ||
660 | +clean|clea|cle|cl) | ||
661 | + shift; set dummy --mode clean ${1+"$@"}; shift | ||
662 | + ;; | ||
663 | +compile|compil|compi|comp|com|co|c) | ||
664 | + shift; set dummy --mode compile ${1+"$@"}; shift | ||
665 | + ;; | ||
666 | +execute|execut|execu|exec|exe|ex|e) | ||
667 | + shift; set dummy --mode execute ${1+"$@"}; shift | ||
668 | + ;; | ||
669 | +finish|finis|fini|fin|fi|f) | ||
670 | + shift; set dummy --mode finish ${1+"$@"}; shift | ||
671 | + ;; | ||
672 | +install|instal|insta|inst|ins|in|i) | ||
673 | + shift; set dummy --mode install ${1+"$@"}; shift | ||
674 | + ;; | ||
675 | +link|lin|li|l) | ||
676 | + shift; set dummy --mode link ${1+"$@"}; shift | ||
677 | + ;; | ||
678 | +uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) | ||
679 | + shift; set dummy --mode uninstall ${1+"$@"}; shift | ||
680 | + ;; | ||
681 | +esac | ||
682 | + | ||
683 | + | ||
684 | + | ||
685 | +# Option defaults: | ||
686 | +opt_debug=: | ||
687 | +opt_dry_run=false | ||
688 | +opt_config=false | ||
689 | +opt_preserve_dup_deps=false | ||
690 | +opt_features=false | ||
691 | +opt_finish=false | ||
692 | +opt_help=false | ||
693 | +opt_help_all=false | ||
694 | +opt_silent=: | ||
695 | +opt_verbose=: | ||
696 | +opt_silent=false | ||
697 | +opt_verbose=false | ||
698 | |||
699 | - # Shorthand for --mode=foo, only valid as the first argument | ||
700 | - case $1 in | ||
701 | - clean|clea|cle|cl) | ||
702 | - shift; set dummy --mode clean ${1+"$@"}; shift | ||
703 | - ;; | ||
704 | - compile|compil|compi|comp|com|co|c) | ||
705 | - shift; set dummy --mode compile ${1+"$@"}; shift | ||
706 | - ;; | ||
707 | - execute|execut|execu|exec|exe|ex|e) | ||
708 | - shift; set dummy --mode execute ${1+"$@"}; shift | ||
709 | - ;; | ||
710 | - finish|finis|fini|fin|fi|f) | ||
711 | - shift; set dummy --mode finish ${1+"$@"}; shift | ||
712 | - ;; | ||
713 | - install|instal|insta|inst|ins|in|i) | ||
714 | - shift; set dummy --mode install ${1+"$@"}; shift | ||
715 | - ;; | ||
716 | - link|lin|li|l) | ||
717 | - shift; set dummy --mode link ${1+"$@"}; shift | ||
718 | - ;; | ||
719 | - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) | ||
720 | - shift; set dummy --mode uninstall ${1+"$@"}; shift | ||
721 | - ;; | ||
722 | - esac | ||
723 | |||
724 | - # Parse non-mode specific arguments: | ||
725 | - while test "$#" -gt 0; do | ||
726 | +# Parse options once, thoroughly. This comes as soon as possible in the | ||
727 | +# script to make things like `--version' happen as quickly as we can. | ||
728 | +{ | ||
729 | + # this just eases exit handling | ||
730 | + while test $# -gt 0; do | ||
731 | opt="$1" | ||
732 | shift | ||
733 | - | ||
734 | case $opt in | ||
735 | - --config) func_config ;; | ||
736 | - | ||
737 | - --debug) preserve_args="$preserve_args $opt" | ||
738 | + --debug|-x) opt_debug='set -x' | ||
739 | func_echo "enabling shell trace mode" | ||
740 | - opt_debug='set -x' | ||
741 | $opt_debug | ||
742 | ;; | ||
743 | - | ||
744 | - -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break | ||
745 | - execute_dlfiles="$execute_dlfiles $1" | ||
746 | - shift | ||
747 | + --dry-run|--dryrun|-n) | ||
748 | + opt_dry_run=: | ||
749 | ;; | ||
750 | - | ||
751 | - --dry-run | -n) opt_dry_run=: ;; | ||
752 | - --features) func_features ;; | ||
753 | - --finish) mode="finish" ;; | ||
754 | - | ||
755 | - --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break | ||
756 | - case $1 in | ||
757 | - # Valid mode arguments: | ||
758 | - clean) ;; | ||
759 | - compile) ;; | ||
760 | - execute) ;; | ||
761 | - finish) ;; | ||
762 | - install) ;; | ||
763 | - link) ;; | ||
764 | - relink) ;; | ||
765 | - uninstall) ;; | ||
766 | - | ||
767 | - # Catch anything else as an error | ||
768 | - *) func_error "invalid argument for $opt" | ||
769 | - exit_cmd=exit | ||
770 | - break | ||
771 | - ;; | ||
772 | - esac | ||
773 | - | ||
774 | - mode="$1" | ||
775 | + --config) | ||
776 | + opt_config=: | ||
777 | +func_config | ||
778 | + ;; | ||
779 | + --dlopen|-dlopen) | ||
780 | + optarg="$1" | ||
781 | + opt_dlopen="${opt_dlopen+$opt_dlopen | ||
782 | +}$optarg" | ||
783 | shift | ||
784 | ;; | ||
785 | - | ||
786 | --preserve-dup-deps) | ||
787 | - opt_duplicate_deps=: ;; | ||
788 | - | ||
789 | - --quiet|--silent) preserve_args="$preserve_args $opt" | ||
790 | - opt_silent=: | ||
791 | + opt_preserve_dup_deps=: | ||
792 | ;; | ||
793 | - | ||
794 | - --verbose| -v) preserve_args="$preserve_args $opt" | ||
795 | + --features) | ||
796 | + opt_features=: | ||
797 | +func_features | ||
798 | + ;; | ||
799 | + --finish) | ||
800 | + opt_finish=: | ||
801 | +set dummy --mode finish ${1+"$@"}; shift | ||
802 | + ;; | ||
803 | + --help) | ||
804 | + opt_help=: | ||
805 | + ;; | ||
806 | + --help-all) | ||
807 | + opt_help_all=: | ||
808 | +opt_help=': help-all' | ||
809 | + ;; | ||
810 | + --mode) | ||
811 | + test $# = 0 && func_missing_arg $opt && break | ||
812 | + optarg="$1" | ||
813 | + opt_mode="$optarg" | ||
814 | +case $optarg in | ||
815 | + # Valid mode arguments: | ||
816 | + clean|compile|execute|finish|install|link|relink|uninstall) ;; | ||
817 | + | ||
818 | + # Catch anything else as an error | ||
819 | + *) func_error "invalid argument for $opt" | ||
820 | + exit_cmd=exit | ||
821 | + break | ||
822 | + ;; | ||
823 | +esac | ||
824 | + shift | ||
825 | + ;; | ||
826 | + --no-silent|--no-quiet) | ||
827 | opt_silent=false | ||
828 | +func_append preserve_args " $opt" | ||
829 | ;; | ||
830 | - | ||
831 | - --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break | ||
832 | - preserve_args="$preserve_args $opt $1" | ||
833 | - func_enable_tag "$1" # tagname is set here | ||
834 | + --no-verbose) | ||
835 | + opt_verbose=false | ||
836 | +func_append preserve_args " $opt" | ||
837 | + ;; | ||
838 | + --silent|--quiet) | ||
839 | + opt_silent=: | ||
840 | +func_append preserve_args " $opt" | ||
841 | + opt_verbose=false | ||
842 | + ;; | ||
843 | + --verbose|-v) | ||
844 | + opt_verbose=: | ||
845 | +func_append preserve_args " $opt" | ||
846 | +opt_silent=false | ||
847 | + ;; | ||
848 | + --tag) | ||
849 | + test $# = 0 && func_missing_arg $opt && break | ||
850 | + optarg="$1" | ||
851 | + opt_tag="$optarg" | ||
852 | +func_append preserve_args " $opt $optarg" | ||
853 | +func_enable_tag "$optarg" | ||
854 | shift | ||
855 | ;; | ||
856 | |||
857 | + -\?|-h) func_usage ;; | ||
858 | + --help) func_help ;; | ||
859 | + --version) func_version ;; | ||
860 | + | ||
861 | # Separate optargs to long options: | ||
862 | - -dlopen=*|--mode=*|--tag=*) | ||
863 | - func_opt_split "$opt" | ||
864 | - set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} | ||
865 | + --*=*) | ||
866 | + func_split_long_opt "$opt" | ||
867 | + set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} | ||
868 | shift | ||
869 | ;; | ||
870 | |||
871 | - -\?|-h) func_usage ;; | ||
872 | - --help) opt_help=: ;; | ||
873 | - --version) func_version ;; | ||
874 | - | ||
875 | - -*) func_fatal_help "unrecognized option \`$opt'" ;; | ||
876 | - | ||
877 | - *) nonopt="$opt" | ||
878 | - break | ||
879 | + # Separate non-argument short options: | ||
880 | + -\?*|-h*|-n*|-v*) | ||
881 | + func_split_short_opt "$opt" | ||
882 | + set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} | ||
883 | + shift | ||
884 | ;; | ||
885 | + | ||
886 | + --) break ;; | ||
887 | + -*) func_fatal_help "unrecognized option \`$opt'" ;; | ||
888 | + *) set dummy "$opt" ${1+"$@"}; shift; break ;; | ||
889 | esac | ||
890 | done | ||
891 | |||
892 | + # Validate options: | ||
893 | + | ||
894 | + # save first non-option argument | ||
895 | + if test "$#" -gt 0; then | ||
896 | + nonopt="$opt" | ||
897 | + shift | ||
898 | + fi | ||
899 | + | ||
900 | + # preserve --debug | ||
901 | + test "$opt_debug" = : || func_append preserve_args " --debug" | ||
902 | |||
903 | case $host in | ||
904 | *cygwin* | *mingw* | *pw32* | *cegcc*) | ||
905 | @@ -955,82 +1184,44 @@ func_enable_tag () | ||
906 | opt_duplicate_compiler_generated_deps=: | ||
907 | ;; | ||
908 | *) | ||
909 | - opt_duplicate_compiler_generated_deps=$opt_duplicate_deps | ||
910 | + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps | ||
911 | ;; | ||
912 | esac | ||
913 | |||
914 | - # Having warned about all mis-specified options, bail out if | ||
915 | - # anything was wrong. | ||
916 | - $exit_cmd $EXIT_FAILURE | ||
917 | -} | ||
918 | + $opt_help || { | ||
919 | + # Sanity checks first: | ||
920 | + func_check_version_match | ||
921 | |||
922 | -# func_check_version_match | ||
923 | -# Ensure that we are using m4 macros, and libtool script from the same | ||
924 | -# release of libtool. | ||
925 | -func_check_version_match () | ||
926 | -{ | ||
927 | - if test "$package_revision" != "$macro_revision"; then | ||
928 | - if test "$VERSION" != "$macro_version"; then | ||
929 | - if test -z "$macro_version"; then | ||
930 | - cat >&2 <<_LT_EOF | ||
931 | -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the | ||
932 | -$progname: definition of this LT_INIT comes from an older release. | ||
933 | -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION | ||
934 | -$progname: and run autoconf again. | ||
935 | -_LT_EOF | ||
936 | - else | ||
937 | - cat >&2 <<_LT_EOF | ||
938 | -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the | ||
939 | -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. | ||
940 | -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION | ||
941 | -$progname: and run autoconf again. | ||
942 | -_LT_EOF | ||
943 | - fi | ||
944 | - else | ||
945 | - cat >&2 <<_LT_EOF | ||
946 | -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, | ||
947 | -$progname: but the definition of this LT_INIT comes from revision $macro_revision. | ||
948 | -$progname: You should recreate aclocal.m4 with macros from revision $package_revision | ||
949 | -$progname: of $PACKAGE $VERSION and run autoconf again. | ||
950 | -_LT_EOF | ||
951 | + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | ||
952 | + func_fatal_configuration "not configured to build any kind of library" | ||
953 | fi | ||
954 | |||
955 | - exit $EXIT_MISMATCH | ||
956 | - fi | ||
957 | -} | ||
958 | - | ||
959 | + # Darwin sucks | ||
960 | + eval std_shrext=\"$shrext_cmds\" | ||
961 | |||
962 | -## ----------- ## | ||
963 | -## Main. ## | ||
964 | -## ----------- ## | ||
965 | - | ||
966 | -$opt_help || { | ||
967 | - # Sanity checks first: | ||
968 | - func_check_version_match | ||
969 | - | ||
970 | - if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | ||
971 | - func_fatal_configuration "not configured to build any kind of library" | ||
972 | - fi | ||
973 | + # Only execute mode is allowed to have -dlopen flags. | ||
974 | + if test -n "$opt_dlopen" && test "$opt_mode" != execute; then | ||
975 | + func_error "unrecognized option \`-dlopen'" | ||
976 | + $ECHO "$help" 1>&2 | ||
977 | + exit $EXIT_FAILURE | ||
978 | + fi | ||
979 | |||
980 | - test -z "$mode" && func_fatal_error "error: you must specify a MODE." | ||
981 | + # Change the help message to a mode-specific one. | ||
982 | + generic_help="$help" | ||
983 | + help="Try \`$progname --help --mode=$opt_mode' for more information." | ||
984 | + } | ||
985 | |||
986 | |||
987 | - # Darwin sucks | ||
988 | - eval std_shrext=\"$shrext_cmds\" | ||
989 | + # Bail if the options were screwed | ||
990 | + $exit_cmd $EXIT_FAILURE | ||
991 | +} | ||
992 | |||
993 | |||
994 | - # Only execute mode is allowed to have -dlopen flags. | ||
995 | - if test -n "$execute_dlfiles" && test "$mode" != execute; then | ||
996 | - func_error "unrecognized option \`-dlopen'" | ||
997 | - $ECHO "$help" 1>&2 | ||
998 | - exit $EXIT_FAILURE | ||
999 | - fi | ||
1000 | |||
1001 | - # Change the help message to a mode-specific one. | ||
1002 | - generic_help="$help" | ||
1003 | - help="Try \`$progname --help --mode=$mode' for more information." | ||
1004 | -} | ||
1005 | |||
1006 | +## ----------- ## | ||
1007 | +## Main. ## | ||
1008 | +## ----------- ## | ||
1009 | |||
1010 | # func_lalib_p file | ||
1011 | # True iff FILE is a libtool `.la' library or `.lo' object file. | ||
1012 | @@ -1095,12 +1286,9 @@ func_ltwrapper_executable_p () | ||
1013 | # temporary ltwrapper_script. | ||
1014 | func_ltwrapper_scriptname () | ||
1015 | { | ||
1016 | - func_ltwrapper_scriptname_result="" | ||
1017 | - if func_ltwrapper_executable_p "$1"; then | ||
1018 | - func_dirname_and_basename "$1" "" "." | ||
1019 | - func_stripname '' '.exe' "$func_basename_result" | ||
1020 | - func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" | ||
1021 | - fi | ||
1022 | + func_dirname_and_basename "$1" "" "." | ||
1023 | + func_stripname '' '.exe' "$func_basename_result" | ||
1024 | + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" | ||
1025 | } | ||
1026 | |||
1027 | # func_ltwrapper_p file | ||
1028 | @@ -1146,6 +1334,37 @@ func_source () | ||
1029 | } | ||
1030 | |||
1031 | |||
1032 | +# func_resolve_sysroot PATH | ||
1033 | +# Replace a leading = in PATH with a sysroot. Store the result into | ||
1034 | +# func_resolve_sysroot_result | ||
1035 | +func_resolve_sysroot () | ||
1036 | +{ | ||
1037 | + func_resolve_sysroot_result=$1 | ||
1038 | + case $func_resolve_sysroot_result in | ||
1039 | + =*) | ||
1040 | + func_stripname '=' '' "$func_resolve_sysroot_result" | ||
1041 | + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result | ||
1042 | + ;; | ||
1043 | + esac | ||
1044 | +} | ||
1045 | + | ||
1046 | +# func_replace_sysroot PATH | ||
1047 | +# If PATH begins with the sysroot, replace it with = and | ||
1048 | +# store the result into func_replace_sysroot_result. | ||
1049 | +func_replace_sysroot () | ||
1050 | +{ | ||
1051 | + case "$lt_sysroot:$1" in | ||
1052 | + ?*:"$lt_sysroot"*) | ||
1053 | + func_stripname "$lt_sysroot" '' "$1" | ||
1054 | + func_replace_sysroot_result="=$func_stripname_result" | ||
1055 | + ;; | ||
1056 | + *) | ||
1057 | + # Including no sysroot. | ||
1058 | + func_replace_sysroot_result=$1 | ||
1059 | + ;; | ||
1060 | + esac | ||
1061 | +} | ||
1062 | + | ||
1063 | # func_infer_tag arg | ||
1064 | # Infer tagged configuration to use if any are available and | ||
1065 | # if one wasn't chosen via the "--tag" command line option. | ||
1066 | @@ -1158,13 +1377,15 @@ func_infer_tag () | ||
1067 | if test -n "$available_tags" && test -z "$tagname"; then | ||
1068 | CC_quoted= | ||
1069 | for arg in $CC; do | ||
1070 | - func_quote_for_eval "$arg" | ||
1071 | - CC_quoted="$CC_quoted $func_quote_for_eval_result" | ||
1072 | + func_append_quoted CC_quoted "$arg" | ||
1073 | done | ||
1074 | + CC_expanded=`func_echo_all $CC` | ||
1075 | + CC_quoted_expanded=`func_echo_all $CC_quoted` | ||
1076 | case $@ in | ||
1077 | # Blanks in the command may have been stripped by the calling shell, | ||
1078 | # but not from the CC environment variable when configure was run. | ||
1079 | - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; | ||
1080 | + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ | ||
1081 | + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; | ||
1082 | # Blanks at the start of $base_compile will cause this to fail | ||
1083 | # if we don't check for them as well. | ||
1084 | *) | ||
1085 | @@ -1175,11 +1396,13 @@ func_infer_tag () | ||
1086 | CC_quoted= | ||
1087 | for arg in $CC; do | ||
1088 | # Double-quote args containing other shell metacharacters. | ||
1089 | - func_quote_for_eval "$arg" | ||
1090 | - CC_quoted="$CC_quoted $func_quote_for_eval_result" | ||
1091 | + func_append_quoted CC_quoted "$arg" | ||
1092 | done | ||
1093 | + CC_expanded=`func_echo_all $CC` | ||
1094 | + CC_quoted_expanded=`func_echo_all $CC_quoted` | ||
1095 | case "$@ " in | ||
1096 | - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) | ||
1097 | + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ | ||
1098 | + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) | ||
1099 | # The compiler in the base compile command matches | ||
1100 | # the one in the tagged configuration. | ||
1101 | # Assume this is the tagged configuration we want. | ||
1102 | @@ -1242,6 +1465,486 @@ EOF | ||
1103 | } | ||
1104 | } | ||
1105 | |||
1106 | + | ||
1107 | +################################################## | ||
1108 | +# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS # | ||
1109 | +################################################## | ||
1110 | + | ||
1111 | +# func_convert_core_file_wine_to_w32 ARG | ||
1112 | +# Helper function used by file name conversion functions when $build is *nix, | ||
1113 | +# and $host is mingw, cygwin, or some other w32 environment. Relies on a | ||
1114 | +# correctly configured wine environment available, with the winepath program | ||
1115 | +# in $build's $PATH. | ||
1116 | +# | ||
1117 | +# ARG is the $build file name to be converted to w32 format. | ||
1118 | +# Result is available in $func_convert_core_file_wine_to_w32_result, and will | ||
1119 | +# be empty on error (or when ARG is empty) | ||
1120 | +func_convert_core_file_wine_to_w32 () | ||
1121 | +{ | ||
1122 | + $opt_debug | ||
1123 | + func_convert_core_file_wine_to_w32_result="$1" | ||
1124 | + if test -n "$1"; then | ||
1125 | + # Unfortunately, winepath does not exit with a non-zero error code, so we | ||
1126 | + # are forced to check the contents of stdout. On the other hand, if the | ||
1127 | + # command is not found, the shell will set an exit code of 127 and print | ||
1128 | + # *an error message* to stdout. So we must check for both error code of | ||
1129 | + # zero AND non-empty stdout, which explains the odd construction: | ||
1130 | + func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null` | ||
1131 | + if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then | ||
1132 | + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | | ||
1133 | + $SED -e "$lt_sed_naive_backslashify"` | ||
1134 | + else | ||
1135 | + func_convert_core_file_wine_to_w32_result= | ||
1136 | + fi | ||
1137 | + fi | ||
1138 | +} | ||
1139 | +# end: func_convert_core_file_wine_to_w32 | ||
1140 | + | ||
1141 | + | ||
1142 | +# func_convert_core_path_wine_to_w32 ARG | ||
1143 | +# Helper function used by path conversion functions when $build is *nix, and | ||
1144 | +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly | ||
1145 | +# configured wine environment available, with the winepath program in $build's | ||
1146 | +# $PATH. Assumes ARG has no leading or trailing path separator characters. | ||
1147 | +# | ||
1148 | +# ARG is path to be converted from $build format to win32. | ||
1149 | +# Result is available in $func_convert_core_path_wine_to_w32_result. | ||
1150 | +# Unconvertible file (directory) names in ARG are skipped; if no directory names | ||
1151 | +# are convertible, then the result may be empty. | ||
1152 | +func_convert_core_path_wine_to_w32 () | ||
1153 | +{ | ||
1154 | + $opt_debug | ||
1155 | + # unfortunately, winepath doesn't convert paths, only file names | ||
1156 | + func_convert_core_path_wine_to_w32_result="" | ||
1157 | + if test -n "$1"; then | ||
1158 | + oldIFS=$IFS | ||
1159 | + IFS=: | ||
1160 | + for func_convert_core_path_wine_to_w32_f in $1; do | ||
1161 | + IFS=$oldIFS | ||
1162 | + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" | ||
1163 | + if test -n "$func_convert_core_file_wine_to_w32_result" ; then | ||
1164 | + if test -z "$func_convert_core_path_wine_to_w32_result"; then | ||
1165 | + func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" | ||
1166 | + else | ||
1167 | + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" | ||
1168 | + fi | ||
1169 | + fi | ||
1170 | + done | ||
1171 | + IFS=$oldIFS | ||
1172 | + fi | ||
1173 | +} | ||
1174 | +# end: func_convert_core_path_wine_to_w32 | ||
1175 | + | ||
1176 | + | ||
1177 | +# func_cygpath ARGS... | ||
1178 | +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when | ||
1179 | +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) | ||
1180 | +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or | ||
1181 | +# (2), returns the Cygwin file name or path in func_cygpath_result (input | ||
1182 | +# file name or path is assumed to be in w32 format, as previously converted | ||
1183 | +# from $build's *nix or MSYS format). In case (3), returns the w32 file name | ||
1184 | +# or path in func_cygpath_result (input file name or path is assumed to be in | ||
1185 | +# Cygwin format). Returns an empty string on error. | ||
1186 | +# | ||
1187 | +# ARGS are passed to cygpath, with the last one being the file name or path to | ||
1188 | +# be converted. | ||
1189 | +# | ||
1190 | +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH | ||
1191 | +# environment variable; do not put it in $PATH. | ||
1192 | +func_cygpath () | ||
1193 | +{ | ||
1194 | + $opt_debug | ||
1195 | + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then | ||
1196 | + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` | ||
1197 | + if test "$?" -ne 0; then | ||
1198 | + # on failure, ensure result is empty | ||
1199 | + func_cygpath_result= | ||
1200 | + fi | ||
1201 | + else | ||
1202 | + func_cygpath_result= | ||
1203 | + func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" | ||
1204 | + fi | ||
1205 | +} | ||
1206 | +#end: func_cygpath | ||
1207 | + | ||
1208 | + | ||
1209 | +# func_convert_core_msys_to_w32 ARG | ||
1210 | +# Convert file name or path ARG from MSYS format to w32 format. Return | ||
1211 | +# result in func_convert_core_msys_to_w32_result. | ||
1212 | +func_convert_core_msys_to_w32 () | ||
1213 | +{ | ||
1214 | + $opt_debug | ||
1215 | + # awkward: cmd appends spaces to result | ||
1216 | + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | | ||
1217 | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | ||
1218 | +} | ||
1219 | +#end: func_convert_core_msys_to_w32 | ||
1220 | + | ||
1221 | + | ||
1222 | +# func_convert_file_check ARG1 ARG2 | ||
1223 | +# Verify that ARG1 (a file name in $build format) was converted to $host | ||
1224 | +# format in ARG2. Otherwise, emit an error message, but continue (resetting | ||
1225 | +# func_to_host_file_result to ARG1). | ||
1226 | +func_convert_file_check () | ||
1227 | +{ | ||
1228 | + $opt_debug | ||
1229 | + if test -z "$2" && test -n "$1" ; then | ||
1230 | + func_error "Could not determine host file name corresponding to" | ||
1231 | + func_error " \`$1'" | ||
1232 | + func_error "Continuing, but uninstalled executables may not work." | ||
1233 | + # Fallback: | ||
1234 | + func_to_host_file_result="$1" | ||
1235 | + fi | ||
1236 | +} | ||
1237 | +# end func_convert_file_check | ||
1238 | + | ||
1239 | + | ||
1240 | +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH | ||
1241 | +# Verify that FROM_PATH (a path in $build format) was converted to $host | ||
1242 | +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting | ||
1243 | +# func_to_host_file_result to a simplistic fallback value (see below). | ||
1244 | +func_convert_path_check () | ||
1245 | +{ | ||
1246 | + $opt_debug | ||
1247 | + if test -z "$4" && test -n "$3"; then | ||
1248 | + func_error "Could not determine the host path corresponding to" | ||
1249 | + func_error " \`$3'" | ||
1250 | + func_error "Continuing, but uninstalled executables may not work." | ||
1251 | + # Fallback. This is a deliberately simplistic "conversion" and | ||
1252 | + # should not be "improved". See libtool.info. | ||
1253 | + if test "x$1" != "x$2"; then | ||
1254 | + lt_replace_pathsep_chars="s|$1|$2|g" | ||
1255 | + func_to_host_path_result=`echo "$3" | | ||
1256 | + $SED -e "$lt_replace_pathsep_chars"` | ||
1257 | + else | ||
1258 | + func_to_host_path_result="$3" | ||
1259 | + fi | ||
1260 | + fi | ||
1261 | +} | ||
1262 | +# end func_convert_path_check | ||
1263 | + | ||
1264 | + | ||
1265 | +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG | ||
1266 | +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT | ||
1267 | +# and appending REPL if ORIG matches BACKPAT. | ||
1268 | +func_convert_path_front_back_pathsep () | ||
1269 | +{ | ||
1270 | + $opt_debug | ||
1271 | + case $4 in | ||
1272 | + $1 ) func_to_host_path_result="$3$func_to_host_path_result" | ||
1273 | + ;; | ||
1274 | + esac | ||
1275 | + case $4 in | ||
1276 | + $2 ) func_append func_to_host_path_result "$3" | ||
1277 | + ;; | ||
1278 | + esac | ||
1279 | +} | ||
1280 | +# end func_convert_path_front_back_pathsep | ||
1281 | + | ||
1282 | + | ||
1283 | +################################################## | ||
1284 | +# $build to $host FILE NAME CONVERSION FUNCTIONS # | ||
1285 | +################################################## | ||
1286 | +# invoked via `$to_host_file_cmd ARG' | ||
1287 | +# | ||
1288 | +# In each case, ARG is the path to be converted from $build to $host format. | ||
1289 | +# Result will be available in $func_to_host_file_result. | ||
1290 | + | ||
1291 | + | ||
1292 | +# func_to_host_file ARG | ||
1293 | +# Converts the file name ARG from $build format to $host format. Return result | ||
1294 | +# in func_to_host_file_result. | ||
1295 | +func_to_host_file () | ||
1296 | +{ | ||
1297 | + $opt_debug | ||
1298 | + $to_host_file_cmd "$1" | ||
1299 | +} | ||
1300 | +# end func_to_host_file | ||
1301 | + | ||
1302 | + | ||
1303 | +# func_to_tool_file ARG LAZY | ||
1304 | +# converts the file name ARG from $build format to toolchain format. Return | ||
1305 | +# result in func_to_tool_file_result. If the conversion in use is listed | ||
1306 | +# in (the comma separated) LAZY, no conversion takes place. | ||
1307 | +func_to_tool_file () | ||
1308 | +{ | ||
1309 | + $opt_debug | ||
1310 | + case ,$2, in | ||
1311 | + *,"$to_tool_file_cmd",*) | ||
1312 | + func_to_tool_file_result=$1 | ||
1313 | + ;; | ||
1314 | + *) | ||
1315 | + $to_tool_file_cmd "$1" | ||
1316 | + func_to_tool_file_result=$func_to_host_file_result | ||
1317 | + ;; | ||
1318 | + esac | ||
1319 | +} | ||
1320 | +# end func_to_tool_file | ||
1321 | + | ||
1322 | + | ||
1323 | +# func_convert_file_noop ARG | ||
1324 | +# Copy ARG to func_to_host_file_result. | ||
1325 | +func_convert_file_noop () | ||
1326 | +{ | ||
1327 | + func_to_host_file_result="$1" | ||
1328 | +} | ||
1329 | +# end func_convert_file_noop | ||
1330 | + | ||
1331 | + | ||
1332 | +# func_convert_file_msys_to_w32 ARG | ||
1333 | +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic | ||
1334 | +# conversion to w32 is not available inside the cwrapper. Returns result in | ||
1335 | +# func_to_host_file_result. | ||
1336 | +func_convert_file_msys_to_w32 () | ||
1337 | +{ | ||
1338 | + $opt_debug | ||
1339 | + func_to_host_file_result="$1" | ||
1340 | + if test -n "$1"; then | ||
1341 | + func_convert_core_msys_to_w32 "$1" | ||
1342 | + func_to_host_file_result="$func_convert_core_msys_to_w32_result" | ||
1343 | + fi | ||
1344 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
1345 | +} | ||
1346 | +# end func_convert_file_msys_to_w32 | ||
1347 | + | ||
1348 | + | ||
1349 | +# func_convert_file_cygwin_to_w32 ARG | ||
1350 | +# Convert file name ARG from Cygwin to w32 format. Returns result in | ||
1351 | +# func_to_host_file_result. | ||
1352 | +func_convert_file_cygwin_to_w32 () | ||
1353 | +{ | ||
1354 | + $opt_debug | ||
1355 | + func_to_host_file_result="$1" | ||
1356 | + if test -n "$1"; then | ||
1357 | + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use | ||
1358 | + # LT_CYGPATH in this case. | ||
1359 | + func_to_host_file_result=`cygpath -m "$1"` | ||
1360 | + fi | ||
1361 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
1362 | +} | ||
1363 | +# end func_convert_file_cygwin_to_w32 | ||
1364 | + | ||
1365 | + | ||
1366 | +# func_convert_file_nix_to_w32 ARG | ||
1367 | +# Convert file name ARG from *nix to w32 format. Requires a wine environment | ||
1368 | +# and a working winepath. Returns result in func_to_host_file_result. | ||
1369 | +func_convert_file_nix_to_w32 () | ||
1370 | +{ | ||
1371 | + $opt_debug | ||
1372 | + func_to_host_file_result="$1" | ||
1373 | + if test -n "$1"; then | ||
1374 | + func_convert_core_file_wine_to_w32 "$1" | ||
1375 | + func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" | ||
1376 | + fi | ||
1377 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
1378 | +} | ||
1379 | +# end func_convert_file_nix_to_w32 | ||
1380 | + | ||
1381 | + | ||
1382 | +# func_convert_file_msys_to_cygwin ARG | ||
1383 | +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. | ||
1384 | +# Returns result in func_to_host_file_result. | ||
1385 | +func_convert_file_msys_to_cygwin () | ||
1386 | +{ | ||
1387 | + $opt_debug | ||
1388 | + func_to_host_file_result="$1" | ||
1389 | + if test -n "$1"; then | ||
1390 | + func_convert_core_msys_to_w32 "$1" | ||
1391 | + func_cygpath -u "$func_convert_core_msys_to_w32_result" | ||
1392 | + func_to_host_file_result="$func_cygpath_result" | ||
1393 | + fi | ||
1394 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
1395 | +} | ||
1396 | +# end func_convert_file_msys_to_cygwin | ||
1397 | + | ||
1398 | + | ||
1399 | +# func_convert_file_nix_to_cygwin ARG | ||
1400 | +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed | ||
1401 | +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result | ||
1402 | +# in func_to_host_file_result. | ||
1403 | +func_convert_file_nix_to_cygwin () | ||
1404 | +{ | ||
1405 | + $opt_debug | ||
1406 | + func_to_host_file_result="$1" | ||
1407 | + if test -n "$1"; then | ||
1408 | + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. | ||
1409 | + func_convert_core_file_wine_to_w32 "$1" | ||
1410 | + func_cygpath -u "$func_convert_core_file_wine_to_w32_result" | ||
1411 | + func_to_host_file_result="$func_cygpath_result" | ||
1412 | + fi | ||
1413 | + func_convert_file_check "$1" "$func_to_host_file_result" | ||
1414 | +} | ||
1415 | +# end func_convert_file_nix_to_cygwin | ||
1416 | + | ||
1417 | + | ||
1418 | +############################################# | ||
1419 | +# $build to $host PATH CONVERSION FUNCTIONS # | ||
1420 | +############################################# | ||
1421 | +# invoked via `$to_host_path_cmd ARG' | ||
1422 | +# | ||
1423 | +# In each case, ARG is the path to be converted from $build to $host format. | ||
1424 | +# The result will be available in $func_to_host_path_result. | ||
1425 | +# | ||
1426 | +# Path separators are also converted from $build format to $host format. If | ||
1427 | +# ARG begins or ends with a path separator character, it is preserved (but | ||
1428 | +# converted to $host format) on output. | ||
1429 | +# | ||
1430 | +# All path conversion functions are named using the following convention: | ||
1431 | +# file name conversion function : func_convert_file_X_to_Y () | ||
1432 | +# path conversion function : func_convert_path_X_to_Y () | ||
1433 | +# where, for any given $build/$host combination the 'X_to_Y' value is the | ||
1434 | +# same. If conversion functions are added for new $build/$host combinations, | ||
1435 | +# the two new functions must follow this pattern, or func_init_to_host_path_cmd | ||
1436 | +# will break. | ||
1437 | + | ||
1438 | + | ||
1439 | +# func_init_to_host_path_cmd | ||
1440 | +# Ensures that function "pointer" variable $to_host_path_cmd is set to the | ||
1441 | +# appropriate value, based on the value of $to_host_file_cmd. | ||
1442 | +to_host_path_cmd= | ||
1443 | +func_init_to_host_path_cmd () | ||
1444 | +{ | ||
1445 | + $opt_debug | ||
1446 | + if test -z "$to_host_path_cmd"; then | ||
1447 | + func_stripname 'func_convert_file_' '' "$to_host_file_cmd" | ||
1448 | + to_host_path_cmd="func_convert_path_${func_stripname_result}" | ||
1449 | + fi | ||
1450 | +} | ||
1451 | + | ||
1452 | + | ||
1453 | +# func_to_host_path ARG | ||
1454 | +# Converts the path ARG from $build format to $host format. Return result | ||
1455 | +# in func_to_host_path_result. | ||
1456 | +func_to_host_path () | ||
1457 | +{ | ||
1458 | + $opt_debug | ||
1459 | + func_init_to_host_path_cmd | ||
1460 | + $to_host_path_cmd "$1" | ||
1461 | +} | ||
1462 | +# end func_to_host_path | ||
1463 | + | ||
1464 | + | ||
1465 | +# func_convert_path_noop ARG | ||
1466 | +# Copy ARG to func_to_host_path_result. | ||
1467 | +func_convert_path_noop () | ||
1468 | +{ | ||
1469 | + func_to_host_path_result="$1" | ||
1470 | +} | ||
1471 | +# end func_convert_path_noop | ||
1472 | + | ||
1473 | + | ||
1474 | +# func_convert_path_msys_to_w32 ARG | ||
1475 | +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic | ||
1476 | +# conversion to w32 is not available inside the cwrapper. Returns result in | ||
1477 | +# func_to_host_path_result. | ||
1478 | +func_convert_path_msys_to_w32 () | ||
1479 | +{ | ||
1480 | + $opt_debug | ||
1481 | + func_to_host_path_result="$1" | ||
1482 | + if test -n "$1"; then | ||
1483 | + # Remove leading and trailing path separator characters from ARG. MSYS | ||
1484 | + # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; | ||
1485 | + # and winepath ignores them completely. | ||
1486 | + func_stripname : : "$1" | ||
1487 | + func_to_host_path_tmp1=$func_stripname_result | ||
1488 | + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" | ||
1489 | + func_to_host_path_result="$func_convert_core_msys_to_w32_result" | ||
1490 | + func_convert_path_check : ";" \ | ||
1491 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
1492 | + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | ||
1493 | + fi | ||
1494 | +} | ||
1495 | +# end func_convert_path_msys_to_w32 | ||
1496 | + | ||
1497 | + | ||
1498 | +# func_convert_path_cygwin_to_w32 ARG | ||
1499 | +# Convert path ARG from Cygwin to w32 format. Returns result in | ||
1500 | +# func_to_host_file_result. | ||
1501 | +func_convert_path_cygwin_to_w32 () | ||
1502 | +{ | ||
1503 | + $opt_debug | ||
1504 | + func_to_host_path_result="$1" | ||
1505 | + if test -n "$1"; then | ||
1506 | + # See func_convert_path_msys_to_w32: | ||
1507 | + func_stripname : : "$1" | ||
1508 | + func_to_host_path_tmp1=$func_stripname_result | ||
1509 | + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` | ||
1510 | + func_convert_path_check : ";" \ | ||
1511 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
1512 | + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | ||
1513 | + fi | ||
1514 | +} | ||
1515 | +# end func_convert_path_cygwin_to_w32 | ||
1516 | + | ||
1517 | + | ||
1518 | +# func_convert_path_nix_to_w32 ARG | ||
1519 | +# Convert path ARG from *nix to w32 format. Requires a wine environment and | ||
1520 | +# a working winepath. Returns result in func_to_host_file_result. | ||
1521 | +func_convert_path_nix_to_w32 () | ||
1522 | +{ | ||
1523 | + $opt_debug | ||
1524 | + func_to_host_path_result="$1" | ||
1525 | + if test -n "$1"; then | ||
1526 | + # See func_convert_path_msys_to_w32: | ||
1527 | + func_stripname : : "$1" | ||
1528 | + func_to_host_path_tmp1=$func_stripname_result | ||
1529 | + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" | ||
1530 | + func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" | ||
1531 | + func_convert_path_check : ";" \ | ||
1532 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
1533 | + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | ||
1534 | + fi | ||
1535 | +} | ||
1536 | +# end func_convert_path_nix_to_w32 | ||
1537 | + | ||
1538 | + | ||
1539 | +# func_convert_path_msys_to_cygwin ARG | ||
1540 | +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. | ||
1541 | +# Returns result in func_to_host_file_result. | ||
1542 | +func_convert_path_msys_to_cygwin () | ||
1543 | +{ | ||
1544 | + $opt_debug | ||
1545 | + func_to_host_path_result="$1" | ||
1546 | + if test -n "$1"; then | ||
1547 | + # See func_convert_path_msys_to_w32: | ||
1548 | + func_stripname : : "$1" | ||
1549 | + func_to_host_path_tmp1=$func_stripname_result | ||
1550 | + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" | ||
1551 | + func_cygpath -u -p "$func_convert_core_msys_to_w32_result" | ||
1552 | + func_to_host_path_result="$func_cygpath_result" | ||
1553 | + func_convert_path_check : : \ | ||
1554 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
1555 | + func_convert_path_front_back_pathsep ":*" "*:" : "$1" | ||
1556 | + fi | ||
1557 | +} | ||
1558 | +# end func_convert_path_msys_to_cygwin | ||
1559 | + | ||
1560 | + | ||
1561 | +# func_convert_path_nix_to_cygwin ARG | ||
1562 | +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a | ||
1563 | +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in | ||
1564 | +# func_to_host_file_result. | ||
1565 | +func_convert_path_nix_to_cygwin () | ||
1566 | +{ | ||
1567 | + $opt_debug | ||
1568 | + func_to_host_path_result="$1" | ||
1569 | + if test -n "$1"; then | ||
1570 | + # Remove leading and trailing path separator characters from | ||
1571 | + # ARG. msys behavior is inconsistent here, cygpath turns them | ||
1572 | + # into '.;' and ';.', and winepath ignores them completely. | ||
1573 | + func_stripname : : "$1" | ||
1574 | + func_to_host_path_tmp1=$func_stripname_result | ||
1575 | + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" | ||
1576 | + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" | ||
1577 | + func_to_host_path_result="$func_cygpath_result" | ||
1578 | + func_convert_path_check : : \ | ||
1579 | + "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
1580 | + func_convert_path_front_back_pathsep ":*" "*:" : "$1" | ||
1581 | + fi | ||
1582 | +} | ||
1583 | +# end func_convert_path_nix_to_cygwin | ||
1584 | + | ||
1585 | + | ||
1586 | # func_mode_compile arg... | ||
1587 | func_mode_compile () | ||
1588 | { | ||
1589 | @@ -1282,12 +1985,12 @@ func_mode_compile () | ||
1590 | ;; | ||
1591 | |||
1592 | -pie | -fpie | -fPIE) | ||
1593 | - pie_flag="$pie_flag $arg" | ||
1594 | + func_append pie_flag " $arg" | ||
1595 | continue | ||
1596 | ;; | ||
1597 | |||
1598 | -shared | -static | -prefer-pic | -prefer-non-pic) | ||
1599 | - later="$later $arg" | ||
1600 | + func_append later " $arg" | ||
1601 | continue | ||
1602 | ;; | ||
1603 | |||
1604 | @@ -1308,15 +2011,14 @@ func_mode_compile () | ||
1605 | save_ifs="$IFS"; IFS=',' | ||
1606 | for arg in $args; do | ||
1607 | IFS="$save_ifs" | ||
1608 | - func_quote_for_eval "$arg" | ||
1609 | - lastarg="$lastarg $func_quote_for_eval_result" | ||
1610 | + func_append_quoted lastarg "$arg" | ||
1611 | done | ||
1612 | IFS="$save_ifs" | ||
1613 | func_stripname ' ' '' "$lastarg" | ||
1614 | lastarg=$func_stripname_result | ||
1615 | |||
1616 | # Add the arguments to base_compile. | ||
1617 | - base_compile="$base_compile $lastarg" | ||
1618 | + func_append base_compile " $lastarg" | ||
1619 | continue | ||
1620 | ;; | ||
1621 | |||
1622 | @@ -1332,8 +2034,7 @@ func_mode_compile () | ||
1623 | esac # case $arg_mode | ||
1624 | |||
1625 | # Aesthetically quote the previous argument. | ||
1626 | - func_quote_for_eval "$lastarg" | ||
1627 | - base_compile="$base_compile $func_quote_for_eval_result" | ||
1628 | + func_append_quoted base_compile "$lastarg" | ||
1629 | done # for arg | ||
1630 | |||
1631 | case $arg_mode in | ||
1632 | @@ -1358,7 +2059,7 @@ func_mode_compile () | ||
1633 | *.[cCFSifmso] | \ | ||
1634 | *.ada | *.adb | *.ads | *.asm | \ | ||
1635 | *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ | ||
1636 | - *.[fF][09]? | *.for | *.java | *.obj | *.sx) | ||
1637 | + *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) | ||
1638 | func_xform "$libobj" | ||
1639 | libobj=$func_xform_result | ||
1640 | ;; | ||
1641 | @@ -1433,7 +2134,7 @@ func_mode_compile () | ||
1642 | # Calculate the filename of the output object if compiler does | ||
1643 | # not support -o with -c | ||
1644 | if test "$compiler_c_o" = no; then | ||
1645 | - output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} | ||
1646 | + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} | ||
1647 | lockfile="$output_obj.lock" | ||
1648 | else | ||
1649 | output_obj= | ||
1650 | @@ -1464,17 +2165,16 @@ compiler." | ||
1651 | $opt_dry_run || $RM $removelist | ||
1652 | exit $EXIT_FAILURE | ||
1653 | fi | ||
1654 | - removelist="$removelist $output_obj" | ||
1655 | + func_append removelist " $output_obj" | ||
1656 | $ECHO "$srcfile" > "$lockfile" | ||
1657 | fi | ||
1658 | |||
1659 | $opt_dry_run || $RM $removelist | ||
1660 | - removelist="$removelist $lockfile" | ||
1661 | + func_append removelist " $lockfile" | ||
1662 | trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 | ||
1663 | |||
1664 | - if test -n "$fix_srcfile_path"; then | ||
1665 | - eval srcfile=\"$fix_srcfile_path\" | ||
1666 | - fi | ||
1667 | + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 | ||
1668 | + srcfile=$func_to_tool_file_result | ||
1669 | func_quote_for_eval "$srcfile" | ||
1670 | qsrcfile=$func_quote_for_eval_result | ||
1671 | |||
1672 | @@ -1494,7 +2194,7 @@ compiler." | ||
1673 | |||
1674 | if test -z "$output_obj"; then | ||
1675 | # Place PIC objects in $objdir | ||
1676 | - command="$command -o $lobj" | ||
1677 | + func_append command " -o $lobj" | ||
1678 | fi | ||
1679 | |||
1680 | func_show_eval_locale "$command" \ | ||
1681 | @@ -1541,11 +2241,11 @@ compiler." | ||
1682 | command="$base_compile $qsrcfile $pic_flag" | ||
1683 | fi | ||
1684 | if test "$compiler_c_o" = yes; then | ||
1685 | - command="$command -o $obj" | ||
1686 | + func_append command " -o $obj" | ||
1687 | fi | ||
1688 | |||
1689 | # Suppress compiler output if we already did a PIC compilation. | ||
1690 | - command="$command$suppress_output" | ||
1691 | + func_append command "$suppress_output" | ||
1692 | func_show_eval_locale "$command" \ | ||
1693 | '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' | ||
1694 | |||
1695 | @@ -1590,13 +2290,13 @@ compiler." | ||
1696 | } | ||
1697 | |||
1698 | $opt_help || { | ||
1699 | -test "$mode" = compile && func_mode_compile ${1+"$@"} | ||
1700 | + test "$opt_mode" = compile && func_mode_compile ${1+"$@"} | ||
1701 | } | ||
1702 | |||
1703 | func_mode_help () | ||
1704 | { | ||
1705 | # We need to display help for each of the modes. | ||
1706 | - case $mode in | ||
1707 | + case $opt_mode in | ||
1708 | "") | ||
1709 | # Generic help is extracted from the usage comments | ||
1710 | # at the start of this file. | ||
1711 | @@ -1627,10 +2327,11 @@ This mode accepts the following addition | ||
1712 | |||
1713 | -o OUTPUT-FILE set the output file name to OUTPUT-FILE | ||
1714 | -no-suppress do not suppress compiler output for multiple passes | ||
1715 | - -prefer-pic try to building PIC objects only | ||
1716 | - -prefer-non-pic try to building non-PIC objects only | ||
1717 | + -prefer-pic try to build PIC objects only | ||
1718 | + -prefer-non-pic try to build non-PIC objects only | ||
1719 | -shared do not build a \`.o' file suitable for static linking | ||
1720 | -static only build a \`.o' file suitable for static linking | ||
1721 | + -Wc,FLAG pass FLAG directly to the compiler | ||
1722 | |||
1723 | COMPILE-COMMAND is a command to be used in creating a \`standard' object file | ||
1724 | from the given SOURCEFILE. | ||
1725 | @@ -1683,7 +2384,7 @@ either the \`install' or \`cp' program. | ||
1726 | |||
1727 | The following components of INSTALL-COMMAND are treated specially: | ||
1728 | |||
1729 | - -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation | ||
1730 | + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation | ||
1731 | |||
1732 | The rest of the components are interpreted as arguments to that command (only | ||
1733 | BSD-compatible install options are recognized)." | ||
1734 | @@ -1733,6 +2434,11 @@ The following components of LINK-COMMAND | ||
1735 | -version-info CURRENT[:REVISION[:AGE]] | ||
1736 | specify library version info [each variable defaults to 0] | ||
1737 | -weak LIBNAME declare that the target provides the LIBNAME interface | ||
1738 | + -Wc,FLAG | ||
1739 | + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler | ||
1740 | + -Wl,FLAG | ||
1741 | + -Xlinker FLAG pass linker-specific FLAG directly to the linker | ||
1742 | + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) | ||
1743 | |||
1744 | All other options (arguments beginning with \`-') are ignored. | ||
1745 | |||
1746 | @@ -1766,18 +2472,44 @@ Otherwise, only FILE itself is deleted u | ||
1747 | ;; | ||
1748 | |||
1749 | *) | ||
1750 | - func_fatal_help "invalid operation mode \`$mode'" | ||
1751 | + func_fatal_help "invalid operation mode \`$opt_mode'" | ||
1752 | ;; | ||
1753 | esac | ||
1754 | |||
1755 | - $ECHO | ||
1756 | + echo | ||
1757 | $ECHO "Try \`$progname --help' for more information about other modes." | ||
1758 | - | ||
1759 | - exit $? | ||
1760 | } | ||
1761 | |||
1762 | - # Now that we've collected a possible --mode arg, show help if necessary | ||
1763 | - $opt_help && func_mode_help | ||
1764 | +# Now that we've collected a possible --mode arg, show help if necessary | ||
1765 | +if $opt_help; then | ||
1766 | + if test "$opt_help" = :; then | ||
1767 | + func_mode_help | ||
1768 | + else | ||
1769 | + { | ||
1770 | + func_help noexit | ||
1771 | + for opt_mode in compile link execute install finish uninstall clean; do | ||
1772 | + func_mode_help | ||
1773 | + done | ||
1774 | + } | sed -n '1p; 2,$s/^Usage:/ or: /p' | ||
1775 | + { | ||
1776 | + func_help noexit | ||
1777 | + for opt_mode in compile link execute install finish uninstall clean; do | ||
1778 | + echo | ||
1779 | + func_mode_help | ||
1780 | + done | ||
1781 | + } | | ||
1782 | + sed '1d | ||
1783 | + /^When reporting/,/^Report/{ | ||
1784 | + H | ||
1785 | + d | ||
1786 | + } | ||
1787 | + $x | ||
1788 | + /information about other modes/d | ||
1789 | + /more detailed .*MODE/d | ||
1790 | + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' | ||
1791 | + fi | ||
1792 | + exit $? | ||
1793 | +fi | ||
1794 | |||
1795 | |||
1796 | # func_mode_execute arg... | ||
1797 | @@ -1790,13 +2522,16 @@ func_mode_execute () | ||
1798 | func_fatal_help "you must specify a COMMAND" | ||
1799 | |||
1800 | # Handle -dlopen flags immediately. | ||
1801 | - for file in $execute_dlfiles; do | ||
1802 | + for file in $opt_dlopen; do | ||
1803 | test -f "$file" \ | ||
1804 | || func_fatal_help "\`$file' is not a file" | ||
1805 | |||
1806 | dir= | ||
1807 | case $file in | ||
1808 | *.la) | ||
1809 | + func_resolve_sysroot "$file" | ||
1810 | + file=$func_resolve_sysroot_result | ||
1811 | + | ||
1812 | # Check to see that this really is a libtool archive. | ||
1813 | func_lalib_unsafe_p "$file" \ | ||
1814 | || func_fatal_help "\`$lib' is not a valid libtool archive" | ||
1815 | @@ -1818,7 +2553,7 @@ func_mode_execute () | ||
1816 | dir="$func_dirname_result" | ||
1817 | |||
1818 | if test -f "$dir/$objdir/$dlname"; then | ||
1819 | - dir="$dir/$objdir" | ||
1820 | + func_append dir "/$objdir" | ||
1821 | else | ||
1822 | if test ! -f "$dir/$dlname"; then | ||
1823 | func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" | ||
1824 | @@ -1859,7 +2594,7 @@ func_mode_execute () | ||
1825 | for file | ||
1826 | do | ||
1827 | case $file in | ||
1828 | - -*) ;; | ||
1829 | + -* | *.la | *.lo ) ;; | ||
1830 | *) | ||
1831 | # Do a test to see if this is really a libtool program. | ||
1832 | if func_ltwrapper_script_p "$file"; then | ||
1833 | @@ -1875,8 +2610,7 @@ func_mode_execute () | ||
1834 | ;; | ||
1835 | esac | ||
1836 | # Quote arguments (to preserve shell metacharacters). | ||
1837 | - func_quote_for_eval "$file" | ||
1838 | - args="$args $func_quote_for_eval_result" | ||
1839 | + func_append_quoted args "$file" | ||
1840 | done | ||
1841 | |||
1842 | if test "X$opt_dry_run" = Xfalse; then | ||
1843 | @@ -1901,29 +2635,66 @@ func_mode_execute () | ||
1844 | # Display what would be done. | ||
1845 | if test -n "$shlibpath_var"; then | ||
1846 | eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" | ||
1847 | - $ECHO "export $shlibpath_var" | ||
1848 | + echo "export $shlibpath_var" | ||
1849 | fi | ||
1850 | $ECHO "$cmd$args" | ||
1851 | exit $EXIT_SUCCESS | ||
1852 | fi | ||
1853 | } | ||
1854 | |||
1855 | -test "$mode" = execute && func_mode_execute ${1+"$@"} | ||
1856 | +test "$opt_mode" = execute && func_mode_execute ${1+"$@"} | ||
1857 | + | ||
1858 | |||
1859 | +# func_mode_finish arg... | ||
1860 | +func_mode_finish () | ||
1861 | +{ | ||
1862 | + $opt_debug | ||
1863 | + libs= | ||
1864 | + libdirs= | ||
1865 | + admincmds= | ||
1866 | + | ||
1867 | + for opt in "$nonopt" ${1+"$@"} | ||
1868 | + do | ||
1869 | + if test -d "$opt"; then | ||
1870 | + func_append libdirs " $opt" | ||
1871 | + | ||
1872 | + elif test -f "$opt"; then | ||
1873 | + if func_lalib_unsafe_p "$opt"; then | ||
1874 | + func_append libs " $opt" | ||
1875 | + else | ||
1876 | + func_warning "\`$opt' is not a valid libtool archive" | ||
1877 | + fi | ||
1878 | + | ||
1879 | + else | ||
1880 | + func_fatal_error "invalid argument \`$opt'" | ||
1881 | + fi | ||
1882 | + done | ||
1883 | + | ||
1884 | + if test -n "$libs"; then | ||
1885 | + if test -n "$lt_sysroot"; then | ||
1886 | + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` | ||
1887 | + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" | ||
1888 | + else | ||
1889 | + sysroot_cmd= | ||
1890 | + fi | ||
1891 | |||
1892 | -# func_mode_finish arg... | ||
1893 | -func_mode_finish () | ||
1894 | -{ | ||
1895 | - $opt_debug | ||
1896 | - libdirs="$nonopt" | ||
1897 | - admincmds= | ||
1898 | + # Remove sysroot references | ||
1899 | + if $opt_dry_run; then | ||
1900 | + for lib in $libs; do | ||
1901 | + echo "removing references to $lt_sysroot and \`=' prefixes from $lib" | ||
1902 | + done | ||
1903 | + else | ||
1904 | + tmpdir=`func_mktempdir` | ||
1905 | + for lib in $libs; do | ||
1906 | + sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ | ||
1907 | + > $tmpdir/tmp-la | ||
1908 | + mv -f $tmpdir/tmp-la $lib | ||
1909 | + done | ||
1910 | + ${RM}r "$tmpdir" | ||
1911 | + fi | ||
1912 | + fi | ||
1913 | |||
1914 | if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then | ||
1915 | - for dir | ||
1916 | - do | ||
1917 | - libdirs="$libdirs $dir" | ||
1918 | - done | ||
1919 | - | ||
1920 | for libdir in $libdirs; do | ||
1921 | if test -n "$finish_cmds"; then | ||
1922 | # Do each command in the finish commands. | ||
1923 | @@ -1933,7 +2704,7 @@ func_mode_finish () | ||
1924 | if test -n "$finish_eval"; then | ||
1925 | # Do the single finish_eval. | ||
1926 | eval cmds=\"$finish_eval\" | ||
1927 | - $opt_dry_run || eval "$cmds" || admincmds="$admincmds | ||
1928 | + $opt_dry_run || eval "$cmds" || func_append admincmds " | ||
1929 | $cmds" | ||
1930 | fi | ||
1931 | done | ||
1932 | @@ -1942,53 +2713,55 @@ func_mode_finish () | ||
1933 | # Exit here if they wanted silent mode. | ||
1934 | $opt_silent && exit $EXIT_SUCCESS | ||
1935 | |||
1936 | - $ECHO "X----------------------------------------------------------------------" | $Xsed | ||
1937 | - $ECHO "Libraries have been installed in:" | ||
1938 | - for libdir in $libdirs; do | ||
1939 | - $ECHO " $libdir" | ||
1940 | - done | ||
1941 | - $ECHO | ||
1942 | - $ECHO "If you ever happen to want to link against installed libraries" | ||
1943 | - $ECHO "in a given directory, LIBDIR, you must either use libtool, and" | ||
1944 | - $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" | ||
1945 | - $ECHO "flag during linking and do at least one of the following:" | ||
1946 | - if test -n "$shlibpath_var"; then | ||
1947 | - $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" | ||
1948 | - $ECHO " during execution" | ||
1949 | - fi | ||
1950 | - if test -n "$runpath_var"; then | ||
1951 | - $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" | ||
1952 | - $ECHO " during linking" | ||
1953 | - fi | ||
1954 | - if test -n "$hardcode_libdir_flag_spec"; then | ||
1955 | - libdir=LIBDIR | ||
1956 | - eval flag=\"$hardcode_libdir_flag_spec\" | ||
1957 | + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then | ||
1958 | + echo "----------------------------------------------------------------------" | ||
1959 | + echo "Libraries have been installed in:" | ||
1960 | + for libdir in $libdirs; do | ||
1961 | + $ECHO " $libdir" | ||
1962 | + done | ||
1963 | + echo | ||
1964 | + echo "If you ever happen to want to link against installed libraries" | ||
1965 | + echo "in a given directory, LIBDIR, you must either use libtool, and" | ||
1966 | + echo "specify the full pathname of the library, or use the \`-LLIBDIR'" | ||
1967 | + echo "flag during linking and do at least one of the following:" | ||
1968 | + if test -n "$shlibpath_var"; then | ||
1969 | + echo " - add LIBDIR to the \`$shlibpath_var' environment variable" | ||
1970 | + echo " during execution" | ||
1971 | + fi | ||
1972 | + if test -n "$runpath_var"; then | ||
1973 | + echo " - add LIBDIR to the \`$runpath_var' environment variable" | ||
1974 | + echo " during linking" | ||
1975 | + fi | ||
1976 | + if test -n "$hardcode_libdir_flag_spec"; then | ||
1977 | + libdir=LIBDIR | ||
1978 | + eval flag=\"$hardcode_libdir_flag_spec\" | ||
1979 | |||
1980 | - $ECHO " - use the \`$flag' linker flag" | ||
1981 | - fi | ||
1982 | - if test -n "$admincmds"; then | ||
1983 | - $ECHO " - have your system administrator run these commands:$admincmds" | ||
1984 | - fi | ||
1985 | - if test -f /etc/ld.so.conf; then | ||
1986 | - $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" | ||
1987 | - fi | ||
1988 | - $ECHO | ||
1989 | + $ECHO " - use the \`$flag' linker flag" | ||
1990 | + fi | ||
1991 | + if test -n "$admincmds"; then | ||
1992 | + $ECHO " - have your system administrator run these commands:$admincmds" | ||
1993 | + fi | ||
1994 | + if test -f /etc/ld.so.conf; then | ||
1995 | + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" | ||
1996 | + fi | ||
1997 | + echo | ||
1998 | |||
1999 | - $ECHO "See any operating system documentation about shared libraries for" | ||
2000 | - case $host in | ||
2001 | - solaris2.[6789]|solaris2.1[0-9]) | ||
2002 | - $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" | ||
2003 | - $ECHO "pages." | ||
2004 | - ;; | ||
2005 | - *) | ||
2006 | - $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." | ||
2007 | - ;; | ||
2008 | - esac | ||
2009 | - $ECHO "X----------------------------------------------------------------------" | $Xsed | ||
2010 | + echo "See any operating system documentation about shared libraries for" | ||
2011 | + case $host in | ||
2012 | + solaris2.[6789]|solaris2.1[0-9]) | ||
2013 | + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" | ||
2014 | + echo "pages." | ||
2015 | + ;; | ||
2016 | + *) | ||
2017 | + echo "more information, such as the ld(1) and ld.so(8) manual pages." | ||
2018 | + ;; | ||
2019 | + esac | ||
2020 | + echo "----------------------------------------------------------------------" | ||
2021 | + fi | ||
2022 | exit $EXIT_SUCCESS | ||
2023 | } | ||
2024 | |||
2025 | -test "$mode" = finish && func_mode_finish ${1+"$@"} | ||
2026 | +test "$opt_mode" = finish && func_mode_finish ${1+"$@"} | ||
2027 | |||
2028 | |||
2029 | # func_mode_install arg... | ||
2030 | @@ -1999,7 +2772,7 @@ func_mode_install () | ||
2031 | # install_prog (especially on Windows NT). | ||
2032 | if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || | ||
2033 | # Allow the use of GNU shtool's install command. | ||
2034 | - $ECHO "X$nonopt" | $GREP shtool >/dev/null; then | ||
2035 | + case $nonopt in *shtool*) :;; *) false;; esac; then | ||
2036 | # Aesthetically quote it. | ||
2037 | func_quote_for_eval "$nonopt" | ||
2038 | install_prog="$func_quote_for_eval_result " | ||
2039 | @@ -2013,7 +2786,12 @@ func_mode_install () | ||
2040 | # The real first argument should be the name of the installation program. | ||
2041 | # Aesthetically quote it. | ||
2042 | func_quote_for_eval "$arg" | ||
2043 | - install_prog="$install_prog$func_quote_for_eval_result" | ||
2044 | + func_append install_prog "$func_quote_for_eval_result" | ||
2045 | + install_shared_prog=$install_prog | ||
2046 | + case " $install_prog " in | ||
2047 | + *[\\\ /]cp\ *) install_cp=: ;; | ||
2048 | + *) install_cp=false ;; | ||
2049 | + esac | ||
2050 | |||
2051 | # We need to accept at least all the BSD install flags. | ||
2052 | dest= | ||
2053 | @@ -2023,10 +2801,12 @@ func_mode_install () | ||
2054 | install_type= | ||
2055 | isdir=no | ||
2056 | stripme= | ||
2057 | + no_mode=: | ||
2058 | for arg | ||
2059 | do | ||
2060 | + arg2= | ||
2061 | if test -n "$dest"; then | ||
2062 | - files="$files $dest" | ||
2063 | + func_append files " $dest" | ||
2064 | dest=$arg | ||
2065 | continue | ||
2066 | fi | ||
2067 | @@ -2034,10 +2814,9 @@ func_mode_install () | ||
2068 | case $arg in | ||
2069 | -d) isdir=yes ;; | ||
2070 | -f) | ||
2071 | - case " $install_prog " in | ||
2072 | - *[\\\ /]cp\ *) ;; | ||
2073 | - *) prev=$arg ;; | ||
2074 | - esac | ||
2075 | + if $install_cp; then :; else | ||
2076 | + prev=$arg | ||
2077 | + fi | ||
2078 | ;; | ||
2079 | -g | -m | -o) | ||
2080 | prev=$arg | ||
2081 | @@ -2051,6 +2830,10 @@ func_mode_install () | ||
2082 | *) | ||
2083 | # If the previous option needed an argument, then skip it. | ||
2084 | if test -n "$prev"; then | ||
2085 | + if test "x$prev" = x-m && test -n "$install_override_mode"; then | ||
2086 | + arg2=$install_override_mode | ||
2087 | + no_mode=false | ||
2088 | + fi | ||
2089 | prev= | ||
2090 | else | ||
2091 | dest=$arg | ||
2092 | @@ -2061,7 +2844,11 @@ func_mode_install () | ||
2093 | |||
2094 | # Aesthetically quote the argument. | ||
2095 | func_quote_for_eval "$arg" | ||
2096 | - install_prog="$install_prog $func_quote_for_eval_result" | ||
2097 | + func_append install_prog " $func_quote_for_eval_result" | ||
2098 | + if test -n "$arg2"; then | ||
2099 | + func_quote_for_eval "$arg2" | ||
2100 | + fi | ||
2101 | + func_append install_shared_prog " $func_quote_for_eval_result" | ||
2102 | done | ||
2103 | |||
2104 | test -z "$install_prog" && \ | ||
2105 | @@ -2070,6 +2857,13 @@ func_mode_install () | ||
2106 | test -n "$prev" && \ | ||
2107 | func_fatal_help "the \`$prev' option requires an argument" | ||
2108 | |||
2109 | + if test -n "$install_override_mode" && $no_mode; then | ||
2110 | + if $install_cp; then :; else | ||
2111 | + func_quote_for_eval "$install_override_mode" | ||
2112 | + func_append install_shared_prog " -m $func_quote_for_eval_result" | ||
2113 | + fi | ||
2114 | + fi | ||
2115 | + | ||
2116 | if test -z "$files"; then | ||
2117 | if test -z "$dest"; then | ||
2118 | func_fatal_help "no file or destination specified" | ||
2119 | @@ -2124,10 +2918,13 @@ func_mode_install () | ||
2120 | case $file in | ||
2121 | *.$libext) | ||
2122 | # Do the static libraries later. | ||
2123 | - staticlibs="$staticlibs $file" | ||
2124 | + func_append staticlibs " $file" | ||
2125 | ;; | ||
2126 | |||
2127 | *.la) | ||
2128 | + func_resolve_sysroot "$file" | ||
2129 | + file=$func_resolve_sysroot_result | ||
2130 | + | ||
2131 | # Check to see that this really is a libtool archive. | ||
2132 | func_lalib_unsafe_p "$file" \ | ||
2133 | || func_fatal_help "\`$file' is not a valid libtool archive" | ||
2134 | @@ -2141,23 +2938,30 @@ func_mode_install () | ||
2135 | if test "X$destdir" = "X$libdir"; then | ||
2136 | case "$current_libdirs " in | ||
2137 | *" $libdir "*) ;; | ||
2138 | - *) current_libdirs="$current_libdirs $libdir" ;; | ||
2139 | + *) func_append current_libdirs " $libdir" ;; | ||
2140 | esac | ||
2141 | else | ||
2142 | # Note the libdir as a future libdir. | ||
2143 | case "$future_libdirs " in | ||
2144 | *" $libdir "*) ;; | ||
2145 | - *) future_libdirs="$future_libdirs $libdir" ;; | ||
2146 | + *) func_append future_libdirs " $libdir" ;; | ||
2147 | esac | ||
2148 | fi | ||
2149 | |||
2150 | func_dirname "$file" "/" "" | ||
2151 | dir="$func_dirname_result" | ||
2152 | - dir="$dir$objdir" | ||
2153 | + func_append dir "$objdir" | ||
2154 | |||
2155 | if test -n "$relink_command"; then | ||
2156 | + # Strip any trailing slash from the destination. | ||
2157 | + func_stripname '' '/' "$libdir" | ||
2158 | + destlibdir=$func_stripname_result | ||
2159 | + | ||
2160 | + func_stripname '' '/' "$destdir" | ||
2161 | + s_destdir=$func_stripname_result | ||
2162 | + | ||
2163 | # Determine the prefix the user has applied to our future dir. | ||
2164 | - inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` | ||
2165 | + inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"` | ||
2166 | |||
2167 | # Don't allow the user to place us outside of our expected | ||
2168 | # location b/c this prevents finding dependent libraries that | ||
2169 | @@ -2170,9 +2974,9 @@ func_mode_install () | ||
2170 | |||
2171 | if test -n "$inst_prefix_dir"; then | ||
2172 | # Stick the inst_prefix_dir data into the link command. | ||
2173 | - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` | ||
2174 | + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` | ||
2175 | else | ||
2176 | - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` | ||
2177 | + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` | ||
2178 | fi | ||
2179 | |||
2180 | func_warning "relinking \`$file'" | ||
2181 | @@ -2190,7 +2994,7 @@ func_mode_install () | ||
2182 | test -n "$relink_command" && srcname="$realname"T | ||
2183 | |||
2184 | # Install the shared library and build the symlinks. | ||
2185 | - func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ | ||
2186 | + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ | ||
2187 | 'exit $?' | ||
2188 | tstripme="$stripme" | ||
2189 | case $host_os in | ||
2190 | @@ -2230,7 +3034,7 @@ func_mode_install () | ||
2191 | func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' | ||
2192 | |||
2193 | # Maybe install the static library, too. | ||
2194 | - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" | ||
2195 | + test -n "$old_library" && func_append staticlibs " $dir/$old_library" | ||
2196 | ;; | ||
2197 | |||
2198 | *.lo) | ||
2199 | @@ -2330,7 +3134,7 @@ func_mode_install () | ||
2200 | if test -f "$lib"; then | ||
2201 | func_source "$lib" | ||
2202 | fi | ||
2203 | - libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test | ||
2204 | + libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test | ||
2205 | if test -n "$libdir" && test ! -f "$libfile"; then | ||
2206 | func_warning "\`$lib' has not been installed in \`$libdir'" | ||
2207 | finalize=no | ||
2208 | @@ -2349,7 +3153,7 @@ func_mode_install () | ||
2209 | file="$func_basename_result" | ||
2210 | outputname="$tmpdir/$file" | ||
2211 | # Replace the output file specification. | ||
2212 | - relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` | ||
2213 | + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` | ||
2214 | |||
2215 | $opt_silent || { | ||
2216 | func_quote_for_expand "$relink_command" | ||
2217 | @@ -2368,7 +3172,7 @@ func_mode_install () | ||
2218 | } | ||
2219 | else | ||
2220 | # Install the binary that we compiled earlier. | ||
2221 | - file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` | ||
2222 | + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` | ||
2223 | fi | ||
2224 | fi | ||
2225 | |||
2226 | @@ -2427,7 +3231,7 @@ func_mode_install () | ||
2227 | fi | ||
2228 | } | ||
2229 | |||
2230 | -test "$mode" = install && func_mode_install ${1+"$@"} | ||
2231 | +test "$opt_mode" = install && func_mode_install ${1+"$@"} | ||
2232 | |||
2233 | |||
2234 | # func_generate_dlsyms outputname originator pic_p | ||
2235 | @@ -2470,6 +3274,22 @@ func_generate_dlsyms () | ||
2236 | extern \"C\" { | ||
2237 | #endif | ||
2238 | |||
2239 | +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) | ||
2240 | +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" | ||
2241 | +#endif | ||
2242 | + | ||
2243 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
2244 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
2245 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
2246 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
2247 | +# define LT_DLSYM_CONST | ||
2248 | +#elif defined(__osf__) | ||
2249 | +/* This system does not cope well with relocations in const data. */ | ||
2250 | +# define LT_DLSYM_CONST | ||
2251 | +#else | ||
2252 | +# define LT_DLSYM_CONST const | ||
2253 | +#endif | ||
2254 | + | ||
2255 | /* External symbol declarations for the compiler. */\ | ||
2256 | " | ||
2257 | |||
2258 | @@ -2479,10 +3299,11 @@ extern \"C\" { | ||
2259 | $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" | ||
2260 | |||
2261 | # Add our own program objects to the symbol list. | ||
2262 | - progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` | ||
2263 | + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` | ||
2264 | for progfile in $progfiles; do | ||
2265 | - func_verbose "extracting global C symbols from \`$progfile'" | ||
2266 | - $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" | ||
2267 | + func_to_tool_file "$progfile" func_convert_file_msys_to_w32 | ||
2268 | + func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" | ||
2269 | + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" | ||
2270 | done | ||
2271 | |||
2272 | if test -n "$exclude_expsyms"; then | ||
2273 | @@ -2518,7 +3339,7 @@ extern \"C\" { | ||
2274 | eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' | ||
2275 | eval '$MV "$nlist"T "$nlist"' | ||
2276 | case $host in | ||
2277 | - *cygwin | *mingw* | *cegcc* ) | ||
2278 | + *cygwin* | *mingw* | *cegcc* ) | ||
2279 | eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' | ||
2280 | eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' | ||
2281 | ;; | ||
2282 | @@ -2531,10 +3352,52 @@ extern \"C\" { | ||
2283 | func_verbose "extracting global C symbols from \`$dlprefile'" | ||
2284 | func_basename "$dlprefile" | ||
2285 | name="$func_basename_result" | ||
2286 | - $opt_dry_run || { | ||
2287 | - eval '$ECHO ": $name " >> "$nlist"' | ||
2288 | - eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" | ||
2289 | - } | ||
2290 | + case $host in | ||
2291 | + *cygwin* | *mingw* | *cegcc* ) | ||
2292 | + # if an import library, we need to obtain dlname | ||
2293 | + if func_win32_import_lib_p "$dlprefile"; then | ||
2294 | + func_tr_sh "$dlprefile" | ||
2295 | + eval "curr_lafile=\$libfile_$func_tr_sh_result" | ||
2296 | + dlprefile_dlbasename="" | ||
2297 | + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then | ||
2298 | + # Use subshell, to avoid clobbering current variable values | ||
2299 | + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` | ||
2300 | + if test -n "$dlprefile_dlname" ; then | ||
2301 | + func_basename "$dlprefile_dlname" | ||
2302 | + dlprefile_dlbasename="$func_basename_result" | ||
2303 | + else | ||
2304 | + # no lafile. user explicitly requested -dlpreopen <import library>. | ||
2305 | + $sharedlib_from_linklib_cmd "$dlprefile" | ||
2306 | + dlprefile_dlbasename=$sharedlib_from_linklib_result | ||
2307 | + fi | ||
2308 | + fi | ||
2309 | + $opt_dry_run || { | ||
2310 | + if test -n "$dlprefile_dlbasename" ; then | ||
2311 | + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' | ||
2312 | + else | ||
2313 | + func_warning "Could not compute DLL name from $name" | ||
2314 | + eval '$ECHO ": $name " >> "$nlist"' | ||
2315 | + fi | ||
2316 | + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 | ||
2317 | + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | | ||
2318 | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" | ||
2319 | + } | ||
2320 | + else # not an import lib | ||
2321 | + $opt_dry_run || { | ||
2322 | + eval '$ECHO ": $name " >> "$nlist"' | ||
2323 | + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 | ||
2324 | + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" | ||
2325 | + } | ||
2326 | + fi | ||
2327 | + ;; | ||
2328 | + *) | ||
2329 | + $opt_dry_run || { | ||
2330 | + eval '$ECHO ": $name " >> "$nlist"' | ||
2331 | + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 | ||
2332 | + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" | ||
2333 | + } | ||
2334 | + ;; | ||
2335 | + esac | ||
2336 | done | ||
2337 | |||
2338 | $opt_dry_run || { | ||
2339 | @@ -2562,36 +3425,19 @@ extern \"C\" { | ||
2340 | if test -f "$nlist"S; then | ||
2341 | eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' | ||
2342 | else | ||
2343 | - $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" | ||
2344 | + echo '/* NONE */' >> "$output_objdir/$my_dlsyms" | ||
2345 | fi | ||
2346 | |||
2347 | - $ECHO >> "$output_objdir/$my_dlsyms" "\ | ||
2348 | + echo >> "$output_objdir/$my_dlsyms" "\ | ||
2349 | |||
2350 | /* The mapping between symbol names and symbols. */ | ||
2351 | typedef struct { | ||
2352 | const char *name; | ||
2353 | void *address; | ||
2354 | } lt_dlsymlist; | ||
2355 | -" | ||
2356 | - case $host in | ||
2357 | - *cygwin* | *mingw* | *cegcc* ) | ||
2358 | - $ECHO >> "$output_objdir/$my_dlsyms" "\ | ||
2359 | -/* DATA imports from DLLs on WIN32 con't be const, because | ||
2360 | - runtime relocations are performed -- see ld's documentation | ||
2361 | - on pseudo-relocs. */" | ||
2362 | - lt_dlsym_const= ;; | ||
2363 | - *osf5*) | ||
2364 | - echo >> "$output_objdir/$my_dlsyms" "\ | ||
2365 | -/* This system does not cope well with relocations in const data */" | ||
2366 | - lt_dlsym_const= ;; | ||
2367 | - *) | ||
2368 | - lt_dlsym_const=const ;; | ||
2369 | - esac | ||
2370 | - | ||
2371 | - $ECHO >> "$output_objdir/$my_dlsyms" "\ | ||
2372 | -extern $lt_dlsym_const lt_dlsymlist | ||
2373 | +extern LT_DLSYM_CONST lt_dlsymlist | ||
2374 | lt_${my_prefix}_LTX_preloaded_symbols[]; | ||
2375 | -$lt_dlsym_const lt_dlsymlist | ||
2376 | +LT_DLSYM_CONST lt_dlsymlist | ||
2377 | lt_${my_prefix}_LTX_preloaded_symbols[] = | ||
2378 | {\ | ||
2379 | { \"$my_originator\", (void *) 0 }," | ||
2380 | @@ -2604,7 +3450,7 @@ lt_${my_prefix}_LTX_preloaded_symbols[] | ||
2381 | eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" | ||
2382 | ;; | ||
2383 | esac | ||
2384 | - $ECHO >> "$output_objdir/$my_dlsyms" "\ | ||
2385 | + echo >> "$output_objdir/$my_dlsyms" "\ | ||
2386 | {0, (void *) 0} | ||
2387 | }; | ||
2388 | |||
2389 | @@ -2647,7 +3493,7 @@ static const void *lt_preloaded_setup() | ||
2390 | for arg in $LTCFLAGS; do | ||
2391 | case $arg in | ||
2392 | -pie | -fpie | -fPIE) ;; | ||
2393 | - *) symtab_cflags="$symtab_cflags $arg" ;; | ||
2394 | + *) func_append symtab_cflags " $arg" ;; | ||
2395 | esac | ||
2396 | done | ||
2397 | |||
2398 | @@ -2662,16 +3508,16 @@ static const void *lt_preloaded_setup() | ||
2399 | case $host in | ||
2400 | *cygwin* | *mingw* | *cegcc* ) | ||
2401 | if test -f "$output_objdir/$my_outputname.def"; then | ||
2402 | - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` | ||
2403 | - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` | ||
2404 | + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` | ||
2405 | + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` | ||
2406 | else | ||
2407 | - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` | ||
2408 | - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` | ||
2409 | + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` | ||
2410 | + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` | ||
2411 | fi | ||
2412 | ;; | ||
2413 | *) | ||
2414 | - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` | ||
2415 | - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` | ||
2416 | + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` | ||
2417 | + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` | ||
2418 | ;; | ||
2419 | esac | ||
2420 | ;; | ||
2421 | @@ -2685,8 +3531,8 @@ static const void *lt_preloaded_setup() | ||
2422 | # really was required. | ||
2423 | |||
2424 | # Nullify the symbol file. | ||
2425 | - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` | ||
2426 | - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` | ||
2427 | + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` | ||
2428 | + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` | ||
2429 | fi | ||
2430 | } | ||
2431 | |||
2432 | @@ -2696,6 +3542,7 @@ static const void *lt_preloaded_setup() | ||
2433 | # Need a lot of goo to handle *both* DLLs and import libs | ||
2434 | # Has to be a shell function in order to 'eat' the argument | ||
2435 | # that is supplied when $file_magic_command is called. | ||
2436 | +# Despite the name, also deal with 64 bit binaries. | ||
2437 | func_win32_libid () | ||
2438 | { | ||
2439 | $opt_debug | ||
2440 | @@ -2706,9 +3553,11 @@ func_win32_libid () | ||
2441 | win32_libid_type="x86 archive import" | ||
2442 | ;; | ||
2443 | *ar\ archive*) # could be an import, or static | ||
2444 | + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. | ||
2445 | if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | | ||
2446 | - $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then | ||
2447 | - win32_nmres=`eval $NM -f posix -A $1 | | ||
2448 | + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then | ||
2449 | + func_to_tool_file "$1" func_convert_file_msys_to_w32 | ||
2450 | + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | | ||
2451 | $SED -n -e ' | ||
2452 | 1,100{ | ||
2453 | / I /{ | ||
2454 | @@ -2737,6 +3586,131 @@ func_win32_libid () | ||
2455 | $ECHO "$win32_libid_type" | ||
2456 | } | ||
2457 | |||
2458 | +# func_cygming_dll_for_implib ARG | ||
2459 | +# | ||
2460 | +# Platform-specific function to extract the | ||
2461 | +# name of the DLL associated with the specified | ||
2462 | +# import library ARG. | ||
2463 | +# Invoked by eval'ing the libtool variable | ||
2464 | +# $sharedlib_from_linklib_cmd | ||
2465 | +# Result is available in the variable | ||
2466 | +# $sharedlib_from_linklib_result | ||
2467 | +func_cygming_dll_for_implib () | ||
2468 | +{ | ||
2469 | + $opt_debug | ||
2470 | + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` | ||
2471 | +} | ||
2472 | + | ||
2473 | +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs | ||
2474 | +# | ||
2475 | +# The is the core of a fallback implementation of a | ||
2476 | +# platform-specific function to extract the name of the | ||
2477 | +# DLL associated with the specified import library LIBNAME. | ||
2478 | +# | ||
2479 | +# SECTION_NAME is either .idata$6 or .idata$7, depending | ||
2480 | +# on the platform and compiler that created the implib. | ||
2481 | +# | ||
2482 | +# Echos the name of the DLL associated with the | ||
2483 | +# specified import library. | ||
2484 | +func_cygming_dll_for_implib_fallback_core () | ||
2485 | +{ | ||
2486 | + $opt_debug | ||
2487 | + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` | ||
2488 | + $OBJDUMP -s --section "$1" "$2" 2>/dev/null | | ||
2489 | + $SED '/^Contents of section '"$match_literal"':/{ | ||
2490 | + # Place marker at beginning of archive member dllname section | ||
2491 | + s/.*/====MARK====/ | ||
2492 | + p | ||
2493 | + d | ||
2494 | + } | ||
2495 | + # These lines can sometimes be longer than 43 characters, but | ||
2496 | + # are always uninteresting | ||
2497 | + /:[ ]*file format pe[i]\{,1\}-/d | ||
2498 | + /^In archive [^:]*:/d | ||
2499 | + # Ensure marker is printed | ||
2500 | + /^====MARK====/p | ||
2501 | + # Remove all lines with less than 43 characters | ||
2502 | + /^.\{43\}/!d | ||
2503 | + # From remaining lines, remove first 43 characters | ||
2504 | + s/^.\{43\}//' | | ||
2505 | + $SED -n ' | ||
2506 | + # Join marker and all lines until next marker into a single line | ||
2507 | + /^====MARK====/ b para | ||
2508 | + H | ||
2509 | + $ b para | ||
2510 | + b | ||
2511 | + :para | ||
2512 | + x | ||
2513 | + s/\n//g | ||
2514 | + # Remove the marker | ||
2515 | + s/^====MARK====// | ||
2516 | + # Remove trailing dots and whitespace | ||
2517 | + s/[\. \t]*$// | ||
2518 | |||
2519 | + /./p' | | ||
2520 | + # we now have a list, one entry per line, of the stringified | ||
2521 | + # contents of the appropriate section of all members of the | ||
2522 | + # archive which possess that section. Heuristic: eliminate | ||
2523 | + # all those which have a first or second character that is | ||
2524 | + # a '.' (that is, objdump's representation of an unprintable | ||
2525 | + # character.) This should work for all archives with less than | ||
2526 | + # 0x302f exports -- but will fail for DLLs whose name actually | ||
2527 | + # begins with a literal '.' or a single character followed by | ||
2528 | + # a '.'. | ||
2529 | + # | ||
2530 | + # Of those that remain, print the first one. | ||
2531 | + $SED -e '/^\./d;/^.\./d;q' | ||
2532 | +} | ||
2533 | + | ||
2534 | +# func_cygming_gnu_implib_p ARG | ||
2535 | +# This predicate returns with zero status (TRUE) if | ||
2536 | +# ARG is a GNU/binutils-style import library. Returns | ||
2537 | +# with nonzero status (FALSE) otherwise. | ||
2538 | +func_cygming_gnu_implib_p () | ||
2539 | +{ | ||
2540 | + $opt_debug | ||
2541 | + func_to_tool_file "$1" func_convert_file_msys_to_w32 | ||
2542 | + 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)$'` | ||
2543 | + test -n "$func_cygming_gnu_implib_tmp" | ||
2544 | +} | ||
2545 | + | ||
2546 | +# func_cygming_ms_implib_p ARG | ||
2547 | +# This predicate returns with zero status (TRUE) if | ||
2548 | +# ARG is an MS-style import library. Returns | ||
2549 | +# with nonzero status (FALSE) otherwise. | ||
2550 | +func_cygming_ms_implib_p () | ||
2551 | +{ | ||
2552 | + $opt_debug | ||
2553 | + func_to_tool_file "$1" func_convert_file_msys_to_w32 | ||
2554 | + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` | ||
2555 | + test -n "$func_cygming_ms_implib_tmp" | ||
2556 | +} | ||
2557 | + | ||
2558 | +# func_cygming_dll_for_implib_fallback ARG | ||
2559 | +# Platform-specific function to extract the | ||
2560 | +# name of the DLL associated with the specified | ||
2561 | +# import library ARG. | ||
2562 | +# | ||
2563 | +# This fallback implementation is for use when $DLLTOOL | ||
2564 | +# does not support the --identify-strict option. | ||
2565 | +# Invoked by eval'ing the libtool variable | ||
2566 | +# $sharedlib_from_linklib_cmd | ||
2567 | +# Result is available in the variable | ||
2568 | +# $sharedlib_from_linklib_result | ||
2569 | +func_cygming_dll_for_implib_fallback () | ||
2570 | +{ | ||
2571 | + $opt_debug | ||
2572 | + if func_cygming_gnu_implib_p "$1" ; then | ||
2573 | + # binutils import library | ||
2574 | + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` | ||
2575 | + elif func_cygming_ms_implib_p "$1" ; then | ||
2576 | + # ms-generated import library | ||
2577 | + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` | ||
2578 | + else | ||
2579 | + # unknown | ||
2580 | + sharedlib_from_linklib_result="" | ||
2581 | + fi | ||
2582 | +} | ||
2583 | |||
2584 | |||
2585 | # func_extract_an_archive dir oldlib | ||
2586 | @@ -2745,7 +3719,18 @@ func_extract_an_archive () | ||
2587 | $opt_debug | ||
2588 | f_ex_an_ar_dir="$1"; shift | ||
2589 | f_ex_an_ar_oldlib="$1" | ||
2590 | - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' | ||
2591 | + if test "$lock_old_archive_extraction" = yes; then | ||
2592 | + lockfile=$f_ex_an_ar_oldlib.lock | ||
2593 | + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do | ||
2594 | + func_echo "Waiting for $lockfile to be removed" | ||
2595 | + sleep 2 | ||
2596 | + done | ||
2597 | + fi | ||
2598 | + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ | ||
2599 | + 'stat=$?; rm -f "$lockfile"; exit $stat' | ||
2600 | + if test "$lock_old_archive_extraction" = yes; then | ||
2601 | + $opt_dry_run || rm -f "$lockfile" | ||
2602 | + fi | ||
2603 | if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then | ||
2604 | : | ||
2605 | else | ||
2606 | @@ -2816,7 +3801,7 @@ func_extract_archives () | ||
2607 | darwin_file= | ||
2608 | darwin_files= | ||
2609 | for darwin_file in $darwin_filelist; do | ||
2610 | - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` | ||
2611 | + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` | ||
2612 | $LIPO -create -output "$darwin_file" $darwin_files | ||
2613 | done # $darwin_filelist | ||
2614 | $RM -rf unfat-$$ | ||
2615 | @@ -2831,25 +3816,30 @@ func_extract_archives () | ||
2616 | func_extract_an_archive "$my_xdir" "$my_xabs" | ||
2617 | ;; | ||
2618 | esac | ||
2619 | - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` | ||
2620 | + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` | ||
2621 | done | ||
2622 | |||
2623 | func_extract_archives_result="$my_oldobjs" | ||
2624 | } | ||
2625 | |||
2626 | |||
2627 | - | ||
2628 | -# func_emit_wrapper_part1 [arg=no] | ||
2629 | +# func_emit_wrapper [arg=no] | ||
2630 | # | ||
2631 | -# Emit the first part of a libtool wrapper script on stdout. | ||
2632 | -# For more information, see the description associated with | ||
2633 | -# func_emit_wrapper(), below. | ||
2634 | -func_emit_wrapper_part1 () | ||
2635 | -{ | ||
2636 | - func_emit_wrapper_part1_arg1=no | ||
2637 | - if test -n "$1" ; then | ||
2638 | - func_emit_wrapper_part1_arg1=$1 | ||
2639 | - fi | ||
2640 | +# Emit a libtool wrapper script on stdout. | ||
2641 | +# Don't directly open a file because we may want to | ||
2642 | +# incorporate the script contents within a cygwin/mingw | ||
2643 | +# wrapper executable. Must ONLY be called from within | ||
2644 | +# func_mode_link because it depends on a number of variables | ||
2645 | +# set therein. | ||
2646 | +# | ||
2647 | +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR | ||
2648 | +# variable will take. If 'yes', then the emitted script | ||
2649 | +# will assume that the directory in which it is stored is | ||
2650 | +# the $objdir directory. This is a cygwin/mingw-specific | ||
2651 | +# behavior. | ||
2652 | +func_emit_wrapper () | ||
2653 | +{ | ||
2654 | + func_emit_wrapper_arg1=${1-no} | ||
2655 | |||
2656 | $ECHO "\ | ||
2657 | #! $SHELL | ||
2658 | @@ -2865,7 +3855,6 @@ func_emit_wrapper_part1 () | ||
2659 | |||
2660 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
2661 | # metacharacters that are still active within double-quoted strings. | ||
2662 | -Xsed='${SED} -e 1s/^X//' | ||
2663 | sed_quote_subst='$sed_quote_subst' | ||
2664 | |||
2665 | # Be Bourne compatible | ||
2666 | @@ -2896,31 +3885,132 @@ if test \"\$libtool_install_magic\" = \" | ||
2667 | else | ||
2668 | # When we are sourced in execute mode, \$file and \$ECHO are already set. | ||
2669 | if test \"\$libtool_execute_magic\" != \"$magic\"; then | ||
2670 | - ECHO=\"$qecho\" | ||
2671 | - file=\"\$0\" | ||
2672 | - # Make sure echo works. | ||
2673 | - if test \"X\$1\" = X--no-reexec; then | ||
2674 | - # Discard the --no-reexec flag, and continue. | ||
2675 | - shift | ||
2676 | - elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then | ||
2677 | - # Yippee, \$ECHO works! | ||
2678 | - : | ||
2679 | - else | ||
2680 | - # Restart under the correct shell, and then maybe \$ECHO will work. | ||
2681 | - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} | ||
2682 | - fi | ||
2683 | - fi\ | ||
2684 | + file=\"\$0\"" | ||
2685 | + | ||
2686 | + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` | ||
2687 | + $ECHO "\ | ||
2688 | + | ||
2689 | +# A function that is used when there is no print builtin or printf. | ||
2690 | +func_fallback_echo () | ||
2691 | +{ | ||
2692 | + eval 'cat <<_LTECHO_EOF | ||
2693 | +\$1 | ||
2694 | +_LTECHO_EOF' | ||
2695 | +} | ||
2696 | + ECHO=\"$qECHO\" | ||
2697 | + fi | ||
2698 | + | ||
2699 | +# Very basic option parsing. These options are (a) specific to | ||
2700 | +# the libtool wrapper, (b) are identical between the wrapper | ||
2701 | +# /script/ and the wrapper /executable/ which is used only on | ||
2702 | +# windows platforms, and (c) all begin with the string "--lt-" | ||
2703 | +# (application programs are unlikely to have options which match | ||
2704 | +# this pattern). | ||
2705 | +# | ||
2706 | +# There are only two supported options: --lt-debug and | ||
2707 | +# --lt-dump-script. There is, deliberately, no --lt-help. | ||
2708 | +# | ||
2709 | +# The first argument to this parsing function should be the | ||
2710 | +# script's $0 value, followed by "$@". | ||
2711 | +lt_option_debug= | ||
2712 | +func_parse_lt_options () | ||
2713 | +{ | ||
2714 | + lt_script_arg0=\$0 | ||
2715 | + shift | ||
2716 | + for lt_opt | ||
2717 | + do | ||
2718 | + case \"\$lt_opt\" in | ||
2719 | + --lt-debug) lt_option_debug=1 ;; | ||
2720 | + --lt-dump-script) | ||
2721 | + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` | ||
2722 | + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. | ||
2723 | + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` | ||
2724 | + cat \"\$lt_dump_D/\$lt_dump_F\" | ||
2725 | + exit 0 | ||
2726 | + ;; | ||
2727 | + --lt-*) | ||
2728 | + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 | ||
2729 | + exit 1 | ||
2730 | + ;; | ||
2731 | + esac | ||
2732 | + done | ||
2733 | + | ||
2734 | + # Print the debug banner immediately: | ||
2735 | + if test -n \"\$lt_option_debug\"; then | ||
2736 | + echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 | ||
2737 | + fi | ||
2738 | +} | ||
2739 | + | ||
2740 | +# Used when --lt-debug. Prints its arguments to stdout | ||
2741 | +# (redirection is the responsibility of the caller) | ||
2742 | +func_lt_dump_args () | ||
2743 | +{ | ||
2744 | + lt_dump_args_N=1; | ||
2745 | + for lt_arg | ||
2746 | + do | ||
2747 | + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" | ||
2748 | + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` | ||
2749 | + done | ||
2750 | +} | ||
2751 | + | ||
2752 | +# Core function for launching the target application | ||
2753 | +func_exec_program_core () | ||
2754 | +{ | ||
2755 | " | ||
2756 | - $ECHO "\ | ||
2757 | + case $host in | ||
2758 | + # Backslashes separate directories on plain windows | ||
2759 | + *-*-mingw | *-*-os2* | *-cegcc*) | ||
2760 | + $ECHO "\ | ||
2761 | + if test -n \"\$lt_option_debug\"; then | ||
2762 | + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 | ||
2763 | + func_lt_dump_args \${1+\"\$@\"} 1>&2 | ||
2764 | + fi | ||
2765 | + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} | ||
2766 | +" | ||
2767 | + ;; | ||
2768 | + | ||
2769 | + *) | ||
2770 | + $ECHO "\ | ||
2771 | + if test -n \"\$lt_option_debug\"; then | ||
2772 | + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 | ||
2773 | + func_lt_dump_args \${1+\"\$@\"} 1>&2 | ||
2774 | + fi | ||
2775 | + exec \"\$progdir/\$program\" \${1+\"\$@\"} | ||
2776 | +" | ||
2777 | + ;; | ||
2778 | + esac | ||
2779 | + $ECHO "\ | ||
2780 | + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 | ||
2781 | + exit 1 | ||
2782 | +} | ||
2783 | + | ||
2784 | +# A function to encapsulate launching the target application | ||
2785 | +# Strips options in the --lt-* namespace from \$@ and | ||
2786 | +# launches target application with the remaining arguments. | ||
2787 | +func_exec_program () | ||
2788 | +{ | ||
2789 | + for lt_wr_arg | ||
2790 | + do | ||
2791 | + case \$lt_wr_arg in | ||
2792 | + --lt-*) ;; | ||
2793 | + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; | ||
2794 | + esac | ||
2795 | + shift | ||
2796 | + done | ||
2797 | + func_exec_program_core \${1+\"\$@\"} | ||
2798 | +} | ||
2799 | + | ||
2800 | + # Parse options | ||
2801 | + func_parse_lt_options \"\$0\" \${1+\"\$@\"} | ||
2802 | |||
2803 | # Find the directory that this script lives in. | ||
2804 | - thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` | ||
2805 | + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` | ||
2806 | test \"x\$thisdir\" = \"x\$file\" && thisdir=. | ||
2807 | |||
2808 | # Follow symbolic links until we get to the real thisdir. | ||
2809 | - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` | ||
2810 | + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` | ||
2811 | while test -n \"\$file\"; do | ||
2812 | - destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` | ||
2813 | + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` | ||
2814 | |||
2815 | # If there was a directory component, then change thisdir. | ||
2816 | if test \"x\$destdir\" != \"x\$file\"; then | ||
2817 | @@ -2930,30 +4020,13 @@ else | ||
2818 | esac | ||
2819 | fi | ||
2820 | |||
2821 | - file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` | ||
2822 | - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` | ||
2823 | + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` | ||
2824 | + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` | ||
2825 | done | ||
2826 | -" | ||
2827 | -} | ||
2828 | -# end: func_emit_wrapper_part1 | ||
2829 | - | ||
2830 | -# func_emit_wrapper_part2 [arg=no] | ||
2831 | -# | ||
2832 | -# Emit the second part of a libtool wrapper script on stdout. | ||
2833 | -# For more information, see the description associated with | ||
2834 | -# func_emit_wrapper(), below. | ||
2835 | -func_emit_wrapper_part2 () | ||
2836 | -{ | ||
2837 | - func_emit_wrapper_part2_arg1=no | ||
2838 | - if test -n "$1" ; then | ||
2839 | - func_emit_wrapper_part2_arg1=$1 | ||
2840 | - fi | ||
2841 | - | ||
2842 | - $ECHO "\ | ||
2843 | |||
2844 | # Usually 'no', except on cygwin/mingw when embedded into | ||
2845 | # the cwrapper. | ||
2846 | - WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 | ||
2847 | + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 | ||
2848 | if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then | ||
2849 | # special case for '.' | ||
2850 | if test \"\$thisdir\" = \".\"; then | ||
2851 | @@ -2961,7 +4034,7 @@ func_emit_wrapper_part2 () | ||
2852 | fi | ||
2853 | # remove .libs from thisdir | ||
2854 | case \"\$thisdir\" in | ||
2855 | - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; | ||
2856 | + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; | ||
2857 | $objdir ) thisdir=. ;; | ||
2858 | esac | ||
2859 | fi | ||
2860 | @@ -3016,6 +4089,18 @@ func_emit_wrapper_part2 () | ||
2861 | |||
2862 | if test -f \"\$progdir/\$program\"; then" | ||
2863 | |||
2864 | + # fixup the dll searchpath if we need to. | ||
2865 | + # | ||
2866 | + # Fix the DLL searchpath if we need to. Do this before prepending | ||
2867 | + # to shlibpath, because on Windows, both are PATH and uninstalled | ||
2868 | + # libraries must come first. | ||
2869 | + if test -n "$dllsearchpath"; then | ||
2870 | + $ECHO "\ | ||
2871 | + # Add the dll search path components to the executable PATH | ||
2872 | + PATH=$dllsearchpath:\$PATH | ||
2873 | +" | ||
2874 | + fi | ||
2875 | + | ||
2876 | # Export our shlibpath_var if we have one. | ||
2877 | if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then | ||
2878 | $ECHO "\ | ||
2879 | @@ -3024,253 +4109,28 @@ func_emit_wrapper_part2 () | ||
2880 | |||
2881 | # Some systems cannot cope with colon-terminated $shlibpath_var | ||
2882 | # The second colon is a workaround for a bug in BeOS R4 sed | ||
2883 | - $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` | ||
2884 | + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` | ||
2885 | |||
2886 | export $shlibpath_var | ||
2887 | " | ||
2888 | fi | ||
2889 | |||
2890 | - # fixup the dll searchpath if we need to. | ||
2891 | - if test -n "$dllsearchpath"; then | ||
2892 | - $ECHO "\ | ||
2893 | - # Add the dll search path components to the executable PATH | ||
2894 | - PATH=$dllsearchpath:\$PATH | ||
2895 | -" | ||
2896 | - fi | ||
2897 | - | ||
2898 | $ECHO "\ | ||
2899 | if test \"\$libtool_execute_magic\" != \"$magic\"; then | ||
2900 | # Run the actual program with our arguments. | ||
2901 | -" | ||
2902 | - case $host in | ||
2903 | - # Backslashes separate directories on plain windows | ||
2904 | - *-*-mingw | *-*-os2* | *-cegcc*) | ||
2905 | - $ECHO "\ | ||
2906 | - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} | ||
2907 | -" | ||
2908 | - ;; | ||
2909 | - | ||
2910 | - *) | ||
2911 | - $ECHO "\ | ||
2912 | - exec \"\$progdir/\$program\" \${1+\"\$@\"} | ||
2913 | -" | ||
2914 | - ;; | ||
2915 | - esac | ||
2916 | - $ECHO "\ | ||
2917 | - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 | ||
2918 | - exit 1 | ||
2919 | + func_exec_program \${1+\"\$@\"} | ||
2920 | fi | ||
2921 | else | ||
2922 | # The program doesn't exist. | ||
2923 | - \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 | ||
2924 | - \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 | ||
2925 | - $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 | ||
2926 | - exit 1 | ||
2927 | - fi | ||
2928 | -fi\ | ||
2929 | -" | ||
2930 | -} | ||
2931 | -# end: func_emit_wrapper_part2 | ||
2932 | - | ||
2933 | - | ||
2934 | -# func_emit_wrapper [arg=no] | ||
2935 | -# | ||
2936 | -# Emit a libtool wrapper script on stdout. | ||
2937 | -# Don't directly open a file because we may want to | ||
2938 | -# incorporate the script contents within a cygwin/mingw | ||
2939 | -# wrapper executable. Must ONLY be called from within | ||
2940 | -# func_mode_link because it depends on a number of variables | ||
2941 | -# set therein. | ||
2942 | -# | ||
2943 | -# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR | ||
2944 | -# variable will take. If 'yes', then the emitted script | ||
2945 | -# will assume that the directory in which it is stored is | ||
2946 | -# the $objdir directory. This is a cygwin/mingw-specific | ||
2947 | -# behavior. | ||
2948 | -func_emit_wrapper () | ||
2949 | -{ | ||
2950 | - func_emit_wrapper_arg1=no | ||
2951 | - if test -n "$1" ; then | ||
2952 | - func_emit_wrapper_arg1=$1 | ||
2953 | - fi | ||
2954 | - | ||
2955 | - # split this up so that func_emit_cwrapperexe_src | ||
2956 | - # can call each part independently. | ||
2957 | - func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" | ||
2958 | - func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" | ||
2959 | -} | ||
2960 | - | ||
2961 | - | ||
2962 | -# func_to_host_path arg | ||
2963 | -# | ||
2964 | -# Convert paths to host format when used with build tools. | ||
2965 | -# Intended for use with "native" mingw (where libtool itself | ||
2966 | -# is running under the msys shell), or in the following cross- | ||
2967 | -# build environments: | ||
2968 | -# $build $host | ||
2969 | -# mingw (msys) mingw [e.g. native] | ||
2970 | -# cygwin mingw | ||
2971 | -# *nix + wine mingw | ||
2972 | -# where wine is equipped with the `winepath' executable. | ||
2973 | -# In the native mingw case, the (msys) shell automatically | ||
2974 | -# converts paths for any non-msys applications it launches, | ||
2975 | -# but that facility isn't available from inside the cwrapper. | ||
2976 | -# Similar accommodations are necessary for $host mingw and | ||
2977 | -# $build cygwin. Calling this function does no harm for other | ||
2978 | -# $host/$build combinations not listed above. | ||
2979 | -# | ||
2980 | -# ARG is the path (on $build) that should be converted to | ||
2981 | -# the proper representation for $host. The result is stored | ||
2982 | -# in $func_to_host_path_result. | ||
2983 | -func_to_host_path () | ||
2984 | -{ | ||
2985 | - func_to_host_path_result="$1" | ||
2986 | - if test -n "$1" ; then | ||
2987 | - case $host in | ||
2988 | - *mingw* ) | ||
2989 | - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | ||
2990 | - case $build in | ||
2991 | - *mingw* ) # actually, msys | ||
2992 | - # awkward: cmd appends spaces to result | ||
2993 | - lt_sed_strip_trailing_spaces="s/[ ]*\$//" | ||
2994 | - func_to_host_path_tmp1=`( cmd //c echo "$1" |\ | ||
2995 | - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` | ||
2996 | - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ | ||
2997 | - $SED -e "$lt_sed_naive_backslashify"` | ||
2998 | - ;; | ||
2999 | - *cygwin* ) | ||
3000 | - func_to_host_path_tmp1=`cygpath -w "$1"` | ||
3001 | - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ | ||
3002 | - $SED -e "$lt_sed_naive_backslashify"` | ||
3003 | - ;; | ||
3004 | - * ) | ||
3005 | - # Unfortunately, winepath does not exit with a non-zero | ||
3006 | - # error code, so we are forced to check the contents of | ||
3007 | - # stdout. On the other hand, if the command is not | ||
3008 | - # found, the shell will set an exit code of 127 and print | ||
3009 | - # *an error message* to stdout. So we must check for both | ||
3010 | - # error code of zero AND non-empty stdout, which explains | ||
3011 | - # the odd construction: | ||
3012 | - func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` | ||
3013 | - if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then | ||
3014 | - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ | ||
3015 | - $SED -e "$lt_sed_naive_backslashify"` | ||
3016 | - else | ||
3017 | - # Allow warning below. | ||
3018 | - func_to_host_path_result="" | ||
3019 | - fi | ||
3020 | - ;; | ||
3021 | - esac | ||
3022 | - if test -z "$func_to_host_path_result" ; then | ||
3023 | - func_error "Could not determine host path corresponding to" | ||
3024 | - func_error " '$1'" | ||
3025 | - func_error "Continuing, but uninstalled executables may not work." | ||
3026 | - # Fallback: | ||
3027 | - func_to_host_path_result="$1" | ||
3028 | - fi | ||
3029 | - ;; | ||
3030 | - esac | ||
3031 | - fi | ||
3032 | -} | ||
3033 | -# end: func_to_host_path | ||
3034 | - | ||
3035 | -# func_to_host_pathlist arg | ||
3036 | -# | ||
3037 | -# Convert pathlists to host format when used with build tools. | ||
3038 | -# See func_to_host_path(), above. This function supports the | ||
3039 | -# following $build/$host combinations (but does no harm for | ||
3040 | -# combinations not listed here): | ||
3041 | -# $build $host | ||
3042 | -# mingw (msys) mingw [e.g. native] | ||
3043 | -# cygwin mingw | ||
3044 | -# *nix + wine mingw | ||
3045 | -# | ||
3046 | -# Path separators are also converted from $build format to | ||
3047 | -# $host format. If ARG begins or ends with a path separator | ||
3048 | -# character, it is preserved (but converted to $host format) | ||
3049 | -# on output. | ||
3050 | -# | ||
3051 | -# ARG is a pathlist (on $build) that should be converted to | ||
3052 | -# the proper representation on $host. The result is stored | ||
3053 | -# in $func_to_host_pathlist_result. | ||
3054 | -func_to_host_pathlist () | ||
3055 | -{ | ||
3056 | - func_to_host_pathlist_result="$1" | ||
3057 | - if test -n "$1" ; then | ||
3058 | - case $host in | ||
3059 | - *mingw* ) | ||
3060 | - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | ||
3061 | - # Remove leading and trailing path separator characters from | ||
3062 | - # ARG. msys behavior is inconsistent here, cygpath turns them | ||
3063 | - # into '.;' and ';.', and winepath ignores them completely. | ||
3064 | - func_to_host_pathlist_tmp2="$1" | ||
3065 | - # Once set for this call, this variable should not be | ||
3066 | - # reassigned. It is used in tha fallback case. | ||
3067 | - func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ | ||
3068 | - $SED -e 's|^:*||' -e 's|:*$||'` | ||
3069 | - case $build in | ||
3070 | - *mingw* ) # Actually, msys. | ||
3071 | - # Awkward: cmd appends spaces to result. | ||
3072 | - lt_sed_strip_trailing_spaces="s/[ ]*\$//" | ||
3073 | - func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ | ||
3074 | - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` | ||
3075 | - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ | ||
3076 | - $SED -e "$lt_sed_naive_backslashify"` | ||
3077 | - ;; | ||
3078 | - *cygwin* ) | ||
3079 | - func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` | ||
3080 | - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ | ||
3081 | - $SED -e "$lt_sed_naive_backslashify"` | ||
3082 | - ;; | ||
3083 | - * ) | ||
3084 | - # unfortunately, winepath doesn't convert pathlists | ||
3085 | - func_to_host_pathlist_result="" | ||
3086 | - func_to_host_pathlist_oldIFS=$IFS | ||
3087 | - IFS=: | ||
3088 | - for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do | ||
3089 | - IFS=$func_to_host_pathlist_oldIFS | ||
3090 | - if test -n "$func_to_host_pathlist_f" ; then | ||
3091 | - func_to_host_path "$func_to_host_pathlist_f" | ||
3092 | - if test -n "$func_to_host_path_result" ; then | ||
3093 | - if test -z "$func_to_host_pathlist_result" ; then | ||
3094 | - func_to_host_pathlist_result="$func_to_host_path_result" | ||
3095 | - else | ||
3096 | - func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" | ||
3097 | - fi | ||
3098 | - fi | ||
3099 | - fi | ||
3100 | - IFS=: | ||
3101 | - done | ||
3102 | - IFS=$func_to_host_pathlist_oldIFS | ||
3103 | - ;; | ||
3104 | - esac | ||
3105 | - if test -z "$func_to_host_pathlist_result" ; then | ||
3106 | - func_error "Could not determine the host path(s) corresponding to" | ||
3107 | - func_error " '$1'" | ||
3108 | - func_error "Continuing, but uninstalled executables may not work." | ||
3109 | - # Fallback. This may break if $1 contains DOS-style drive | ||
3110 | - # specifications. The fix is not to complicate the expression | ||
3111 | - # below, but for the user to provide a working wine installation | ||
3112 | - # with winepath so that path translation in the cross-to-mingw | ||
3113 | - # case works properly. | ||
3114 | - lt_replace_pathsep_nix_to_dos="s|:|;|g" | ||
3115 | - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ | ||
3116 | - $SED -e "$lt_replace_pathsep_nix_to_dos"` | ||
3117 | - fi | ||
3118 | - # Now, add the leading and trailing path separators back | ||
3119 | - case "$1" in | ||
3120 | - :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" | ||
3121 | - ;; | ||
3122 | - esac | ||
3123 | - case "$1" in | ||
3124 | - *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" | ||
3125 | - ;; | ||
3126 | - esac | ||
3127 | - ;; | ||
3128 | - esac | ||
3129 | + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 | ||
3130 | + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 | ||
3131 | + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 | ||
3132 | + exit 1 | ||
3133 | fi | ||
3134 | +fi\ | ||
3135 | +" | ||
3136 | } | ||
3137 | -# end: func_to_host_pathlist | ||
3138 | + | ||
3139 | |||
3140 | # func_emit_cwrapperexe_src | ||
3141 | # emit the source code for a wrapper executable on stdout | ||
3142 | @@ -3288,31 +4148,23 @@ func_emit_cwrapperexe_src () | ||
3143 | |||
3144 | This wrapper executable should never be moved out of the build directory. | ||
3145 | If it is, it will not operate correctly. | ||
3146 | - | ||
3147 | - Currently, it simply execs the wrapper *script* "$SHELL $output", | ||
3148 | - but could eventually absorb all of the scripts functionality and | ||
3149 | - exec $objdir/$outputname directly. | ||
3150 | */ | ||
3151 | EOF | ||
3152 | cat <<"EOF" | ||
3153 | +#ifdef _MSC_VER | ||
3154 | +# define _CRT_SECURE_NO_DEPRECATE 1 | ||
3155 | +#endif | ||
3156 | #include <stdio.h> | ||
3157 | #include <stdlib.h> | ||
3158 | #ifdef _MSC_VER | ||
3159 | # include <direct.h> | ||
3160 | # include <process.h> | ||
3161 | # include <io.h> | ||
3162 | -# define setmode _setmode | ||
3163 | #else | ||
3164 | # include <unistd.h> | ||
3165 | # include <stdint.h> | ||
3166 | # ifdef __CYGWIN__ | ||
3167 | # include <io.h> | ||
3168 | -# define HAVE_SETENV | ||
3169 | -# ifdef __STRICT_ANSI__ | ||
3170 | -char *realpath (const char *, char *); | ||
3171 | -int putenv (char *); | ||
3172 | -int setenv (const char *, const char *, int); | ||
3173 | -# endif | ||
3174 | # endif | ||
3175 | #endif | ||
3176 | #include <malloc.h> | ||
3177 | @@ -3324,6 +4176,44 @@ int setenv (const char *, const char *, | ||
3178 | #include <fcntl.h> | ||
3179 | #include <sys/stat.h> | ||
3180 | |||
3181 | +/* declarations of non-ANSI functions */ | ||
3182 | +#if defined(__MINGW32__) | ||
3183 | +# ifdef __STRICT_ANSI__ | ||
3184 | +int _putenv (const char *); | ||
3185 | +# endif | ||
3186 | +#elif defined(__CYGWIN__) | ||
3187 | +# ifdef __STRICT_ANSI__ | ||
3188 | +char *realpath (const char *, char *); | ||
3189 | +int putenv (char *); | ||
3190 | +int setenv (const char *, const char *, int); | ||
3191 | +# endif | ||
3192 | +/* #elif defined (other platforms) ... */ | ||
3193 | +#endif | ||
3194 | + | ||
3195 | +/* portability defines, excluding path handling macros */ | ||
3196 | +#if defined(_MSC_VER) | ||
3197 | +# define setmode _setmode | ||
3198 | +# define stat _stat | ||
3199 | +# define chmod _chmod | ||
3200 | +# define getcwd _getcwd | ||
3201 | +# define putenv _putenv | ||
3202 | +# define S_IXUSR _S_IEXEC | ||
3203 | +# ifndef _INTPTR_T_DEFINED | ||
3204 | +# define _INTPTR_T_DEFINED | ||
3205 | +# define intptr_t int | ||
3206 | +# endif | ||
3207 | +#elif defined(__MINGW32__) | ||
3208 | +# define setmode _setmode | ||
3209 | +# define stat _stat | ||
3210 | +# define chmod _chmod | ||
3211 | +# define getcwd _getcwd | ||
3212 | +# define putenv _putenv | ||
3213 | +#elif defined(__CYGWIN__) | ||
3214 | +# define HAVE_SETENV | ||
3215 | +# define FOPEN_WB "wb" | ||
3216 | +/* #elif defined (other platforms) ... */ | ||
3217 | +#endif | ||
3218 | + | ||
3219 | #if defined(PATH_MAX) | ||
3220 | # define LT_PATHMAX PATH_MAX | ||
3221 | #elif defined(MAXPATHLEN) | ||
3222 | @@ -3339,14 +4229,7 @@ int setenv (const char *, const char *, | ||
3223 | # define S_IXGRP 0 | ||
3224 | #endif | ||
3225 | |||
3226 | -#ifdef _MSC_VER | ||
3227 | -# define S_IXUSR _S_IEXEC | ||
3228 | -# define stat _stat | ||
3229 | -# ifndef _INTPTR_T_DEFINED | ||
3230 | -# define intptr_t int | ||
3231 | -# endif | ||
3232 | -#endif | ||
3233 | - | ||
3234 | +/* path handling portability macros */ | ||
3235 | #ifndef DIR_SEPARATOR | ||
3236 | # define DIR_SEPARATOR '/' | ||
3237 | # define PATH_SEPARATOR ':' | ||
3238 | @@ -3377,10 +4260,6 @@ int setenv (const char *, const char *, | ||
3239 | # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) | ||
3240 | #endif /* PATH_SEPARATOR_2 */ | ||
3241 | |||
3242 | -#ifdef __CYGWIN__ | ||
3243 | -# define FOPEN_WB "wb" | ||
3244 | -#endif | ||
3245 | - | ||
3246 | #ifndef FOPEN_WB | ||
3247 | # define FOPEN_WB "w" | ||
3248 | #endif | ||
3249 | @@ -3393,22 +4272,13 @@ int setenv (const char *, const char *, | ||
3250 | if (stale) { free ((void *) stale); stale = 0; } \ | ||
3251 | } while (0) | ||
3252 | |||
3253 | -#undef LTWRAPPER_DEBUGPRINTF | ||
3254 | -#if defined DEBUGWRAPPER | ||
3255 | -# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args | ||
3256 | -static void | ||
3257 | -ltwrapper_debugprintf (const char *fmt, ...) | ||
3258 | -{ | ||
3259 | - va_list args; | ||
3260 | - va_start (args, fmt); | ||
3261 | - (void) vfprintf (stderr, fmt, args); | ||
3262 | - va_end (args); | ||
3263 | -} | ||
3264 | +#if defined(LT_DEBUGWRAPPER) | ||
3265 | +static int lt_debug = 1; | ||
3266 | #else | ||
3267 | -# define LTWRAPPER_DEBUGPRINTF(args) | ||
3268 | +static int lt_debug = 0; | ||
3269 | #endif | ||
3270 | |||
3271 | -const char *program_name = NULL; | ||
3272 | +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ | ||
3273 | |||
3274 | void *xmalloc (size_t num); | ||
3275 | char *xstrdup (const char *string); | ||
3276 | @@ -3418,41 +4288,27 @@ char *chase_symlinks (const char *pathsp | ||
3277 | int make_executable (const char *path); | ||
3278 | int check_executable (const char *path); | ||
3279 | char *strendzap (char *str, const char *pat); | ||
3280 | -void lt_fatal (const char *message, ...); | ||
3281 | +void lt_debugprintf (const char *file, int line, const char *fmt, ...); | ||
3282 | +void lt_fatal (const char *file, int line, const char *message, ...); | ||
3283 | +static const char *nonnull (const char *s); | ||
3284 | +static const char *nonempty (const char *s); | ||
3285 | void lt_setenv (const char *name, const char *value); | ||
3286 | char *lt_extend_str (const char *orig_value, const char *add, int to_end); | ||
3287 | -void lt_opt_process_env_set (const char *arg); | ||
3288 | -void lt_opt_process_env_prepend (const char *arg); | ||
3289 | -void lt_opt_process_env_append (const char *arg); | ||
3290 | -int lt_split_name_value (const char *arg, char** name, char** value); | ||
3291 | void lt_update_exe_path (const char *name, const char *value); | ||
3292 | void lt_update_lib_path (const char *name, const char *value); | ||
3293 | - | ||
3294 | -static const char *script_text_part1 = | ||
3295 | -EOF | ||
3296 | - | ||
3297 | - func_emit_wrapper_part1 yes | | ||
3298 | - $SED -e 's/\([\\"]\)/\\\1/g' \ | ||
3299 | - -e 's/^/ "/' -e 's/$/\\n"/' | ||
3300 | - echo ";" | ||
3301 | - cat <<EOF | ||
3302 | - | ||
3303 | -static const char *script_text_part2 = | ||
3304 | +char **prepare_spawn (char **argv); | ||
3305 | +void lt_dump_script (FILE *f); | ||
3306 | EOF | ||
3307 | - func_emit_wrapper_part2 yes | | ||
3308 | - $SED -e 's/\([\\"]\)/\\\1/g' \ | ||
3309 | - -e 's/^/ "/' -e 's/$/\\n"/' | ||
3310 | - echo ";" | ||
3311 | |||
3312 | cat <<EOF | ||
3313 | -const char * MAGIC_EXE = "$magic_exe"; | ||
3314 | +volatile const char * MAGIC_EXE = "$magic_exe"; | ||
3315 | const char * LIB_PATH_VARNAME = "$shlibpath_var"; | ||
3316 | EOF | ||
3317 | |||
3318 | if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then | ||
3319 | - func_to_host_pathlist "$temp_rpath" | ||
3320 | + func_to_host_path "$temp_rpath" | ||
3321 | cat <<EOF | ||
3322 | -const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result"; | ||
3323 | +const char * LIB_PATH_VALUE = "$func_to_host_path_result"; | ||
3324 | EOF | ||
3325 | else | ||
3326 | cat <<"EOF" | ||
3327 | @@ -3461,10 +4317,10 @@ EOF | ||
3328 | fi | ||
3329 | |||
3330 | if test -n "$dllsearchpath"; then | ||
3331 | - func_to_host_pathlist "$dllsearchpath:" | ||
3332 | + func_to_host_path "$dllsearchpath:" | ||
3333 | cat <<EOF | ||
3334 | const char * EXE_PATH_VARNAME = "PATH"; | ||
3335 | -const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result"; | ||
3336 | +const char * EXE_PATH_VALUE = "$func_to_host_path_result"; | ||
3337 | EOF | ||
3338 | else | ||
3339 | cat <<"EOF" | ||
3340 | @@ -3487,24 +4343,10 @@ EOF | ||
3341 | cat <<"EOF" | ||
3342 | |||
3343 | #define LTWRAPPER_OPTION_PREFIX "--lt-" | ||
3344 | -#define LTWRAPPER_OPTION_PREFIX_LENGTH 5 | ||
3345 | |||
3346 | -static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH; | ||
3347 | static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; | ||
3348 | - | ||
3349 | static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script"; | ||
3350 | - | ||
3351 | -static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7; | ||
3352 | -static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set"; | ||
3353 | - /* argument is putenv-style "foo=bar", value of foo is set to bar */ | ||
3354 | - | ||
3355 | -static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11; | ||
3356 | -static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend"; | ||
3357 | - /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */ | ||
3358 | - | ||
3359 | -static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10; | ||
3360 | -static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append"; | ||
3361 | - /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */ | ||
3362 | +static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug"; | ||
3363 | |||
3364 | int | ||
3365 | main (int argc, char *argv[]) | ||
3366 | @@ -3521,10 +4363,13 @@ main (int argc, char *argv[]) | ||
3367 | int i; | ||
3368 | |||
3369 | program_name = (char *) xstrdup (base_name (argv[0])); | ||
3370 | - LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0])); | ||
3371 | - LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name)); | ||
3372 | + newargz = XMALLOC (char *, argc + 1); | ||
3373 | |||
3374 | - /* very simple arg parsing; don't want to rely on getopt */ | ||
3375 | + /* very simple arg parsing; don't want to rely on getopt | ||
3376 | + * also, copy all non cwrapper options to newargz, except | ||
3377 | + * argz[0], which is handled differently | ||
3378 | + */ | ||
3379 | + newargc=0; | ||
3380 | for (i = 1; i < argc; i++) | ||
3381 | { | ||
3382 | if (strcmp (argv[i], dumpscript_opt) == 0) | ||
3383 | @@ -3538,25 +4383,57 @@ EOF | ||
3384 | esac | ||
3385 | |||
3386 | cat <<"EOF" | ||
3387 | - printf ("%s", script_text_part1); | ||
3388 | - printf ("%s", script_text_part2); | ||
3389 | + lt_dump_script (stdout); | ||
3390 | return 0; | ||
3391 | } | ||
3392 | + if (strcmp (argv[i], debug_opt) == 0) | ||
3393 | + { | ||
3394 | + lt_debug = 1; | ||
3395 | + continue; | ||
3396 | + } | ||
3397 | + if (strcmp (argv[i], ltwrapper_option_prefix) == 0) | ||
3398 | + { | ||
3399 | + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX | ||
3400 | + namespace, but it is not one of the ones we know about and | ||
3401 | + have already dealt with, above (inluding dump-script), then | ||
3402 | + report an error. Otherwise, targets might begin to believe | ||
3403 | + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX | ||
3404 | + namespace. The first time any user complains about this, we'll | ||
3405 | + need to make LTWRAPPER_OPTION_PREFIX a configure-time option | ||
3406 | + or a configure.ac-settable value. | ||
3407 | + */ | ||
3408 | + lt_fatal (__FILE__, __LINE__, | ||
3409 | + "unrecognized %s option: '%s'", | ||
3410 | + ltwrapper_option_prefix, argv[i]); | ||
3411 | + } | ||
3412 | + /* otherwise ... */ | ||
3413 | + newargz[++newargc] = xstrdup (argv[i]); | ||
3414 | } | ||
3415 | + newargz[++newargc] = NULL; | ||
3416 | + | ||
3417 | +EOF | ||
3418 | + cat <<EOF | ||
3419 | + /* The GNU banner must be the first non-error debug message */ | ||
3420 | + lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n"); | ||
3421 | +EOF | ||
3422 | + cat <<"EOF" | ||
3423 | + lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]); | ||
3424 | + lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name); | ||
3425 | |||
3426 | - newargz = XMALLOC (char *, argc + 1); | ||
3427 | tmp_pathspec = find_executable (argv[0]); | ||
3428 | if (tmp_pathspec == NULL) | ||
3429 | - lt_fatal ("Couldn't find %s", argv[0]); | ||
3430 | - LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n", | ||
3431 | - tmp_pathspec)); | ||
3432 | + lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]); | ||
3433 | + lt_debugprintf (__FILE__, __LINE__, | ||
3434 | + "(main) found exe (before symlink chase) at: %s\n", | ||
3435 | + tmp_pathspec); | ||
3436 | |||
3437 | actual_cwrapper_path = chase_symlinks (tmp_pathspec); | ||
3438 | - LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n", | ||
3439 | - actual_cwrapper_path)); | ||
3440 | + lt_debugprintf (__FILE__, __LINE__, | ||
3441 | + "(main) found exe (after symlink chase) at: %s\n", | ||
3442 | + actual_cwrapper_path); | ||
3443 | XFREE (tmp_pathspec); | ||
3444 | |||
3445 | - actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path)); | ||
3446 | + actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path)); | ||
3447 | strendzap (actual_cwrapper_path, actual_cwrapper_name); | ||
3448 | |||
3449 | /* wrapper name transforms */ | ||
3450 | @@ -3574,8 +4451,9 @@ EOF | ||
3451 | target_name = tmp_pathspec; | ||
3452 | tmp_pathspec = 0; | ||
3453 | |||
3454 | - LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n", | ||
3455 | - target_name)); | ||
3456 | + lt_debugprintf (__FILE__, __LINE__, | ||
3457 | + "(main) libtool target name: %s\n", | ||
3458 | + target_name); | ||
3459 | EOF | ||
3460 | |||
3461 | cat <<EOF | ||
3462 | @@ -3625,80 +4503,19 @@ EOF | ||
3463 | |||
3464 | lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ | ||
3465 | lt_setenv ("DUALCASE", "1"); /* for MSK sh */ | ||
3466 | - lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); | ||
3467 | + /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must | ||
3468 | + be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath) | ||
3469 | + because on Windows, both *_VARNAMEs are PATH but uninstalled | ||
3470 | + libraries must come first. */ | ||
3471 | lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); | ||
3472 | + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); | ||
3473 | |||
3474 | - newargc=0; | ||
3475 | - for (i = 1; i < argc; i++) | ||
3476 | - { | ||
3477 | - if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0) | ||
3478 | - { | ||
3479 | - if (argv[i][env_set_opt_len] == '=') | ||
3480 | - { | ||
3481 | - const char *p = argv[i] + env_set_opt_len + 1; | ||
3482 | - lt_opt_process_env_set (p); | ||
3483 | - } | ||
3484 | - else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc) | ||
3485 | - { | ||
3486 | - lt_opt_process_env_set (argv[++i]); /* don't copy */ | ||
3487 | - } | ||
3488 | - else | ||
3489 | - lt_fatal ("%s missing required argument", env_set_opt); | ||
3490 | - continue; | ||
3491 | - } | ||
3492 | - if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0) | ||
3493 | - { | ||
3494 | - if (argv[i][env_prepend_opt_len] == '=') | ||
3495 | - { | ||
3496 | - const char *p = argv[i] + env_prepend_opt_len + 1; | ||
3497 | - lt_opt_process_env_prepend (p); | ||
3498 | - } | ||
3499 | - else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc) | ||
3500 | - { | ||
3501 | - lt_opt_process_env_prepend (argv[++i]); /* don't copy */ | ||
3502 | - } | ||
3503 | - else | ||
3504 | - lt_fatal ("%s missing required argument", env_prepend_opt); | ||
3505 | - continue; | ||
3506 | - } | ||
3507 | - if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0) | ||
3508 | - { | ||
3509 | - if (argv[i][env_append_opt_len] == '=') | ||
3510 | - { | ||
3511 | - const char *p = argv[i] + env_append_opt_len + 1; | ||
3512 | - lt_opt_process_env_append (p); | ||
3513 | - } | ||
3514 | - else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc) | ||
3515 | - { | ||
3516 | - lt_opt_process_env_append (argv[++i]); /* don't copy */ | ||
3517 | - } | ||
3518 | - else | ||
3519 | - lt_fatal ("%s missing required argument", env_append_opt); | ||
3520 | - continue; | ||
3521 | - } | ||
3522 | - if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0) | ||
3523 | - { | ||
3524 | - /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX | ||
3525 | - namespace, but it is not one of the ones we know about and | ||
3526 | - have already dealt with, above (inluding dump-script), then | ||
3527 | - report an error. Otherwise, targets might begin to believe | ||
3528 | - they are allowed to use options in the LTWRAPPER_OPTION_PREFIX | ||
3529 | - namespace. The first time any user complains about this, we'll | ||
3530 | - need to make LTWRAPPER_OPTION_PREFIX a configure-time option | ||
3531 | - or a configure.ac-settable value. | ||
3532 | - */ | ||
3533 | - lt_fatal ("Unrecognized option in %s namespace: '%s'", | ||
3534 | - ltwrapper_option_prefix, argv[i]); | ||
3535 | - } | ||
3536 | - /* otherwise ... */ | ||
3537 | - newargz[++newargc] = xstrdup (argv[i]); | ||
3538 | - } | ||
3539 | - newargz[++newargc] = NULL; | ||
3540 | - | ||
3541 | - LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>"))); | ||
3542 | + lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n", | ||
3543 | + nonnull (lt_argv_zero)); | ||
3544 | for (i = 0; i < newargc; i++) | ||
3545 | { | ||
3546 | - LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>"))); | ||
3547 | + lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n", | ||
3548 | + i, nonnull (newargz[i])); | ||
3549 | } | ||
3550 | |||
3551 | EOF | ||
3552 | @@ -3707,11 +4524,14 @@ EOF | ||
3553 | mingw*) | ||
3554 | cat <<"EOF" | ||
3555 | /* execv doesn't actually work on mingw as expected on unix */ | ||
3556 | + newargz = prepare_spawn (newargz); | ||
3557 | rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); | ||
3558 | if (rval == -1) | ||
3559 | { | ||
3560 | /* failed to start process */ | ||
3561 | - LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); | ||
3562 | + lt_debugprintf (__FILE__, __LINE__, | ||
3563 | + "(main) failed to launch target \"%s\": %s\n", | ||
3564 | + lt_argv_zero, nonnull (strerror (errno))); | ||
3565 | return 127; | ||
3566 | } | ||
3567 | return rval; | ||
3568 | @@ -3733,7 +4553,7 @@ xmalloc (size_t num) | ||
3569 | { | ||
3570 | void *p = (void *) malloc (num); | ||
3571 | if (!p) | ||
3572 | - lt_fatal ("Memory exhausted"); | ||
3573 | + lt_fatal (__FILE__, __LINE__, "memory exhausted"); | ||
3574 | |||
3575 | return p; | ||
3576 | } | ||
3577 | @@ -3767,8 +4587,8 @@ check_executable (const char *path) | ||
3578 | { | ||
3579 | struct stat st; | ||
3580 | |||
3581 | - LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", | ||
3582 | - path ? (*path ? path : "EMPTY!") : "NULL!")); | ||
3583 | + lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n", | ||
3584 | + nonempty (path)); | ||
3585 | if ((!path) || (!*path)) | ||
3586 | return 0; | ||
3587 | |||
3588 | @@ -3785,8 +4605,8 @@ make_executable (const char *path) | ||
3589 | int rval = 0; | ||
3590 | struct stat st; | ||
3591 | |||
3592 | - LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", | ||
3593 | - path ? (*path ? path : "EMPTY!") : "NULL!")); | ||
3594 | + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", | ||
3595 | + nonempty (path)); | ||
3596 | if ((!path) || (!*path)) | ||
3597 | return 0; | ||
3598 | |||
3599 | @@ -3812,8 +4632,8 @@ find_executable (const char *wrapper) | ||
3600 | int tmp_len; | ||
3601 | char *concat_name; | ||
3602 | |||
3603 | - LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", | ||
3604 | - wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); | ||
3605 | + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", | ||
3606 | + nonempty (wrapper)); | ||
3607 | |||
3608 | if ((wrapper == NULL) || (*wrapper == '\0')) | ||
3609 | return NULL; | ||
3610 | @@ -3866,7 +4686,8 @@ find_executable (const char *wrapper) | ||
3611 | { | ||
3612 | /* empty path: current directory */ | ||
3613 | if (getcwd (tmp, LT_PATHMAX) == NULL) | ||
3614 | - lt_fatal ("getcwd failed"); | ||
3615 | + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | ||
3616 | + nonnull (strerror (errno))); | ||
3617 | tmp_len = strlen (tmp); | ||
3618 | concat_name = | ||
3619 | XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); | ||
3620 | @@ -3891,7 +4712,8 @@ find_executable (const char *wrapper) | ||
3621 | } | ||
3622 | /* Relative path | not found in path: prepend cwd */ | ||
3623 | if (getcwd (tmp, LT_PATHMAX) == NULL) | ||
3624 | - lt_fatal ("getcwd failed"); | ||
3625 | + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | ||
3626 | + nonnull (strerror (errno))); | ||
3627 | tmp_len = strlen (tmp); | ||
3628 | concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); | ||
3629 | memcpy (concat_name, tmp, tmp_len); | ||
3630 | @@ -3917,8 +4739,9 @@ chase_symlinks (const char *pathspec) | ||
3631 | int has_symlinks = 0; | ||
3632 | while (strlen (tmp_pathspec) && !has_symlinks) | ||
3633 | { | ||
3634 | - LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", | ||
3635 | - tmp_pathspec)); | ||
3636 | + lt_debugprintf (__FILE__, __LINE__, | ||
3637 | + "checking path component for symlinks: %s\n", | ||
3638 | + tmp_pathspec); | ||
3639 | if (lstat (tmp_pathspec, &s) == 0) | ||
3640 | { | ||
3641 | if (S_ISLNK (s.st_mode) != 0) | ||
3642 | @@ -3940,8 +4763,9 @@ chase_symlinks (const char *pathspec) | ||
3643 | } | ||
3644 | else | ||
3645 | { | ||
3646 | - char *errstr = strerror (errno); | ||
3647 | - lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); | ||
3648 | + lt_fatal (__FILE__, __LINE__, | ||
3649 | + "error accessing file \"%s\": %s", | ||
3650 | + tmp_pathspec, nonnull (strerror (errno))); | ||
3651 | } | ||
3652 | } | ||
3653 | XFREE (tmp_pathspec); | ||
3654 | @@ -3954,7 +4778,8 @@ chase_symlinks (const char *pathspec) | ||
3655 | tmp_pathspec = realpath (pathspec, buf); | ||
3656 | if (tmp_pathspec == 0) | ||
3657 | { | ||
3658 | - lt_fatal ("Could not follow symlinks for %s", pathspec); | ||
3659 | + lt_fatal (__FILE__, __LINE__, | ||
3660 | + "could not follow symlinks for %s", pathspec); | ||
3661 | } | ||
3662 | return xstrdup (tmp_pathspec); | ||
3663 | #endif | ||
3664 | @@ -3980,11 +4805,25 @@ strendzap (char *str, const char *pat) | ||
3665 | return str; | ||
3666 | } | ||
3667 | |||
3668 | +void | ||
3669 | +lt_debugprintf (const char *file, int line, const char *fmt, ...) | ||
3670 | +{ | ||
3671 | + va_list args; | ||
3672 | + if (lt_debug) | ||
3673 | + { | ||
3674 | + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); | ||
3675 | + va_start (args, fmt); | ||
3676 | + (void) vfprintf (stderr, fmt, args); | ||
3677 | + va_end (args); | ||
3678 | + } | ||
3679 | +} | ||
3680 | + | ||
3681 | static void | ||
3682 | -lt_error_core (int exit_status, const char *mode, | ||
3683 | +lt_error_core (int exit_status, const char *file, | ||
3684 | + int line, const char *mode, | ||
3685 | const char *message, va_list ap) | ||
3686 | { | ||
3687 | - fprintf (stderr, "%s: %s: ", program_name, mode); | ||
3688 | + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); | ||
3689 | vfprintf (stderr, message, ap); | ||
3690 | fprintf (stderr, ".\n"); | ||
3691 | |||
3692 | @@ -3993,20 +4832,32 @@ lt_error_core (int exit_status, const ch | ||
3693 | } | ||
3694 | |||
3695 | void | ||
3696 | -lt_fatal (const char *message, ...) | ||
3697 | +lt_fatal (const char *file, int line, const char *message, ...) | ||
3698 | { | ||
3699 | va_list ap; | ||
3700 | va_start (ap, message); | ||
3701 | - lt_error_core (EXIT_FAILURE, "FATAL", message, ap); | ||
3702 | + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); | ||
3703 | va_end (ap); | ||
3704 | } | ||
3705 | |||
3706 | +static const char * | ||
3707 | +nonnull (const char *s) | ||
3708 | +{ | ||
3709 | + return s ? s : "(null)"; | ||
3710 | +} | ||
3711 | + | ||
3712 | +static const char * | ||
3713 | +nonempty (const char *s) | ||
3714 | +{ | ||
3715 | + return (s && !*s) ? "(empty)" : nonnull (s); | ||
3716 | +} | ||
3717 | + | ||
3718 | void | ||
3719 | lt_setenv (const char *name, const char *value) | ||
3720 | { | ||
3721 | - LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", | ||
3722 | - (name ? name : "<NULL>"), | ||
3723 | - (value ? value : "<NULL>"))); | ||
3724 | + lt_debugprintf (__FILE__, __LINE__, | ||
3725 | + "(lt_setenv) setting '%s' to '%s'\n", | ||
3726 | + nonnull (name), nonnull (value)); | ||
3727 | { | ||
3728 | #ifdef HAVE_SETENV | ||
3729 | /* always make a copy, for consistency with !HAVE_SETENV */ | ||
3730 | @@ -4051,95 +4902,12 @@ lt_extend_str (const char *orig_value, c | ||
3731 | return new_value; | ||
3732 | } | ||
3733 | |||
3734 | -int | ||
3735 | -lt_split_name_value (const char *arg, char** name, char** value) | ||
3736 | -{ | ||
3737 | - const char *p; | ||
3738 | - int len; | ||
3739 | - if (!arg || !*arg) | ||
3740 | - return 1; | ||
3741 | - | ||
3742 | - p = strchr (arg, (int)'='); | ||
3743 | - | ||
3744 | - if (!p) | ||
3745 | - return 1; | ||
3746 | - | ||
3747 | - *value = xstrdup (++p); | ||
3748 | - | ||
3749 | - len = strlen (arg) - strlen (*value); | ||
3750 | - *name = XMALLOC (char, len); | ||
3751 | - strncpy (*name, arg, len-1); | ||
3752 | - (*name)[len - 1] = '\0'; | ||
3753 | - | ||
3754 | - return 0; | ||
3755 | -} | ||
3756 | - | ||
3757 | -void | ||
3758 | -lt_opt_process_env_set (const char *arg) | ||
3759 | -{ | ||
3760 | - char *name = NULL; | ||
3761 | - char *value = NULL; | ||
3762 | - | ||
3763 | - if (lt_split_name_value (arg, &name, &value) != 0) | ||
3764 | - { | ||
3765 | - XFREE (name); | ||
3766 | - XFREE (value); | ||
3767 | - lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); | ||
3768 | - } | ||
3769 | - | ||
3770 | - lt_setenv (name, value); | ||
3771 | - XFREE (name); | ||
3772 | - XFREE (value); | ||
3773 | -} | ||
3774 | - | ||
3775 | -void | ||
3776 | -lt_opt_process_env_prepend (const char *arg) | ||
3777 | -{ | ||
3778 | - char *name = NULL; | ||
3779 | - char *value = NULL; | ||
3780 | - char *new_value = NULL; | ||
3781 | - | ||
3782 | - if (lt_split_name_value (arg, &name, &value) != 0) | ||
3783 | - { | ||
3784 | - XFREE (name); | ||
3785 | - XFREE (value); | ||
3786 | - lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); | ||
3787 | - } | ||
3788 | - | ||
3789 | - new_value = lt_extend_str (getenv (name), value, 0); | ||
3790 | - lt_setenv (name, new_value); | ||
3791 | - XFREE (new_value); | ||
3792 | - XFREE (name); | ||
3793 | - XFREE (value); | ||
3794 | -} | ||
3795 | - | ||
3796 | -void | ||
3797 | -lt_opt_process_env_append (const char *arg) | ||
3798 | -{ | ||
3799 | - char *name = NULL; | ||
3800 | - char *value = NULL; | ||
3801 | - char *new_value = NULL; | ||
3802 | - | ||
3803 | - if (lt_split_name_value (arg, &name, &value) != 0) | ||
3804 | - { | ||
3805 | - XFREE (name); | ||
3806 | - XFREE (value); | ||
3807 | - lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); | ||
3808 | - } | ||
3809 | - | ||
3810 | - new_value = lt_extend_str (getenv (name), value, 1); | ||
3811 | - lt_setenv (name, new_value); | ||
3812 | - XFREE (new_value); | ||
3813 | - XFREE (name); | ||
3814 | - XFREE (value); | ||
3815 | -} | ||
3816 | - | ||
3817 | void | ||
3818 | lt_update_exe_path (const char *name, const char *value) | ||
3819 | { | ||
3820 | - LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", | ||
3821 | - (name ? name : "<NULL>"), | ||
3822 | - (value ? value : "<NULL>"))); | ||
3823 | + lt_debugprintf (__FILE__, __LINE__, | ||
3824 | + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", | ||
3825 | + nonnull (name), nonnull (value)); | ||
3826 | |||
3827 | if (name && *name && value && *value) | ||
3828 | { | ||
3829 | @@ -4158,9 +4926,9 @@ lt_update_exe_path (const char *name, co | ||
3830 | void | ||
3831 | lt_update_lib_path (const char *name, const char *value) | ||
3832 | { | ||
3833 | - LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", | ||
3834 | - (name ? name : "<NULL>"), | ||
3835 | - (value ? value : "<NULL>"))); | ||
3836 | + lt_debugprintf (__FILE__, __LINE__, | ||
3837 | + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", | ||
3838 | + nonnull (name), nonnull (value)); | ||
3839 | |||
3840 | if (name && *name && value && *value) | ||
3841 | { | ||
3842 | @@ -4170,11 +4938,152 @@ lt_update_lib_path (const char *name, co | ||
3843 | } | ||
3844 | } | ||
3845 | |||
3846 | +EOF | ||
3847 | + case $host_os in | ||
3848 | + mingw*) | ||
3849 | + cat <<"EOF" | ||
3850 | + | ||
3851 | +/* Prepares an argument vector before calling spawn(). | ||
3852 | + Note that spawn() does not by itself call the command interpreter | ||
3853 | + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : | ||
3854 | + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); | ||
3855 | + GetVersionEx(&v); | ||
3856 | + v.dwPlatformId == VER_PLATFORM_WIN32_NT; | ||
3857 | + }) ? "cmd.exe" : "command.com"). | ||
3858 | + Instead it simply concatenates the arguments, separated by ' ', and calls | ||
3859 | + CreateProcess(). We must quote the arguments since Win32 CreateProcess() | ||
3860 | + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a | ||
3861 | + special way: | ||
3862 | + - Space and tab are interpreted as delimiters. They are not treated as | ||
3863 | + delimiters if they are surrounded by double quotes: "...". | ||
3864 | + - Unescaped double quotes are removed from the input. Their only effect is | ||
3865 | + that within double quotes, space and tab are treated like normal | ||
3866 | + characters. | ||
3867 | + - Backslashes not followed by double quotes are not special. | ||
3868 | + - But 2*n+1 backslashes followed by a double quote become | ||
3869 | + n backslashes followed by a double quote (n >= 0): | ||
3870 | + \" -> " | ||
3871 | + \\\" -> \" | ||
3872 | + \\\\\" -> \\" | ||
3873 | + */ | ||
3874 | +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" | ||
3875 | +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" | ||
3876 | +char ** | ||
3877 | +prepare_spawn (char **argv) | ||
3878 | +{ | ||
3879 | + size_t argc; | ||
3880 | + char **new_argv; | ||
3881 | + size_t i; | ||
3882 | + | ||
3883 | + /* Count number of arguments. */ | ||
3884 | + for (argc = 0; argv[argc] != NULL; argc++) | ||
3885 | + ; | ||
3886 | + | ||
3887 | + /* Allocate new argument vector. */ | ||
3888 | + new_argv = XMALLOC (char *, argc + 1); | ||
3889 | + | ||
3890 | + /* Put quoted arguments into the new argument vector. */ | ||
3891 | + for (i = 0; i < argc; i++) | ||
3892 | + { | ||
3893 | + const char *string = argv[i]; | ||
3894 | + | ||
3895 | + if (string[0] == '\0') | ||
3896 | + new_argv[i] = xstrdup ("\"\""); | ||
3897 | + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) | ||
3898 | + { | ||
3899 | + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); | ||
3900 | + size_t length; | ||
3901 | + unsigned int backslashes; | ||
3902 | + const char *s; | ||
3903 | + char *quoted_string; | ||
3904 | + char *p; | ||
3905 | + | ||
3906 | + length = 0; | ||
3907 | + backslashes = 0; | ||
3908 | + if (quote_around) | ||
3909 | + length++; | ||
3910 | + for (s = string; *s != '\0'; s++) | ||
3911 | + { | ||
3912 | + char c = *s; | ||
3913 | + if (c == '"') | ||
3914 | + length += backslashes + 1; | ||
3915 | + length++; | ||
3916 | + if (c == '\\') | ||
3917 | + backslashes++; | ||
3918 | + else | ||
3919 | + backslashes = 0; | ||
3920 | + } | ||
3921 | + if (quote_around) | ||
3922 | + length += backslashes + 1; | ||
3923 | + | ||
3924 | + quoted_string = XMALLOC (char, length + 1); | ||
3925 | + | ||
3926 | + p = quoted_string; | ||
3927 | + backslashes = 0; | ||
3928 | + if (quote_around) | ||
3929 | + *p++ = '"'; | ||
3930 | + for (s = string; *s != '\0'; s++) | ||
3931 | + { | ||
3932 | + char c = *s; | ||
3933 | + if (c == '"') | ||
3934 | + { | ||
3935 | + unsigned int j; | ||
3936 | + for (j = backslashes + 1; j > 0; j--) | ||
3937 | + *p++ = '\\'; | ||
3938 | + } | ||
3939 | + *p++ = c; | ||
3940 | + if (c == '\\') | ||
3941 | + backslashes++; | ||
3942 | + else | ||
3943 | + backslashes = 0; | ||
3944 | + } | ||
3945 | + if (quote_around) | ||
3946 | + { | ||
3947 | + unsigned int j; | ||
3948 | + for (j = backslashes; j > 0; j--) | ||
3949 | + *p++ = '\\'; | ||
3950 | + *p++ = '"'; | ||
3951 | + } | ||
3952 | + *p = '\0'; | ||
3953 | + | ||
3954 | + new_argv[i] = quoted_string; | ||
3955 | + } | ||
3956 | + else | ||
3957 | + new_argv[i] = (char *) string; | ||
3958 | + } | ||
3959 | + new_argv[argc] = NULL; | ||
3960 | + | ||
3961 | + return new_argv; | ||
3962 | +} | ||
3963 | +EOF | ||
3964 | + ;; | ||
3965 | + esac | ||
3966 | + | ||
3967 | + cat <<"EOF" | ||
3968 | +void lt_dump_script (FILE* f) | ||
3969 | +{ | ||
3970 | +EOF | ||
3971 | + func_emit_wrapper yes | | ||
3972 | + $SED -e 's/\([\\"]\)/\\\1/g' \ | ||
3973 | + -e 's/^/ fputs ("/' -e 's/$/\\n", f);/' | ||
3974 | |||
3975 | + cat <<"EOF" | ||
3976 | +} | ||
3977 | EOF | ||
3978 | } | ||
3979 | # end: func_emit_cwrapperexe_src | ||
3980 | |||
3981 | +# func_win32_import_lib_p ARG | ||
3982 | +# True if ARG is an import lib, as indicated by $file_magic_cmd | ||
3983 | +func_win32_import_lib_p () | ||
3984 | +{ | ||
3985 | + $opt_debug | ||
3986 | + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in | ||
3987 | + *import*) : ;; | ||
3988 | + *) false ;; | ||
3989 | + esac | ||
3990 | +} | ||
3991 | + | ||
3992 | # func_mode_link arg... | ||
3993 | func_mode_link () | ||
3994 | { | ||
3995 | @@ -4348,9 +5257,9 @@ func_mode_link () | ||
3996 | ;; | ||
3997 | *) | ||
3998 | if test "$prev" = dlfiles; then | ||
3999 | - dlfiles="$dlfiles $arg" | ||
4000 | + func_append dlfiles " $arg" | ||
4001 | else | ||
4002 | - dlprefiles="$dlprefiles $arg" | ||
4003 | + func_append dlprefiles " $arg" | ||
4004 | fi | ||
4005 | prev= | ||
4006 | continue | ||
4007 | @@ -4374,7 +5283,7 @@ func_mode_link () | ||
4008 | *-*-darwin*) | ||
4009 | case "$deplibs " in | ||
4010 | *" $qarg.ltframework "*) ;; | ||
4011 | - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later | ||
4012 | + *) func_append deplibs " $qarg.ltframework" # this is fixed later | ||
4013 | ;; | ||
4014 | esac | ||
4015 | ;; | ||
4016 | @@ -4393,7 +5302,7 @@ func_mode_link () | ||
4017 | moreargs= | ||
4018 | for fil in `cat "$save_arg"` | ||
4019 | do | ||
4020 | -# moreargs="$moreargs $fil" | ||
4021 | +# func_append moreargs " $fil" | ||
4022 | arg=$fil | ||
4023 | # A libtool-controlled object. | ||
4024 | |||
4025 | @@ -4422,7 +5331,7 @@ func_mode_link () | ||
4026 | |||
4027 | if test "$prev" = dlfiles; then | ||
4028 | if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then | ||
4029 | - dlfiles="$dlfiles $pic_object" | ||
4030 | + func_append dlfiles " $pic_object" | ||
4031 | prev= | ||
4032 | continue | ||
4033 | else | ||
4034 | @@ -4434,7 +5343,7 @@ func_mode_link () | ||
4035 | # CHECK ME: I think I busted this. -Ossama | ||
4036 | if test "$prev" = dlprefiles; then | ||
4037 | # Preload the old-style object. | ||
4038 | - dlprefiles="$dlprefiles $pic_object" | ||
4039 | + func_append dlprefiles " $pic_object" | ||
4040 | prev= | ||
4041 | fi | ||
4042 | |||
4043 | @@ -4504,12 +5413,12 @@ func_mode_link () | ||
4044 | if test "$prev" = rpath; then | ||
4045 | case "$rpath " in | ||
4046 | *" $arg "*) ;; | ||
4047 | - *) rpath="$rpath $arg" ;; | ||
4048 | + *) func_append rpath " $arg" ;; | ||
4049 | esac | ||
4050 | else | ||
4051 | case "$xrpath " in | ||
4052 | *" $arg "*) ;; | ||
4053 | - *) xrpath="$xrpath $arg" ;; | ||
4054 | + *) func_append xrpath " $arg" ;; | ||
4055 | esac | ||
4056 | fi | ||
4057 | prev= | ||
4058 | @@ -4521,28 +5430,28 @@ func_mode_link () | ||
4059 | continue | ||
4060 | ;; | ||
4061 | weak) | ||
4062 | - weak_libs="$weak_libs $arg" | ||
4063 | + func_append weak_libs " $arg" | ||
4064 | prev= | ||
4065 | continue | ||
4066 | ;; | ||
4067 | xcclinker) | ||
4068 | - linker_flags="$linker_flags $qarg" | ||
4069 | - compiler_flags="$compiler_flags $qarg" | ||
4070 | + func_append linker_flags " $qarg" | ||
4071 | + func_append compiler_flags " $qarg" | ||
4072 | prev= | ||
4073 | func_append compile_command " $qarg" | ||
4074 | func_append finalize_command " $qarg" | ||
4075 | continue | ||
4076 | ;; | ||
4077 | xcompiler) | ||
4078 | - compiler_flags="$compiler_flags $qarg" | ||
4079 | + func_append compiler_flags " $qarg" | ||
4080 | prev= | ||
4081 | func_append compile_command " $qarg" | ||
4082 | func_append finalize_command " $qarg" | ||
4083 | continue | ||
4084 | ;; | ||
4085 | xlinker) | ||
4086 | - linker_flags="$linker_flags $qarg" | ||
4087 | - compiler_flags="$compiler_flags $wl$qarg" | ||
4088 | + func_append linker_flags " $qarg" | ||
4089 | + func_append compiler_flags " $wl$qarg" | ||
4090 | prev= | ||
4091 | func_append compile_command " $wl$qarg" | ||
4092 | func_append finalize_command " $wl$qarg" | ||
4093 | @@ -4633,15 +5542,16 @@ func_mode_link () | ||
4094 | ;; | ||
4095 | |||
4096 | -L*) | ||
4097 | - func_stripname '-L' '' "$arg" | ||
4098 | - dir=$func_stripname_result | ||
4099 | - if test -z "$dir"; then | ||
4100 | + func_stripname "-L" '' "$arg" | ||
4101 | + if test -z "$func_stripname_result"; then | ||
4102 | if test "$#" -gt 0; then | ||
4103 | func_fatal_error "require no space between \`-L' and \`$1'" | ||
4104 | else | ||
4105 | func_fatal_error "need path for \`-L' option" | ||
4106 | fi | ||
4107 | fi | ||
4108 | + func_resolve_sysroot "$func_stripname_result" | ||
4109 | + dir=$func_resolve_sysroot_result | ||
4110 | # We need an absolute path. | ||
4111 | case $dir in | ||
4112 | [\\/]* | [A-Za-z]:[\\/]*) ;; | ||
4113 | @@ -4653,24 +5563,30 @@ func_mode_link () | ||
4114 | ;; | ||
4115 | esac | ||
4116 | case "$deplibs " in | ||
4117 | - *" -L$dir "*) ;; | ||
4118 | + *" -L$dir "* | *" $arg "*) | ||
4119 | + # Will only happen for absolute or sysroot arguments | ||
4120 | + ;; | ||
4121 | *) | ||
4122 | - deplibs="$deplibs -L$dir" | ||
4123 | - lib_search_path="$lib_search_path $dir" | ||
4124 | + # Preserve sysroot, but never include relative directories | ||
4125 | + case $dir in | ||
4126 | + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; | ||
4127 | + *) func_append deplibs " -L$dir" ;; | ||
4128 | + esac | ||
4129 | + func_append lib_search_path " $dir" | ||
4130 | ;; | ||
4131 | esac | ||
4132 | case $host in | ||
4133 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) | ||
4134 | - testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` | ||
4135 | + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` | ||
4136 | case :$dllsearchpath: in | ||
4137 | *":$dir:"*) ;; | ||
4138 | ::) dllsearchpath=$dir;; | ||
4139 | - *) dllsearchpath="$dllsearchpath:$dir";; | ||
4140 | + *) func_append dllsearchpath ":$dir";; | ||
4141 | esac | ||
4142 | case :$dllsearchpath: in | ||
4143 | *":$testbindir:"*) ;; | ||
4144 | ::) dllsearchpath=$testbindir;; | ||
4145 | - *) dllsearchpath="$dllsearchpath:$testbindir";; | ||
4146 | + *) func_append dllsearchpath ":$testbindir";; | ||
4147 | esac | ||
4148 | ;; | ||
4149 | esac | ||
4150 | @@ -4680,7 +5596,7 @@ func_mode_link () | ||
4151 | -l*) | ||
4152 | if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then | ||
4153 | case $host in | ||
4154 | - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) | ||
4155 | + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) | ||
4156 | # These systems don't actually have a C or math library (as such) | ||
4157 | continue | ||
4158 | ;; | ||
4159 | @@ -4694,7 +5610,7 @@ func_mode_link () | ||
4160 | ;; | ||
4161 | *-*-rhapsody* | *-*-darwin1.[012]) | ||
4162 | # Rhapsody C and math libraries are in the System framework | ||
4163 | - deplibs="$deplibs System.ltframework" | ||
4164 | + func_append deplibs " System.ltframework" | ||
4165 | continue | ||
4166 | ;; | ||
4167 | *-*-sco3.2v5* | *-*-sco5v6*) | ||
4168 | @@ -4714,7 +5630,7 @@ func_mode_link () | ||
4169 | ;; | ||
4170 | esac | ||
4171 | fi | ||
4172 | - deplibs="$deplibs $arg" | ||
4173 | + func_append deplibs " $arg" | ||
4174 | continue | ||
4175 | ;; | ||
4176 | |||
4177 | @@ -4726,8 +5642,8 @@ func_mode_link () | ||
4178 | # Tru64 UNIX uses -model [arg] to determine the layout of C++ | ||
4179 | # classes, name mangling, and exception handling. | ||
4180 | # Darwin uses the -arch flag to determine output architecture. | ||
4181 | - -model|-arch|-isysroot) | ||
4182 | - compiler_flags="$compiler_flags $arg" | ||
4183 | + -model|-arch|-isysroot|--sysroot) | ||
4184 | + func_append compiler_flags " $arg" | ||
4185 | func_append compile_command " $arg" | ||
4186 | func_append finalize_command " $arg" | ||
4187 | prev=xcompiler | ||
4188 | @@ -4735,12 +5651,12 @@ func_mode_link () | ||
4189 | ;; | ||
4190 | |||
4191 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) | ||
4192 | - compiler_flags="$compiler_flags $arg" | ||
4193 | + func_append compiler_flags " $arg" | ||
4194 | func_append compile_command " $arg" | ||
4195 | func_append finalize_command " $arg" | ||
4196 | case "$new_inherited_linker_flags " in | ||
4197 | *" $arg "*) ;; | ||
4198 | - * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; | ||
4199 | + * ) func_append new_inherited_linker_flags " $arg" ;; | ||
4200 | esac | ||
4201 | continue | ||
4202 | ;; | ||
4203 | @@ -4807,13 +5723,17 @@ func_mode_link () | ||
4204 | # We need an absolute path. | ||
4205 | case $dir in | ||
4206 | [\\/]* | [A-Za-z]:[\\/]*) ;; | ||
4207 | + =*) | ||
4208 | + func_stripname '=' '' "$dir" | ||
4209 | + dir=$lt_sysroot$func_stripname_result | ||
4210 | + ;; | ||
4211 | *) | ||
4212 | func_fatal_error "only absolute run-paths are allowed" | ||
4213 | ;; | ||
4214 | esac | ||
4215 | case "$xrpath " in | ||
4216 | *" $dir "*) ;; | ||
4217 | - *) xrpath="$xrpath $dir" ;; | ||
4218 | + *) func_append xrpath " $dir" ;; | ||
4219 | esac | ||
4220 | continue | ||
4221 | ;; | ||
4222 | @@ -4866,8 +5786,8 @@ func_mode_link () | ||
4223 | for flag in $args; do | ||
4224 | IFS="$save_ifs" | ||
4225 | func_quote_for_eval "$flag" | ||
4226 | - arg="$arg $wl$func_quote_for_eval_result" | ||
4227 | - compiler_flags="$compiler_flags $func_quote_for_eval_result" | ||
4228 | + func_append arg " $func_quote_for_eval_result" | ||
4229 | + func_append compiler_flags " $func_quote_for_eval_result" | ||
4230 | done | ||
4231 | IFS="$save_ifs" | ||
4232 | func_stripname ' ' '' "$arg" | ||
4233 | @@ -4882,9 +5802,9 @@ func_mode_link () | ||
4234 | for flag in $args; do | ||
4235 | IFS="$save_ifs" | ||
4236 | func_quote_for_eval "$flag" | ||
4237 | - arg="$arg $wl$func_quote_for_eval_result" | ||
4238 | - compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" | ||
4239 | - linker_flags="$linker_flags $func_quote_for_eval_result" | ||
4240 | + func_append arg " $wl$func_quote_for_eval_result" | ||
4241 | + func_append compiler_flags " $wl$func_quote_for_eval_result" | ||
4242 | + func_append linker_flags " $func_quote_for_eval_result" | ||
4243 | done | ||
4244 | IFS="$save_ifs" | ||
4245 | func_stripname ' ' '' "$arg" | ||
4246 | @@ -4912,23 +5832,27 @@ func_mode_link () | ||
4247 | arg="$func_quote_for_eval_result" | ||
4248 | ;; | ||
4249 | |||
4250 | - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler | ||
4251 | - # -r[0-9][0-9]* specifies the processor on the SGI compiler | ||
4252 | - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler | ||
4253 | - # +DA*, +DD* enable 64-bit mode on the HP compiler | ||
4254 | - # -q* pass through compiler args for the IBM compiler | ||
4255 | - # -m*, -t[45]*, -txscale* pass through architecture-specific | ||
4256 | - # compiler args for GCC | ||
4257 | - # -F/path gives path to uninstalled frameworks, gcc on darwin | ||
4258 | - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC | ||
4259 | - # @file GCC response files | ||
4260 | + # Flags to be passed through unchanged, with rationale: | ||
4261 | + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler | ||
4262 | + # -r[0-9][0-9]* specify processor for the SGI compiler | ||
4263 | + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler | ||
4264 | + # +DA*, +DD* enable 64-bit mode for the HP compiler | ||
4265 | + # -q* compiler args for the IBM compiler | ||
4266 | + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC | ||
4267 | + # -F/path path to uninstalled frameworks, gcc on darwin | ||
4268 | + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC | ||
4269 | + # @file GCC response files | ||
4270 | + # -tp=* Portland pgcc target processor selection | ||
4271 | + # --sysroot=* for sysroot support | ||
4272 | + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization | ||
4273 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ | ||
4274 | - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) | ||
4275 | + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | ||
4276 | + -O*|-flto*|-fwhopr*|-fuse-linker-plugin) | ||
4277 | func_quote_for_eval "$arg" | ||
4278 | arg="$func_quote_for_eval_result" | ||
4279 | func_append compile_command " $arg" | ||
4280 | func_append finalize_command " $arg" | ||
4281 | - compiler_flags="$compiler_flags $arg" | ||
4282 | + func_append compiler_flags " $arg" | ||
4283 | continue | ||
4284 | ;; | ||
4285 | |||
4286 | @@ -4940,7 +5864,7 @@ func_mode_link () | ||
4287 | |||
4288 | *.$objext) | ||
4289 | # A standard object. | ||
4290 | - objs="$objs $arg" | ||
4291 | + func_append objs " $arg" | ||
4292 | ;; | ||
4293 | |||
4294 | *.lo) | ||
4295 | @@ -4971,7 +5895,7 @@ func_mode_link () | ||
4296 | |||
4297 | if test "$prev" = dlfiles; then | ||
4298 | if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then | ||
4299 | - dlfiles="$dlfiles $pic_object" | ||
4300 | + func_append dlfiles " $pic_object" | ||
4301 | prev= | ||
4302 | continue | ||
4303 | else | ||
4304 | @@ -4983,7 +5907,7 @@ func_mode_link () | ||
4305 | # CHECK ME: I think I busted this. -Ossama | ||
4306 | if test "$prev" = dlprefiles; then | ||
4307 | # Preload the old-style object. | ||
4308 | - dlprefiles="$dlprefiles $pic_object" | ||
4309 | + func_append dlprefiles " $pic_object" | ||
4310 | prev= | ||
4311 | fi | ||
4312 | |||
4313 | @@ -5028,24 +5952,25 @@ func_mode_link () | ||
4314 | |||
4315 | *.$libext) | ||
4316 | # An archive. | ||
4317 | - deplibs="$deplibs $arg" | ||
4318 | - old_deplibs="$old_deplibs $arg" | ||
4319 | + func_append deplibs " $arg" | ||
4320 | + func_append old_deplibs " $arg" | ||
4321 | continue | ||
4322 | ;; | ||
4323 | |||
4324 | *.la) | ||
4325 | # A libtool-controlled library. | ||
4326 | |||
4327 | + func_resolve_sysroot "$arg" | ||
4328 | if test "$prev" = dlfiles; then | ||
4329 | # This library was specified with -dlopen. | ||
4330 | - dlfiles="$dlfiles $arg" | ||
4331 | + func_append dlfiles " $func_resolve_sysroot_result" | ||
4332 | prev= | ||
4333 | elif test "$prev" = dlprefiles; then | ||
4334 | # The library was specified with -dlpreopen. | ||
4335 | - dlprefiles="$dlprefiles $arg" | ||
4336 | + func_append dlprefiles " $func_resolve_sysroot_result" | ||
4337 | prev= | ||
4338 | else | ||
4339 | - deplibs="$deplibs $arg" | ||
4340 | + func_append deplibs " $func_resolve_sysroot_result" | ||
4341 | fi | ||
4342 | continue | ||
4343 | ;; | ||
4344 | @@ -5083,7 +6008,7 @@ func_mode_link () | ||
4345 | |||
4346 | if test -n "$shlibpath_var"; then | ||
4347 | # get the directories listed in $shlibpath_var | ||
4348 | - eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` | ||
4349 | + eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` | ||
4350 | else | ||
4351 | shlib_search_path= | ||
4352 | fi | ||
4353 | @@ -5092,6 +6017,8 @@ func_mode_link () | ||
4354 | |||
4355 | func_dirname "$output" "/" "" | ||
4356 | output_objdir="$func_dirname_result$objdir" | ||
4357 | + func_to_tool_file "$output_objdir/" | ||
4358 | + tool_output_objdir=$func_to_tool_file_result | ||
4359 | # Create the object directory. | ||
4360 | func_mkdir_p "$output_objdir" | ||
4361 | |||
4362 | @@ -5112,12 +6039,12 @@ func_mode_link () | ||
4363 | # Find all interdependent deplibs by searching for libraries | ||
4364 | # that are linked more than once (e.g. -la -lb -la) | ||
4365 | for deplib in $deplibs; do | ||
4366 | - if $opt_duplicate_deps ; then | ||
4367 | + if $opt_preserve_dup_deps ; then | ||
4368 | case "$libs " in | ||
4369 | - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | ||
4370 | + *" $deplib "*) func_append specialdeplibs " $deplib" ;; | ||
4371 | esac | ||
4372 | fi | ||
4373 | - libs="$libs $deplib" | ||
4374 | + func_append libs " $deplib" | ||
4375 | done | ||
4376 | |||
4377 | if test "$linkmode" = lib; then | ||
4378 | @@ -5130,9 +6057,9 @@ func_mode_link () | ||
4379 | if $opt_duplicate_compiler_generated_deps; then | ||
4380 | for pre_post_dep in $predeps $postdeps; do | ||
4381 | case "$pre_post_deps " in | ||
4382 | - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; | ||
4383 | + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; | ||
4384 | esac | ||
4385 | - pre_post_deps="$pre_post_deps $pre_post_dep" | ||
4386 | + func_append pre_post_deps " $pre_post_dep" | ||
4387 | done | ||
4388 | fi | ||
4389 | pre_post_deps= | ||
4390 | @@ -5199,17 +6126,19 @@ func_mode_link () | ||
4391 | for lib in $dlprefiles; do | ||
4392 | # Ignore non-libtool-libs | ||
4393 | dependency_libs= | ||
4394 | + func_resolve_sysroot "$lib" | ||
4395 | case $lib in | ||
4396 | - *.la) func_source "$lib" ;; | ||
4397 | + *.la) func_source "$func_resolve_sysroot_result" ;; | ||
4398 | esac | ||
4399 | |||
4400 | # Collect preopened libtool deplibs, except any this library | ||
4401 | # has declared as weak libs | ||
4402 | for deplib in $dependency_libs; do | ||
4403 | - deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` | ||
4404 | + func_basename "$deplib" | ||
4405 | + deplib_base=$func_basename_result | ||
4406 | case " $weak_libs " in | ||
4407 | *" $deplib_base "*) ;; | ||
4408 | - *) deplibs="$deplibs $deplib" ;; | ||
4409 | + *) func_append deplibs " $deplib" ;; | ||
4410 | esac | ||
4411 | done | ||
4412 | done | ||
4413 | @@ -5230,11 +6159,11 @@ func_mode_link () | ||
4414 | compile_deplibs="$deplib $compile_deplibs" | ||
4415 | finalize_deplibs="$deplib $finalize_deplibs" | ||
4416 | else | ||
4417 | - compiler_flags="$compiler_flags $deplib" | ||
4418 | + func_append compiler_flags " $deplib" | ||
4419 | if test "$linkmode" = lib ; then | ||
4420 | case "$new_inherited_linker_flags " in | ||
4421 | *" $deplib "*) ;; | ||
4422 | - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; | ||
4423 | + * ) func_append new_inherited_linker_flags " $deplib" ;; | ||
4424 | esac | ||
4425 | fi | ||
4426 | fi | ||
4427 | @@ -5319,7 +6248,7 @@ func_mode_link () | ||
4428 | if test "$linkmode" = lib ; then | ||
4429 | case "$new_inherited_linker_flags " in | ||
4430 | *" $deplib "*) ;; | ||
4431 | - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; | ||
4432 | + * ) func_append new_inherited_linker_flags " $deplib" ;; | ||
4433 | esac | ||
4434 | fi | ||
4435 | fi | ||
4436 | @@ -5332,7 +6261,8 @@ func_mode_link () | ||
4437 | test "$pass" = conv && continue | ||
4438 | newdependency_libs="$deplib $newdependency_libs" | ||
4439 | func_stripname '-L' '' "$deplib" | ||
4440 | - newlib_search_path="$newlib_search_path $func_stripname_result" | ||
4441 | + func_resolve_sysroot "$func_stripname_result" | ||
4442 | + func_append newlib_search_path " $func_resolve_sysroot_result" | ||
4443 | ;; | ||
4444 | prog) | ||
4445 | if test "$pass" = conv; then | ||
4446 | @@ -5346,7 +6276,8 @@ func_mode_link () | ||
4447 | finalize_deplibs="$deplib $finalize_deplibs" | ||
4448 | fi | ||
4449 | func_stripname '-L' '' "$deplib" | ||
4450 | - newlib_search_path="$newlib_search_path $func_stripname_result" | ||
4451 | + func_resolve_sysroot "$func_stripname_result" | ||
4452 | + func_append newlib_search_path " $func_resolve_sysroot_result" | ||
4453 | ;; | ||
4454 | *) | ||
4455 | func_warning "\`-L' is ignored for archives/objects" | ||
4456 | @@ -5357,17 +6288,21 @@ func_mode_link () | ||
4457 | -R*) | ||
4458 | if test "$pass" = link; then | ||
4459 | func_stripname '-R' '' "$deplib" | ||
4460 | - dir=$func_stripname_result | ||
4461 | + func_resolve_sysroot "$func_stripname_result" | ||
4462 | + dir=$func_resolve_sysroot_result | ||
4463 | # Make sure the xrpath contains only unique directories. | ||
4464 | case "$xrpath " in | ||
4465 | *" $dir "*) ;; | ||
4466 | - *) xrpath="$xrpath $dir" ;; | ||
4467 | + *) func_append xrpath " $dir" ;; | ||
4468 | esac | ||
4469 | fi | ||
4470 | deplibs="$deplib $deplibs" | ||
4471 | continue | ||
4472 | ;; | ||
4473 | - *.la) lib="$deplib" ;; | ||
4474 | + *.la) | ||
4475 | + func_resolve_sysroot "$deplib" | ||
4476 | + lib=$func_resolve_sysroot_result | ||
4477 | + ;; | ||
4478 | *.$libext) | ||
4479 | if test "$pass" = conv; then | ||
4480 | deplibs="$deplib $deplibs" | ||
4481 | @@ -5385,7 +6320,7 @@ func_mode_link () | ||
4482 | match_pattern*) | ||
4483 | set dummy $deplibs_check_method; shift | ||
4484 | match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` | ||
4485 | - if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ | ||
4486 | + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | ||
4487 | | $EGREP "$match_pattern_regex" > /dev/null; then | ||
4488 | valid_a_lib=yes | ||
4489 | fi | ||
4490 | @@ -5395,15 +6330,15 @@ func_mode_link () | ||
4491 | ;; | ||
4492 | esac | ||
4493 | if test "$valid_a_lib" != yes; then | ||
4494 | - $ECHO | ||
4495 | + echo | ||
4496 | $ECHO "*** Warning: Trying to link with static lib archive $deplib." | ||
4497 | - $ECHO "*** I have the capability to make that library automatically link in when" | ||
4498 | - $ECHO "*** you link to this library. But I can only do this if you have a" | ||
4499 | - $ECHO "*** shared version of the library, which you do not appear to have" | ||
4500 | - $ECHO "*** because the file extensions .$libext of this argument makes me believe" | ||
4501 | - $ECHO "*** that it is just a static archive that I should not use here." | ||
4502 | + echo "*** I have the capability to make that library automatically link in when" | ||
4503 | + echo "*** you link to this library. But I can only do this if you have a" | ||
4504 | + echo "*** shared version of the library, which you do not appear to have" | ||
4505 | + echo "*** because the file extensions .$libext of this argument makes me believe" | ||
4506 | + echo "*** that it is just a static archive that I should not use here." | ||
4507 | else | ||
4508 | - $ECHO | ||
4509 | + echo | ||
4510 | $ECHO "*** Warning: Linking the shared library $output against the" | ||
4511 | $ECHO "*** static library $deplib is not portable!" | ||
4512 | deplibs="$deplib $deplibs" | ||
4513 | @@ -5430,11 +6365,11 @@ func_mode_link () | ||
4514 | if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then | ||
4515 | # If there is no dlopen support or we're linking statically, | ||
4516 | # we need to preload. | ||
4517 | - newdlprefiles="$newdlprefiles $deplib" | ||
4518 | + func_append newdlprefiles " $deplib" | ||
4519 | compile_deplibs="$deplib $compile_deplibs" | ||
4520 | finalize_deplibs="$deplib $finalize_deplibs" | ||
4521 | else | ||
4522 | - newdlfiles="$newdlfiles $deplib" | ||
4523 | + func_append newdlfiles " $deplib" | ||
4524 | fi | ||
4525 | fi | ||
4526 | continue | ||
4527 | @@ -5476,20 +6411,20 @@ func_mode_link () | ||
4528 | |||
4529 | # Convert "-framework foo" to "foo.ltframework" | ||
4530 | if test -n "$inherited_linker_flags"; then | ||
4531 | - tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` | ||
4532 | + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` | ||
4533 | for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do | ||
4534 | case " $new_inherited_linker_flags " in | ||
4535 | *" $tmp_inherited_linker_flag "*) ;; | ||
4536 | - *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; | ||
4537 | + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; | ||
4538 | esac | ||
4539 | done | ||
4540 | fi | ||
4541 | - dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
4542 | + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
4543 | if test "$linkmode,$pass" = "lib,link" || | ||
4544 | test "$linkmode,$pass" = "prog,scan" || | ||
4545 | { test "$linkmode" != prog && test "$linkmode" != lib; }; then | ||
4546 | - test -n "$dlopen" && dlfiles="$dlfiles $dlopen" | ||
4547 | - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" | ||
4548 | + test -n "$dlopen" && func_append dlfiles " $dlopen" | ||
4549 | + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" | ||
4550 | fi | ||
4551 | |||
4552 | if test "$pass" = conv; then | ||
4553 | @@ -5500,20 +6435,20 @@ func_mode_link () | ||
4554 | func_fatal_error "cannot find name of link library for \`$lib'" | ||
4555 | fi | ||
4556 | # It is a libtool convenience library, so add in its objects. | ||
4557 | - convenience="$convenience $ladir/$objdir/$old_library" | ||
4558 | - old_convenience="$old_convenience $ladir/$objdir/$old_library" | ||
4559 | + func_append convenience " $ladir/$objdir/$old_library" | ||
4560 | + func_append old_convenience " $ladir/$objdir/$old_library" | ||
4561 | elif test "$linkmode" != prog && test "$linkmode" != lib; then | ||
4562 | func_fatal_error "\`$lib' is not a convenience library" | ||
4563 | fi | ||
4564 | tmp_libs= | ||
4565 | for deplib in $dependency_libs; do | ||
4566 | deplibs="$deplib $deplibs" | ||
4567 | - if $opt_duplicate_deps ; then | ||
4568 | + if $opt_preserve_dup_deps ; then | ||
4569 | case "$tmp_libs " in | ||
4570 | - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | ||
4571 | + *" $deplib "*) func_append specialdeplibs " $deplib" ;; | ||
4572 | esac | ||
4573 | fi | ||
4574 | - tmp_libs="$tmp_libs $deplib" | ||
4575 | + func_append tmp_libs " $deplib" | ||
4576 | done | ||
4577 | continue | ||
4578 | fi # $pass = conv | ||
4579 | @@ -5521,9 +6456,15 @@ func_mode_link () | ||
4580 | |||
4581 | # Get the name of the library we link against. | ||
4582 | linklib= | ||
4583 | - for l in $old_library $library_names; do | ||
4584 | - linklib="$l" | ||
4585 | - done | ||
4586 | + if test -n "$old_library" && | ||
4587 | + { test "$prefer_static_libs" = yes || | ||
4588 | + test "$prefer_static_libs,$installed" = "built,no"; }; then | ||
4589 | + linklib=$old_library | ||
4590 | + else | ||
4591 | + for l in $old_library $library_names; do | ||
4592 | + linklib="$l" | ||
4593 | + done | ||
4594 | + fi | ||
4595 | if test -z "$linklib"; then | ||
4596 | func_fatal_error "cannot find name of link library for \`$lib'" | ||
4597 | fi | ||
4598 | @@ -5540,9 +6481,9 @@ func_mode_link () | ||
4599 | # statically, we need to preload. We also need to preload any | ||
4600 | # dependent libraries so libltdl's deplib preloader doesn't | ||
4601 | # bomb out in the load deplibs phase. | ||
4602 | - dlprefiles="$dlprefiles $lib $dependency_libs" | ||
4603 | + func_append dlprefiles " $lib $dependency_libs" | ||
4604 | else | ||
4605 | - newdlfiles="$newdlfiles $lib" | ||
4606 | + func_append newdlfiles " $lib" | ||
4607 | fi | ||
4608 | continue | ||
4609 | fi # $pass = dlopen | ||
4610 | @@ -5564,14 +6505,14 @@ func_mode_link () | ||
4611 | |||
4612 | # Find the relevant object directory and library name. | ||
4613 | if test "X$installed" = Xyes; then | ||
4614 | - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then | ||
4615 | + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then | ||
4616 | func_warning "library \`$lib' was moved." | ||
4617 | dir="$ladir" | ||
4618 | absdir="$abs_ladir" | ||
4619 | libdir="$abs_ladir" | ||
4620 | else | ||
4621 | - dir="$libdir" | ||
4622 | - absdir="$libdir" | ||
4623 | + dir="$lt_sysroot$libdir" | ||
4624 | + absdir="$lt_sysroot$libdir" | ||
4625 | fi | ||
4626 | test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes | ||
4627 | else | ||
4628 | @@ -5579,12 +6520,12 @@ func_mode_link () | ||
4629 | dir="$ladir" | ||
4630 | absdir="$abs_ladir" | ||
4631 | # Remove this search path later | ||
4632 | - notinst_path="$notinst_path $abs_ladir" | ||
4633 | + func_append notinst_path " $abs_ladir" | ||
4634 | else | ||
4635 | dir="$ladir/$objdir" | ||
4636 | absdir="$abs_ladir/$objdir" | ||
4637 | # Remove this search path later | ||
4638 | - notinst_path="$notinst_path $abs_ladir" | ||
4639 | + func_append notinst_path " $abs_ladir" | ||
4640 | fi | ||
4641 | fi # $installed = yes | ||
4642 | func_stripname 'lib' '.la' "$laname" | ||
4643 | @@ -5595,20 +6536,46 @@ func_mode_link () | ||
4644 | if test -z "$libdir" && test "$linkmode" = prog; then | ||
4645 | func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" | ||
4646 | fi | ||
4647 | - # Prefer using a static library (so that no silly _DYNAMIC symbols | ||
4648 | - # are required to link). | ||
4649 | - if test -n "$old_library"; then | ||
4650 | - newdlprefiles="$newdlprefiles $dir/$old_library" | ||
4651 | - # Keep a list of preopened convenience libraries to check | ||
4652 | - # that they are being used correctly in the link pass. | ||
4653 | - test -z "$libdir" && \ | ||
4654 | - dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" | ||
4655 | - # Otherwise, use the dlname, so that lt_dlopen finds it. | ||
4656 | - elif test -n "$dlname"; then | ||
4657 | - newdlprefiles="$newdlprefiles $dir/$dlname" | ||
4658 | - else | ||
4659 | - newdlprefiles="$newdlprefiles $dir/$linklib" | ||
4660 | - fi | ||
4661 | + case "$host" in | ||
4662 | + # special handling for platforms with PE-DLLs. | ||
4663 | + *cygwin* | *mingw* | *cegcc* ) | ||
4664 | + # Linker will automatically link against shared library if both | ||
4665 | + # static and shared are present. Therefore, ensure we extract | ||
4666 | + # symbols from the import library if a shared library is present | ||
4667 | + # (otherwise, the dlopen module name will be incorrect). We do | ||
4668 | + # this by putting the import library name into $newdlprefiles. | ||
4669 | + # We recover the dlopen module name by 'saving' the la file | ||
4670 | + # name in a special purpose variable, and (later) extracting the | ||
4671 | + # dlname from the la file. | ||
4672 | + if test -n "$dlname"; then | ||
4673 | + func_tr_sh "$dir/$linklib" | ||
4674 | + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" | ||
4675 | + func_append newdlprefiles " $dir/$linklib" | ||
4676 | + else | ||
4677 | + func_append newdlprefiles " $dir/$old_library" | ||
4678 | + # Keep a list of preopened convenience libraries to check | ||
4679 | + # that they are being used correctly in the link pass. | ||
4680 | + test -z "$libdir" && \ | ||
4681 | + func_append dlpreconveniencelibs " $dir/$old_library" | ||
4682 | + fi | ||
4683 | + ;; | ||
4684 | + * ) | ||
4685 | + # Prefer using a static library (so that no silly _DYNAMIC symbols | ||
4686 | + # are required to link). | ||
4687 | + if test -n "$old_library"; then | ||
4688 | + func_append newdlprefiles " $dir/$old_library" | ||
4689 | + # Keep a list of preopened convenience libraries to check | ||
4690 | + # that they are being used correctly in the link pass. | ||
4691 | + test -z "$libdir" && \ | ||
4692 | + func_append dlpreconveniencelibs " $dir/$old_library" | ||
4693 | + # Otherwise, use the dlname, so that lt_dlopen finds it. | ||
4694 | + elif test -n "$dlname"; then | ||
4695 | + func_append newdlprefiles " $dir/$dlname" | ||
4696 | + else | ||
4697 | + func_append newdlprefiles " $dir/$linklib" | ||
4698 | + fi | ||
4699 | + ;; | ||
4700 | + esac | ||
4701 | fi # $pass = dlpreopen | ||
4702 | |||
4703 | if test -z "$libdir"; then | ||
4704 | @@ -5626,7 +6593,7 @@ func_mode_link () | ||
4705 | |||
4706 | |||
4707 | if test "$linkmode" = prog && test "$pass" != link; then | ||
4708 | - newlib_search_path="$newlib_search_path $ladir" | ||
4709 | + func_append newlib_search_path " $ladir" | ||
4710 | deplibs="$lib $deplibs" | ||
4711 | |||
4712 | linkalldeplibs=no | ||
4713 | @@ -5639,7 +6606,8 @@ func_mode_link () | ||
4714 | for deplib in $dependency_libs; do | ||
4715 | case $deplib in | ||
4716 | -L*) func_stripname '-L' '' "$deplib" | ||
4717 | - newlib_search_path="$newlib_search_path $func_stripname_result" | ||
4718 | + func_resolve_sysroot "$func_stripname_result" | ||
4719 | + func_append newlib_search_path " $func_resolve_sysroot_result" | ||
4720 | ;; | ||
4721 | esac | ||
4722 | # Need to link against all dependency_libs? | ||
4723 | @@ -5650,12 +6618,12 @@ func_mode_link () | ||
4724 | # or/and link against static libraries | ||
4725 | newdependency_libs="$deplib $newdependency_libs" | ||
4726 | fi | ||
4727 | - if $opt_duplicate_deps ; then | ||
4728 | + if $opt_preserve_dup_deps ; then | ||
4729 | case "$tmp_libs " in | ||
4730 | - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | ||
4731 | + *" $deplib "*) func_append specialdeplibs " $deplib" ;; | ||
4732 | esac | ||
4733 | fi | ||
4734 | - tmp_libs="$tmp_libs $deplib" | ||
4735 | + func_append tmp_libs " $deplib" | ||
4736 | done # for deplib | ||
4737 | continue | ||
4738 | fi # $linkmode = prog... | ||
4739 | @@ -5670,7 +6638,7 @@ func_mode_link () | ||
4740 | # Make sure the rpath contains only unique directories. | ||
4741 | case "$temp_rpath:" in | ||
4742 | *"$absdir:"*) ;; | ||
4743 | - *) temp_rpath="$temp_rpath$absdir:" ;; | ||
4744 | + *) func_append temp_rpath "$absdir:" ;; | ||
4745 | esac | ||
4746 | fi | ||
4747 | |||
4748 | @@ -5682,7 +6650,7 @@ func_mode_link () | ||
4749 | *) | ||
4750 | case "$compile_rpath " in | ||
4751 | *" $absdir "*) ;; | ||
4752 | - *) compile_rpath="$compile_rpath $absdir" | ||
4753 | + *) func_append compile_rpath " $absdir" ;; | ||
4754 | esac | ||
4755 | ;; | ||
4756 | esac | ||
4757 | @@ -5691,7 +6659,7 @@ func_mode_link () | ||
4758 | *) | ||
4759 | case "$finalize_rpath " in | ||
4760 | *" $libdir "*) ;; | ||
4761 | - *) finalize_rpath="$finalize_rpath $libdir" | ||
4762 | + *) func_append finalize_rpath " $libdir" ;; | ||
4763 | esac | ||
4764 | ;; | ||
4765 | esac | ||
4766 | @@ -5716,12 +6684,12 @@ func_mode_link () | ||
4767 | case $host in | ||
4768 | *cygwin* | *mingw* | *cegcc*) | ||
4769 | # No point in relinking DLLs because paths are not encoded | ||
4770 | - notinst_deplibs="$notinst_deplibs $lib" | ||
4771 | + func_append notinst_deplibs " $lib" | ||
4772 | need_relink=no | ||
4773 | ;; | ||
4774 | *) | ||
4775 | if test "$installed" = no; then | ||
4776 | - notinst_deplibs="$notinst_deplibs $lib" | ||
4777 | + func_append notinst_deplibs " $lib" | ||
4778 | need_relink=yes | ||
4779 | fi | ||
4780 | ;; | ||
4781 | @@ -5738,7 +6706,7 @@ func_mode_link () | ||
4782 | fi | ||
4783 | done | ||
4784 | if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then | ||
4785 | - $ECHO | ||
4786 | + echo | ||
4787 | if test "$linkmode" = prog; then | ||
4788 | $ECHO "*** Warning: Linking the executable $output against the loadable module" | ||
4789 | else | ||
4790 | @@ -5756,7 +6724,7 @@ func_mode_link () | ||
4791 | *) | ||
4792 | case "$compile_rpath " in | ||
4793 | *" $absdir "*) ;; | ||
4794 | - *) compile_rpath="$compile_rpath $absdir" | ||
4795 | + *) func_append compile_rpath " $absdir" ;; | ||
4796 | esac | ||
4797 | ;; | ||
4798 | esac | ||
4799 | @@ -5765,7 +6733,7 @@ func_mode_link () | ||
4800 | *) | ||
4801 | case "$finalize_rpath " in | ||
4802 | *" $libdir "*) ;; | ||
4803 | - *) finalize_rpath="$finalize_rpath $libdir" | ||
4804 | + *) func_append finalize_rpath " $libdir" ;; | ||
4805 | esac | ||
4806 | ;; | ||
4807 | esac | ||
4808 | @@ -5819,7 +6787,7 @@ func_mode_link () | ||
4809 | linklib=$newlib | ||
4810 | fi # test -n "$old_archive_from_expsyms_cmds" | ||
4811 | |||
4812 | - if test "$linkmode" = prog || test "$mode" != relink; then | ||
4813 | + if test "$linkmode" = prog || test "$opt_mode" != relink; then | ||
4814 | add_shlibpath= | ||
4815 | add_dir= | ||
4816 | add= | ||
4817 | @@ -5841,9 +6809,9 @@ func_mode_link () | ||
4818 | if test "X$dlopenmodule" != "X$lib"; then | ||
4819 | $ECHO "*** Warning: lib $linklib is a module, not a shared library" | ||
4820 | if test -z "$old_library" ; then | ||
4821 | - $ECHO | ||
4822 | - $ECHO "*** And there doesn't seem to be a static archive available" | ||
4823 | - $ECHO "*** The link will probably fail, sorry" | ||
4824 | + echo | ||
4825 | + echo "*** And there doesn't seem to be a static archive available" | ||
4826 | + echo "*** The link will probably fail, sorry" | ||
4827 | else | ||
4828 | add="$dir/$old_library" | ||
4829 | fi | ||
4830 | @@ -5875,7 +6843,7 @@ func_mode_link () | ||
4831 | if test -n "$inst_prefix_dir"; then | ||
4832 | case $libdir in | ||
4833 | [\\/]*) | ||
4834 | - add_dir="$add_dir -L$inst_prefix_dir$libdir" | ||
4835 | + func_append add_dir " -L$inst_prefix_dir$libdir" | ||
4836 | ;; | ||
4837 | esac | ||
4838 | fi | ||
4839 | @@ -5897,7 +6865,7 @@ func_mode_link () | ||
4840 | if test -n "$add_shlibpath"; then | ||
4841 | case :$compile_shlibpath: in | ||
4842 | *":$add_shlibpath:"*) ;; | ||
4843 | - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; | ||
4844 | + *) func_append compile_shlibpath "$add_shlibpath:" ;; | ||
4845 | esac | ||
4846 | fi | ||
4847 | if test "$linkmode" = prog; then | ||
4848 | @@ -5911,13 +6879,13 @@ func_mode_link () | ||
4849 | test "$hardcode_shlibpath_var" = yes; then | ||
4850 | case :$finalize_shlibpath: in | ||
4851 | *":$libdir:"*) ;; | ||
4852 | - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; | ||
4853 | + *) func_append finalize_shlibpath "$libdir:" ;; | ||
4854 | esac | ||
4855 | fi | ||
4856 | fi | ||
4857 | fi | ||
4858 | |||
4859 | - if test "$linkmode" = prog || test "$mode" = relink; then | ||
4860 | + if test "$linkmode" = prog || test "$opt_mode" = relink; then | ||
4861 | add_shlibpath= | ||
4862 | add_dir= | ||
4863 | add= | ||
4864 | @@ -5931,7 +6899,7 @@ func_mode_link () | ||
4865 | elif test "$hardcode_shlibpath_var" = yes; then | ||
4866 | case :$finalize_shlibpath: in | ||
4867 | *":$libdir:"*) ;; | ||
4868 | - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; | ||
4869 | + *) func_append finalize_shlibpath "$libdir:" ;; | ||
4870 | esac | ||
4871 | add="-l$name" | ||
4872 | elif test "$hardcode_automatic" = yes; then | ||
4873 | @@ -5942,13 +6910,11 @@ func_mode_link () | ||
4874 | add="$libdir/$linklib" | ||
4875 | fi | ||
4876 | else | ||
4877 | - # We cannot seem to hardcode it, guess we'll fake it. | ||
4878 | - add_dir="-L$libdir" | ||
4879 | # Try looking first in the location we're being installed to. | ||
4880 | if test -n "$inst_prefix_dir"; then | ||
4881 | case $libdir in | ||
4882 | [\\/]*) | ||
4883 | - add_dir="$add_dir -L$inst_prefix_dir$libdir" | ||
4884 | + func_append add_dir " -L$inst_prefix_dir$libdir" | ||
4885 | ;; | ||
4886 | esac | ||
4887 | fi | ||
4888 | @@ -5983,21 +6949,21 @@ func_mode_link () | ||
4889 | |||
4890 | # Just print a warning and add the library to dependency_libs so | ||
4891 | # that the program can be linked against the static library. | ||
4892 | - $ECHO | ||
4893 | + echo | ||
4894 | $ECHO "*** Warning: This system can not link to static lib archive $lib." | ||
4895 | - $ECHO "*** I have the capability to make that library automatically link in when" | ||
4896 | - $ECHO "*** you link to this library. But I can only do this if you have a" | ||
4897 | - $ECHO "*** shared version of the library, which you do not appear to have." | ||
4898 | + echo "*** I have the capability to make that library automatically link in when" | ||
4899 | + echo "*** you link to this library. But I can only do this if you have a" | ||
4900 | + echo "*** shared version of the library, which you do not appear to have." | ||
4901 | if test "$module" = yes; then | ||
4902 | - $ECHO "*** But as you try to build a module library, libtool will still create " | ||
4903 | - $ECHO "*** a static module, that should work as long as the dlopening application" | ||
4904 | - $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." | ||
4905 | + echo "*** But as you try to build a module library, libtool will still create " | ||
4906 | + echo "*** a static module, that should work as long as the dlopening application" | ||
4907 | + echo "*** is linked with the -dlopen flag to resolve symbols at runtime." | ||
4908 | if test -z "$global_symbol_pipe"; then | ||
4909 | - $ECHO | ||
4910 | - $ECHO "*** However, this would only work if libtool was able to extract symbol" | ||
4911 | - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" | ||
4912 | - $ECHO "*** not find such a program. So, this module is probably useless." | ||
4913 | - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." | ||
4914 | + echo | ||
4915 | + echo "*** However, this would only work if libtool was able to extract symbol" | ||
4916 | + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" | ||
4917 | + echo "*** not find such a program. So, this module is probably useless." | ||
4918 | + echo "*** \`nm' from GNU binutils and a full rebuild may help." | ||
4919 | fi | ||
4920 | if test "$build_old_libs" = no; then | ||
4921 | build_libtool_libs=module | ||
4922 | @@ -6025,37 +6991,46 @@ func_mode_link () | ||
4923 | temp_xrpath=$func_stripname_result | ||
4924 | case " $xrpath " in | ||
4925 | *" $temp_xrpath "*) ;; | ||
4926 | - *) xrpath="$xrpath $temp_xrpath";; | ||
4927 | + *) func_append xrpath " $temp_xrpath";; | ||
4928 | esac;; | ||
4929 | - *) temp_deplibs="$temp_deplibs $libdir";; | ||
4930 | + *) func_append temp_deplibs " $libdir";; | ||
4931 | esac | ||
4932 | done | ||
4933 | dependency_libs="$temp_deplibs" | ||
4934 | fi | ||
4935 | |||
4936 | - newlib_search_path="$newlib_search_path $absdir" | ||
4937 | + func_append newlib_search_path " $absdir" | ||
4938 | # Link against this library | ||
4939 | test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" | ||
4940 | # ... and its dependency_libs | ||
4941 | tmp_libs= | ||
4942 | for deplib in $dependency_libs; do | ||
4943 | newdependency_libs="$deplib $newdependency_libs" | ||
4944 | - if $opt_duplicate_deps ; then | ||
4945 | + case $deplib in | ||
4946 | + -L*) func_stripname '-L' '' "$deplib" | ||
4947 | + func_resolve_sysroot "$func_stripname_result";; | ||
4948 | + *) func_resolve_sysroot "$deplib" ;; | ||
4949 | + esac | ||
4950 | + if $opt_preserve_dup_deps ; then | ||
4951 | case "$tmp_libs " in | ||
4952 | - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | ||
4953 | + *" $func_resolve_sysroot_result "*) | ||
4954 | + func_append specialdeplibs " $func_resolve_sysroot_result" ;; | ||
4955 | esac | ||
4956 | fi | ||
4957 | - tmp_libs="$tmp_libs $deplib" | ||
4958 | + func_append tmp_libs " $func_resolve_sysroot_result" | ||
4959 | done | ||
4960 | |||
4961 | if test "$link_all_deplibs" != no; then | ||
4962 | # Add the search paths of all dependency libraries | ||
4963 | for deplib in $dependency_libs; do | ||
4964 | + path= | ||
4965 | case $deplib in | ||
4966 | -L*) path="$deplib" ;; | ||
4967 | *.la) | ||
4968 | + func_resolve_sysroot "$deplib" | ||
4969 | + deplib=$func_resolve_sysroot_result | ||
4970 | func_dirname "$deplib" "" "." | ||
4971 | - dir="$func_dirname_result" | ||
4972 | + dir=$func_dirname_result | ||
4973 | # We need an absolute path. | ||
4974 | case $dir in | ||
4975 | [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; | ||
4976 | @@ -6082,15 +7057,25 @@ func_mode_link () | ||
4977 | if test -z "$darwin_install_name"; then | ||
4978 | darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` | ||
4979 | fi | ||
4980 | - compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" | ||
4981 | - linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" | ||
4982 | + func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" | ||
4983 | + func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" | ||
4984 | path= | ||
4985 | fi | ||
4986 | fi | ||
4987 | ;; | ||
4988 | *) | ||
4989 | - path="-L$absdir/$objdir" | ||
4990 | - ;; | ||
4991 | + # OE sets installed=no in staging. We need to look in $objdir and $absdir, | ||
4992 | + # preferring $objdir. RP 31/04/2008 | ||
4993 | + if test -f "$absdir/$objdir/$depdepl" ; then | ||
4994 | + depdepl="$absdir/$objdir/$depdepl" | ||
4995 | + path="-L$absdir/$objdir" | ||
4996 | + elif test -f "$absdir/$depdepl" ; then | ||
4997 | + depdepl="$absdir/$depdepl" | ||
4998 | + path="-L$absdir" | ||
4999 | + else | ||
5000 | + path="-L$absdir/$objdir" | ||
5001 | + fi | ||
5002 | + ;; | ||
5003 | esac | ||
5004 | else | ||
5005 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` | ||
5006 | @@ -6116,7 +7101,7 @@ func_mode_link () | ||
5007 | compile_deplibs="$new_inherited_linker_flags $compile_deplibs" | ||
5008 | finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" | ||
5009 | else | ||
5010 | - compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5011 | + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5012 | fi | ||
5013 | fi | ||
5014 | dependency_libs="$newdependency_libs" | ||
5015 | @@ -6133,7 +7118,7 @@ func_mode_link () | ||
5016 | for dir in $newlib_search_path; do | ||
5017 | case "$lib_search_path " in | ||
5018 | *" $dir "*) ;; | ||
5019 | - *) lib_search_path="$lib_search_path $dir" ;; | ||
5020 | + *) func_append lib_search_path " $dir" ;; | ||
5021 | esac | ||
5022 | done | ||
5023 | newlib_search_path= | ||
5024 | @@ -6191,10 +7176,10 @@ func_mode_link () | ||
5025 | -L*) | ||
5026 | case " $tmp_libs " in | ||
5027 | *" $deplib "*) ;; | ||
5028 | - *) tmp_libs="$tmp_libs $deplib" ;; | ||
5029 | + *) func_append tmp_libs " $deplib" ;; | ||
5030 | esac | ||
5031 | ;; | ||
5032 | - *) tmp_libs="$tmp_libs $deplib" ;; | ||
5033 | + *) func_append tmp_libs " $deplib" ;; | ||
5034 | esac | ||
5035 | done | ||
5036 | eval $var=\"$tmp_libs\" | ||
5037 | @@ -6210,7 +7195,7 @@ func_mode_link () | ||
5038 | ;; | ||
5039 | esac | ||
5040 | if test -n "$i" ; then | ||
5041 | - tmp_libs="$tmp_libs $i" | ||
5042 | + func_append tmp_libs " $i" | ||
5043 | fi | ||
5044 | done | ||
5045 | dependency_libs=$tmp_libs | ||
5046 | @@ -6251,7 +7236,7 @@ func_mode_link () | ||
5047 | # Now set the variables for building old libraries. | ||
5048 | build_libtool_libs=no | ||
5049 | oldlibs="$output" | ||
5050 | - objs="$objs$old_deplibs" | ||
5051 | + func_append objs "$old_deplibs" | ||
5052 | ;; | ||
5053 | |||
5054 | lib) | ||
5055 | @@ -6284,10 +7269,10 @@ func_mode_link () | ||
5056 | if test "$deplibs_check_method" != pass_all; then | ||
5057 | func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" | ||
5058 | else | ||
5059 | - $ECHO | ||
5060 | + echo | ||
5061 | $ECHO "*** Warning: Linking the shared library $output against the non-libtool" | ||
5062 | $ECHO "*** objects $objs is not portable!" | ||
5063 | - libobjs="$libobjs $objs" | ||
5064 | + func_append libobjs " $objs" | ||
5065 | fi | ||
5066 | fi | ||
5067 | |||
5068 | @@ -6352,7 +7337,7 @@ func_mode_link () | ||
5069 | age="$number_minor" | ||
5070 | revision="$number_revision" | ||
5071 | ;; | ||
5072 | - freebsd-aout|freebsd-elf|sunos) | ||
5073 | + freebsd-aout|freebsd-elf|qnx|sunos) | ||
5074 | current="$number_major" | ||
5075 | revision="$number_minor" | ||
5076 | age="0" | ||
5077 | @@ -6485,7 +7470,7 @@ func_mode_link () | ||
5078 | done | ||
5079 | |||
5080 | # Make executables depend on our current version. | ||
5081 | - verstring="$verstring:${current}.0" | ||
5082 | + func_append verstring ":${current}.0" | ||
5083 | ;; | ||
5084 | |||
5085 | qnx) | ||
5086 | @@ -6553,10 +7538,10 @@ func_mode_link () | ||
5087 | fi | ||
5088 | |||
5089 | func_generate_dlsyms "$libname" "$libname" "yes" | ||
5090 | - libobjs="$libobjs $symfileobj" | ||
5091 | + func_append libobjs " $symfileobj" | ||
5092 | test "X$libobjs" = "X " && libobjs= | ||
5093 | |||
5094 | - if test "$mode" != relink; then | ||
5095 | + if test "$opt_mode" != relink; then | ||
5096 | # Remove our outputs, but don't remove object files since they | ||
5097 | # may have been created when compiling PIC objects. | ||
5098 | removelist= | ||
5099 | @@ -6572,7 +7557,7 @@ func_mode_link () | ||
5100 | continue | ||
5101 | fi | ||
5102 | fi | ||
5103 | - removelist="$removelist $p" | ||
5104 | + func_append removelist " $p" | ||
5105 | ;; | ||
5106 | *) ;; | ||
5107 | esac | ||
5108 | @@ -6583,27 +7568,28 @@ func_mode_link () | ||
5109 | |||
5110 | # Now set the variables for building old libraries. | ||
5111 | if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then | ||
5112 | - oldlibs="$oldlibs $output_objdir/$libname.$libext" | ||
5113 | + func_append oldlibs " $output_objdir/$libname.$libext" | ||
5114 | |||
5115 | # Transform .lo files to .o files. | ||
5116 | - oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` | ||
5117 | + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` | ||
5118 | fi | ||
5119 | |||
5120 | # Eliminate all temporary directories. | ||
5121 | #for path in $notinst_path; do | ||
5122 | - # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` | ||
5123 | - # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` | ||
5124 | - # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` | ||
5125 | + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` | ||
5126 | + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` | ||
5127 | + # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` | ||
5128 | #done | ||
5129 | |||
5130 | if test -n "$xrpath"; then | ||
5131 | # If the user specified any rpath flags, then add them. | ||
5132 | temp_xrpath= | ||
5133 | for libdir in $xrpath; do | ||
5134 | - temp_xrpath="$temp_xrpath -R$libdir" | ||
5135 | + func_replace_sysroot "$libdir" | ||
5136 | + func_append temp_xrpath " -R$func_replace_sysroot_result" | ||
5137 | case "$finalize_rpath " in | ||
5138 | *" $libdir "*) ;; | ||
5139 | - *) finalize_rpath="$finalize_rpath $libdir" ;; | ||
5140 | + *) func_append finalize_rpath " $libdir" ;; | ||
5141 | esac | ||
5142 | done | ||
5143 | if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then | ||
5144 | @@ -6617,7 +7603,7 @@ func_mode_link () | ||
5145 | for lib in $old_dlfiles; do | ||
5146 | case " $dlprefiles $dlfiles " in | ||
5147 | *" $lib "*) ;; | ||
5148 | - *) dlfiles="$dlfiles $lib" ;; | ||
5149 | + *) func_append dlfiles " $lib" ;; | ||
5150 | esac | ||
5151 | done | ||
5152 | |||
5153 | @@ -6627,19 +7613,19 @@ func_mode_link () | ||
5154 | for lib in $old_dlprefiles; do | ||
5155 | case "$dlprefiles " in | ||
5156 | *" $lib "*) ;; | ||
5157 | - *) dlprefiles="$dlprefiles $lib" ;; | ||
5158 | + *) func_append dlprefiles " $lib" ;; | ||
5159 | esac | ||
5160 | done | ||
5161 | |||
5162 | if test "$build_libtool_libs" = yes; then | ||
5163 | if test -n "$rpath"; then | ||
5164 | case $host in | ||
5165 | - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) | ||
5166 | + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) | ||
5167 | # these systems don't actually have a c library (as such)! | ||
5168 | ;; | ||
5169 | *-*-rhapsody* | *-*-darwin1.[012]) | ||
5170 | # Rhapsody C library is in the System framework | ||
5171 | - deplibs="$deplibs System.ltframework" | ||
5172 | + func_append deplibs " System.ltframework" | ||
5173 | ;; | ||
5174 | *-*-netbsd*) | ||
5175 | # Don't link with libc until the a.out ld.so is fixed. | ||
5176 | @@ -6656,7 +7642,7 @@ func_mode_link () | ||
5177 | *) | ||
5178 | # Add libc to deplibs on all other systems if necessary. | ||
5179 | if test "$build_libtool_need_lc" = "yes"; then | ||
5180 | - deplibs="$deplibs -lc" | ||
5181 | + func_append deplibs " -lc" | ||
5182 | fi | ||
5183 | ;; | ||
5184 | esac | ||
5185 | @@ -6705,7 +7691,7 @@ EOF | ||
5186 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | ||
5187 | case " $predeps $postdeps " in | ||
5188 | *" $i "*) | ||
5189 | - newdeplibs="$newdeplibs $i" | ||
5190 | + func_append newdeplibs " $i" | ||
5191 | i="" | ||
5192 | ;; | ||
5193 | esac | ||
5194 | @@ -6716,21 +7702,21 @@ EOF | ||
5195 | set dummy $deplib_matches; shift | ||
5196 | deplib_match=$1 | ||
5197 | if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then | ||
5198 | - newdeplibs="$newdeplibs $i" | ||
5199 | + func_append newdeplibs " $i" | ||
5200 | else | ||
5201 | droppeddeps=yes | ||
5202 | - $ECHO | ||
5203 | + echo | ||
5204 | $ECHO "*** Warning: dynamic linker does not accept needed library $i." | ||
5205 | - $ECHO "*** I have the capability to make that library automatically link in when" | ||
5206 | - $ECHO "*** you link to this library. But I can only do this if you have a" | ||
5207 | - $ECHO "*** shared version of the library, which I believe you do not have" | ||
5208 | - $ECHO "*** because a test_compile did reveal that the linker did not use it for" | ||
5209 | - $ECHO "*** its dynamic dependency list that programs get resolved with at runtime." | ||
5210 | + echo "*** I have the capability to make that library automatically link in when" | ||
5211 | + echo "*** you link to this library. But I can only do this if you have a" | ||
5212 | + echo "*** shared version of the library, which I believe you do not have" | ||
5213 | + echo "*** because a test_compile did reveal that the linker did not use it for" | ||
5214 | + echo "*** its dynamic dependency list that programs get resolved with at runtime." | ||
5215 | fi | ||
5216 | fi | ||
5217 | ;; | ||
5218 | *) | ||
5219 | - newdeplibs="$newdeplibs $i" | ||
5220 | + func_append newdeplibs " $i" | ||
5221 | ;; | ||
5222 | esac | ||
5223 | done | ||
5224 | @@ -6748,7 +7734,7 @@ EOF | ||
5225 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | ||
5226 | case " $predeps $postdeps " in | ||
5227 | *" $i "*) | ||
5228 | - newdeplibs="$newdeplibs $i" | ||
5229 | + func_append newdeplibs " $i" | ||
5230 | i="" | ||
5231 | ;; | ||
5232 | esac | ||
5233 | @@ -6759,29 +7745,29 @@ EOF | ||
5234 | set dummy $deplib_matches; shift | ||
5235 | deplib_match=$1 | ||
5236 | if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then | ||
5237 | - newdeplibs="$newdeplibs $i" | ||
5238 | + func_append newdeplibs " $i" | ||
5239 | else | ||
5240 | droppeddeps=yes | ||
5241 | - $ECHO | ||
5242 | + echo | ||
5243 | $ECHO "*** Warning: dynamic linker does not accept needed library $i." | ||
5244 | - $ECHO "*** I have the capability to make that library automatically link in when" | ||
5245 | - $ECHO "*** you link to this library. But I can only do this if you have a" | ||
5246 | - $ECHO "*** shared version of the library, which you do not appear to have" | ||
5247 | - $ECHO "*** because a test_compile did reveal that the linker did not use this one" | ||
5248 | - $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime." | ||
5249 | + echo "*** I have the capability to make that library automatically link in when" | ||
5250 | + echo "*** you link to this library. But I can only do this if you have a" | ||
5251 | + echo "*** shared version of the library, which you do not appear to have" | ||
5252 | + echo "*** because a test_compile did reveal that the linker did not use this one" | ||
5253 | + echo "*** as a dynamic dependency that programs can get resolved with at runtime." | ||
5254 | fi | ||
5255 | fi | ||
5256 | else | ||
5257 | droppeddeps=yes | ||
5258 | - $ECHO | ||
5259 | + echo | ||
5260 | $ECHO "*** Warning! Library $i is needed by this library but I was not able to" | ||
5261 | - $ECHO "*** make it link in! You will probably need to install it or some" | ||
5262 | - $ECHO "*** library that it depends on before this library will be fully" | ||
5263 | - $ECHO "*** functional. Installing it before continuing would be even better." | ||
5264 | + echo "*** make it link in! You will probably need to install it or some" | ||
5265 | + echo "*** library that it depends on before this library will be fully" | ||
5266 | + echo "*** functional. Installing it before continuing would be even better." | ||
5267 | fi | ||
5268 | ;; | ||
5269 | *) | ||
5270 | - newdeplibs="$newdeplibs $i" | ||
5271 | + func_append newdeplibs " $i" | ||
5272 | ;; | ||
5273 | esac | ||
5274 | done | ||
5275 | @@ -6798,15 +7784,27 @@ EOF | ||
5276 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | ||
5277 | case " $predeps $postdeps " in | ||
5278 | *" $a_deplib "*) | ||
5279 | - newdeplibs="$newdeplibs $a_deplib" | ||
5280 | + func_append newdeplibs " $a_deplib" | ||
5281 | a_deplib="" | ||
5282 | ;; | ||
5283 | esac | ||
5284 | fi | ||
5285 | if test -n "$a_deplib" ; then | ||
5286 | libname=`eval "\\$ECHO \"$libname_spec\""` | ||
5287 | + if test -n "$file_magic_glob"; then | ||
5288 | + libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob` | ||
5289 | + else | ||
5290 | + libnameglob=$libname | ||
5291 | + fi | ||
5292 | + test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob` | ||
5293 | for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do | ||
5294 | - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` | ||
5295 | + if test "$want_nocaseglob" = yes; then | ||
5296 | + shopt -s nocaseglob | ||
5297 | + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` | ||
5298 | + $nocaseglob | ||
5299 | + else | ||
5300 | + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` | ||
5301 | + fi | ||
5302 | for potent_lib in $potential_libs; do | ||
5303 | # Follow soft links. | ||
5304 | if ls -lLd "$potent_lib" 2>/dev/null | | ||
5305 | @@ -6823,13 +7821,13 @@ EOF | ||
5306 | potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` | ||
5307 | case $potliblink in | ||
5308 | [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; | ||
5309 | - *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; | ||
5310 | + *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; | ||
5311 | esac | ||
5312 | done | ||
5313 | if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | | ||
5314 | $SED -e 10q | | ||
5315 | $EGREP "$file_magic_regex" > /dev/null; then | ||
5316 | - newdeplibs="$newdeplibs $a_deplib" | ||
5317 | + func_append newdeplibs " $a_deplib" | ||
5318 | a_deplib="" | ||
5319 | break 2 | ||
5320 | fi | ||
5321 | @@ -6838,12 +7836,12 @@ EOF | ||
5322 | fi | ||
5323 | if test -n "$a_deplib" ; then | ||
5324 | droppeddeps=yes | ||
5325 | - $ECHO | ||
5326 | + echo | ||
5327 | $ECHO "*** Warning: linker path does not have real file for library $a_deplib." | ||
5328 | - $ECHO "*** I have the capability to make that library automatically link in when" | ||
5329 | - $ECHO "*** you link to this library. But I can only do this if you have a" | ||
5330 | - $ECHO "*** shared version of the library, which you do not appear to have" | ||
5331 | - $ECHO "*** because I did check the linker path looking for a file starting" | ||
5332 | + echo "*** I have the capability to make that library automatically link in when" | ||
5333 | + echo "*** you link to this library. But I can only do this if you have a" | ||
5334 | + echo "*** shared version of the library, which you do not appear to have" | ||
5335 | + echo "*** because I did check the linker path looking for a file starting" | ||
5336 | if test -z "$potlib" ; then | ||
5337 | $ECHO "*** with $libname but no candidates were found. (...for file magic test)" | ||
5338 | else | ||
5339 | @@ -6854,7 +7852,7 @@ EOF | ||
5340 | ;; | ||
5341 | *) | ||
5342 | # Add a -L argument. | ||
5343 | - newdeplibs="$newdeplibs $a_deplib" | ||
5344 | + func_append newdeplibs " $a_deplib" | ||
5345 | ;; | ||
5346 | esac | ||
5347 | done # Gone through all deplibs. | ||
5348 | @@ -6870,7 +7868,7 @@ EOF | ||
5349 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | ||
5350 | case " $predeps $postdeps " in | ||
5351 | *" $a_deplib "*) | ||
5352 | - newdeplibs="$newdeplibs $a_deplib" | ||
5353 | + func_append newdeplibs " $a_deplib" | ||
5354 | a_deplib="" | ||
5355 | ;; | ||
5356 | esac | ||
5357 | @@ -6881,9 +7879,9 @@ EOF | ||
5358 | potential_libs=`ls $i/$libname[.-]* 2>/dev/null` | ||
5359 | for potent_lib in $potential_libs; do | ||
5360 | potlib="$potent_lib" # see symlink-check above in file_magic test | ||
5361 | - if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ | ||
5362 | + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ | ||
5363 | $EGREP "$match_pattern_regex" > /dev/null; then | ||
5364 | - newdeplibs="$newdeplibs $a_deplib" | ||
5365 | + func_append newdeplibs " $a_deplib" | ||
5366 | a_deplib="" | ||
5367 | break 2 | ||
5368 | fi | ||
5369 | @@ -6892,12 +7890,12 @@ EOF | ||
5370 | fi | ||
5371 | if test -n "$a_deplib" ; then | ||
5372 | droppeddeps=yes | ||
5373 | - $ECHO | ||
5374 | + echo | ||
5375 | $ECHO "*** Warning: linker path does not have real file for library $a_deplib." | ||
5376 | - $ECHO "*** I have the capability to make that library automatically link in when" | ||
5377 | - $ECHO "*** you link to this library. But I can only do this if you have a" | ||
5378 | - $ECHO "*** shared version of the library, which you do not appear to have" | ||
5379 | - $ECHO "*** because I did check the linker path looking for a file starting" | ||
5380 | + echo "*** I have the capability to make that library automatically link in when" | ||
5381 | + echo "*** you link to this library. But I can only do this if you have a" | ||
5382 | + echo "*** shared version of the library, which you do not appear to have" | ||
5383 | + echo "*** because I did check the linker path looking for a file starting" | ||
5384 | if test -z "$potlib" ; then | ||
5385 | $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" | ||
5386 | else | ||
5387 | @@ -6908,32 +7906,32 @@ EOF | ||
5388 | ;; | ||
5389 | *) | ||
5390 | # Add a -L argument. | ||
5391 | - newdeplibs="$newdeplibs $a_deplib" | ||
5392 | + func_append newdeplibs " $a_deplib" | ||
5393 | ;; | ||
5394 | esac | ||
5395 | done # Gone through all deplibs. | ||
5396 | ;; | ||
5397 | none | unknown | *) | ||
5398 | newdeplibs="" | ||
5399 | - tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ | ||
5400 | - -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` | ||
5401 | + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` | ||
5402 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | ||
5403 | for i in $predeps $postdeps ; do | ||
5404 | # can't use Xsed below, because $i might contain '/' | ||
5405 | - tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` | ||
5406 | + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` | ||
5407 | done | ||
5408 | fi | ||
5409 | - if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | | ||
5410 | - $GREP . >/dev/null; then | ||
5411 | - $ECHO | ||
5412 | + case $tmp_deplibs in | ||
5413 | + *[!\ \ ]*) | ||
5414 | + echo | ||
5415 | if test "X$deplibs_check_method" = "Xnone"; then | ||
5416 | - $ECHO "*** Warning: inter-library dependencies are not supported in this platform." | ||
5417 | + echo "*** Warning: inter-library dependencies are not supported in this platform." | ||
5418 | else | ||
5419 | - $ECHO "*** Warning: inter-library dependencies are not known to be supported." | ||
5420 | + echo "*** Warning: inter-library dependencies are not known to be supported." | ||
5421 | fi | ||
5422 | - $ECHO "*** All declared inter-library dependencies are being dropped." | ||
5423 | + echo "*** All declared inter-library dependencies are being dropped." | ||
5424 | droppeddeps=yes | ||
5425 | - fi | ||
5426 | + ;; | ||
5427 | + esac | ||
5428 | ;; | ||
5429 | esac | ||
5430 | versuffix=$versuffix_save | ||
5431 | @@ -6945,23 +7943,23 @@ EOF | ||
5432 | case $host in | ||
5433 | *-*-rhapsody* | *-*-darwin1.[012]) | ||
5434 | # On Rhapsody replace the C library with the System framework | ||
5435 | - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` | ||
5436 | + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` | ||
5437 | ;; | ||
5438 | esac | ||
5439 | |||
5440 | if test "$droppeddeps" = yes; then | ||
5441 | if test "$module" = yes; then | ||
5442 | - $ECHO | ||
5443 | - $ECHO "*** Warning: libtool could not satisfy all declared inter-library" | ||
5444 | + echo | ||
5445 | + echo "*** Warning: libtool could not satisfy all declared inter-library" | ||
5446 | $ECHO "*** dependencies of module $libname. Therefore, libtool will create" | ||
5447 | - $ECHO "*** a static module, that should work as long as the dlopening" | ||
5448 | - $ECHO "*** application is linked with the -dlopen flag." | ||
5449 | + echo "*** a static module, that should work as long as the dlopening" | ||
5450 | + echo "*** application is linked with the -dlopen flag." | ||
5451 | if test -z "$global_symbol_pipe"; then | ||
5452 | - $ECHO | ||
5453 | - $ECHO "*** However, this would only work if libtool was able to extract symbol" | ||
5454 | - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" | ||
5455 | - $ECHO "*** not find such a program. So, this module is probably useless." | ||
5456 | - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." | ||
5457 | + echo | ||
5458 | + echo "*** However, this would only work if libtool was able to extract symbol" | ||
5459 | + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" | ||
5460 | + echo "*** not find such a program. So, this module is probably useless." | ||
5461 | + echo "*** \`nm' from GNU binutils and a full rebuild may help." | ||
5462 | fi | ||
5463 | if test "$build_old_libs" = no; then | ||
5464 | oldlibs="$output_objdir/$libname.$libext" | ||
5465 | @@ -6971,16 +7969,16 @@ EOF | ||
5466 | build_libtool_libs=no | ||
5467 | fi | ||
5468 | else | ||
5469 | - $ECHO "*** The inter-library dependencies that have been dropped here will be" | ||
5470 | - $ECHO "*** automatically added whenever a program is linked with this library" | ||
5471 | - $ECHO "*** or is declared to -dlopen it." | ||
5472 | + echo "*** The inter-library dependencies that have been dropped here will be" | ||
5473 | + echo "*** automatically added whenever a program is linked with this library" | ||
5474 | + echo "*** or is declared to -dlopen it." | ||
5475 | |||
5476 | if test "$allow_undefined" = no; then | ||
5477 | - $ECHO | ||
5478 | - $ECHO "*** Since this library must not contain undefined symbols," | ||
5479 | - $ECHO "*** because either the platform does not support them or" | ||
5480 | - $ECHO "*** it was explicitly requested with -no-undefined," | ||
5481 | - $ECHO "*** libtool will only create a static version of it." | ||
5482 | + echo | ||
5483 | + echo "*** Since this library must not contain undefined symbols," | ||
5484 | + echo "*** because either the platform does not support them or" | ||
5485 | + echo "*** it was explicitly requested with -no-undefined," | ||
5486 | + echo "*** libtool will only create a static version of it." | ||
5487 | if test "$build_old_libs" = no; then | ||
5488 | oldlibs="$output_objdir/$libname.$libext" | ||
5489 | build_libtool_libs=module | ||
5490 | @@ -6997,9 +7995,9 @@ EOF | ||
5491 | # Time to change all our "foo.ltframework" stuff back to "-framework foo" | ||
5492 | case $host in | ||
5493 | *-*-darwin*) | ||
5494 | - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5495 | - new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5496 | - deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5497 | + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5498 | + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5499 | + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5500 | ;; | ||
5501 | esac | ||
5502 | |||
5503 | @@ -7012,7 +8010,7 @@ EOF | ||
5504 | *) | ||
5505 | case " $deplibs " in | ||
5506 | *" -L$path/$objdir "*) | ||
5507 | - new_libs="$new_libs -L$path/$objdir" ;; | ||
5508 | + func_append new_libs " -L$path/$objdir" ;; | ||
5509 | esac | ||
5510 | ;; | ||
5511 | esac | ||
5512 | @@ -7022,10 +8020,10 @@ EOF | ||
5513 | -L*) | ||
5514 | case " $new_libs " in | ||
5515 | *" $deplib "*) ;; | ||
5516 | - *) new_libs="$new_libs $deplib" ;; | ||
5517 | + *) func_append new_libs " $deplib" ;; | ||
5518 | esac | ||
5519 | ;; | ||
5520 | - *) new_libs="$new_libs $deplib" ;; | ||
5521 | + *) func_append new_libs " $deplib" ;; | ||
5522 | esac | ||
5523 | done | ||
5524 | deplibs="$new_libs" | ||
5525 | @@ -7042,10 +8040,12 @@ EOF | ||
5526 | hardcode_libdirs= | ||
5527 | dep_rpath= | ||
5528 | rpath="$finalize_rpath" | ||
5529 | - test "$mode" != relink && rpath="$compile_rpath$rpath" | ||
5530 | + test "$opt_mode" != relink && rpath="$compile_rpath$rpath" | ||
5531 | for libdir in $rpath; do | ||
5532 | if test -n "$hardcode_libdir_flag_spec"; then | ||
5533 | if test -n "$hardcode_libdir_separator"; then | ||
5534 | + func_replace_sysroot "$libdir" | ||
5535 | + libdir=$func_replace_sysroot_result | ||
5536 | if test -z "$hardcode_libdirs"; then | ||
5537 | hardcode_libdirs="$libdir" | ||
5538 | else | ||
5539 | @@ -7054,18 +8054,18 @@ EOF | ||
5540 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) | ||
5541 | ;; | ||
5542 | *) | ||
5543 | - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | ||
5544 | + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | ||
5545 | ;; | ||
5546 | esac | ||
5547 | fi | ||
5548 | else | ||
5549 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
5550 | - dep_rpath="$dep_rpath $flag" | ||
5551 | + func_append dep_rpath " $flag" | ||
5552 | fi | ||
5553 | elif test -n "$runpath_var"; then | ||
5554 | case "$perm_rpath " in | ||
5555 | *" $libdir "*) ;; | ||
5556 | - *) perm_rpath="$perm_rpath $libdir" ;; | ||
5557 | + *) func_apped perm_rpath " $libdir" ;; | ||
5558 | esac | ||
5559 | fi | ||
5560 | done | ||
5561 | @@ -7083,7 +8083,7 @@ EOF | ||
5562 | # We should set the runpath_var. | ||
5563 | rpath= | ||
5564 | for dir in $perm_rpath; do | ||
5565 | - rpath="$rpath$dir:" | ||
5566 | + func_append rpath "$dir:" | ||
5567 | done | ||
5568 | eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" | ||
5569 | fi | ||
5570 | @@ -7091,7 +8091,7 @@ EOF | ||
5571 | fi | ||
5572 | |||
5573 | shlibpath="$finalize_shlibpath" | ||
5574 | - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" | ||
5575 | + test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" | ||
5576 | if test -n "$shlibpath"; then | ||
5577 | eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" | ||
5578 | fi | ||
5579 | @@ -7117,18 +8117,18 @@ EOF | ||
5580 | linknames= | ||
5581 | for link | ||
5582 | do | ||
5583 | - linknames="$linknames $link" | ||
5584 | + func_append linknames " $link" | ||
5585 | done | ||
5586 | |||
5587 | # Use standard objects if they are pic | ||
5588 | - test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` | ||
5589 | + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` | ||
5590 | test "X$libobjs" = "X " && libobjs= | ||
5591 | |||
5592 | delfiles= | ||
5593 | if test -n "$export_symbols" && test -n "$include_expsyms"; then | ||
5594 | $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" | ||
5595 | export_symbols="$output_objdir/$libname.uexp" | ||
5596 | - delfiles="$delfiles $export_symbols" | ||
5597 | + func_append delfiles " $export_symbols" | ||
5598 | fi | ||
5599 | |||
5600 | orig_export_symbols= | ||
5601 | @@ -7159,13 +8159,45 @@ EOF | ||
5602 | $opt_dry_run || $RM $export_symbols | ||
5603 | cmds=$export_symbols_cmds | ||
5604 | save_ifs="$IFS"; IFS='~' | ||
5605 | - for cmd in $cmds; do | ||
5606 | + for cmd1 in $cmds; do | ||
5607 | IFS="$save_ifs" | ||
5608 | - eval cmd=\"$cmd\" | ||
5609 | - func_len " $cmd" | ||
5610 | - len=$func_len_result | ||
5611 | - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then | ||
5612 | + # Take the normal branch if the nm_file_list_spec branch | ||
5613 | + # doesn't work or if tool conversion is not needed. | ||
5614 | + case $nm_file_list_spec~$to_tool_file_cmd in | ||
5615 | + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) | ||
5616 | + try_normal_branch=yes | ||
5617 | + eval cmd=\"$cmd1\" | ||
5618 | + func_len " $cmd" | ||
5619 | + len=$func_len_result | ||
5620 | + ;; | ||
5621 | + *) | ||
5622 | + try_normal_branch=no | ||
5623 | + ;; | ||
5624 | + esac | ||
5625 | + if test "$try_normal_branch" = yes \ | ||
5626 | + && { test "$len" -lt "$max_cmd_len" \ | ||
5627 | + || test "$max_cmd_len" -le -1; } | ||
5628 | + then | ||
5629 | + func_show_eval "$cmd" 'exit $?' | ||
5630 | + skipped_export=false | ||
5631 | + elif test -n "$nm_file_list_spec"; then | ||
5632 | + func_basename "$output" | ||
5633 | + output_la=$func_basename_result | ||
5634 | + save_libobjs=$libobjs | ||
5635 | + save_output=$output | ||
5636 | + output=${output_objdir}/${output_la}.nm | ||
5637 | + func_to_tool_file "$output" | ||
5638 | + libobjs=$nm_file_list_spec$func_to_tool_file_result | ||
5639 | + func_append delfiles " $output" | ||
5640 | + func_verbose "creating $NM input file list: $output" | ||
5641 | + for obj in $save_libobjs; do | ||
5642 | + func_to_tool_file "$obj" | ||
5643 | + $ECHO "$func_to_tool_file_result" | ||
5644 | + done > "$output" | ||
5645 | + eval cmd=\"$cmd1\" | ||
5646 | func_show_eval "$cmd" 'exit $?' | ||
5647 | + output=$save_output | ||
5648 | + libobjs=$save_libobjs | ||
5649 | skipped_export=false | ||
5650 | else | ||
5651 | # The command line is too long to execute in one step. | ||
5652 | @@ -7187,7 +8219,7 @@ EOF | ||
5653 | if test -n "$export_symbols" && test -n "$include_expsyms"; then | ||
5654 | tmp_export_symbols="$export_symbols" | ||
5655 | test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" | ||
5656 | - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' | ||
5657 | + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' | ||
5658 | fi | ||
5659 | |||
5660 | if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then | ||
5661 | @@ -7199,7 +8231,7 @@ EOF | ||
5662 | # global variables. join(1) would be nice here, but unfortunately | ||
5663 | # isn't a blessed tool. | ||
5664 | $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter | ||
5665 | - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" | ||
5666 | + func_append delfiles " $export_symbols $output_objdir/$libname.filter" | ||
5667 | export_symbols=$output_objdir/$libname.def | ||
5668 | $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols | ||
5669 | fi | ||
5670 | @@ -7209,7 +8241,7 @@ EOF | ||
5671 | case " $convenience " in | ||
5672 | *" $test_deplib "*) ;; | ||
5673 | *) | ||
5674 | - tmp_deplibs="$tmp_deplibs $test_deplib" | ||
5675 | + func_append tmp_deplibs " $test_deplib" | ||
5676 | ;; | ||
5677 | esac | ||
5678 | done | ||
5679 | @@ -7229,21 +8261,21 @@ EOF | ||
5680 | test "X$libobjs" = "X " && libobjs= | ||
5681 | else | ||
5682 | gentop="$output_objdir/${outputname}x" | ||
5683 | - generated="$generated $gentop" | ||
5684 | + func_append generated " $gentop" | ||
5685 | |||
5686 | func_extract_archives $gentop $convenience | ||
5687 | - libobjs="$libobjs $func_extract_archives_result" | ||
5688 | + func_append libobjs " $func_extract_archives_result" | ||
5689 | test "X$libobjs" = "X " && libobjs= | ||
5690 | fi | ||
5691 | fi | ||
5692 | |||
5693 | if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then | ||
5694 | eval flag=\"$thread_safe_flag_spec\" | ||
5695 | - linker_flags="$linker_flags $flag" | ||
5696 | + func_append linker_flags " $flag" | ||
5697 | fi | ||
5698 | |||
5699 | # Make a backup of the uninstalled library when relinking | ||
5700 | - if test "$mode" = relink; then | ||
5701 | + if test "$opt_mode" = relink; then | ||
5702 | $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? | ||
5703 | fi | ||
5704 | |||
5705 | @@ -7288,7 +8320,8 @@ EOF | ||
5706 | save_libobjs=$libobjs | ||
5707 | fi | ||
5708 | save_output=$output | ||
5709 | - output_la=`$ECHO "X$output" | $Xsed -e "$basename"` | ||
5710 | + func_basename "$output" | ||
5711 | + output_la=$func_basename_result | ||
5712 | |||
5713 | # Clear the reloadable object creation command queue and | ||
5714 | # initialize k to one. | ||
5715 | @@ -7301,13 +8334,16 @@ EOF | ||
5716 | if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then | ||
5717 | output=${output_objdir}/${output_la}.lnkscript | ||
5718 | func_verbose "creating GNU ld script: $output" | ||
5719 | - $ECHO 'INPUT (' > $output | ||
5720 | + echo 'INPUT (' > $output | ||
5721 | for obj in $save_libobjs | ||
5722 | do | ||
5723 | - $ECHO "$obj" >> $output | ||
5724 | + func_to_tool_file "$obj" | ||
5725 | + $ECHO "$func_to_tool_file_result" >> $output | ||
5726 | done | ||
5727 | - $ECHO ')' >> $output | ||
5728 | - delfiles="$delfiles $output" | ||
5729 | + echo ')' >> $output | ||
5730 | + func_append delfiles " $output" | ||
5731 | + func_to_tool_file "$output" | ||
5732 | + output=$func_to_tool_file_result | ||
5733 | elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then | ||
5734 | output=${output_objdir}/${output_la}.lnk | ||
5735 | func_verbose "creating linker input file list: $output" | ||
5736 | @@ -7321,10 +8357,12 @@ EOF | ||
5737 | fi | ||
5738 | for obj | ||
5739 | do | ||
5740 | - $ECHO "$obj" >> $output | ||
5741 | + func_to_tool_file "$obj" | ||
5742 | + $ECHO "$func_to_tool_file_result" >> $output | ||
5743 | done | ||
5744 | - delfiles="$delfiles $output" | ||
5745 | - output=$firstobj\"$file_list_spec$output\" | ||
5746 | + func_append delfiles " $output" | ||
5747 | + func_to_tool_file "$output" | ||
5748 | + output=$firstobj\"$file_list_spec$func_to_tool_file_result\" | ||
5749 | else | ||
5750 | if test -n "$save_libobjs"; then | ||
5751 | func_verbose "creating reloadable object files..." | ||
5752 | @@ -7348,17 +8386,19 @@ EOF | ||
5753 | # command to the queue. | ||
5754 | if test "$k" -eq 1 ; then | ||
5755 | # The first file doesn't have a previous command to add. | ||
5756 | - eval concat_cmds=\"$reload_cmds $objlist $last_robj\" | ||
5757 | + reload_objs=$objlist | ||
5758 | + eval concat_cmds=\"$reload_cmds\" | ||
5759 | else | ||
5760 | # All subsequent reloadable object files will link in | ||
5761 | # the last one created. | ||
5762 | - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" | ||
5763 | + reload_objs="$objlist $last_robj" | ||
5764 | + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" | ||
5765 | fi | ||
5766 | last_robj=$output_objdir/$output_la-${k}.$objext | ||
5767 | func_arith $k + 1 | ||
5768 | k=$func_arith_result | ||
5769 | output=$output_objdir/$output_la-${k}.$objext | ||
5770 | - objlist=$obj | ||
5771 | + objlist=" $obj" | ||
5772 | func_len " $last_robj" | ||
5773 | func_arith $len0 + $func_len_result | ||
5774 | len=$func_arith_result | ||
5775 | @@ -7368,11 +8408,12 @@ EOF | ||
5776 | # reloadable object file. All subsequent reloadable object | ||
5777 | # files will link in the last one created. | ||
5778 | test -z "$concat_cmds" || concat_cmds=$concat_cmds~ | ||
5779 | - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" | ||
5780 | + reload_objs="$objlist $last_robj" | ||
5781 | + eval concat_cmds=\"\${concat_cmds}$reload_cmds\" | ||
5782 | if test -n "$last_robj"; then | ||
5783 | eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" | ||
5784 | fi | ||
5785 | - delfiles="$delfiles $output" | ||
5786 | + func_append delfiles " $output" | ||
5787 | |||
5788 | else | ||
5789 | output= | ||
5790 | @@ -7406,7 +8447,7 @@ EOF | ||
5791 | lt_exit=$? | ||
5792 | |||
5793 | # Restore the uninstalled library and exit | ||
5794 | - if test "$mode" = relink; then | ||
5795 | + if test "$opt_mode" = relink; then | ||
5796 | ( cd "$output_objdir" && \ | ||
5797 | $RM "${realname}T" && \ | ||
5798 | $MV "${realname}U" "$realname" ) | ||
5799 | @@ -7427,7 +8468,7 @@ EOF | ||
5800 | if test -n "$export_symbols" && test -n "$include_expsyms"; then | ||
5801 | tmp_export_symbols="$export_symbols" | ||
5802 | test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" | ||
5803 | - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' | ||
5804 | + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' | ||
5805 | fi | ||
5806 | |||
5807 | if test -n "$orig_export_symbols"; then | ||
5808 | @@ -7439,7 +8480,7 @@ EOF | ||
5809 | # global variables. join(1) would be nice here, but unfortunately | ||
5810 | # isn't a blessed tool. | ||
5811 | $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter | ||
5812 | - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" | ||
5813 | + func_append delfiles " $export_symbols $output_objdir/$libname.filter" | ||
5814 | export_symbols=$output_objdir/$libname.def | ||
5815 | $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols | ||
5816 | fi | ||
5817 | @@ -7480,10 +8521,10 @@ EOF | ||
5818 | # Add any objects from preloaded convenience libraries | ||
5819 | if test -n "$dlprefiles"; then | ||
5820 | gentop="$output_objdir/${outputname}x" | ||
5821 | - generated="$generated $gentop" | ||
5822 | + func_append generated " $gentop" | ||
5823 | |||
5824 | func_extract_archives $gentop $dlprefiles | ||
5825 | - libobjs="$libobjs $func_extract_archives_result" | ||
5826 | + func_append libobjs " $func_extract_archives_result" | ||
5827 | test "X$libobjs" = "X " && libobjs= | ||
5828 | fi | ||
5829 | |||
5830 | @@ -7499,7 +8540,7 @@ EOF | ||
5831 | lt_exit=$? | ||
5832 | |||
5833 | # Restore the uninstalled library and exit | ||
5834 | - if test "$mode" = relink; then | ||
5835 | + if test "$opt_mode" = relink; then | ||
5836 | ( cd "$output_objdir" && \ | ||
5837 | $RM "${realname}T" && \ | ||
5838 | $MV "${realname}U" "$realname" ) | ||
5839 | @@ -7511,7 +8552,7 @@ EOF | ||
5840 | IFS="$save_ifs" | ||
5841 | |||
5842 | # Restore the uninstalled library and exit | ||
5843 | - if test "$mode" = relink; then | ||
5844 | + if test "$opt_mode" = relink; then | ||
5845 | $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? | ||
5846 | |||
5847 | if test -n "$convenience"; then | ||
5848 | @@ -7592,18 +8633,21 @@ EOF | ||
5849 | if test -n "$convenience"; then | ||
5850 | if test -n "$whole_archive_flag_spec"; then | ||
5851 | eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" | ||
5852 | - reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` | ||
5853 | + reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` | ||
5854 | else | ||
5855 | gentop="$output_objdir/${obj}x" | ||
5856 | - generated="$generated $gentop" | ||
5857 | + func_append generated " $gentop" | ||
5858 | |||
5859 | func_extract_archives $gentop $convenience | ||
5860 | reload_conv_objs="$reload_objs $func_extract_archives_result" | ||
5861 | fi | ||
5862 | fi | ||
5863 | |||
5864 | + # If we're not building shared, we need to use non_pic_objs | ||
5865 | + test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" | ||
5866 | + | ||
5867 | # Create the old-style object. | ||
5868 | - reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test | ||
5869 | + reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test | ||
5870 | |||
5871 | output="$obj" | ||
5872 | func_execute_cmds "$reload_cmds" 'exit $?' | ||
5873 | @@ -7663,8 +8707,8 @@ EOF | ||
5874 | case $host in | ||
5875 | *-*-rhapsody* | *-*-darwin1.[012]) | ||
5876 | # On Rhapsody replace the C library is the System framework | ||
5877 | - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` | ||
5878 | - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` | ||
5879 | + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` | ||
5880 | + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` | ||
5881 | ;; | ||
5882 | esac | ||
5883 | |||
5884 | @@ -7675,14 +8719,14 @@ EOF | ||
5885 | if test "$tagname" = CXX ; then | ||
5886 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | ||
5887 | 10.[0123]) | ||
5888 | - compile_command="$compile_command ${wl}-bind_at_load" | ||
5889 | - finalize_command="$finalize_command ${wl}-bind_at_load" | ||
5890 | + func_append compile_command " ${wl}-bind_at_load" | ||
5891 | + func_append finalize_command " ${wl}-bind_at_load" | ||
5892 | ;; | ||
5893 | esac | ||
5894 | fi | ||
5895 | # Time to change all our "foo.ltframework" stuff back to "-framework foo" | ||
5896 | - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5897 | - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5898 | + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5899 | + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | ||
5900 | ;; | ||
5901 | esac | ||
5902 | |||
5903 | @@ -7696,7 +8740,7 @@ EOF | ||
5904 | *) | ||
5905 | case " $compile_deplibs " in | ||
5906 | *" -L$path/$objdir "*) | ||
5907 | - new_libs="$new_libs -L$path/$objdir" ;; | ||
5908 | + func_append new_libs " -L$path/$objdir" ;; | ||
5909 | esac | ||
5910 | ;; | ||
5911 | esac | ||
5912 | @@ -7706,17 +8750,17 @@ EOF | ||
5913 | -L*) | ||
5914 | case " $new_libs " in | ||
5915 | *" $deplib "*) ;; | ||
5916 | - *) new_libs="$new_libs $deplib" ;; | ||
5917 | + *) func_append new_libs " $deplib" ;; | ||
5918 | esac | ||
5919 | ;; | ||
5920 | - *) new_libs="$new_libs $deplib" ;; | ||
5921 | + *) func_append new_libs " $deplib" ;; | ||
5922 | esac | ||
5923 | done | ||
5924 | compile_deplibs="$new_libs" | ||
5925 | |||
5926 | |||
5927 | - compile_command="$compile_command $compile_deplibs" | ||
5928 | - finalize_command="$finalize_command $finalize_deplibs" | ||
5929 | + func_append compile_command " $compile_deplibs" | ||
5930 | + func_append finalize_command " $finalize_deplibs" | ||
5931 | |||
5932 | if test -n "$rpath$xrpath"; then | ||
5933 | # If the user specified any rpath flags, then add them. | ||
5934 | @@ -7724,7 +8768,7 @@ EOF | ||
5935 | # This is the magic to use -rpath. | ||
5936 | case "$finalize_rpath " in | ||
5937 | *" $libdir "*) ;; | ||
5938 | - *) finalize_rpath="$finalize_rpath $libdir" ;; | ||
5939 | + *) func_append finalize_rpath " $libdir" ;; | ||
5940 | esac | ||
5941 | done | ||
5942 | fi | ||
5943 | @@ -7743,18 +8787,18 @@ EOF | ||
5944 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) | ||
5945 | ;; | ||
5946 | *) | ||
5947 | - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | ||
5948 | + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | ||
5949 | ;; | ||
5950 | esac | ||
5951 | fi | ||
5952 | else | ||
5953 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
5954 | - rpath="$rpath $flag" | ||
5955 | + func_append rpath " $flag" | ||
5956 | fi | ||
5957 | elif test -n "$runpath_var"; then | ||
5958 | case "$perm_rpath " in | ||
5959 | *" $libdir "*) ;; | ||
5960 | - *) perm_rpath="$perm_rpath $libdir" ;; | ||
5961 | + *) func_append perm_rpath " $libdir" ;; | ||
5962 | esac | ||
5963 | fi | ||
5964 | case $host in | ||
5965 | @@ -7763,12 +8807,12 @@ EOF | ||
5966 | case :$dllsearchpath: in | ||
5967 | *":$libdir:"*) ;; | ||
5968 | ::) dllsearchpath=$libdir;; | ||
5969 | - *) dllsearchpath="$dllsearchpath:$libdir";; | ||
5970 | + *) func_append dllsearchpath ":$libdir";; | ||
5971 | esac | ||
5972 | case :$dllsearchpath: in | ||
5973 | *":$testbindir:"*) ;; | ||
5974 | ::) dllsearchpath=$testbindir;; | ||
5975 | - *) dllsearchpath="$dllsearchpath:$testbindir";; | ||
5976 | + *) func_append dllsearchpath ":$testbindir";; | ||
5977 | esac | ||
5978 | ;; | ||
5979 | esac | ||
5980 | @@ -7794,18 +8838,18 @@ EOF | ||
5981 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) | ||
5982 | ;; | ||
5983 | *) | ||
5984 | - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | ||
5985 | + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | ||
5986 | ;; | ||
5987 | esac | ||
5988 | fi | ||
5989 | else | ||
5990 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
5991 | - rpath="$rpath $flag" | ||
5992 | + func_append rpath " $flag" | ||
5993 | fi | ||
5994 | elif test -n "$runpath_var"; then | ||
5995 | case "$finalize_perm_rpath " in | ||
5996 | *" $libdir "*) ;; | ||
5997 | - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; | ||
5998 | + *) func_append finalize_perm_rpath " $libdir" ;; | ||
5999 | esac | ||
6000 | fi | ||
6001 | done | ||
6002 | @@ -7819,8 +8863,8 @@ EOF | ||
6003 | |||
6004 | if test -n "$libobjs" && test "$build_old_libs" = yes; then | ||
6005 | # Transform all the library objects into standard objects. | ||
6006 | - compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` | ||
6007 | - finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` | ||
6008 | + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` | ||
6009 | + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` | ||
6010 | fi | ||
6011 | |||
6012 | func_generate_dlsyms "$outputname" "@PROGRAM@" "no" | ||
6013 | @@ -7832,15 +8876,15 @@ EOF | ||
6014 | |||
6015 | wrappers_required=yes | ||
6016 | case $host in | ||
6017 | + *cegcc* | *mingw32ce*) | ||
6018 | + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. | ||
6019 | + wrappers_required=no | ||
6020 | + ;; | ||
6021 | *cygwin* | *mingw* ) | ||
6022 | if test "$build_libtool_libs" != yes; then | ||
6023 | wrappers_required=no | ||
6024 | fi | ||
6025 | ;; | ||
6026 | - *cegcc) | ||
6027 | - # Disable wrappers for cegcc, we are cross compiling anyway. | ||
6028 | - wrappers_required=no | ||
6029 | - ;; | ||
6030 | *) | ||
6031 | if test "$need_relink" = no || test "$build_libtool_libs" != yes; then | ||
6032 | wrappers_required=no | ||
6033 | @@ -7849,13 +8893,19 @@ EOF | ||
6034 | esac | ||
6035 | if test "$wrappers_required" = no; then | ||
6036 | # Replace the output file specification. | ||
6037 | - compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` | ||
6038 | + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` | ||
6039 | link_command="$compile_command$compile_rpath" | ||
6040 | |||
6041 | # We have no uninstalled library dependencies, so finalize right now. | ||
6042 | exit_status=0 | ||
6043 | func_show_eval "$link_command" 'exit_status=$?' | ||
6044 | |||
6045 | + if test -n "$postlink_cmds"; then | ||
6046 | + func_to_tool_file "$output" | ||
6047 | + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` | ||
6048 | + func_execute_cmds "$postlink_cmds" 'exit $?' | ||
6049 | + fi | ||
6050 | + | ||
6051 | # Delete the generated files. | ||
6052 | if test -f "$output_objdir/${outputname}S.${objext}"; then | ||
6053 | func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' | ||
6054 | @@ -7878,7 +8928,7 @@ EOF | ||
6055 | # We should set the runpath_var. | ||
6056 | rpath= | ||
6057 | for dir in $perm_rpath; do | ||
6058 | - rpath="$rpath$dir:" | ||
6059 | + func_append rpath "$dir:" | ||
6060 | done | ||
6061 | compile_var="$runpath_var=\"$rpath\$$runpath_var\" " | ||
6062 | fi | ||
6063 | @@ -7886,7 +8936,7 @@ EOF | ||
6064 | # We should set the runpath_var. | ||
6065 | rpath= | ||
6066 | for dir in $finalize_perm_rpath; do | ||
6067 | - rpath="$rpath$dir:" | ||
6068 | + func_append rpath "$dir:" | ||
6069 | done | ||
6070 | finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " | ||
6071 | fi | ||
6072 | @@ -7896,11 +8946,18 @@ EOF | ||
6073 | # We don't need to create a wrapper script. | ||
6074 | link_command="$compile_var$compile_command$compile_rpath" | ||
6075 | # Replace the output file specification. | ||
6076 | - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` | ||
6077 | + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` | ||
6078 | # Delete the old output file. | ||
6079 | $opt_dry_run || $RM $output | ||
6080 | # Link the executable and exit | ||
6081 | func_show_eval "$link_command" 'exit $?' | ||
6082 | + | ||
6083 | + if test -n "$postlink_cmds"; then | ||
6084 | + func_to_tool_file "$output" | ||
6085 | + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` | ||
6086 | + func_execute_cmds "$postlink_cmds" 'exit $?' | ||
6087 | + fi | ||
6088 | + | ||
6089 | exit $EXIT_SUCCESS | ||
6090 | fi | ||
6091 | |||
6092 | @@ -7915,7 +8972,7 @@ EOF | ||
6093 | if test "$fast_install" != no; then | ||
6094 | link_command="$finalize_var$compile_command$finalize_rpath" | ||
6095 | if test "$fast_install" = yes; then | ||
6096 | - relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` | ||
6097 | + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` | ||
6098 | else | ||
6099 | # fast_install is set to needless | ||
6100 | relink_command= | ||
6101 | @@ -7927,13 +8984,19 @@ EOF | ||
6102 | fi | ||
6103 | |||
6104 | # Replace the output file specification. | ||
6105 | - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` | ||
6106 | + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` | ||
6107 | |||
6108 | # Delete the old output files. | ||
6109 | $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname | ||
6110 | |||
6111 | func_show_eval "$link_command" 'exit $?' | ||
6112 | |||
6113 | + if test -n "$postlink_cmds"; then | ||
6114 | + func_to_tool_file "$output_objdir/$outputname" | ||
6115 | + 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'` | ||
6116 | + func_execute_cmds "$postlink_cmds" 'exit $?' | ||
6117 | + fi | ||
6118 | + | ||
6119 | # Now create the wrapper script. | ||
6120 | func_verbose "creating $output" | ||
6121 | |||
6122 | @@ -7951,18 +9014,7 @@ EOF | ||
6123 | fi | ||
6124 | done | ||
6125 | relink_command="(cd `pwd`; $relink_command)" | ||
6126 | - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` | ||
6127 | - fi | ||
6128 | - | ||
6129 | - # Quote $ECHO for shipping. | ||
6130 | - if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then | ||
6131 | - case $progpath in | ||
6132 | - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; | ||
6133 | - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; | ||
6134 | - esac | ||
6135 | - qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` | ||
6136 | - else | ||
6137 | - qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` | ||
6138 | + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` | ||
6139 | fi | ||
6140 | |||
6141 | # Only actually do things if not in dry run mode. | ||
6142 | @@ -8042,7 +9094,7 @@ EOF | ||
6143 | else | ||
6144 | oldobjs="$old_deplibs $non_pic_objects" | ||
6145 | if test "$preload" = yes && test -f "$symfileobj"; then | ||
6146 | - oldobjs="$oldobjs $symfileobj" | ||
6147 | + func_append oldobjs " $symfileobj" | ||
6148 | fi | ||
6149 | fi | ||
6150 | addlibs="$old_convenience" | ||
6151 | @@ -8050,10 +9102,10 @@ EOF | ||
6152 | |||
6153 | if test -n "$addlibs"; then | ||
6154 | gentop="$output_objdir/${outputname}x" | ||
6155 | - generated="$generated $gentop" | ||
6156 | + func_append generated " $gentop" | ||
6157 | |||
6158 | func_extract_archives $gentop $addlibs | ||
6159 | - oldobjs="$oldobjs $func_extract_archives_result" | ||
6160 | + func_append oldobjs " $func_extract_archives_result" | ||
6161 | fi | ||
6162 | |||
6163 | # Do each command in the archive commands. | ||
6164 | @@ -8064,10 +9116,10 @@ EOF | ||
6165 | # Add any objects from preloaded convenience libraries | ||
6166 | if test -n "$dlprefiles"; then | ||
6167 | gentop="$output_objdir/${outputname}x" | ||
6168 | - generated="$generated $gentop" | ||
6169 | + func_append generated " $gentop" | ||
6170 | |||
6171 | func_extract_archives $gentop $dlprefiles | ||
6172 | - oldobjs="$oldobjs $func_extract_archives_result" | ||
6173 | + func_append oldobjs " $func_extract_archives_result" | ||
6174 | fi | ||
6175 | |||
6176 | # POSIX demands no paths to be encoded in archives. We have | ||
6177 | @@ -8083,9 +9135,9 @@ EOF | ||
6178 | done | sort | sort -uc >/dev/null 2>&1); then | ||
6179 | : | ||
6180 | else | ||
6181 | - $ECHO "copying selected object files to avoid basename conflicts..." | ||
6182 | + echo "copying selected object files to avoid basename conflicts..." | ||
6183 | gentop="$output_objdir/${outputname}x" | ||
6184 | - generated="$generated $gentop" | ||
6185 | + func_append generated " $gentop" | ||
6186 | func_mkdir_p "$gentop" | ||
6187 | save_oldobjs=$oldobjs | ||
6188 | oldobjs= | ||
6189 | @@ -8109,9 +9161,9 @@ EOF | ||
6190 | esac | ||
6191 | done | ||
6192 | func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" | ||
6193 | - oldobjs="$oldobjs $gentop/$newobj" | ||
6194 | + func_append oldobjs " $gentop/$newobj" | ||
6195 | ;; | ||
6196 | - *) oldobjs="$oldobjs $obj" ;; | ||
6197 | + *) func_append oldobjs " $obj" ;; | ||
6198 | esac | ||
6199 | done | ||
6200 | fi | ||
6201 | @@ -8121,6 +9173,16 @@ EOF | ||
6202 | len=$func_len_result | ||
6203 | if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then | ||
6204 | cmds=$old_archive_cmds | ||
6205 | + elif test -n "$archiver_list_spec"; then | ||
6206 | + func_verbose "using command file archive linking..." | ||
6207 | + for obj in $oldobjs | ||
6208 | + do | ||
6209 | + func_to_tool_file "$obj" | ||
6210 | + $ECHO "$func_to_tool_file_result" | ||
6211 | + done > $output_objdir/$libname.libcmd | ||
6212 | + func_to_tool_file "$output_objdir/$libname.libcmd" | ||
6213 | + oldobjs=" $archiver_list_spec$func_to_tool_file_result" | ||
6214 | + cmds=$old_archive_cmds | ||
6215 | else | ||
6216 | # the command line is too long to link in one step, link in parts | ||
6217 | func_verbose "using piecewise archive linking..." | ||
6218 | @@ -8194,7 +9256,7 @@ EOF | ||
6219 | done | ||
6220 | # Quote the link command for shipping. | ||
6221 | relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" | ||
6222 | - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` | ||
6223 | + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` | ||
6224 | if test "$hardcode_automatic" = yes ; then | ||
6225 | relink_command= | ||
6226 | fi | ||
6227 | @@ -8214,12 +9276,23 @@ EOF | ||
6228 | *.la) | ||
6229 | func_basename "$deplib" | ||
6230 | name="$func_basename_result" | ||
6231 | - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` | ||
6232 | + func_resolve_sysroot "$deplib" | ||
6233 | + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` | ||
6234 | test -z "$libdir" && \ | ||
6235 | func_fatal_error "\`$deplib' is not a valid libtool archive" | ||
6236 | - newdependency_libs="$newdependency_libs $libdir/$name" | ||
6237 | + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" | ||
6238 | + ;; | ||
6239 | + -L*) | ||
6240 | + func_stripname -L '' "$deplib" | ||
6241 | + func_replace_sysroot "$func_stripname_result" | ||
6242 | + func_append newdependency_libs " -L$func_replace_sysroot_result" | ||
6243 | ;; | ||
6244 | - *) newdependency_libs="$newdependency_libs $deplib" ;; | ||
6245 | + -R*) | ||
6246 | + func_stripname -R '' "$deplib" | ||
6247 | + func_replace_sysroot "$func_stripname_result" | ||
6248 | + func_append newdependency_libs " -R$func_replace_sysroot_result" | ||
6249 | + ;; | ||
6250 | + *) func_append newdependency_libs " $deplib" ;; | ||
6251 | esac | ||
6252 | done | ||
6253 | dependency_libs="$newdependency_libs" | ||
6254 | @@ -8233,9 +9306,9 @@ EOF | ||
6255 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` | ||
6256 | test -z "$libdir" && \ | ||
6257 | func_fatal_error "\`$lib' is not a valid libtool archive" | ||
6258 | - newdlfiles="$newdlfiles $libdir/$name" | ||
6259 | + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" | ||
6260 | ;; | ||
6261 | - *) newdlfiles="$newdlfiles $lib" ;; | ||
6262 | + *) func_append newdlfiles " $lib" ;; | ||
6263 | esac | ||
6264 | done | ||
6265 | dlfiles="$newdlfiles" | ||
6266 | @@ -8252,7 +9325,7 @@ EOF | ||
6267 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` | ||
6268 | test -z "$libdir" && \ | ||
6269 | func_fatal_error "\`$lib' is not a valid libtool archive" | ||
6270 | - newdlprefiles="$newdlprefiles $libdir/$name" | ||
6271 | + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" | ||
6272 | ;; | ||
6273 | esac | ||
6274 | done | ||
6275 | @@ -8264,7 +9337,7 @@ EOF | ||
6276 | [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; | ||
6277 | *) abs=`pwd`"/$lib" ;; | ||
6278 | esac | ||
6279 | - newdlfiles="$newdlfiles $abs" | ||
6280 | + func_append newdlfiles " $abs" | ||
6281 | done | ||
6282 | dlfiles="$newdlfiles" | ||
6283 | newdlprefiles= | ||
6284 | @@ -8273,7 +9346,7 @@ EOF | ||
6285 | [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; | ||
6286 | *) abs=`pwd`"/$lib" ;; | ||
6287 | esac | ||
6288 | - newdlprefiles="$newdlprefiles $abs" | ||
6289 | + func_append newdlprefiles " $abs" | ||
6290 | done | ||
6291 | dlprefiles="$newdlprefiles" | ||
6292 | fi | ||
6293 | @@ -8358,7 +9431,7 @@ relink_command=\"$relink_command\"" | ||
6294 | exit $EXIT_SUCCESS | ||
6295 | } | ||
6296 | |||
6297 | -{ test "$mode" = link || test "$mode" = relink; } && | ||
6298 | +{ test "$opt_mode" = link || test "$opt_mode" = relink; } && | ||
6299 | func_mode_link ${1+"$@"} | ||
6300 | |||
6301 | |||
6302 | @@ -8378,9 +9451,9 @@ func_mode_uninstall () | ||
6303 | for arg | ||
6304 | do | ||
6305 | case $arg in | ||
6306 | - -f) RM="$RM $arg"; rmforce=yes ;; | ||
6307 | - -*) RM="$RM $arg" ;; | ||
6308 | - *) files="$files $arg" ;; | ||
6309 | + -f) func_append RM " $arg"; rmforce=yes ;; | ||
6310 | + -*) func_append RM " $arg" ;; | ||
6311 | + *) func_append files " $arg" ;; | ||
6312 | esac | ||
6313 | done | ||
6314 | |||
6315 | @@ -8389,24 +9462,23 @@ func_mode_uninstall () | ||
6316 | |||
6317 | rmdirs= | ||
6318 | |||
6319 | - origobjdir="$objdir" | ||
6320 | for file in $files; do | ||
6321 | func_dirname "$file" "" "." | ||
6322 | dir="$func_dirname_result" | ||
6323 | if test "X$dir" = X.; then | ||
6324 | - objdir="$origobjdir" | ||
6325 | + odir="$objdir" | ||
6326 | else | ||
6327 | - objdir="$dir/$origobjdir" | ||
6328 | + odir="$dir/$objdir" | ||
6329 | fi | ||
6330 | func_basename "$file" | ||
6331 | name="$func_basename_result" | ||
6332 | - test "$mode" = uninstall && objdir="$dir" | ||
6333 | + test "$opt_mode" = uninstall && odir="$dir" | ||
6334 | |||
6335 | - # Remember objdir for removal later, being careful to avoid duplicates | ||
6336 | - if test "$mode" = clean; then | ||
6337 | + # Remember odir for removal later, being careful to avoid duplicates | ||
6338 | + if test "$opt_mode" = clean; then | ||
6339 | case " $rmdirs " in | ||
6340 | - *" $objdir "*) ;; | ||
6341 | - *) rmdirs="$rmdirs $objdir" ;; | ||
6342 | + *" $odir "*) ;; | ||
6343 | + *) func_append rmdirs " $odir" ;; | ||
6344 | esac | ||
6345 | fi | ||
6346 | |||
6347 | @@ -8432,18 +9504,17 @@ func_mode_uninstall () | ||
6348 | |||
6349 | # Delete the libtool libraries and symlinks. | ||
6350 | for n in $library_names; do | ||
6351 | - rmfiles="$rmfiles $objdir/$n" | ||
6352 | + func_append rmfiles " $odir/$n" | ||
6353 | done | ||
6354 | - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" | ||
6355 | + test -n "$old_library" && func_append rmfiles " $odir/$old_library" | ||
6356 | |||
6357 | - case "$mode" in | ||
6358 | + case "$opt_mode" in | ||
6359 | clean) | ||
6360 | - case " $library_names " in | ||
6361 | - # " " in the beginning catches empty $dlname | ||
6362 | + case " $library_names " in | ||
6363 | *" $dlname "*) ;; | ||
6364 | - *) rmfiles="$rmfiles $objdir/$dlname" ;; | ||
6365 | + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; | ||
6366 | esac | ||
6367 | - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" | ||
6368 | + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" | ||
6369 | ;; | ||
6370 | uninstall) | ||
6371 | if test -n "$library_names"; then | ||
6372 | @@ -8471,19 +9542,19 @@ func_mode_uninstall () | ||
6373 | # Add PIC object to the list of files to remove. | ||
6374 | if test -n "$pic_object" && | ||
6375 | test "$pic_object" != none; then | ||
6376 | - rmfiles="$rmfiles $dir/$pic_object" | ||
6377 | + func_append rmfiles " $dir/$pic_object" | ||
6378 | fi | ||
6379 | |||
6380 | # Add non-PIC object to the list of files to remove. | ||
6381 | if test -n "$non_pic_object" && | ||
6382 | test "$non_pic_object" != none; then | ||
6383 | - rmfiles="$rmfiles $dir/$non_pic_object" | ||
6384 | + func_append rmfiles " $dir/$non_pic_object" | ||
6385 | fi | ||
6386 | fi | ||
6387 | ;; | ||
6388 | |||
6389 | *) | ||
6390 | - if test "$mode" = clean ; then | ||
6391 | + if test "$opt_mode" = clean ; then | ||
6392 | noexename=$name | ||
6393 | case $file in | ||
6394 | *.exe) | ||
6395 | @@ -8493,7 +9564,7 @@ func_mode_uninstall () | ||
6396 | noexename=$func_stripname_result | ||
6397 | # $file with .exe has already been added to rmfiles, | ||
6398 | # add $file without .exe | ||
6399 | - rmfiles="$rmfiles $file" | ||
6400 | + func_append rmfiles " $file" | ||
6401 | ;; | ||
6402 | esac | ||
6403 | # Do a test to see if this is a libtool program. | ||
6404 | @@ -8502,7 +9573,7 @@ func_mode_uninstall () | ||
6405 | func_ltwrapper_scriptname "$file" | ||
6406 | relink_command= | ||
6407 | func_source $func_ltwrapper_scriptname_result | ||
6408 | - rmfiles="$rmfiles $func_ltwrapper_scriptname_result" | ||
6409 | + func_append rmfiles " $func_ltwrapper_scriptname_result" | ||
6410 | else | ||
6411 | relink_command= | ||
6412 | func_source $dir/$noexename | ||
6413 | @@ -8510,12 +9581,12 @@ func_mode_uninstall () | ||
6414 | |||
6415 | # note $name still contains .exe if it was in $file originally | ||
6416 | # as does the version of $file that was added into $rmfiles | ||
6417 | - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" | ||
6418 | + func_append rmfiles " $odir/$name $odir/${name}S.${objext}" | ||
6419 | if test "$fast_install" = yes && test -n "$relink_command"; then | ||
6420 | - rmfiles="$rmfiles $objdir/lt-$name" | ||
6421 | + func_append rmfiles " $odir/lt-$name" | ||
6422 | fi | ||
6423 | if test "X$noexename" != "X$name" ; then | ||
6424 | - rmfiles="$rmfiles $objdir/lt-${noexename}.c" | ||
6425 | + func_append rmfiles " $odir/lt-${noexename}.c" | ||
6426 | fi | ||
6427 | fi | ||
6428 | fi | ||
6429 | @@ -8523,7 +9594,6 @@ func_mode_uninstall () | ||
6430 | esac | ||
6431 | func_show_eval "$RM $rmfiles" 'exit_status=1' | ||
6432 | done | ||
6433 | - objdir="$origobjdir" | ||
6434 | |||
6435 | # Try to remove the ${objdir}s in the directories where we deleted files | ||
6436 | for dir in $rmdirs; do | ||
6437 | @@ -8535,16 +9605,16 @@ func_mode_uninstall () | ||
6438 | exit $exit_status | ||
6439 | } | ||
6440 | |||
6441 | -{ test "$mode" = uninstall || test "$mode" = clean; } && | ||
6442 | +{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && | ||
6443 | func_mode_uninstall ${1+"$@"} | ||
6444 | |||
6445 | -test -z "$mode" && { | ||
6446 | +test -z "$opt_mode" && { | ||
6447 | help="$generic_help" | ||
6448 | func_fatal_help "you must specify a MODE" | ||
6449 | } | ||
6450 | |||
6451 | test -z "$exec_cmd" && \ | ||
6452 | - func_fatal_help "invalid operation mode \`$mode'" | ||
6453 | + func_fatal_help "invalid operation mode \`$opt_mode'" | ||
6454 | |||
6455 | if test -n "$exec_cmd"; then | ||
6456 | eval exec "$exec_cmd" | ||
6457 | @@ -8579,3 +9649,4 @@ build_old_libs=`case $build_libtool_libs | ||
6458 | # sh-indentation:2 | ||
6459 | # End: | ||
6460 | # vi:sw=2 | ||
6461 | + | ||
6462 | Index: binutils-2.20.1/ltoptions.m4 | ||
6463 | =================================================================== | ||
6464 | --- binutils-2.20.1.orig/ltoptions.m4 | ||
6465 | +++ binutils-2.20.1/ltoptions.m4 | ||
6466 | @@ -1,13 +1,14 @@ | ||
6467 | # Helper functions for option handling. -*- Autoconf -*- | ||
6468 | # | ||
6469 | -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | ||
6470 | +# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, | ||
6471 | +# Inc. | ||
6472 | # Written by Gary V. Vaughan, 2004 | ||
6473 | # | ||
6474 | # This file is free software; the Free Software Foundation gives | ||
6475 | # unlimited permission to copy and/or distribute it, with or without | ||
6476 | # modifications, as long as this notice is preserved. | ||
6477 | |||
6478 | -# serial 6 ltoptions.m4 | ||
6479 | +# serial 7 ltoptions.m4 | ||
6480 | |||
6481 | # This is to help aclocal find these macros, as it can't see m4_define. | ||
6482 | AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) | ||
6483 | @@ -125,7 +126,7 @@ LT_OPTION_DEFINE([LT_INIT], [win32-dll], | ||
6484 | [enable_win32_dll=yes | ||
6485 | |||
6486 | case $host in | ||
6487 | -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | ||
6488 | +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | ||
6489 | AC_CHECK_TOOL(AS, as, false) | ||
6490 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | ||
6491 | AC_CHECK_TOOL(OBJDUMP, objdump, false) | ||
6492 | @@ -133,13 +134,13 @@ case $host in | ||
6493 | esac | ||
6494 | |||
6495 | test -z "$AS" && AS=as | ||
6496 | -_LT_DECL([], [AS], [0], [Assembler program])dnl | ||
6497 | +_LT_DECL([], [AS], [1], [Assembler program])dnl | ||
6498 | |||
6499 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
6500 | -_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl | ||
6501 | +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl | ||
6502 | |||
6503 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
6504 | -_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl | ||
6505 | +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl | ||
6506 | ])# win32-dll | ||
6507 | |||
6508 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL], | ||
6509 | Index: binutils-2.20.1/ltversion.m4 | ||
6510 | =================================================================== | ||
6511 | --- binutils-2.20.1.orig/ltversion.m4 | ||
6512 | +++ binutils-2.20.1/ltversion.m4 | ||
6513 | @@ -7,17 +7,17 @@ | ||
6514 | # unlimited permission to copy and/or distribute it, with or without | ||
6515 | # modifications, as long as this notice is preserved. | ||
6516 | |||
6517 | -# Generated from ltversion.in. | ||
6518 | +# @configure_input@ | ||
6519 | |||
6520 | -# serial 3012 ltversion.m4 | ||
6521 | +# serial 3293 ltversion.m4 | ||
6522 | # This file is part of GNU Libtool | ||
6523 | |||
6524 | -m4_define([LT_PACKAGE_VERSION], [2.2.6]) | ||
6525 | -m4_define([LT_PACKAGE_REVISION], [1.3012]) | ||
6526 | +m4_define([LT_PACKAGE_VERSION], [2.4]) | ||
6527 | +m4_define([LT_PACKAGE_REVISION], [1.3293]) | ||
6528 | |||
6529 | AC_DEFUN([LTVERSION_VERSION], | ||
6530 | -[macro_version='2.2.6' | ||
6531 | -macro_revision='1.3012' | ||
6532 | +[macro_version='2.4' | ||
6533 | +macro_revision='1.3293' | ||
6534 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | ||
6535 | _LT_DECL(, macro_revision, 0) | ||
6536 | ]) | ||
6537 | Index: binutils-2.20.1/lt~obsolete.m4 | ||
6538 | =================================================================== | ||
6539 | --- binutils-2.20.1.orig/lt~obsolete.m4 | ||
6540 | +++ binutils-2.20.1/lt~obsolete.m4 | ||
6541 | @@ -1,13 +1,13 @@ | ||
6542 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- | ||
6543 | # | ||
6544 | -# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. | ||
6545 | +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | ||
6546 | # Written by Scott James Remnant, 2004. | ||
6547 | # | ||
6548 | # This file is free software; the Free Software Foundation gives | ||
6549 | # unlimited permission to copy and/or distribute it, with or without | ||
6550 | # modifications, as long as this notice is preserved. | ||
6551 | |||
6552 | -# serial 4 lt~obsolete.m4 | ||
6553 | +# serial 5 lt~obsolete.m4 | ||
6554 | |||
6555 | # These exist entirely to fool aclocal when bootstrapping libtool. | ||
6556 | # | ||
6557 | @@ -77,7 +77,6 @@ m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC | ||
6558 | m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) | ||
6559 | m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) | ||
6560 | m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) | ||
6561 | -m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) | ||
6562 | m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) | ||
6563 | m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) | ||
6564 | m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) | ||
6565 | @@ -90,3 +89,10 @@ m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [ | ||
6566 | m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) | ||
6567 | m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) | ||
6568 | m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) | ||
6569 | +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) | ||
6570 | +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) | ||
6571 | +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) | ||
6572 | +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) | ||
6573 | +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) | ||
6574 | +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) | ||
6575 | +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) | ||
6576 | Index: binutils-2.20.1/libtool.m4 | ||
6577 | =================================================================== | ||
6578 | --- binutils-2.20.1.orig/libtool.m4 | ||
6579 | +++ binutils-2.20.1/libtool.m4 | ||
6580 | @@ -1,7 +1,8 @@ | ||
6581 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
6582 | # | ||
6583 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
6584 | -# 2006, 2007, 2008 Free Software Foundation, Inc. | ||
6585 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
6586 | +# Inc. | ||
6587 | # Written by Gordon Matzigkeit, 1996 | ||
6588 | # | ||
6589 | # This file is free software; the Free Software Foundation gives | ||
6590 | @@ -10,7 +11,8 @@ | ||
6591 | |||
6592 | m4_define([_LT_COPYING], [dnl | ||
6593 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
6594 | -# 2006, 2007, 2008 Free Software Foundation, Inc. | ||
6595 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
6596 | +# Inc. | ||
6597 | # Written by Gordon Matzigkeit, 1996 | ||
6598 | # | ||
6599 | # This file is part of GNU Libtool. | ||
6600 | @@ -37,7 +39,7 @@ m4_define([_LT_COPYING], [dnl | ||
6601 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
6602 | ]) | ||
6603 | |||
6604 | -# serial 56 LT_INIT | ||
6605 | +# serial 57 LT_INIT | ||
6606 | |||
6607 | |||
6608 | # LT_PREREQ(VERSION) | ||
6609 | @@ -66,6 +68,7 @@ esac | ||
6610 | # ------------------ | ||
6611 | AC_DEFUN([LT_INIT], | ||
6612 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | ||
6613 | +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | ||
6614 | AC_BEFORE([$0], [LT_LANG])dnl | ||
6615 | AC_BEFORE([$0], [LT_OUTPUT])dnl | ||
6616 | AC_BEFORE([$0], [LTDL_INIT])dnl | ||
6617 | @@ -82,6 +85,8 @@ AC_REQUIRE([LTVERSION_VERSION])dnl | ||
6618 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl | ||
6619 | m4_require([_LT_PROG_LTMAIN])dnl | ||
6620 | |||
6621 | +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | ||
6622 | + | ||
6623 | dnl Parse OPTIONS | ||
6624 | _LT_SET_OPTIONS([$0], [$1]) | ||
6625 | |||
6626 | @@ -89,7 +94,8 @@ _LT_SET_OPTIONS([$0], [$1]) | ||
6627 | LIBTOOL_DEPS="$ltmain" | ||
6628 | |||
6629 | # Always use our own libtool. | ||
6630 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
6631 | +LIBTOOL='$(SHELL) $(top_builddir)' | ||
6632 | +LIBTOOL="$LIBTOOL/${host_alias}-libtool" | ||
6633 | AC_SUBST(LIBTOOL)dnl | ||
6634 | |||
6635 | _LT_SETUP | ||
6636 | @@ -118,7 +124,7 @@ m4_defun([_LT_CC_BASENAME], | ||
6637 | *) break;; | ||
6638 | esac | ||
6639 | done | ||
6640 | -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
6641 | +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
6642 | ]) | ||
6643 | |||
6644 | |||
6645 | @@ -138,6 +144,9 @@ m4_defun([_LT_FILEUTILS_DEFAULTS], | ||
6646 | m4_defun([_LT_SETUP], | ||
6647 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
6648 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
6649 | +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | ||
6650 | +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | ||
6651 | + | ||
6652 | _LT_DECL([], [host_alias], [0], [The host system])dnl | ||
6653 | _LT_DECL([], [host], [0])dnl | ||
6654 | _LT_DECL([], [host_os], [0])dnl | ||
6655 | @@ -160,10 +169,13 @@ _LT_DECL([], [exeext], [0], [Executable | ||
6656 | dnl | ||
6657 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
6658 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
6659 | +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | ||
6660 | m4_require([_LT_CMD_RELOAD])dnl | ||
6661 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl | ||
6662 | +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | ||
6663 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl | ||
6664 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | ||
6665 | +m4_require([_LT_WITH_SYSROOT])dnl | ||
6666 | |||
6667 | _LT_CONFIG_LIBTOOL_INIT([ | ||
6668 | # See if we are running on zsh, and set the options which allow our | ||
6669 | @@ -179,7 +191,6 @@ fi | ||
6670 | _LT_CHECK_OBJDIR | ||
6671 | |||
6672 | m4_require([_LT_TAG_COMPILER])dnl | ||
6673 | -_LT_PROG_ECHO_BACKSLASH | ||
6674 | |||
6675 | case $host_os in | ||
6676 | aix3*) | ||
6677 | @@ -193,25 +204,8 @@ aix3*) | ||
6678 | ;; | ||
6679 | esac | ||
6680 | |||
6681 | -# Sed substitution that helps us do robust quoting. It backslashifies | ||
6682 | -# metacharacters that are still active within double-quoted strings. | ||
6683 | -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | ||
6684 | - | ||
6685 | -# Same as above, but do not quote variable references. | ||
6686 | -double_quote_subst='s/\([["`\\]]\)/\\\1/g' | ||
6687 | - | ||
6688 | -# Sed substitution to delay expansion of an escaped shell variable in a | ||
6689 | -# double_quote_subst'ed string. | ||
6690 | -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
6691 | - | ||
6692 | -# Sed substitution to delay expansion of an escaped single quote. | ||
6693 | -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
6694 | - | ||
6695 | -# Sed substitution to avoid accidental globbing in evaled expressions | ||
6696 | -no_glob_subst='s/\*/\\\*/g' | ||
6697 | - | ||
6698 | # Global variables: | ||
6699 | -ofile=libtool | ||
6700 | +ofile=${host_alias}-libtool | ||
6701 | can_build_shared=yes | ||
6702 | |||
6703 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
6704 | @@ -250,6 +244,28 @@ _LT_CONFIG_COMMANDS | ||
6705 | ])# _LT_SETUP | ||
6706 | |||
6707 | |||
6708 | +# _LT_PREPARE_SED_QUOTE_VARS | ||
6709 | +# -------------------------- | ||
6710 | +# Define a few sed substitution that help us do robust quoting. | ||
6711 | +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | ||
6712 | +[# Backslashify metacharacters that are still active within | ||
6713 | +# double-quoted strings. | ||
6714 | +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | ||
6715 | + | ||
6716 | +# Same as above, but do not quote variable references. | ||
6717 | +double_quote_subst='s/\([["`\\]]\)/\\\1/g' | ||
6718 | + | ||
6719 | +# Sed substitution to delay expansion of an escaped shell variable in a | ||
6720 | +# double_quote_subst'ed string. | ||
6721 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
6722 | + | ||
6723 | +# Sed substitution to delay expansion of an escaped single quote. | ||
6724 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
6725 | + | ||
6726 | +# Sed substitution to avoid accidental globbing in evaled expressions | ||
6727 | +no_glob_subst='s/\*/\\\*/g' | ||
6728 | +]) | ||
6729 | + | ||
6730 | # _LT_PROG_LTMAIN | ||
6731 | # --------------- | ||
6732 | # Note that this code is called both from `configure', and `config.status' | ||
6733 | @@ -408,7 +424,7 @@ m4_define([_lt_decl_all_varnames], | ||
6734 | # declaration there will have the same value as in `configure'. VARNAME | ||
6735 | # must have a single quote delimited value for this to work. | ||
6736 | m4_define([_LT_CONFIG_STATUS_DECLARE], | ||
6737 | -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) | ||
6738 | +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) | ||
6739 | |||
6740 | |||
6741 | # _LT_CONFIG_STATUS_DECLARATIONS | ||
6742 | @@ -418,7 +434,7 @@ m4_define([_LT_CONFIG_STATUS_DECLARE], | ||
6743 | # embedded single quotes properly. In configure, this macro expands | ||
6744 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | ||
6745 | # | ||
6746 | -# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' | ||
6747 | +# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | ||
6748 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | ||
6749 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | ||
6750 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | ||
6751 | @@ -517,12 +533,20 @@ LTCC='$LTCC' | ||
6752 | LTCFLAGS='$LTCFLAGS' | ||
6753 | compiler='$compiler_DEFAULT' | ||
6754 | |||
6755 | +# A function that is used when there is no print builtin or printf. | ||
6756 | +func_fallback_echo () | ||
6757 | +{ | ||
6758 | + eval 'cat <<_LTECHO_EOF | ||
6759 | +\$[]1 | ||
6760 | +_LTECHO_EOF' | ||
6761 | +} | ||
6762 | + | ||
6763 | # Quote evaled strings. | ||
6764 | for var in lt_decl_all_varnames([[ \ | ||
6765 | ]], lt_decl_quote_varnames); do | ||
6766 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
6767 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
6768 | *[[\\\\\\\`\\"\\\$]]*) | ||
6769 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
6770 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
6771 | ;; | ||
6772 | *) | ||
6773 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
6774 | @@ -533,9 +557,9 @@ done | ||
6775 | # Double-quote double-evaled strings. | ||
6776 | for var in lt_decl_all_varnames([[ \ | ||
6777 | ]], lt_decl_dquote_varnames); do | ||
6778 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
6779 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
6780 | *[[\\\\\\\`\\"\\\$]]*) | ||
6781 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
6782 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
6783 | ;; | ||
6784 | *) | ||
6785 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
6786 | @@ -543,16 +567,38 @@ for var in lt_decl_all_varnames([[ \ | ||
6787 | esac | ||
6788 | done | ||
6789 | |||
6790 | -# Fix-up fallback echo if it was mangled by the above quoting rules. | ||
6791 | -case \$lt_ECHO in | ||
6792 | -*'\\\[$]0 --fallback-echo"')dnl " | ||
6793 | - lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` | ||
6794 | - ;; | ||
6795 | -esac | ||
6796 | - | ||
6797 | _LT_OUTPUT_LIBTOOL_INIT | ||
6798 | ]) | ||
6799 | |||
6800 | +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | ||
6801 | +# ------------------------------------ | ||
6802 | +# Generate a child script FILE with all initialization necessary to | ||
6803 | +# reuse the environment learned by the parent script, and make the | ||
6804 | +# file executable. If COMMENT is supplied, it is inserted after the | ||
6805 | +# `#!' sequence but before initialization text begins. After this | ||
6806 | +# macro, additional text can be appended to FILE to form the body of | ||
6807 | +# the child script. The macro ends with non-zero status if the | ||
6808 | +# file could not be fully written (such as if the disk is full). | ||
6809 | +m4_ifdef([AS_INIT_GENERATED], | ||
6810 | +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | ||
6811 | +[m4_defun([_LT_GENERATED_FILE_INIT], | ||
6812 | +[m4_require([AS_PREPARE])]dnl | ||
6813 | +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | ||
6814 | +[lt_write_fail=0 | ||
6815 | +cat >$1 <<_ASEOF || lt_write_fail=1 | ||
6816 | +#! $SHELL | ||
6817 | +# Generated by $as_me. | ||
6818 | +$2 | ||
6819 | +SHELL=\${CONFIG_SHELL-$SHELL} | ||
6820 | +export SHELL | ||
6821 | +_ASEOF | ||
6822 | +cat >>$1 <<\_ASEOF || lt_write_fail=1 | ||
6823 | +AS_SHELL_SANITIZE | ||
6824 | +_AS_PREPARE | ||
6825 | +exec AS_MESSAGE_FD>&1 | ||
6826 | +_ASEOF | ||
6827 | +test $lt_write_fail = 0 && chmod +x $1[]dnl | ||
6828 | +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | ||
6829 | |||
6830 | # LT_OUTPUT | ||
6831 | # --------- | ||
6832 | @@ -562,20 +608,11 @@ _LT_OUTPUT_LIBTOOL_INIT | ||
6833 | AC_DEFUN([LT_OUTPUT], | ||
6834 | [: ${CONFIG_LT=./config.lt} | ||
6835 | AC_MSG_NOTICE([creating $CONFIG_LT]) | ||
6836 | -cat >"$CONFIG_LT" <<_LTEOF | ||
6837 | -#! $SHELL | ||
6838 | -# Generated by $as_me. | ||
6839 | -# Run this file to recreate a libtool stub with the current configuration. | ||
6840 | - | ||
6841 | -lt_cl_silent=false | ||
6842 | -SHELL=\${CONFIG_SHELL-$SHELL} | ||
6843 | -_LTEOF | ||
6844 | +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], | ||
6845 | +[# Run this file to recreate a libtool stub with the current configuration.]) | ||
6846 | |||
6847 | cat >>"$CONFIG_LT" <<\_LTEOF | ||
6848 | -AS_SHELL_SANITIZE | ||
6849 | -_AS_PREPARE | ||
6850 | - | ||
6851 | -exec AS_MESSAGE_FD>&1 | ||
6852 | +lt_cl_silent=false | ||
6853 | exec AS_MESSAGE_LOG_FD>>config.log | ||
6854 | { | ||
6855 | echo | ||
6856 | @@ -601,7 +638,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_ | ||
6857 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | ||
6858 | configured by $[0], generated by m4_PACKAGE_STRING. | ||
6859 | |||
6860 | -Copyright (C) 2008 Free Software Foundation, Inc. | ||
6861 | +Copyright (C) 2010 Free Software Foundation, Inc. | ||
6862 | This config.lt script is free software; the Free Software Foundation | ||
6863 | gives unlimited permision to copy, distribute and modify it." | ||
6864 | |||
6865 | @@ -646,15 +683,13 @@ chmod +x "$CONFIG_LT" | ||
6866 | # appending to config.log, which fails on DOS, as config.log is still kept | ||
6867 | # open by configure. Here we exec the FD to /dev/null, effectively closing | ||
6868 | # config.log, so it can be properly (re)opened and appended to by config.lt. | ||
6869 | -if test "$no_create" != yes; then | ||
6870 | - lt_cl_success=: | ||
6871 | - test "$silent" = yes && | ||
6872 | - lt_config_lt_args="$lt_config_lt_args --quiet" | ||
6873 | - exec AS_MESSAGE_LOG_FD>/dev/null | ||
6874 | - $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | ||
6875 | - exec AS_MESSAGE_LOG_FD>>config.log | ||
6876 | - $lt_cl_success || AS_EXIT(1) | ||
6877 | -fi | ||
6878 | +lt_cl_success=: | ||
6879 | +test "$silent" = yes && | ||
6880 | + lt_config_lt_args="$lt_config_lt_args --quiet" | ||
6881 | +exec AS_MESSAGE_LOG_FD>/dev/null | ||
6882 | +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | ||
6883 | +exec AS_MESSAGE_LOG_FD>>config.log | ||
6884 | +$lt_cl_success || AS_EXIT(1) | ||
6885 | ])# LT_OUTPUT | ||
6886 | |||
6887 | |||
6888 | @@ -717,15 +752,12 @@ _LT_EOF | ||
6889 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
6890 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
6891 | # is reportedly fixed, but why not run on old versions too? | ||
6892 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
6893 | - || (rm -f "$cfgfile"; exit 1) | ||
6894 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
6895 | + || (rm -f "$cfgfile"; exit 1) | ||
6896 | |||
6897 | - _LT_PROG_XSI_SHELLFNS | ||
6898 | + _LT_PROG_REPLACE_SHELLFNS | ||
6899 | |||
6900 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
6901 | - || (rm -f "$cfgfile"; exit 1) | ||
6902 | - | ||
6903 | - mv -f "$cfgfile" "$ofile" || | ||
6904 | + mv -f "$cfgfile" "$ofile" || | ||
6905 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
6906 | chmod +x "$ofile" | ||
6907 | ], | ||
6908 | @@ -831,11 +863,13 @@ AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++) | ||
6909 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | ||
6910 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | ||
6911 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | ||
6912 | +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | ||
6913 | dnl aclocal-1.4 backwards compatibility: | ||
6914 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | ||
6915 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) | ||
6916 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) | ||
6917 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | ||
6918 | +dnl AC_DEFUN([AC_LIBTOOL_RC], []) | ||
6919 | |||
6920 | |||
6921 | # _LT_TAG_COMPILER | ||
6922 | @@ -940,6 +974,31 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECK | ||
6923 | [lt_cv_ld_exported_symbols_list=no]) | ||
6924 | LDFLAGS="$save_LDFLAGS" | ||
6925 | ]) | ||
6926 | + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | ||
6927 | + [lt_cv_ld_force_load=no | ||
6928 | + cat > conftest.c << _LT_EOF | ||
6929 | +int forced_loaded() { return 2;} | ||
6930 | +_LT_EOF | ||
6931 | + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | ||
6932 | + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | ||
6933 | + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | ||
6934 | + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | ||
6935 | + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | ||
6936 | + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | ||
6937 | + cat > conftest.c << _LT_EOF | ||
6938 | +int main() { return 0;} | ||
6939 | +_LT_EOF | ||
6940 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | ||
6941 | + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
6942 | + _lt_result=$? | ||
6943 | + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
6944 | + lt_cv_ld_force_load=yes | ||
6945 | + else | ||
6946 | + cat conftest.err >&AS_MESSAGE_LOG_FD | ||
6947 | + fi | ||
6948 | + rm -f conftest.err libconftest.a conftest conftest.c | ||
6949 | + rm -rf conftest.dSYM | ||
6950 | + ]) | ||
6951 | case $host_os in | ||
6952 | rhapsody* | darwin1.[[012]]) | ||
6953 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
6954 | @@ -967,7 +1026,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECK | ||
6955 | else | ||
6956 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6957 | fi | ||
6958 | - if test "$DSYMUTIL" != ":"; then | ||
6959 | + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
6960 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
6961 | else | ||
6962 | _lt_dsymutil= | ||
6963 | @@ -987,7 +1046,11 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], | ||
6964 | _LT_TAGVAR(hardcode_direct, $1)=no | ||
6965 | _LT_TAGVAR(hardcode_automatic, $1)=yes | ||
6966 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
6967 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='' | ||
6968 | + if test "$lt_cv_ld_force_load" = "yes"; then | ||
6969 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | ||
6970 | + else | ||
6971 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='' | ||
6972 | + fi | ||
6973 | _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
6974 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | ||
6975 | case $cc_basename in | ||
6976 | @@ -995,7 +1058,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], | ||
6977 | *) _lt_dar_can_shared=$GCC ;; | ||
6978 | esac | ||
6979 | if test "$_lt_dar_can_shared" = "yes"; then | ||
6980 | - output_verbose_link_cmd=echo | ||
6981 | + output_verbose_link_cmd=func_echo_all | ||
6982 | _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
6983 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
6984 | _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | ||
6985 | @@ -1011,203 +1074,142 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], | ||
6986 | fi | ||
6987 | ]) | ||
6988 | |||
6989 | -# _LT_SYS_MODULE_PATH_AIX | ||
6990 | -# ----------------------- | ||
6991 | +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | ||
6992 | +# ---------------------------------- | ||
6993 | # Links a minimal program and checks the executable | ||
6994 | # for the system default hardcoded library path. In most cases, | ||
6995 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
6996 | # the location of the communication and MPI libs are included too. | ||
6997 | # If we don't find anything, use the default library path according | ||
6998 | # to the aix ld manual. | ||
6999 | +# Store the results from the different compilers for each TAGNAME. | ||
7000 | +# Allow to override them for all tags through lt_cv_aix_libpath. | ||
7001 | m4_defun([_LT_SYS_MODULE_PATH_AIX], | ||
7002 | [m4_require([_LT_DECL_SED])dnl | ||
7003 | -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | ||
7004 | -lt_aix_libpath_sed=' | ||
7005 | - /Import File Strings/,/^$/ { | ||
7006 | - /^0/ { | ||
7007 | - s/^0 *\(.*\)$/\1/ | ||
7008 | - p | ||
7009 | - } | ||
7010 | - }' | ||
7011 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
7012 | -# Check for a 64-bit object if we didn't find anything. | ||
7013 | -if test -z "$aix_libpath"; then | ||
7014 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
7015 | -fi],[]) | ||
7016 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
7017 | +if test "${lt_cv_aix_libpath+set}" = set; then | ||
7018 | + aix_libpath=$lt_cv_aix_libpath | ||
7019 | +else | ||
7020 | + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], | ||
7021 | + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ | ||
7022 | + lt_aix_libpath_sed='[ | ||
7023 | + /Import File Strings/,/^$/ { | ||
7024 | + /^0/ { | ||
7025 | + s/^0 *\([^ ]*\) *$/\1/ | ||
7026 | + p | ||
7027 | + } | ||
7028 | + }]' | ||
7029 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
7030 | + # Check for a 64-bit object if we didn't find anything. | ||
7031 | + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
7032 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
7033 | + fi],[]) | ||
7034 | + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
7035 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" | ||
7036 | + fi | ||
7037 | + ]) | ||
7038 | + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) | ||
7039 | +fi | ||
7040 | ])# _LT_SYS_MODULE_PATH_AIX | ||
7041 | |||
7042 | |||
7043 | # _LT_SHELL_INIT(ARG) | ||
7044 | # ------------------- | ||
7045 | m4_define([_LT_SHELL_INIT], | ||
7046 | -[ifdef([AC_DIVERSION_NOTICE], | ||
7047 | - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | ||
7048 | - [AC_DIVERT_PUSH(NOTICE)]) | ||
7049 | -$1 | ||
7050 | -AC_DIVERT_POP | ||
7051 | -])# _LT_SHELL_INIT | ||
7052 | +[m4_divert_text([M4SH-INIT], [$1 | ||
7053 | +])])# _LT_SHELL_INIT | ||
7054 | + | ||
7055 | |||
7056 | |||
7057 | # _LT_PROG_ECHO_BACKSLASH | ||
7058 | # ----------------------- | ||
7059 | -# Add some code to the start of the generated configure script which | ||
7060 | -# will find an echo command which doesn't interpret backslashes. | ||
7061 | +# Find how we can fake an echo command that does not interpret backslash. | ||
7062 | +# In particular, with Autoconf 2.60 or later we add some code to the start | ||
7063 | +# of the generated configure script which will find a shell with a builtin | ||
7064 | +# printf (which we can use as an echo command). | ||
7065 | m4_defun([_LT_PROG_ECHO_BACKSLASH], | ||
7066 | -[_LT_SHELL_INIT([ | ||
7067 | -# Check that we are running under the correct shell. | ||
7068 | -SHELL=${CONFIG_SHELL-/bin/sh} | ||
7069 | - | ||
7070 | -case X$lt_ECHO in | ||
7071 | -X*--fallback-echo) | ||
7072 | - # Remove one level of quotation (which was required for Make). | ||
7073 | - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | ||
7074 | - ;; | ||
7075 | -esac | ||
7076 | - | ||
7077 | -ECHO=${lt_ECHO-echo} | ||
7078 | -if test "X[$]1" = X--no-reexec; then | ||
7079 | - # Discard the --no-reexec flag, and continue. | ||
7080 | - shift | ||
7081 | -elif test "X[$]1" = X--fallback-echo; then | ||
7082 | - # Avoid inline document here, it may be left over | ||
7083 | - : | ||
7084 | -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
7085 | - # Yippee, $ECHO works! | ||
7086 | - : | ||
7087 | +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
7088 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
7089 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
7090 | + | ||
7091 | +AC_MSG_CHECKING([how to print strings]) | ||
7092 | +# Test print first, because it will be a builtin if present. | ||
7093 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
7094 | + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
7095 | + ECHO='print -r --' | ||
7096 | +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
7097 | + ECHO='printf %s\n' | ||
7098 | else | ||
7099 | - # Restart under the correct shell. | ||
7100 | - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
7101 | -fi | ||
7102 | - | ||
7103 | -if test "X[$]1" = X--fallback-echo; then | ||
7104 | - # used as fallback echo | ||
7105 | - shift | ||
7106 | - cat <<_LT_EOF | ||
7107 | -[$]* | ||
7108 | -_LT_EOF | ||
7109 | - exit 0 | ||
7110 | + # Use this function as a fallback that always works. | ||
7111 | + func_fallback_echo () | ||
7112 | + { | ||
7113 | + eval 'cat <<_LTECHO_EOF | ||
7114 | +$[]1 | ||
7115 | +_LTECHO_EOF' | ||
7116 | + } | ||
7117 | + ECHO='func_fallback_echo' | ||
7118 | fi | ||
7119 | |||
7120 | -# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
7121 | -# if CDPATH is set. | ||
7122 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
7123 | - | ||
7124 | -if test -z "$lt_ECHO"; then | ||
7125 | - if test "X${echo_test_string+set}" != Xset; then | ||
7126 | - # find a string as large as possible, as long as the shell can cope with it | ||
7127 | - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | ||
7128 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
7129 | - if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
7130 | - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
7131 | - then | ||
7132 | - break | ||
7133 | - fi | ||
7134 | - done | ||
7135 | - fi | ||
7136 | - | ||
7137 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
7138 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
7139 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
7140 | - : | ||
7141 | - else | ||
7142 | - # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
7143 | - # backslashes. This makes it impossible to quote backslashes using | ||
7144 | - # echo "$something" | sed 's/\\/\\\\/g' | ||
7145 | - # | ||
7146 | - # So, first we look for a working echo in the user's PATH. | ||
7147 | - | ||
7148 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7149 | - for dir in $PATH /usr/ucb; do | ||
7150 | - IFS="$lt_save_ifs" | ||
7151 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
7152 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
7153 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
7154 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
7155 | - ECHO="$dir/echo" | ||
7156 | - break | ||
7157 | - fi | ||
7158 | - done | ||
7159 | - IFS="$lt_save_ifs" | ||
7160 | - | ||
7161 | - if test "X$ECHO" = Xecho; then | ||
7162 | - # We didn't find a better echo, so look for alternatives. | ||
7163 | - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
7164 | - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
7165 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
7166 | - # This shell has a builtin print -r that does the trick. | ||
7167 | - ECHO='print -r' | ||
7168 | - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
7169 | - test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
7170 | - # If we have ksh, try running configure again with it. | ||
7171 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
7172 | - export ORIGINAL_CONFIG_SHELL | ||
7173 | - CONFIG_SHELL=/bin/ksh | ||
7174 | - export CONFIG_SHELL | ||
7175 | - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
7176 | - else | ||
7177 | - # Try using printf. | ||
7178 | - ECHO='printf %s\n' | ||
7179 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
7180 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
7181 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
7182 | - # Cool, printf works | ||
7183 | - : | ||
7184 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
7185 | - test "X$echo_testing_string" = 'X\t' && | ||
7186 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
7187 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
7188 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
7189 | - export CONFIG_SHELL | ||
7190 | - SHELL="$CONFIG_SHELL" | ||
7191 | - export SHELL | ||
7192 | - ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | ||
7193 | - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
7194 | - test "X$echo_testing_string" = 'X\t' && | ||
7195 | - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
7196 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
7197 | - ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | ||
7198 | - else | ||
7199 | - # maybe with a smaller string... | ||
7200 | - prev=: | ||
7201 | - | ||
7202 | - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | ||
7203 | - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
7204 | - then | ||
7205 | - break | ||
7206 | - fi | ||
7207 | - prev="$cmd" | ||
7208 | - done | ||
7209 | +# func_echo_all arg... | ||
7210 | +# Invoke $ECHO with all args, space-separated. | ||
7211 | +func_echo_all () | ||
7212 | +{ | ||
7213 | + $ECHO "$*" | ||
7214 | +} | ||
7215 | |||
7216 | - if test "$prev" != 'sed 50q "[$]0"'; then | ||
7217 | - echo_test_string=`eval $prev` | ||
7218 | - export echo_test_string | ||
7219 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | ||
7220 | - else | ||
7221 | - # Oops. We lost completely, so just stick with echo. | ||
7222 | - ECHO=echo | ||
7223 | - fi | ||
7224 | - fi | ||
7225 | - fi | ||
7226 | - fi | ||
7227 | - fi | ||
7228 | -fi | ||
7229 | +case "$ECHO" in | ||
7230 | + printf*) AC_MSG_RESULT([printf]) ;; | ||
7231 | + print*) AC_MSG_RESULT([print -r]) ;; | ||
7232 | + *) AC_MSG_RESULT([cat]) ;; | ||
7233 | +esac | ||
7234 | |||
7235 | -# Copy echo and quote the copy suitably for passing to libtool from | ||
7236 | -# the Makefile, instead of quoting the original, which is used later. | ||
7237 | -lt_ECHO=$ECHO | ||
7238 | -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | ||
7239 | - lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | ||
7240 | -fi | ||
7241 | +m4_ifdef([_AS_DETECT_SUGGESTED], | ||
7242 | +[_AS_DETECT_SUGGESTED([ | ||
7243 | + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( | ||
7244 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
7245 | + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
7246 | + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
7247 | + PATH=/empty FPATH=/empty; export PATH FPATH | ||
7248 | + test "X`printf %s $ECHO`" = "X$ECHO" \ | ||
7249 | + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) | ||
7250 | |||
7251 | -AC_SUBST(lt_ECHO) | ||
7252 | -]) | ||
7253 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | ||
7254 | -_LT_DECL([], [ECHO], [1], | ||
7255 | - [An echo program that does not interpret backslashes]) | ||
7256 | +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | ||
7257 | ])# _LT_PROG_ECHO_BACKSLASH | ||
7258 | |||
7259 | |||
7260 | +# _LT_WITH_SYSROOT | ||
7261 | +# ---------------- | ||
7262 | +AC_DEFUN([_LT_WITH_SYSROOT], | ||
7263 | +[AC_MSG_CHECKING([for sysroot]) | ||
7264 | +AC_ARG_WITH([sysroot], | ||
7265 | +[ --with-libtool-sysroot[=DIR] Search for dependent libraries within DIR | ||
7266 | + (or the compiler's sysroot if not specified).], | ||
7267 | +[], [with_libtool_sysroot=no]) | ||
7268 | + | ||
7269 | +dnl lt_sysroot will always be passed unquoted. We quote it here | ||
7270 | +dnl in case the user passed a directory name. | ||
7271 | +lt_sysroot= | ||
7272 | +case ${with_libtool_sysroot} in #( | ||
7273 | + yes) | ||
7274 | + if test "$GCC" = yes; then | ||
7275 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
7276 | + fi | ||
7277 | + ;; #( | ||
7278 | + /*) | ||
7279 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
7280 | + ;; #( | ||
7281 | + no|'') | ||
7282 | + ;; #( | ||
7283 | + *) | ||
7284 | + AC_MSG_RESULT([${with_libtool_sysroot}]) | ||
7285 | + AC_MSG_ERROR([The sysroot must be an absolute path.]) | ||
7286 | + ;; | ||
7287 | +esac | ||
7288 | + | ||
7289 | + AC_MSG_RESULT([${lt_sysroot:-no}]) | ||
7290 | +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | ||
7291 | +[dependent libraries, and in which our libraries should be installed.])]) | ||
7292 | + | ||
7293 | # _LT_ENABLE_LOCK | ||
7294 | # --------------- | ||
7295 | m4_defun([_LT_ENABLE_LOCK], | ||
7296 | @@ -1236,7 +1238,7 @@ ia64-*-hpux*) | ||
7297 | ;; | ||
7298 | *-*-irix6*) | ||
7299 | # Find out which ABI we are using. | ||
7300 | - echo '[#]line __oline__ "configure"' > conftest.$ac_ext | ||
7301 | + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | ||
7302 | if AC_TRY_EVAL(ac_compile); then | ||
7303 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
7304 | case `/usr/bin/file conftest.$ac_objext` in | ||
7305 | @@ -1354,14 +1356,47 @@ need_locks="$enable_libtool_lock" | ||
7306 | ])# _LT_ENABLE_LOCK | ||
7307 | |||
7308 | |||
7309 | +# _LT_PROG_AR | ||
7310 | +# ----------- | ||
7311 | +m4_defun([_LT_PROG_AR], | ||
7312 | +[AC_CHECK_TOOLS(AR, [ar], false) | ||
7313 | +: ${AR=ar} | ||
7314 | +: ${AR_FLAGS=cru} | ||
7315 | +_LT_DECL([], [AR], [1], [The archiver]) | ||
7316 | +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) | ||
7317 | + | ||
7318 | +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | ||
7319 | + [lt_cv_ar_at_file=no | ||
7320 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], | ||
7321 | + [echo conftest.$ac_objext > conftest.lst | ||
7322 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' | ||
7323 | + AC_TRY_EVAL([lt_ar_try]) | ||
7324 | + if test "$ac_status" -eq 0; then | ||
7325 | + # Ensure the archiver fails upon bogus file names. | ||
7326 | + rm -f conftest.$ac_objext libconftest.a | ||
7327 | + AC_TRY_EVAL([lt_ar_try]) | ||
7328 | + if test "$ac_status" -ne 0; then | ||
7329 | + lt_cv_ar_at_file=@ | ||
7330 | + fi | ||
7331 | + fi | ||
7332 | + rm -f conftest.* libconftest.a | ||
7333 | + ]) | ||
7334 | + ]) | ||
7335 | + | ||
7336 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
7337 | + archiver_list_spec= | ||
7338 | +else | ||
7339 | + archiver_list_spec=$lt_cv_ar_at_file | ||
7340 | +fi | ||
7341 | +_LT_DECL([], [archiver_list_spec], [1], | ||
7342 | + [How to feed a file listing to the archiver]) | ||
7343 | +])# _LT_PROG_AR | ||
7344 | + | ||
7345 | + | ||
7346 | # _LT_CMD_OLD_ARCHIVE | ||
7347 | # ------------------- | ||
7348 | m4_defun([_LT_CMD_OLD_ARCHIVE], | ||
7349 | -[AC_CHECK_TOOL(AR, ar, false) | ||
7350 | -test -z "$AR" && AR=ar | ||
7351 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
7352 | -_LT_DECL([], [AR], [1], [The archiver]) | ||
7353 | -_LT_DECL([], [AR_FLAGS], [1]) | ||
7354 | +[_LT_PROG_AR | ||
7355 | |||
7356 | AC_CHECK_TOOL(STRIP, strip, :) | ||
7357 | test -z "$STRIP" && STRIP=: | ||
7358 | @@ -1388,10 +1423,19 @@ if test -n "$RANLIB"; then | ||
7359 | esac | ||
7360 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
7361 | fi | ||
7362 | + | ||
7363 | +case $host_os in | ||
7364 | + darwin*) | ||
7365 | + lock_old_archive_extraction=yes ;; | ||
7366 | + *) | ||
7367 | + lock_old_archive_extraction=no ;; | ||
7368 | +esac | ||
7369 | _LT_DECL([], [old_postinstall_cmds], [2]) | ||
7370 | _LT_DECL([], [old_postuninstall_cmds], [2]) | ||
7371 | _LT_TAGDECL([], [old_archive_cmds], [2], | ||
7372 | [Commands used to build an old-style archive]) | ||
7373 | +_LT_DECL([], [lock_old_archive_extraction], [0], | ||
7374 | + [Whether to use a lock for old archive extraction]) | ||
7375 | ])# _LT_CMD_OLD_ARCHIVE | ||
7376 | |||
7377 | |||
7378 | @@ -1416,15 +1460,15 @@ AC_CACHE_CHECK([$1], [$2], | ||
7379 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
7380 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7381 | -e 's:$: $lt_compiler_flag:'` | ||
7382 | - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
7383 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
7384 | (eval "$lt_compile" 2>conftest.err) | ||
7385 | ac_status=$? | ||
7386 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
7387 | - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
7388 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
7389 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
7390 | # The compiler can only warn and ignore the option if not recognized | ||
7391 | # So say no if there are warnings other than the usual output. | ||
7392 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
7393 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
7394 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7395 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
7396 | $2=yes | ||
7397 | @@ -1464,7 +1508,7 @@ AC_CACHE_CHECK([$1], [$2], | ||
7398 | if test -s conftest.err; then | ||
7399 | # Append any errors to the config.log. | ||
7400 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | ||
7401 | - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
7402 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
7403 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7404 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
7405 | $2=yes | ||
7406 | @@ -1527,6 +1571,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d | ||
7407 | lt_cv_sys_max_cmd_len=8192; | ||
7408 | ;; | ||
7409 | |||
7410 | + mint*) | ||
7411 | + # On MiNT this can take a long time and run out of memory. | ||
7412 | + lt_cv_sys_max_cmd_len=8192; | ||
7413 | + ;; | ||
7414 | + | ||
7415 | amigaos*) | ||
7416 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
7417 | # So we just punt and use a minimum line length of 8192. | ||
7418 | @@ -1591,8 +1640,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d | ||
7419 | # If test is not a shell built-in, we'll probably end up computing a | ||
7420 | # maximum length that is only half of the actual maximum length, but | ||
7421 | # we can't tell. | ||
7422 | - while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
7423 | - = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
7424 | + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | ||
7425 | + = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
7426 | test $i != 17 # 1/2 MB should be enough | ||
7427 | do | ||
7428 | i=`expr $i + 1` | ||
7429 | @@ -1643,7 +1692,7 @@ else | ||
7430 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
7431 | lt_status=$lt_dlunknown | ||
7432 | cat > conftest.$ac_ext <<_LT_EOF | ||
7433 | -[#line __oline__ "configure" | ||
7434 | +[#line $LINENO "configure" | ||
7435 | #include "confdefs.h" | ||
7436 | |||
7437 | #if HAVE_DLFCN_H | ||
7438 | @@ -1684,7 +1733,13 @@ else | ||
7439 | # endif | ||
7440 | #endif | ||
7441 | |||
7442 | -void fnord() { int i=42;} | ||
7443 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
7444 | + correspondingly for the symbols needed. */ | ||
7445 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
7446 | +int fnord () __attribute__((visibility("default"))); | ||
7447 | +#endif | ||
7448 | + | ||
7449 | +int fnord () { return 42; } | ||
7450 | int main () | ||
7451 | { | ||
7452 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
7453 | @@ -1693,7 +1748,11 @@ int main () | ||
7454 | if (self) | ||
7455 | { | ||
7456 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
7457 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
7458 | + else | ||
7459 | + { | ||
7460 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
7461 | + else puts (dlerror ()); | ||
7462 | + } | ||
7463 | /* dlclose (self); */ | ||
7464 | } | ||
7465 | else | ||
7466 | @@ -1869,16 +1928,16 @@ AC_CACHE_CHECK([if $compiler supports -c | ||
7467 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
7468 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7469 | -e 's:$: $lt_compiler_flag:'` | ||
7470 | - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
7471 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
7472 | (eval "$lt_compile" 2>out/conftest.err) | ||
7473 | ac_status=$? | ||
7474 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | ||
7475 | - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
7476 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
7477 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
7478 | then | ||
7479 | # The compiler can only warn and ignore the option if not recognized | ||
7480 | # So say no if there are warnings | ||
7481 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
7482 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
7483 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
7484 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
7485 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
7486 | @@ -2037,6 +2096,7 @@ m4_require([_LT_DECL_EGREP])dnl | ||
7487 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
7488 | m4_require([_LT_DECL_OBJDUMP])dnl | ||
7489 | m4_require([_LT_DECL_SED])dnl | ||
7490 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
7491 | AC_MSG_CHECKING([dynamic linker characteristics]) | ||
7492 | m4_if([$1], | ||
7493 | [], [ | ||
7494 | @@ -2045,16 +2105,23 @@ if test "$GCC" = yes; then | ||
7495 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
7496 | *) lt_awk_arg="/^libraries:/" ;; | ||
7497 | esac | ||
7498 | - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
7499 | - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
7500 | + case $host_os in | ||
7501 | + mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; | ||
7502 | + *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
7503 | + esac | ||
7504 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
7505 | + case $lt_search_path_spec in | ||
7506 | + *\;*) | ||
7507 | # if the path contains ";" then we assume it to be the separator | ||
7508 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
7509 | # assumed that no part of a normal pathname contains ";" but that should | ||
7510 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
7511 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
7512 | - else | ||
7513 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
7514 | - fi | ||
7515 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
7516 | + ;; | ||
7517 | + *) | ||
7518 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
7519 | + ;; | ||
7520 | + esac | ||
7521 | # Ok, now we have the path, separated by spaces, we can step through it | ||
7522 | # and add multilib dir if necessary. | ||
7523 | lt_tmp_lt_search_path_spec= | ||
7524 | @@ -2067,7 +2134,7 @@ if test "$GCC" = yes; then | ||
7525 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
7526 | fi | ||
7527 | done | ||
7528 | - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
7529 | + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
7530 | BEGIN {RS=" "; FS="/|\n";} { | ||
7531 | lt_foo=""; | ||
7532 | lt_count=0; | ||
7533 | @@ -2087,7 +2154,13 @@ BEGIN {RS=" "; FS="/|\n";} { | ||
7534 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } | ||
7535 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | ||
7536 | }'` | ||
7537 | - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
7538 | + # AWK program above erroneously prepends '/' to C:/dos/paths | ||
7539 | + # for these hosts. | ||
7540 | + case $host_os in | ||
7541 | + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
7542 | + $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | ||
7543 | + esac | ||
7544 | + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
7545 | else | ||
7546 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
7547 | fi]) | ||
7548 | @@ -2175,7 +2248,7 @@ amigaos*) | ||
7549 | m68k) | ||
7550 | library_names_spec='$libname.ixlibrary $libname.a' | ||
7551 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
7552 | - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
7553 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
7554 | ;; | ||
7555 | esac | ||
7556 | ;; | ||
7557 | @@ -2206,8 +2279,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
7558 | need_version=no | ||
7559 | need_lib_prefix=no | ||
7560 | |||
7561 | - case $GCC,$host_os in | ||
7562 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
7563 | + case $GCC,$cc_basename in | ||
7564 | + yes,*) | ||
7565 | + # gcc | ||
7566 | library_names_spec='$libname.dll.a' | ||
7567 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
7568 | postinstall_cmds='base_file=`basename \${file}`~ | ||
7569 | @@ -2228,36 +2302,83 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
7570 | cygwin*) | ||
7571 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
7572 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
7573 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
7574 | +m4_if([$1], [],[ | ||
7575 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | ||
7576 | ;; | ||
7577 | mingw* | cegcc*) | ||
7578 | # MinGW DLLs use traditional 'lib' prefix | ||
7579 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
7580 | - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
7581 | - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | ||
7582 | - # It is most probably a Windows format PATH printed by | ||
7583 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
7584 | - # path with ; separators, and with drive letters. We can handle the | ||
7585 | - # drive letters (cygwin fileutils understands them), so leave them, | ||
7586 | - # especially as we might pass files found there to a mingw objdump, | ||
7587 | - # which wouldn't understand a cygwinified path. Ahh. | ||
7588 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
7589 | - else | ||
7590 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
7591 | - fi | ||
7592 | ;; | ||
7593 | pw32*) | ||
7594 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
7595 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
7596 | ;; | ||
7597 | esac | ||
7598 | + dynamic_linker='Win32 ld.exe' | ||
7599 | + ;; | ||
7600 | + | ||
7601 | + *,cl*) | ||
7602 | + # Native MSVC | ||
7603 | + libname_spec='$name' | ||
7604 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
7605 | + library_names_spec='${libname}.dll.lib' | ||
7606 | + | ||
7607 | + case $build_os in | ||
7608 | + mingw*) | ||
7609 | + sys_lib_search_path_spec= | ||
7610 | + lt_save_ifs=$IFS | ||
7611 | + IFS=';' | ||
7612 | + for lt_path in $LIB | ||
7613 | + do | ||
7614 | + IFS=$lt_save_ifs | ||
7615 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
7616 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
7617 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
7618 | + done | ||
7619 | + IFS=$lt_save_ifs | ||
7620 | + # Convert to MSYS style. | ||
7621 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | ||
7622 | + ;; | ||
7623 | + cygwin*) | ||
7624 | + # Convert to unix form, then to dos form, then back to unix form | ||
7625 | + # but this time dos style (no spaces!) so that the unix form looks | ||
7626 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
7627 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
7628 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
7629 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
7630 | + ;; | ||
7631 | + *) | ||
7632 | + sys_lib_search_path_spec="$LIB" | ||
7633 | + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | ||
7634 | + # It is most probably a Windows format PATH. | ||
7635 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
7636 | + else | ||
7637 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
7638 | + fi | ||
7639 | + # FIXME: find the short name or the path components, as spaces are | ||
7640 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
7641 | + ;; | ||
7642 | + esac | ||
7643 | + | ||
7644 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
7645 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
7646 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
7647 | + dldir=$destdir/`dirname \$dlpath`~ | ||
7648 | + test -d \$dldir || mkdir -p \$dldir~ | ||
7649 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
7650 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
7651 | + dlpath=$dir/\$dldll~ | ||
7652 | + $RM \$dlpath' | ||
7653 | + shlibpath_overrides_runpath=yes | ||
7654 | + dynamic_linker='Win32 link.exe' | ||
7655 | ;; | ||
7656 | |||
7657 | *) | ||
7658 | + # Assume MSVC wrapper | ||
7659 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
7660 | + dynamic_linker='Win32 ld.exe' | ||
7661 | ;; | ||
7662 | esac | ||
7663 | - dynamic_linker='Win32 ld.exe' | ||
7664 | # FIXME: first we should search . and the directory the executable is in | ||
7665 | shlibpath_var=PATH | ||
7666 | ;; | ||
7667 | @@ -2344,6 +2465,19 @@ gnu*) | ||
7668 | hardcode_into_libs=yes | ||
7669 | ;; | ||
7670 | |||
7671 | +haiku*) | ||
7672 | + version_type=linux | ||
7673 | + need_lib_prefix=no | ||
7674 | + need_version=no | ||
7675 | + dynamic_linker="$host_os runtime_loader" | ||
7676 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
7677 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
7678 | + shlibpath_var=LIBRARY_PATH | ||
7679 | + shlibpath_overrides_runpath=yes | ||
7680 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
7681 | + hardcode_into_libs=yes | ||
7682 | + ;; | ||
7683 | + | ||
7684 | hpux9* | hpux10* | hpux11*) | ||
7685 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
7686 | # link against other versions. | ||
7687 | @@ -2386,8 +2520,10 @@ hpux9* | hpux10* | hpux11*) | ||
7688 | soname_spec='${libname}${release}${shared_ext}$major' | ||
7689 | ;; | ||
7690 | esac | ||
7691 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
7692 | + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
7693 | postinstall_cmds='chmod 555 $lib' | ||
7694 | + # or fails outright, so override atomically: | ||
7695 | + install_override_mode=555 | ||
7696 | ;; | ||
7697 | |||
7698 | interix[[3-9]]*) | ||
7699 | @@ -2477,7 +2613,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
7700 | |||
7701 | # Append ld.so.conf contents to the search path | ||
7702 | if test -f /etc/ld.so.conf; then | ||
7703 | - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
7704 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | ||
7705 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
7706 | fi | ||
7707 | |||
7708 | @@ -2710,6 +2846,8 @@ _LT_DECL([], [library_names_spec], [1], | ||
7709 | The last name is the one that the linker finds with -lNAME]]) | ||
7710 | _LT_DECL([], [soname_spec], [1], | ||
7711 | [[The coded name of the library, if different from the real name]]) | ||
7712 | +_LT_DECL([], [install_override_mode], [1], | ||
7713 | + [Permission mode override for installation of shared libraries]) | ||
7714 | _LT_DECL([], [postinstall_cmds], [2], | ||
7715 | [Command to use after installation of a shared archive]) | ||
7716 | _LT_DECL([], [postuninstall_cmds], [2], | ||
7717 | @@ -2822,6 +2960,7 @@ AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
7718 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
7719 | m4_require([_LT_DECL_SED])dnl | ||
7720 | m4_require([_LT_DECL_EGREP])dnl | ||
7721 | +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | ||
7722 | |||
7723 | AC_ARG_WITH([gnu-ld], | ||
7724 | [AS_HELP_STRING([--with-gnu-ld], | ||
7725 | @@ -2943,6 +3082,11 @@ case $reload_flag in | ||
7726 | esac | ||
7727 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
7728 | case $host_os in | ||
7729 | + cygwin* | mingw* | pw32* | cegcc*) | ||
7730 | + if test "$GCC" != yes; then | ||
7731 | + reload_cmds=false | ||
7732 | + fi | ||
7733 | + ;; | ||
7734 | darwin*) | ||
7735 | if test "$GCC" = yes; then | ||
7736 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
7737 | @@ -2951,8 +3095,8 @@ case $host_os in | ||
7738 | fi | ||
7739 | ;; | ||
7740 | esac | ||
7741 | -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl | ||
7742 | -_LT_DECL([], [reload_cmds], [2])dnl | ||
7743 | +_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl | ||
7744 | +_LT_TAGDECL([], [reload_cmds], [2])dnl | ||
7745 | ])# _LT_CMD_RELOAD | ||
7746 | |||
7747 | |||
7748 | @@ -3004,16 +3148,18 @@ mingw* | pw32*) | ||
7749 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
7750 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
7751 | # unless we find 'file', for example because we are cross-compiling. | ||
7752 | - if ( file / ) >/dev/null 2>&1; then | ||
7753 | + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
7754 | + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
7755 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
7756 | lt_cv_file_magic_cmd='func_win32_libid' | ||
7757 | else | ||
7758 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
7759 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
7760 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
7761 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
7762 | fi | ||
7763 | ;; | ||
7764 | |||
7765 | -cegcc) | ||
7766 | +cegcc*) | ||
7767 | # use the weaker test based on 'objdump'. See mingw*. | ||
7768 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
7769 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
7770 | @@ -3043,6 +3189,10 @@ gnu*) | ||
7771 | lt_cv_deplibs_check_method=pass_all | ||
7772 | ;; | ||
7773 | |||
7774 | +haiku*) | ||
7775 | + lt_cv_deplibs_check_method=pass_all | ||
7776 | + ;; | ||
7777 | + | ||
7778 | hpux10.20* | hpux11*) | ||
7779 | lt_cv_file_magic_cmd=/usr/bin/file | ||
7780 | case $host_cpu in | ||
7781 | @@ -3051,11 +3201,11 @@ hpux10.20* | hpux11*) | ||
7782 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
7783 | ;; | ||
7784 | hppa*64*) | ||
7785 | - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] | ||
7786 | + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] | ||
7787 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
7788 | ;; | ||
7789 | *) | ||
7790 | - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | ||
7791 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' | ||
7792 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
7793 | ;; | ||
7794 | esac | ||
7795 | @@ -3155,6 +3305,21 @@ tpf*) | ||
7796 | ;; | ||
7797 | esac | ||
7798 | ]) | ||
7799 | + | ||
7800 | +file_magic_glob= | ||
7801 | +want_nocaseglob=no | ||
7802 | +if test "$build" = "$host"; then | ||
7803 | + case $host_os in | ||
7804 | + mingw* | pw32*) | ||
7805 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
7806 | + want_nocaseglob=yes | ||
7807 | + else | ||
7808 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` | ||
7809 | + fi | ||
7810 | + ;; | ||
7811 | + esac | ||
7812 | +fi | ||
7813 | + | ||
7814 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
7815 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
7816 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
7817 | @@ -3162,7 +3327,11 @@ test -z "$deplibs_check_method" && depli | ||
7818 | _LT_DECL([], [deplibs_check_method], [1], | ||
7819 | [Method to check whether dependent libraries are shared objects]) | ||
7820 | _LT_DECL([], [file_magic_cmd], [1], | ||
7821 | - [Command to use when deplibs_check_method == "file_magic"]) | ||
7822 | + [Command to use when deplibs_check_method = "file_magic"]) | ||
7823 | +_LT_DECL([], [file_magic_glob], [1], | ||
7824 | + [How to find potential files when deplibs_check_method = "file_magic"]) | ||
7825 | +_LT_DECL([], [want_nocaseglob], [1], | ||
7826 | + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) | ||
7827 | ])# _LT_CHECK_MAGIC_METHOD | ||
7828 | |||
7829 | |||
7830 | @@ -3219,7 +3388,19 @@ if test "$lt_cv_path_NM" != "no"; then | ||
7831 | NM="$lt_cv_path_NM" | ||
7832 | else | ||
7833 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
7834 | - AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) | ||
7835 | + if test -n "$DUMPBIN"; then : | ||
7836 | + # Let the user override the test. | ||
7837 | + else | ||
7838 | + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | ||
7839 | + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
7840 | + *COFF*) | ||
7841 | + DUMPBIN="$DUMPBIN -symbols" | ||
7842 | + ;; | ||
7843 | + *) | ||
7844 | + DUMPBIN=: | ||
7845 | + ;; | ||
7846 | + esac | ||
7847 | + fi | ||
7848 | AC_SUBST([DUMPBIN]) | ||
7849 | if test "$DUMPBIN" != ":"; then | ||
7850 | NM="$DUMPBIN" | ||
7851 | @@ -3232,13 +3413,13 @@ _LT_DECL([], [NM], [1], [A BSD- or MS-co | ||
7852 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | ||
7853 | [lt_cv_nm_interface="BSD nm" | ||
7854 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
7855 | - (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | ||
7856 | + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | ||
7857 | (eval "$ac_compile" 2>conftest.err) | ||
7858 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
7859 | - (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | ||
7860 | + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | ||
7861 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
7862 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
7863 | - (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) | ||
7864 | + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) | ||
7865 | cat conftest.out >&AS_MESSAGE_LOG_FD | ||
7866 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
7867 | lt_cv_nm_interface="MS dumpbin" | ||
7868 | @@ -3253,6 +3434,67 @@ dnl aclocal-1.4 backwards compatibility: | ||
7869 | dnl AC_DEFUN([AM_PROG_NM], []) | ||
7870 | dnl AC_DEFUN([AC_PROG_NM], []) | ||
7871 | |||
7872 | +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | ||
7873 | +# -------------------------------- | ||
7874 | +# how to determine the name of the shared library | ||
7875 | +# associated with a specific link library. | ||
7876 | +# -- PORTME fill in with the dynamic library characteristics | ||
7877 | +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], | ||
7878 | +[m4_require([_LT_DECL_EGREP]) | ||
7879 | +m4_require([_LT_DECL_OBJDUMP]) | ||
7880 | +m4_require([_LT_DECL_DLLTOOL]) | ||
7881 | +AC_CACHE_CHECK([how to associate runtime and link libraries], | ||
7882 | +lt_cv_sharedlib_from_linklib_cmd, | ||
7883 | +[lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
7884 | + | ||
7885 | +case $host_os in | ||
7886 | +cygwin* | mingw* | pw32* | cegcc*) | ||
7887 | + # two different shell functions defined in ltmain.sh | ||
7888 | + # decide which to use based on capabilities of $DLLTOOL | ||
7889 | + case `$DLLTOOL --help 2>&1` in | ||
7890 | + *--identify-strict*) | ||
7891 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
7892 | + ;; | ||
7893 | + *) | ||
7894 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
7895 | + ;; | ||
7896 | + esac | ||
7897 | + ;; | ||
7898 | +*) | ||
7899 | + # fallback: assume linklib IS sharedlib | ||
7900 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
7901 | + ;; | ||
7902 | +esac | ||
7903 | +]) | ||
7904 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
7905 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
7906 | + | ||
7907 | +_LT_DECL([], [sharedlib_from_linklib_cmd], [1], | ||
7908 | + [Command to associate shared and link libraries]) | ||
7909 | +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | ||
7910 | + | ||
7911 | + | ||
7912 | +# _LT_PATH_MANIFEST_TOOL | ||
7913 | +# ---------------------- | ||
7914 | +# locate the manifest tool | ||
7915 | +m4_defun([_LT_PATH_MANIFEST_TOOL], | ||
7916 | +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) | ||
7917 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
7918 | +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], | ||
7919 | + [lt_cv_path_mainfest_tool=no | ||
7920 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD | ||
7921 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
7922 | + cat conftest.err >&AS_MESSAGE_LOG_FD | ||
7923 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
7924 | + lt_cv_path_mainfest_tool=yes | ||
7925 | + fi | ||
7926 | + rm -f conftest*]) | ||
7927 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
7928 | + MANIFEST_TOOL=: | ||
7929 | +fi | ||
7930 | +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl | ||
7931 | +])# _LT_PATH_MANIFEST_TOOL | ||
7932 | + | ||
7933 | |||
7934 | # LT_LIB_M | ||
7935 | # -------- | ||
7936 | @@ -3261,7 +3503,7 @@ AC_DEFUN([LT_LIB_M], | ||
7937 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
7938 | LIBM= | ||
7939 | case $host in | ||
7940 | -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | ||
7941 | +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | ||
7942 | # These system don't have libm, or don't need it | ||
7943 | ;; | ||
7944 | *-ncr-sysv4.3*) | ||
7945 | @@ -3289,7 +3531,12 @@ m4_defun([_LT_COMPILER_NO_RTTI], | ||
7946 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
7947 | |||
7948 | if test "$GCC" = yes; then | ||
7949 | - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
7950 | + case $cc_basename in | ||
7951 | + nvcc*) | ||
7952 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; | ||
7953 | + *) | ||
7954 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; | ||
7955 | + esac | ||
7956 | |||
7957 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | ||
7958 | lt_cv_prog_compiler_rtti_exceptions, | ||
7959 | @@ -3306,6 +3553,7 @@ _LT_TAGDECL([no_builtin_flag], [lt_prog_ | ||
7960 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | ||
7961 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
7962 | AC_REQUIRE([AC_PROG_CC])dnl | ||
7963 | +AC_REQUIRE([AC_PROG_AWK])dnl | ||
7964 | AC_REQUIRE([LT_PATH_NM])dnl | ||
7965 | AC_REQUIRE([LT_PATH_LD])dnl | ||
7966 | m4_require([_LT_DECL_SED])dnl | ||
7967 | @@ -3373,8 +3621,8 @@ esac | ||
7968 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
7969 | |||
7970 | # Transform an extracted symbol line into symbol name and symbol address | ||
7971 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
7972 | -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'" | ||
7973 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
7974 | +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'" | ||
7975 | |||
7976 | # Handle CRLF in mingw tool chain | ||
7977 | opt_cr= | ||
7978 | @@ -3410,6 +3658,7 @@ for ac_symprfx in "" "_"; do | ||
7979 | else | ||
7980 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
7981 | fi | ||
7982 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
7983 | |||
7984 | # Check to see that the pipe works correctly. | ||
7985 | pipe_works=no | ||
7986 | @@ -3431,7 +3680,7 @@ _LT_EOF | ||
7987 | if AC_TRY_EVAL(ac_compile); then | ||
7988 | # Now try to grab the symbols. | ||
7989 | nlist=conftest.nm | ||
7990 | - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | ||
7991 | + if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then | ||
7992 | # Try sorting and uniquifying the output. | ||
7993 | if sort "$nlist" | uniq > "$nlist"T; then | ||
7994 | mv -f "$nlist"T "$nlist" | ||
7995 | @@ -3443,6 +3692,18 @@ _LT_EOF | ||
7996 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
7997 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
7998 | cat <<_LT_EOF > conftest.$ac_ext | ||
7999 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
8000 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
8001 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
8002 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
8003 | +# define LT@&t@_DLSYM_CONST | ||
8004 | +#elif defined(__osf__) | ||
8005 | +/* This system does not cope well with relocations in const data. */ | ||
8006 | +# define LT@&t@_DLSYM_CONST | ||
8007 | +#else | ||
8008 | +# define LT@&t@_DLSYM_CONST const | ||
8009 | +#endif | ||
8010 | + | ||
8011 | #ifdef __cplusplus | ||
8012 | extern "C" { | ||
8013 | #endif | ||
8014 | @@ -3454,7 +3715,7 @@ _LT_EOF | ||
8015 | cat <<_LT_EOF >> conftest.$ac_ext | ||
8016 | |||
8017 | /* The mapping between symbol names and symbols. */ | ||
8018 | -const struct { | ||
8019 | +LT@&t@_DLSYM_CONST struct { | ||
8020 | const char *name; | ||
8021 | void *address; | ||
8022 | } | ||
8023 | @@ -3480,15 +3741,15 @@ static const void *lt_preloaded_setup() | ||
8024 | _LT_EOF | ||
8025 | # Now try linking the two files. | ||
8026 | mv conftest.$ac_objext conftstm.$ac_objext | ||
8027 | - lt_save_LIBS="$LIBS" | ||
8028 | - lt_save_CFLAGS="$CFLAGS" | ||
8029 | + lt_globsym_save_LIBS=$LIBS | ||
8030 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
8031 | LIBS="conftstm.$ac_objext" | ||
8032 | CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | ||
8033 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | ||
8034 | pipe_works=yes | ||
8035 | fi | ||
8036 | - LIBS="$lt_save_LIBS" | ||
8037 | - CFLAGS="$lt_save_CFLAGS" | ||
8038 | + LIBS=$lt_globsym_save_LIBS | ||
8039 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
8040 | else | ||
8041 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | ||
8042 | fi | ||
8043 | @@ -3521,6 +3782,13 @@ else | ||
8044 | AC_MSG_RESULT(ok) | ||
8045 | fi | ||
8046 | |||
8047 | +# Response file support. | ||
8048 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
8049 | + nm_file_list_spec='@' | ||
8050 | +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then | ||
8051 | + nm_file_list_spec='@' | ||
8052 | +fi | ||
8053 | + | ||
8054 | _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | ||
8055 | [Take the output of nm and produce a listing of raw symbols and C names]) | ||
8056 | _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | ||
8057 | @@ -3531,6 +3799,8 @@ _LT_DECL([global_symbol_to_c_name_addres | ||
8058 | _LT_DECL([global_symbol_to_c_name_address_lib_prefix], | ||
8059 | [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | ||
8060 | [Transform the output of nm in a C name address pair when lib prefix is needed]) | ||
8061 | +_LT_DECL([], [nm_file_list_spec], [1], | ||
8062 | + [Specify filename containing input files for $NM]) | ||
8063 | ]) # _LT_CMD_GLOBAL_SYMBOLS | ||
8064 | |||
8065 | |||
8066 | @@ -3542,7 +3812,6 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)= | ||
8067 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
8068 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
8069 | |||
8070 | -AC_MSG_CHECKING([for $compiler option to produce PIC]) | ||
8071 | m4_if([$1], [CXX], [ | ||
8072 | # C++ specific cases for pic, static, wl, etc. | ||
8073 | if test "$GXX" = yes; then | ||
8074 | @@ -3593,6 +3862,11 @@ m4_if([$1], [CXX], [ | ||
8075 | # DJGPP does not support shared libraries at all | ||
8076 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
8077 | ;; | ||
8078 | + haiku*) | ||
8079 | + # PIC is the default for Haiku. | ||
8080 | + # The "-static" flag exists, but is broken. | ||
8081 | + _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
8082 | + ;; | ||
8083 | interix[[3-9]]*) | ||
8084 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
8085 | # Instead, we relocate shared libraries at runtime. | ||
8086 | @@ -3642,6 +3916,12 @@ m4_if([$1], [CXX], [ | ||
8087 | ;; | ||
8088 | esac | ||
8089 | ;; | ||
8090 | + mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
8091 | + # This hack is so that the source file can tell whether it is being | ||
8092 | + # built for inclusion in a dll (and should export symbols for example). | ||
8093 | + m4_if([$1], [GCJ], [], | ||
8094 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
8095 | + ;; | ||
8096 | dgux*) | ||
8097 | case $cc_basename in | ||
8098 | ec++*) | ||
8099 | @@ -3731,8 +4011,8 @@ m4_if([$1], [CXX], [ | ||
8100 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
8101 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
8102 | ;; | ||
8103 | - xlc* | xlC*) | ||
8104 | - # IBM XL 8.0 on PPC | ||
8105 | + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) | ||
8106 | + # IBM XL 8.0, 9.0 on PPC and BlueGene | ||
8107 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
8108 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | ||
8109 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | ||
8110 | @@ -3794,7 +4074,7 @@ m4_if([$1], [CXX], [ | ||
8111 | ;; | ||
8112 | solaris*) | ||
8113 | case $cc_basename in | ||
8114 | - CC*) | ||
8115 | + CC* | sunCC*) | ||
8116 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
8117 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
8118 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
8119 | @@ -3898,6 +4178,12 @@ m4_if([$1], [CXX], [ | ||
8120 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
8121 | ;; | ||
8122 | |||
8123 | + haiku*) | ||
8124 | + # PIC is the default for Haiku. | ||
8125 | + # The "-static" flag exists, but is broken. | ||
8126 | + _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
8127 | + ;; | ||
8128 | + | ||
8129 | hpux*) | ||
8130 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
8131 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
8132 | @@ -3940,6 +4226,13 @@ m4_if([$1], [CXX], [ | ||
8133 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
8134 | ;; | ||
8135 | esac | ||
8136 | + | ||
8137 | + case $cc_basename in | ||
8138 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
8139 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | ||
8140 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | ||
8141 | + ;; | ||
8142 | + esac | ||
8143 | else | ||
8144 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
8145 | case $host_os in | ||
8146 | @@ -4003,7 +4296,13 @@ m4_if([$1], [CXX], [ | ||
8147 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | ||
8148 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | ||
8149 | ;; | ||
8150 | - pgcc* | pgf77* | pgf90* | pgf95*) | ||
8151 | + nagfor*) | ||
8152 | + # NAG Fortran compiler | ||
8153 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' | ||
8154 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
8155 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
8156 | + ;; | ||
8157 | + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
8158 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
8159 | # which looks to be a dead project) | ||
8160 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
8161 | @@ -4015,25 +4314,25 @@ m4_if([$1], [CXX], [ | ||
8162 | # All Alpha code is PIC. | ||
8163 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
8164 | ;; | ||
8165 | - xl*) | ||
8166 | - # IBM XL C 8.0/Fortran 10.1 on PPC | ||
8167 | + xl* | bgxl* | bgf* | mpixl*) | ||
8168 | + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | ||
8169 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
8170 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | ||
8171 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | ||
8172 | ;; | ||
8173 | *) | ||
8174 | case `$CC -V 2>&1 | sed 5q` in | ||
8175 | - *Sun\ C*) | ||
8176 | - # Sun C 5.9 | ||
8177 | + *Sun\ F* | *Sun*Fortran*) | ||
8178 | + # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
8179 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
8180 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
8181 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
8182 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | ||
8183 | ;; | ||
8184 | - *Sun\ F*) | ||
8185 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
8186 | + *Sun\ C*) | ||
8187 | + # Sun C 5.9 | ||
8188 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
8189 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
8190 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | ||
8191 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
8192 | ;; | ||
8193 | esac | ||
8194 | ;; | ||
8195 | @@ -4065,7 +4364,7 @@ m4_if([$1], [CXX], [ | ||
8196 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
8197 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
8198 | case $cc_basename in | ||
8199 | - f77* | f90* | f95*) | ||
8200 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
8201 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | ||
8202 | *) | ||
8203 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | ||
8204 | @@ -4122,9 +4421,11 @@ case $host_os in | ||
8205 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | ||
8206 | ;; | ||
8207 | esac | ||
8208 | -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | ||
8209 | -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | ||
8210 | - [How to pass a linker flag through the compiler]) | ||
8211 | + | ||
8212 | +AC_CACHE_CHECK([for $compiler option to produce PIC], | ||
8213 | + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], | ||
8214 | + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | ||
8215 | +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) | ||
8216 | |||
8217 | # | ||
8218 | # Check to make sure the PIC flag actually works. | ||
8219 | @@ -4143,6 +4444,8 @@ fi | ||
8220 | _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], | ||
8221 | [Additional compiler flags for building library objects]) | ||
8222 | |||
8223 | +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | ||
8224 | + [How to pass a linker flag through the compiler]) | ||
8225 | # | ||
8226 | # Check to make sure the static flag actually works. | ||
8227 | # | ||
8228 | @@ -4163,6 +4466,7 @@ _LT_TAGDECL([link_static_flag], [lt_prog | ||
8229 | m4_defun([_LT_LINKER_SHLIBS], | ||
8230 | [AC_REQUIRE([LT_PATH_LD])dnl | ||
8231 | AC_REQUIRE([LT_PATH_NM])dnl | ||
8232 | +m4_require([_LT_PATH_MANIFEST_TOOL])dnl | ||
8233 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
8234 | m4_require([_LT_DECL_EGREP])dnl | ||
8235 | m4_require([_LT_DECL_SED])dnl | ||
8236 | @@ -4171,27 +4475,35 @@ m4_require([_LT_TAG_COMPILER])dnl | ||
8237 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
8238 | m4_if([$1], [CXX], [ | ||
8239 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
8240 | + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | ||
8241 | case $host_os in | ||
8242 | aix[[4-9]]*) | ||
8243 | # If we're using GNU nm, then we don't want the "-C" option. | ||
8244 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
8245 | + # Also, AIX nm treats weak defined symbols like other global defined | ||
8246 | + # symbols, whereas GNU nm marks them as "W". | ||
8247 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
8248 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
8249 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
8250 | else | ||
8251 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
8252 | fi | ||
8253 | ;; | ||
8254 | pw32*) | ||
8255 | _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | ||
8256 | - ;; | ||
8257 | + ;; | ||
8258 | cygwin* | mingw* | cegcc*) | ||
8259 | - _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' | ||
8260 | - ;; | ||
8261 | + case $cc_basename in | ||
8262 | + cl*) ;; | ||
8263 | + *) | ||
8264 | + _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' | ||
8265 | + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | ||
8266 | + ;; | ||
8267 | + esac | ||
8268 | + ;; | ||
8269 | *) | ||
8270 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
8271 | - ;; | ||
8272 | + ;; | ||
8273 | esac | ||
8274 | - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | ||
8275 | ], [ | ||
8276 | runpath_var= | ||
8277 | _LT_TAGVAR(allow_undefined_flag, $1)= | ||
8278 | @@ -4254,7 +4566,33 @@ dnl Note also adjust exclude_expsyms for | ||
8279 | esac | ||
8280 | |||
8281 | _LT_TAGVAR(ld_shlibs, $1)=yes | ||
8282 | + | ||
8283 | + # On some targets, GNU ld is compatible enough with the native linker | ||
8284 | + # that we're better off using the native interface for both. | ||
8285 | + lt_use_gnu_ld_interface=no | ||
8286 | if test "$with_gnu_ld" = yes; then | ||
8287 | + case $host_os in | ||
8288 | + aix*) | ||
8289 | + # The AIX port of GNU ld has always aspired to compatibility | ||
8290 | + # with the native linker. However, as the warning in the GNU ld | ||
8291 | + # block says, versions before 2.19.5* couldn't really create working | ||
8292 | + # shared libraries, regardless of the interface used. | ||
8293 | + case `$LD -v 2>&1` in | ||
8294 | + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | ||
8295 | + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; | ||
8296 | + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; | ||
8297 | + *) | ||
8298 | + lt_use_gnu_ld_interface=yes | ||
8299 | + ;; | ||
8300 | + esac | ||
8301 | + ;; | ||
8302 | + *) | ||
8303 | + lt_use_gnu_ld_interface=yes | ||
8304 | + ;; | ||
8305 | + esac | ||
8306 | + fi | ||
8307 | + | ||
8308 | + if test "$lt_use_gnu_ld_interface" = yes; then | ||
8309 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
8310 | wlarc='${wl}' | ||
8311 | |||
8312 | @@ -4272,6 +4610,7 @@ dnl Note also adjust exclude_expsyms for | ||
8313 | fi | ||
8314 | supports_anon_versioning=no | ||
8315 | case `$LD -v 2>&1` in | ||
8316 | + *GNU\ gold*) supports_anon_versioning=yes ;; | ||
8317 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
8318 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
8319 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
8320 | @@ -4287,11 +4626,12 @@ dnl Note also adjust exclude_expsyms for | ||
8321 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
8322 | cat <<_LT_EOF 1>&2 | ||
8323 | |||
8324 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
8325 | +*** Warning: the GNU linker, at least up to release 2.19, is reported | ||
8326 | *** to be unable to reliably create shared libraries on AIX. | ||
8327 | *** Therefore, libtool is disabling shared libraries support. If you | ||
8328 | -*** really care for shared libraries, you may want to modify your PATH | ||
8329 | -*** so that a non-GNU linker is found, and then restart. | ||
8330 | +*** really care for shared libraries, you may want to install binutils | ||
8331 | +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | ||
8332 | +*** You will then need to restart the configuration process. | ||
8333 | |||
8334 | _LT_EOF | ||
8335 | fi | ||
8336 | @@ -4327,10 +4667,12 @@ _LT_EOF | ||
8337 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
8338 | # as there is no search path for DLLs. | ||
8339 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
8340 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | ||
8341 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
8342 | _LT_TAGVAR(always_export_symbols, $1)=no | ||
8343 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
8344 | - _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' | ||
8345 | + _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' | ||
8346 | + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | ||
8347 | |||
8348 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
8349 | _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' | ||
8350 | @@ -4348,6 +4690,11 @@ _LT_EOF | ||
8351 | fi | ||
8352 | ;; | ||
8353 | |||
8354 | + haiku*) | ||
8355 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8356 | + _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
8357 | + ;; | ||
8358 | + | ||
8359 | interix[[3-9]]*) | ||
8360 | _LT_TAGVAR(hardcode_direct, $1)=no | ||
8361 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
8362 | @@ -4373,15 +4720,16 @@ _LT_EOF | ||
8363 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
8364 | && test "$tmp_diet" = no | ||
8365 | then | ||
8366 | - tmp_addflag= | ||
8367 | + tmp_addflag=' $pic_flag' | ||
8368 | tmp_sharedflag='-shared' | ||
8369 | case $cc_basename,$host_cpu in | ||
8370 | pgcc*) # Portland Group C compiler | ||
8371 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
8372 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
8373 | tmp_addflag=' $pic_flag' | ||
8374 | ;; | ||
8375 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
8376 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
8377 | + pgf77* | pgf90* | pgf95* | pgfortran*) | ||
8378 | + # Portland Group f77 and f90 compilers | ||
8379 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
8380 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
8381 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
8382 | tmp_addflag=' -i_dynamic' ;; | ||
8383 | @@ -4392,13 +4740,17 @@ _LT_EOF | ||
8384 | lf95*) # Lahey Fortran 8.1 | ||
8385 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | ||
8386 | tmp_sharedflag='--shared' ;; | ||
8387 | - xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
8388 | + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
8389 | tmp_sharedflag='-qmkshrobj' | ||
8390 | tmp_addflag= ;; | ||
8391 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
8392 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
8393 | + _LT_TAGVAR(compiler_needs_object, $1)=yes | ||
8394 | + ;; | ||
8395 | esac | ||
8396 | case `$CC -V 2>&1 | sed 5q` in | ||
8397 | *Sun\ C*) # Sun C 5.9 | ||
8398 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
8399 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
8400 | _LT_TAGVAR(compiler_needs_object, $1)=yes | ||
8401 | tmp_sharedflag='-G' ;; | ||
8402 | *Sun\ F*) # Sun Fortran 8.3 | ||
8403 | @@ -4414,17 +4766,17 @@ _LT_EOF | ||
8404 | fi | ||
8405 | |||
8406 | case $cc_basename in | ||
8407 | - xlf*) | ||
8408 | + xlf* | bgf* | bgxlf* | mpixlf*) | ||
8409 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
8410 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | ||
8411 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
8412 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | ||
8413 | - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
8414 | + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
8415 | if test "x$supports_anon_versioning" = xyes; then | ||
8416 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8417 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8418 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8419 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
8420 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
8421 | fi | ||
8422 | ;; | ||
8423 | esac | ||
8424 | @@ -4438,8 +4790,8 @@ _LT_EOF | ||
8425 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
8426 | wlarc= | ||
8427 | else | ||
8428 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8429 | - _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' | ||
8430 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8431 | + _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' | ||
8432 | fi | ||
8433 | ;; | ||
8434 | |||
8435 | @@ -4457,8 +4809,8 @@ _LT_EOF | ||
8436 | |||
8437 | _LT_EOF | ||
8438 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8439 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8440 | - _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' | ||
8441 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8442 | + _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' | ||
8443 | else | ||
8444 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
8445 | fi | ||
8446 | @@ -4504,8 +4856,8 @@ _LT_EOF | ||
8447 | |||
8448 | *) | ||
8449 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8450 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8451 | - _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' | ||
8452 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8453 | + _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' | ||
8454 | else | ||
8455 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
8456 | fi | ||
8457 | @@ -4545,8 +4897,10 @@ _LT_EOF | ||
8458 | else | ||
8459 | # If we're using GNU nm, then we don't want the "-C" option. | ||
8460 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
8461 | + # Also, AIX nm treats weak defined symbols like other global | ||
8462 | + # defined symbols, whereas GNU nm marks them as "W". | ||
8463 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
8464 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
8465 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
8466 | else | ||
8467 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
8468 | fi | ||
8469 | @@ -4633,9 +4987,9 @@ _LT_EOF | ||
8470 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
8471 | # Determine the default libpath from the value encoded in an | ||
8472 | # empty executable. | ||
8473 | - _LT_SYS_MODULE_PATH_AIX | ||
8474 | + _LT_SYS_MODULE_PATH_AIX([$1]) | ||
8475 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8476 | - _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
8477 | + _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" | ||
8478 | else | ||
8479 | if test "$host_cpu" = ia64; then | ||
8480 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
8481 | @@ -4644,14 +4998,19 @@ _LT_EOF | ||
8482 | else | ||
8483 | # Determine the default libpath from the value encoded in an | ||
8484 | # empty executable. | ||
8485 | - _LT_SYS_MODULE_PATH_AIX | ||
8486 | + _LT_SYS_MODULE_PATH_AIX([$1]) | ||
8487 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8488 | # Warning - without using the other run time loading flags, | ||
8489 | # -berok will link without error, but may produce a broken library. | ||
8490 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
8491 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
8492 | - # Exported symbols can be pulled into shared objects from archives | ||
8493 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
8494 | + if test "$with_gnu_ld" = yes; then | ||
8495 | + # We only use this code for GNU lds that support --whole-archive. | ||
8496 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
8497 | + else | ||
8498 | + # Exported symbols can be pulled into shared objects from archives | ||
8499 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
8500 | + fi | ||
8501 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
8502 | # This is similar to how AIX traditionally builds its shared libraries. | ||
8503 | _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
8504 | @@ -4683,20 +5042,63 @@ _LT_EOF | ||
8505 | # Microsoft Visual C++. | ||
8506 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
8507 | # no search path for DLLs. | ||
8508 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
8509 | - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
8510 | - # Tell ltmain to make .lib files, not .a files. | ||
8511 | - libext=lib | ||
8512 | - # Tell ltmain to make .dll files, not .so files. | ||
8513 | - shrext_cmds=".dll" | ||
8514 | - # FIXME: Setting linknames here is a bad hack. | ||
8515 | - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8516 | - # The linker will automatically build a .lib file if we build a DLL. | ||
8517 | - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | ||
8518 | - # FIXME: Should let the user specify the lib program. | ||
8519 | - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
8520 | - _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | ||
8521 | - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
8522 | + case $cc_basename in | ||
8523 | + cl*) | ||
8524 | + # Native MSVC | ||
8525 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
8526 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
8527 | + _LT_TAGVAR(always_export_symbols, $1)=yes | ||
8528 | + _LT_TAGVAR(file_list_spec, $1)='@' | ||
8529 | + # Tell ltmain to make .lib files, not .a files. | ||
8530 | + libext=lib | ||
8531 | + # Tell ltmain to make .dll files, not .so files. | ||
8532 | + shrext_cmds=".dll" | ||
8533 | + # FIXME: Setting linknames here is a bad hack. | ||
8534 | + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
8535 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8536 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
8537 | + else | ||
8538 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
8539 | + fi~ | ||
8540 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
8541 | + linknames=' | ||
8542 | + # The linker will not automatically build a static lib if we build a DLL. | ||
8543 | + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | ||
8544 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
8545 | + _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' | ||
8546 | + # Don't use ranlib | ||
8547 | + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | ||
8548 | + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | ||
8549 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
8550 | + case $lt_outputfile in | ||
8551 | + *.exe|*.EXE) ;; | ||
8552 | + *) | ||
8553 | + lt_outputfile="$lt_outputfile.exe" | ||
8554 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
8555 | + ;; | ||
8556 | + esac~ | ||
8557 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
8558 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
8559 | + $RM "$lt_outputfile.manifest"; | ||
8560 | + fi' | ||
8561 | + ;; | ||
8562 | + *) | ||
8563 | + # Assume MSVC wrapper | ||
8564 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
8565 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
8566 | + # Tell ltmain to make .lib files, not .a files. | ||
8567 | + libext=lib | ||
8568 | + # Tell ltmain to make .dll files, not .so files. | ||
8569 | + shrext_cmds=".dll" | ||
8570 | + # FIXME: Setting linknames here is a bad hack. | ||
8571 | + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8572 | + # The linker will automatically build a .lib file if we build a DLL. | ||
8573 | + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | ||
8574 | + # FIXME: Should let the user specify the lib program. | ||
8575 | + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
8576 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
8577 | + ;; | ||
8578 | + esac | ||
8579 | ;; | ||
8580 | |||
8581 | darwin* | rhapsody*) | ||
8582 | @@ -4734,7 +5136,7 @@ _LT_EOF | ||
8583 | |||
8584 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
8585 | freebsd* | dragonfly*) | ||
8586 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
8587 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
8588 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
8589 | _LT_TAGVAR(hardcode_direct, $1)=yes | ||
8590 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
8591 | @@ -4742,7 +5144,7 @@ _LT_EOF | ||
8592 | |||
8593 | hpux9*) | ||
8594 | if test "$GCC" = yes; then | ||
8595 | - _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' | ||
8596 | + _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' | ||
8597 | else | ||
8598 | _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' | ||
8599 | fi | ||
8600 | @@ -4757,8 +5159,8 @@ _LT_EOF | ||
8601 | ;; | ||
8602 | |||
8603 | hpux10*) | ||
8604 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8605 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8606 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
8607 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8608 | else | ||
8609 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
8610 | fi | ||
8611 | @@ -4776,16 +5178,16 @@ _LT_EOF | ||
8612 | ;; | ||
8613 | |||
8614 | hpux11*) | ||
8615 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8616 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
8617 | case $host_cpu in | ||
8618 | hppa*64*) | ||
8619 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8620 | ;; | ||
8621 | ia64*) | ||
8622 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8623 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8624 | ;; | ||
8625 | *) | ||
8626 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8627 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8628 | ;; | ||
8629 | esac | ||
8630 | else | ||
8631 | @@ -4797,7 +5199,14 @@ _LT_EOF | ||
8632 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8633 | ;; | ||
8634 | *) | ||
8635 | - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8636 | + m4_if($1, [], [ | ||
8637 | + # Older versions of the 11.00 compiler do not understand -b yet | ||
8638 | + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | ||
8639 | + _LT_LINKER_OPTION([if $CC understands -b], | ||
8640 | + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], | ||
8641 | + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], | ||
8642 | + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], | ||
8643 | + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) | ||
8644 | ;; | ||
8645 | esac | ||
8646 | fi | ||
8647 | @@ -4825,19 +5234,34 @@ _LT_EOF | ||
8648 | |||
8649 | irix5* | irix6* | nonstopux*) | ||
8650 | if test "$GCC" = yes; then | ||
8651 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
8652 | + _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' | ||
8653 | # Try to use the -exported_symbol ld option, if it does not | ||
8654 | # work, assume that -exports_file does not work either and | ||
8655 | # implicitly export all symbols. | ||
8656 | - save_LDFLAGS="$LDFLAGS" | ||
8657 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
8658 | - AC_LINK_IFELSE(int foo(void) {}, | ||
8659 | - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
8660 | - ) | ||
8661 | - LDFLAGS="$save_LDFLAGS" | ||
8662 | + # This should be the same for all languages, so no per-tag cache variable. | ||
8663 | + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], | ||
8664 | + [lt_cv_irix_exported_symbol], | ||
8665 | + [save_LDFLAGS="$LDFLAGS" | ||
8666 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
8667 | + AC_LINK_IFELSE( | ||
8668 | + [AC_LANG_SOURCE( | ||
8669 | + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], | ||
8670 | + [C++], [[int foo (void) { return 0; }]], | ||
8671 | + [Fortran 77], [[ | ||
8672 | + subroutine foo | ||
8673 | + end]], | ||
8674 | + [Fortran], [[ | ||
8675 | + subroutine foo | ||
8676 | + end]])])], | ||
8677 | + [lt_cv_irix_exported_symbol=yes], | ||
8678 | + [lt_cv_irix_exported_symbol=no]) | ||
8679 | + LDFLAGS="$save_LDFLAGS"]) | ||
8680 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
8681 | + _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' | ||
8682 | + fi | ||
8683 | else | ||
8684 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
8685 | - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
8686 | + _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' | ||
8687 | + _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' | ||
8688 | fi | ||
8689 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | ||
8690 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
8691 | @@ -4899,17 +5323,17 @@ _LT_EOF | ||
8692 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
8693 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | ||
8694 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
8695 | - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
8696 | + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
8697 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
8698 | ;; | ||
8699 | |||
8700 | osf3*) | ||
8701 | if test "$GCC" = yes; then | ||
8702 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
8703 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
8704 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
8705 | else | ||
8706 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
8707 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
8708 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
8709 | fi | ||
8710 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | ||
8711 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
8712 | @@ -4919,13 +5343,13 @@ _LT_EOF | ||
8713 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
8714 | if test "$GCC" = yes; then | ||
8715 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
8716 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
8717 | + _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' | ||
8718 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
8719 | else | ||
8720 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
8721 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
8722 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
8723 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | ||
8724 | - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
8725 | + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
8726 | |||
8727 | # Both c and cxx compiler support -rpath directly | ||
8728 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
8729 | @@ -4938,9 +5362,9 @@ _LT_EOF | ||
8730 | _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' | ||
8731 | if test "$GCC" = yes; then | ||
8732 | wlarc='${wl}' | ||
8733 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8734 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8735 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
8736 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
8737 | + $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' | ||
8738 | else | ||
8739 | case `$CC -V 2>&1` in | ||
8740 | *"Compilers 5.0"*) | ||
8741 | @@ -5212,8 +5636,6 @@ _LT_TAGDECL([], [inherit_rpath], [0], | ||
8742 | to runtime path list]) | ||
8743 | _LT_TAGDECL([], [link_all_deplibs], [0], | ||
8744 | [Whether libtool must link a program against all its dependency libraries]) | ||
8745 | -_LT_TAGDECL([], [fix_srcfile_path], [1], | ||
8746 | - [Fix the shell variable $srcfile for the compiler]) | ||
8747 | _LT_TAGDECL([], [always_export_symbols], [0], | ||
8748 | [Set to "yes" if exported symbols are required]) | ||
8749 | _LT_TAGDECL([], [export_symbols_cmds], [2], | ||
8750 | @@ -5224,6 +5646,8 @@ _LT_TAGDECL([], [include_expsyms], [1], | ||
8751 | [Symbols that must always be exported]) | ||
8752 | _LT_TAGDECL([], [prelink_cmds], [2], | ||
8753 | [Commands necessary for linking programs (against libraries) with templates]) | ||
8754 | +_LT_TAGDECL([], [postlink_cmds], [2], | ||
8755 | + [Commands necessary for finishing linking programs]) | ||
8756 | _LT_TAGDECL([], [file_list_spec], [1], | ||
8757 | [Specify filename containing input files]) | ||
8758 | dnl FIXME: Not yet implemented | ||
8759 | @@ -5317,37 +5741,22 @@ CC="$lt_save_CC" | ||
8760 | ])# _LT_LANG_C_CONFIG | ||
8761 | |||
8762 | |||
8763 | -# _LT_PROG_CXX | ||
8764 | -# ------------ | ||
8765 | -# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ | ||
8766 | -# compiler, we have our own version here. | ||
8767 | -m4_defun([_LT_PROG_CXX], | ||
8768 | -[ | ||
8769 | -pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) | ||
8770 | -AC_PROG_CXX | ||
8771 | -if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
8772 | - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
8773 | - (test "X$CXX" != "Xg++"))) ; then | ||
8774 | - AC_PROG_CXXCPP | ||
8775 | -else | ||
8776 | - _lt_caught_CXX_error=yes | ||
8777 | -fi | ||
8778 | -popdef([AC_MSG_ERROR]) | ||
8779 | -])# _LT_PROG_CXX | ||
8780 | - | ||
8781 | -dnl aclocal-1.4 backwards compatibility: | ||
8782 | -dnl AC_DEFUN([_LT_PROG_CXX], []) | ||
8783 | - | ||
8784 | - | ||
8785 | # _LT_LANG_CXX_CONFIG([TAG]) | ||
8786 | # -------------------------- | ||
8787 | # Ensure that the configuration variables for a C++ compiler are suitably | ||
8788 | # defined. These variables are subsequently used by _LT_CONFIG to write | ||
8789 | # the compiler configuration to `libtool'. | ||
8790 | m4_defun([_LT_LANG_CXX_CONFIG], | ||
8791 | -[AC_REQUIRE([_LT_PROG_CXX])dnl | ||
8792 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
8793 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
8794 | m4_require([_LT_DECL_EGREP])dnl | ||
8795 | +m4_require([_LT_PATH_MANIFEST_TOOL])dnl | ||
8796 | +if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
8797 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
8798 | + (test "X$CXX" != "Xg++"))) ; then | ||
8799 | + AC_PROG_CXXCPP | ||
8800 | +else | ||
8801 | + _lt_caught_CXX_error=yes | ||
8802 | +fi | ||
8803 | |||
8804 | AC_LANG_PUSH(C++) | ||
8805 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | ||
8806 | @@ -5369,6 +5778,8 @@ _LT_TAGVAR(module_cmds, $1)= | ||
8807 | _LT_TAGVAR(module_expsym_cmds, $1)= | ||
8808 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | ||
8809 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
8810 | +_LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
8811 | +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
8812 | _LT_TAGVAR(no_undefined_flag, $1)= | ||
8813 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | ||
8814 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
8815 | @@ -5400,6 +5811,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
8816 | |||
8817 | # Allow CC to be a program name with arguments. | ||
8818 | lt_save_CC=$CC | ||
8819 | + lt_save_CFLAGS=$CFLAGS | ||
8820 | lt_save_LD=$LD | ||
8821 | lt_save_GCC=$GCC | ||
8822 | GCC=$GXX | ||
8823 | @@ -5417,6 +5829,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
8824 | fi | ||
8825 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
8826 | CC=${CXX-"c++"} | ||
8827 | + CFLAGS=$CXXFLAGS | ||
8828 | compiler=$CC | ||
8829 | _LT_TAGVAR(compiler, $1)=$CC | ||
8830 | _LT_CC_BASENAME([$compiler]) | ||
8831 | @@ -5438,8 +5851,8 @@ if test "$_lt_caught_CXX_error" != yes; | ||
8832 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
8833 | # archiving commands below assume that GNU ld is being used. | ||
8834 | if test "$with_gnu_ld" = yes; then | ||
8835 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8836 | - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8837 | + _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8838 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8839 | |||
8840 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
8841 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
8842 | @@ -5471,7 +5884,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
8843 | # Commands to make compiler produce verbose output that lists | ||
8844 | # what "hidden" libraries, object files and flags are used when | ||
8845 | # linking a shared library. | ||
8846 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
8847 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | ||
8848 | |||
8849 | else | ||
8850 | GXX=no | ||
8851 | @@ -5580,10 +5993,10 @@ if test "$_lt_caught_CXX_error" != yes; | ||
8852 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
8853 | # Determine the default libpath from the value encoded in an empty | ||
8854 | # executable. | ||
8855 | - _LT_SYS_MODULE_PATH_AIX | ||
8856 | + _LT_SYS_MODULE_PATH_AIX([$1]) | ||
8857 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8858 | |||
8859 | - _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
8860 | + _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" | ||
8861 | else | ||
8862 | if test "$host_cpu" = ia64; then | ||
8863 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
8864 | @@ -5592,14 +6005,19 @@ if test "$_lt_caught_CXX_error" != yes; | ||
8865 | else | ||
8866 | # Determine the default libpath from the value encoded in an | ||
8867 | # empty executable. | ||
8868 | - _LT_SYS_MODULE_PATH_AIX | ||
8869 | + _LT_SYS_MODULE_PATH_AIX([$1]) | ||
8870 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8871 | # Warning - without using the other run time loading flags, | ||
8872 | # -berok will link without error, but may produce a broken library. | ||
8873 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
8874 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
8875 | - # Exported symbols can be pulled into shared objects from archives | ||
8876 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
8877 | + if test "$with_gnu_ld" = yes; then | ||
8878 | + # We only use this code for GNU lds that support --whole-archive. | ||
8879 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
8880 | + else | ||
8881 | + # Exported symbols can be pulled into shared objects from archives | ||
8882 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
8883 | + fi | ||
8884 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
8885 | # This is similar to how AIX traditionally builds its shared | ||
8886 | # libraries. | ||
8887 | @@ -5629,28 +6047,75 @@ if test "$_lt_caught_CXX_error" != yes; | ||
8888 | ;; | ||
8889 | |||
8890 | cygwin* | mingw* | pw32* | cegcc*) | ||
8891 | - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
8892 | - # as there is no search path for DLLs. | ||
8893 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
8894 | - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
8895 | - _LT_TAGVAR(always_export_symbols, $1)=no | ||
8896 | - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
8897 | - | ||
8898 | - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
8899 | - _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' | ||
8900 | - # If the export-symbols file already is a .def file (1st line | ||
8901 | - # is EXPORTS), use it as is; otherwise, prepend... | ||
8902 | - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8903 | - cp $export_symbols $output_objdir/$soname.def; | ||
8904 | - else | ||
8905 | - echo EXPORTS > $output_objdir/$soname.def; | ||
8906 | - cat $export_symbols >> $output_objdir/$soname.def; | ||
8907 | - fi~ | ||
8908 | - $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' | ||
8909 | - else | ||
8910 | - _LT_TAGVAR(ld_shlibs, $1)=no | ||
8911 | - fi | ||
8912 | - ;; | ||
8913 | + case $GXX,$cc_basename in | ||
8914 | + ,cl* | no,cl*) | ||
8915 | + # Native MSVC | ||
8916 | + # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
8917 | + # no search path for DLLs. | ||
8918 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
8919 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
8920 | + _LT_TAGVAR(always_export_symbols, $1)=yes | ||
8921 | + _LT_TAGVAR(file_list_spec, $1)='@' | ||
8922 | + # Tell ltmain to make .lib files, not .a files. | ||
8923 | + libext=lib | ||
8924 | + # Tell ltmain to make .dll files, not .so files. | ||
8925 | + shrext_cmds=".dll" | ||
8926 | + # FIXME: Setting linknames here is a bad hack. | ||
8927 | + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
8928 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8929 | + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
8930 | + else | ||
8931 | + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
8932 | + fi~ | ||
8933 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
8934 | + linknames=' | ||
8935 | + # The linker will not automatically build a static lib if we build a DLL. | ||
8936 | + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | ||
8937 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
8938 | + # Don't use ranlib | ||
8939 | + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | ||
8940 | + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | ||
8941 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
8942 | + case $lt_outputfile in | ||
8943 | + *.exe|*.EXE) ;; | ||
8944 | + *) | ||
8945 | + lt_outputfile="$lt_outputfile.exe" | ||
8946 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
8947 | + ;; | ||
8948 | + esac~ | ||
8949 | + func_to_tool_file "$lt_outputfile"~ | ||
8950 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
8951 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
8952 | + $RM "$lt_outputfile.manifest"; | ||
8953 | + fi' | ||
8954 | + ;; | ||
8955 | + *) | ||
8956 | + # g++ | ||
8957 | + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
8958 | + # as there is no search path for DLLs. | ||
8959 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
8960 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | ||
8961 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
8962 | + _LT_TAGVAR(always_export_symbols, $1)=no | ||
8963 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
8964 | + | ||
8965 | + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
8966 | + _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' | ||
8967 | + # If the export-symbols file already is a .def file (1st line | ||
8968 | + # is EXPORTS), use it as is; otherwise, prepend... | ||
8969 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8970 | + cp $export_symbols $output_objdir/$soname.def; | ||
8971 | + else | ||
8972 | + echo EXPORTS > $output_objdir/$soname.def; | ||
8973 | + cat $export_symbols >> $output_objdir/$soname.def; | ||
8974 | + fi~ | ||
8975 | + $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' | ||
8976 | + else | ||
8977 | + _LT_TAGVAR(ld_shlibs, $1)=no | ||
8978 | + fi | ||
8979 | + ;; | ||
8980 | + esac | ||
8981 | + ;; | ||
8982 | darwin* | rhapsody*) | ||
8983 | _LT_DARWIN_LINKER_FEATURES($1) | ||
8984 | ;; | ||
8985 | @@ -5692,6 +6157,11 @@ if test "$_lt_caught_CXX_error" != yes; | ||
8986 | gnu*) | ||
8987 | ;; | ||
8988 | |||
8989 | + haiku*) | ||
8990 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8991 | + _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
8992 | + ;; | ||
8993 | + | ||
8994 | hpux9*) | ||
8995 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
8996 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | ||
8997 | @@ -5716,11 +6186,11 @@ if test "$_lt_caught_CXX_error" != yes; | ||
8998 | # explicitly linking system object files so we need to strip them | ||
8999 | # from the output so that they don't get included in the library | ||
9000 | # dependencies. | ||
9001 | - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
9002 | + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | ||
9003 | ;; | ||
9004 | *) | ||
9005 | if test "$GXX" = yes; then | ||
9006 | - _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' | ||
9007 | + _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' | ||
9008 | else | ||
9009 | # FIXME: insert proper C++ library support | ||
9010 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
9011 | @@ -5781,7 +6251,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9012 | # explicitly linking system object files so we need to strip them | ||
9013 | # from the output so that they don't get included in the library | ||
9014 | # dependencies. | ||
9015 | - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
9016 | + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | ||
9017 | ;; | ||
9018 | *) | ||
9019 | if test "$GXX" = yes; then | ||
9020 | @@ -5791,10 +6261,10 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9021 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
9022 | ;; | ||
9023 | ia64*) | ||
9024 | - _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' | ||
9025 | + _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' | ||
9026 | ;; | ||
9027 | *) | ||
9028 | - _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' | ||
9029 | + _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' | ||
9030 | ;; | ||
9031 | esac | ||
9032 | fi | ||
9033 | @@ -5824,7 +6294,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9034 | case $cc_basename in | ||
9035 | CC*) | ||
9036 | # SGI C++ | ||
9037 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9038 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9039 | |||
9040 | # Archives containing C++ object files must be created using | ||
9041 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
9042 | @@ -5835,9 +6305,9 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9043 | *) | ||
9044 | if test "$GXX" = yes; then | ||
9045 | if test "$with_gnu_ld" = no; then | ||
9046 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9047 | + _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' | ||
9048 | else | ||
9049 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | ||
9050 | + _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' | ||
9051 | fi | ||
9052 | fi | ||
9053 | _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
9054 | @@ -5866,7 +6336,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9055 | # explicitly linking system object files so we need to strip them | ||
9056 | # from the output so that they don't get included in the library | ||
9057 | # dependencies. | ||
9058 | - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
9059 | + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | ||
9060 | |||
9061 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
9062 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
9063 | @@ -5903,26 +6373,26 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9064 | pgCC* | pgcpp*) | ||
9065 | # Portland Group C++ compiler | ||
9066 | case `$CC -V` in | ||
9067 | - *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) | ||
9068 | + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) | ||
9069 | _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | ||
9070 | rm -rf $tpldir~ | ||
9071 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | ||
9072 | - compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | ||
9073 | + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | ||
9074 | _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | ||
9075 | rm -rf $tpldir~ | ||
9076 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | ||
9077 | - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | ||
9078 | + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | ||
9079 | $RANLIB $oldlib' | ||
9080 | _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | ||
9081 | rm -rf $tpldir~ | ||
9082 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
9083 | - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
9084 | + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
9085 | _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | ||
9086 | rm -rf $tpldir~ | ||
9087 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
9088 | - $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' | ||
9089 | + $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' | ||
9090 | ;; | ||
9091 | - *) # Version 6 will use weak symbols | ||
9092 | + *) # Version 6 and above use weak symbols | ||
9093 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
9094 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
9095 | ;; | ||
9096 | @@ -5930,7 +6400,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9097 | |||
9098 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
9099 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
9100 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9101 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9102 | ;; | ||
9103 | cxx*) | ||
9104 | # Compaq C++ | ||
9105 | @@ -5949,9 +6419,9 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9106 | # explicitly linking system object files so we need to strip them | ||
9107 | # from the output so that they don't get included in the library | ||
9108 | # dependencies. | ||
9109 | - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
9110 | + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | ||
9111 | ;; | ||
9112 | - xl*) | ||
9113 | + xl* | mpixl* | bgxl*) | ||
9114 | # IBM XL 8.0 on PPC, with GNU ld | ||
9115 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
9116 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
9117 | @@ -5971,13 +6441,13 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9118 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
9119 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | ||
9120 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
9121 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9122 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9123 | _LT_TAGVAR(compiler_needs_object, $1)=yes | ||
9124 | |||
9125 | # Not sure whether something based on | ||
9126 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | ||
9127 | # would be better. | ||
9128 | - output_verbose_link_cmd='echo' | ||
9129 | + output_verbose_link_cmd='func_echo_all' | ||
9130 | |||
9131 | # Archives containing C++ object files must be created using | ||
9132 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
9133 | @@ -6046,7 +6516,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9134 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
9135 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
9136 | fi | ||
9137 | - output_verbose_link_cmd=echo | ||
9138 | + output_verbose_link_cmd=func_echo_all | ||
9139 | else | ||
9140 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
9141 | fi | ||
9142 | @@ -6081,15 +6551,15 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9143 | case $host in | ||
9144 | osf3*) | ||
9145 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
9146 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9147 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9148 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
9149 | ;; | ||
9150 | *) | ||
9151 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
9152 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9153 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9154 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
9155 | echo "-hidden">> $lib.exp~ | ||
9156 | - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | ||
9157 | + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ | ||
9158 | $RM $lib.exp' | ||
9159 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
9160 | ;; | ||
9161 | @@ -6105,17 +6575,17 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9162 | # explicitly linking system object files so we need to strip them | ||
9163 | # from the output so that they don't get included in the library | ||
9164 | # dependencies. | ||
9165 | - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
9166 | + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | ||
9167 | ;; | ||
9168 | *) | ||
9169 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
9170 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
9171 | case $host in | ||
9172 | osf3*) | ||
9173 | - _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9174 | + _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' | ||
9175 | ;; | ||
9176 | *) | ||
9177 | - _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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9178 | + _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' | ||
9179 | ;; | ||
9180 | esac | ||
9181 | |||
9182 | @@ -6125,7 +6595,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9183 | # Commands to make compiler produce verbose output that lists | ||
9184 | # what "hidden" libraries, object files and flags are used when | ||
9185 | # linking a shared library. | ||
9186 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
9187 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | ||
9188 | |||
9189 | else | ||
9190 | # FIXME: insert proper C++ library support | ||
9191 | @@ -6161,7 +6631,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9192 | |||
9193 | solaris*) | ||
9194 | case $cc_basename in | ||
9195 | - CC*) | ||
9196 | + CC* | sunCC*) | ||
9197 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
9198 | _LT_TAGVAR(archive_cmds_need_lc,$1)=yes | ||
9199 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | ||
9200 | @@ -6182,7 +6652,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9201 | esac | ||
9202 | _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
9203 | |||
9204 | - output_verbose_link_cmd='echo' | ||
9205 | + output_verbose_link_cmd='func_echo_all' | ||
9206 | |||
9207 | # Archives containing C++ object files must be created using | ||
9208 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
9209 | @@ -6202,14 +6672,14 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9210 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
9211 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | ||
9212 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | ||
9213 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
9214 | + _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' | ||
9215 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9216 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
9217 | + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
9218 | |||
9219 | # Commands to make compiler produce verbose output that lists | ||
9220 | # what "hidden" libraries, object files and flags are used when | ||
9221 | # linking a shared library. | ||
9222 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
9223 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | ||
9224 | else | ||
9225 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
9226 | # platform. | ||
9227 | @@ -6220,7 +6690,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9228 | # Commands to make compiler produce verbose output that lists | ||
9229 | # what "hidden" libraries, object files and flags are used when | ||
9230 | # linking a shared library. | ||
9231 | - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
9232 | + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | ||
9233 | fi | ||
9234 | |||
9235 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | ||
9236 | @@ -6274,6 +6744,10 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9237 | CC*) | ||
9238 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9239 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9240 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ | ||
9241 | + '"$_LT_TAGVAR(old_archive_cmds, $1)" | ||
9242 | + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ | ||
9243 | + '"$_LT_TAGVAR(reload_cmds, $1)" | ||
9244 | ;; | ||
9245 | *) | ||
9246 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9247 | @@ -6329,6 +6803,7 @@ if test "$_lt_caught_CXX_error" != yes; | ||
9248 | fi # test -n "$compiler" | ||
9249 | |||
9250 | CC=$lt_save_CC | ||
9251 | + CFLAGS=$lt_save_CFLAGS | ||
9252 | LDCXX=$LD | ||
9253 | LD=$lt_save_LD | ||
9254 | GCC=$lt_save_GCC | ||
9255 | @@ -6343,6 +6818,29 @@ AC_LANG_POP | ||
9256 | ])# _LT_LANG_CXX_CONFIG | ||
9257 | |||
9258 | |||
9259 | +# _LT_FUNC_STRIPNAME_CNF | ||
9260 | +# ---------------------- | ||
9261 | +# func_stripname_cnf prefix suffix name | ||
9262 | +# strip PREFIX and SUFFIX off of NAME. | ||
9263 | +# PREFIX and SUFFIX must not contain globbing or regex special | ||
9264 | +# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
9265 | +# dot (in which case that matches only a dot). | ||
9266 | +# | ||
9267 | +# This function is identical to the (non-XSI) version of func_stripname, | ||
9268 | +# except this one can be used by m4 code that may be executed by configure, | ||
9269 | +# rather than the libtool script. | ||
9270 | +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl | ||
9271 | +AC_REQUIRE([_LT_DECL_SED]) | ||
9272 | +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) | ||
9273 | +func_stripname_cnf () | ||
9274 | +{ | ||
9275 | + case ${2} in | ||
9276 | + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
9277 | + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
9278 | + esac | ||
9279 | +} # func_stripname_cnf | ||
9280 | +])# _LT_FUNC_STRIPNAME_CNF | ||
9281 | + | ||
9282 | # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | ||
9283 | # --------------------------------- | ||
9284 | # Figure out "hidden" library dependencies from verbose | ||
9285 | @@ -6351,6 +6849,7 @@ AC_LANG_POP | ||
9286 | # objects, libraries and library flags. | ||
9287 | m4_defun([_LT_SYS_HIDDEN_LIBDEPS], | ||
9288 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
9289 | +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl | ||
9290 | # Dependencies to place before and after the object being linked: | ||
9291 | _LT_TAGVAR(predep_objects, $1)= | ||
9292 | _LT_TAGVAR(postdep_objects, $1)= | ||
9293 | @@ -6401,6 +6900,13 @@ public class foo { | ||
9294 | }; | ||
9295 | _LT_EOF | ||
9296 | ]) | ||
9297 | + | ||
9298 | +_lt_libdeps_save_CFLAGS=$CFLAGS | ||
9299 | +case "$CC $CFLAGS " in #( | ||
9300 | +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | ||
9301 | +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | ||
9302 | +esac | ||
9303 | + | ||
9304 | dnl Parse the compiler output and extract the necessary | ||
9305 | dnl objects, libraries and library flags. | ||
9306 | if AC_TRY_EVAL(ac_compile); then | ||
9307 | @@ -6412,7 +6918,7 @@ if AC_TRY_EVAL(ac_compile); then | ||
9308 | pre_test_object_deps_done=no | ||
9309 | |||
9310 | for p in `eval "$output_verbose_link_cmd"`; do | ||
9311 | - case $p in | ||
9312 | + case ${prev}${p} in | ||
9313 | |||
9314 | -L* | -R* | -l*) | ||
9315 | # Some compilers place space between "-{L,R}" and the path. | ||
9316 | @@ -6421,13 +6927,22 @@ if AC_TRY_EVAL(ac_compile); then | ||
9317 | test $p = "-R"; then | ||
9318 | prev=$p | ||
9319 | continue | ||
9320 | - else | ||
9321 | - prev= | ||
9322 | fi | ||
9323 | |||
9324 | + # Expand the sysroot to ease extracting the directories later. | ||
9325 | + if test -z "$prev"; then | ||
9326 | + case $p in | ||
9327 | + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | ||
9328 | + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | ||
9329 | + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | ||
9330 | + esac | ||
9331 | + fi | ||
9332 | + case $p in | ||
9333 | + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | ||
9334 | + esac | ||
9335 | if test "$pre_test_object_deps_done" = no; then | ||
9336 | - case $p in | ||
9337 | - -L* | -R*) | ||
9338 | + case ${prev} in | ||
9339 | + -L | -R) | ||
9340 | # Internal compiler library paths should come after those | ||
9341 | # provided the user. The postdeps already come after the | ||
9342 | # user supplied libs so there is no need to process them. | ||
9343 | @@ -6447,8 +6962,10 @@ if AC_TRY_EVAL(ac_compile); then | ||
9344 | _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" | ||
9345 | fi | ||
9346 | fi | ||
9347 | + prev= | ||
9348 | ;; | ||
9349 | |||
9350 | + *.lto.$objext) ;; # Ignore GCC LTO objects | ||
9351 | *.$objext) | ||
9352 | # This assumes that the test object file only shows up | ||
9353 | # once in the compiler output. | ||
9354 | @@ -6484,6 +7001,7 @@ else | ||
9355 | fi | ||
9356 | |||
9357 | $RM -f confest.$objext | ||
9358 | +CFLAGS=$_lt_libdeps_save_CFLAGS | ||
9359 | |||
9360 | # PORTME: override above test on systems where it is broken | ||
9361 | m4_if([$1], [CXX], | ||
9362 | @@ -6520,7 +7038,7 @@ linux*) | ||
9363 | |||
9364 | solaris*) | ||
9365 | case $cc_basename in | ||
9366 | - CC*) | ||
9367 | + CC* | sunCC*) | ||
9368 | # The more standards-conforming stlport4 library is | ||
9369 | # incompatible with the Cstd library. Avoid specifying | ||
9370 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
9371 | @@ -6564,32 +7082,16 @@ _LT_TAGDECL([], [compiler_lib_search_pat | ||
9372 | ])# _LT_SYS_HIDDEN_LIBDEPS | ||
9373 | |||
9374 | |||
9375 | -# _LT_PROG_F77 | ||
9376 | -# ------------ | ||
9377 | -# Since AC_PROG_F77 is broken, in that it returns the empty string | ||
9378 | -# if there is no fortran compiler, we have our own version here. | ||
9379 | -m4_defun([_LT_PROG_F77], | ||
9380 | -[ | ||
9381 | -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) | ||
9382 | -AC_PROG_F77 | ||
9383 | -if test -z "$F77" || test "X$F77" = "Xno"; then | ||
9384 | - _lt_disable_F77=yes | ||
9385 | -fi | ||
9386 | -popdef([AC_MSG_ERROR]) | ||
9387 | -])# _LT_PROG_F77 | ||
9388 | - | ||
9389 | -dnl aclocal-1.4 backwards compatibility: | ||
9390 | -dnl AC_DEFUN([_LT_PROG_F77], []) | ||
9391 | - | ||
9392 | - | ||
9393 | # _LT_LANG_F77_CONFIG([TAG]) | ||
9394 | # -------------------------- | ||
9395 | # Ensure that the configuration variables for a Fortran 77 compiler are | ||
9396 | # suitably defined. These variables are subsequently used by _LT_CONFIG | ||
9397 | # to write the compiler configuration to `libtool'. | ||
9398 | m4_defun([_LT_LANG_F77_CONFIG], | ||
9399 | -[AC_REQUIRE([_LT_PROG_F77])dnl | ||
9400 | -AC_LANG_PUSH(Fortran 77) | ||
9401 | +[AC_LANG_PUSH(Fortran 77) | ||
9402 | +if test -z "$F77" || test "X$F77" = "Xno"; then | ||
9403 | + _lt_disable_F77=yes | ||
9404 | +fi | ||
9405 | |||
9406 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | ||
9407 | _LT_TAGVAR(allow_undefined_flag, $1)= | ||
9408 | @@ -6608,6 +7110,8 @@ _LT_TAGVAR(module_cmds, $1)= | ||
9409 | _LT_TAGVAR(module_expsym_cmds, $1)= | ||
9410 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | ||
9411 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
9412 | +_LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
9413 | +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
9414 | _LT_TAGVAR(no_undefined_flag, $1)= | ||
9415 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | ||
9416 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
9417 | @@ -6647,7 +7151,9 @@ if test "$_lt_disable_F77" != yes; then | ||
9418 | # Allow CC to be a program name with arguments. | ||
9419 | lt_save_CC="$CC" | ||
9420 | lt_save_GCC=$GCC | ||
9421 | + lt_save_CFLAGS=$CFLAGS | ||
9422 | CC=${F77-"f77"} | ||
9423 | + CFLAGS=$FFLAGS | ||
9424 | compiler=$CC | ||
9425 | _LT_TAGVAR(compiler, $1)=$CC | ||
9426 | _LT_CC_BASENAME([$compiler]) | ||
9427 | @@ -6701,38 +7207,24 @@ if test "$_lt_disable_F77" != yes; then | ||
9428 | |||
9429 | GCC=$lt_save_GCC | ||
9430 | CC="$lt_save_CC" | ||
9431 | + CFLAGS="$lt_save_CFLAGS" | ||
9432 | fi # test "$_lt_disable_F77" != yes | ||
9433 | |||
9434 | AC_LANG_POP | ||
9435 | ])# _LT_LANG_F77_CONFIG | ||
9436 | |||
9437 | |||
9438 | -# _LT_PROG_FC | ||
9439 | -# ----------- | ||
9440 | -# Since AC_PROG_FC is broken, in that it returns the empty string | ||
9441 | -# if there is no fortran compiler, we have our own version here. | ||
9442 | -m4_defun([_LT_PROG_FC], | ||
9443 | -[ | ||
9444 | -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) | ||
9445 | -AC_PROG_FC | ||
9446 | -if test -z "$FC" || test "X$FC" = "Xno"; then | ||
9447 | - _lt_disable_FC=yes | ||
9448 | -fi | ||
9449 | -popdef([AC_MSG_ERROR]) | ||
9450 | -])# _LT_PROG_FC | ||
9451 | - | ||
9452 | -dnl aclocal-1.4 backwards compatibility: | ||
9453 | -dnl AC_DEFUN([_LT_PROG_FC], []) | ||
9454 | - | ||
9455 | - | ||
9456 | # _LT_LANG_FC_CONFIG([TAG]) | ||
9457 | # ------------------------- | ||
9458 | # Ensure that the configuration variables for a Fortran compiler are | ||
9459 | # suitably defined. These variables are subsequently used by _LT_CONFIG | ||
9460 | # to write the compiler configuration to `libtool'. | ||
9461 | m4_defun([_LT_LANG_FC_CONFIG], | ||
9462 | -[AC_REQUIRE([_LT_PROG_FC])dnl | ||
9463 | -AC_LANG_PUSH(Fortran) | ||
9464 | +[AC_LANG_PUSH(Fortran) | ||
9465 | + | ||
9466 | +if test -z "$FC" || test "X$FC" = "Xno"; then | ||
9467 | + _lt_disable_FC=yes | ||
9468 | +fi | ||
9469 | |||
9470 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | ||
9471 | _LT_TAGVAR(allow_undefined_flag, $1)= | ||
9472 | @@ -6751,6 +7243,8 @@ _LT_TAGVAR(module_cmds, $1)= | ||
9473 | _LT_TAGVAR(module_expsym_cmds, $1)= | ||
9474 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | ||
9475 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
9476 | +_LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
9477 | +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
9478 | _LT_TAGVAR(no_undefined_flag, $1)= | ||
9479 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | ||
9480 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
9481 | @@ -6790,7 +7284,9 @@ if test "$_lt_disable_FC" != yes; then | ||
9482 | # Allow CC to be a program name with arguments. | ||
9483 | lt_save_CC="$CC" | ||
9484 | lt_save_GCC=$GCC | ||
9485 | + lt_save_CFLAGS=$CFLAGS | ||
9486 | CC=${FC-"f95"} | ||
9487 | + CFLAGS=$FCFLAGS | ||
9488 | compiler=$CC | ||
9489 | GCC=$ac_cv_fc_compiler_gnu | ||
9490 | |||
9491 | @@ -6846,7 +7342,8 @@ if test "$_lt_disable_FC" != yes; then | ||
9492 | fi # test -n "$compiler" | ||
9493 | |||
9494 | GCC=$lt_save_GCC | ||
9495 | - CC="$lt_save_CC" | ||
9496 | + CC=$lt_save_CC | ||
9497 | + CFLAGS=$lt_save_CFLAGS | ||
9498 | fi # test "$_lt_disable_FC" != yes | ||
9499 | |||
9500 | AC_LANG_POP | ||
9501 | @@ -6883,10 +7380,12 @@ _LT_COMPILER_BOILERPLATE | ||
9502 | _LT_LINKER_BOILERPLATE | ||
9503 | |||
9504 | # Allow CC to be a program name with arguments. | ||
9505 | -lt_save_CC="$CC" | ||
9506 | +lt_save_CC=$CC | ||
9507 | +lt_save_CFLAGS=$CFLAGS | ||
9508 | lt_save_GCC=$GCC | ||
9509 | GCC=yes | ||
9510 | CC=${GCJ-"gcj"} | ||
9511 | +CFLAGS=$GCJFLAGS | ||
9512 | compiler=$CC | ||
9513 | _LT_TAGVAR(compiler, $1)=$CC | ||
9514 | _LT_TAGVAR(LD, $1)="$LD" | ||
9515 | @@ -6896,6 +7395,8 @@ _LT_CC_BASENAME([$compiler]) | ||
9516 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | ||
9517 | |||
9518 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
9519 | +_LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
9520 | +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
9521 | |||
9522 | ## CAVEAT EMPTOR: | ||
9523 | ## There is no encapsulation within the following macros, do not change | ||
9524 | @@ -6915,7 +7416,8 @@ fi | ||
9525 | AC_LANG_RESTORE | ||
9526 | |||
9527 | GCC=$lt_save_GCC | ||
9528 | -CC="$lt_save_CC" | ||
9529 | +CC=$lt_save_CC | ||
9530 | +CFLAGS=$lt_save_CFLAGS | ||
9531 | ])# _LT_LANG_GCJ_CONFIG | ||
9532 | |||
9533 | |||
9534 | @@ -6950,9 +7452,11 @@ _LT_LINKER_BOILERPLATE | ||
9535 | |||
9536 | # Allow CC to be a program name with arguments. | ||
9537 | lt_save_CC="$CC" | ||
9538 | +lt_save_CFLAGS=$CFLAGS | ||
9539 | lt_save_GCC=$GCC | ||
9540 | GCC= | ||
9541 | CC=${RC-"windres"} | ||
9542 | +CFLAGS= | ||
9543 | compiler=$CC | ||
9544 | _LT_TAGVAR(compiler, $1)=$CC | ||
9545 | _LT_CC_BASENAME([$compiler]) | ||
9546 | @@ -6965,7 +7469,8 @@ fi | ||
9547 | |||
9548 | GCC=$lt_save_GCC | ||
9549 | AC_LANG_RESTORE | ||
9550 | -CC="$lt_save_CC" | ||
9551 | +CC=$lt_save_CC | ||
9552 | +CFLAGS=$lt_save_CFLAGS | ||
9553 | ])# _LT_LANG_RC_CONFIG | ||
9554 | |||
9555 | |||
9556 | @@ -7024,6 +7529,15 @@ _LT_DECL([], [OBJDUMP], [1], [An object | ||
9557 | AC_SUBST([OBJDUMP]) | ||
9558 | ]) | ||
9559 | |||
9560 | +# _LT_DECL_DLLTOOL | ||
9561 | +# ---------------- | ||
9562 | +# Ensure DLLTOOL variable is set. | ||
9563 | +m4_defun([_LT_DECL_DLLTOOL], | ||
9564 | +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) | ||
9565 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
9566 | +_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) | ||
9567 | +AC_SUBST([DLLTOOL]) | ||
9568 | +]) | ||
9569 | |||
9570 | # _LT_DECL_SED | ||
9571 | # ------------ | ||
9572 | @@ -7117,8 +7631,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES], | ||
9573 | # Try some XSI features | ||
9574 | xsi_shell=no | ||
9575 | ( _lt_dummy="a/b/c" | ||
9576 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
9577 | - = c,a/b,, \ | ||
9578 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
9579 | + = c,a/b,b/c, \ | ||
9580 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
9581 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
9582 | && xsi_shell=yes | ||
9583 | @@ -7157,208 +7671,162 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn | ||
9584 | ])# _LT_CHECK_SHELL_FEATURES | ||
9585 | |||
9586 | |||
9587 | -# _LT_PROG_XSI_SHELLFNS | ||
9588 | -# --------------------- | ||
9589 | -# Bourne and XSI compatible variants of some useful shell functions. | ||
9590 | -m4_defun([_LT_PROG_XSI_SHELLFNS], | ||
9591 | -[case $xsi_shell in | ||
9592 | - yes) | ||
9593 | - cat << \_LT_EOF >> "$cfgfile" | ||
9594 | - | ||
9595 | -# func_dirname file append nondir_replacement | ||
9596 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
9597 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
9598 | -func_dirname () | ||
9599 | -{ | ||
9600 | - case ${1} in | ||
9601 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
9602 | - * ) func_dirname_result="${3}" ;; | ||
9603 | - esac | ||
9604 | -} | ||
9605 | - | ||
9606 | -# func_basename file | ||
9607 | -func_basename () | ||
9608 | -{ | ||
9609 | - func_basename_result="${1##*/}" | ||
9610 | -} | ||
9611 | - | ||
9612 | -# func_dirname_and_basename file append nondir_replacement | ||
9613 | -# perform func_basename and func_dirname in a single function | ||
9614 | -# call: | ||
9615 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
9616 | -# add APPEND to the result, otherwise set result | ||
9617 | -# to NONDIR_REPLACEMENT. | ||
9618 | -# value returned in "$func_dirname_result" | ||
9619 | -# basename: Compute filename of FILE. | ||
9620 | -# value retuned in "$func_basename_result" | ||
9621 | -# Implementation must be kept synchronized with func_dirname | ||
9622 | -# and func_basename. For efficiency, we do not delegate to | ||
9623 | -# those functions but instead duplicate the functionality here. | ||
9624 | -func_dirname_and_basename () | ||
9625 | -{ | ||
9626 | - case ${1} in | ||
9627 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
9628 | - * ) func_dirname_result="${3}" ;; | ||
9629 | - esac | ||
9630 | - func_basename_result="${1##*/}" | ||
9631 | -} | ||
9632 | - | ||
9633 | -# func_stripname prefix suffix name | ||
9634 | -# strip PREFIX and SUFFIX off of NAME. | ||
9635 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
9636 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
9637 | -# dot (in which case that matches only a dot). | ||
9638 | -func_stripname () | ||
9639 | -{ | ||
9640 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
9641 | - # positional parameters, so assign one to ordinary parameter first. | ||
9642 | - func_stripname_result=${3} | ||
9643 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
9644 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
9645 | -} | ||
9646 | - | ||
9647 | -# func_opt_split | ||
9648 | -func_opt_split () | ||
9649 | -{ | ||
9650 | - func_opt_split_opt=${1%%=*} | ||
9651 | - func_opt_split_arg=${1#*=} | ||
9652 | -} | ||
9653 | - | ||
9654 | -# func_lo2o object | ||
9655 | -func_lo2o () | ||
9656 | -{ | ||
9657 | - case ${1} in | ||
9658 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
9659 | - *) func_lo2o_result=${1} ;; | ||
9660 | - esac | ||
9661 | -} | ||
9662 | - | ||
9663 | -# func_xform libobj-or-source | ||
9664 | -func_xform () | ||
9665 | -{ | ||
9666 | - func_xform_result=${1%.*}.lo | ||
9667 | -} | ||
9668 | +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) | ||
9669 | +# ------------------------------------------------------ | ||
9670 | +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and | ||
9671 | +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. | ||
9672 | +m4_defun([_LT_PROG_FUNCTION_REPLACE], | ||
9673 | +[dnl { | ||
9674 | +sed -e '/^$1 ()$/,/^} # $1 /c\ | ||
9675 | +$1 ()\ | ||
9676 | +{\ | ||
9677 | +m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) | ||
9678 | +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ | ||
9679 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
9680 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
9681 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
9682 | +]) | ||
9683 | |||
9684 | -# func_arith arithmetic-term... | ||
9685 | -func_arith () | ||
9686 | -{ | ||
9687 | - func_arith_result=$(( $[*] )) | ||
9688 | -} | ||
9689 | |||
9690 | -# func_len string | ||
9691 | -# STRING may not start with a hyphen. | ||
9692 | -func_len () | ||
9693 | -{ | ||
9694 | - func_len_result=${#1} | ||
9695 | -} | ||
9696 | +# _LT_PROG_REPLACE_SHELLFNS | ||
9697 | +# ------------------------- | ||
9698 | +# Replace existing portable implementations of several shell functions with | ||
9699 | +# equivalent extended shell implementations where those features are available.. | ||
9700 | +m4_defun([_LT_PROG_REPLACE_SHELLFNS], | ||
9701 | +[if test x"$xsi_shell" = xyes; then | ||
9702 | + _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl | ||
9703 | + case ${1} in | ||
9704 | + */*) func_dirname_result="${1%/*}${2}" ;; | ||
9705 | + * ) func_dirname_result="${3}" ;; | ||
9706 | + esac]) | ||
9707 | + | ||
9708 | + _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl | ||
9709 | + func_basename_result="${1##*/}"]) | ||
9710 | + | ||
9711 | + _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl | ||
9712 | + case ${1} in | ||
9713 | + */*) func_dirname_result="${1%/*}${2}" ;; | ||
9714 | + * ) func_dirname_result="${3}" ;; | ||
9715 | + esac | ||
9716 | + func_basename_result="${1##*/}"]) | ||
9717 | |||
9718 | -_LT_EOF | ||
9719 | - ;; | ||
9720 | - *) # Bourne compatible functions. | ||
9721 | - cat << \_LT_EOF >> "$cfgfile" | ||
9722 | + _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl | ||
9723 | + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
9724 | + # positional parameters, so assign one to ordinary parameter first. | ||
9725 | + func_stripname_result=${3} | ||
9726 | + func_stripname_result=${func_stripname_result#"${1}"} | ||
9727 | + func_stripname_result=${func_stripname_result%"${2}"}]) | ||
9728 | |||
9729 | -# func_dirname file append nondir_replacement | ||
9730 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
9731 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
9732 | -func_dirname () | ||
9733 | -{ | ||
9734 | - # Extract subdirectory from the argument. | ||
9735 | - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
9736 | - if test "X$func_dirname_result" = "X${1}"; then | ||
9737 | - func_dirname_result="${3}" | ||
9738 | - else | ||
9739 | - func_dirname_result="$func_dirname_result${2}" | ||
9740 | - fi | ||
9741 | -} | ||
9742 | + _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl | ||
9743 | + func_split_long_opt_name=${1%%=*} | ||
9744 | + func_split_long_opt_arg=${1#*=}]) | ||
9745 | |||
9746 | -# func_basename file | ||
9747 | -func_basename () | ||
9748 | -{ | ||
9749 | - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
9750 | -} | ||
9751 | + _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl | ||
9752 | + func_split_short_opt_arg=${1#??} | ||
9753 | + func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) | ||
9754 | |||
9755 | -dnl func_dirname_and_basename | ||
9756 | -dnl A portable version of this function is already defined in general.m4sh | ||
9757 | -dnl so there is no need for it here. | ||
9758 | + _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl | ||
9759 | + case ${1} in | ||
9760 | + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
9761 | + *) func_lo2o_result=${1} ;; | ||
9762 | + esac]) | ||
9763 | |||
9764 | -# func_stripname prefix suffix name | ||
9765 | -# strip PREFIX and SUFFIX off of NAME. | ||
9766 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
9767 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
9768 | -# dot (in which case that matches only a dot). | ||
9769 | -# func_strip_suffix prefix name | ||
9770 | -func_stripname () | ||
9771 | -{ | ||
9772 | - case ${2} in | ||
9773 | - .*) func_stripname_result=`$ECHO "X${3}" \ | ||
9774 | - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
9775 | - *) func_stripname_result=`$ECHO "X${3}" \ | ||
9776 | - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
9777 | - esac | ||
9778 | -} | ||
9779 | + _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) | ||
9780 | |||
9781 | -# sed scripts: | ||
9782 | -my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' | ||
9783 | -my_sed_long_arg='1s/^-[[^=]]*=//' | ||
9784 | - | ||
9785 | -# func_opt_split | ||
9786 | -func_opt_split () | ||
9787 | -{ | ||
9788 | - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
9789 | - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
9790 | -} | ||
9791 | + _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) | ||
9792 | |||
9793 | -# func_lo2o object | ||
9794 | -func_lo2o () | ||
9795 | -{ | ||
9796 | - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
9797 | -} | ||
9798 | + _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) | ||
9799 | +fi | ||
9800 | |||
9801 | -# func_xform libobj-or-source | ||
9802 | -func_xform () | ||
9803 | -{ | ||
9804 | - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` | ||
9805 | -} | ||
9806 | +if test x"$lt_shell_append" = xyes; then | ||
9807 | + _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) | ||
9808 | |||
9809 | -# func_arith arithmetic-term... | ||
9810 | -func_arith () | ||
9811 | -{ | ||
9812 | - func_arith_result=`expr "$[@]"` | ||
9813 | -} | ||
9814 | + _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl | ||
9815 | + func_quote_for_eval "${2}" | ||
9816 | +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ | ||
9817 | + eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) | ||
9818 | |||
9819 | -# func_len string | ||
9820 | -# STRING may not start with a hyphen. | ||
9821 | -func_len () | ||
9822 | -{ | ||
9823 | - func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
9824 | -} | ||
9825 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
9826 | + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
9827 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
9828 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
9829 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
9830 | +else | ||
9831 | + # Save a `func_append' function call even when '+=' is not available | ||
9832 | + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
9833 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
9834 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
9835 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
9836 | +fi | ||
9837 | |||
9838 | -_LT_EOF | ||
9839 | -esac | ||
9840 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
9841 | + AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) | ||
9842 | +fi | ||
9843 | +]) | ||
9844 | |||
9845 | -case $lt_shell_append in | ||
9846 | - yes) | ||
9847 | - cat << \_LT_EOF >> "$cfgfile" | ||
9848 | - | ||
9849 | -# func_append var value | ||
9850 | -# Append VALUE to the end of shell variable VAR. | ||
9851 | -func_append () | ||
9852 | -{ | ||
9853 | - eval "$[1]+=\$[2]" | ||
9854 | -} | ||
9855 | -_LT_EOF | ||
9856 | +# _LT_PATH_CONVERSION_FUNCTIONS | ||
9857 | +# ----------------------------- | ||
9858 | +# Determine which file name conversion functions should be used by | ||
9859 | +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed | ||
9860 | +# for certain cross-compile configurations and native mingw. | ||
9861 | +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], | ||
9862 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
9863 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
9864 | +AC_MSG_CHECKING([how to convert $build file names to $host format]) | ||
9865 | +AC_CACHE_VAL(lt_cv_to_host_file_cmd, | ||
9866 | +[case $host in | ||
9867 | + *-*-mingw* ) | ||
9868 | + case $build in | ||
9869 | + *-*-mingw* ) # actually msys | ||
9870 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
9871 | + ;; | ||
9872 | + *-*-cygwin* ) | ||
9873 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
9874 | + ;; | ||
9875 | + * ) # otherwise, assume *nix | ||
9876 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
9877 | + ;; | ||
9878 | + esac | ||
9879 | ;; | ||
9880 | - *) | ||
9881 | - cat << \_LT_EOF >> "$cfgfile" | ||
9882 | - | ||
9883 | -# func_append var value | ||
9884 | -# Append VALUE to the end of shell variable VAR. | ||
9885 | -func_append () | ||
9886 | -{ | ||
9887 | - eval "$[1]=\$$[1]\$[2]" | ||
9888 | -} | ||
9889 | - | ||
9890 | -_LT_EOF | ||
9891 | + *-*-cygwin* ) | ||
9892 | + case $build in | ||
9893 | + *-*-mingw* ) # actually msys | ||
9894 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
9895 | + ;; | ||
9896 | + *-*-cygwin* ) | ||
9897 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
9898 | + ;; | ||
9899 | + * ) # otherwise, assume *nix | ||
9900 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
9901 | + ;; | ||
9902 | + esac | ||
9903 | ;; | ||
9904 | - esac | ||
9905 | + * ) # unhandled hosts (and "normal" native builds) | ||
9906 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
9907 | + ;; | ||
9908 | +esac | ||
9909 | +]) | ||
9910 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
9911 | +AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) | ||
9912 | +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], | ||
9913 | + [0], [convert $build file names to $host format])dnl | ||
9914 | + | ||
9915 | +AC_MSG_CHECKING([how to convert $build file names to toolchain format]) | ||
9916 | +AC_CACHE_VAL(lt_cv_to_tool_file_cmd, | ||
9917 | +[#assume ordinary cross tools, or native build. | ||
9918 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
9919 | +case $host in | ||
9920 | + *-*-mingw* ) | ||
9921 | + case $build in | ||
9922 | + *-*-mingw* ) # actually msys | ||
9923 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
9924 | + ;; | ||
9925 | + esac | ||
9926 | + ;; | ||
9927 | +esac | ||
9928 | ]) | ||
9929 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
9930 | +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) | ||
9931 | +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], | ||
9932 | + [0], [convert $build files to toolchain format])dnl | ||
9933 | +])# _LT_PATH_CONVERSION_FUNCTIONS | ||
9934 | Index: binutils-2.20.1/bfd/Makefile.in | ||
9935 | =================================================================== | ||
9936 | --- binutils-2.20.1.orig/bfd/Makefile.in | ||
9937 | +++ binutils-2.20.1/bfd/Makefile.in | ||
9938 | @@ -172,6 +172,7 @@ DATADIRNAME = @DATADIRNAME@ | ||
9939 | DEBUGDIR = @DEBUGDIR@ | ||
9940 | DEFS = @DEFS@ | ||
9941 | DEPDIR = @DEPDIR@ | ||
9942 | +DLLTOOL = @DLLTOOL@ | ||
9943 | DSYMUTIL = @DSYMUTIL@ | ||
9944 | DUMPBIN = @DUMPBIN@ | ||
9945 | ECHO_C = @ECHO_C@ | ||
9946 | @@ -205,6 +206,7 @@ LN_S = @LN_S@ | ||
9947 | LTLIBOBJS = @LTLIBOBJS@ | ||
9948 | MAINT = @MAINT@ | ||
9949 | MAKEINFO = @MAKEINFO@ | ||
9950 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
9951 | MKDIR_P = @MKDIR_P@ | ||
9952 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
9953 | MSGFMT = @MSGFMT@ | ||
9954 | @@ -244,6 +246,7 @@ abs_builddir = @abs_builddir@ | ||
9955 | abs_srcdir = @abs_srcdir@ | ||
9956 | abs_top_builddir = @abs_top_builddir@ | ||
9957 | abs_top_srcdir = @abs_top_srcdir@ | ||
9958 | +ac_ct_AR = @ac_ct_AR@ | ||
9959 | ac_ct_CC = @ac_ct_CC@ | ||
9960 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
9961 | all_backends = @all_backends@ | ||
9962 | @@ -289,7 +292,6 @@ libdir = @libdir@ | ||
9963 | libexecdir = @libexecdir@ | ||
9964 | localedir = @localedir@ | ||
9965 | localstatedir = @localstatedir@ | ||
9966 | -lt_ECHO = @lt_ECHO@ | ||
9967 | mandir = @mandir@ | ||
9968 | mkdir_p = @mkdir_p@ | ||
9969 | oldincludedir = @oldincludedir@ | ||
9970 | Index: binutils-2.20.1/bfd/configure | ||
9971 | =================================================================== | ||
9972 | --- binutils-2.20.1.orig/bfd/configure | ||
9973 | +++ binutils-2.20.1/bfd/configure | ||
9974 | @@ -169,7 +169,15 @@ test x\$exitcode = x0 || exit 1" | ||
9975 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
9976 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
9977 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
9978 | -test \$(( 1 + 1 )) = 2 || exit 1" | ||
9979 | +test \$(( 1 + 1 )) = 2 || exit 1 | ||
9980 | + | ||
9981 | + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | ||
9982 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
9983 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
9984 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
9985 | + PATH=/empty FPATH=/empty; export PATH FPATH | ||
9986 | + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | ||
9987 | + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | ||
9988 | if (eval "$as_required") 2>/dev/null; then : | ||
9989 | as_have_required=yes | ||
9990 | else | ||
9991 | @@ -523,155 +531,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P | ||
9992 | # Sed expression to map a string onto a valid variable name. | ||
9993 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
9994 | |||
9995 | - | ||
9996 | - | ||
9997 | -# Check that we are running under the correct shell. | ||
9998 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
9999 | |||
10000 | -case X$lt_ECHO in | ||
10001 | -X*--fallback-echo) | ||
10002 | - # Remove one level of quotation (which was required for Make). | ||
10003 | - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
10004 | - ;; | ||
10005 | -esac | ||
10006 | - | ||
10007 | -ECHO=${lt_ECHO-echo} | ||
10008 | -if test "X$1" = X--no-reexec; then | ||
10009 | - # Discard the --no-reexec flag, and continue. | ||
10010 | - shift | ||
10011 | -elif test "X$1" = X--fallback-echo; then | ||
10012 | - # Avoid inline document here, it may be left over | ||
10013 | - : | ||
10014 | -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
10015 | - # Yippee, $ECHO works! | ||
10016 | - : | ||
10017 | -else | ||
10018 | - # Restart under the correct shell. | ||
10019 | - exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
10020 | -fi | ||
10021 | - | ||
10022 | -if test "X$1" = X--fallback-echo; then | ||
10023 | - # used as fallback echo | ||
10024 | - shift | ||
10025 | - cat <<_LT_EOF | ||
10026 | -$* | ||
10027 | -_LT_EOF | ||
10028 | - exit 0 | ||
10029 | -fi | ||
10030 | - | ||
10031 | -# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
10032 | -# if CDPATH is set. | ||
10033 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
10034 | - | ||
10035 | -if test -z "$lt_ECHO"; then | ||
10036 | - if test "X${echo_test_string+set}" != Xset; then | ||
10037 | - # find a string as large as possible, as long as the shell can cope with it | ||
10038 | - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
10039 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
10040 | - if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
10041 | - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
10042 | - then | ||
10043 | - break | ||
10044 | - fi | ||
10045 | - done | ||
10046 | - fi | ||
10047 | - | ||
10048 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
10049 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
10050 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
10051 | - : | ||
10052 | - else | ||
10053 | - # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
10054 | - # backslashes. This makes it impossible to quote backslashes using | ||
10055 | - # echo "$something" | sed 's/\\/\\\\/g' | ||
10056 | - # | ||
10057 | - # So, first we look for a working echo in the user's PATH. | ||
10058 | - | ||
10059 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
10060 | - for dir in $PATH /usr/ucb; do | ||
10061 | - IFS="$lt_save_ifs" | ||
10062 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
10063 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
10064 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
10065 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
10066 | - ECHO="$dir/echo" | ||
10067 | - break | ||
10068 | - fi | ||
10069 | - done | ||
10070 | - IFS="$lt_save_ifs" | ||
10071 | - | ||
10072 | - if test "X$ECHO" = Xecho; then | ||
10073 | - # We didn't find a better echo, so look for alternatives. | ||
10074 | - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
10075 | - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
10076 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
10077 | - # This shell has a builtin print -r that does the trick. | ||
10078 | - ECHO='print -r' | ||
10079 | - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
10080 | - test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
10081 | - # If we have ksh, try running configure again with it. | ||
10082 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
10083 | - export ORIGINAL_CONFIG_SHELL | ||
10084 | - CONFIG_SHELL=/bin/ksh | ||
10085 | - export CONFIG_SHELL | ||
10086 | - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
10087 | - else | ||
10088 | - # Try using printf. | ||
10089 | - ECHO='printf %s\n' | ||
10090 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
10091 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
10092 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
10093 | - # Cool, printf works | ||
10094 | - : | ||
10095 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
10096 | - test "X$echo_testing_string" = 'X\t' && | ||
10097 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
10098 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
10099 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
10100 | - export CONFIG_SHELL | ||
10101 | - SHELL="$CONFIG_SHELL" | ||
10102 | - export SHELL | ||
10103 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
10104 | - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
10105 | - test "X$echo_testing_string" = 'X\t' && | ||
10106 | - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
10107 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
10108 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
10109 | - else | ||
10110 | - # maybe with a smaller string... | ||
10111 | - prev=: | ||
10112 | - | ||
10113 | - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
10114 | - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
10115 | - then | ||
10116 | - break | ||
10117 | - fi | ||
10118 | - prev="$cmd" | ||
10119 | - done | ||
10120 | - | ||
10121 | - if test "$prev" != 'sed 50q "$0"'; then | ||
10122 | - echo_test_string=`eval $prev` | ||
10123 | - export echo_test_string | ||
10124 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
10125 | - else | ||
10126 | - # Oops. We lost completely, so just stick with echo. | ||
10127 | - ECHO=echo | ||
10128 | - fi | ||
10129 | - fi | ||
10130 | - fi | ||
10131 | - fi | ||
10132 | - fi | ||
10133 | -fi | ||
10134 | - | ||
10135 | -# Copy echo and quote the copy suitably for passing to libtool from | ||
10136 | -# the Makefile, instead of quoting the original, which is used later. | ||
10137 | -lt_ECHO=$ECHO | ||
10138 | -if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
10139 | - lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
10140 | -fi | ||
10141 | - | ||
10142 | - | ||
10143 | - | ||
10144 | |||
10145 | exec 7<&0 </dev/null 6>&1 | ||
10146 | |||
10147 | @@ -805,7 +666,9 @@ OTOOL | ||
10148 | LIPO | ||
10149 | NMEDIT | ||
10150 | DSYMUTIL | ||
10151 | -lt_ECHO | ||
10152 | +MANIFEST_TOOL | ||
10153 | +ac_ct_AR | ||
10154 | +DLLTOOL | ||
10155 | OBJDUMP | ||
10156 | LN_S | ||
10157 | NM | ||
10158 | @@ -918,6 +781,7 @@ enable_static | ||
10159 | with_pic | ||
10160 | enable_fast_install | ||
10161 | with_gnu_ld | ||
10162 | +with_libtool_sysroot | ||
10163 | enable_libtool_lock | ||
10164 | enable_plugins | ||
10165 | enable_largefile | ||
10166 | @@ -1588,6 +1452,8 @@ Optional Packages: | ||
10167 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
10168 | both] | ||
10169 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
10170 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
10171 | + (or the compiler's sysroot if not specified). | ||
10172 | --with-mmap try using mmap for BFD input files if available | ||
10173 | --with-separate-debug-dir=DIR | ||
10174 | Look for global separate debug info in DIR | ||
10175 | @@ -5511,8 +5377,8 @@ esac | ||
10176 | |||
10177 | |||
10178 | |||
10179 | -macro_version='2.2.6' | ||
10180 | -macro_revision='1.3012' | ||
10181 | +macro_version='2.4' | ||
10182 | +macro_revision='1.3293' | ||
10183 | |||
10184 | |||
10185 | |||
10186 | @@ -5528,6 +5394,75 @@ macro_revision='1.3012' | ||
10187 | |||
10188 | ltmain="$ac_aux_dir/ltmain.sh" | ||
10189 | |||
10190 | +# Backslashify metacharacters that are still active within | ||
10191 | +# double-quoted strings. | ||
10192 | +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
10193 | + | ||
10194 | +# Same as above, but do not quote variable references. | ||
10195 | +double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
10196 | + | ||
10197 | +# Sed substitution to delay expansion of an escaped shell variable in a | ||
10198 | +# double_quote_subst'ed string. | ||
10199 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
10200 | + | ||
10201 | +# Sed substitution to delay expansion of an escaped single quote. | ||
10202 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
10203 | + | ||
10204 | +# Sed substitution to avoid accidental globbing in evaled expressions | ||
10205 | +no_glob_subst='s/\*/\\\*/g' | ||
10206 | + | ||
10207 | +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
10208 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
10209 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
10210 | + | ||
10211 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
10212 | +$as_echo_n "checking how to print strings... " >&6; } | ||
10213 | +# Test print first, because it will be a builtin if present. | ||
10214 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
10215 | + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
10216 | + ECHO='print -r --' | ||
10217 | +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
10218 | + ECHO='printf %s\n' | ||
10219 | +else | ||
10220 | + # Use this function as a fallback that always works. | ||
10221 | + func_fallback_echo () | ||
10222 | + { | ||
10223 | + eval 'cat <<_LTECHO_EOF | ||
10224 | +$1 | ||
10225 | +_LTECHO_EOF' | ||
10226 | + } | ||
10227 | + ECHO='func_fallback_echo' | ||
10228 | +fi | ||
10229 | + | ||
10230 | +# func_echo_all arg... | ||
10231 | +# Invoke $ECHO with all args, space-separated. | ||
10232 | +func_echo_all () | ||
10233 | +{ | ||
10234 | + $ECHO "" | ||
10235 | +} | ||
10236 | + | ||
10237 | +case "$ECHO" in | ||
10238 | + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | ||
10239 | +$as_echo "printf" >&6; } ;; | ||
10240 | + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | ||
10241 | +$as_echo "print -r" >&6; } ;; | ||
10242 | + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | ||
10243 | +$as_echo "cat" >&6; } ;; | ||
10244 | +esac | ||
10245 | + | ||
10246 | + | ||
10247 | + | ||
10248 | + | ||
10249 | + | ||
10250 | + | ||
10251 | + | ||
10252 | + | ||
10253 | + | ||
10254 | + | ||
10255 | + | ||
10256 | + | ||
10257 | + | ||
10258 | + | ||
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
10260 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
10261 | if test "${ac_cv_path_SED+set}" = set; then : | ||
10262 | @@ -5863,8 +5798,11 @@ if test "$lt_cv_path_NM" != "no"; then | ||
10263 | NM="$lt_cv_path_NM" | ||
10264 | else | ||
10265 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
10266 | - if test -n "$ac_tool_prefix"; then | ||
10267 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
10268 | + if test -n "$DUMPBIN"; then : | ||
10269 | + # Let the user override the test. | ||
10270 | + else | ||
10271 | + if test -n "$ac_tool_prefix"; then | ||
10272 | + for ac_prog in dumpbin "link -dump" | ||
10273 | do | ||
10274 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
10275 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
10276 | @@ -5908,7 +5846,7 @@ fi | ||
10277 | fi | ||
10278 | if test -z "$DUMPBIN"; then | ||
10279 | ac_ct_DUMPBIN=$DUMPBIN | ||
10280 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
10281 | + for ac_prog in dumpbin "link -dump" | ||
10282 | do | ||
10283 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
10284 | set dummy $ac_prog; ac_word=$2 | ||
10285 | @@ -5963,6 +5901,15 @@ esac | ||
10286 | fi | ||
10287 | fi | ||
10288 | |||
10289 | + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
10290 | + *COFF*) | ||
10291 | + DUMPBIN="$DUMPBIN -symbols" | ||
10292 | + ;; | ||
10293 | + *) | ||
10294 | + DUMPBIN=: | ||
10295 | + ;; | ||
10296 | + esac | ||
10297 | + fi | ||
10298 | |||
10299 | if test "$DUMPBIN" != ":"; then | ||
10300 | NM="$DUMPBIN" | ||
10301 | @@ -5982,13 +5929,13 @@ if test "${lt_cv_nm_interface+set}" = se | ||
10302 | else | ||
10303 | lt_cv_nm_interface="BSD nm" | ||
10304 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
10305 | - (eval echo "\"\$as_me:5985: $ac_compile\"" >&5) | ||
10306 | + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | ||
10307 | (eval "$ac_compile" 2>conftest.err) | ||
10308 | cat conftest.err >&5 | ||
10309 | - (eval echo "\"\$as_me:5988: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
10310 | + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
10311 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
10312 | cat conftest.err >&5 | ||
10313 | - (eval echo "\"\$as_me:5991: output\"" >&5) | ||
10314 | + (eval echo "\"\$as_me:$LINENO: output\"" >&5) | ||
10315 | cat conftest.out >&5 | ||
10316 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
10317 | lt_cv_nm_interface="MS dumpbin" | ||
10318 | @@ -6045,6 +5992,11 @@ else | ||
10319 | lt_cv_sys_max_cmd_len=8192; | ||
10320 | ;; | ||
10321 | |||
10322 | + mint*) | ||
10323 | + # On MiNT this can take a long time and run out of memory. | ||
10324 | + lt_cv_sys_max_cmd_len=8192; | ||
10325 | + ;; | ||
10326 | + | ||
10327 | amigaos*) | ||
10328 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
10329 | # So we just punt and use a minimum line length of 8192. | ||
10330 | @@ -6109,8 +6061,8 @@ else | ||
10331 | # If test is not a shell built-in, we'll probably end up computing a | ||
10332 | # maximum length that is only half of the actual maximum length, but | ||
10333 | # we can't tell. | ||
10334 | - while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
10335 | - = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
10336 | + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | ||
10337 | + = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
10338 | test $i != 17 # 1/2 MB should be enough | ||
10339 | do | ||
10340 | i=`expr $i + 1` | ||
10341 | @@ -6152,8 +6104,8 @@ $as_echo_n "checking whether the shell u | ||
10342 | # Try some XSI features | ||
10343 | xsi_shell=no | ||
10344 | ( _lt_dummy="a/b/c" | ||
10345 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
10346 | - = c,a/b,, \ | ||
10347 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
10348 | + = c,a/b,b/c, \ | ||
10349 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
10350 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
10351 | && xsi_shell=yes | ||
10352 | @@ -6202,6 +6154,80 @@ esac | ||
10353 | |||
10354 | |||
10355 | |||
10356 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
10357 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
10358 | +if test "${lt_cv_to_host_file_cmd+set}" = set; then : | ||
10359 | + $as_echo_n "(cached) " >&6 | ||
10360 | +else | ||
10361 | + case $host in | ||
10362 | + *-*-mingw* ) | ||
10363 | + case $build in | ||
10364 | + *-*-mingw* ) # actually msys | ||
10365 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
10366 | + ;; | ||
10367 | + *-*-cygwin* ) | ||
10368 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
10369 | + ;; | ||
10370 | + * ) # otherwise, assume *nix | ||
10371 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
10372 | + ;; | ||
10373 | + esac | ||
10374 | + ;; | ||
10375 | + *-*-cygwin* ) | ||
10376 | + case $build in | ||
10377 | + *-*-mingw* ) # actually msys | ||
10378 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
10379 | + ;; | ||
10380 | + *-*-cygwin* ) | ||
10381 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
10382 | + ;; | ||
10383 | + * ) # otherwise, assume *nix | ||
10384 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
10385 | + ;; | ||
10386 | + esac | ||
10387 | + ;; | ||
10388 | + * ) # unhandled hosts (and "normal" native builds) | ||
10389 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
10390 | + ;; | ||
10391 | +esac | ||
10392 | + | ||
10393 | +fi | ||
10394 | + | ||
10395 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
10396 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
10397 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
10398 | + | ||
10399 | + | ||
10400 | + | ||
10401 | + | ||
10402 | + | ||
10403 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
10404 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
10405 | +if test "${lt_cv_to_tool_file_cmd+set}" = set; then : | ||
10406 | + $as_echo_n "(cached) " >&6 | ||
10407 | +else | ||
10408 | + #assume ordinary cross tools, or native build. | ||
10409 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
10410 | +case $host in | ||
10411 | + *-*-mingw* ) | ||
10412 | + case $build in | ||
10413 | + *-*-mingw* ) # actually msys | ||
10414 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
10415 | + ;; | ||
10416 | + esac | ||
10417 | + ;; | ||
10418 | +esac | ||
10419 | + | ||
10420 | +fi | ||
10421 | + | ||
10422 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
10423 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
10424 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
10425 | + | ||
10426 | + | ||
10427 | + | ||
10428 | + | ||
10429 | + | ||
10430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
10431 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
10432 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
10433 | @@ -6218,6 +6244,11 @@ case $reload_flag in | ||
10434 | esac | ||
10435 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
10436 | case $host_os in | ||
10437 | + cygwin* | mingw* | pw32* | cegcc*) | ||
10438 | + if test "$GCC" != yes; then | ||
10439 | + reload_cmds=false | ||
10440 | + fi | ||
10441 | + ;; | ||
10442 | darwin*) | ||
10443 | if test "$GCC" = yes; then | ||
10444 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
10445 | @@ -6381,16 +6412,18 @@ mingw* | pw32*) | ||
10446 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
10447 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
10448 | # unless we find 'file', for example because we are cross-compiling. | ||
10449 | - if ( file / ) >/dev/null 2>&1; then | ||
10450 | + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
10451 | + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
10452 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
10453 | lt_cv_file_magic_cmd='func_win32_libid' | ||
10454 | else | ||
10455 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
10456 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
10457 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
10458 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
10459 | fi | ||
10460 | ;; | ||
10461 | |||
10462 | -cegcc) | ||
10463 | +cegcc*) | ||
10464 | # use the weaker test based on 'objdump'. See mingw*. | ||
10465 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
10466 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
10467 | @@ -6420,6 +6453,10 @@ gnu*) | ||
10468 | lt_cv_deplibs_check_method=pass_all | ||
10469 | ;; | ||
10470 | |||
10471 | +haiku*) | ||
10472 | + lt_cv_deplibs_check_method=pass_all | ||
10473 | + ;; | ||
10474 | + | ||
10475 | hpux10.20* | hpux11*) | ||
10476 | lt_cv_file_magic_cmd=/usr/bin/file | ||
10477 | case $host_cpu in | ||
10478 | @@ -6428,11 +6465,11 @@ hpux10.20* | hpux11*) | ||
10479 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
10480 | ;; | ||
10481 | hppa*64*) | ||
10482 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
10483 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | ||
10484 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
10485 | ;; | ||
10486 | *) | ||
10487 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
10488 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | ||
10489 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
10490 | ;; | ||
10491 | esac | ||
10492 | @@ -6535,6 +6572,21 @@ esac | ||
10493 | fi | ||
10494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
10495 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
10496 | + | ||
10497 | +file_magic_glob= | ||
10498 | +want_nocaseglob=no | ||
10499 | +if test "$build" = "$host"; then | ||
10500 | + case $host_os in | ||
10501 | + mingw* | pw32*) | ||
10502 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
10503 | + want_nocaseglob=yes | ||
10504 | + else | ||
10505 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
10506 | + fi | ||
10507 | + ;; | ||
10508 | + esac | ||
10509 | +fi | ||
10510 | + | ||
10511 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
10512 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
10513 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
10514 | @@ -6550,16 +6602,26 @@ test -z "$deplibs_check_method" && depli | ||
10515 | |||
10516 | |||
10517 | |||
10518 | + | ||
10519 | + | ||
10520 | + | ||
10521 | + | ||
10522 | + | ||
10523 | + | ||
10524 | + | ||
10525 | + | ||
10526 | + | ||
10527 | + | ||
10528 | if test -n "$ac_tool_prefix"; then | ||
10529 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
10530 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
10531 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
10532 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
10533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10534 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10535 | -if test "${ac_cv_prog_AR+set}" = set; then : | ||
10536 | +if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
10537 | $as_echo_n "(cached) " >&6 | ||
10538 | else | ||
10539 | - if test -n "$AR"; then | ||
10540 | - ac_cv_prog_AR="$AR" # Let the user override the test. | ||
10541 | + if test -n "$DLLTOOL"; then | ||
10542 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
10543 | else | ||
10544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10545 | for as_dir in $PATH | ||
10546 | @@ -6568,7 +6630,7 @@ do | ||
10547 | test -z "$as_dir" && as_dir=. | ||
10548 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
10550 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
10551 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
10552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10553 | break 2 | ||
10554 | fi | ||
10555 | @@ -6578,10 +6640,10 @@ IFS=$as_save_IFS | ||
10556 | |||
10557 | fi | ||
10558 | fi | ||
10559 | -AR=$ac_cv_prog_AR | ||
10560 | -if test -n "$AR"; then | ||
10561 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
10562 | -$as_echo "$AR" >&6; } | ||
10563 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
10564 | +if test -n "$DLLTOOL"; then | ||
10565 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
10566 | +$as_echo "$DLLTOOL" >&6; } | ||
10567 | else | ||
10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10569 | $as_echo "no" >&6; } | ||
10570 | @@ -6589,17 +6651,17 @@ fi | ||
10571 | |||
10572 | |||
10573 | fi | ||
10574 | -if test -z "$ac_cv_prog_AR"; then | ||
10575 | - ac_ct_AR=$AR | ||
10576 | - # Extract the first word of "ar", so it can be a program name with args. | ||
10577 | -set dummy ar; ac_word=$2 | ||
10578 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
10579 | + ac_ct_DLLTOOL=$DLLTOOL | ||
10580 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
10581 | +set dummy dlltool; ac_word=$2 | ||
10582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10583 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10584 | -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
10585 | +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
10586 | $as_echo_n "(cached) " >&6 | ||
10587 | else | ||
10588 | - if test -n "$ac_ct_AR"; then | ||
10589 | - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
10590 | + if test -n "$ac_ct_DLLTOOL"; then | ||
10591 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
10592 | else | ||
10593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10594 | for as_dir in $PATH | ||
10595 | @@ -6608,7 +6670,7 @@ do | ||
10596 | test -z "$as_dir" && as_dir=. | ||
10597 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
10599 | - ac_cv_prog_ac_ct_AR="ar" | ||
10600 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
10601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10602 | break 2 | ||
10603 | fi | ||
10604 | @@ -6618,17 +6680,17 @@ IFS=$as_save_IFS | ||
10605 | |||
10606 | fi | ||
10607 | fi | ||
10608 | -ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
10609 | -if test -n "$ac_ct_AR"; then | ||
10610 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
10611 | -$as_echo "$ac_ct_AR" >&6; } | ||
10612 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
10613 | +if test -n "$ac_ct_DLLTOOL"; then | ||
10614 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
10615 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
10616 | else | ||
10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10618 | $as_echo "no" >&6; } | ||
10619 | fi | ||
10620 | |||
10621 | - if test "x$ac_ct_AR" = x; then | ||
10622 | - AR="false" | ||
10623 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
10624 | + DLLTOOL="false" | ||
10625 | else | ||
10626 | case $cross_compiling:$ac_tool_warned in | ||
10627 | yes:) | ||
10628 | @@ -6636,18 +6698,54 @@ yes:) | ||
10629 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10630 | ac_tool_warned=yes ;; | ||
10631 | esac | ||
10632 | - AR=$ac_ct_AR | ||
10633 | + DLLTOOL=$ac_ct_DLLTOOL | ||
10634 | fi | ||
10635 | else | ||
10636 | - AR="$ac_cv_prog_AR" | ||
10637 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
10638 | fi | ||
10639 | |||
10640 | -test -z "$AR" && AR=ar | ||
10641 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
10642 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
10643 | + | ||
10644 | + | ||
10645 | + | ||
10646 | + | ||
10647 | + | ||
10648 | + | ||
10649 | |||
10650 | |||
10651 | |||
10652 | |||
10653 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
10654 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
10655 | +if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then : | ||
10656 | + $as_echo_n "(cached) " >&6 | ||
10657 | +else | ||
10658 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
10659 | + | ||
10660 | +case $host_os in | ||
10661 | +cygwin* | mingw* | pw32* | cegcc*) | ||
10662 | + # two different shell functions defined in ltmain.sh | ||
10663 | + # decide which to use based on capabilities of $DLLTOOL | ||
10664 | + case `$DLLTOOL --help 2>&1` in | ||
10665 | + *--identify-strict*) | ||
10666 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
10667 | + ;; | ||
10668 | + *) | ||
10669 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
10670 | + ;; | ||
10671 | + esac | ||
10672 | + ;; | ||
10673 | +*) | ||
10674 | + # fallback: assume linklib IS sharedlib | ||
10675 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
10676 | + ;; | ||
10677 | +esac | ||
10678 | + | ||
10679 | +fi | ||
10680 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
10681 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
10682 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
10683 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
10684 | |||
10685 | |||
10686 | |||
10687 | @@ -6656,15 +6754,17 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
10688 | |||
10689 | |||
10690 | if test -n "$ac_tool_prefix"; then | ||
10691 | - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
10692 | -set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
10693 | + for ac_prog in ar | ||
10694 | + do | ||
10695 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
10696 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10698 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10699 | -if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
10700 | +if test "${ac_cv_prog_AR+set}" = set; then : | ||
10701 | $as_echo_n "(cached) " >&6 | ||
10702 | else | ||
10703 | - if test -n "$STRIP"; then | ||
10704 | - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
10705 | + if test -n "$AR"; then | ||
10706 | + ac_cv_prog_AR="$AR" # Let the user override the test. | ||
10707 | else | ||
10708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10709 | for as_dir in $PATH | ||
10710 | @@ -6673,7 +6773,7 @@ do | ||
10711 | test -z "$as_dir" && as_dir=. | ||
10712 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
10714 | - ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
10715 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
10716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10717 | break 2 | ||
10718 | fi | ||
10719 | @@ -6683,28 +6783,32 @@ IFS=$as_save_IFS | ||
10720 | |||
10721 | fi | ||
10722 | fi | ||
10723 | -STRIP=$ac_cv_prog_STRIP | ||
10724 | -if test -n "$STRIP"; then | ||
10725 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
10726 | -$as_echo "$STRIP" >&6; } | ||
10727 | +AR=$ac_cv_prog_AR | ||
10728 | +if test -n "$AR"; then | ||
10729 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
10730 | +$as_echo "$AR" >&6; } | ||
10731 | else | ||
10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10733 | $as_echo "no" >&6; } | ||
10734 | fi | ||
10735 | |||
10736 | |||
10737 | + test -n "$AR" && break | ||
10738 | + done | ||
10739 | fi | ||
10740 | -if test -z "$ac_cv_prog_STRIP"; then | ||
10741 | - ac_ct_STRIP=$STRIP | ||
10742 | - # Extract the first word of "strip", so it can be a program name with args. | ||
10743 | -set dummy strip; ac_word=$2 | ||
10744 | +if test -z "$AR"; then | ||
10745 | + ac_ct_AR=$AR | ||
10746 | + for ac_prog in ar | ||
10747 | +do | ||
10748 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
10749 | +set dummy $ac_prog; ac_word=$2 | ||
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10751 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10752 | -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
10753 | +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
10754 | $as_echo_n "(cached) " >&6 | ||
10755 | else | ||
10756 | - if test -n "$ac_ct_STRIP"; then | ||
10757 | - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
10758 | + if test -n "$ac_ct_AR"; then | ||
10759 | + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
10760 | else | ||
10761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10762 | for as_dir in $PATH | ||
10763 | @@ -6713,7 +6817,7 @@ do | ||
10764 | test -z "$as_dir" && as_dir=. | ||
10765 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
10767 | - ac_cv_prog_ac_ct_STRIP="strip" | ||
10768 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
10769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10770 | break 2 | ||
10771 | fi | ||
10772 | @@ -6723,11 +6827,176 @@ IFS=$as_save_IFS | ||
10773 | |||
10774 | fi | ||
10775 | fi | ||
10776 | -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
10777 | -if test -n "$ac_ct_STRIP"; then | ||
10778 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
10779 | -$as_echo "$ac_ct_STRIP" >&6; } | ||
10780 | -else | ||
10781 | +ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
10782 | +if test -n "$ac_ct_AR"; then | ||
10783 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
10784 | +$as_echo "$ac_ct_AR" >&6; } | ||
10785 | +else | ||
10786 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10787 | +$as_echo "no" >&6; } | ||
10788 | +fi | ||
10789 | + | ||
10790 | + | ||
10791 | + test -n "$ac_ct_AR" && break | ||
10792 | +done | ||
10793 | + | ||
10794 | + if test "x$ac_ct_AR" = x; then | ||
10795 | + AR="false" | ||
10796 | + else | ||
10797 | + case $cross_compiling:$ac_tool_warned in | ||
10798 | +yes:) | ||
10799 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10800 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10801 | +ac_tool_warned=yes ;; | ||
10802 | +esac | ||
10803 | + AR=$ac_ct_AR | ||
10804 | + fi | ||
10805 | +fi | ||
10806 | + | ||
10807 | +: ${AR=ar} | ||
10808 | +: ${AR_FLAGS=cru} | ||
10809 | + | ||
10810 | + | ||
10811 | + | ||
10812 | + | ||
10813 | + | ||
10814 | + | ||
10815 | + | ||
10816 | + | ||
10817 | + | ||
10818 | + | ||
10819 | + | ||
10820 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
10821 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
10822 | +if test "${lt_cv_ar_at_file+set}" = set; then : | ||
10823 | + $as_echo_n "(cached) " >&6 | ||
10824 | +else | ||
10825 | + lt_cv_ar_at_file=no | ||
10826 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10827 | +/* end confdefs.h. */ | ||
10828 | + | ||
10829 | +int | ||
10830 | +main () | ||
10831 | +{ | ||
10832 | + | ||
10833 | + ; | ||
10834 | + return 0; | ||
10835 | +} | ||
10836 | +_ACEOF | ||
10837 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
10838 | + echo conftest.$ac_objext > conftest.lst | ||
10839 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
10840 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
10841 | + (eval $lt_ar_try) 2>&5 | ||
10842 | + ac_status=$? | ||
10843 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10844 | + test $ac_status = 0; } | ||
10845 | + if test "$ac_status" -eq 0; then | ||
10846 | + # Ensure the archiver fails upon bogus file names. | ||
10847 | + rm -f conftest.$ac_objext libconftest.a | ||
10848 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
10849 | + (eval $lt_ar_try) 2>&5 | ||
10850 | + ac_status=$? | ||
10851 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10852 | + test $ac_status = 0; } | ||
10853 | + if test "$ac_status" -ne 0; then | ||
10854 | + lt_cv_ar_at_file=@ | ||
10855 | + fi | ||
10856 | + fi | ||
10857 | + rm -f conftest.* libconftest.a | ||
10858 | + | ||
10859 | +fi | ||
10860 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10861 | + | ||
10862 | +fi | ||
10863 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
10864 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
10865 | + | ||
10866 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
10867 | + archiver_list_spec= | ||
10868 | +else | ||
10869 | + archiver_list_spec=$lt_cv_ar_at_file | ||
10870 | +fi | ||
10871 | + | ||
10872 | + | ||
10873 | + | ||
10874 | + | ||
10875 | + | ||
10876 | + | ||
10877 | + | ||
10878 | +if test -n "$ac_tool_prefix"; then | ||
10879 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
10880 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
10881 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10882 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
10883 | +if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
10884 | + $as_echo_n "(cached) " >&6 | ||
10885 | +else | ||
10886 | + if test -n "$STRIP"; then | ||
10887 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
10888 | +else | ||
10889 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10890 | +for as_dir in $PATH | ||
10891 | +do | ||
10892 | + IFS=$as_save_IFS | ||
10893 | + test -z "$as_dir" && as_dir=. | ||
10894 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
10895 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
10896 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
10897 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10898 | + break 2 | ||
10899 | + fi | ||
10900 | +done | ||
10901 | + done | ||
10902 | +IFS=$as_save_IFS | ||
10903 | + | ||
10904 | +fi | ||
10905 | +fi | ||
10906 | +STRIP=$ac_cv_prog_STRIP | ||
10907 | +if test -n "$STRIP"; then | ||
10908 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
10909 | +$as_echo "$STRIP" >&6; } | ||
10910 | +else | ||
10911 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10912 | +$as_echo "no" >&6; } | ||
10913 | +fi | ||
10914 | + | ||
10915 | + | ||
10916 | +fi | ||
10917 | +if test -z "$ac_cv_prog_STRIP"; then | ||
10918 | + ac_ct_STRIP=$STRIP | ||
10919 | + # Extract the first word of "strip", so it can be a program name with args. | ||
10920 | +set dummy strip; ac_word=$2 | ||
10921 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10922 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
10923 | +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
10924 | + $as_echo_n "(cached) " >&6 | ||
10925 | +else | ||
10926 | + if test -n "$ac_ct_STRIP"; then | ||
10927 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
10928 | +else | ||
10929 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10930 | +for as_dir in $PATH | ||
10931 | +do | ||
10932 | + IFS=$as_save_IFS | ||
10933 | + test -z "$as_dir" && as_dir=. | ||
10934 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
10935 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
10936 | + ac_cv_prog_ac_ct_STRIP="strip" | ||
10937 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10938 | + break 2 | ||
10939 | + fi | ||
10940 | +done | ||
10941 | + done | ||
10942 | +IFS=$as_save_IFS | ||
10943 | + | ||
10944 | +fi | ||
10945 | +fi | ||
10946 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
10947 | +if test -n "$ac_ct_STRIP"; then | ||
10948 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
10949 | +$as_echo "$ac_ct_STRIP" >&6; } | ||
10950 | +else | ||
10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10952 | $as_echo "no" >&6; } | ||
10953 | fi | ||
10954 | @@ -6870,6 +7139,18 @@ if test -n "$RANLIB"; then | ||
10955 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
10956 | fi | ||
10957 | |||
10958 | +case $host_os in | ||
10959 | + darwin*) | ||
10960 | + lock_old_archive_extraction=yes ;; | ||
10961 | + *) | ||
10962 | + lock_old_archive_extraction=no ;; | ||
10963 | +esac | ||
10964 | + | ||
10965 | + | ||
10966 | + | ||
10967 | + | ||
10968 | + | ||
10969 | + | ||
10970 | |||
10971 | |||
10972 | |||
10973 | @@ -6977,8 +7258,8 @@ esac | ||
10974 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
10975 | |||
10976 | # Transform an extracted symbol line into symbol name and symbol address | ||
10977 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
10978 | -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'" | ||
10979 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
10980 | +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'" | ||
10981 | |||
10982 | # Handle CRLF in mingw tool chain | ||
10983 | opt_cr= | ||
10984 | @@ -7014,6 +7295,7 @@ for ac_symprfx in "" "_"; do | ||
10985 | else | ||
10986 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
10987 | fi | ||
10988 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
10989 | |||
10990 | # Check to see that the pipe works correctly. | ||
10991 | pipe_works=no | ||
10992 | @@ -7039,8 +7321,8 @@ _LT_EOF | ||
10993 | test $ac_status = 0; }; then | ||
10994 | # Now try to grab the symbols. | ||
10995 | nlist=conftest.nm | ||
10996 | - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
10997 | - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
10998 | + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | ||
10999 | + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | ||
11000 | ac_status=$? | ||
11001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11002 | test $ac_status = 0; } && test -s "$nlist"; then | ||
11003 | @@ -7055,6 +7337,18 @@ _LT_EOF | ||
11004 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
11005 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
11006 | cat <<_LT_EOF > conftest.$ac_ext | ||
11007 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
11008 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
11009 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
11010 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
11011 | +# define LT_DLSYM_CONST | ||
11012 | +#elif defined(__osf__) | ||
11013 | +/* This system does not cope well with relocations in const data. */ | ||
11014 | +# define LT_DLSYM_CONST | ||
11015 | +#else | ||
11016 | +# define LT_DLSYM_CONST const | ||
11017 | +#endif | ||
11018 | + | ||
11019 | #ifdef __cplusplus | ||
11020 | extern "C" { | ||
11021 | #endif | ||
11022 | @@ -7066,7 +7360,7 @@ _LT_EOF | ||
11023 | cat <<_LT_EOF >> conftest.$ac_ext | ||
11024 | |||
11025 | /* The mapping between symbol names and symbols. */ | ||
11026 | -const struct { | ||
11027 | +LT_DLSYM_CONST struct { | ||
11028 | const char *name; | ||
11029 | void *address; | ||
11030 | } | ||
11031 | @@ -7092,8 +7386,8 @@ static const void *lt_preloaded_setup() | ||
11032 | _LT_EOF | ||
11033 | # Now try linking the two files. | ||
11034 | mv conftest.$ac_objext conftstm.$ac_objext | ||
11035 | - lt_save_LIBS="$LIBS" | ||
11036 | - lt_save_CFLAGS="$CFLAGS" | ||
11037 | + lt_globsym_save_LIBS=$LIBS | ||
11038 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
11039 | LIBS="conftstm.$ac_objext" | ||
11040 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
11041 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11042 | @@ -7103,8 +7397,8 @@ _LT_EOF | ||
11043 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
11044 | pipe_works=yes | ||
11045 | fi | ||
11046 | - LIBS="$lt_save_LIBS" | ||
11047 | - CFLAGS="$lt_save_CFLAGS" | ||
11048 | + LIBS=$lt_globsym_save_LIBS | ||
11049 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
11050 | else | ||
11051 | echo "cannot find nm_test_func in $nlist" >&5 | ||
11052 | fi | ||
11053 | @@ -7141,6 +7435,17 @@ else | ||
11054 | $as_echo "ok" >&6; } | ||
11055 | fi | ||
11056 | |||
11057 | +# Response file support. | ||
11058 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
11059 | + nm_file_list_spec='@' | ||
11060 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
11061 | + nm_file_list_spec='@' | ||
11062 | +fi | ||
11063 | + | ||
11064 | + | ||
11065 | + | ||
11066 | + | ||
11067 | + | ||
11068 | |||
11069 | |||
11070 | |||
11071 | @@ -7162,6 +7467,44 @@ fi | ||
11072 | |||
11073 | |||
11074 | |||
11075 | + | ||
11076 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
11077 | +$as_echo_n "checking for sysroot... " >&6; } | ||
11078 | + | ||
11079 | +# Check whether --with-libtool-sysroot was given. | ||
11080 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
11081 | + withval=$with_libtool_sysroot; | ||
11082 | +else | ||
11083 | + with_libtool_sysroot=no | ||
11084 | +fi | ||
11085 | + | ||
11086 | + | ||
11087 | +lt_sysroot= | ||
11088 | +case ${with_libtool_sysroot} in #( | ||
11089 | + yes) | ||
11090 | + if test "$GCC" = yes; then | ||
11091 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
11092 | + fi | ||
11093 | + ;; #( | ||
11094 | + /*) | ||
11095 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
11096 | + ;; #( | ||
11097 | + no|'') | ||
11098 | + ;; #( | ||
11099 | + *) | ||
11100 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
11101 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
11102 | + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 | ||
11103 | + ;; | ||
11104 | +esac | ||
11105 | + | ||
11106 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
11107 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
11108 | + | ||
11109 | + | ||
11110 | + | ||
11111 | + | ||
11112 | + | ||
11113 | # Check whether --enable-libtool-lock was given. | ||
11114 | if test "${enable_libtool_lock+set}" = set; then : | ||
11115 | enableval=$enable_libtool_lock; | ||
11116 | @@ -7193,7 +7536,7 @@ ia64-*-hpux*) | ||
11117 | ;; | ||
11118 | *-*-irix6*) | ||
11119 | # Find out which ABI we are using. | ||
11120 | - echo '#line 7196 "configure"' > conftest.$ac_ext | ||
11121 | + echo '#line '$LINENO' "configure"' > conftest.$ac_ext | ||
11122 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
11123 | (eval $ac_compile) 2>&5 | ||
11124 | ac_status=$? | ||
11125 | @@ -7355,6 +7698,123 @@ esac | ||
11126 | |||
11127 | need_locks="$enable_libtool_lock" | ||
11128 | |||
11129 | +if test -n "$ac_tool_prefix"; then | ||
11130 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
11131 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
11132 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11133 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
11134 | +if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then : | ||
11135 | + $as_echo_n "(cached) " >&6 | ||
11136 | +else | ||
11137 | + if test -n "$MANIFEST_TOOL"; then | ||
11138 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
11139 | +else | ||
11140 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11141 | +for as_dir in $PATH | ||
11142 | +do | ||
11143 | + IFS=$as_save_IFS | ||
11144 | + test -z "$as_dir" && as_dir=. | ||
11145 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
11146 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11147 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
11148 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11149 | + break 2 | ||
11150 | + fi | ||
11151 | +done | ||
11152 | + done | ||
11153 | +IFS=$as_save_IFS | ||
11154 | + | ||
11155 | +fi | ||
11156 | +fi | ||
11157 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
11158 | +if test -n "$MANIFEST_TOOL"; then | ||
11159 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
11160 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
11161 | +else | ||
11162 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11163 | +$as_echo "no" >&6; } | ||
11164 | +fi | ||
11165 | + | ||
11166 | + | ||
11167 | +fi | ||
11168 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
11169 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
11170 | + # Extract the first word of "mt", so it can be a program name with args. | ||
11171 | +set dummy mt; ac_word=$2 | ||
11172 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11173 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
11174 | +if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then : | ||
11175 | + $as_echo_n "(cached) " >&6 | ||
11176 | +else | ||
11177 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
11178 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
11179 | +else | ||
11180 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11181 | +for as_dir in $PATH | ||
11182 | +do | ||
11183 | + IFS=$as_save_IFS | ||
11184 | + test -z "$as_dir" && as_dir=. | ||
11185 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
11186 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11187 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
11188 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11189 | + break 2 | ||
11190 | + fi | ||
11191 | +done | ||
11192 | + done | ||
11193 | +IFS=$as_save_IFS | ||
11194 | + | ||
11195 | +fi | ||
11196 | +fi | ||
11197 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
11198 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
11199 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
11200 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
11201 | +else | ||
11202 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11203 | +$as_echo "no" >&6; } | ||
11204 | +fi | ||
11205 | + | ||
11206 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
11207 | + MANIFEST_TOOL=":" | ||
11208 | + else | ||
11209 | + case $cross_compiling:$ac_tool_warned in | ||
11210 | +yes:) | ||
11211 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11212 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11213 | +ac_tool_warned=yes ;; | ||
11214 | +esac | ||
11215 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
11216 | + fi | ||
11217 | +else | ||
11218 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
11219 | +fi | ||
11220 | + | ||
11221 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
11222 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
11223 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
11224 | +if test "${lt_cv_path_mainfest_tool+set}" = set; then : | ||
11225 | + $as_echo_n "(cached) " >&6 | ||
11226 | +else | ||
11227 | + lt_cv_path_mainfest_tool=no | ||
11228 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
11229 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
11230 | + cat conftest.err >&5 | ||
11231 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
11232 | + lt_cv_path_mainfest_tool=yes | ||
11233 | + fi | ||
11234 | + rm -f conftest* | ||
11235 | +fi | ||
11236 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
11237 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
11238 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
11239 | + MANIFEST_TOOL=: | ||
11240 | +fi | ||
11241 | + | ||
11242 | + | ||
11243 | + | ||
11244 | + | ||
11245 | + | ||
11246 | |||
11247 | case $host_os in | ||
11248 | rhapsody* | darwin*) | ||
11249 | @@ -7905,6 +8365,38 @@ rm -f core conftest.err conftest.$ac_obj | ||
11250 | fi | ||
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
11252 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
11253 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | ||
11254 | +$as_echo_n "checking for -force_load linker flag... " >&6; } | ||
11255 | +if test "${lt_cv_ld_force_load+set}" = set; then : | ||
11256 | + $as_echo_n "(cached) " >&6 | ||
11257 | +else | ||
11258 | + lt_cv_ld_force_load=no | ||
11259 | + cat > conftest.c << _LT_EOF | ||
11260 | +int forced_loaded() { return 2;} | ||
11261 | +_LT_EOF | ||
11262 | + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | ||
11263 | + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
11264 | + echo "$AR cru libconftest.a conftest.o" >&5 | ||
11265 | + $AR cru libconftest.a conftest.o 2>&5 | ||
11266 | + echo "$RANLIB libconftest.a" >&5 | ||
11267 | + $RANLIB libconftest.a 2>&5 | ||
11268 | + cat > conftest.c << _LT_EOF | ||
11269 | +int main() { return 0;} | ||
11270 | +_LT_EOF | ||
11271 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | ||
11272 | + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
11273 | + _lt_result=$? | ||
11274 | + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
11275 | + lt_cv_ld_force_load=yes | ||
11276 | + else | ||
11277 | + cat conftest.err >&5 | ||
11278 | + fi | ||
11279 | + rm -f conftest.err libconftest.a conftest conftest.c | ||
11280 | + rm -rf conftest.dSYM | ||
11281 | + | ||
11282 | +fi | ||
11283 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | ||
11284 | +$as_echo "$lt_cv_ld_force_load" >&6; } | ||
11285 | case $host_os in | ||
11286 | rhapsody* | darwin1.[012]) | ||
11287 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
11288 | @@ -7932,7 +8424,7 @@ $as_echo "$lt_cv_ld_exported_symbols_lis | ||
11289 | else | ||
11290 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
11291 | fi | ||
11292 | - if test "$DSYMUTIL" != ":"; then | ||
11293 | + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
11294 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
11295 | else | ||
11296 | _lt_dsymutil= | ||
11297 | @@ -7955,6 +8447,8 @@ done | ||
11298 | |||
11299 | |||
11300 | |||
11301 | + | ||
11302 | + | ||
11303 | # Set options | ||
11304 | enable_dlopen=yes | ||
11305 | |||
11306 | @@ -8050,7 +8544,9 @@ fi | ||
11307 | LIBTOOL_DEPS="$ltmain" | ||
11308 | |||
11309 | # Always use our own libtool. | ||
11310 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
11311 | +LIBTOOL='$(SHELL) $(top_builddir)' | ||
11312 | +LIBTOOL="$LIBTOOL/${host_alias}-libtool" | ||
11313 | + | ||
11314 | |||
11315 | |||
11316 | |||
11317 | @@ -8125,19 +8621,6 @@ _ACEOF | ||
11318 | |||
11319 | |||
11320 | |||
11321 | - | ||
11322 | - | ||
11323 | - | ||
11324 | - | ||
11325 | - | ||
11326 | - | ||
11327 | - | ||
11328 | - | ||
11329 | - | ||
11330 | - | ||
11331 | - | ||
11332 | - | ||
11333 | - | ||
11334 | case $host_os in | ||
11335 | aix3*) | ||
11336 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
11337 | @@ -8150,25 +8633,8 @@ aix3*) | ||
11338 | ;; | ||
11339 | esac | ||
11340 | |||
11341 | -# Sed substitution that helps us do robust quoting. It backslashifies | ||
11342 | -# metacharacters that are still active within double-quoted strings. | ||
11343 | -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
11344 | - | ||
11345 | -# Same as above, but do not quote variable references. | ||
11346 | -double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
11347 | - | ||
11348 | -# Sed substitution to delay expansion of an escaped shell variable in a | ||
11349 | -# double_quote_subst'ed string. | ||
11350 | -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
11351 | - | ||
11352 | -# Sed substitution to delay expansion of an escaped single quote. | ||
11353 | -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
11354 | - | ||
11355 | -# Sed substitution to avoid accidental globbing in evaled expressions | ||
11356 | -no_glob_subst='s/\*/\\\*/g' | ||
11357 | - | ||
11358 | # Global variables: | ||
11359 | -ofile=libtool | ||
11360 | +ofile=${host_alias}-libtool | ||
11361 | can_build_shared=yes | ||
11362 | |||
11363 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
11364 | @@ -8195,7 +8661,7 @@ for cc_temp in $compiler""; do | ||
11365 | *) break;; | ||
11366 | esac | ||
11367 | done | ||
11368 | -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
11369 | +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
11370 | |||
11371 | |||
11372 | # Only perform the check for file, if the check method requires it | ||
11373 | @@ -8404,7 +8870,12 @@ if test -n "$compiler"; then | ||
11374 | lt_prog_compiler_no_builtin_flag= | ||
11375 | |||
11376 | if test "$GCC" = yes; then | ||
11377 | - lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
11378 | + case $cc_basename in | ||
11379 | + nvcc*) | ||
11380 | + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | ||
11381 | + *) | ||
11382 | + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | ||
11383 | + esac | ||
11384 | |||
11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
11386 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
11387 | @@ -8424,15 +8895,15 @@ else | ||
11388 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
11389 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
11390 | -e 's:$: $lt_compiler_flag:'` | ||
11391 | - (eval echo "\"\$as_me:8427: $lt_compile\"" >&5) | ||
11392 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
11393 | (eval "$lt_compile" 2>conftest.err) | ||
11394 | ac_status=$? | ||
11395 | cat conftest.err >&5 | ||
11396 | - echo "$as_me:8431: \$? = $ac_status" >&5 | ||
11397 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11398 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
11399 | # The compiler can only warn and ignore the option if not recognized | ||
11400 | # So say no if there are warnings other than the usual output. | ||
11401 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
11402 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
11403 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
11404 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
11405 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
11406 | @@ -8461,8 +8932,6 @@ fi | ||
11407 | lt_prog_compiler_pic= | ||
11408 | lt_prog_compiler_static= | ||
11409 | |||
11410 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
11411 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
11412 | |||
11413 | if test "$GCC" = yes; then | ||
11414 | lt_prog_compiler_wl='-Wl,' | ||
11415 | @@ -8510,6 +8979,12 @@ $as_echo_n "checking for $compiler optio | ||
11416 | lt_prog_compiler_pic='-fno-common' | ||
11417 | ;; | ||
11418 | |||
11419 | + haiku*) | ||
11420 | + # PIC is the default for Haiku. | ||
11421 | + # The "-static" flag exists, but is broken. | ||
11422 | + lt_prog_compiler_static= | ||
11423 | + ;; | ||
11424 | + | ||
11425 | hpux*) | ||
11426 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
11427 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
11428 | @@ -8552,6 +9027,13 @@ $as_echo_n "checking for $compiler optio | ||
11429 | lt_prog_compiler_pic='-fPIC' | ||
11430 | ;; | ||
11431 | esac | ||
11432 | + | ||
11433 | + case $cc_basename in | ||
11434 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
11435 | + lt_prog_compiler_wl='-Xlinker ' | ||
11436 | + lt_prog_compiler_pic='-Xcompiler -fPIC' | ||
11437 | + ;; | ||
11438 | + esac | ||
11439 | else | ||
11440 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
11441 | case $host_os in | ||
11442 | @@ -8614,7 +9096,13 @@ $as_echo_n "checking for $compiler optio | ||
11443 | lt_prog_compiler_pic='--shared' | ||
11444 | lt_prog_compiler_static='--static' | ||
11445 | ;; | ||
11446 | - pgcc* | pgf77* | pgf90* | pgf95*) | ||
11447 | + nagfor*) | ||
11448 | + # NAG Fortran compiler | ||
11449 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
11450 | + lt_prog_compiler_pic='-PIC' | ||
11451 | + lt_prog_compiler_static='-Bstatic' | ||
11452 | + ;; | ||
11453 | + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
11454 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
11455 | # which looks to be a dead project) | ||
11456 | lt_prog_compiler_wl='-Wl,' | ||
11457 | @@ -8626,25 +9114,25 @@ $as_echo_n "checking for $compiler optio | ||
11458 | # All Alpha code is PIC. | ||
11459 | lt_prog_compiler_static='-non_shared' | ||
11460 | ;; | ||
11461 | - xl*) | ||
11462 | - # IBM XL C 8.0/Fortran 10.1 on PPC | ||
11463 | + xl* | bgxl* | bgf* | mpixl*) | ||
11464 | + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | ||
11465 | lt_prog_compiler_wl='-Wl,' | ||
11466 | lt_prog_compiler_pic='-qpic' | ||
11467 | lt_prog_compiler_static='-qstaticlink' | ||
11468 | ;; | ||
11469 | *) | ||
11470 | case `$CC -V 2>&1 | sed 5q` in | ||
11471 | - *Sun\ C*) | ||
11472 | - # Sun C 5.9 | ||
11473 | + *Sun\ F* | *Sun*Fortran*) | ||
11474 | + # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
11475 | lt_prog_compiler_pic='-KPIC' | ||
11476 | lt_prog_compiler_static='-Bstatic' | ||
11477 | - lt_prog_compiler_wl='-Wl,' | ||
11478 | + lt_prog_compiler_wl='' | ||
11479 | ;; | ||
11480 | - *Sun\ F*) | ||
11481 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
11482 | + *Sun\ C*) | ||
11483 | + # Sun C 5.9 | ||
11484 | lt_prog_compiler_pic='-KPIC' | ||
11485 | lt_prog_compiler_static='-Bstatic' | ||
11486 | - lt_prog_compiler_wl='' | ||
11487 | + lt_prog_compiler_wl='-Wl,' | ||
11488 | ;; | ||
11489 | esac | ||
11490 | ;; | ||
11491 | @@ -8676,7 +9164,7 @@ $as_echo_n "checking for $compiler optio | ||
11492 | lt_prog_compiler_pic='-KPIC' | ||
11493 | lt_prog_compiler_static='-Bstatic' | ||
11494 | case $cc_basename in | ||
11495 | - f77* | f90* | f95*) | ||
11496 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
11497 | lt_prog_compiler_wl='-Qoption ld ';; | ||
11498 | *) | ||
11499 | lt_prog_compiler_wl='-Wl,';; | ||
11500 | @@ -8733,13 +9221,17 @@ case $host_os in | ||
11501 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
11502 | ;; | ||
11503 | esac | ||
11504 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
11505 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
11506 | - | ||
11507 | - | ||
11508 | - | ||
11509 | - | ||
11510 | |||
11511 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
11512 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
11513 | +if test "${lt_cv_prog_compiler_pic+set}" = set; then : | ||
11514 | + $as_echo_n "(cached) " >&6 | ||
11515 | +else | ||
11516 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
11517 | +fi | ||
11518 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
11519 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
11520 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
11521 | |||
11522 | # | ||
11523 | # Check to make sure the PIC flag actually works. | ||
11524 | @@ -8763,15 +9255,15 @@ else | ||
11525 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
11526 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
11527 | -e 's:$: $lt_compiler_flag:'` | ||
11528 | - (eval echo "\"\$as_me:8766: $lt_compile\"" >&5) | ||
11529 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
11530 | (eval "$lt_compile" 2>conftest.err) | ||
11531 | ac_status=$? | ||
11532 | cat conftest.err >&5 | ||
11533 | - echo "$as_me:8770: \$? = $ac_status" >&5 | ||
11534 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11535 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
11536 | # The compiler can only warn and ignore the option if not recognized | ||
11537 | # So say no if there are warnings other than the usual output. | ||
11538 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
11539 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
11540 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
11541 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
11542 | lt_cv_prog_compiler_pic_works=yes | ||
11543 | @@ -8800,6 +9292,11 @@ fi | ||
11544 | |||
11545 | |||
11546 | |||
11547 | + | ||
11548 | + | ||
11549 | + | ||
11550 | + | ||
11551 | + | ||
11552 | # | ||
11553 | # Check to make sure the static flag actually works. | ||
11554 | # | ||
11555 | @@ -8819,7 +9316,7 @@ else | ||
11556 | if test -s conftest.err; then | ||
11557 | # Append any errors to the config.log. | ||
11558 | cat conftest.err 1>&5 | ||
11559 | - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
11560 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
11561 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
11562 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
11563 | lt_cv_prog_compiler_static_works=yes | ||
11564 | @@ -8868,16 +9365,16 @@ else | ||
11565 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
11566 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
11567 | -e 's:$: $lt_compiler_flag:'` | ||
11568 | - (eval echo "\"\$as_me:8871: $lt_compile\"" >&5) | ||
11569 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
11570 | (eval "$lt_compile" 2>out/conftest.err) | ||
11571 | ac_status=$? | ||
11572 | cat out/conftest.err >&5 | ||
11573 | - echo "$as_me:8875: \$? = $ac_status" >&5 | ||
11574 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11575 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
11576 | then | ||
11577 | # The compiler can only warn and ignore the option if not recognized | ||
11578 | # So say no if there are warnings | ||
11579 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
11580 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
11581 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
11582 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
11583 | lt_cv_prog_compiler_c_o=yes | ||
11584 | @@ -8923,16 +9420,16 @@ else | ||
11585 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
11586 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
11587 | -e 's:$: $lt_compiler_flag:'` | ||
11588 | - (eval echo "\"\$as_me:8926: $lt_compile\"" >&5) | ||
11589 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
11590 | (eval "$lt_compile" 2>out/conftest.err) | ||
11591 | ac_status=$? | ||
11592 | cat out/conftest.err >&5 | ||
11593 | - echo "$as_me:8930: \$? = $ac_status" >&5 | ||
11594 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11595 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
11596 | then | ||
11597 | # The compiler can only warn and ignore the option if not recognized | ||
11598 | # So say no if there are warnings | ||
11599 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
11600 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
11601 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
11602 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
11603 | lt_cv_prog_compiler_c_o=yes | ||
11604 | @@ -9045,7 +9542,33 @@ $as_echo_n "checking whether the $compil | ||
11605 | esac | ||
11606 | |||
11607 | ld_shlibs=yes | ||
11608 | + | ||
11609 | + # On some targets, GNU ld is compatible enough with the native linker | ||
11610 | + # that we're better off using the native interface for both. | ||
11611 | + lt_use_gnu_ld_interface=no | ||
11612 | if test "$with_gnu_ld" = yes; then | ||
11613 | + case $host_os in | ||
11614 | + aix*) | ||
11615 | + # The AIX port of GNU ld has always aspired to compatibility | ||
11616 | + # with the native linker. However, as the warning in the GNU ld | ||
11617 | + # block says, versions before 2.19.5* couldn't really create working | ||
11618 | + # shared libraries, regardless of the interface used. | ||
11619 | + case `$LD -v 2>&1` in | ||
11620 | + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | ||
11621 | + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | ||
11622 | + *\ \(GNU\ Binutils\)\ [3-9]*) ;; | ||
11623 | + *) | ||
11624 | + lt_use_gnu_ld_interface=yes | ||
11625 | + ;; | ||
11626 | + esac | ||
11627 | + ;; | ||
11628 | + *) | ||
11629 | + lt_use_gnu_ld_interface=yes | ||
11630 | + ;; | ||
11631 | + esac | ||
11632 | + fi | ||
11633 | + | ||
11634 | + if test "$lt_use_gnu_ld_interface" = yes; then | ||
11635 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
11636 | wlarc='${wl}' | ||
11637 | |||
11638 | @@ -9063,6 +9586,7 @@ $as_echo_n "checking whether the $compil | ||
11639 | fi | ||
11640 | supports_anon_versioning=no | ||
11641 | case `$LD -v 2>&1` in | ||
11642 | + *GNU\ gold*) supports_anon_versioning=yes ;; | ||
11643 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
11644 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
11645 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
11646 | @@ -9078,11 +9602,12 @@ $as_echo_n "checking whether the $compil | ||
11647 | ld_shlibs=no | ||
11648 | cat <<_LT_EOF 1>&2 | ||
11649 | |||
11650 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
11651 | +*** Warning: the GNU linker, at least up to release 2.19, is reported | ||
11652 | *** to be unable to reliably create shared libraries on AIX. | ||
11653 | *** Therefore, libtool is disabling shared libraries support. If you | ||
11654 | -*** really care for shared libraries, you may want to modify your PATH | ||
11655 | -*** so that a non-GNU linker is found, and then restart. | ||
11656 | +*** really care for shared libraries, you may want to install binutils | ||
11657 | +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | ||
11658 | +*** You will then need to restart the configuration process. | ||
11659 | |||
11660 | _LT_EOF | ||
11661 | fi | ||
11662 | @@ -9118,10 +9643,12 @@ _LT_EOF | ||
11663 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
11664 | # as there is no search path for DLLs. | ||
11665 | hardcode_libdir_flag_spec='-L$libdir' | ||
11666 | + export_dynamic_flag_spec='${wl}--export-all-symbols' | ||
11667 | allow_undefined_flag=unsupported | ||
11668 | always_export_symbols=no | ||
11669 | enable_shared_with_static_runtimes=yes | ||
11670 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
11671 | + 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' | ||
11672 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
11673 | |||
11674 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
11675 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
11676 | @@ -9139,6 +9666,11 @@ _LT_EOF | ||
11677 | fi | ||
11678 | ;; | ||
11679 | |||
11680 | + haiku*) | ||
11681 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11682 | + link_all_deplibs=yes | ||
11683 | + ;; | ||
11684 | + | ||
11685 | interix[3-9]*) | ||
11686 | hardcode_direct=no | ||
11687 | hardcode_shlibpath_var=no | ||
11688 | @@ -9164,15 +9696,16 @@ _LT_EOF | ||
11689 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
11690 | && test "$tmp_diet" = no | ||
11691 | then | ||
11692 | - tmp_addflag= | ||
11693 | + tmp_addflag=' $pic_flag' | ||
11694 | tmp_sharedflag='-shared' | ||
11695 | case $cc_basename,$host_cpu in | ||
11696 | pgcc*) # Portland Group C compiler | ||
11697 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
11698 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
11699 | tmp_addflag=' $pic_flag' | ||
11700 | ;; | ||
11701 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
11702 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
11703 | + pgf77* | pgf90* | pgf95* | pgfortran*) | ||
11704 | + # Portland Group f77 and f90 compilers | ||
11705 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
11706 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
11707 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
11708 | tmp_addflag=' -i_dynamic' ;; | ||
11709 | @@ -9183,13 +9716,17 @@ _LT_EOF | ||
11710 | lf95*) # Lahey Fortran 8.1 | ||
11711 | whole_archive_flag_spec= | ||
11712 | tmp_sharedflag='--shared' ;; | ||
11713 | - xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
11714 | + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
11715 | tmp_sharedflag='-qmkshrobj' | ||
11716 | tmp_addflag= ;; | ||
11717 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
11718 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
11719 | + compiler_needs_object=yes | ||
11720 | + ;; | ||
11721 | esac | ||
11722 | case `$CC -V 2>&1 | sed 5q` in | ||
11723 | *Sun\ C*) # Sun C 5.9 | ||
11724 | - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
11725 | + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
11726 | compiler_needs_object=yes | ||
11727 | tmp_sharedflag='-G' ;; | ||
11728 | *Sun\ F*) # Sun Fortran 8.3 | ||
11729 | @@ -9205,17 +9742,17 @@ _LT_EOF | ||
11730 | fi | ||
11731 | |||
11732 | case $cc_basename in | ||
11733 | - xlf*) | ||
11734 | + xlf* | bgf* | bgxlf* | mpixlf*) | ||
11735 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
11736 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
11737 | hardcode_libdir_flag_spec= | ||
11738 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
11739 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
11740 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
11741 | if test "x$supports_anon_versioning" = xyes; then | ||
11742 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
11743 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
11744 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
11745 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
11746 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
11747 | fi | ||
11748 | ;; | ||
11749 | esac | ||
11750 | @@ -9229,8 +9766,8 @@ _LT_EOF | ||
11751 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
11752 | wlarc= | ||
11753 | else | ||
11754 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11755 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11756 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11757 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11758 | fi | ||
11759 | ;; | ||
11760 | |||
11761 | @@ -9248,8 +9785,8 @@ _LT_EOF | ||
11762 | |||
11763 | _LT_EOF | ||
11764 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
11765 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11766 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11767 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11768 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11769 | else | ||
11770 | ld_shlibs=no | ||
11771 | fi | ||
11772 | @@ -9295,8 +9832,8 @@ _LT_EOF | ||
11773 | |||
11774 | *) | ||
11775 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
11776 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11777 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11778 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11779 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11780 | else | ||
11781 | ld_shlibs=no | ||
11782 | fi | ||
11783 | @@ -9336,8 +9873,10 @@ _LT_EOF | ||
11784 | else | ||
11785 | # If we're using GNU nm, then we don't want the "-C" option. | ||
11786 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
11787 | + # Also, AIX nm treats weak defined symbols like other global | ||
11788 | + # defined symbols, whereas GNU nm marks them as "W". | ||
11789 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
11790 | - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
11791 | + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
11792 | else | ||
11793 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
11794 | fi | ||
11795 | @@ -9424,7 +9963,13 @@ _LT_EOF | ||
11796 | allow_undefined_flag='-berok' | ||
11797 | # Determine the default libpath from the value encoded in an | ||
11798 | # empty executable. | ||
11799 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11800 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
11801 | + aix_libpath=$lt_cv_aix_libpath | ||
11802 | +else | ||
11803 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
11804 | + $as_echo_n "(cached) " >&6 | ||
11805 | +else | ||
11806 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11807 | /* end confdefs.h. */ | ||
11808 | |||
11809 | int | ||
11810 | @@ -9437,25 +9982,32 @@ main () | ||
11811 | _ACEOF | ||
11812 | if ac_fn_c_try_link "$LINENO"; then : | ||
11813 | |||
11814 | -lt_aix_libpath_sed=' | ||
11815 | - /Import File Strings/,/^$/ { | ||
11816 | - /^0/ { | ||
11817 | - s/^0 *\(.*\)$/\1/ | ||
11818 | - p | ||
11819 | - } | ||
11820 | - }' | ||
11821 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11822 | -# Check for a 64-bit object if we didn't find anything. | ||
11823 | -if test -z "$aix_libpath"; then | ||
11824 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11825 | -fi | ||
11826 | + lt_aix_libpath_sed=' | ||
11827 | + /Import File Strings/,/^$/ { | ||
11828 | + /^0/ { | ||
11829 | + s/^0 *\([^ ]*\) *$/\1/ | ||
11830 | + p | ||
11831 | + } | ||
11832 | + }' | ||
11833 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11834 | + # Check for a 64-bit object if we didn't find anything. | ||
11835 | + if test -z "$lt_cv_aix_libpath_"; then | ||
11836 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11837 | + fi | ||
11838 | fi | ||
11839 | rm -f core conftest.err conftest.$ac_objext \ | ||
11840 | conftest$ac_exeext conftest.$ac_ext | ||
11841 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11842 | + if test -z "$lt_cv_aix_libpath_"; then | ||
11843 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
11844 | + fi | ||
11845 | + | ||
11846 | +fi | ||
11847 | + | ||
11848 | + aix_libpath=$lt_cv_aix_libpath_ | ||
11849 | +fi | ||
11850 | |||
11851 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
11852 | - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
11853 | + 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" | ||
11854 | else | ||
11855 | if test "$host_cpu" = ia64; then | ||
11856 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
11857 | @@ -9464,7 +10016,13 @@ if test -z "$aix_libpath"; then aix_libp | ||
11858 | else | ||
11859 | # Determine the default libpath from the value encoded in an | ||
11860 | # empty executable. | ||
11861 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11862 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
11863 | + aix_libpath=$lt_cv_aix_libpath | ||
11864 | +else | ||
11865 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
11866 | + $as_echo_n "(cached) " >&6 | ||
11867 | +else | ||
11868 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11869 | /* end confdefs.h. */ | ||
11870 | |||
11871 | int | ||
11872 | @@ -9477,30 +10035,42 @@ main () | ||
11873 | _ACEOF | ||
11874 | if ac_fn_c_try_link "$LINENO"; then : | ||
11875 | |||
11876 | -lt_aix_libpath_sed=' | ||
11877 | - /Import File Strings/,/^$/ { | ||
11878 | - /^0/ { | ||
11879 | - s/^0 *\(.*\)$/\1/ | ||
11880 | - p | ||
11881 | - } | ||
11882 | - }' | ||
11883 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11884 | -# Check for a 64-bit object if we didn't find anything. | ||
11885 | -if test -z "$aix_libpath"; then | ||
11886 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11887 | -fi | ||
11888 | + lt_aix_libpath_sed=' | ||
11889 | + /Import File Strings/,/^$/ { | ||
11890 | + /^0/ { | ||
11891 | + s/^0 *\([^ ]*\) *$/\1/ | ||
11892 | + p | ||
11893 | + } | ||
11894 | + }' | ||
11895 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11896 | + # Check for a 64-bit object if we didn't find anything. | ||
11897 | + if test -z "$lt_cv_aix_libpath_"; then | ||
11898 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
11899 | + fi | ||
11900 | fi | ||
11901 | rm -f core conftest.err conftest.$ac_objext \ | ||
11902 | conftest$ac_exeext conftest.$ac_ext | ||
11903 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11904 | + if test -z "$lt_cv_aix_libpath_"; then | ||
11905 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
11906 | + fi | ||
11907 | + | ||
11908 | +fi | ||
11909 | + | ||
11910 | + aix_libpath=$lt_cv_aix_libpath_ | ||
11911 | +fi | ||
11912 | |||
11913 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
11914 | # Warning - without using the other run time loading flags, | ||
11915 | # -berok will link without error, but may produce a broken library. | ||
11916 | no_undefined_flag=' ${wl}-bernotok' | ||
11917 | allow_undefined_flag=' ${wl}-berok' | ||
11918 | - # Exported symbols can be pulled into shared objects from archives | ||
11919 | - whole_archive_flag_spec='$convenience' | ||
11920 | + if test "$with_gnu_ld" = yes; then | ||
11921 | + # We only use this code for GNU lds that support --whole-archive. | ||
11922 | + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
11923 | + else | ||
11924 | + # Exported symbols can be pulled into shared objects from archives | ||
11925 | + whole_archive_flag_spec='$convenience' | ||
11926 | + fi | ||
11927 | archive_cmds_need_lc=yes | ||
11928 | # This is similar to how AIX traditionally builds its shared libraries. | ||
11929 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
11930 | @@ -9532,20 +10102,63 @@ if test -z "$aix_libpath"; then aix_libp | ||
11931 | # Microsoft Visual C++. | ||
11932 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
11933 | # no search path for DLLs. | ||
11934 | - hardcode_libdir_flag_spec=' ' | ||
11935 | - allow_undefined_flag=unsupported | ||
11936 | - # Tell ltmain to make .lib files, not .a files. | ||
11937 | - libext=lib | ||
11938 | - # Tell ltmain to make .dll files, not .so files. | ||
11939 | - shrext_cmds=".dll" | ||
11940 | - # FIXME: Setting linknames here is a bad hack. | ||
11941 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
11942 | - # The linker will automatically build a .lib file if we build a DLL. | ||
11943 | - old_archive_from_new_cmds='true' | ||
11944 | - # FIXME: Should let the user specify the lib program. | ||
11945 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
11946 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
11947 | - enable_shared_with_static_runtimes=yes | ||
11948 | + case $cc_basename in | ||
11949 | + cl*) | ||
11950 | + # Native MSVC | ||
11951 | + hardcode_libdir_flag_spec=' ' | ||
11952 | + allow_undefined_flag=unsupported | ||
11953 | + always_export_symbols=yes | ||
11954 | + file_list_spec='@' | ||
11955 | + # Tell ltmain to make .lib files, not .a files. | ||
11956 | + libext=lib | ||
11957 | + # Tell ltmain to make .dll files, not .so files. | ||
11958 | + shrext_cmds=".dll" | ||
11959 | + # FIXME: Setting linknames here is a bad hack. | ||
11960 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
11961 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
11962 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
11963 | + else | ||
11964 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
11965 | + fi~ | ||
11966 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
11967 | + linknames=' | ||
11968 | + # The linker will not automatically build a static lib if we build a DLL. | ||
11969 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
11970 | + enable_shared_with_static_runtimes=yes | ||
11971 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
11972 | + # Don't use ranlib | ||
11973 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
11974 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
11975 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
11976 | + case $lt_outputfile in | ||
11977 | + *.exe|*.EXE) ;; | ||
11978 | + *) | ||
11979 | + lt_outputfile="$lt_outputfile.exe" | ||
11980 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
11981 | + ;; | ||
11982 | + esac~ | ||
11983 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
11984 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
11985 | + $RM "$lt_outputfile.manifest"; | ||
11986 | + fi' | ||
11987 | + ;; | ||
11988 | + *) | ||
11989 | + # Assume MSVC wrapper | ||
11990 | + hardcode_libdir_flag_spec=' ' | ||
11991 | + allow_undefined_flag=unsupported | ||
11992 | + # Tell ltmain to make .lib files, not .a files. | ||
11993 | + libext=lib | ||
11994 | + # Tell ltmain to make .dll files, not .so files. | ||
11995 | + shrext_cmds=".dll" | ||
11996 | + # FIXME: Setting linknames here is a bad hack. | ||
11997 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
11998 | + # The linker will automatically build a .lib file if we build a DLL. | ||
11999 | + old_archive_from_new_cmds='true' | ||
12000 | + # FIXME: Should let the user specify the lib program. | ||
12001 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
12002 | + enable_shared_with_static_runtimes=yes | ||
12003 | + ;; | ||
12004 | + esac | ||
12005 | ;; | ||
12006 | |||
12007 | darwin* | rhapsody*) | ||
12008 | @@ -9555,7 +10168,11 @@ if test -z "$aix_libpath"; then aix_libp | ||
12009 | hardcode_direct=no | ||
12010 | hardcode_automatic=yes | ||
12011 | hardcode_shlibpath_var=unsupported | ||
12012 | - whole_archive_flag_spec='' | ||
12013 | + if test "$lt_cv_ld_force_load" = "yes"; then | ||
12014 | + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | ||
12015 | + else | ||
12016 | + whole_archive_flag_spec='' | ||
12017 | + fi | ||
12018 | link_all_deplibs=yes | ||
12019 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
12020 | case $cc_basename in | ||
12021 | @@ -9563,7 +10180,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
12022 | *) _lt_dar_can_shared=$GCC ;; | ||
12023 | esac | ||
12024 | if test "$_lt_dar_can_shared" = "yes"; then | ||
12025 | - output_verbose_link_cmd=echo | ||
12026 | + output_verbose_link_cmd=func_echo_all | ||
12027 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
12028 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
12029 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | ||
12030 | @@ -9606,7 +10223,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
12031 | |||
12032 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
12033 | freebsd* | dragonfly*) | ||
12034 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
12035 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
12036 | hardcode_libdir_flag_spec='-R$libdir' | ||
12037 | hardcode_direct=yes | ||
12038 | hardcode_shlibpath_var=no | ||
12039 | @@ -9614,7 +10231,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
12040 | |||
12041 | hpux9*) | ||
12042 | if test "$GCC" = yes; then | ||
12043 | - 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' | ||
12044 | + 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' | ||
12045 | else | ||
12046 | 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' | ||
12047 | fi | ||
12048 | @@ -9629,8 +10246,8 @@ if test -z "$aix_libpath"; then aix_libp | ||
12049 | ;; | ||
12050 | |||
12051 | hpux10*) | ||
12052 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
12053 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
12054 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
12055 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
12056 | else | ||
12057 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
12058 | fi | ||
12059 | @@ -9648,16 +10265,16 @@ if test -z "$aix_libpath"; then aix_libp | ||
12060 | ;; | ||
12061 | |||
12062 | hpux11*) | ||
12063 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
12064 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
12065 | case $host_cpu in | ||
12066 | hppa*64*) | ||
12067 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12068 | ;; | ||
12069 | ia64*) | ||
12070 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
12071 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
12072 | ;; | ||
12073 | *) | ||
12074 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
12075 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
12076 | ;; | ||
12077 | esac | ||
12078 | else | ||
12079 | @@ -9669,7 +10286,46 @@ if test -z "$aix_libpath"; then aix_libp | ||
12080 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
12081 | ;; | ||
12082 | *) | ||
12083 | - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
12084 | + | ||
12085 | + # Older versions of the 11.00 compiler do not understand -b yet | ||
12086 | + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | ||
12087 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | ||
12088 | +$as_echo_n "checking if $CC understands -b... " >&6; } | ||
12089 | +if test "${lt_cv_prog_compiler__b+set}" = set; then : | ||
12090 | + $as_echo_n "(cached) " >&6 | ||
12091 | +else | ||
12092 | + lt_cv_prog_compiler__b=no | ||
12093 | + save_LDFLAGS="$LDFLAGS" | ||
12094 | + LDFLAGS="$LDFLAGS -b" | ||
12095 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
12096 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
12097 | + # The linker can only warn and ignore the option if not recognized | ||
12098 | + # So say no if there are warnings | ||
12099 | + if test -s conftest.err; then | ||
12100 | + # Append any errors to the config.log. | ||
12101 | + cat conftest.err 1>&5 | ||
12102 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
12103 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
12104 | + if diff conftest.exp conftest.er2 >/dev/null; then | ||
12105 | + lt_cv_prog_compiler__b=yes | ||
12106 | + fi | ||
12107 | + else | ||
12108 | + lt_cv_prog_compiler__b=yes | ||
12109 | + fi | ||
12110 | + fi | ||
12111 | + $RM -r conftest* | ||
12112 | + LDFLAGS="$save_LDFLAGS" | ||
12113 | + | ||
12114 | +fi | ||
12115 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | ||
12116 | +$as_echo "$lt_cv_prog_compiler__b" >&6; } | ||
12117 | + | ||
12118 | +if test x"$lt_cv_prog_compiler__b" = xyes; then | ||
12119 | + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
12120 | +else | ||
12121 | + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
12122 | +fi | ||
12123 | + | ||
12124 | ;; | ||
12125 | esac | ||
12126 | fi | ||
12127 | @@ -9697,26 +10353,39 @@ if test -z "$aix_libpath"; then aix_libp | ||
12128 | |||
12129 | irix5* | irix6* | nonstopux*) | ||
12130 | if test "$GCC" = yes; then | ||
12131 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
12132 | + 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' | ||
12133 | # Try to use the -exported_symbol ld option, if it does not | ||
12134 | # work, assume that -exports_file does not work either and | ||
12135 | # implicitly export all symbols. | ||
12136 | - save_LDFLAGS="$LDFLAGS" | ||
12137 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
12138 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12139 | + # This should be the same for all languages, so no per-tag cache variable. | ||
12140 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
12141 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
12142 | +if test "${lt_cv_irix_exported_symbol+set}" = set; then : | ||
12143 | + $as_echo_n "(cached) " >&6 | ||
12144 | +else | ||
12145 | + save_LDFLAGS="$LDFLAGS" | ||
12146 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
12147 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12148 | /* end confdefs.h. */ | ||
12149 | -int foo(void) {} | ||
12150 | +int foo (void) { return 0; } | ||
12151 | _ACEOF | ||
12152 | if ac_fn_c_try_link "$LINENO"; then : | ||
12153 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
12154 | - | ||
12155 | + lt_cv_irix_exported_symbol=yes | ||
12156 | +else | ||
12157 | + lt_cv_irix_exported_symbol=no | ||
12158 | fi | ||
12159 | rm -f core conftest.err conftest.$ac_objext \ | ||
12160 | conftest$ac_exeext conftest.$ac_ext | ||
12161 | - LDFLAGS="$save_LDFLAGS" | ||
12162 | + LDFLAGS="$save_LDFLAGS" | ||
12163 | +fi | ||
12164 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
12165 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
12166 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
12167 | + 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' | ||
12168 | + fi | ||
12169 | else | ||
12170 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
12171 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
12172 | + 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' | ||
12173 | + 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' | ||
12174 | fi | ||
12175 | archive_cmds_need_lc='no' | ||
12176 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
12177 | @@ -9778,17 +10447,17 @@ rm -f core conftest.err conftest.$ac_obj | ||
12178 | hardcode_libdir_flag_spec='-L$libdir' | ||
12179 | hardcode_minus_L=yes | ||
12180 | allow_undefined_flag=unsupported | ||
12181 | - archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
12182 | + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
12183 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
12184 | ;; | ||
12185 | |||
12186 | osf3*) | ||
12187 | if test "$GCC" = yes; then | ||
12188 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
12189 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
12190 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
12191 | else | ||
12192 | allow_undefined_flag=' -expect_unresolved \*' | ||
12193 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
12194 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
12195 | fi | ||
12196 | archive_cmds_need_lc='no' | ||
12197 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
12198 | @@ -9798,13 +10467,13 @@ rm -f core conftest.err conftest.$ac_obj | ||
12199 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
12200 | if test "$GCC" = yes; then | ||
12201 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
12202 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
12203 | + 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' | ||
12204 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
12205 | else | ||
12206 | allow_undefined_flag=' -expect_unresolved \*' | ||
12207 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
12208 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
12209 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | ||
12210 | - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
12211 | + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
12212 | |||
12213 | # Both c and cxx compiler support -rpath directly | ||
12214 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
12215 | @@ -9817,9 +10486,9 @@ rm -f core conftest.err conftest.$ac_obj | ||
12216 | no_undefined_flag=' -z defs' | ||
12217 | if test "$GCC" = yes; then | ||
12218 | wlarc='${wl}' | ||
12219 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12220 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12221 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
12222 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
12223 | + $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' | ||
12224 | else | ||
12225 | case `$CC -V 2>&1` in | ||
12226 | *"Compilers 5.0"*) | ||
12227 | @@ -10221,16 +10890,23 @@ if test "$GCC" = yes; then | ||
12228 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
12229 | *) lt_awk_arg="/^libraries:/" ;; | ||
12230 | esac | ||
12231 | - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
12232 | - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
12233 | + case $host_os in | ||
12234 | + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | ||
12235 | + *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
12236 | + esac | ||
12237 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
12238 | + case $lt_search_path_spec in | ||
12239 | + *\;*) | ||
12240 | # if the path contains ";" then we assume it to be the separator | ||
12241 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
12242 | # assumed that no part of a normal pathname contains ";" but that should | ||
12243 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
12244 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
12245 | - else | ||
12246 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
12247 | - fi | ||
12248 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
12249 | + ;; | ||
12250 | + *) | ||
12251 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
12252 | + ;; | ||
12253 | + esac | ||
12254 | # Ok, now we have the path, separated by spaces, we can step through it | ||
12255 | # and add multilib dir if necessary. | ||
12256 | lt_tmp_lt_search_path_spec= | ||
12257 | @@ -10243,7 +10919,7 @@ if test "$GCC" = yes; then | ||
12258 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
12259 | fi | ||
12260 | done | ||
12261 | - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
12262 | + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
12263 | BEGIN {RS=" "; FS="/|\n";} { | ||
12264 | lt_foo=""; | ||
12265 | lt_count=0; | ||
12266 | @@ -10263,7 +10939,13 @@ BEGIN {RS=" "; FS="/|\n";} { | ||
12267 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
12268 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
12269 | }'` | ||
12270 | - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
12271 | + # AWK program above erroneously prepends '/' to C:/dos/paths | ||
12272 | + # for these hosts. | ||
12273 | + case $host_os in | ||
12274 | + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
12275 | + $SED 's,/\([A-Za-z]:\),\1,g'` ;; | ||
12276 | + esac | ||
12277 | + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
12278 | else | ||
12279 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
12280 | fi | ||
12281 | @@ -10351,7 +11033,7 @@ amigaos*) | ||
12282 | m68k) | ||
12283 | library_names_spec='$libname.ixlibrary $libname.a' | ||
12284 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
12285 | - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
12286 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
12287 | ;; | ||
12288 | esac | ||
12289 | ;; | ||
12290 | @@ -10382,8 +11064,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
12291 | need_version=no | ||
12292 | need_lib_prefix=no | ||
12293 | |||
12294 | - case $GCC,$host_os in | ||
12295 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
12296 | + case $GCC,$cc_basename in | ||
12297 | + yes,*) | ||
12298 | + # gcc | ||
12299 | library_names_spec='$libname.dll.a' | ||
12300 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
12301 | postinstall_cmds='base_file=`basename \${file}`~ | ||
12302 | @@ -10404,36 +11087,83 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
12303 | cygwin*) | ||
12304 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
12305 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
12306 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
12307 | + | ||
12308 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | ||
12309 | ;; | ||
12310 | mingw* | cegcc*) | ||
12311 | # MinGW DLLs use traditional 'lib' prefix | ||
12312 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
12313 | - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
12314 | - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
12315 | - # It is most probably a Windows format PATH printed by | ||
12316 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
12317 | - # path with ; separators, and with drive letters. We can handle the | ||
12318 | - # drive letters (cygwin fileutils understands them), so leave them, | ||
12319 | - # especially as we might pass files found there to a mingw objdump, | ||
12320 | - # which wouldn't understand a cygwinified path. Ahh. | ||
12321 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
12322 | - else | ||
12323 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
12324 | - fi | ||
12325 | ;; | ||
12326 | pw32*) | ||
12327 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
12328 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
12329 | ;; | ||
12330 | esac | ||
12331 | + dynamic_linker='Win32 ld.exe' | ||
12332 | + ;; | ||
12333 | + | ||
12334 | + *,cl*) | ||
12335 | + # Native MSVC | ||
12336 | + libname_spec='$name' | ||
12337 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
12338 | + library_names_spec='${libname}.dll.lib' | ||
12339 | + | ||
12340 | + case $build_os in | ||
12341 | + mingw*) | ||
12342 | + sys_lib_search_path_spec= | ||
12343 | + lt_save_ifs=$IFS | ||
12344 | + IFS=';' | ||
12345 | + for lt_path in $LIB | ||
12346 | + do | ||
12347 | + IFS=$lt_save_ifs | ||
12348 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
12349 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
12350 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
12351 | + done | ||
12352 | + IFS=$lt_save_ifs | ||
12353 | + # Convert to MSYS style. | ||
12354 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
12355 | + ;; | ||
12356 | + cygwin*) | ||
12357 | + # Convert to unix form, then to dos form, then back to unix form | ||
12358 | + # but this time dos style (no spaces!) so that the unix form looks | ||
12359 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
12360 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
12361 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
12362 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
12363 | + ;; | ||
12364 | + *) | ||
12365 | + sys_lib_search_path_spec="$LIB" | ||
12366 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
12367 | + # It is most probably a Windows format PATH. | ||
12368 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
12369 | + else | ||
12370 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
12371 | + fi | ||
12372 | + # FIXME: find the short name or the path components, as spaces are | ||
12373 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
12374 | + ;; | ||
12375 | + esac | ||
12376 | + | ||
12377 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
12378 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
12379 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
12380 | + dldir=$destdir/`dirname \$dlpath`~ | ||
12381 | + test -d \$dldir || mkdir -p \$dldir~ | ||
12382 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
12383 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
12384 | + dlpath=$dir/\$dldll~ | ||
12385 | + $RM \$dlpath' | ||
12386 | + shlibpath_overrides_runpath=yes | ||
12387 | + dynamic_linker='Win32 link.exe' | ||
12388 | ;; | ||
12389 | |||
12390 | *) | ||
12391 | + # Assume MSVC wrapper | ||
12392 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
12393 | + dynamic_linker='Win32 ld.exe' | ||
12394 | ;; | ||
12395 | esac | ||
12396 | - dynamic_linker='Win32 ld.exe' | ||
12397 | # FIXME: first we should search . and the directory the executable is in | ||
12398 | shlibpath_var=PATH | ||
12399 | ;; | ||
12400 | @@ -10520,6 +11250,19 @@ gnu*) | ||
12401 | hardcode_into_libs=yes | ||
12402 | ;; | ||
12403 | |||
12404 | +haiku*) | ||
12405 | + version_type=linux | ||
12406 | + need_lib_prefix=no | ||
12407 | + need_version=no | ||
12408 | + dynamic_linker="$host_os runtime_loader" | ||
12409 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
12410 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
12411 | + shlibpath_var=LIBRARY_PATH | ||
12412 | + shlibpath_overrides_runpath=yes | ||
12413 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
12414 | + hardcode_into_libs=yes | ||
12415 | + ;; | ||
12416 | + | ||
12417 | hpux9* | hpux10* | hpux11*) | ||
12418 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
12419 | # link against other versions. | ||
12420 | @@ -10562,8 +11305,10 @@ hpux9* | hpux10* | hpux11*) | ||
12421 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12422 | ;; | ||
12423 | esac | ||
12424 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
12425 | + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
12426 | postinstall_cmds='chmod 555 $lib' | ||
12427 | + # or fails outright, so override atomically: | ||
12428 | + install_override_mode=555 | ||
12429 | ;; | ||
12430 | |||
12431 | interix[3-9]*) | ||
12432 | @@ -10672,7 +11417,7 @@ fi | ||
12433 | |||
12434 | # Append ld.so.conf contents to the search path | ||
12435 | if test -f /etc/ld.so.conf; then | ||
12436 | - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
12437 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | ||
12438 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
12439 | fi | ||
12440 | |||
12441 | @@ -10975,6 +11720,11 @@ fi | ||
12442 | |||
12443 | |||
12444 | |||
12445 | + | ||
12446 | + | ||
12447 | + | ||
12448 | + | ||
12449 | + | ||
12450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
12451 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
12452 | hardcode_action= | ||
12453 | @@ -11305,7 +12055,7 @@ else | ||
12454 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
12455 | lt_status=$lt_dlunknown | ||
12456 | cat > conftest.$ac_ext <<_LT_EOF | ||
12457 | -#line 11308 "configure" | ||
12458 | +#line $LINENO "configure" | ||
12459 | #include "confdefs.h" | ||
12460 | |||
12461 | #if HAVE_DLFCN_H | ||
12462 | @@ -11346,7 +12096,13 @@ else | ||
12463 | # endif | ||
12464 | #endif | ||
12465 | |||
12466 | -void fnord() { int i=42;} | ||
12467 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
12468 | + correspondingly for the symbols needed. */ | ||
12469 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
12470 | +int fnord () __attribute__((visibility("default"))); | ||
12471 | +#endif | ||
12472 | + | ||
12473 | +int fnord () { return 42; } | ||
12474 | int main () | ||
12475 | { | ||
12476 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
12477 | @@ -11355,7 +12111,11 @@ int main () | ||
12478 | if (self) | ||
12479 | { | ||
12480 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
12481 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
12482 | + else | ||
12483 | + { | ||
12484 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
12485 | + else puts (dlerror ()); | ||
12486 | + } | ||
12487 | /* dlclose (self); */ | ||
12488 | } | ||
12489 | else | ||
12490 | @@ -11401,7 +12161,7 @@ else | ||
12491 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
12492 | lt_status=$lt_dlunknown | ||
12493 | cat > conftest.$ac_ext <<_LT_EOF | ||
12494 | -#line 11404 "configure" | ||
12495 | +#line $LINENO "configure" | ||
12496 | #include "confdefs.h" | ||
12497 | |||
12498 | #if HAVE_DLFCN_H | ||
12499 | @@ -11442,7 +12202,13 @@ else | ||
12500 | # endif | ||
12501 | #endif | ||
12502 | |||
12503 | -void fnord() { int i=42;} | ||
12504 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
12505 | + correspondingly for the symbols needed. */ | ||
12506 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
12507 | +int fnord () __attribute__((visibility("default"))); | ||
12508 | +#endif | ||
12509 | + | ||
12510 | +int fnord () { return 42; } | ||
12511 | int main () | ||
12512 | { | ||
12513 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
12514 | @@ -11451,7 +12217,11 @@ int main () | ||
12515 | if (self) | ||
12516 | { | ||
12517 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
12518 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
12519 | + else | ||
12520 | + { | ||
12521 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
12522 | + else puts (dlerror ()); | ||
12523 | + } | ||
12524 | /* dlclose (self); */ | ||
12525 | } | ||
12526 | else | ||
12527 | @@ -14503,7 +15273,7 @@ $as_echo "$bfd_cv_ld_as_needed" >&6; } | ||
12528 | |||
12529 | LIBM= | ||
12530 | case $host in | ||
12531 | -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | ||
12532 | +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | ||
12533 | # These system don't have libm, or don't need it | ||
12534 | ;; | ||
12535 | *-ncr-sysv4.3*) | ||
12536 | @@ -14644,7 +15414,7 @@ SHARED_LDFLAGS= | ||
12537 | if test "$enable_shared" = "yes"; then | ||
12538 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` | ||
12539 | if test -n "$x"; then | ||
12540 | - SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | ||
12541 | + SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a" | ||
12542 | fi | ||
12543 | |||
12544 | # More hacks to build DLLs on Windows. | ||
12545 | @@ -16182,131 +16952,153 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac | ||
12546 | sed_quote_subst='$sed_quote_subst' | ||
12547 | double_quote_subst='$double_quote_subst' | ||
12548 | delay_variable_subst='$delay_variable_subst' | ||
12549 | -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
12550 | -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
12551 | -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
12552 | -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
12553 | -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
12554 | -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
12555 | -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
12556 | -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
12557 | -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
12558 | -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
12559 | -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
12560 | -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
12561 | -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
12562 | -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
12563 | -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
12564 | -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
12565 | -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
12566 | -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
12567 | -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
12568 | -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
12569 | -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
12570 | -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
12571 | -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
12572 | -lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
12573 | -lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
12574 | -lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
12575 | -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
12576 | -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12577 | -OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
12578 | -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
12579 | -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
12580 | -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
12581 | -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
12582 | -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
12583 | -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
12584 | -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12585 | -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12586 | -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12587 | -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
12588 | -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
12589 | -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
12590 | -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
12591 | -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
12592 | -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
12593 | -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | ||
12594 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
12595 | -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
12596 | -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
12597 | -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
12598 | -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
12599 | -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
12600 | -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
12601 | -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
12602 | -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
12603 | -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
12604 | -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
12605 | -DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
12606 | -NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
12607 | -LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
12608 | -OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
12609 | -OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
12610 | -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
12611 | -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12612 | -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12613 | -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
12614 | -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
12615 | -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
12616 | -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
12617 | -compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
12618 | -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12619 | -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12620 | -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12621 | -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12622 | -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12623 | -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12624 | -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
12625 | -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
12626 | -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
12627 | -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
12628 | -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
12629 | -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
12630 | -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
12631 | -hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
12632 | -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
12633 | -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
12634 | -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
12635 | -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
12636 | -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
12637 | -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
12638 | -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
12639 | -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12640 | -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
12641 | -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
12642 | -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12643 | -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
12644 | -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
12645 | -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
12646 | -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
12647 | -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
12648 | -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
12649 | -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
12650 | -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
12651 | -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
12652 | -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
12653 | -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
12654 | -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12655 | -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12656 | -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
12657 | -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
12658 | -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
12659 | -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
12660 | -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
12661 | -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
12662 | -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
12663 | -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
12664 | -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
12665 | -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
12666 | -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
12667 | +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | ||
12668 | +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | ||
12669 | +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | ||
12670 | +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | ||
12671 | +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | ||
12672 | +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | ||
12673 | +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | ||
12674 | +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | ||
12675 | +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | ||
12676 | +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | ||
12677 | +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | ||
12678 | +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | ||
12679 | +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | ||
12680 | +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | ||
12681 | +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | ||
12682 | +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | ||
12683 | +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | ||
12684 | +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | ||
12685 | +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | ||
12686 | +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | ||
12687 | +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | ||
12688 | +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | ||
12689 | +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | ||
12690 | +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | ||
12691 | +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
12692 | +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
12693 | +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
12694 | +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
12695 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
12696 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
12697 | +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
12698 | +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
12699 | +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
12700 | +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
12701 | +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
12702 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
12703 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
12704 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
12705 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
12706 | +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
12707 | +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
12708 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
12709 | +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
12710 | +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
12711 | +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
12712 | +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
12713 | +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
12714 | +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | ||
12715 | +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | ||
12716 | +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | ||
12717 | +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | ||
12718 | +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | ||
12719 | +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | ||
12720 | +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
12721 | +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
12722 | +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"`' | ||
12723 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
12724 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
12725 | +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
12726 | +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
12727 | +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
12728 | +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
12729 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
12730 | +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
12731 | +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
12732 | +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
12733 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
12734 | +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
12735 | +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
12736 | +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
12737 | +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | ||
12738 | +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | ||
12739 | +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | ||
12740 | +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | ||
12741 | +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
12742 | +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | ||
12743 | +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | ||
12744 | +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
12745 | +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
12746 | +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | ||
12747 | +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | ||
12748 | +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
12749 | +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
12750 | +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
12751 | +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | ||
12752 | +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
12753 | +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | ||
12754 | +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
12755 | +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
12756 | +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
12757 | +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | ||
12758 | +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | ||
12759 | +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | ||
12760 | +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | ||
12761 | +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | ||
12762 | +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
12763 | +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
12764 | +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
12765 | +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
12766 | +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
12767 | +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
12768 | +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
12769 | +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
12770 | +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
12771 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
12772 | +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
12773 | +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
12774 | +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
12775 | +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | ||
12776 | +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | ||
12777 | +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | ||
12778 | +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
12779 | +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | ||
12780 | +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | ||
12781 | +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | ||
12782 | +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | ||
12783 | +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | ||
12784 | +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
12785 | +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
12786 | +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | ||
12787 | +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | ||
12788 | +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | ||
12789 | +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | ||
12790 | +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | ||
12791 | +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | ||
12792 | +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | ||
12793 | +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | ||
12794 | +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | ||
12795 | +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | ||
12796 | +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | ||
12797 | |||
12798 | LTCC='$LTCC' | ||
12799 | LTCFLAGS='$LTCFLAGS' | ||
12800 | compiler='$compiler_DEFAULT' | ||
12801 | |||
12802 | +# A function that is used when there is no print builtin or printf. | ||
12803 | +func_fallback_echo () | ||
12804 | +{ | ||
12805 | + eval 'cat <<_LTECHO_EOF | ||
12806 | +\$1 | ||
12807 | +_LTECHO_EOF' | ||
12808 | +} | ||
12809 | + | ||
12810 | # Quote evaled strings. | ||
12811 | -for var in SED \ | ||
12812 | +for var in SHELL \ | ||
12813 | +ECHO \ | ||
12814 | +SED \ | ||
12815 | GREP \ | ||
12816 | EGREP \ | ||
12817 | FGREP \ | ||
12818 | @@ -16319,8 +17111,13 @@ reload_flag \ | ||
12819 | OBJDUMP \ | ||
12820 | deplibs_check_method \ | ||
12821 | file_magic_cmd \ | ||
12822 | +file_magic_glob \ | ||
12823 | +want_nocaseglob \ | ||
12824 | +DLLTOOL \ | ||
12825 | +sharedlib_from_linklib_cmd \ | ||
12826 | AR \ | ||
12827 | AR_FLAGS \ | ||
12828 | +archiver_list_spec \ | ||
12829 | STRIP \ | ||
12830 | RANLIB \ | ||
12831 | CC \ | ||
12832 | @@ -16330,14 +17127,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
12833 | lt_cv_sys_global_symbol_to_cdecl \ | ||
12834 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
12835 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
12836 | -SHELL \ | ||
12837 | -ECHO \ | ||
12838 | +nm_file_list_spec \ | ||
12839 | lt_prog_compiler_no_builtin_flag \ | ||
12840 | -lt_prog_compiler_wl \ | ||
12841 | lt_prog_compiler_pic \ | ||
12842 | +lt_prog_compiler_wl \ | ||
12843 | lt_prog_compiler_static \ | ||
12844 | lt_cv_prog_compiler_c_o \ | ||
12845 | need_locks \ | ||
12846 | +MANIFEST_TOOL \ | ||
12847 | DSYMUTIL \ | ||
12848 | NMEDIT \ | ||
12849 | LIPO \ | ||
12850 | @@ -16353,7 +17150,6 @@ no_undefined_flag \ | ||
12851 | hardcode_libdir_flag_spec \ | ||
12852 | hardcode_libdir_flag_spec_ld \ | ||
12853 | hardcode_libdir_separator \ | ||
12854 | -fix_srcfile_path \ | ||
12855 | exclude_expsyms \ | ||
12856 | include_expsyms \ | ||
12857 | file_list_spec \ | ||
12858 | @@ -16361,12 +17157,13 @@ variables_saved_for_relink \ | ||
12859 | libname_spec \ | ||
12860 | library_names_spec \ | ||
12861 | soname_spec \ | ||
12862 | +install_override_mode \ | ||
12863 | finish_eval \ | ||
12864 | old_striplib \ | ||
12865 | striplib; do | ||
12866 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
12867 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
12868 | *[\\\\\\\`\\"\\\$]*) | ||
12869 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
12870 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
12871 | ;; | ||
12872 | *) | ||
12873 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
12874 | @@ -16388,14 +17185,15 @@ module_cmds \ | ||
12875 | module_expsym_cmds \ | ||
12876 | export_symbols_cmds \ | ||
12877 | prelink_cmds \ | ||
12878 | +postlink_cmds \ | ||
12879 | postinstall_cmds \ | ||
12880 | postuninstall_cmds \ | ||
12881 | finish_cmds \ | ||
12882 | sys_lib_search_path_spec \ | ||
12883 | sys_lib_dlsearch_path_spec; do | ||
12884 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
12885 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
12886 | *[\\\\\\\`\\"\\\$]*) | ||
12887 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
12888 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
12889 | ;; | ||
12890 | *) | ||
12891 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
12892 | @@ -16403,12 +17201,6 @@ sys_lib_dlsearch_path_spec; do | ||
12893 | esac | ||
12894 | done | ||
12895 | |||
12896 | -# Fix-up fallback echo if it was mangled by the above quoting rules. | ||
12897 | -case \$lt_ECHO in | ||
12898 | -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
12899 | - ;; | ||
12900 | -esac | ||
12901 | - | ||
12902 | ac_aux_dir='$ac_aux_dir' | ||
12903 | xsi_shell='$xsi_shell' | ||
12904 | lt_shell_append='$lt_shell_append' | ||
12905 | @@ -17173,7 +17965,8 @@ $as_echo X"$file" | | ||
12906 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
12907 | # | ||
12908 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
12909 | -# 2006, 2007, 2008 Free Software Foundation, Inc. | ||
12910 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
12911 | +# Inc. | ||
12912 | # Written by Gordon Matzigkeit, 1996 | ||
12913 | # | ||
12914 | # This file is part of GNU Libtool. | ||
12915 | @@ -17221,6 +18014,12 @@ pic_mode=$pic_mode | ||
12916 | # Whether or not to optimize for fast installation. | ||
12917 | fast_install=$enable_fast_install | ||
12918 | |||
12919 | +# Shell to use when invoking shell scripts. | ||
12920 | +SHELL=$lt_SHELL | ||
12921 | + | ||
12922 | +# An echo program that protects backslashes. | ||
12923 | +ECHO=$lt_ECHO | ||
12924 | + | ||
12925 | # The host system. | ||
12926 | host_alias=$host_alias | ||
12927 | host=$host | ||
12928 | @@ -17270,9 +18069,11 @@ SP2NL=$lt_lt_SP2NL | ||
12929 | # turn newlines into spaces. | ||
12930 | NL2SP=$lt_lt_NL2SP | ||
12931 | |||
12932 | -# How to create reloadable object files. | ||
12933 | -reload_flag=$lt_reload_flag | ||
12934 | -reload_cmds=$lt_reload_cmds | ||
12935 | +# convert \$build file names to \$host format. | ||
12936 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
12937 | + | ||
12938 | +# convert \$build files to toolchain format. | ||
12939 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
12940 | |||
12941 | # An object symbol dumper. | ||
12942 | OBJDUMP=$lt_OBJDUMP | ||
12943 | @@ -17280,13 +18081,30 @@ OBJDUMP=$lt_OBJDUMP | ||
12944 | # Method to check whether dependent libraries are shared objects. | ||
12945 | deplibs_check_method=$lt_deplibs_check_method | ||
12946 | |||
12947 | -# Command to use when deplibs_check_method == "file_magic". | ||
12948 | +# Command to use when deplibs_check_method = "file_magic". | ||
12949 | file_magic_cmd=$lt_file_magic_cmd | ||
12950 | |||
12951 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
12952 | +file_magic_glob=$lt_file_magic_glob | ||
12953 | + | ||
12954 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
12955 | +want_nocaseglob=$lt_want_nocaseglob | ||
12956 | + | ||
12957 | +# DLL creation program. | ||
12958 | +DLLTOOL=$lt_DLLTOOL | ||
12959 | + | ||
12960 | +# Command to associate shared and link libraries. | ||
12961 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
12962 | + | ||
12963 | # The archiver. | ||
12964 | AR=$lt_AR | ||
12965 | + | ||
12966 | +# Flags to create an archive. | ||
12967 | AR_FLAGS=$lt_AR_FLAGS | ||
12968 | |||
12969 | +# How to feed a file listing to the archiver. | ||
12970 | +archiver_list_spec=$lt_archiver_list_spec | ||
12971 | + | ||
12972 | # A symbol stripping program. | ||
12973 | STRIP=$lt_STRIP | ||
12974 | |||
12975 | @@ -17295,6 +18113,9 @@ RANLIB=$lt_RANLIB | ||
12976 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
12977 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
12978 | |||
12979 | +# Whether to use a lock for old archive extraction. | ||
12980 | +lock_old_archive_extraction=$lock_old_archive_extraction | ||
12981 | + | ||
12982 | # A C compiler. | ||
12983 | LTCC=$lt_CC | ||
12984 | |||
12985 | @@ -17313,14 +18134,14 @@ global_symbol_to_c_name_address=$lt_lt_c | ||
12986 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
12987 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
12988 | |||
12989 | -# The name of the directory that contains temporary libtool files. | ||
12990 | -objdir=$objdir | ||
12991 | +# Specify filename containing input files for \$NM. | ||
12992 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
12993 | |||
12994 | -# Shell to use when invoking shell scripts. | ||
12995 | -SHELL=$lt_SHELL | ||
12996 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
12997 | +lt_sysroot=$lt_sysroot | ||
12998 | |||
12999 | -# An echo program that does not interpret backslashes. | ||
13000 | -ECHO=$lt_ECHO | ||
13001 | +# The name of the directory that contains temporary libtool files. | ||
13002 | +objdir=$objdir | ||
13003 | |||
13004 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
13005 | MAGIC_CMD=$MAGIC_CMD | ||
13006 | @@ -17328,6 +18149,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
13007 | # Must we lock files when doing compilation? | ||
13008 | need_locks=$lt_need_locks | ||
13009 | |||
13010 | +# Manifest tool. | ||
13011 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
13012 | + | ||
13013 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
13014 | DSYMUTIL=$lt_DSYMUTIL | ||
13015 | |||
13016 | @@ -17384,6 +18208,9 @@ library_names_spec=$lt_library_names_spe | ||
13017 | # The coded name of the library, if different from the real name. | ||
13018 | soname_spec=$lt_soname_spec | ||
13019 | |||
13020 | +# Permission mode override for installation of shared libraries. | ||
13021 | +install_override_mode=$lt_install_override_mode | ||
13022 | + | ||
13023 | # Command to use after installation of a shared archive. | ||
13024 | postinstall_cmds=$lt_postinstall_cmds | ||
13025 | |||
13026 | @@ -17423,6 +18250,10 @@ striplib=$lt_striplib | ||
13027 | # The linker used to build libraries. | ||
13028 | LD=$lt_LD | ||
13029 | |||
13030 | +# How to create reloadable object files. | ||
13031 | +reload_flag=$lt_reload_flag | ||
13032 | +reload_cmds=$lt_reload_cmds | ||
13033 | + | ||
13034 | # Commands used to build an old-style archive. | ||
13035 | old_archive_cmds=$lt_old_archive_cmds | ||
13036 | |||
13037 | @@ -17435,12 +18266,12 @@ with_gcc=$GCC | ||
13038 | # Compiler flag to turn off builtin functions. | ||
13039 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
13040 | |||
13041 | -# How to pass a linker flag through the compiler. | ||
13042 | -wl=$lt_lt_prog_compiler_wl | ||
13043 | - | ||
13044 | # Additional compiler flags for building library objects. | ||
13045 | pic_flag=$lt_lt_prog_compiler_pic | ||
13046 | |||
13047 | +# How to pass a linker flag through the compiler. | ||
13048 | +wl=$lt_lt_prog_compiler_wl | ||
13049 | + | ||
13050 | # Compiler flag to prevent dynamic linking. | ||
13051 | link_static_flag=$lt_lt_prog_compiler_static | ||
13052 | |||
13053 | @@ -17527,9 +18358,6 @@ inherit_rpath=$inherit_rpath | ||
13054 | # Whether libtool must link a program against all its dependency libraries. | ||
13055 | link_all_deplibs=$link_all_deplibs | ||
13056 | |||
13057 | -# Fix the shell variable \$srcfile for the compiler. | ||
13058 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
13059 | - | ||
13060 | # Set to "yes" if exported symbols are required. | ||
13061 | always_export_symbols=$always_export_symbols | ||
13062 | |||
13063 | @@ -17545,6 +18373,9 @@ include_expsyms=$lt_include_expsyms | ||
13064 | # Commands necessary for linking programs (against libraries) with templates. | ||
13065 | prelink_cmds=$lt_prelink_cmds | ||
13066 | |||
13067 | +# Commands necessary for finishing linking programs. | ||
13068 | +postlink_cmds=$lt_postlink_cmds | ||
13069 | + | ||
13070 | # Specify filename containing input files. | ||
13071 | file_list_spec=$lt_file_list_spec | ||
13072 | |||
13073 | @@ -17577,212 +18408,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
13074 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
13075 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
13076 | # is reportedly fixed, but why not run on old versions too? | ||
13077 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
13078 | - || (rm -f "$cfgfile"; exit 1) | ||
13079 | - | ||
13080 | - case $xsi_shell in | ||
13081 | - yes) | ||
13082 | - cat << \_LT_EOF >> "$cfgfile" | ||
13083 | - | ||
13084 | -# func_dirname file append nondir_replacement | ||
13085 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
13086 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
13087 | -func_dirname () | ||
13088 | -{ | ||
13089 | - case ${1} in | ||
13090 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
13091 | - * ) func_dirname_result="${3}" ;; | ||
13092 | - esac | ||
13093 | -} | ||
13094 | - | ||
13095 | -# func_basename file | ||
13096 | -func_basename () | ||
13097 | -{ | ||
13098 | - func_basename_result="${1##*/}" | ||
13099 | -} | ||
13100 | - | ||
13101 | -# func_dirname_and_basename file append nondir_replacement | ||
13102 | -# perform func_basename and func_dirname in a single function | ||
13103 | -# call: | ||
13104 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
13105 | -# add APPEND to the result, otherwise set result | ||
13106 | -# to NONDIR_REPLACEMENT. | ||
13107 | -# value returned in "$func_dirname_result" | ||
13108 | -# basename: Compute filename of FILE. | ||
13109 | -# value retuned in "$func_basename_result" | ||
13110 | -# Implementation must be kept synchronized with func_dirname | ||
13111 | -# and func_basename. For efficiency, we do not delegate to | ||
13112 | -# those functions but instead duplicate the functionality here. | ||
13113 | -func_dirname_and_basename () | ||
13114 | -{ | ||
13115 | - case ${1} in | ||
13116 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
13117 | - * ) func_dirname_result="${3}" ;; | ||
13118 | - esac | ||
13119 | - func_basename_result="${1##*/}" | ||
13120 | -} | ||
13121 | - | ||
13122 | -# func_stripname prefix suffix name | ||
13123 | -# strip PREFIX and SUFFIX off of NAME. | ||
13124 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
13125 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
13126 | -# dot (in which case that matches only a dot). | ||
13127 | -func_stripname () | ||
13128 | -{ | ||
13129 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
13130 | - # positional parameters, so assign one to ordinary parameter first. | ||
13131 | - func_stripname_result=${3} | ||
13132 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
13133 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
13134 | -} | ||
13135 | - | ||
13136 | -# func_opt_split | ||
13137 | -func_opt_split () | ||
13138 | -{ | ||
13139 | - func_opt_split_opt=${1%%=*} | ||
13140 | - func_opt_split_arg=${1#*=} | ||
13141 | -} | ||
13142 | - | ||
13143 | -# func_lo2o object | ||
13144 | -func_lo2o () | ||
13145 | -{ | ||
13146 | - case ${1} in | ||
13147 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
13148 | - *) func_lo2o_result=${1} ;; | ||
13149 | - esac | ||
13150 | -} | ||
13151 | - | ||
13152 | -# func_xform libobj-or-source | ||
13153 | -func_xform () | ||
13154 | -{ | ||
13155 | - func_xform_result=${1%.*}.lo | ||
13156 | -} | ||
13157 | - | ||
13158 | -# func_arith arithmetic-term... | ||
13159 | -func_arith () | ||
13160 | -{ | ||
13161 | - func_arith_result=$(( $* )) | ||
13162 | -} | ||
13163 | - | ||
13164 | -# func_len string | ||
13165 | -# STRING may not start with a hyphen. | ||
13166 | -func_len () | ||
13167 | -{ | ||
13168 | - func_len_result=${#1} | ||
13169 | -} | ||
13170 | - | ||
13171 | -_LT_EOF | ||
13172 | - ;; | ||
13173 | - *) # Bourne compatible functions. | ||
13174 | - cat << \_LT_EOF >> "$cfgfile" | ||
13175 | - | ||
13176 | -# func_dirname file append nondir_replacement | ||
13177 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
13178 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
13179 | -func_dirname () | ||
13180 | -{ | ||
13181 | - # Extract subdirectory from the argument. | ||
13182 | - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
13183 | - if test "X$func_dirname_result" = "X${1}"; then | ||
13184 | - func_dirname_result="${3}" | ||
13185 | - else | ||
13186 | - func_dirname_result="$func_dirname_result${2}" | ||
13187 | - fi | ||
13188 | -} | ||
13189 | - | ||
13190 | -# func_basename file | ||
13191 | -func_basename () | ||
13192 | -{ | ||
13193 | - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
13194 | -} | ||
13195 | - | ||
13196 | - | ||
13197 | -# func_stripname prefix suffix name | ||
13198 | -# strip PREFIX and SUFFIX off of NAME. | ||
13199 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
13200 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
13201 | -# dot (in which case that matches only a dot). | ||
13202 | -# func_strip_suffix prefix name | ||
13203 | -func_stripname () | ||
13204 | -{ | ||
13205 | - case ${2} in | ||
13206 | - .*) func_stripname_result=`$ECHO "X${3}" \ | ||
13207 | - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
13208 | - *) func_stripname_result=`$ECHO "X${3}" \ | ||
13209 | - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
13210 | - esac | ||
13211 | -} | ||
13212 | - | ||
13213 | -# sed scripts: | ||
13214 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
13215 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
13216 | - | ||
13217 | -# func_opt_split | ||
13218 | -func_opt_split () | ||
13219 | -{ | ||
13220 | - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
13221 | - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
13222 | -} | ||
13223 | - | ||
13224 | -# func_lo2o object | ||
13225 | -func_lo2o () | ||
13226 | -{ | ||
13227 | - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
13228 | -} | ||
13229 | - | ||
13230 | -# func_xform libobj-or-source | ||
13231 | -func_xform () | ||
13232 | -{ | ||
13233 | - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
13234 | -} | ||
13235 | - | ||
13236 | -# func_arith arithmetic-term... | ||
13237 | -func_arith () | ||
13238 | -{ | ||
13239 | - func_arith_result=`expr "$@"` | ||
13240 | -} | ||
13241 | - | ||
13242 | -# func_len string | ||
13243 | -# STRING may not start with a hyphen. | ||
13244 | -func_len () | ||
13245 | -{ | ||
13246 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
13247 | -} | ||
13248 | - | ||
13249 | -_LT_EOF | ||
13250 | -esac | ||
13251 | - | ||
13252 | -case $lt_shell_append in | ||
13253 | - yes) | ||
13254 | - cat << \_LT_EOF >> "$cfgfile" | ||
13255 | - | ||
13256 | -# func_append var value | ||
13257 | -# Append VALUE to the end of shell variable VAR. | ||
13258 | -func_append () | ||
13259 | -{ | ||
13260 | - eval "$1+=\$2" | ||
13261 | -} | ||
13262 | -_LT_EOF | ||
13263 | - ;; | ||
13264 | - *) | ||
13265 | - cat << \_LT_EOF >> "$cfgfile" | ||
13266 | - | ||
13267 | -# func_append var value | ||
13268 | -# Append VALUE to the end of shell variable VAR. | ||
13269 | -func_append () | ||
13270 | -{ | ||
13271 | - eval "$1=\$$1\$2" | ||
13272 | -} | ||
13273 | - | ||
13274 | -_LT_EOF | ||
13275 | - ;; | ||
13276 | - esac | ||
13277 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
13278 | + || (rm -f "$cfgfile"; exit 1) | ||
13279 | |||
13280 | + if test x"$xsi_shell" = xyes; then | ||
13281 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
13282 | +func_dirname ()\ | ||
13283 | +{\ | ||
13284 | +\ case ${1} in\ | ||
13285 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
13286 | +\ * ) func_dirname_result="${3}" ;;\ | ||
13287 | +\ esac\ | ||
13288 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13289 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13290 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13291 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13292 | + | ||
13293 | + | ||
13294 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
13295 | +func_basename ()\ | ||
13296 | +{\ | ||
13297 | +\ func_basename_result="${1##*/}"\ | ||
13298 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13299 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13300 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13301 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13302 | + | ||
13303 | + | ||
13304 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
13305 | +func_dirname_and_basename ()\ | ||
13306 | +{\ | ||
13307 | +\ case ${1} in\ | ||
13308 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
13309 | +\ * ) func_dirname_result="${3}" ;;\ | ||
13310 | +\ esac\ | ||
13311 | +\ func_basename_result="${1##*/}"\ | ||
13312 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13313 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13314 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13315 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13316 | + | ||
13317 | + | ||
13318 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
13319 | +func_stripname ()\ | ||
13320 | +{\ | ||
13321 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
13322 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
13323 | +\ func_stripname_result=${3}\ | ||
13324 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
13325 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
13326 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13327 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13328 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13329 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13330 | + | ||
13331 | + | ||
13332 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
13333 | +func_split_long_opt ()\ | ||
13334 | +{\ | ||
13335 | +\ func_split_long_opt_name=${1%%=*}\ | ||
13336 | +\ func_split_long_opt_arg=${1#*=}\ | ||
13337 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13338 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13339 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13340 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13341 | + | ||
13342 | + | ||
13343 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
13344 | +func_split_short_opt ()\ | ||
13345 | +{\ | ||
13346 | +\ func_split_short_opt_arg=${1#??}\ | ||
13347 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
13348 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13349 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13350 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13351 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13352 | + | ||
13353 | + | ||
13354 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
13355 | +func_lo2o ()\ | ||
13356 | +{\ | ||
13357 | +\ case ${1} in\ | ||
13358 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
13359 | +\ *) func_lo2o_result=${1} ;;\ | ||
13360 | +\ esac\ | ||
13361 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13362 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13363 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13364 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13365 | + | ||
13366 | + | ||
13367 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
13368 | +func_xform ()\ | ||
13369 | +{\ | ||
13370 | + func_xform_result=${1%.*}.lo\ | ||
13371 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13372 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13373 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13374 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13375 | + | ||
13376 | + | ||
13377 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
13378 | +func_arith ()\ | ||
13379 | +{\ | ||
13380 | + func_arith_result=$(( $* ))\ | ||
13381 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13382 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13383 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13384 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13385 | + | ||
13386 | + | ||
13387 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
13388 | +func_len ()\ | ||
13389 | +{\ | ||
13390 | + func_len_result=${#1}\ | ||
13391 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13392 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13393 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13394 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13395 | + | ||
13396 | +fi | ||
13397 | + | ||
13398 | +if test x"$lt_shell_append" = xyes; then | ||
13399 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
13400 | +func_append ()\ | ||
13401 | +{\ | ||
13402 | + eval "${1}+=\\${2}"\ | ||
13403 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13404 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13405 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13406 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13407 | + | ||
13408 | + | ||
13409 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
13410 | +func_append_quoted ()\ | ||
13411 | +{\ | ||
13412 | +\ func_quote_for_eval "${2}"\ | ||
13413 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
13414 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
13415 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13416 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13417 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
13418 | + | ||
13419 | + | ||
13420 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
13421 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
13422 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13423 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13424 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
13425 | +else | ||
13426 | + # Save a `func_append' function call even when '+=' is not available | ||
13427 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
13428 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
13429 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
13430 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
13431 | +fi | ||
13432 | + | ||
13433 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
13434 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
13435 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
13436 | +fi | ||
13437 | |||
13438 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
13439 | - || (rm -f "$cfgfile"; exit 1) | ||
13440 | |||
13441 | - mv -f "$cfgfile" "$ofile" || | ||
13442 | + mv -f "$cfgfile" "$ofile" || | ||
13443 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
13444 | chmod +x "$ofile" | ||
13445 | |||
13446 | Index: binutils-2.20.1/bfd/doc/Makefile.in | ||
13447 | =================================================================== | ||
13448 | --- binutils-2.20.1.orig/bfd/doc/Makefile.in | ||
13449 | +++ binutils-2.20.1/bfd/doc/Makefile.in | ||
13450 | @@ -132,6 +132,7 @@ DATADIRNAME = @DATADIRNAME@ | ||
13451 | DEBUGDIR = @DEBUGDIR@ | ||
13452 | DEFS = @DEFS@ | ||
13453 | DEPDIR = @DEPDIR@ | ||
13454 | +DLLTOOL = @DLLTOOL@ | ||
13455 | DSYMUTIL = @DSYMUTIL@ | ||
13456 | DUMPBIN = @DUMPBIN@ | ||
13457 | ECHO_C = @ECHO_C@ | ||
13458 | @@ -165,6 +166,7 @@ LN_S = @LN_S@ | ||
13459 | LTLIBOBJS = @LTLIBOBJS@ | ||
13460 | MAINT = @MAINT@ | ||
13461 | MAKEINFO = @MAKEINFO@ | ||
13462 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
13463 | MKDIR_P = @MKDIR_P@ | ||
13464 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
13465 | MSGFMT = @MSGFMT@ | ||
13466 | @@ -204,6 +206,7 @@ abs_builddir = @abs_builddir@ | ||
13467 | abs_srcdir = @abs_srcdir@ | ||
13468 | abs_top_builddir = @abs_top_builddir@ | ||
13469 | abs_top_srcdir = @abs_top_srcdir@ | ||
13470 | +ac_ct_AR = @ac_ct_AR@ | ||
13471 | ac_ct_CC = @ac_ct_CC@ | ||
13472 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
13473 | all_backends = @all_backends@ | ||
13474 | @@ -244,7 +247,6 @@ libdir = @libdir@ | ||
13475 | libexecdir = @libexecdir@ | ||
13476 | localedir = @localedir@ | ||
13477 | localstatedir = @localstatedir@ | ||
13478 | -lt_ECHO = @lt_ECHO@ | ||
13479 | mandir = @mandir@ | ||
13480 | mkdir_p = @mkdir_p@ | ||
13481 | oldincludedir = @oldincludedir@ | ||
13482 | Index: binutils-2.20.1/binutils/Makefile.in | ||
13483 | =================================================================== | ||
13484 | --- binutils-2.20.1.orig/binutils/Makefile.in | ||
13485 | +++ binutils-2.20.1/binutils/Makefile.in | ||
13486 | @@ -241,6 +241,7 @@ DATADIRNAME = @DATADIRNAME@ | ||
13487 | DEFS = @DEFS@ | ||
13488 | DEMANGLER_NAME = @DEMANGLER_NAME@ | ||
13489 | DEPDIR = @DEPDIR@ | ||
13490 | +DLLTOOL = @DLLTOOL@ | ||
13491 | DLLTOOL_DEFS = @DLLTOOL_DEFS@ | ||
13492 | DSYMUTIL = @DSYMUTIL@ | ||
13493 | DUMPBIN = @DUMPBIN@ | ||
13494 | @@ -281,6 +282,7 @@ LTLIBICONV = @LTLIBICONV@ | ||
13495 | LTLIBOBJS = @LTLIBOBJS@ | ||
13496 | MAINT = @MAINT@ | ||
13497 | MAKEINFO = @MAKEINFO@ | ||
13498 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
13499 | MKDIR_P = @MKDIR_P@ | ||
13500 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
13501 | MSGFMT = @MSGFMT@ | ||
13502 | @@ -318,6 +320,7 @@ abs_builddir = @abs_builddir@ | ||
13503 | abs_srcdir = @abs_srcdir@ | ||
13504 | abs_top_builddir = @abs_top_builddir@ | ||
13505 | abs_top_srcdir = @abs_top_srcdir@ | ||
13506 | +ac_ct_AR = @ac_ct_AR@ | ||
13507 | ac_ct_CC = @ac_ct_CC@ | ||
13508 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
13509 | am__include = @am__include@ | ||
13510 | @@ -350,7 +353,6 @@ libdir = @libdir@ | ||
13511 | libexecdir = @libexecdir@ | ||
13512 | localedir = @localedir@ | ||
13513 | localstatedir = @localstatedir@ | ||
13514 | -lt_ECHO = @lt_ECHO@ | ||
13515 | mandir = @mandir@ | ||
13516 | mkdir_p = @mkdir_p@ | ||
13517 | oldincludedir = @oldincludedir@ | ||
13518 | Index: binutils-2.20.1/binutils/configure | ||
13519 | =================================================================== | ||
13520 | --- binutils-2.20.1.orig/binutils/configure | ||
13521 | +++ binutils-2.20.1/binutils/configure | ||
13522 | @@ -169,7 +169,15 @@ test x\$exitcode = x0 || exit 1" | ||
13523 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
13524 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
13525 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
13526 | -test \$(( 1 + 1 )) = 2 || exit 1" | ||
13527 | +test \$(( 1 + 1 )) = 2 || exit 1 | ||
13528 | + | ||
13529 | + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | ||
13530 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
13531 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
13532 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
13533 | + PATH=/empty FPATH=/empty; export PATH FPATH | ||
13534 | + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | ||
13535 | + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | ||
13536 | if (eval "$as_required") 2>/dev/null; then : | ||
13537 | as_have_required=yes | ||
13538 | else | ||
13539 | @@ -523,155 +531,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P | ||
13540 | # Sed expression to map a string onto a valid variable name. | ||
13541 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
13542 | |||
13543 | - | ||
13544 | - | ||
13545 | -# Check that we are running under the correct shell. | ||
13546 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
13547 | |||
13548 | -case X$lt_ECHO in | ||
13549 | -X*--fallback-echo) | ||
13550 | - # Remove one level of quotation (which was required for Make). | ||
13551 | - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
13552 | - ;; | ||
13553 | -esac | ||
13554 | - | ||
13555 | -ECHO=${lt_ECHO-echo} | ||
13556 | -if test "X$1" = X--no-reexec; then | ||
13557 | - # Discard the --no-reexec flag, and continue. | ||
13558 | - shift | ||
13559 | -elif test "X$1" = X--fallback-echo; then | ||
13560 | - # Avoid inline document here, it may be left over | ||
13561 | - : | ||
13562 | -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
13563 | - # Yippee, $ECHO works! | ||
13564 | - : | ||
13565 | -else | ||
13566 | - # Restart under the correct shell. | ||
13567 | - exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
13568 | -fi | ||
13569 | - | ||
13570 | -if test "X$1" = X--fallback-echo; then | ||
13571 | - # used as fallback echo | ||
13572 | - shift | ||
13573 | - cat <<_LT_EOF | ||
13574 | -$* | ||
13575 | -_LT_EOF | ||
13576 | - exit 0 | ||
13577 | -fi | ||
13578 | - | ||
13579 | -# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
13580 | -# if CDPATH is set. | ||
13581 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
13582 | - | ||
13583 | -if test -z "$lt_ECHO"; then | ||
13584 | - if test "X${echo_test_string+set}" != Xset; then | ||
13585 | - # find a string as large as possible, as long as the shell can cope with it | ||
13586 | - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
13587 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
13588 | - if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
13589 | - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
13590 | - then | ||
13591 | - break | ||
13592 | - fi | ||
13593 | - done | ||
13594 | - fi | ||
13595 | - | ||
13596 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
13597 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
13598 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
13599 | - : | ||
13600 | - else | ||
13601 | - # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
13602 | - # backslashes. This makes it impossible to quote backslashes using | ||
13603 | - # echo "$something" | sed 's/\\/\\\\/g' | ||
13604 | - # | ||
13605 | - # So, first we look for a working echo in the user's PATH. | ||
13606 | - | ||
13607 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
13608 | - for dir in $PATH /usr/ucb; do | ||
13609 | - IFS="$lt_save_ifs" | ||
13610 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
13611 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
13612 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
13613 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
13614 | - ECHO="$dir/echo" | ||
13615 | - break | ||
13616 | - fi | ||
13617 | - done | ||
13618 | - IFS="$lt_save_ifs" | ||
13619 | - | ||
13620 | - if test "X$ECHO" = Xecho; then | ||
13621 | - # We didn't find a better echo, so look for alternatives. | ||
13622 | - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
13623 | - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
13624 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
13625 | - # This shell has a builtin print -r that does the trick. | ||
13626 | - ECHO='print -r' | ||
13627 | - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
13628 | - test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
13629 | - # If we have ksh, try running configure again with it. | ||
13630 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
13631 | - export ORIGINAL_CONFIG_SHELL | ||
13632 | - CONFIG_SHELL=/bin/ksh | ||
13633 | - export CONFIG_SHELL | ||
13634 | - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
13635 | - else | ||
13636 | - # Try using printf. | ||
13637 | - ECHO='printf %s\n' | ||
13638 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
13639 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
13640 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
13641 | - # Cool, printf works | ||
13642 | - : | ||
13643 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
13644 | - test "X$echo_testing_string" = 'X\t' && | ||
13645 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
13646 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
13647 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
13648 | - export CONFIG_SHELL | ||
13649 | - SHELL="$CONFIG_SHELL" | ||
13650 | - export SHELL | ||
13651 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
13652 | - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
13653 | - test "X$echo_testing_string" = 'X\t' && | ||
13654 | - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
13655 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
13656 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
13657 | - else | ||
13658 | - # maybe with a smaller string... | ||
13659 | - prev=: | ||
13660 | - | ||
13661 | - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
13662 | - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
13663 | - then | ||
13664 | - break | ||
13665 | - fi | ||
13666 | - prev="$cmd" | ||
13667 | - done | ||
13668 | - | ||
13669 | - if test "$prev" != 'sed 50q "$0"'; then | ||
13670 | - echo_test_string=`eval $prev` | ||
13671 | - export echo_test_string | ||
13672 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
13673 | - else | ||
13674 | - # Oops. We lost completely, so just stick with echo. | ||
13675 | - ECHO=echo | ||
13676 | - fi | ||
13677 | - fi | ||
13678 | - fi | ||
13679 | - fi | ||
13680 | - fi | ||
13681 | -fi | ||
13682 | - | ||
13683 | -# Copy echo and quote the copy suitably for passing to libtool from | ||
13684 | -# the Makefile, instead of quoting the original, which is used later. | ||
13685 | -lt_ECHO=$ECHO | ||
13686 | -if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
13687 | - lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
13688 | -fi | ||
13689 | - | ||
13690 | - | ||
13691 | - | ||
13692 | |||
13693 | exec 7<&0 </dev/null 6>&1 | ||
13694 | |||
13695 | @@ -793,9 +654,11 @@ OTOOL | ||
13696 | LIPO | ||
13697 | NMEDIT | ||
13698 | DSYMUTIL | ||
13699 | -lt_ECHO | ||
13700 | +MANIFEST_TOOL | ||
13701 | RANLIB | ||
13702 | +ac_ct_AR | ||
13703 | AR | ||
13704 | +DLLTOOL | ||
13705 | OBJDUMP | ||
13706 | LN_S | ||
13707 | NM | ||
13708 | @@ -908,6 +771,7 @@ enable_static | ||
13709 | with_pic | ||
13710 | enable_fast_install | ||
13711 | with_gnu_ld | ||
13712 | +with_libtool_sysroot | ||
13713 | enable_libtool_lock | ||
13714 | enable_targets | ||
13715 | enable_werror | ||
13716 | @@ -1569,6 +1433,8 @@ Optional Packages: | ||
13717 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
13718 | both] | ||
13719 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
13720 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
13721 | + (or the compiler's sysroot if not specified). | ||
13722 | --with-gnu-ld assume the C compiler uses GNU ld default=no | ||
13723 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | ||
13724 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | ||
13725 | @@ -5271,8 +5137,8 @@ esac | ||
13726 | |||
13727 | |||
13728 | |||
13729 | -macro_version='2.2.6' | ||
13730 | -macro_revision='1.3012' | ||
13731 | +macro_version='2.4' | ||
13732 | +macro_revision='1.3293' | ||
13733 | |||
13734 | |||
13735 | |||
13736 | @@ -5288,6 +5154,75 @@ macro_revision='1.3012' | ||
13737 | |||
13738 | ltmain="$ac_aux_dir/ltmain.sh" | ||
13739 | |||
13740 | +# Backslashify metacharacters that are still active within | ||
13741 | +# double-quoted strings. | ||
13742 | +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
13743 | + | ||
13744 | +# Same as above, but do not quote variable references. | ||
13745 | +double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
13746 | + | ||
13747 | +# Sed substitution to delay expansion of an escaped shell variable in a | ||
13748 | +# double_quote_subst'ed string. | ||
13749 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
13750 | + | ||
13751 | +# Sed substitution to delay expansion of an escaped single quote. | ||
13752 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
13753 | + | ||
13754 | +# Sed substitution to avoid accidental globbing in evaled expressions | ||
13755 | +no_glob_subst='s/\*/\\\*/g' | ||
13756 | + | ||
13757 | +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
13758 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
13759 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
13760 | + | ||
13761 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
13762 | +$as_echo_n "checking how to print strings... " >&6; } | ||
13763 | +# Test print first, because it will be a builtin if present. | ||
13764 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
13765 | + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
13766 | + ECHO='print -r --' | ||
13767 | +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
13768 | + ECHO='printf %s\n' | ||
13769 | +else | ||
13770 | + # Use this function as a fallback that always works. | ||
13771 | + func_fallback_echo () | ||
13772 | + { | ||
13773 | + eval 'cat <<_LTECHO_EOF | ||
13774 | +$1 | ||
13775 | +_LTECHO_EOF' | ||
13776 | + } | ||
13777 | + ECHO='func_fallback_echo' | ||
13778 | +fi | ||
13779 | + | ||
13780 | +# func_echo_all arg... | ||
13781 | +# Invoke $ECHO with all args, space-separated. | ||
13782 | +func_echo_all () | ||
13783 | +{ | ||
13784 | + $ECHO "" | ||
13785 | +} | ||
13786 | + | ||
13787 | +case "$ECHO" in | ||
13788 | + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | ||
13789 | +$as_echo "printf" >&6; } ;; | ||
13790 | + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | ||
13791 | +$as_echo "print -r" >&6; } ;; | ||
13792 | + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | ||
13793 | +$as_echo "cat" >&6; } ;; | ||
13794 | +esac | ||
13795 | + | ||
13796 | + | ||
13797 | + | ||
13798 | + | ||
13799 | + | ||
13800 | + | ||
13801 | + | ||
13802 | + | ||
13803 | + | ||
13804 | + | ||
13805 | + | ||
13806 | + | ||
13807 | + | ||
13808 | + | ||
13809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
13810 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
13811 | if test "${ac_cv_path_SED+set}" = set; then : | ||
13812 | @@ -5623,8 +5558,11 @@ if test "$lt_cv_path_NM" != "no"; then | ||
13813 | NM="$lt_cv_path_NM" | ||
13814 | else | ||
13815 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
13816 | - if test -n "$ac_tool_prefix"; then | ||
13817 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
13818 | + if test -n "$DUMPBIN"; then : | ||
13819 | + # Let the user override the test. | ||
13820 | + else | ||
13821 | + if test -n "$ac_tool_prefix"; then | ||
13822 | + for ac_prog in dumpbin "link -dump" | ||
13823 | do | ||
13824 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
13825 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
13826 | @@ -5668,7 +5606,7 @@ fi | ||
13827 | fi | ||
13828 | if test -z "$DUMPBIN"; then | ||
13829 | ac_ct_DUMPBIN=$DUMPBIN | ||
13830 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
13831 | + for ac_prog in dumpbin "link -dump" | ||
13832 | do | ||
13833 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
13834 | set dummy $ac_prog; ac_word=$2 | ||
13835 | @@ -5723,6 +5661,15 @@ esac | ||
13836 | fi | ||
13837 | fi | ||
13838 | |||
13839 | + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
13840 | + *COFF*) | ||
13841 | + DUMPBIN="$DUMPBIN -symbols" | ||
13842 | + ;; | ||
13843 | + *) | ||
13844 | + DUMPBIN=: | ||
13845 | + ;; | ||
13846 | + esac | ||
13847 | + fi | ||
13848 | |||
13849 | if test "$DUMPBIN" != ":"; then | ||
13850 | NM="$DUMPBIN" | ||
13851 | @@ -5742,13 +5689,13 @@ if test "${lt_cv_nm_interface+set}" = se | ||
13852 | else | ||
13853 | lt_cv_nm_interface="BSD nm" | ||
13854 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
13855 | - (eval echo "\"\$as_me:5745: $ac_compile\"" >&5) | ||
13856 | + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | ||
13857 | (eval "$ac_compile" 2>conftest.err) | ||
13858 | cat conftest.err >&5 | ||
13859 | - (eval echo "\"\$as_me:5748: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
13860 | + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
13861 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
13862 | cat conftest.err >&5 | ||
13863 | - (eval echo "\"\$as_me:5751: output\"" >&5) | ||
13864 | + (eval echo "\"\$as_me:$LINENO: output\"" >&5) | ||
13865 | cat conftest.out >&5 | ||
13866 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
13867 | lt_cv_nm_interface="MS dumpbin" | ||
13868 | @@ -5805,6 +5752,11 @@ else | ||
13869 | lt_cv_sys_max_cmd_len=8192; | ||
13870 | ;; | ||
13871 | |||
13872 | + mint*) | ||
13873 | + # On MiNT this can take a long time and run out of memory. | ||
13874 | + lt_cv_sys_max_cmd_len=8192; | ||
13875 | + ;; | ||
13876 | + | ||
13877 | amigaos*) | ||
13878 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
13879 | # So we just punt and use a minimum line length of 8192. | ||
13880 | @@ -5869,8 +5821,8 @@ else | ||
13881 | # If test is not a shell built-in, we'll probably end up computing a | ||
13882 | # maximum length that is only half of the actual maximum length, but | ||
13883 | # we can't tell. | ||
13884 | - while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
13885 | - = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
13886 | + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | ||
13887 | + = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
13888 | test $i != 17 # 1/2 MB should be enough | ||
13889 | do | ||
13890 | i=`expr $i + 1` | ||
13891 | @@ -5912,8 +5864,8 @@ $as_echo_n "checking whether the shell u | ||
13892 | # Try some XSI features | ||
13893 | xsi_shell=no | ||
13894 | ( _lt_dummy="a/b/c" | ||
13895 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
13896 | - = c,a/b,, \ | ||
13897 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
13898 | + = c,a/b,b/c, \ | ||
13899 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
13900 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
13901 | && xsi_shell=yes | ||
13902 | @@ -5962,6 +5914,80 @@ esac | ||
13903 | |||
13904 | |||
13905 | |||
13906 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
13907 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
13908 | +if test "${lt_cv_to_host_file_cmd+set}" = set; then : | ||
13909 | + $as_echo_n "(cached) " >&6 | ||
13910 | +else | ||
13911 | + case $host in | ||
13912 | + *-*-mingw* ) | ||
13913 | + case $build in | ||
13914 | + *-*-mingw* ) # actually msys | ||
13915 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
13916 | + ;; | ||
13917 | + *-*-cygwin* ) | ||
13918 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
13919 | + ;; | ||
13920 | + * ) # otherwise, assume *nix | ||
13921 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
13922 | + ;; | ||
13923 | + esac | ||
13924 | + ;; | ||
13925 | + *-*-cygwin* ) | ||
13926 | + case $build in | ||
13927 | + *-*-mingw* ) # actually msys | ||
13928 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
13929 | + ;; | ||
13930 | + *-*-cygwin* ) | ||
13931 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
13932 | + ;; | ||
13933 | + * ) # otherwise, assume *nix | ||
13934 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
13935 | + ;; | ||
13936 | + esac | ||
13937 | + ;; | ||
13938 | + * ) # unhandled hosts (and "normal" native builds) | ||
13939 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
13940 | + ;; | ||
13941 | +esac | ||
13942 | + | ||
13943 | +fi | ||
13944 | + | ||
13945 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
13946 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
13947 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
13948 | + | ||
13949 | + | ||
13950 | + | ||
13951 | + | ||
13952 | + | ||
13953 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
13954 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
13955 | +if test "${lt_cv_to_tool_file_cmd+set}" = set; then : | ||
13956 | + $as_echo_n "(cached) " >&6 | ||
13957 | +else | ||
13958 | + #assume ordinary cross tools, or native build. | ||
13959 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
13960 | +case $host in | ||
13961 | + *-*-mingw* ) | ||
13962 | + case $build in | ||
13963 | + *-*-mingw* ) # actually msys | ||
13964 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
13965 | + ;; | ||
13966 | + esac | ||
13967 | + ;; | ||
13968 | +esac | ||
13969 | + | ||
13970 | +fi | ||
13971 | + | ||
13972 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
13973 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
13974 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
13975 | + | ||
13976 | + | ||
13977 | + | ||
13978 | + | ||
13979 | + | ||
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
13981 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
13982 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
13983 | @@ -5978,6 +6004,11 @@ case $reload_flag in | ||
13984 | esac | ||
13985 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
13986 | case $host_os in | ||
13987 | + cygwin* | mingw* | pw32* | cegcc*) | ||
13988 | + if test "$GCC" != yes; then | ||
13989 | + reload_cmds=false | ||
13990 | + fi | ||
13991 | + ;; | ||
13992 | darwin*) | ||
13993 | if test "$GCC" = yes; then | ||
13994 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
13995 | @@ -6141,16 +6172,18 @@ mingw* | pw32*) | ||
13996 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
13997 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
13998 | # unless we find 'file', for example because we are cross-compiling. | ||
13999 | - if ( file / ) >/dev/null 2>&1; then | ||
14000 | + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
14001 | + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
14002 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
14003 | lt_cv_file_magic_cmd='func_win32_libid' | ||
14004 | else | ||
14005 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
14006 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
14007 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
14008 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
14009 | fi | ||
14010 | ;; | ||
14011 | |||
14012 | -cegcc) | ||
14013 | +cegcc*) | ||
14014 | # use the weaker test based on 'objdump'. See mingw*. | ||
14015 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
14016 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
14017 | @@ -6180,6 +6213,10 @@ gnu*) | ||
14018 | lt_cv_deplibs_check_method=pass_all | ||
14019 | ;; | ||
14020 | |||
14021 | +haiku*) | ||
14022 | + lt_cv_deplibs_check_method=pass_all | ||
14023 | + ;; | ||
14024 | + | ||
14025 | hpux10.20* | hpux11*) | ||
14026 | lt_cv_file_magic_cmd=/usr/bin/file | ||
14027 | case $host_cpu in | ||
14028 | @@ -6188,11 +6225,11 @@ hpux10.20* | hpux11*) | ||
14029 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
14030 | ;; | ||
14031 | hppa*64*) | ||
14032 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
14033 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | ||
14034 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
14035 | ;; | ||
14036 | *) | ||
14037 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
14038 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | ||
14039 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
14040 | ;; | ||
14041 | esac | ||
14042 | @@ -6295,6 +6332,21 @@ esac | ||
14043 | fi | ||
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
14045 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
14046 | + | ||
14047 | +file_magic_glob= | ||
14048 | +want_nocaseglob=no | ||
14049 | +if test "$build" = "$host"; then | ||
14050 | + case $host_os in | ||
14051 | + mingw* | pw32*) | ||
14052 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
14053 | + want_nocaseglob=yes | ||
14054 | + else | ||
14055 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
14056 | + fi | ||
14057 | + ;; | ||
14058 | + esac | ||
14059 | +fi | ||
14060 | + | ||
14061 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
14062 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
14063 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
14064 | @@ -6310,16 +6362,26 @@ test -z "$deplibs_check_method" && depli | ||
14065 | |||
14066 | |||
14067 | |||
14068 | + | ||
14069 | + | ||
14070 | + | ||
14071 | + | ||
14072 | + | ||
14073 | + | ||
14074 | + | ||
14075 | + | ||
14076 | + | ||
14077 | + | ||
14078 | if test -n "$ac_tool_prefix"; then | ||
14079 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
14080 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
14081 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
14082 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14084 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14085 | -if test "${ac_cv_prog_AR+set}" = set; then : | ||
14086 | +if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
14087 | $as_echo_n "(cached) " >&6 | ||
14088 | else | ||
14089 | - if test -n "$AR"; then | ||
14090 | - ac_cv_prog_AR="$AR" # Let the user override the test. | ||
14091 | + if test -n "$DLLTOOL"; then | ||
14092 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
14093 | else | ||
14094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14095 | for as_dir in $PATH | ||
14096 | @@ -6328,7 +6390,7 @@ do | ||
14097 | test -z "$as_dir" && as_dir=. | ||
14098 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14100 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
14101 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
14102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14103 | break 2 | ||
14104 | fi | ||
14105 | @@ -6338,10 +6400,10 @@ IFS=$as_save_IFS | ||
14106 | |||
14107 | fi | ||
14108 | fi | ||
14109 | -AR=$ac_cv_prog_AR | ||
14110 | -if test -n "$AR"; then | ||
14111 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
14112 | -$as_echo "$AR" >&6; } | ||
14113 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
14114 | +if test -n "$DLLTOOL"; then | ||
14115 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
14116 | +$as_echo "$DLLTOOL" >&6; } | ||
14117 | else | ||
14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14119 | $as_echo "no" >&6; } | ||
14120 | @@ -6349,17 +6411,17 @@ fi | ||
14121 | |||
14122 | |||
14123 | fi | ||
14124 | -if test -z "$ac_cv_prog_AR"; then | ||
14125 | - ac_ct_AR=$AR | ||
14126 | - # Extract the first word of "ar", so it can be a program name with args. | ||
14127 | -set dummy ar; ac_word=$2 | ||
14128 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
14129 | + ac_ct_DLLTOOL=$DLLTOOL | ||
14130 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
14131 | +set dummy dlltool; ac_word=$2 | ||
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14133 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14134 | -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
14135 | +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
14136 | $as_echo_n "(cached) " >&6 | ||
14137 | else | ||
14138 | - if test -n "$ac_ct_AR"; then | ||
14139 | - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
14140 | + if test -n "$ac_ct_DLLTOOL"; then | ||
14141 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
14142 | else | ||
14143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14144 | for as_dir in $PATH | ||
14145 | @@ -6368,7 +6430,7 @@ do | ||
14146 | test -z "$as_dir" && as_dir=. | ||
14147 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14149 | - ac_cv_prog_ac_ct_AR="ar" | ||
14150 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
14151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14152 | break 2 | ||
14153 | fi | ||
14154 | @@ -6378,17 +6440,17 @@ IFS=$as_save_IFS | ||
14155 | |||
14156 | fi | ||
14157 | fi | ||
14158 | -ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
14159 | -if test -n "$ac_ct_AR"; then | ||
14160 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
14161 | -$as_echo "$ac_ct_AR" >&6; } | ||
14162 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
14163 | +if test -n "$ac_ct_DLLTOOL"; then | ||
14164 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
14165 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
14166 | else | ||
14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14168 | $as_echo "no" >&6; } | ||
14169 | fi | ||
14170 | |||
14171 | - if test "x$ac_ct_AR" = x; then | ||
14172 | - AR="false" | ||
14173 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
14174 | + DLLTOOL="false" | ||
14175 | else | ||
14176 | case $cross_compiling:$ac_tool_warned in | ||
14177 | yes:) | ||
14178 | @@ -6396,19 +6458,55 @@ yes:) | ||
14179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
14180 | ac_tool_warned=yes ;; | ||
14181 | esac | ||
14182 | - AR=$ac_ct_AR | ||
14183 | + DLLTOOL=$ac_ct_DLLTOOL | ||
14184 | fi | ||
14185 | else | ||
14186 | - AR="$ac_cv_prog_AR" | ||
14187 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
14188 | fi | ||
14189 | |||
14190 | -test -z "$AR" && AR=ar | ||
14191 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
14192 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
14193 | + | ||
14194 | + | ||
14195 | + | ||
14196 | + | ||
14197 | + | ||
14198 | |||
14199 | |||
14200 | |||
14201 | |||
14202 | |||
14203 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
14204 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
14205 | +if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then : | ||
14206 | + $as_echo_n "(cached) " >&6 | ||
14207 | +else | ||
14208 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
14209 | + | ||
14210 | +case $host_os in | ||
14211 | +cygwin* | mingw* | pw32* | cegcc*) | ||
14212 | + # two different shell functions defined in ltmain.sh | ||
14213 | + # decide which to use based on capabilities of $DLLTOOL | ||
14214 | + case `$DLLTOOL --help 2>&1` in | ||
14215 | + *--identify-strict*) | ||
14216 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
14217 | + ;; | ||
14218 | + *) | ||
14219 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
14220 | + ;; | ||
14221 | + esac | ||
14222 | + ;; | ||
14223 | +*) | ||
14224 | + # fallback: assume linklib IS sharedlib | ||
14225 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
14226 | + ;; | ||
14227 | +esac | ||
14228 | + | ||
14229 | +fi | ||
14230 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
14231 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
14232 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
14233 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
14234 | + | ||
14235 | |||
14236 | |||
14237 | |||
14238 | @@ -6416,15 +6514,17 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
14239 | |||
14240 | |||
14241 | if test -n "$ac_tool_prefix"; then | ||
14242 | - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
14243 | -set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
14244 | + for ac_prog in ar | ||
14245 | + do | ||
14246 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
14247 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14249 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14250 | -if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
14251 | +if test "${ac_cv_prog_AR+set}" = set; then : | ||
14252 | $as_echo_n "(cached) " >&6 | ||
14253 | else | ||
14254 | - if test -n "$STRIP"; then | ||
14255 | - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
14256 | + if test -n "$AR"; then | ||
14257 | + ac_cv_prog_AR="$AR" # Let the user override the test. | ||
14258 | else | ||
14259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14260 | for as_dir in $PATH | ||
14261 | @@ -6433,7 +6533,7 @@ do | ||
14262 | test -z "$as_dir" && as_dir=. | ||
14263 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14264 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14265 | - ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
14266 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
14267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14268 | break 2 | ||
14269 | fi | ||
14270 | @@ -6443,28 +6543,32 @@ IFS=$as_save_IFS | ||
14271 | |||
14272 | fi | ||
14273 | fi | ||
14274 | -STRIP=$ac_cv_prog_STRIP | ||
14275 | -if test -n "$STRIP"; then | ||
14276 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
14277 | -$as_echo "$STRIP" >&6; } | ||
14278 | +AR=$ac_cv_prog_AR | ||
14279 | +if test -n "$AR"; then | ||
14280 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
14281 | +$as_echo "$AR" >&6; } | ||
14282 | else | ||
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14284 | $as_echo "no" >&6; } | ||
14285 | fi | ||
14286 | |||
14287 | |||
14288 | + test -n "$AR" && break | ||
14289 | + done | ||
14290 | fi | ||
14291 | -if test -z "$ac_cv_prog_STRIP"; then | ||
14292 | - ac_ct_STRIP=$STRIP | ||
14293 | - # Extract the first word of "strip", so it can be a program name with args. | ||
14294 | -set dummy strip; ac_word=$2 | ||
14295 | +if test -z "$AR"; then | ||
14296 | + ac_ct_AR=$AR | ||
14297 | + for ac_prog in ar | ||
14298 | +do | ||
14299 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
14300 | +set dummy $ac_prog; ac_word=$2 | ||
14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14302 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14303 | -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
14304 | +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
14305 | $as_echo_n "(cached) " >&6 | ||
14306 | else | ||
14307 | - if test -n "$ac_ct_STRIP"; then | ||
14308 | - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
14309 | + if test -n "$ac_ct_AR"; then | ||
14310 | + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
14311 | else | ||
14312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14313 | for as_dir in $PATH | ||
14314 | @@ -6473,7 +6577,7 @@ do | ||
14315 | test -z "$as_dir" && as_dir=. | ||
14316 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14318 | - ac_cv_prog_ac_ct_STRIP="strip" | ||
14319 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
14320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14321 | break 2 | ||
14322 | fi | ||
14323 | @@ -6483,19 +6587,184 @@ IFS=$as_save_IFS | ||
14324 | |||
14325 | fi | ||
14326 | fi | ||
14327 | -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
14328 | -if test -n "$ac_ct_STRIP"; then | ||
14329 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
14330 | -$as_echo "$ac_ct_STRIP" >&6; } | ||
14331 | +ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
14332 | +if test -n "$ac_ct_AR"; then | ||
14333 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
14334 | +$as_echo "$ac_ct_AR" >&6; } | ||
14335 | else | ||
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14337 | $as_echo "no" >&6; } | ||
14338 | fi | ||
14339 | |||
14340 | - if test "x$ac_ct_STRIP" = x; then | ||
14341 | - STRIP=":" | ||
14342 | - else | ||
14343 | - case $cross_compiling:$ac_tool_warned in | ||
14344 | + | ||
14345 | + test -n "$ac_ct_AR" && break | ||
14346 | +done | ||
14347 | + | ||
14348 | + if test "x$ac_ct_AR" = x; then | ||
14349 | + AR="false" | ||
14350 | + else | ||
14351 | + case $cross_compiling:$ac_tool_warned in | ||
14352 | +yes:) | ||
14353 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
14354 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
14355 | +ac_tool_warned=yes ;; | ||
14356 | +esac | ||
14357 | + AR=$ac_ct_AR | ||
14358 | + fi | ||
14359 | +fi | ||
14360 | + | ||
14361 | +: ${AR=ar} | ||
14362 | +: ${AR_FLAGS=cru} | ||
14363 | + | ||
14364 | + | ||
14365 | + | ||
14366 | + | ||
14367 | + | ||
14368 | + | ||
14369 | + | ||
14370 | + | ||
14371 | + | ||
14372 | + | ||
14373 | + | ||
14374 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
14375 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
14376 | +if test "${lt_cv_ar_at_file+set}" = set; then : | ||
14377 | + $as_echo_n "(cached) " >&6 | ||
14378 | +else | ||
14379 | + lt_cv_ar_at_file=no | ||
14380 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14381 | +/* end confdefs.h. */ | ||
14382 | + | ||
14383 | +int | ||
14384 | +main () | ||
14385 | +{ | ||
14386 | + | ||
14387 | + ; | ||
14388 | + return 0; | ||
14389 | +} | ||
14390 | +_ACEOF | ||
14391 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
14392 | + echo conftest.$ac_objext > conftest.lst | ||
14393 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
14394 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
14395 | + (eval $lt_ar_try) 2>&5 | ||
14396 | + ac_status=$? | ||
14397 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14398 | + test $ac_status = 0; } | ||
14399 | + if test "$ac_status" -eq 0; then | ||
14400 | + # Ensure the archiver fails upon bogus file names. | ||
14401 | + rm -f conftest.$ac_objext libconftest.a | ||
14402 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
14403 | + (eval $lt_ar_try) 2>&5 | ||
14404 | + ac_status=$? | ||
14405 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14406 | + test $ac_status = 0; } | ||
14407 | + if test "$ac_status" -ne 0; then | ||
14408 | + lt_cv_ar_at_file=@ | ||
14409 | + fi | ||
14410 | + fi | ||
14411 | + rm -f conftest.* libconftest.a | ||
14412 | + | ||
14413 | +fi | ||
14414 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14415 | + | ||
14416 | +fi | ||
14417 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
14418 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
14419 | + | ||
14420 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
14421 | + archiver_list_spec= | ||
14422 | +else | ||
14423 | + archiver_list_spec=$lt_cv_ar_at_file | ||
14424 | +fi | ||
14425 | + | ||
14426 | + | ||
14427 | + | ||
14428 | + | ||
14429 | + | ||
14430 | + | ||
14431 | + | ||
14432 | +if test -n "$ac_tool_prefix"; then | ||
14433 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
14434 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
14435 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14436 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
14437 | +if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
14438 | + $as_echo_n "(cached) " >&6 | ||
14439 | +else | ||
14440 | + if test -n "$STRIP"; then | ||
14441 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
14442 | +else | ||
14443 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14444 | +for as_dir in $PATH | ||
14445 | +do | ||
14446 | + IFS=$as_save_IFS | ||
14447 | + test -z "$as_dir" && as_dir=. | ||
14448 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
14449 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14450 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
14451 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14452 | + break 2 | ||
14453 | + fi | ||
14454 | +done | ||
14455 | + done | ||
14456 | +IFS=$as_save_IFS | ||
14457 | + | ||
14458 | +fi | ||
14459 | +fi | ||
14460 | +STRIP=$ac_cv_prog_STRIP | ||
14461 | +if test -n "$STRIP"; then | ||
14462 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
14463 | +$as_echo "$STRIP" >&6; } | ||
14464 | +else | ||
14465 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14466 | +$as_echo "no" >&6; } | ||
14467 | +fi | ||
14468 | + | ||
14469 | + | ||
14470 | +fi | ||
14471 | +if test -z "$ac_cv_prog_STRIP"; then | ||
14472 | + ac_ct_STRIP=$STRIP | ||
14473 | + # Extract the first word of "strip", so it can be a program name with args. | ||
14474 | +set dummy strip; ac_word=$2 | ||
14475 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14476 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
14477 | +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
14478 | + $as_echo_n "(cached) " >&6 | ||
14479 | +else | ||
14480 | + if test -n "$ac_ct_STRIP"; then | ||
14481 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
14482 | +else | ||
14483 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14484 | +for as_dir in $PATH | ||
14485 | +do | ||
14486 | + IFS=$as_save_IFS | ||
14487 | + test -z "$as_dir" && as_dir=. | ||
14488 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
14489 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14490 | + ac_cv_prog_ac_ct_STRIP="strip" | ||
14491 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14492 | + break 2 | ||
14493 | + fi | ||
14494 | +done | ||
14495 | + done | ||
14496 | +IFS=$as_save_IFS | ||
14497 | + | ||
14498 | +fi | ||
14499 | +fi | ||
14500 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
14501 | +if test -n "$ac_ct_STRIP"; then | ||
14502 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
14503 | +$as_echo "$ac_ct_STRIP" >&6; } | ||
14504 | +else | ||
14505 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14506 | +$as_echo "no" >&6; } | ||
14507 | +fi | ||
14508 | + | ||
14509 | + if test "x$ac_ct_STRIP" = x; then | ||
14510 | + STRIP=":" | ||
14511 | + else | ||
14512 | + case $cross_compiling:$ac_tool_warned in | ||
14513 | yes:) | ||
14514 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
14515 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
14516 | @@ -6630,6 +6899,18 @@ if test -n "$RANLIB"; then | ||
14517 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
14518 | fi | ||
14519 | |||
14520 | +case $host_os in | ||
14521 | + darwin*) | ||
14522 | + lock_old_archive_extraction=yes ;; | ||
14523 | + *) | ||
14524 | + lock_old_archive_extraction=no ;; | ||
14525 | +esac | ||
14526 | + | ||
14527 | + | ||
14528 | + | ||
14529 | + | ||
14530 | + | ||
14531 | + | ||
14532 | |||
14533 | |||
14534 | |||
14535 | @@ -6737,8 +7018,8 @@ esac | ||
14536 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
14537 | |||
14538 | # Transform an extracted symbol line into symbol name and symbol address | ||
14539 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
14540 | -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'" | ||
14541 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
14542 | +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'" | ||
14543 | |||
14544 | # Handle CRLF in mingw tool chain | ||
14545 | opt_cr= | ||
14546 | @@ -6774,6 +7055,7 @@ for ac_symprfx in "" "_"; do | ||
14547 | else | ||
14548 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
14549 | fi | ||
14550 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
14551 | |||
14552 | # Check to see that the pipe works correctly. | ||
14553 | pipe_works=no | ||
14554 | @@ -6799,8 +7081,8 @@ _LT_EOF | ||
14555 | test $ac_status = 0; }; then | ||
14556 | # Now try to grab the symbols. | ||
14557 | nlist=conftest.nm | ||
14558 | - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
14559 | - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
14560 | + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | ||
14561 | + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | ||
14562 | ac_status=$? | ||
14563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14564 | test $ac_status = 0; } && test -s "$nlist"; then | ||
14565 | @@ -6815,6 +7097,18 @@ _LT_EOF | ||
14566 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
14567 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
14568 | cat <<_LT_EOF > conftest.$ac_ext | ||
14569 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
14570 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
14571 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
14572 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
14573 | +# define LT_DLSYM_CONST | ||
14574 | +#elif defined(__osf__) | ||
14575 | +/* This system does not cope well with relocations in const data. */ | ||
14576 | +# define LT_DLSYM_CONST | ||
14577 | +#else | ||
14578 | +# define LT_DLSYM_CONST const | ||
14579 | +#endif | ||
14580 | + | ||
14581 | #ifdef __cplusplus | ||
14582 | extern "C" { | ||
14583 | #endif | ||
14584 | @@ -6826,7 +7120,7 @@ _LT_EOF | ||
14585 | cat <<_LT_EOF >> conftest.$ac_ext | ||
14586 | |||
14587 | /* The mapping between symbol names and symbols. */ | ||
14588 | -const struct { | ||
14589 | +LT_DLSYM_CONST struct { | ||
14590 | const char *name; | ||
14591 | void *address; | ||
14592 | } | ||
14593 | @@ -6852,8 +7146,8 @@ static const void *lt_preloaded_setup() | ||
14594 | _LT_EOF | ||
14595 | # Now try linking the two files. | ||
14596 | mv conftest.$ac_objext conftstm.$ac_objext | ||
14597 | - lt_save_LIBS="$LIBS" | ||
14598 | - lt_save_CFLAGS="$CFLAGS" | ||
14599 | + lt_globsym_save_LIBS=$LIBS | ||
14600 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
14601 | LIBS="conftstm.$ac_objext" | ||
14602 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
14603 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
14604 | @@ -6863,8 +7157,8 @@ _LT_EOF | ||
14605 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
14606 | pipe_works=yes | ||
14607 | fi | ||
14608 | - LIBS="$lt_save_LIBS" | ||
14609 | - CFLAGS="$lt_save_CFLAGS" | ||
14610 | + LIBS=$lt_globsym_save_LIBS | ||
14611 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
14612 | else | ||
14613 | echo "cannot find nm_test_func in $nlist" >&5 | ||
14614 | fi | ||
14615 | @@ -6901,6 +7195,19 @@ else | ||
14616 | $as_echo "ok" >&6; } | ||
14617 | fi | ||
14618 | |||
14619 | +# Response file support. | ||
14620 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
14621 | + nm_file_list_spec='@' | ||
14622 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
14623 | + nm_file_list_spec='@' | ||
14624 | +fi | ||
14625 | + | ||
14626 | + | ||
14627 | + | ||
14628 | + | ||
14629 | + | ||
14630 | + | ||
14631 | + | ||
14632 | |||
14633 | |||
14634 | |||
14635 | @@ -6921,6 +7228,42 @@ fi | ||
14636 | |||
14637 | |||
14638 | |||
14639 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
14640 | +$as_echo_n "checking for sysroot... " >&6; } | ||
14641 | + | ||
14642 | +# Check whether --with-libtool-sysroot was given. | ||
14643 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
14644 | + withval=$with_libtool_sysroot; | ||
14645 | +else | ||
14646 | + with_libtool_sysroot=no | ||
14647 | +fi | ||
14648 | + | ||
14649 | + | ||
14650 | +lt_sysroot= | ||
14651 | +case ${with_libtool_sysroot} in #( | ||
14652 | + yes) | ||
14653 | + if test "$GCC" = yes; then | ||
14654 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
14655 | + fi | ||
14656 | + ;; #( | ||
14657 | + /*) | ||
14658 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
14659 | + ;; #( | ||
14660 | + no|'') | ||
14661 | + ;; #( | ||
14662 | + *) | ||
14663 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
14664 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
14665 | + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 | ||
14666 | + ;; | ||
14667 | +esac | ||
14668 | + | ||
14669 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
14670 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
14671 | + | ||
14672 | + | ||
14673 | + | ||
14674 | + | ||
14675 | |||
14676 | # Check whether --enable-libtool-lock was given. | ||
14677 | if test "${enable_libtool_lock+set}" = set; then : | ||
14678 | @@ -6953,7 +7296,7 @@ ia64-*-hpux*) | ||
14679 | ;; | ||
14680 | *-*-irix6*) | ||
14681 | # Find out which ABI we are using. | ||
14682 | - echo '#line 6956 "configure"' > conftest.$ac_ext | ||
14683 | + echo '#line '$LINENO' "configure"' > conftest.$ac_ext | ||
14684 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
14685 | (eval $ac_compile) 2>&5 | ||
14686 | ac_status=$? | ||
14687 | @@ -7115,6 +7458,123 @@ esac | ||
14688 | |||
14689 | need_locks="$enable_libtool_lock" | ||
14690 | |||
14691 | +if test -n "$ac_tool_prefix"; then | ||
14692 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
14693 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
14694 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14695 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
14696 | +if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then : | ||
14697 | + $as_echo_n "(cached) " >&6 | ||
14698 | +else | ||
14699 | + if test -n "$MANIFEST_TOOL"; then | ||
14700 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
14701 | +else | ||
14702 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14703 | +for as_dir in $PATH | ||
14704 | +do | ||
14705 | + IFS=$as_save_IFS | ||
14706 | + test -z "$as_dir" && as_dir=. | ||
14707 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
14708 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14709 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
14710 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14711 | + break 2 | ||
14712 | + fi | ||
14713 | +done | ||
14714 | + done | ||
14715 | +IFS=$as_save_IFS | ||
14716 | + | ||
14717 | +fi | ||
14718 | +fi | ||
14719 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
14720 | +if test -n "$MANIFEST_TOOL"; then | ||
14721 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
14722 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
14723 | +else | ||
14724 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14725 | +$as_echo "no" >&6; } | ||
14726 | +fi | ||
14727 | + | ||
14728 | + | ||
14729 | +fi | ||
14730 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
14731 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
14732 | + # Extract the first word of "mt", so it can be a program name with args. | ||
14733 | +set dummy mt; ac_word=$2 | ||
14734 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14735 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
14736 | +if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then : | ||
14737 | + $as_echo_n "(cached) " >&6 | ||
14738 | +else | ||
14739 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
14740 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
14741 | +else | ||
14742 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14743 | +for as_dir in $PATH | ||
14744 | +do | ||
14745 | + IFS=$as_save_IFS | ||
14746 | + test -z "$as_dir" && as_dir=. | ||
14747 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
14748 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14749 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
14750 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14751 | + break 2 | ||
14752 | + fi | ||
14753 | +done | ||
14754 | + done | ||
14755 | +IFS=$as_save_IFS | ||
14756 | + | ||
14757 | +fi | ||
14758 | +fi | ||
14759 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
14760 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
14761 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
14762 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
14763 | +else | ||
14764 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14765 | +$as_echo "no" >&6; } | ||
14766 | +fi | ||
14767 | + | ||
14768 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
14769 | + MANIFEST_TOOL=":" | ||
14770 | + else | ||
14771 | + case $cross_compiling:$ac_tool_warned in | ||
14772 | +yes:) | ||
14773 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
14774 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
14775 | +ac_tool_warned=yes ;; | ||
14776 | +esac | ||
14777 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
14778 | + fi | ||
14779 | +else | ||
14780 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
14781 | +fi | ||
14782 | + | ||
14783 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
14784 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
14785 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
14786 | +if test "${lt_cv_path_mainfest_tool+set}" = set; then : | ||
14787 | + $as_echo_n "(cached) " >&6 | ||
14788 | +else | ||
14789 | + lt_cv_path_mainfest_tool=no | ||
14790 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
14791 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
14792 | + cat conftest.err >&5 | ||
14793 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
14794 | + lt_cv_path_mainfest_tool=yes | ||
14795 | + fi | ||
14796 | + rm -f conftest* | ||
14797 | +fi | ||
14798 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
14799 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
14800 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
14801 | + MANIFEST_TOOL=: | ||
14802 | +fi | ||
14803 | + | ||
14804 | + | ||
14805 | + | ||
14806 | + | ||
14807 | + | ||
14808 | |||
14809 | case $host_os in | ||
14810 | rhapsody* | darwin*) | ||
14811 | @@ -7665,6 +8125,38 @@ rm -f core conftest.err conftest.$ac_obj | ||
14812 | fi | ||
14813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
14814 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
14815 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | ||
14816 | +$as_echo_n "checking for -force_load linker flag... " >&6; } | ||
14817 | +if test "${lt_cv_ld_force_load+set}" = set; then : | ||
14818 | + $as_echo_n "(cached) " >&6 | ||
14819 | +else | ||
14820 | + lt_cv_ld_force_load=no | ||
14821 | + cat > conftest.c << _LT_EOF | ||
14822 | +int forced_loaded() { return 2;} | ||
14823 | +_LT_EOF | ||
14824 | + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | ||
14825 | + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
14826 | + echo "$AR cru libconftest.a conftest.o" >&5 | ||
14827 | + $AR cru libconftest.a conftest.o 2>&5 | ||
14828 | + echo "$RANLIB libconftest.a" >&5 | ||
14829 | + $RANLIB libconftest.a 2>&5 | ||
14830 | + cat > conftest.c << _LT_EOF | ||
14831 | +int main() { return 0;} | ||
14832 | +_LT_EOF | ||
14833 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | ||
14834 | + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
14835 | + _lt_result=$? | ||
14836 | + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
14837 | + lt_cv_ld_force_load=yes | ||
14838 | + else | ||
14839 | + cat conftest.err >&5 | ||
14840 | + fi | ||
14841 | + rm -f conftest.err libconftest.a conftest conftest.c | ||
14842 | + rm -rf conftest.dSYM | ||
14843 | + | ||
14844 | +fi | ||
14845 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | ||
14846 | +$as_echo "$lt_cv_ld_force_load" >&6; } | ||
14847 | case $host_os in | ||
14848 | rhapsody* | darwin1.[012]) | ||
14849 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
14850 | @@ -7692,7 +8184,7 @@ $as_echo "$lt_cv_ld_exported_symbols_lis | ||
14851 | else | ||
14852 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
14853 | fi | ||
14854 | - if test "$DSYMUTIL" != ":"; then | ||
14855 | + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
14856 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
14857 | else | ||
14858 | _lt_dsymutil= | ||
14859 | @@ -7715,6 +8207,8 @@ done | ||
14860 | |||
14861 | |||
14862 | |||
14863 | + | ||
14864 | + | ||
14865 | # Set options | ||
14866 | |||
14867 | |||
14868 | @@ -7841,7 +8335,9 @@ fi | ||
14869 | LIBTOOL_DEPS="$ltmain" | ||
14870 | |||
14871 | # Always use our own libtool. | ||
14872 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
14873 | +LIBTOOL='$(SHELL) $(top_builddir)' | ||
14874 | +LIBTOOL="$LIBTOOL/${host_alias}-libtool" | ||
14875 | + | ||
14876 | |||
14877 | |||
14878 | |||
14879 | @@ -7916,19 +8412,6 @@ _ACEOF | ||
14880 | |||
14881 | |||
14882 | |||
14883 | - | ||
14884 | - | ||
14885 | - | ||
14886 | - | ||
14887 | - | ||
14888 | - | ||
14889 | - | ||
14890 | - | ||
14891 | - | ||
14892 | - | ||
14893 | - | ||
14894 | - | ||
14895 | - | ||
14896 | case $host_os in | ||
14897 | aix3*) | ||
14898 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
14899 | @@ -7941,25 +8424,8 @@ aix3*) | ||
14900 | ;; | ||
14901 | esac | ||
14902 | |||
14903 | -# Sed substitution that helps us do robust quoting. It backslashifies | ||
14904 | -# metacharacters that are still active within double-quoted strings. | ||
14905 | -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
14906 | - | ||
14907 | -# Same as above, but do not quote variable references. | ||
14908 | -double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
14909 | - | ||
14910 | -# Sed substitution to delay expansion of an escaped shell variable in a | ||
14911 | -# double_quote_subst'ed string. | ||
14912 | -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
14913 | - | ||
14914 | -# Sed substitution to delay expansion of an escaped single quote. | ||
14915 | -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
14916 | - | ||
14917 | -# Sed substitution to avoid accidental globbing in evaled expressions | ||
14918 | -no_glob_subst='s/\*/\\\*/g' | ||
14919 | - | ||
14920 | # Global variables: | ||
14921 | -ofile=libtool | ||
14922 | +ofile=${host_alias}-libtool | ||
14923 | can_build_shared=yes | ||
14924 | |||
14925 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
14926 | @@ -7986,7 +8452,7 @@ for cc_temp in $compiler""; do | ||
14927 | *) break;; | ||
14928 | esac | ||
14929 | done | ||
14930 | -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
14931 | +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
14932 | |||
14933 | |||
14934 | # Only perform the check for file, if the check method requires it | ||
14935 | @@ -8195,7 +8661,12 @@ if test -n "$compiler"; then | ||
14936 | lt_prog_compiler_no_builtin_flag= | ||
14937 | |||
14938 | if test "$GCC" = yes; then | ||
14939 | - lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
14940 | + case $cc_basename in | ||
14941 | + nvcc*) | ||
14942 | + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | ||
14943 | + *) | ||
14944 | + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | ||
14945 | + esac | ||
14946 | |||
14947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
14948 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
14949 | @@ -8215,15 +8686,15 @@ else | ||
14950 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
14951 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
14952 | -e 's:$: $lt_compiler_flag:'` | ||
14953 | - (eval echo "\"\$as_me:8218: $lt_compile\"" >&5) | ||
14954 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
14955 | (eval "$lt_compile" 2>conftest.err) | ||
14956 | ac_status=$? | ||
14957 | cat conftest.err >&5 | ||
14958 | - echo "$as_me:8222: \$? = $ac_status" >&5 | ||
14959 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14960 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
14961 | # The compiler can only warn and ignore the option if not recognized | ||
14962 | # So say no if there are warnings other than the usual output. | ||
14963 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
14964 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
14965 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
14966 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
14967 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
14968 | @@ -8252,8 +8723,6 @@ fi | ||
14969 | lt_prog_compiler_pic= | ||
14970 | lt_prog_compiler_static= | ||
14971 | |||
14972 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
14973 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
14974 | |||
14975 | if test "$GCC" = yes; then | ||
14976 | lt_prog_compiler_wl='-Wl,' | ||
14977 | @@ -8301,6 +8770,12 @@ $as_echo_n "checking for $compiler optio | ||
14978 | lt_prog_compiler_pic='-fno-common' | ||
14979 | ;; | ||
14980 | |||
14981 | + haiku*) | ||
14982 | + # PIC is the default for Haiku. | ||
14983 | + # The "-static" flag exists, but is broken. | ||
14984 | + lt_prog_compiler_static= | ||
14985 | + ;; | ||
14986 | + | ||
14987 | hpux*) | ||
14988 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
14989 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
14990 | @@ -8343,6 +8818,13 @@ $as_echo_n "checking for $compiler optio | ||
14991 | lt_prog_compiler_pic='-fPIC' | ||
14992 | ;; | ||
14993 | esac | ||
14994 | + | ||
14995 | + case $cc_basename in | ||
14996 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
14997 | + lt_prog_compiler_wl='-Xlinker ' | ||
14998 | + lt_prog_compiler_pic='-Xcompiler -fPIC' | ||
14999 | + ;; | ||
15000 | + esac | ||
15001 | else | ||
15002 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
15003 | case $host_os in | ||
15004 | @@ -8405,7 +8887,13 @@ $as_echo_n "checking for $compiler optio | ||
15005 | lt_prog_compiler_pic='--shared' | ||
15006 | lt_prog_compiler_static='--static' | ||
15007 | ;; | ||
15008 | - pgcc* | pgf77* | pgf90* | pgf95*) | ||
15009 | + nagfor*) | ||
15010 | + # NAG Fortran compiler | ||
15011 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
15012 | + lt_prog_compiler_pic='-PIC' | ||
15013 | + lt_prog_compiler_static='-Bstatic' | ||
15014 | + ;; | ||
15015 | + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
15016 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
15017 | # which looks to be a dead project) | ||
15018 | lt_prog_compiler_wl='-Wl,' | ||
15019 | @@ -8417,25 +8905,25 @@ $as_echo_n "checking for $compiler optio | ||
15020 | # All Alpha code is PIC. | ||
15021 | lt_prog_compiler_static='-non_shared' | ||
15022 | ;; | ||
15023 | - xl*) | ||
15024 | - # IBM XL C 8.0/Fortran 10.1 on PPC | ||
15025 | + xl* | bgxl* | bgf* | mpixl*) | ||
15026 | + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | ||
15027 | lt_prog_compiler_wl='-Wl,' | ||
15028 | lt_prog_compiler_pic='-qpic' | ||
15029 | lt_prog_compiler_static='-qstaticlink' | ||
15030 | ;; | ||
15031 | *) | ||
15032 | case `$CC -V 2>&1 | sed 5q` in | ||
15033 | - *Sun\ C*) | ||
15034 | - # Sun C 5.9 | ||
15035 | + *Sun\ F* | *Sun*Fortran*) | ||
15036 | + # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
15037 | lt_prog_compiler_pic='-KPIC' | ||
15038 | lt_prog_compiler_static='-Bstatic' | ||
15039 | - lt_prog_compiler_wl='-Wl,' | ||
15040 | + lt_prog_compiler_wl='' | ||
15041 | ;; | ||
15042 | - *Sun\ F*) | ||
15043 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
15044 | + *Sun\ C*) | ||
15045 | + # Sun C 5.9 | ||
15046 | lt_prog_compiler_pic='-KPIC' | ||
15047 | lt_prog_compiler_static='-Bstatic' | ||
15048 | - lt_prog_compiler_wl='' | ||
15049 | + lt_prog_compiler_wl='-Wl,' | ||
15050 | ;; | ||
15051 | esac | ||
15052 | ;; | ||
15053 | @@ -8467,7 +8955,7 @@ $as_echo_n "checking for $compiler optio | ||
15054 | lt_prog_compiler_pic='-KPIC' | ||
15055 | lt_prog_compiler_static='-Bstatic' | ||
15056 | case $cc_basename in | ||
15057 | - f77* | f90* | f95*) | ||
15058 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
15059 | lt_prog_compiler_wl='-Qoption ld ';; | ||
15060 | *) | ||
15061 | lt_prog_compiler_wl='-Wl,';; | ||
15062 | @@ -8524,13 +9012,17 @@ case $host_os in | ||
15063 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
15064 | ;; | ||
15065 | esac | ||
15066 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
15067 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
15068 | - | ||
15069 | - | ||
15070 | - | ||
15071 | - | ||
15072 | |||
15073 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
15074 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
15075 | +if test "${lt_cv_prog_compiler_pic+set}" = set; then : | ||
15076 | + $as_echo_n "(cached) " >&6 | ||
15077 | +else | ||
15078 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
15079 | +fi | ||
15080 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
15081 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
15082 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
15083 | |||
15084 | # | ||
15085 | # Check to make sure the PIC flag actually works. | ||
15086 | @@ -8554,15 +9046,15 @@ else | ||
15087 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15088 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15089 | -e 's:$: $lt_compiler_flag:'` | ||
15090 | - (eval echo "\"\$as_me:8557: $lt_compile\"" >&5) | ||
15091 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
15092 | (eval "$lt_compile" 2>conftest.err) | ||
15093 | ac_status=$? | ||
15094 | cat conftest.err >&5 | ||
15095 | - echo "$as_me:8561: \$? = $ac_status" >&5 | ||
15096 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15097 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
15098 | # The compiler can only warn and ignore the option if not recognized | ||
15099 | # So say no if there are warnings other than the usual output. | ||
15100 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
15101 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
15102 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15103 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
15104 | lt_cv_prog_compiler_pic_works=yes | ||
15105 | @@ -8591,6 +9083,11 @@ fi | ||
15106 | |||
15107 | |||
15108 | |||
15109 | + | ||
15110 | + | ||
15111 | + | ||
15112 | + | ||
15113 | + | ||
15114 | # | ||
15115 | # Check to make sure the static flag actually works. | ||
15116 | # | ||
15117 | @@ -8610,7 +9107,7 @@ else | ||
15118 | if test -s conftest.err; then | ||
15119 | # Append any errors to the config.log. | ||
15120 | cat conftest.err 1>&5 | ||
15121 | - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
15122 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
15123 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15124 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
15125 | lt_cv_prog_compiler_static_works=yes | ||
15126 | @@ -8659,16 +9156,16 @@ else | ||
15127 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15128 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15129 | -e 's:$: $lt_compiler_flag:'` | ||
15130 | - (eval echo "\"\$as_me:8662: $lt_compile\"" >&5) | ||
15131 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
15132 | (eval "$lt_compile" 2>out/conftest.err) | ||
15133 | ac_status=$? | ||
15134 | cat out/conftest.err >&5 | ||
15135 | - echo "$as_me:8666: \$? = $ac_status" >&5 | ||
15136 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15137 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
15138 | then | ||
15139 | # The compiler can only warn and ignore the option if not recognized | ||
15140 | # So say no if there are warnings | ||
15141 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
15142 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
15143 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
15144 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
15145 | lt_cv_prog_compiler_c_o=yes | ||
15146 | @@ -8714,16 +9211,16 @@ else | ||
15147 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15148 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15149 | -e 's:$: $lt_compiler_flag:'` | ||
15150 | - (eval echo "\"\$as_me:8717: $lt_compile\"" >&5) | ||
15151 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
15152 | (eval "$lt_compile" 2>out/conftest.err) | ||
15153 | ac_status=$? | ||
15154 | cat out/conftest.err >&5 | ||
15155 | - echo "$as_me:8721: \$? = $ac_status" >&5 | ||
15156 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15157 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
15158 | then | ||
15159 | # The compiler can only warn and ignore the option if not recognized | ||
15160 | # So say no if there are warnings | ||
15161 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
15162 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
15163 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
15164 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
15165 | lt_cv_prog_compiler_c_o=yes | ||
15166 | @@ -8836,7 +9333,33 @@ $as_echo_n "checking whether the $compil | ||
15167 | esac | ||
15168 | |||
15169 | ld_shlibs=yes | ||
15170 | + | ||
15171 | + # On some targets, GNU ld is compatible enough with the native linker | ||
15172 | + # that we're better off using the native interface for both. | ||
15173 | + lt_use_gnu_ld_interface=no | ||
15174 | if test "$with_gnu_ld" = yes; then | ||
15175 | + case $host_os in | ||
15176 | + aix*) | ||
15177 | + # The AIX port of GNU ld has always aspired to compatibility | ||
15178 | + # with the native linker. However, as the warning in the GNU ld | ||
15179 | + # block says, versions before 2.19.5* couldn't really create working | ||
15180 | + # shared libraries, regardless of the interface used. | ||
15181 | + case `$LD -v 2>&1` in | ||
15182 | + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | ||
15183 | + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | ||
15184 | + *\ \(GNU\ Binutils\)\ [3-9]*) ;; | ||
15185 | + *) | ||
15186 | + lt_use_gnu_ld_interface=yes | ||
15187 | + ;; | ||
15188 | + esac | ||
15189 | + ;; | ||
15190 | + *) | ||
15191 | + lt_use_gnu_ld_interface=yes | ||
15192 | + ;; | ||
15193 | + esac | ||
15194 | + fi | ||
15195 | + | ||
15196 | + if test "$lt_use_gnu_ld_interface" = yes; then | ||
15197 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
15198 | wlarc='${wl}' | ||
15199 | |||
15200 | @@ -8854,6 +9377,7 @@ $as_echo_n "checking whether the $compil | ||
15201 | fi | ||
15202 | supports_anon_versioning=no | ||
15203 | case `$LD -v 2>&1` in | ||
15204 | + *GNU\ gold*) supports_anon_versioning=yes ;; | ||
15205 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
15206 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
15207 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
15208 | @@ -8869,11 +9393,12 @@ $as_echo_n "checking whether the $compil | ||
15209 | ld_shlibs=no | ||
15210 | cat <<_LT_EOF 1>&2 | ||
15211 | |||
15212 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
15213 | +*** Warning: the GNU linker, at least up to release 2.19, is reported | ||
15214 | *** to be unable to reliably create shared libraries on AIX. | ||
15215 | *** Therefore, libtool is disabling shared libraries support. If you | ||
15216 | -*** really care for shared libraries, you may want to modify your PATH | ||
15217 | -*** so that a non-GNU linker is found, and then restart. | ||
15218 | +*** really care for shared libraries, you may want to install binutils | ||
15219 | +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | ||
15220 | +*** You will then need to restart the configuration process. | ||
15221 | |||
15222 | _LT_EOF | ||
15223 | fi | ||
15224 | @@ -8909,10 +9434,12 @@ _LT_EOF | ||
15225 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
15226 | # as there is no search path for DLLs. | ||
15227 | hardcode_libdir_flag_spec='-L$libdir' | ||
15228 | + export_dynamic_flag_spec='${wl}--export-all-symbols' | ||
15229 | allow_undefined_flag=unsupported | ||
15230 | always_export_symbols=no | ||
15231 | enable_shared_with_static_runtimes=yes | ||
15232 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
15233 | + 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' | ||
15234 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
15235 | |||
15236 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
15237 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
15238 | @@ -8930,6 +9457,11 @@ _LT_EOF | ||
15239 | fi | ||
15240 | ;; | ||
15241 | |||
15242 | + haiku*) | ||
15243 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15244 | + link_all_deplibs=yes | ||
15245 | + ;; | ||
15246 | + | ||
15247 | interix[3-9]*) | ||
15248 | hardcode_direct=no | ||
15249 | hardcode_shlibpath_var=no | ||
15250 | @@ -8955,15 +9487,16 @@ _LT_EOF | ||
15251 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
15252 | && test "$tmp_diet" = no | ||
15253 | then | ||
15254 | - tmp_addflag= | ||
15255 | + tmp_addflag=' $pic_flag' | ||
15256 | tmp_sharedflag='-shared' | ||
15257 | case $cc_basename,$host_cpu in | ||
15258 | pgcc*) # Portland Group C compiler | ||
15259 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
15260 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
15261 | tmp_addflag=' $pic_flag' | ||
15262 | ;; | ||
15263 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
15264 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
15265 | + pgf77* | pgf90* | pgf95* | pgfortran*) | ||
15266 | + # Portland Group f77 and f90 compilers | ||
15267 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
15268 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
15269 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
15270 | tmp_addflag=' -i_dynamic' ;; | ||
15271 | @@ -8974,13 +9507,17 @@ _LT_EOF | ||
15272 | lf95*) # Lahey Fortran 8.1 | ||
15273 | whole_archive_flag_spec= | ||
15274 | tmp_sharedflag='--shared' ;; | ||
15275 | - xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
15276 | + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
15277 | tmp_sharedflag='-qmkshrobj' | ||
15278 | tmp_addflag= ;; | ||
15279 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
15280 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
15281 | + compiler_needs_object=yes | ||
15282 | + ;; | ||
15283 | esac | ||
15284 | case `$CC -V 2>&1 | sed 5q` in | ||
15285 | *Sun\ C*) # Sun C 5.9 | ||
15286 | - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
15287 | + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
15288 | compiler_needs_object=yes | ||
15289 | tmp_sharedflag='-G' ;; | ||
15290 | *Sun\ F*) # Sun Fortran 8.3 | ||
15291 | @@ -8996,17 +9533,17 @@ _LT_EOF | ||
15292 | fi | ||
15293 | |||
15294 | case $cc_basename in | ||
15295 | - xlf*) | ||
15296 | + xlf* | bgf* | bgxlf* | mpixlf*) | ||
15297 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
15298 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
15299 | hardcode_libdir_flag_spec= | ||
15300 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
15301 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
15302 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
15303 | if test "x$supports_anon_versioning" = xyes; then | ||
15304 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
15305 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
15306 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
15307 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
15308 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
15309 | fi | ||
15310 | ;; | ||
15311 | esac | ||
15312 | @@ -9020,8 +9557,8 @@ _LT_EOF | ||
15313 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
15314 | wlarc= | ||
15315 | else | ||
15316 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15317 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
15318 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15319 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
15320 | fi | ||
15321 | ;; | ||
15322 | |||
15323 | @@ -9039,8 +9576,8 @@ _LT_EOF | ||
15324 | |||
15325 | _LT_EOF | ||
15326 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
15327 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15328 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
15329 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15330 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
15331 | else | ||
15332 | ld_shlibs=no | ||
15333 | fi | ||
15334 | @@ -9086,8 +9623,8 @@ _LT_EOF | ||
15335 | |||
15336 | *) | ||
15337 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
15338 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15339 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
15340 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15341 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
15342 | else | ||
15343 | ld_shlibs=no | ||
15344 | fi | ||
15345 | @@ -9127,8 +9664,10 @@ _LT_EOF | ||
15346 | else | ||
15347 | # If we're using GNU nm, then we don't want the "-C" option. | ||
15348 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
15349 | + # Also, AIX nm treats weak defined symbols like other global | ||
15350 | + # defined symbols, whereas GNU nm marks them as "W". | ||
15351 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
15352 | - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
15353 | + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
15354 | else | ||
15355 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
15356 | fi | ||
15357 | @@ -9215,7 +9754,13 @@ _LT_EOF | ||
15358 | allow_undefined_flag='-berok' | ||
15359 | # Determine the default libpath from the value encoded in an | ||
15360 | # empty executable. | ||
15361 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15362 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
15363 | + aix_libpath=$lt_cv_aix_libpath | ||
15364 | +else | ||
15365 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
15366 | + $as_echo_n "(cached) " >&6 | ||
15367 | +else | ||
15368 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15369 | /* end confdefs.h. */ | ||
15370 | |||
15371 | int | ||
15372 | @@ -9228,25 +9773,32 @@ main () | ||
15373 | _ACEOF | ||
15374 | if ac_fn_c_try_link "$LINENO"; then : | ||
15375 | |||
15376 | -lt_aix_libpath_sed=' | ||
15377 | - /Import File Strings/,/^$/ { | ||
15378 | - /^0/ { | ||
15379 | - s/^0 *\(.*\)$/\1/ | ||
15380 | - p | ||
15381 | - } | ||
15382 | - }' | ||
15383 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
15384 | -# Check for a 64-bit object if we didn't find anything. | ||
15385 | -if test -z "$aix_libpath"; then | ||
15386 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
15387 | -fi | ||
15388 | + lt_aix_libpath_sed=' | ||
15389 | + /Import File Strings/,/^$/ { | ||
15390 | + /^0/ { | ||
15391 | + s/^0 *\([^ ]*\) *$/\1/ | ||
15392 | + p | ||
15393 | + } | ||
15394 | + }' | ||
15395 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
15396 | + # Check for a 64-bit object if we didn't find anything. | ||
15397 | + if test -z "$lt_cv_aix_libpath_"; then | ||
15398 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
15399 | + fi | ||
15400 | fi | ||
15401 | rm -f core conftest.err conftest.$ac_objext \ | ||
15402 | conftest$ac_exeext conftest.$ac_ext | ||
15403 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
15404 | + if test -z "$lt_cv_aix_libpath_"; then | ||
15405 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
15406 | + fi | ||
15407 | + | ||
15408 | +fi | ||
15409 | + | ||
15410 | + aix_libpath=$lt_cv_aix_libpath_ | ||
15411 | +fi | ||
15412 | |||
15413 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
15414 | - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
15415 | + 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" | ||
15416 | else | ||
15417 | if test "$host_cpu" = ia64; then | ||
15418 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
15419 | @@ -9255,7 +9807,13 @@ if test -z "$aix_libpath"; then aix_libp | ||
15420 | else | ||
15421 | # Determine the default libpath from the value encoded in an | ||
15422 | # empty executable. | ||
15423 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15424 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
15425 | + aix_libpath=$lt_cv_aix_libpath | ||
15426 | +else | ||
15427 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
15428 | + $as_echo_n "(cached) " >&6 | ||
15429 | +else | ||
15430 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15431 | /* end confdefs.h. */ | ||
15432 | |||
15433 | int | ||
15434 | @@ -9268,30 +9826,42 @@ main () | ||
15435 | _ACEOF | ||
15436 | if ac_fn_c_try_link "$LINENO"; then : | ||
15437 | |||
15438 | -lt_aix_libpath_sed=' | ||
15439 | - /Import File Strings/,/^$/ { | ||
15440 | - /^0/ { | ||
15441 | - s/^0 *\(.*\)$/\1/ | ||
15442 | - p | ||
15443 | - } | ||
15444 | - }' | ||
15445 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
15446 | -# Check for a 64-bit object if we didn't find anything. | ||
15447 | -if test -z "$aix_libpath"; then | ||
15448 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
15449 | -fi | ||
15450 | + lt_aix_libpath_sed=' | ||
15451 | + /Import File Strings/,/^$/ { | ||
15452 | + /^0/ { | ||
15453 | + s/^0 *\([^ ]*\) *$/\1/ | ||
15454 | + p | ||
15455 | + } | ||
15456 | + }' | ||
15457 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
15458 | + # Check for a 64-bit object if we didn't find anything. | ||
15459 | + if test -z "$lt_cv_aix_libpath_"; then | ||
15460 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
15461 | + fi | ||
15462 | fi | ||
15463 | rm -f core conftest.err conftest.$ac_objext \ | ||
15464 | conftest$ac_exeext conftest.$ac_ext | ||
15465 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
15466 | + if test -z "$lt_cv_aix_libpath_"; then | ||
15467 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
15468 | + fi | ||
15469 | + | ||
15470 | +fi | ||
15471 | + | ||
15472 | + aix_libpath=$lt_cv_aix_libpath_ | ||
15473 | +fi | ||
15474 | |||
15475 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
15476 | # Warning - without using the other run time loading flags, | ||
15477 | # -berok will link without error, but may produce a broken library. | ||
15478 | no_undefined_flag=' ${wl}-bernotok' | ||
15479 | allow_undefined_flag=' ${wl}-berok' | ||
15480 | - # Exported symbols can be pulled into shared objects from archives | ||
15481 | - whole_archive_flag_spec='$convenience' | ||
15482 | + if test "$with_gnu_ld" = yes; then | ||
15483 | + # We only use this code for GNU lds that support --whole-archive. | ||
15484 | + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
15485 | + else | ||
15486 | + # Exported symbols can be pulled into shared objects from archives | ||
15487 | + whole_archive_flag_spec='$convenience' | ||
15488 | + fi | ||
15489 | archive_cmds_need_lc=yes | ||
15490 | # This is similar to how AIX traditionally builds its shared libraries. | ||
15491 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
15492 | @@ -9323,20 +9893,63 @@ if test -z "$aix_libpath"; then aix_libp | ||
15493 | # Microsoft Visual C++. | ||
15494 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
15495 | # no search path for DLLs. | ||
15496 | - hardcode_libdir_flag_spec=' ' | ||
15497 | - allow_undefined_flag=unsupported | ||
15498 | - # Tell ltmain to make .lib files, not .a files. | ||
15499 | - libext=lib | ||
15500 | - # Tell ltmain to make .dll files, not .so files. | ||
15501 | - shrext_cmds=".dll" | ||
15502 | - # FIXME: Setting linknames here is a bad hack. | ||
15503 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
15504 | - # The linker will automatically build a .lib file if we build a DLL. | ||
15505 | - old_archive_from_new_cmds='true' | ||
15506 | - # FIXME: Should let the user specify the lib program. | ||
15507 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
15508 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
15509 | - enable_shared_with_static_runtimes=yes | ||
15510 | + case $cc_basename in | ||
15511 | + cl*) | ||
15512 | + # Native MSVC | ||
15513 | + hardcode_libdir_flag_spec=' ' | ||
15514 | + allow_undefined_flag=unsupported | ||
15515 | + always_export_symbols=yes | ||
15516 | + file_list_spec='@' | ||
15517 | + # Tell ltmain to make .lib files, not .a files. | ||
15518 | + libext=lib | ||
15519 | + # Tell ltmain to make .dll files, not .so files. | ||
15520 | + shrext_cmds=".dll" | ||
15521 | + # FIXME: Setting linknames here is a bad hack. | ||
15522 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
15523 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
15524 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
15525 | + else | ||
15526 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
15527 | + fi~ | ||
15528 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
15529 | + linknames=' | ||
15530 | + # The linker will not automatically build a static lib if we build a DLL. | ||
15531 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
15532 | + enable_shared_with_static_runtimes=yes | ||
15533 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
15534 | + # Don't use ranlib | ||
15535 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
15536 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
15537 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
15538 | + case $lt_outputfile in | ||
15539 | + *.exe|*.EXE) ;; | ||
15540 | + *) | ||
15541 | + lt_outputfile="$lt_outputfile.exe" | ||
15542 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
15543 | + ;; | ||
15544 | + esac~ | ||
15545 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
15546 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
15547 | + $RM "$lt_outputfile.manifest"; | ||
15548 | + fi' | ||
15549 | + ;; | ||
15550 | + *) | ||
15551 | + # Assume MSVC wrapper | ||
15552 | + hardcode_libdir_flag_spec=' ' | ||
15553 | + allow_undefined_flag=unsupported | ||
15554 | + # Tell ltmain to make .lib files, not .a files. | ||
15555 | + libext=lib | ||
15556 | + # Tell ltmain to make .dll files, not .so files. | ||
15557 | + shrext_cmds=".dll" | ||
15558 | + # FIXME: Setting linknames here is a bad hack. | ||
15559 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
15560 | + # The linker will automatically build a .lib file if we build a DLL. | ||
15561 | + old_archive_from_new_cmds='true' | ||
15562 | + # FIXME: Should let the user specify the lib program. | ||
15563 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
15564 | + enable_shared_with_static_runtimes=yes | ||
15565 | + ;; | ||
15566 | + esac | ||
15567 | ;; | ||
15568 | |||
15569 | darwin* | rhapsody*) | ||
15570 | @@ -9346,7 +9959,11 @@ if test -z "$aix_libpath"; then aix_libp | ||
15571 | hardcode_direct=no | ||
15572 | hardcode_automatic=yes | ||
15573 | hardcode_shlibpath_var=unsupported | ||
15574 | - whole_archive_flag_spec='' | ||
15575 | + if test "$lt_cv_ld_force_load" = "yes"; then | ||
15576 | + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | ||
15577 | + else | ||
15578 | + whole_archive_flag_spec='' | ||
15579 | + fi | ||
15580 | link_all_deplibs=yes | ||
15581 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
15582 | case $cc_basename in | ||
15583 | @@ -9354,7 +9971,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
15584 | *) _lt_dar_can_shared=$GCC ;; | ||
15585 | esac | ||
15586 | if test "$_lt_dar_can_shared" = "yes"; then | ||
15587 | - output_verbose_link_cmd=echo | ||
15588 | + output_verbose_link_cmd=func_echo_all | ||
15589 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
15590 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
15591 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | ||
15592 | @@ -9397,7 +10014,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
15593 | |||
15594 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
15595 | freebsd* | dragonfly*) | ||
15596 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
15597 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
15598 | hardcode_libdir_flag_spec='-R$libdir' | ||
15599 | hardcode_direct=yes | ||
15600 | hardcode_shlibpath_var=no | ||
15601 | @@ -9405,7 +10022,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
15602 | |||
15603 | hpux9*) | ||
15604 | if test "$GCC" = yes; then | ||
15605 | - 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' | ||
15606 | + 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' | ||
15607 | else | ||
15608 | 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' | ||
15609 | fi | ||
15610 | @@ -9420,8 +10037,8 @@ if test -z "$aix_libpath"; then aix_libp | ||
15611 | ;; | ||
15612 | |||
15613 | hpux10*) | ||
15614 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
15615 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15616 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
15617 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15618 | else | ||
15619 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
15620 | fi | ||
15621 | @@ -9439,16 +10056,16 @@ if test -z "$aix_libpath"; then aix_libp | ||
15622 | ;; | ||
15623 | |||
15624 | hpux11*) | ||
15625 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
15626 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
15627 | case $host_cpu in | ||
15628 | hppa*64*) | ||
15629 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15630 | ;; | ||
15631 | ia64*) | ||
15632 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
15633 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
15634 | ;; | ||
15635 | *) | ||
15636 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15637 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15638 | ;; | ||
15639 | esac | ||
15640 | else | ||
15641 | @@ -9460,7 +10077,46 @@ if test -z "$aix_libpath"; then aix_libp | ||
15642 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
15643 | ;; | ||
15644 | *) | ||
15645 | - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15646 | + | ||
15647 | + # Older versions of the 11.00 compiler do not understand -b yet | ||
15648 | + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | ||
15649 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | ||
15650 | +$as_echo_n "checking if $CC understands -b... " >&6; } | ||
15651 | +if test "${lt_cv_prog_compiler__b+set}" = set; then : | ||
15652 | + $as_echo_n "(cached) " >&6 | ||
15653 | +else | ||
15654 | + lt_cv_prog_compiler__b=no | ||
15655 | + save_LDFLAGS="$LDFLAGS" | ||
15656 | + LDFLAGS="$LDFLAGS -b" | ||
15657 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
15658 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
15659 | + # The linker can only warn and ignore the option if not recognized | ||
15660 | + # So say no if there are warnings | ||
15661 | + if test -s conftest.err; then | ||
15662 | + # Append any errors to the config.log. | ||
15663 | + cat conftest.err 1>&5 | ||
15664 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
15665 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15666 | + if diff conftest.exp conftest.er2 >/dev/null; then | ||
15667 | + lt_cv_prog_compiler__b=yes | ||
15668 | + fi | ||
15669 | + else | ||
15670 | + lt_cv_prog_compiler__b=yes | ||
15671 | + fi | ||
15672 | + fi | ||
15673 | + $RM -r conftest* | ||
15674 | + LDFLAGS="$save_LDFLAGS" | ||
15675 | + | ||
15676 | +fi | ||
15677 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | ||
15678 | +$as_echo "$lt_cv_prog_compiler__b" >&6; } | ||
15679 | + | ||
15680 | +if test x"$lt_cv_prog_compiler__b" = xyes; then | ||
15681 | + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15682 | +else | ||
15683 | + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
15684 | +fi | ||
15685 | + | ||
15686 | ;; | ||
15687 | esac | ||
15688 | fi | ||
15689 | @@ -9488,26 +10144,39 @@ if test -z "$aix_libpath"; then aix_libp | ||
15690 | |||
15691 | irix5* | irix6* | nonstopux*) | ||
15692 | if test "$GCC" = yes; then | ||
15693 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
15694 | + 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' | ||
15695 | # Try to use the -exported_symbol ld option, if it does not | ||
15696 | # work, assume that -exports_file does not work either and | ||
15697 | # implicitly export all symbols. | ||
15698 | - save_LDFLAGS="$LDFLAGS" | ||
15699 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
15700 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15701 | + # This should be the same for all languages, so no per-tag cache variable. | ||
15702 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
15703 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
15704 | +if test "${lt_cv_irix_exported_symbol+set}" = set; then : | ||
15705 | + $as_echo_n "(cached) " >&6 | ||
15706 | +else | ||
15707 | + save_LDFLAGS="$LDFLAGS" | ||
15708 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
15709 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15710 | /* end confdefs.h. */ | ||
15711 | -int foo(void) {} | ||
15712 | +int foo (void) { return 0; } | ||
15713 | _ACEOF | ||
15714 | if ac_fn_c_try_link "$LINENO"; then : | ||
15715 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
15716 | - | ||
15717 | + lt_cv_irix_exported_symbol=yes | ||
15718 | +else | ||
15719 | + lt_cv_irix_exported_symbol=no | ||
15720 | fi | ||
15721 | rm -f core conftest.err conftest.$ac_objext \ | ||
15722 | conftest$ac_exeext conftest.$ac_ext | ||
15723 | - LDFLAGS="$save_LDFLAGS" | ||
15724 | + LDFLAGS="$save_LDFLAGS" | ||
15725 | +fi | ||
15726 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
15727 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
15728 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
15729 | + 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' | ||
15730 | + fi | ||
15731 | else | ||
15732 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15733 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
15734 | + 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' | ||
15735 | + 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' | ||
15736 | fi | ||
15737 | archive_cmds_need_lc='no' | ||
15738 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
15739 | @@ -9569,17 +10238,17 @@ rm -f core conftest.err conftest.$ac_obj | ||
15740 | hardcode_libdir_flag_spec='-L$libdir' | ||
15741 | hardcode_minus_L=yes | ||
15742 | allow_undefined_flag=unsupported | ||
15743 | - archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
15744 | + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
15745 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
15746 | ;; | ||
15747 | |||
15748 | osf3*) | ||
15749 | if test "$GCC" = yes; then | ||
15750 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
15751 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
15752 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
15753 | else | ||
15754 | allow_undefined_flag=' -expect_unresolved \*' | ||
15755 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15756 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15757 | fi | ||
15758 | archive_cmds_need_lc='no' | ||
15759 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
15760 | @@ -9589,13 +10258,13 @@ rm -f core conftest.err conftest.$ac_obj | ||
15761 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
15762 | if test "$GCC" = yes; then | ||
15763 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
15764 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
15765 | + 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' | ||
15766 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
15767 | else | ||
15768 | allow_undefined_flag=' -expect_unresolved \*' | ||
15769 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15770 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15771 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | ||
15772 | - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
15773 | + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
15774 | |||
15775 | # Both c and cxx compiler support -rpath directly | ||
15776 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
15777 | @@ -9608,9 +10277,9 @@ rm -f core conftest.err conftest.$ac_obj | ||
15778 | no_undefined_flag=' -z defs' | ||
15779 | if test "$GCC" = yes; then | ||
15780 | wlarc='${wl}' | ||
15781 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15782 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15783 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
15784 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
15785 | + $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' | ||
15786 | else | ||
15787 | case `$CC -V 2>&1` in | ||
15788 | *"Compilers 5.0"*) | ||
15789 | @@ -10012,16 +10681,23 @@ if test "$GCC" = yes; then | ||
15790 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
15791 | *) lt_awk_arg="/^libraries:/" ;; | ||
15792 | esac | ||
15793 | - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
15794 | - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
15795 | + case $host_os in | ||
15796 | + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | ||
15797 | + *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
15798 | + esac | ||
15799 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
15800 | + case $lt_search_path_spec in | ||
15801 | + *\;*) | ||
15802 | # if the path contains ";" then we assume it to be the separator | ||
15803 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
15804 | # assumed that no part of a normal pathname contains ";" but that should | ||
15805 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
15806 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
15807 | - else | ||
15808 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
15809 | - fi | ||
15810 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
15811 | + ;; | ||
15812 | + *) | ||
15813 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
15814 | + ;; | ||
15815 | + esac | ||
15816 | # Ok, now we have the path, separated by spaces, we can step through it | ||
15817 | # and add multilib dir if necessary. | ||
15818 | lt_tmp_lt_search_path_spec= | ||
15819 | @@ -10034,7 +10710,7 @@ if test "$GCC" = yes; then | ||
15820 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
15821 | fi | ||
15822 | done | ||
15823 | - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
15824 | + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
15825 | BEGIN {RS=" "; FS="/|\n";} { | ||
15826 | lt_foo=""; | ||
15827 | lt_count=0; | ||
15828 | @@ -10054,7 +10730,13 @@ BEGIN {RS=" "; FS="/|\n";} { | ||
15829 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
15830 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
15831 | }'` | ||
15832 | - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
15833 | + # AWK program above erroneously prepends '/' to C:/dos/paths | ||
15834 | + # for these hosts. | ||
15835 | + case $host_os in | ||
15836 | + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
15837 | + $SED 's,/\([A-Za-z]:\),\1,g'` ;; | ||
15838 | + esac | ||
15839 | + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
15840 | else | ||
15841 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
15842 | fi | ||
15843 | @@ -10142,7 +10824,7 @@ amigaos*) | ||
15844 | m68k) | ||
15845 | library_names_spec='$libname.ixlibrary $libname.a' | ||
15846 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
15847 | - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
15848 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
15849 | ;; | ||
15850 | esac | ||
15851 | ;; | ||
15852 | @@ -10173,8 +10855,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
15853 | need_version=no | ||
15854 | need_lib_prefix=no | ||
15855 | |||
15856 | - case $GCC,$host_os in | ||
15857 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
15858 | + case $GCC,$cc_basename in | ||
15859 | + yes,*) | ||
15860 | + # gcc | ||
15861 | library_names_spec='$libname.dll.a' | ||
15862 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
15863 | postinstall_cmds='base_file=`basename \${file}`~ | ||
15864 | @@ -10195,36 +10878,83 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
15865 | cygwin*) | ||
15866 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
15867 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15868 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
15869 | + | ||
15870 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | ||
15871 | ;; | ||
15872 | mingw* | cegcc*) | ||
15873 | # MinGW DLLs use traditional 'lib' prefix | ||
15874 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15875 | - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
15876 | - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
15877 | - # It is most probably a Windows format PATH printed by | ||
15878 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
15879 | - # path with ; separators, and with drive letters. We can handle the | ||
15880 | - # drive letters (cygwin fileutils understands them), so leave them, | ||
15881 | - # especially as we might pass files found there to a mingw objdump, | ||
15882 | - # which wouldn't understand a cygwinified path. Ahh. | ||
15883 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
15884 | - else | ||
15885 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
15886 | - fi | ||
15887 | ;; | ||
15888 | pw32*) | ||
15889 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
15890 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15891 | ;; | ||
15892 | esac | ||
15893 | + dynamic_linker='Win32 ld.exe' | ||
15894 | + ;; | ||
15895 | + | ||
15896 | + *,cl*) | ||
15897 | + # Native MSVC | ||
15898 | + libname_spec='$name' | ||
15899 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15900 | + library_names_spec='${libname}.dll.lib' | ||
15901 | + | ||
15902 | + case $build_os in | ||
15903 | + mingw*) | ||
15904 | + sys_lib_search_path_spec= | ||
15905 | + lt_save_ifs=$IFS | ||
15906 | + IFS=';' | ||
15907 | + for lt_path in $LIB | ||
15908 | + do | ||
15909 | + IFS=$lt_save_ifs | ||
15910 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
15911 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
15912 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
15913 | + done | ||
15914 | + IFS=$lt_save_ifs | ||
15915 | + # Convert to MSYS style. | ||
15916 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
15917 | + ;; | ||
15918 | + cygwin*) | ||
15919 | + # Convert to unix form, then to dos form, then back to unix form | ||
15920 | + # but this time dos style (no spaces!) so that the unix form looks | ||
15921 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
15922 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
15923 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
15924 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
15925 | + ;; | ||
15926 | + *) | ||
15927 | + sys_lib_search_path_spec="$LIB" | ||
15928 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
15929 | + # It is most probably a Windows format PATH. | ||
15930 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
15931 | + else | ||
15932 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
15933 | + fi | ||
15934 | + # FIXME: find the short name or the path components, as spaces are | ||
15935 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
15936 | + ;; | ||
15937 | + esac | ||
15938 | + | ||
15939 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
15940 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
15941 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
15942 | + dldir=$destdir/`dirname \$dlpath`~ | ||
15943 | + test -d \$dldir || mkdir -p \$dldir~ | ||
15944 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
15945 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
15946 | + dlpath=$dir/\$dldll~ | ||
15947 | + $RM \$dlpath' | ||
15948 | + shlibpath_overrides_runpath=yes | ||
15949 | + dynamic_linker='Win32 link.exe' | ||
15950 | ;; | ||
15951 | |||
15952 | *) | ||
15953 | + # Assume MSVC wrapper | ||
15954 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
15955 | + dynamic_linker='Win32 ld.exe' | ||
15956 | ;; | ||
15957 | esac | ||
15958 | - dynamic_linker='Win32 ld.exe' | ||
15959 | # FIXME: first we should search . and the directory the executable is in | ||
15960 | shlibpath_var=PATH | ||
15961 | ;; | ||
15962 | @@ -10311,6 +11041,19 @@ gnu*) | ||
15963 | hardcode_into_libs=yes | ||
15964 | ;; | ||
15965 | |||
15966 | +haiku*) | ||
15967 | + version_type=linux | ||
15968 | + need_lib_prefix=no | ||
15969 | + need_version=no | ||
15970 | + dynamic_linker="$host_os runtime_loader" | ||
15971 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
15972 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
15973 | + shlibpath_var=LIBRARY_PATH | ||
15974 | + shlibpath_overrides_runpath=yes | ||
15975 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
15976 | + hardcode_into_libs=yes | ||
15977 | + ;; | ||
15978 | + | ||
15979 | hpux9* | hpux10* | hpux11*) | ||
15980 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
15981 | # link against other versions. | ||
15982 | @@ -10353,8 +11096,10 @@ hpux9* | hpux10* | hpux11*) | ||
15983 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15984 | ;; | ||
15985 | esac | ||
15986 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
15987 | + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
15988 | postinstall_cmds='chmod 555 $lib' | ||
15989 | + # or fails outright, so override atomically: | ||
15990 | + install_override_mode=555 | ||
15991 | ;; | ||
15992 | |||
15993 | interix[3-9]*) | ||
15994 | @@ -10463,7 +11208,7 @@ fi | ||
15995 | |||
15996 | # Append ld.so.conf contents to the search path | ||
15997 | if test -f /etc/ld.so.conf; then | ||
15998 | - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
15999 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | ||
16000 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
16001 | fi | ||
16002 | |||
16003 | @@ -10766,6 +11511,11 @@ fi | ||
16004 | |||
16005 | |||
16006 | |||
16007 | + | ||
16008 | + | ||
16009 | + | ||
16010 | + | ||
16011 | + | ||
16012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
16013 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
16014 | hardcode_action= | ||
16015 | @@ -11096,7 +11846,7 @@ else | ||
16016 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
16017 | lt_status=$lt_dlunknown | ||
16018 | cat > conftest.$ac_ext <<_LT_EOF | ||
16019 | -#line 11099 "configure" | ||
16020 | +#line $LINENO "configure" | ||
16021 | #include "confdefs.h" | ||
16022 | |||
16023 | #if HAVE_DLFCN_H | ||
16024 | @@ -11137,7 +11887,13 @@ else | ||
16025 | # endif | ||
16026 | #endif | ||
16027 | |||
16028 | -void fnord() { int i=42;} | ||
16029 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
16030 | + correspondingly for the symbols needed. */ | ||
16031 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
16032 | +int fnord () __attribute__((visibility("default"))); | ||
16033 | +#endif | ||
16034 | + | ||
16035 | +int fnord () { return 42; } | ||
16036 | int main () | ||
16037 | { | ||
16038 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
16039 | @@ -11146,7 +11902,11 @@ int main () | ||
16040 | if (self) | ||
16041 | { | ||
16042 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
16043 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
16044 | + else | ||
16045 | + { | ||
16046 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
16047 | + else puts (dlerror ()); | ||
16048 | + } | ||
16049 | /* dlclose (self); */ | ||
16050 | } | ||
16051 | else | ||
16052 | @@ -11192,7 +11952,7 @@ else | ||
16053 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
16054 | lt_status=$lt_dlunknown | ||
16055 | cat > conftest.$ac_ext <<_LT_EOF | ||
16056 | -#line 11195 "configure" | ||
16057 | +#line $LINENO "configure" | ||
16058 | #include "confdefs.h" | ||
16059 | |||
16060 | #if HAVE_DLFCN_H | ||
16061 | @@ -11233,7 +11993,13 @@ else | ||
16062 | # endif | ||
16063 | #endif | ||
16064 | |||
16065 | -void fnord() { int i=42;} | ||
16066 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
16067 | + correspondingly for the symbols needed. */ | ||
16068 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
16069 | +int fnord () __attribute__((visibility("default"))); | ||
16070 | +#endif | ||
16071 | + | ||
16072 | +int fnord () { return 42; } | ||
16073 | int main () | ||
16074 | { | ||
16075 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
16076 | @@ -11242,7 +12008,11 @@ int main () | ||
16077 | if (self) | ||
16078 | { | ||
16079 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
16080 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
16081 | + else | ||
16082 | + { | ||
16083 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
16084 | + else puts (dlerror ()); | ||
16085 | + } | ||
16086 | /* dlclose (self); */ | ||
16087 | } | ||
16088 | else | ||
16089 | @@ -14706,131 +15476,153 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac | ||
16090 | sed_quote_subst='$sed_quote_subst' | ||
16091 | double_quote_subst='$double_quote_subst' | ||
16092 | delay_variable_subst='$delay_variable_subst' | ||
16093 | -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
16094 | -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
16095 | -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
16096 | -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
16097 | -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
16098 | -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
16099 | -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
16100 | -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
16101 | -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
16102 | -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
16103 | -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
16104 | -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
16105 | -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
16106 | -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
16107 | -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
16108 | -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
16109 | -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
16110 | -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
16111 | -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
16112 | -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
16113 | -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
16114 | -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
16115 | -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
16116 | -lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
16117 | -lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
16118 | -lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
16119 | -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
16120 | -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16121 | -OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
16122 | -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
16123 | -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
16124 | -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
16125 | -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
16126 | -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
16127 | -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
16128 | -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16129 | -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16130 | -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16131 | -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
16132 | -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
16133 | -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
16134 | -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
16135 | -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
16136 | -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
16137 | -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | ||
16138 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
16139 | -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
16140 | -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
16141 | -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
16142 | -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
16143 | -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
16144 | -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
16145 | -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
16146 | -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
16147 | -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
16148 | -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
16149 | -DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
16150 | -NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
16151 | -LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
16152 | -OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
16153 | -OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
16154 | -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
16155 | -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16156 | -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16157 | -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
16158 | -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
16159 | -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
16160 | -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
16161 | -compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
16162 | -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16163 | -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16164 | -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16165 | -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16166 | -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16167 | -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16168 | -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
16169 | -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
16170 | -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
16171 | -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
16172 | -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
16173 | -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
16174 | -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
16175 | -hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
16176 | -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
16177 | -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
16178 | -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
16179 | -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
16180 | -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
16181 | -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
16182 | -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
16183 | -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16184 | -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
16185 | -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
16186 | -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16187 | -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
16188 | -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
16189 | -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
16190 | -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
16191 | -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
16192 | -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
16193 | -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
16194 | -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
16195 | -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
16196 | -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
16197 | -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
16198 | -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16199 | -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16200 | -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
16201 | -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
16202 | -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
16203 | -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
16204 | -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
16205 | -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
16206 | -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
16207 | -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
16208 | -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
16209 | -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
16210 | -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
16211 | +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | ||
16212 | +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | ||
16213 | +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | ||
16214 | +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | ||
16215 | +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | ||
16216 | +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | ||
16217 | +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | ||
16218 | +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | ||
16219 | +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | ||
16220 | +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | ||
16221 | +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | ||
16222 | +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | ||
16223 | +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | ||
16224 | +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | ||
16225 | +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | ||
16226 | +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | ||
16227 | +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | ||
16228 | +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | ||
16229 | +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | ||
16230 | +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | ||
16231 | +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | ||
16232 | +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | ||
16233 | +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | ||
16234 | +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | ||
16235 | +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
16236 | +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
16237 | +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
16238 | +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
16239 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
16240 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
16241 | +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
16242 | +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
16243 | +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
16244 | +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
16245 | +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
16246 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
16247 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
16248 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
16249 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
16250 | +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
16251 | +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
16252 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
16253 | +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
16254 | +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
16255 | +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
16256 | +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
16257 | +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
16258 | +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | ||
16259 | +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | ||
16260 | +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | ||
16261 | +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | ||
16262 | +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | ||
16263 | +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | ||
16264 | +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
16265 | +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
16266 | +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"`' | ||
16267 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
16268 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
16269 | +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
16270 | +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
16271 | +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
16272 | +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
16273 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
16274 | +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
16275 | +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
16276 | +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
16277 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
16278 | +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
16279 | +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
16280 | +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
16281 | +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | ||
16282 | +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | ||
16283 | +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | ||
16284 | +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | ||
16285 | +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
16286 | +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | ||
16287 | +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | ||
16288 | +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
16289 | +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
16290 | +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | ||
16291 | +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | ||
16292 | +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
16293 | +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
16294 | +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
16295 | +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | ||
16296 | +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
16297 | +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | ||
16298 | +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
16299 | +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
16300 | +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
16301 | +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | ||
16302 | +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | ||
16303 | +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | ||
16304 | +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | ||
16305 | +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | ||
16306 | +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
16307 | +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
16308 | +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
16309 | +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
16310 | +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
16311 | +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
16312 | +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
16313 | +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
16314 | +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
16315 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
16316 | +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
16317 | +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
16318 | +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
16319 | +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | ||
16320 | +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | ||
16321 | +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | ||
16322 | +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
16323 | +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | ||
16324 | +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | ||
16325 | +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | ||
16326 | +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | ||
16327 | +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | ||
16328 | +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
16329 | +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
16330 | +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | ||
16331 | +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | ||
16332 | +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | ||
16333 | +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | ||
16334 | +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | ||
16335 | +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | ||
16336 | +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | ||
16337 | +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | ||
16338 | +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | ||
16339 | +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | ||
16340 | +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | ||
16341 | |||
16342 | LTCC='$LTCC' | ||
16343 | LTCFLAGS='$LTCFLAGS' | ||
16344 | compiler='$compiler_DEFAULT' | ||
16345 | |||
16346 | +# A function that is used when there is no print builtin or printf. | ||
16347 | +func_fallback_echo () | ||
16348 | +{ | ||
16349 | + eval 'cat <<_LTECHO_EOF | ||
16350 | +\$1 | ||
16351 | +_LTECHO_EOF' | ||
16352 | +} | ||
16353 | + | ||
16354 | # Quote evaled strings. | ||
16355 | -for var in SED \ | ||
16356 | +for var in SHELL \ | ||
16357 | +ECHO \ | ||
16358 | +SED \ | ||
16359 | GREP \ | ||
16360 | EGREP \ | ||
16361 | FGREP \ | ||
16362 | @@ -14843,8 +15635,13 @@ reload_flag \ | ||
16363 | OBJDUMP \ | ||
16364 | deplibs_check_method \ | ||
16365 | file_magic_cmd \ | ||
16366 | +file_magic_glob \ | ||
16367 | +want_nocaseglob \ | ||
16368 | +DLLTOOL \ | ||
16369 | +sharedlib_from_linklib_cmd \ | ||
16370 | AR \ | ||
16371 | AR_FLAGS \ | ||
16372 | +archiver_list_spec \ | ||
16373 | STRIP \ | ||
16374 | RANLIB \ | ||
16375 | CC \ | ||
16376 | @@ -14854,14 +15651,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
16377 | lt_cv_sys_global_symbol_to_cdecl \ | ||
16378 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
16379 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
16380 | -SHELL \ | ||
16381 | -ECHO \ | ||
16382 | +nm_file_list_spec \ | ||
16383 | lt_prog_compiler_no_builtin_flag \ | ||
16384 | -lt_prog_compiler_wl \ | ||
16385 | lt_prog_compiler_pic \ | ||
16386 | +lt_prog_compiler_wl \ | ||
16387 | lt_prog_compiler_static \ | ||
16388 | lt_cv_prog_compiler_c_o \ | ||
16389 | need_locks \ | ||
16390 | +MANIFEST_TOOL \ | ||
16391 | DSYMUTIL \ | ||
16392 | NMEDIT \ | ||
16393 | LIPO \ | ||
16394 | @@ -14877,7 +15674,6 @@ no_undefined_flag \ | ||
16395 | hardcode_libdir_flag_spec \ | ||
16396 | hardcode_libdir_flag_spec_ld \ | ||
16397 | hardcode_libdir_separator \ | ||
16398 | -fix_srcfile_path \ | ||
16399 | exclude_expsyms \ | ||
16400 | include_expsyms \ | ||
16401 | file_list_spec \ | ||
16402 | @@ -14885,12 +15681,13 @@ variables_saved_for_relink \ | ||
16403 | libname_spec \ | ||
16404 | library_names_spec \ | ||
16405 | soname_spec \ | ||
16406 | +install_override_mode \ | ||
16407 | finish_eval \ | ||
16408 | old_striplib \ | ||
16409 | striplib; do | ||
16410 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
16411 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
16412 | *[\\\\\\\`\\"\\\$]*) | ||
16413 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
16414 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
16415 | ;; | ||
16416 | *) | ||
16417 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
16418 | @@ -14912,14 +15709,15 @@ module_cmds \ | ||
16419 | module_expsym_cmds \ | ||
16420 | export_symbols_cmds \ | ||
16421 | prelink_cmds \ | ||
16422 | +postlink_cmds \ | ||
16423 | postinstall_cmds \ | ||
16424 | postuninstall_cmds \ | ||
16425 | finish_cmds \ | ||
16426 | sys_lib_search_path_spec \ | ||
16427 | sys_lib_dlsearch_path_spec; do | ||
16428 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
16429 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
16430 | *[\\\\\\\`\\"\\\$]*) | ||
16431 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
16432 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
16433 | ;; | ||
16434 | *) | ||
16435 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
16436 | @@ -14927,12 +15725,6 @@ sys_lib_dlsearch_path_spec; do | ||
16437 | esac | ||
16438 | done | ||
16439 | |||
16440 | -# Fix-up fallback echo if it was mangled by the above quoting rules. | ||
16441 | -case \$lt_ECHO in | ||
16442 | -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
16443 | - ;; | ||
16444 | -esac | ||
16445 | - | ||
16446 | ac_aux_dir='$ac_aux_dir' | ||
16447 | xsi_shell='$xsi_shell' | ||
16448 | lt_shell_append='$lt_shell_append' | ||
16449 | @@ -15675,7 +16467,8 @@ $as_echo X"$file" | | ||
16450 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
16451 | # | ||
16452 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
16453 | -# 2006, 2007, 2008 Free Software Foundation, Inc. | ||
16454 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
16455 | +# Inc. | ||
16456 | # Written by Gordon Matzigkeit, 1996 | ||
16457 | # | ||
16458 | # This file is part of GNU Libtool. | ||
16459 | @@ -15723,6 +16516,12 @@ pic_mode=$pic_mode | ||
16460 | # Whether or not to optimize for fast installation. | ||
16461 | fast_install=$enable_fast_install | ||
16462 | |||
16463 | +# Shell to use when invoking shell scripts. | ||
16464 | +SHELL=$lt_SHELL | ||
16465 | + | ||
16466 | +# An echo program that protects backslashes. | ||
16467 | +ECHO=$lt_ECHO | ||
16468 | + | ||
16469 | # The host system. | ||
16470 | host_alias=$host_alias | ||
16471 | host=$host | ||
16472 | @@ -15772,9 +16571,11 @@ SP2NL=$lt_lt_SP2NL | ||
16473 | # turn newlines into spaces. | ||
16474 | NL2SP=$lt_lt_NL2SP | ||
16475 | |||
16476 | -# How to create reloadable object files. | ||
16477 | -reload_flag=$lt_reload_flag | ||
16478 | -reload_cmds=$lt_reload_cmds | ||
16479 | +# convert \$build file names to \$host format. | ||
16480 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
16481 | + | ||
16482 | +# convert \$build files to toolchain format. | ||
16483 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
16484 | |||
16485 | # An object symbol dumper. | ||
16486 | OBJDUMP=$lt_OBJDUMP | ||
16487 | @@ -15782,13 +16583,30 @@ OBJDUMP=$lt_OBJDUMP | ||
16488 | # Method to check whether dependent libraries are shared objects. | ||
16489 | deplibs_check_method=$lt_deplibs_check_method | ||
16490 | |||
16491 | -# Command to use when deplibs_check_method == "file_magic". | ||
16492 | +# Command to use when deplibs_check_method = "file_magic". | ||
16493 | file_magic_cmd=$lt_file_magic_cmd | ||
16494 | |||
16495 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
16496 | +file_magic_glob=$lt_file_magic_glob | ||
16497 | + | ||
16498 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
16499 | +want_nocaseglob=$lt_want_nocaseglob | ||
16500 | + | ||
16501 | +# DLL creation program. | ||
16502 | +DLLTOOL=$lt_DLLTOOL | ||
16503 | + | ||
16504 | +# Command to associate shared and link libraries. | ||
16505 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
16506 | + | ||
16507 | # The archiver. | ||
16508 | AR=$lt_AR | ||
16509 | + | ||
16510 | +# Flags to create an archive. | ||
16511 | AR_FLAGS=$lt_AR_FLAGS | ||
16512 | |||
16513 | +# How to feed a file listing to the archiver. | ||
16514 | +archiver_list_spec=$lt_archiver_list_spec | ||
16515 | + | ||
16516 | # A symbol stripping program. | ||
16517 | STRIP=$lt_STRIP | ||
16518 | |||
16519 | @@ -15797,6 +16615,9 @@ RANLIB=$lt_RANLIB | ||
16520 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
16521 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
16522 | |||
16523 | +# Whether to use a lock for old archive extraction. | ||
16524 | +lock_old_archive_extraction=$lock_old_archive_extraction | ||
16525 | + | ||
16526 | # A C compiler. | ||
16527 | LTCC=$lt_CC | ||
16528 | |||
16529 | @@ -15815,14 +16636,14 @@ global_symbol_to_c_name_address=$lt_lt_c | ||
16530 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
16531 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
16532 | |||
16533 | -# The name of the directory that contains temporary libtool files. | ||
16534 | -objdir=$objdir | ||
16535 | +# Specify filename containing input files for \$NM. | ||
16536 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
16537 | |||
16538 | -# Shell to use when invoking shell scripts. | ||
16539 | -SHELL=$lt_SHELL | ||
16540 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
16541 | +lt_sysroot=$lt_sysroot | ||
16542 | |||
16543 | -# An echo program that does not interpret backslashes. | ||
16544 | -ECHO=$lt_ECHO | ||
16545 | +# The name of the directory that contains temporary libtool files. | ||
16546 | +objdir=$objdir | ||
16547 | |||
16548 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
16549 | MAGIC_CMD=$MAGIC_CMD | ||
16550 | @@ -15830,6 +16651,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
16551 | # Must we lock files when doing compilation? | ||
16552 | need_locks=$lt_need_locks | ||
16553 | |||
16554 | +# Manifest tool. | ||
16555 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
16556 | + | ||
16557 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
16558 | DSYMUTIL=$lt_DSYMUTIL | ||
16559 | |||
16560 | @@ -15886,6 +16710,9 @@ library_names_spec=$lt_library_names_spe | ||
16561 | # The coded name of the library, if different from the real name. | ||
16562 | soname_spec=$lt_soname_spec | ||
16563 | |||
16564 | +# Permission mode override for installation of shared libraries. | ||
16565 | +install_override_mode=$lt_install_override_mode | ||
16566 | + | ||
16567 | # Command to use after installation of a shared archive. | ||
16568 | postinstall_cmds=$lt_postinstall_cmds | ||
16569 | |||
16570 | @@ -15925,6 +16752,10 @@ striplib=$lt_striplib | ||
16571 | # The linker used to build libraries. | ||
16572 | LD=$lt_LD | ||
16573 | |||
16574 | +# How to create reloadable object files. | ||
16575 | +reload_flag=$lt_reload_flag | ||
16576 | +reload_cmds=$lt_reload_cmds | ||
16577 | + | ||
16578 | # Commands used to build an old-style archive. | ||
16579 | old_archive_cmds=$lt_old_archive_cmds | ||
16580 | |||
16581 | @@ -15937,12 +16768,12 @@ with_gcc=$GCC | ||
16582 | # Compiler flag to turn off builtin functions. | ||
16583 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
16584 | |||
16585 | -# How to pass a linker flag through the compiler. | ||
16586 | -wl=$lt_lt_prog_compiler_wl | ||
16587 | - | ||
16588 | # Additional compiler flags for building library objects. | ||
16589 | pic_flag=$lt_lt_prog_compiler_pic | ||
16590 | |||
16591 | +# How to pass a linker flag through the compiler. | ||
16592 | +wl=$lt_lt_prog_compiler_wl | ||
16593 | + | ||
16594 | # Compiler flag to prevent dynamic linking. | ||
16595 | link_static_flag=$lt_lt_prog_compiler_static | ||
16596 | |||
16597 | @@ -16029,9 +16860,6 @@ inherit_rpath=$inherit_rpath | ||
16598 | # Whether libtool must link a program against all its dependency libraries. | ||
16599 | link_all_deplibs=$link_all_deplibs | ||
16600 | |||
16601 | -# Fix the shell variable \$srcfile for the compiler. | ||
16602 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
16603 | - | ||
16604 | # Set to "yes" if exported symbols are required. | ||
16605 | always_export_symbols=$always_export_symbols | ||
16606 | |||
16607 | @@ -16047,6 +16875,9 @@ include_expsyms=$lt_include_expsyms | ||
16608 | # Commands necessary for linking programs (against libraries) with templates. | ||
16609 | prelink_cmds=$lt_prelink_cmds | ||
16610 | |||
16611 | +# Commands necessary for finishing linking programs. | ||
16612 | +postlink_cmds=$lt_postlink_cmds | ||
16613 | + | ||
16614 | # Specify filename containing input files. | ||
16615 | file_list_spec=$lt_file_list_spec | ||
16616 | |||
16617 | @@ -16079,212 +16910,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
16618 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
16619 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
16620 | # is reportedly fixed, but why not run on old versions too? | ||
16621 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
16622 | - || (rm -f "$cfgfile"; exit 1) | ||
16623 | - | ||
16624 | - case $xsi_shell in | ||
16625 | - yes) | ||
16626 | - cat << \_LT_EOF >> "$cfgfile" | ||
16627 | - | ||
16628 | -# func_dirname file append nondir_replacement | ||
16629 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
16630 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
16631 | -func_dirname () | ||
16632 | -{ | ||
16633 | - case ${1} in | ||
16634 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
16635 | - * ) func_dirname_result="${3}" ;; | ||
16636 | - esac | ||
16637 | -} | ||
16638 | - | ||
16639 | -# func_basename file | ||
16640 | -func_basename () | ||
16641 | -{ | ||
16642 | - func_basename_result="${1##*/}" | ||
16643 | -} | ||
16644 | - | ||
16645 | -# func_dirname_and_basename file append nondir_replacement | ||
16646 | -# perform func_basename and func_dirname in a single function | ||
16647 | -# call: | ||
16648 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
16649 | -# add APPEND to the result, otherwise set result | ||
16650 | -# to NONDIR_REPLACEMENT. | ||
16651 | -# value returned in "$func_dirname_result" | ||
16652 | -# basename: Compute filename of FILE. | ||
16653 | -# value retuned in "$func_basename_result" | ||
16654 | -# Implementation must be kept synchronized with func_dirname | ||
16655 | -# and func_basename. For efficiency, we do not delegate to | ||
16656 | -# those functions but instead duplicate the functionality here. | ||
16657 | -func_dirname_and_basename () | ||
16658 | -{ | ||
16659 | - case ${1} in | ||
16660 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
16661 | - * ) func_dirname_result="${3}" ;; | ||
16662 | - esac | ||
16663 | - func_basename_result="${1##*/}" | ||
16664 | -} | ||
16665 | - | ||
16666 | -# func_stripname prefix suffix name | ||
16667 | -# strip PREFIX and SUFFIX off of NAME. | ||
16668 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
16669 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
16670 | -# dot (in which case that matches only a dot). | ||
16671 | -func_stripname () | ||
16672 | -{ | ||
16673 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
16674 | - # positional parameters, so assign one to ordinary parameter first. | ||
16675 | - func_stripname_result=${3} | ||
16676 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
16677 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
16678 | -} | ||
16679 | - | ||
16680 | -# func_opt_split | ||
16681 | -func_opt_split () | ||
16682 | -{ | ||
16683 | - func_opt_split_opt=${1%%=*} | ||
16684 | - func_opt_split_arg=${1#*=} | ||
16685 | -} | ||
16686 | - | ||
16687 | -# func_lo2o object | ||
16688 | -func_lo2o () | ||
16689 | -{ | ||
16690 | - case ${1} in | ||
16691 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
16692 | - *) func_lo2o_result=${1} ;; | ||
16693 | - esac | ||
16694 | -} | ||
16695 | - | ||
16696 | -# func_xform libobj-or-source | ||
16697 | -func_xform () | ||
16698 | -{ | ||
16699 | - func_xform_result=${1%.*}.lo | ||
16700 | -} | ||
16701 | - | ||
16702 | -# func_arith arithmetic-term... | ||
16703 | -func_arith () | ||
16704 | -{ | ||
16705 | - func_arith_result=$(( $* )) | ||
16706 | -} | ||
16707 | - | ||
16708 | -# func_len string | ||
16709 | -# STRING may not start with a hyphen. | ||
16710 | -func_len () | ||
16711 | -{ | ||
16712 | - func_len_result=${#1} | ||
16713 | -} | ||
16714 | - | ||
16715 | -_LT_EOF | ||
16716 | - ;; | ||
16717 | - *) # Bourne compatible functions. | ||
16718 | - cat << \_LT_EOF >> "$cfgfile" | ||
16719 | - | ||
16720 | -# func_dirname file append nondir_replacement | ||
16721 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
16722 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
16723 | -func_dirname () | ||
16724 | -{ | ||
16725 | - # Extract subdirectory from the argument. | ||
16726 | - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
16727 | - if test "X$func_dirname_result" = "X${1}"; then | ||
16728 | - func_dirname_result="${3}" | ||
16729 | - else | ||
16730 | - func_dirname_result="$func_dirname_result${2}" | ||
16731 | - fi | ||
16732 | -} | ||
16733 | - | ||
16734 | -# func_basename file | ||
16735 | -func_basename () | ||
16736 | -{ | ||
16737 | - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
16738 | -} | ||
16739 | - | ||
16740 | - | ||
16741 | -# func_stripname prefix suffix name | ||
16742 | -# strip PREFIX and SUFFIX off of NAME. | ||
16743 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
16744 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
16745 | -# dot (in which case that matches only a dot). | ||
16746 | -# func_strip_suffix prefix name | ||
16747 | -func_stripname () | ||
16748 | -{ | ||
16749 | - case ${2} in | ||
16750 | - .*) func_stripname_result=`$ECHO "X${3}" \ | ||
16751 | - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
16752 | - *) func_stripname_result=`$ECHO "X${3}" \ | ||
16753 | - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
16754 | - esac | ||
16755 | -} | ||
16756 | - | ||
16757 | -# sed scripts: | ||
16758 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
16759 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
16760 | - | ||
16761 | -# func_opt_split | ||
16762 | -func_opt_split () | ||
16763 | -{ | ||
16764 | - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
16765 | - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
16766 | -} | ||
16767 | - | ||
16768 | -# func_lo2o object | ||
16769 | -func_lo2o () | ||
16770 | -{ | ||
16771 | - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
16772 | -} | ||
16773 | - | ||
16774 | -# func_xform libobj-or-source | ||
16775 | -func_xform () | ||
16776 | -{ | ||
16777 | - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
16778 | -} | ||
16779 | - | ||
16780 | -# func_arith arithmetic-term... | ||
16781 | -func_arith () | ||
16782 | -{ | ||
16783 | - func_arith_result=`expr "$@"` | ||
16784 | -} | ||
16785 | - | ||
16786 | -# func_len string | ||
16787 | -# STRING may not start with a hyphen. | ||
16788 | -func_len () | ||
16789 | -{ | ||
16790 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
16791 | -} | ||
16792 | - | ||
16793 | -_LT_EOF | ||
16794 | -esac | ||
16795 | - | ||
16796 | -case $lt_shell_append in | ||
16797 | - yes) | ||
16798 | - cat << \_LT_EOF >> "$cfgfile" | ||
16799 | - | ||
16800 | -# func_append var value | ||
16801 | -# Append VALUE to the end of shell variable VAR. | ||
16802 | -func_append () | ||
16803 | -{ | ||
16804 | - eval "$1+=\$2" | ||
16805 | -} | ||
16806 | -_LT_EOF | ||
16807 | - ;; | ||
16808 | - *) | ||
16809 | - cat << \_LT_EOF >> "$cfgfile" | ||
16810 | - | ||
16811 | -# func_append var value | ||
16812 | -# Append VALUE to the end of shell variable VAR. | ||
16813 | -func_append () | ||
16814 | -{ | ||
16815 | - eval "$1=\$$1\$2" | ||
16816 | -} | ||
16817 | - | ||
16818 | -_LT_EOF | ||
16819 | - ;; | ||
16820 | - esac | ||
16821 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
16822 | + || (rm -f "$cfgfile"; exit 1) | ||
16823 | |||
16824 | + if test x"$xsi_shell" = xyes; then | ||
16825 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
16826 | +func_dirname ()\ | ||
16827 | +{\ | ||
16828 | +\ case ${1} in\ | ||
16829 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
16830 | +\ * ) func_dirname_result="${3}" ;;\ | ||
16831 | +\ esac\ | ||
16832 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16833 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16834 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16835 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16836 | + | ||
16837 | + | ||
16838 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
16839 | +func_basename ()\ | ||
16840 | +{\ | ||
16841 | +\ func_basename_result="${1##*/}"\ | ||
16842 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16843 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16844 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16845 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16846 | + | ||
16847 | + | ||
16848 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
16849 | +func_dirname_and_basename ()\ | ||
16850 | +{\ | ||
16851 | +\ case ${1} in\ | ||
16852 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
16853 | +\ * ) func_dirname_result="${3}" ;;\ | ||
16854 | +\ esac\ | ||
16855 | +\ func_basename_result="${1##*/}"\ | ||
16856 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16857 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16858 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16859 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16860 | + | ||
16861 | + | ||
16862 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
16863 | +func_stripname ()\ | ||
16864 | +{\ | ||
16865 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
16866 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
16867 | +\ func_stripname_result=${3}\ | ||
16868 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
16869 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
16870 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16871 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16872 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16873 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16874 | + | ||
16875 | + | ||
16876 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
16877 | +func_split_long_opt ()\ | ||
16878 | +{\ | ||
16879 | +\ func_split_long_opt_name=${1%%=*}\ | ||
16880 | +\ func_split_long_opt_arg=${1#*=}\ | ||
16881 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16882 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16883 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16884 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16885 | + | ||
16886 | + | ||
16887 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
16888 | +func_split_short_opt ()\ | ||
16889 | +{\ | ||
16890 | +\ func_split_short_opt_arg=${1#??}\ | ||
16891 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
16892 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16893 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16894 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16895 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16896 | + | ||
16897 | + | ||
16898 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
16899 | +func_lo2o ()\ | ||
16900 | +{\ | ||
16901 | +\ case ${1} in\ | ||
16902 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
16903 | +\ *) func_lo2o_result=${1} ;;\ | ||
16904 | +\ esac\ | ||
16905 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16906 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16907 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16908 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16909 | + | ||
16910 | + | ||
16911 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
16912 | +func_xform ()\ | ||
16913 | +{\ | ||
16914 | + func_xform_result=${1%.*}.lo\ | ||
16915 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16916 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16917 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16918 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16919 | + | ||
16920 | + | ||
16921 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
16922 | +func_arith ()\ | ||
16923 | +{\ | ||
16924 | + func_arith_result=$(( $* ))\ | ||
16925 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16926 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16927 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16928 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16929 | + | ||
16930 | + | ||
16931 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
16932 | +func_len ()\ | ||
16933 | +{\ | ||
16934 | + func_len_result=${#1}\ | ||
16935 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16936 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16937 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16938 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16939 | + | ||
16940 | +fi | ||
16941 | + | ||
16942 | +if test x"$lt_shell_append" = xyes; then | ||
16943 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
16944 | +func_append ()\ | ||
16945 | +{\ | ||
16946 | + eval "${1}+=\\${2}"\ | ||
16947 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16948 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16949 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16950 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16951 | + | ||
16952 | + | ||
16953 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
16954 | +func_append_quoted ()\ | ||
16955 | +{\ | ||
16956 | +\ func_quote_for_eval "${2}"\ | ||
16957 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
16958 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
16959 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16960 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16961 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
16962 | + | ||
16963 | + | ||
16964 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
16965 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
16966 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16967 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16968 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
16969 | +else | ||
16970 | + # Save a `func_append' function call even when '+=' is not available | ||
16971 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
16972 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
16973 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
16974 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
16975 | +fi | ||
16976 | + | ||
16977 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
16978 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
16979 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
16980 | +fi | ||
16981 | |||
16982 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
16983 | - || (rm -f "$cfgfile"; exit 1) | ||
16984 | |||
16985 | - mv -f "$cfgfile" "$ofile" || | ||
16986 | + mv -f "$cfgfile" "$ofile" || | ||
16987 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
16988 | chmod +x "$ofile" | ||
16989 | |||
16990 | Index: binutils-2.20.1/binutils/doc/Makefile.in | ||
16991 | =================================================================== | ||
16992 | --- binutils-2.20.1.orig/binutils/doc/Makefile.in | ||
16993 | +++ binutils-2.20.1/binutils/doc/Makefile.in | ||
16994 | @@ -129,6 +129,7 @@ DATADIRNAME = @DATADIRNAME@ | ||
16995 | DEFS = @DEFS@ | ||
16996 | DEMANGLER_NAME = @DEMANGLER_NAME@ | ||
16997 | DEPDIR = @DEPDIR@ | ||
16998 | +DLLTOOL = @DLLTOOL@ | ||
16999 | DLLTOOL_DEFS = @DLLTOOL_DEFS@ | ||
17000 | DSYMUTIL = @DSYMUTIL@ | ||
17001 | DUMPBIN = @DUMPBIN@ | ||
17002 | @@ -169,6 +170,7 @@ LTLIBICONV = @LTLIBICONV@ | ||
17003 | LTLIBOBJS = @LTLIBOBJS@ | ||
17004 | MAINT = @MAINT@ | ||
17005 | MAKEINFO = @MAKEINFO@ | ||
17006 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
17007 | MKDIR_P = @MKDIR_P@ | ||
17008 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
17009 | MSGFMT = @MSGFMT@ | ||
17010 | @@ -206,6 +208,7 @@ abs_builddir = @abs_builddir@ | ||
17011 | abs_srcdir = @abs_srcdir@ | ||
17012 | abs_top_builddir = @abs_top_builddir@ | ||
17013 | abs_top_srcdir = @abs_top_srcdir@ | ||
17014 | +ac_ct_AR = @ac_ct_AR@ | ||
17015 | ac_ct_CC = @ac_ct_CC@ | ||
17016 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
17017 | am__include = @am__include@ | ||
17018 | @@ -238,7 +241,6 @@ libdir = @libdir@ | ||
17019 | libexecdir = @libexecdir@ | ||
17020 | localedir = @localedir@ | ||
17021 | localstatedir = @localstatedir@ | ||
17022 | -lt_ECHO = @lt_ECHO@ | ||
17023 | mandir = @mandir@ | ||
17024 | mkdir_p = @mkdir_p@ | ||
17025 | oldincludedir = @oldincludedir@ | ||
17026 | Index: binutils-2.20.1/configure | ||
17027 | =================================================================== | ||
17028 | --- binutils-2.20.1.orig/configure | ||
17029 | +++ binutils-2.20.1/configure | ||
17030 | @@ -2646,7 +2646,7 @@ host_libs="intl mmalloc libiberty opcode | ||
17031 | # binutils, gas and ld appear in that order because it makes sense to run | ||
17032 | # "make check" in that particular order. | ||
17033 | # If --enable-gold is used, "gold" will replace "ld". | ||
17034 | -host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" | ||
17035 | +host_tools="byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" | ||
17036 | |||
17037 | # libgcj represents the runtime libraries only used by gcj. | ||
17038 | libgcj="target-libffi \ | ||
17039 | @@ -3054,7 +3054,7 @@ case "${target}" in | ||
17040 | am33_2.0-*-linux*) | ||
17041 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | ||
17042 | ;; | ||
17043 | - sh*-*-linux*) | ||
17044 | + sh-*-linux*) | ||
17045 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | ||
17046 | ;; | ||
17047 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | ||
17048 | @@ -3390,7 +3390,7 @@ case "${target}" in | ||
17049 | romp-*-*) | ||
17050 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" | ||
17051 | ;; | ||
17052 | - sh*-*-* | sh64-*-*) | ||
17053 | + sh-*-* | sh64-*-*) | ||
17054 | case "${host}" in | ||
17055 | i[3456789]86-*-vsta) ;; # don't add gprof back in | ||
17056 | i[3456789]86-*-go32*) ;; # don't add gprof back in | ||
17057 | @@ -7275,7 +7275,7 @@ case " $build_configdirs " in | ||
17058 | # For an installed makeinfo, we require it to be from texinfo 4.7 or | ||
17059 | # higher, else we use the "missing" dummy. | ||
17060 | if ${MAKEINFO} --version \ | ||
17061 | - | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then | ||
17062 | + | egrep 'texinfo[^0-9]*([1-3][0-9]|4.[4-9]|4.[1-9][0-9]+|[5-9])' >/dev/null 2>&1; then | ||
17063 | : | ||
17064 | else | ||
17065 | MAKEINFO="$MISSING makeinfo" | ||
17066 | Index: binutils-2.20.1/gas/Makefile.in | ||
17067 | =================================================================== | ||
17068 | --- binutils-2.20.1.orig/gas/Makefile.in | ||
17069 | +++ binutils-2.20.1/gas/Makefile.in | ||
17070 | @@ -146,6 +146,7 @@ CYGPATH_W = @CYGPATH_W@ | ||
17071 | DATADIRNAME = @DATADIRNAME@ | ||
17072 | DEFS = @DEFS@ | ||
17073 | DEPDIR = @DEPDIR@ | ||
17074 | +DLLTOOL = @DLLTOOL@ | ||
17075 | DSYMUTIL = @DSYMUTIL@ | ||
17076 | DUMPBIN = @DUMPBIN@ | ||
17077 | ECHO_C = @ECHO_C@ | ||
17078 | @@ -181,6 +182,7 @@ LN_S = @LN_S@ | ||
17079 | LTLIBOBJS = @LTLIBOBJS@ | ||
17080 | MAINT = @MAINT@ | ||
17081 | MAKEINFO = @MAKEINFO@ | ||
17082 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
17083 | MKDIR_P = @MKDIR_P@ | ||
17084 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
17085 | MSGFMT = @MSGFMT@ | ||
17086 | @@ -217,6 +219,7 @@ abs_builddir = @abs_builddir@ | ||
17087 | abs_srcdir = @abs_srcdir@ | ||
17088 | abs_top_builddir = @abs_top_builddir@ | ||
17089 | abs_top_srcdir = @abs_top_srcdir@ | ||
17090 | +ac_ct_AR = @ac_ct_AR@ | ||
17091 | ac_ct_CC = @ac_ct_CC@ | ||
17092 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
17093 | am__include = @am__include@ | ||
17094 | @@ -253,7 +256,6 @@ libdir = @libdir@ | ||
17095 | libexecdir = @libexecdir@ | ||
17096 | localedir = @localedir@ | ||
17097 | localstatedir = @localstatedir@ | ||
17098 | -lt_ECHO = @lt_ECHO@ | ||
17099 | mandir = @mandir@ | ||
17100 | mkdir_p = @mkdir_p@ | ||
17101 | obj_format = @obj_format@ | ||
17102 | Index: binutils-2.20.1/gas/configure | ||
17103 | =================================================================== | ||
17104 | --- binutils-2.20.1.orig/gas/configure | ||
17105 | +++ binutils-2.20.1/gas/configure | ||
17106 | @@ -169,7 +169,15 @@ test x\$exitcode = x0 || exit 1" | ||
17107 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
17108 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
17109 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
17110 | -test \$(( 1 + 1 )) = 2 || exit 1" | ||
17111 | +test \$(( 1 + 1 )) = 2 || exit 1 | ||
17112 | + | ||
17113 | + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | ||
17114 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
17115 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
17116 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
17117 | + PATH=/empty FPATH=/empty; export PATH FPATH | ||
17118 | + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | ||
17119 | + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | ||
17120 | if (eval "$as_required") 2>/dev/null; then : | ||
17121 | as_have_required=yes | ||
17122 | else | ||
17123 | @@ -523,155 +531,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P | ||
17124 | # Sed expression to map a string onto a valid variable name. | ||
17125 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
17126 | |||
17127 | - | ||
17128 | - | ||
17129 | -# Check that we are running under the correct shell. | ||
17130 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
17131 | |||
17132 | -case X$lt_ECHO in | ||
17133 | -X*--fallback-echo) | ||
17134 | - # Remove one level of quotation (which was required for Make). | ||
17135 | - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
17136 | - ;; | ||
17137 | -esac | ||
17138 | - | ||
17139 | -ECHO=${lt_ECHO-echo} | ||
17140 | -if test "X$1" = X--no-reexec; then | ||
17141 | - # Discard the --no-reexec flag, and continue. | ||
17142 | - shift | ||
17143 | -elif test "X$1" = X--fallback-echo; then | ||
17144 | - # Avoid inline document here, it may be left over | ||
17145 | - : | ||
17146 | -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
17147 | - # Yippee, $ECHO works! | ||
17148 | - : | ||
17149 | -else | ||
17150 | - # Restart under the correct shell. | ||
17151 | - exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
17152 | -fi | ||
17153 | - | ||
17154 | -if test "X$1" = X--fallback-echo; then | ||
17155 | - # used as fallback echo | ||
17156 | - shift | ||
17157 | - cat <<_LT_EOF | ||
17158 | -$* | ||
17159 | -_LT_EOF | ||
17160 | - exit 0 | ||
17161 | -fi | ||
17162 | - | ||
17163 | -# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
17164 | -# if CDPATH is set. | ||
17165 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
17166 | - | ||
17167 | -if test -z "$lt_ECHO"; then | ||
17168 | - if test "X${echo_test_string+set}" != Xset; then | ||
17169 | - # find a string as large as possible, as long as the shell can cope with it | ||
17170 | - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
17171 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
17172 | - if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
17173 | - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
17174 | - then | ||
17175 | - break | ||
17176 | - fi | ||
17177 | - done | ||
17178 | - fi | ||
17179 | - | ||
17180 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
17181 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
17182 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
17183 | - : | ||
17184 | - else | ||
17185 | - # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
17186 | - # backslashes. This makes it impossible to quote backslashes using | ||
17187 | - # echo "$something" | sed 's/\\/\\\\/g' | ||
17188 | - # | ||
17189 | - # So, first we look for a working echo in the user's PATH. | ||
17190 | - | ||
17191 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
17192 | - for dir in $PATH /usr/ucb; do | ||
17193 | - IFS="$lt_save_ifs" | ||
17194 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
17195 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
17196 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
17197 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
17198 | - ECHO="$dir/echo" | ||
17199 | - break | ||
17200 | - fi | ||
17201 | - done | ||
17202 | - IFS="$lt_save_ifs" | ||
17203 | - | ||
17204 | - if test "X$ECHO" = Xecho; then | ||
17205 | - # We didn't find a better echo, so look for alternatives. | ||
17206 | - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
17207 | - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
17208 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
17209 | - # This shell has a builtin print -r that does the trick. | ||
17210 | - ECHO='print -r' | ||
17211 | - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
17212 | - test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
17213 | - # If we have ksh, try running configure again with it. | ||
17214 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
17215 | - export ORIGINAL_CONFIG_SHELL | ||
17216 | - CONFIG_SHELL=/bin/ksh | ||
17217 | - export CONFIG_SHELL | ||
17218 | - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
17219 | - else | ||
17220 | - # Try using printf. | ||
17221 | - ECHO='printf %s\n' | ||
17222 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
17223 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
17224 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
17225 | - # Cool, printf works | ||
17226 | - : | ||
17227 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
17228 | - test "X$echo_testing_string" = 'X\t' && | ||
17229 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
17230 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
17231 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
17232 | - export CONFIG_SHELL | ||
17233 | - SHELL="$CONFIG_SHELL" | ||
17234 | - export SHELL | ||
17235 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
17236 | - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
17237 | - test "X$echo_testing_string" = 'X\t' && | ||
17238 | - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
17239 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
17240 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
17241 | - else | ||
17242 | - # maybe with a smaller string... | ||
17243 | - prev=: | ||
17244 | - | ||
17245 | - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
17246 | - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
17247 | - then | ||
17248 | - break | ||
17249 | - fi | ||
17250 | - prev="$cmd" | ||
17251 | - done | ||
17252 | - | ||
17253 | - if test "$prev" != 'sed 50q "$0"'; then | ||
17254 | - echo_test_string=`eval $prev` | ||
17255 | - export echo_test_string | ||
17256 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
17257 | - else | ||
17258 | - # Oops. We lost completely, so just stick with echo. | ||
17259 | - ECHO=echo | ||
17260 | - fi | ||
17261 | - fi | ||
17262 | - fi | ||
17263 | - fi | ||
17264 | - fi | ||
17265 | -fi | ||
17266 | - | ||
17267 | -# Copy echo and quote the copy suitably for passing to libtool from | ||
17268 | -# the Makefile, instead of quoting the original, which is used later. | ||
17269 | -lt_ECHO=$ECHO | ||
17270 | -if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
17271 | - lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
17272 | -fi | ||
17273 | - | ||
17274 | - | ||
17275 | - | ||
17276 | |||
17277 | exec 7<&0 </dev/null 6>&1 | ||
17278 | |||
17279 | @@ -784,9 +645,11 @@ OTOOL | ||
17280 | LIPO | ||
17281 | NMEDIT | ||
17282 | DSYMUTIL | ||
17283 | -lt_ECHO | ||
17284 | +MANIFEST_TOOL | ||
17285 | RANLIB | ||
17286 | +ac_ct_AR | ||
17287 | AR | ||
17288 | +DLLTOOL | ||
17289 | OBJDUMP | ||
17290 | LN_S | ||
17291 | NM | ||
17292 | @@ -898,6 +761,7 @@ enable_static | ||
17293 | with_pic | ||
17294 | enable_fast_install | ||
17295 | with_gnu_ld | ||
17296 | +with_libtool_sysroot | ||
17297 | enable_libtool_lock | ||
17298 | enable_targets | ||
17299 | enable_checking | ||
17300 | @@ -1557,6 +1421,8 @@ Optional Packages: | ||
17301 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
17302 | both] | ||
17303 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
17304 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
17305 | + (or the compiler's sysroot if not specified). | ||
17306 | |||
17307 | Some influential environment variables: | ||
17308 | CC C compiler command | ||
17309 | @@ -5228,8 +5094,8 @@ esac | ||
17310 | |||
17311 | |||
17312 | |||
17313 | -macro_version='2.2.6' | ||
17314 | -macro_revision='1.3012' | ||
17315 | +macro_version='2.4' | ||
17316 | +macro_revision='1.3293' | ||
17317 | |||
17318 | |||
17319 | |||
17320 | @@ -5245,6 +5111,75 @@ macro_revision='1.3012' | ||
17321 | |||
17322 | ltmain="$ac_aux_dir/ltmain.sh" | ||
17323 | |||
17324 | +# Backslashify metacharacters that are still active within | ||
17325 | +# double-quoted strings. | ||
17326 | +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
17327 | + | ||
17328 | +# Same as above, but do not quote variable references. | ||
17329 | +double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
17330 | + | ||
17331 | +# Sed substitution to delay expansion of an escaped shell variable in a | ||
17332 | +# double_quote_subst'ed string. | ||
17333 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
17334 | + | ||
17335 | +# Sed substitution to delay expansion of an escaped single quote. | ||
17336 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
17337 | + | ||
17338 | +# Sed substitution to avoid accidental globbing in evaled expressions | ||
17339 | +no_glob_subst='s/\*/\\\*/g' | ||
17340 | + | ||
17341 | +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
17342 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
17343 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
17344 | + | ||
17345 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
17346 | +$as_echo_n "checking how to print strings... " >&6; } | ||
17347 | +# Test print first, because it will be a builtin if present. | ||
17348 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
17349 | + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
17350 | + ECHO='print -r --' | ||
17351 | +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
17352 | + ECHO='printf %s\n' | ||
17353 | +else | ||
17354 | + # Use this function as a fallback that always works. | ||
17355 | + func_fallback_echo () | ||
17356 | + { | ||
17357 | + eval 'cat <<_LTECHO_EOF | ||
17358 | +$1 | ||
17359 | +_LTECHO_EOF' | ||
17360 | + } | ||
17361 | + ECHO='func_fallback_echo' | ||
17362 | +fi | ||
17363 | + | ||
17364 | +# func_echo_all arg... | ||
17365 | +# Invoke $ECHO with all args, space-separated. | ||
17366 | +func_echo_all () | ||
17367 | +{ | ||
17368 | + $ECHO "" | ||
17369 | +} | ||
17370 | + | ||
17371 | +case "$ECHO" in | ||
17372 | + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | ||
17373 | +$as_echo "printf" >&6; } ;; | ||
17374 | + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | ||
17375 | +$as_echo "print -r" >&6; } ;; | ||
17376 | + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | ||
17377 | +$as_echo "cat" >&6; } ;; | ||
17378 | +esac | ||
17379 | + | ||
17380 | + | ||
17381 | + | ||
17382 | + | ||
17383 | + | ||
17384 | + | ||
17385 | + | ||
17386 | + | ||
17387 | + | ||
17388 | + | ||
17389 | + | ||
17390 | + | ||
17391 | + | ||
17392 | + | ||
17393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
17394 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
17395 | if test "${ac_cv_path_SED+set}" = set; then : | ||
17396 | @@ -5580,8 +5515,11 @@ if test "$lt_cv_path_NM" != "no"; then | ||
17397 | NM="$lt_cv_path_NM" | ||
17398 | else | ||
17399 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
17400 | - if test -n "$ac_tool_prefix"; then | ||
17401 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
17402 | + if test -n "$DUMPBIN"; then : | ||
17403 | + # Let the user override the test. | ||
17404 | + else | ||
17405 | + if test -n "$ac_tool_prefix"; then | ||
17406 | + for ac_prog in dumpbin "link -dump" | ||
17407 | do | ||
17408 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
17409 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
17410 | @@ -5625,7 +5563,7 @@ fi | ||
17411 | fi | ||
17412 | if test -z "$DUMPBIN"; then | ||
17413 | ac_ct_DUMPBIN=$DUMPBIN | ||
17414 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
17415 | + for ac_prog in dumpbin "link -dump" | ||
17416 | do | ||
17417 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
17418 | set dummy $ac_prog; ac_word=$2 | ||
17419 | @@ -5680,6 +5618,15 @@ esac | ||
17420 | fi | ||
17421 | fi | ||
17422 | |||
17423 | + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
17424 | + *COFF*) | ||
17425 | + DUMPBIN="$DUMPBIN -symbols" | ||
17426 | + ;; | ||
17427 | + *) | ||
17428 | + DUMPBIN=: | ||
17429 | + ;; | ||
17430 | + esac | ||
17431 | + fi | ||
17432 | |||
17433 | if test "$DUMPBIN" != ":"; then | ||
17434 | NM="$DUMPBIN" | ||
17435 | @@ -5699,13 +5646,13 @@ if test "${lt_cv_nm_interface+set}" = se | ||
17436 | else | ||
17437 | lt_cv_nm_interface="BSD nm" | ||
17438 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
17439 | - (eval echo "\"\$as_me:5702: $ac_compile\"" >&5) | ||
17440 | + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | ||
17441 | (eval "$ac_compile" 2>conftest.err) | ||
17442 | cat conftest.err >&5 | ||
17443 | - (eval echo "\"\$as_me:5705: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
17444 | + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
17445 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
17446 | cat conftest.err >&5 | ||
17447 | - (eval echo "\"\$as_me:5708: output\"" >&5) | ||
17448 | + (eval echo "\"\$as_me:$LINENO: output\"" >&5) | ||
17449 | cat conftest.out >&5 | ||
17450 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
17451 | lt_cv_nm_interface="MS dumpbin" | ||
17452 | @@ -5762,6 +5709,11 @@ else | ||
17453 | lt_cv_sys_max_cmd_len=8192; | ||
17454 | ;; | ||
17455 | |||
17456 | + mint*) | ||
17457 | + # On MiNT this can take a long time and run out of memory. | ||
17458 | + lt_cv_sys_max_cmd_len=8192; | ||
17459 | + ;; | ||
17460 | + | ||
17461 | amigaos*) | ||
17462 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
17463 | # So we just punt and use a minimum line length of 8192. | ||
17464 | @@ -5826,8 +5778,8 @@ else | ||
17465 | # If test is not a shell built-in, we'll probably end up computing a | ||
17466 | # maximum length that is only half of the actual maximum length, but | ||
17467 | # we can't tell. | ||
17468 | - while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
17469 | - = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
17470 | + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | ||
17471 | + = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
17472 | test $i != 17 # 1/2 MB should be enough | ||
17473 | do | ||
17474 | i=`expr $i + 1` | ||
17475 | @@ -5869,8 +5821,8 @@ $as_echo_n "checking whether the shell u | ||
17476 | # Try some XSI features | ||
17477 | xsi_shell=no | ||
17478 | ( _lt_dummy="a/b/c" | ||
17479 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
17480 | - = c,a/b,, \ | ||
17481 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
17482 | + = c,a/b,b/c, \ | ||
17483 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
17484 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
17485 | && xsi_shell=yes | ||
17486 | @@ -5919,6 +5871,80 @@ esac | ||
17487 | |||
17488 | |||
17489 | |||
17490 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
17491 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
17492 | +if test "${lt_cv_to_host_file_cmd+set}" = set; then : | ||
17493 | + $as_echo_n "(cached) " >&6 | ||
17494 | +else | ||
17495 | + case $host in | ||
17496 | + *-*-mingw* ) | ||
17497 | + case $build in | ||
17498 | + *-*-mingw* ) # actually msys | ||
17499 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
17500 | + ;; | ||
17501 | + *-*-cygwin* ) | ||
17502 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
17503 | + ;; | ||
17504 | + * ) # otherwise, assume *nix | ||
17505 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
17506 | + ;; | ||
17507 | + esac | ||
17508 | + ;; | ||
17509 | + *-*-cygwin* ) | ||
17510 | + case $build in | ||
17511 | + *-*-mingw* ) # actually msys | ||
17512 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
17513 | + ;; | ||
17514 | + *-*-cygwin* ) | ||
17515 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
17516 | + ;; | ||
17517 | + * ) # otherwise, assume *nix | ||
17518 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
17519 | + ;; | ||
17520 | + esac | ||
17521 | + ;; | ||
17522 | + * ) # unhandled hosts (and "normal" native builds) | ||
17523 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
17524 | + ;; | ||
17525 | +esac | ||
17526 | + | ||
17527 | +fi | ||
17528 | + | ||
17529 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
17530 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
17531 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
17532 | + | ||
17533 | + | ||
17534 | + | ||
17535 | + | ||
17536 | + | ||
17537 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
17538 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
17539 | +if test "${lt_cv_to_tool_file_cmd+set}" = set; then : | ||
17540 | + $as_echo_n "(cached) " >&6 | ||
17541 | +else | ||
17542 | + #assume ordinary cross tools, or native build. | ||
17543 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
17544 | +case $host in | ||
17545 | + *-*-mingw* ) | ||
17546 | + case $build in | ||
17547 | + *-*-mingw* ) # actually msys | ||
17548 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
17549 | + ;; | ||
17550 | + esac | ||
17551 | + ;; | ||
17552 | +esac | ||
17553 | + | ||
17554 | +fi | ||
17555 | + | ||
17556 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
17557 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
17558 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
17559 | + | ||
17560 | + | ||
17561 | + | ||
17562 | + | ||
17563 | + | ||
17564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
17565 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
17566 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
17567 | @@ -5935,6 +5961,11 @@ case $reload_flag in | ||
17568 | esac | ||
17569 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
17570 | case $host_os in | ||
17571 | + cygwin* | mingw* | pw32* | cegcc*) | ||
17572 | + if test "$GCC" != yes; then | ||
17573 | + reload_cmds=false | ||
17574 | + fi | ||
17575 | + ;; | ||
17576 | darwin*) | ||
17577 | if test "$GCC" = yes; then | ||
17578 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
17579 | @@ -6098,16 +6129,18 @@ mingw* | pw32*) | ||
17580 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
17581 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
17582 | # unless we find 'file', for example because we are cross-compiling. | ||
17583 | - if ( file / ) >/dev/null 2>&1; then | ||
17584 | + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
17585 | + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
17586 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
17587 | lt_cv_file_magic_cmd='func_win32_libid' | ||
17588 | else | ||
17589 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
17590 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
17591 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
17592 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
17593 | fi | ||
17594 | ;; | ||
17595 | |||
17596 | -cegcc) | ||
17597 | +cegcc*) | ||
17598 | # use the weaker test based on 'objdump'. See mingw*. | ||
17599 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
17600 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
17601 | @@ -6137,6 +6170,10 @@ gnu*) | ||
17602 | lt_cv_deplibs_check_method=pass_all | ||
17603 | ;; | ||
17604 | |||
17605 | +haiku*) | ||
17606 | + lt_cv_deplibs_check_method=pass_all | ||
17607 | + ;; | ||
17608 | + | ||
17609 | hpux10.20* | hpux11*) | ||
17610 | lt_cv_file_magic_cmd=/usr/bin/file | ||
17611 | case $host_cpu in | ||
17612 | @@ -6145,11 +6182,11 @@ hpux10.20* | hpux11*) | ||
17613 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
17614 | ;; | ||
17615 | hppa*64*) | ||
17616 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
17617 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | ||
17618 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
17619 | ;; | ||
17620 | *) | ||
17621 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
17622 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | ||
17623 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
17624 | ;; | ||
17625 | esac | ||
17626 | @@ -6252,6 +6289,21 @@ esac | ||
17627 | fi | ||
17628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
17629 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
17630 | + | ||
17631 | +file_magic_glob= | ||
17632 | +want_nocaseglob=no | ||
17633 | +if test "$build" = "$host"; then | ||
17634 | + case $host_os in | ||
17635 | + mingw* | pw32*) | ||
17636 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
17637 | + want_nocaseglob=yes | ||
17638 | + else | ||
17639 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
17640 | + fi | ||
17641 | + ;; | ||
17642 | + esac | ||
17643 | +fi | ||
17644 | + | ||
17645 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
17646 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
17647 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
17648 | @@ -6267,16 +6319,26 @@ test -z "$deplibs_check_method" && depli | ||
17649 | |||
17650 | |||
17651 | |||
17652 | + | ||
17653 | + | ||
17654 | + | ||
17655 | + | ||
17656 | + | ||
17657 | + | ||
17658 | + | ||
17659 | + | ||
17660 | + | ||
17661 | + | ||
17662 | if test -n "$ac_tool_prefix"; then | ||
17663 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
17664 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
17665 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
17666 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
17667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17668 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17669 | -if test "${ac_cv_prog_AR+set}" = set; then : | ||
17670 | +if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
17671 | $as_echo_n "(cached) " >&6 | ||
17672 | else | ||
17673 | - if test -n "$AR"; then | ||
17674 | - ac_cv_prog_AR="$AR" # Let the user override the test. | ||
17675 | + if test -n "$DLLTOOL"; then | ||
17676 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
17677 | else | ||
17678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17679 | for as_dir in $PATH | ||
17680 | @@ -6285,7 +6347,7 @@ do | ||
17681 | test -z "$as_dir" && as_dir=. | ||
17682 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17684 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
17685 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
17686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17687 | break 2 | ||
17688 | fi | ||
17689 | @@ -6295,10 +6357,10 @@ IFS=$as_save_IFS | ||
17690 | |||
17691 | fi | ||
17692 | fi | ||
17693 | -AR=$ac_cv_prog_AR | ||
17694 | -if test -n "$AR"; then | ||
17695 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
17696 | -$as_echo "$AR" >&6; } | ||
17697 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
17698 | +if test -n "$DLLTOOL"; then | ||
17699 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
17700 | +$as_echo "$DLLTOOL" >&6; } | ||
17701 | else | ||
17702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17703 | $as_echo "no" >&6; } | ||
17704 | @@ -6306,17 +6368,17 @@ fi | ||
17705 | |||
17706 | |||
17707 | fi | ||
17708 | -if test -z "$ac_cv_prog_AR"; then | ||
17709 | - ac_ct_AR=$AR | ||
17710 | - # Extract the first word of "ar", so it can be a program name with args. | ||
17711 | -set dummy ar; ac_word=$2 | ||
17712 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
17713 | + ac_ct_DLLTOOL=$DLLTOOL | ||
17714 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
17715 | +set dummy dlltool; ac_word=$2 | ||
17716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17717 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17718 | -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
17719 | +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
17720 | $as_echo_n "(cached) " >&6 | ||
17721 | else | ||
17722 | - if test -n "$ac_ct_AR"; then | ||
17723 | - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
17724 | + if test -n "$ac_ct_DLLTOOL"; then | ||
17725 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
17726 | else | ||
17727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17728 | for as_dir in $PATH | ||
17729 | @@ -6325,7 +6387,7 @@ do | ||
17730 | test -z "$as_dir" && as_dir=. | ||
17731 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17733 | - ac_cv_prog_ac_ct_AR="ar" | ||
17734 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
17735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17736 | break 2 | ||
17737 | fi | ||
17738 | @@ -6335,17 +6397,17 @@ IFS=$as_save_IFS | ||
17739 | |||
17740 | fi | ||
17741 | fi | ||
17742 | -ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
17743 | -if test -n "$ac_ct_AR"; then | ||
17744 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
17745 | -$as_echo "$ac_ct_AR" >&6; } | ||
17746 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
17747 | +if test -n "$ac_ct_DLLTOOL"; then | ||
17748 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
17749 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
17750 | else | ||
17751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17752 | $as_echo "no" >&6; } | ||
17753 | fi | ||
17754 | |||
17755 | - if test "x$ac_ct_AR" = x; then | ||
17756 | - AR="false" | ||
17757 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
17758 | + DLLTOOL="false" | ||
17759 | else | ||
17760 | case $cross_compiling:$ac_tool_warned in | ||
17761 | yes:) | ||
17762 | @@ -6353,18 +6415,54 @@ yes:) | ||
17763 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
17764 | ac_tool_warned=yes ;; | ||
17765 | esac | ||
17766 | - AR=$ac_ct_AR | ||
17767 | + DLLTOOL=$ac_ct_DLLTOOL | ||
17768 | fi | ||
17769 | else | ||
17770 | - AR="$ac_cv_prog_AR" | ||
17771 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
17772 | fi | ||
17773 | |||
17774 | -test -z "$AR" && AR=ar | ||
17775 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
17776 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
17777 | + | ||
17778 | + | ||
17779 | + | ||
17780 | + | ||
17781 | + | ||
17782 | + | ||
17783 | |||
17784 | |||
17785 | |||
17786 | |||
17787 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
17788 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
17789 | +if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then : | ||
17790 | + $as_echo_n "(cached) " >&6 | ||
17791 | +else | ||
17792 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
17793 | + | ||
17794 | +case $host_os in | ||
17795 | +cygwin* | mingw* | pw32* | cegcc*) | ||
17796 | + # two different shell functions defined in ltmain.sh | ||
17797 | + # decide which to use based on capabilities of $DLLTOOL | ||
17798 | + case `$DLLTOOL --help 2>&1` in | ||
17799 | + *--identify-strict*) | ||
17800 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
17801 | + ;; | ||
17802 | + *) | ||
17803 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
17804 | + ;; | ||
17805 | + esac | ||
17806 | + ;; | ||
17807 | +*) | ||
17808 | + # fallback: assume linklib IS sharedlib | ||
17809 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
17810 | + ;; | ||
17811 | +esac | ||
17812 | + | ||
17813 | +fi | ||
17814 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
17815 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
17816 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
17817 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
17818 | |||
17819 | |||
17820 | |||
17821 | @@ -6373,15 +6471,17 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
17822 | |||
17823 | |||
17824 | if test -n "$ac_tool_prefix"; then | ||
17825 | - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
17826 | -set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
17827 | + for ac_prog in ar | ||
17828 | + do | ||
17829 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
17830 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
17831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17832 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17833 | -if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
17834 | +if test "${ac_cv_prog_AR+set}" = set; then : | ||
17835 | $as_echo_n "(cached) " >&6 | ||
17836 | else | ||
17837 | - if test -n "$STRIP"; then | ||
17838 | - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
17839 | + if test -n "$AR"; then | ||
17840 | + ac_cv_prog_AR="$AR" # Let the user override the test. | ||
17841 | else | ||
17842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17843 | for as_dir in $PATH | ||
17844 | @@ -6390,7 +6490,7 @@ do | ||
17845 | test -z "$as_dir" && as_dir=. | ||
17846 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17848 | - ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
17849 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
17850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17851 | break 2 | ||
17852 | fi | ||
17853 | @@ -6400,28 +6500,32 @@ IFS=$as_save_IFS | ||
17854 | |||
17855 | fi | ||
17856 | fi | ||
17857 | -STRIP=$ac_cv_prog_STRIP | ||
17858 | -if test -n "$STRIP"; then | ||
17859 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
17860 | -$as_echo "$STRIP" >&6; } | ||
17861 | +AR=$ac_cv_prog_AR | ||
17862 | +if test -n "$AR"; then | ||
17863 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
17864 | +$as_echo "$AR" >&6; } | ||
17865 | else | ||
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17867 | $as_echo "no" >&6; } | ||
17868 | fi | ||
17869 | |||
17870 | |||
17871 | + test -n "$AR" && break | ||
17872 | + done | ||
17873 | fi | ||
17874 | -if test -z "$ac_cv_prog_STRIP"; then | ||
17875 | - ac_ct_STRIP=$STRIP | ||
17876 | - # Extract the first word of "strip", so it can be a program name with args. | ||
17877 | -set dummy strip; ac_word=$2 | ||
17878 | +if test -z "$AR"; then | ||
17879 | + ac_ct_AR=$AR | ||
17880 | + for ac_prog in ar | ||
17881 | +do | ||
17882 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
17883 | +set dummy $ac_prog; ac_word=$2 | ||
17884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17885 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17886 | -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
17887 | +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
17888 | $as_echo_n "(cached) " >&6 | ||
17889 | else | ||
17890 | - if test -n "$ac_ct_STRIP"; then | ||
17891 | - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
17892 | + if test -n "$ac_ct_AR"; then | ||
17893 | + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
17894 | else | ||
17895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17896 | for as_dir in $PATH | ||
17897 | @@ -6430,7 +6534,7 @@ do | ||
17898 | test -z "$as_dir" && as_dir=. | ||
17899 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17901 | - ac_cv_prog_ac_ct_STRIP="strip" | ||
17902 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
17903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17904 | break 2 | ||
17905 | fi | ||
17906 | @@ -6440,20 +6544,185 @@ IFS=$as_save_IFS | ||
17907 | |||
17908 | fi | ||
17909 | fi | ||
17910 | -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
17911 | -if test -n "$ac_ct_STRIP"; then | ||
17912 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
17913 | -$as_echo "$ac_ct_STRIP" >&6; } | ||
17914 | +ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
17915 | +if test -n "$ac_ct_AR"; then | ||
17916 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
17917 | +$as_echo "$ac_ct_AR" >&6; } | ||
17918 | else | ||
17919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17920 | $as_echo "no" >&6; } | ||
17921 | fi | ||
17922 | |||
17923 | - if test "x$ac_ct_STRIP" = x; then | ||
17924 | - STRIP=":" | ||
17925 | - else | ||
17926 | - case $cross_compiling:$ac_tool_warned in | ||
17927 | -yes:) | ||
17928 | + | ||
17929 | + test -n "$ac_ct_AR" && break | ||
17930 | +done | ||
17931 | + | ||
17932 | + if test "x$ac_ct_AR" = x; then | ||
17933 | + AR="false" | ||
17934 | + else | ||
17935 | + case $cross_compiling:$ac_tool_warned in | ||
17936 | +yes:) | ||
17937 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
17938 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
17939 | +ac_tool_warned=yes ;; | ||
17940 | +esac | ||
17941 | + AR=$ac_ct_AR | ||
17942 | + fi | ||
17943 | +fi | ||
17944 | + | ||
17945 | +: ${AR=ar} | ||
17946 | +: ${AR_FLAGS=cru} | ||
17947 | + | ||
17948 | + | ||
17949 | + | ||
17950 | + | ||
17951 | + | ||
17952 | + | ||
17953 | + | ||
17954 | + | ||
17955 | + | ||
17956 | + | ||
17957 | + | ||
17958 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
17959 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
17960 | +if test "${lt_cv_ar_at_file+set}" = set; then : | ||
17961 | + $as_echo_n "(cached) " >&6 | ||
17962 | +else | ||
17963 | + lt_cv_ar_at_file=no | ||
17964 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17965 | +/* end confdefs.h. */ | ||
17966 | + | ||
17967 | +int | ||
17968 | +main () | ||
17969 | +{ | ||
17970 | + | ||
17971 | + ; | ||
17972 | + return 0; | ||
17973 | +} | ||
17974 | +_ACEOF | ||
17975 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
17976 | + echo conftest.$ac_objext > conftest.lst | ||
17977 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
17978 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
17979 | + (eval $lt_ar_try) 2>&5 | ||
17980 | + ac_status=$? | ||
17981 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17982 | + test $ac_status = 0; } | ||
17983 | + if test "$ac_status" -eq 0; then | ||
17984 | + # Ensure the archiver fails upon bogus file names. | ||
17985 | + rm -f conftest.$ac_objext libconftest.a | ||
17986 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
17987 | + (eval $lt_ar_try) 2>&5 | ||
17988 | + ac_status=$? | ||
17989 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17990 | + test $ac_status = 0; } | ||
17991 | + if test "$ac_status" -ne 0; then | ||
17992 | + lt_cv_ar_at_file=@ | ||
17993 | + fi | ||
17994 | + fi | ||
17995 | + rm -f conftest.* libconftest.a | ||
17996 | + | ||
17997 | +fi | ||
17998 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17999 | + | ||
18000 | +fi | ||
18001 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
18002 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
18003 | + | ||
18004 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
18005 | + archiver_list_spec= | ||
18006 | +else | ||
18007 | + archiver_list_spec=$lt_cv_ar_at_file | ||
18008 | +fi | ||
18009 | + | ||
18010 | + | ||
18011 | + | ||
18012 | + | ||
18013 | + | ||
18014 | + | ||
18015 | + | ||
18016 | +if test -n "$ac_tool_prefix"; then | ||
18017 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
18018 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
18019 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18020 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
18021 | +if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
18022 | + $as_echo_n "(cached) " >&6 | ||
18023 | +else | ||
18024 | + if test -n "$STRIP"; then | ||
18025 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
18026 | +else | ||
18027 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18028 | +for as_dir in $PATH | ||
18029 | +do | ||
18030 | + IFS=$as_save_IFS | ||
18031 | + test -z "$as_dir" && as_dir=. | ||
18032 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
18033 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18034 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
18035 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18036 | + break 2 | ||
18037 | + fi | ||
18038 | +done | ||
18039 | + done | ||
18040 | +IFS=$as_save_IFS | ||
18041 | + | ||
18042 | +fi | ||
18043 | +fi | ||
18044 | +STRIP=$ac_cv_prog_STRIP | ||
18045 | +if test -n "$STRIP"; then | ||
18046 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
18047 | +$as_echo "$STRIP" >&6; } | ||
18048 | +else | ||
18049 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18050 | +$as_echo "no" >&6; } | ||
18051 | +fi | ||
18052 | + | ||
18053 | + | ||
18054 | +fi | ||
18055 | +if test -z "$ac_cv_prog_STRIP"; then | ||
18056 | + ac_ct_STRIP=$STRIP | ||
18057 | + # Extract the first word of "strip", so it can be a program name with args. | ||
18058 | +set dummy strip; ac_word=$2 | ||
18059 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18060 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
18061 | +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
18062 | + $as_echo_n "(cached) " >&6 | ||
18063 | +else | ||
18064 | + if test -n "$ac_ct_STRIP"; then | ||
18065 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
18066 | +else | ||
18067 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18068 | +for as_dir in $PATH | ||
18069 | +do | ||
18070 | + IFS=$as_save_IFS | ||
18071 | + test -z "$as_dir" && as_dir=. | ||
18072 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
18073 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18074 | + ac_cv_prog_ac_ct_STRIP="strip" | ||
18075 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18076 | + break 2 | ||
18077 | + fi | ||
18078 | +done | ||
18079 | + done | ||
18080 | +IFS=$as_save_IFS | ||
18081 | + | ||
18082 | +fi | ||
18083 | +fi | ||
18084 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
18085 | +if test -n "$ac_ct_STRIP"; then | ||
18086 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
18087 | +$as_echo "$ac_ct_STRIP" >&6; } | ||
18088 | +else | ||
18089 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18090 | +$as_echo "no" >&6; } | ||
18091 | +fi | ||
18092 | + | ||
18093 | + if test "x$ac_ct_STRIP" = x; then | ||
18094 | + STRIP=":" | ||
18095 | + else | ||
18096 | + case $cross_compiling:$ac_tool_warned in | ||
18097 | +yes:) | ||
18098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
18099 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
18100 | ac_tool_warned=yes ;; | ||
18101 | @@ -6587,6 +6856,18 @@ if test -n "$RANLIB"; then | ||
18102 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
18103 | fi | ||
18104 | |||
18105 | +case $host_os in | ||
18106 | + darwin*) | ||
18107 | + lock_old_archive_extraction=yes ;; | ||
18108 | + *) | ||
18109 | + lock_old_archive_extraction=no ;; | ||
18110 | +esac | ||
18111 | + | ||
18112 | + | ||
18113 | + | ||
18114 | + | ||
18115 | + | ||
18116 | + | ||
18117 | |||
18118 | |||
18119 | |||
18120 | @@ -6694,8 +6975,8 @@ esac | ||
18121 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
18122 | |||
18123 | # Transform an extracted symbol line into symbol name and symbol address | ||
18124 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
18125 | -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'" | ||
18126 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
18127 | +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'" | ||
18128 | |||
18129 | # Handle CRLF in mingw tool chain | ||
18130 | opt_cr= | ||
18131 | @@ -6731,6 +7012,7 @@ for ac_symprfx in "" "_"; do | ||
18132 | else | ||
18133 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
18134 | fi | ||
18135 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
18136 | |||
18137 | # Check to see that the pipe works correctly. | ||
18138 | pipe_works=no | ||
18139 | @@ -6756,8 +7038,8 @@ _LT_EOF | ||
18140 | test $ac_status = 0; }; then | ||
18141 | # Now try to grab the symbols. | ||
18142 | nlist=conftest.nm | ||
18143 | - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
18144 | - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
18145 | + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | ||
18146 | + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | ||
18147 | ac_status=$? | ||
18148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18149 | test $ac_status = 0; } && test -s "$nlist"; then | ||
18150 | @@ -6772,6 +7054,18 @@ _LT_EOF | ||
18151 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
18152 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
18153 | cat <<_LT_EOF > conftest.$ac_ext | ||
18154 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
18155 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
18156 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
18157 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
18158 | +# define LT_DLSYM_CONST | ||
18159 | +#elif defined(__osf__) | ||
18160 | +/* This system does not cope well with relocations in const data. */ | ||
18161 | +# define LT_DLSYM_CONST | ||
18162 | +#else | ||
18163 | +# define LT_DLSYM_CONST const | ||
18164 | +#endif | ||
18165 | + | ||
18166 | #ifdef __cplusplus | ||
18167 | extern "C" { | ||
18168 | #endif | ||
18169 | @@ -6783,7 +7077,7 @@ _LT_EOF | ||
18170 | cat <<_LT_EOF >> conftest.$ac_ext | ||
18171 | |||
18172 | /* The mapping between symbol names and symbols. */ | ||
18173 | -const struct { | ||
18174 | +LT_DLSYM_CONST struct { | ||
18175 | const char *name; | ||
18176 | void *address; | ||
18177 | } | ||
18178 | @@ -6809,8 +7103,8 @@ static const void *lt_preloaded_setup() | ||
18179 | _LT_EOF | ||
18180 | # Now try linking the two files. | ||
18181 | mv conftest.$ac_objext conftstm.$ac_objext | ||
18182 | - lt_save_LIBS="$LIBS" | ||
18183 | - lt_save_CFLAGS="$CFLAGS" | ||
18184 | + lt_globsym_save_LIBS=$LIBS | ||
18185 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
18186 | LIBS="conftstm.$ac_objext" | ||
18187 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
18188 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
18189 | @@ -6820,8 +7114,8 @@ _LT_EOF | ||
18190 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
18191 | pipe_works=yes | ||
18192 | fi | ||
18193 | - LIBS="$lt_save_LIBS" | ||
18194 | - CFLAGS="$lt_save_CFLAGS" | ||
18195 | + LIBS=$lt_globsym_save_LIBS | ||
18196 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
18197 | else | ||
18198 | echo "cannot find nm_test_func in $nlist" >&5 | ||
18199 | fi | ||
18200 | @@ -6858,6 +7152,19 @@ else | ||
18201 | $as_echo "ok" >&6; } | ||
18202 | fi | ||
18203 | |||
18204 | +# Response file support. | ||
18205 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
18206 | + nm_file_list_spec='@' | ||
18207 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
18208 | + nm_file_list_spec='@' | ||
18209 | +fi | ||
18210 | + | ||
18211 | + | ||
18212 | + | ||
18213 | + | ||
18214 | + | ||
18215 | + | ||
18216 | + | ||
18217 | |||
18218 | |||
18219 | |||
18220 | @@ -6878,6 +7185,42 @@ fi | ||
18221 | |||
18222 | |||
18223 | |||
18224 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
18225 | +$as_echo_n "checking for sysroot... " >&6; } | ||
18226 | + | ||
18227 | +# Check whether --with-libtool-sysroot was given. | ||
18228 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
18229 | + withval=$with_libtool_sysroot; | ||
18230 | +else | ||
18231 | + with_libtool_sysroot=no | ||
18232 | +fi | ||
18233 | + | ||
18234 | + | ||
18235 | +lt_sysroot= | ||
18236 | +case ${with_libtool_sysroot} in #( | ||
18237 | + yes) | ||
18238 | + if test "$GCC" = yes; then | ||
18239 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
18240 | + fi | ||
18241 | + ;; #( | ||
18242 | + /*) | ||
18243 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
18244 | + ;; #( | ||
18245 | + no|'') | ||
18246 | + ;; #( | ||
18247 | + *) | ||
18248 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
18249 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
18250 | + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 | ||
18251 | + ;; | ||
18252 | +esac | ||
18253 | + | ||
18254 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
18255 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
18256 | + | ||
18257 | + | ||
18258 | + | ||
18259 | + | ||
18260 | |||
18261 | # Check whether --enable-libtool-lock was given. | ||
18262 | if test "${enable_libtool_lock+set}" = set; then : | ||
18263 | @@ -6910,7 +7253,7 @@ ia64-*-hpux*) | ||
18264 | ;; | ||
18265 | *-*-irix6*) | ||
18266 | # Find out which ABI we are using. | ||
18267 | - echo '#line 6913 "configure"' > conftest.$ac_ext | ||
18268 | + echo '#line '$LINENO' "configure"' > conftest.$ac_ext | ||
18269 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
18270 | (eval $ac_compile) 2>&5 | ||
18271 | ac_status=$? | ||
18272 | @@ -7072,6 +7415,123 @@ esac | ||
18273 | |||
18274 | need_locks="$enable_libtool_lock" | ||
18275 | |||
18276 | +if test -n "$ac_tool_prefix"; then | ||
18277 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
18278 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
18279 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18280 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
18281 | +if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then : | ||
18282 | + $as_echo_n "(cached) " >&6 | ||
18283 | +else | ||
18284 | + if test -n "$MANIFEST_TOOL"; then | ||
18285 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
18286 | +else | ||
18287 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18288 | +for as_dir in $PATH | ||
18289 | +do | ||
18290 | + IFS=$as_save_IFS | ||
18291 | + test -z "$as_dir" && as_dir=. | ||
18292 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
18293 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18294 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
18295 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18296 | + break 2 | ||
18297 | + fi | ||
18298 | +done | ||
18299 | + done | ||
18300 | +IFS=$as_save_IFS | ||
18301 | + | ||
18302 | +fi | ||
18303 | +fi | ||
18304 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
18305 | +if test -n "$MANIFEST_TOOL"; then | ||
18306 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
18307 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
18308 | +else | ||
18309 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18310 | +$as_echo "no" >&6; } | ||
18311 | +fi | ||
18312 | + | ||
18313 | + | ||
18314 | +fi | ||
18315 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
18316 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
18317 | + # Extract the first word of "mt", so it can be a program name with args. | ||
18318 | +set dummy mt; ac_word=$2 | ||
18319 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18320 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
18321 | +if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then : | ||
18322 | + $as_echo_n "(cached) " >&6 | ||
18323 | +else | ||
18324 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
18325 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
18326 | +else | ||
18327 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18328 | +for as_dir in $PATH | ||
18329 | +do | ||
18330 | + IFS=$as_save_IFS | ||
18331 | + test -z "$as_dir" && as_dir=. | ||
18332 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
18333 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18334 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
18335 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18336 | + break 2 | ||
18337 | + fi | ||
18338 | +done | ||
18339 | + done | ||
18340 | +IFS=$as_save_IFS | ||
18341 | + | ||
18342 | +fi | ||
18343 | +fi | ||
18344 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
18345 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
18346 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
18347 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
18348 | +else | ||
18349 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18350 | +$as_echo "no" >&6; } | ||
18351 | +fi | ||
18352 | + | ||
18353 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
18354 | + MANIFEST_TOOL=":" | ||
18355 | + else | ||
18356 | + case $cross_compiling:$ac_tool_warned in | ||
18357 | +yes:) | ||
18358 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
18359 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
18360 | +ac_tool_warned=yes ;; | ||
18361 | +esac | ||
18362 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
18363 | + fi | ||
18364 | +else | ||
18365 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
18366 | +fi | ||
18367 | + | ||
18368 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
18369 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
18370 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
18371 | +if test "${lt_cv_path_mainfest_tool+set}" = set; then : | ||
18372 | + $as_echo_n "(cached) " >&6 | ||
18373 | +else | ||
18374 | + lt_cv_path_mainfest_tool=no | ||
18375 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
18376 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
18377 | + cat conftest.err >&5 | ||
18378 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
18379 | + lt_cv_path_mainfest_tool=yes | ||
18380 | + fi | ||
18381 | + rm -f conftest* | ||
18382 | +fi | ||
18383 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
18384 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
18385 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
18386 | + MANIFEST_TOOL=: | ||
18387 | +fi | ||
18388 | + | ||
18389 | + | ||
18390 | + | ||
18391 | + | ||
18392 | + | ||
18393 | |||
18394 | case $host_os in | ||
18395 | rhapsody* | darwin*) | ||
18396 | @@ -7622,6 +8082,38 @@ rm -f core conftest.err conftest.$ac_obj | ||
18397 | fi | ||
18398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
18399 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
18400 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | ||
18401 | +$as_echo_n "checking for -force_load linker flag... " >&6; } | ||
18402 | +if test "${lt_cv_ld_force_load+set}" = set; then : | ||
18403 | + $as_echo_n "(cached) " >&6 | ||
18404 | +else | ||
18405 | + lt_cv_ld_force_load=no | ||
18406 | + cat > conftest.c << _LT_EOF | ||
18407 | +int forced_loaded() { return 2;} | ||
18408 | +_LT_EOF | ||
18409 | + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | ||
18410 | + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
18411 | + echo "$AR cru libconftest.a conftest.o" >&5 | ||
18412 | + $AR cru libconftest.a conftest.o 2>&5 | ||
18413 | + echo "$RANLIB libconftest.a" >&5 | ||
18414 | + $RANLIB libconftest.a 2>&5 | ||
18415 | + cat > conftest.c << _LT_EOF | ||
18416 | +int main() { return 0;} | ||
18417 | +_LT_EOF | ||
18418 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | ||
18419 | + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
18420 | + _lt_result=$? | ||
18421 | + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
18422 | + lt_cv_ld_force_load=yes | ||
18423 | + else | ||
18424 | + cat conftest.err >&5 | ||
18425 | + fi | ||
18426 | + rm -f conftest.err libconftest.a conftest conftest.c | ||
18427 | + rm -rf conftest.dSYM | ||
18428 | + | ||
18429 | +fi | ||
18430 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | ||
18431 | +$as_echo "$lt_cv_ld_force_load" >&6; } | ||
18432 | case $host_os in | ||
18433 | rhapsody* | darwin1.[012]) | ||
18434 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
18435 | @@ -7649,7 +8141,7 @@ $as_echo "$lt_cv_ld_exported_symbols_lis | ||
18436 | else | ||
18437 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
18438 | fi | ||
18439 | - if test "$DSYMUTIL" != ":"; then | ||
18440 | + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
18441 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
18442 | else | ||
18443 | _lt_dsymutil= | ||
18444 | @@ -7672,6 +8164,8 @@ done | ||
18445 | |||
18446 | |||
18447 | |||
18448 | + | ||
18449 | + | ||
18450 | # Set options | ||
18451 | |||
18452 | |||
18453 | @@ -7798,7 +8292,9 @@ fi | ||
18454 | LIBTOOL_DEPS="$ltmain" | ||
18455 | |||
18456 | # Always use our own libtool. | ||
18457 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
18458 | +LIBTOOL='$(SHELL) $(top_builddir)' | ||
18459 | +LIBTOOL="$LIBTOOL/${host_alias}-libtool" | ||
18460 | + | ||
18461 | |||
18462 | |||
18463 | |||
18464 | @@ -7873,19 +8369,6 @@ _ACEOF | ||
18465 | |||
18466 | |||
18467 | |||
18468 | - | ||
18469 | - | ||
18470 | - | ||
18471 | - | ||
18472 | - | ||
18473 | - | ||
18474 | - | ||
18475 | - | ||
18476 | - | ||
18477 | - | ||
18478 | - | ||
18479 | - | ||
18480 | - | ||
18481 | case $host_os in | ||
18482 | aix3*) | ||
18483 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
18484 | @@ -7898,25 +8381,8 @@ aix3*) | ||
18485 | ;; | ||
18486 | esac | ||
18487 | |||
18488 | -# Sed substitution that helps us do robust quoting. It backslashifies | ||
18489 | -# metacharacters that are still active within double-quoted strings. | ||
18490 | -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
18491 | - | ||
18492 | -# Same as above, but do not quote variable references. | ||
18493 | -double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
18494 | - | ||
18495 | -# Sed substitution to delay expansion of an escaped shell variable in a | ||
18496 | -# double_quote_subst'ed string. | ||
18497 | -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
18498 | - | ||
18499 | -# Sed substitution to delay expansion of an escaped single quote. | ||
18500 | -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
18501 | - | ||
18502 | -# Sed substitution to avoid accidental globbing in evaled expressions | ||
18503 | -no_glob_subst='s/\*/\\\*/g' | ||
18504 | - | ||
18505 | # Global variables: | ||
18506 | -ofile=libtool | ||
18507 | +ofile=${host_alias}-libtool | ||
18508 | can_build_shared=yes | ||
18509 | |||
18510 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
18511 | @@ -7943,7 +8409,7 @@ for cc_temp in $compiler""; do | ||
18512 | *) break;; | ||
18513 | esac | ||
18514 | done | ||
18515 | -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
18516 | +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
18517 | |||
18518 | |||
18519 | # Only perform the check for file, if the check method requires it | ||
18520 | @@ -8152,7 +8618,12 @@ if test -n "$compiler"; then | ||
18521 | lt_prog_compiler_no_builtin_flag= | ||
18522 | |||
18523 | if test "$GCC" = yes; then | ||
18524 | - lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
18525 | + case $cc_basename in | ||
18526 | + nvcc*) | ||
18527 | + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | ||
18528 | + *) | ||
18529 | + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | ||
18530 | + esac | ||
18531 | |||
18532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
18533 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
18534 | @@ -8172,15 +8643,15 @@ else | ||
18535 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
18536 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
18537 | -e 's:$: $lt_compiler_flag:'` | ||
18538 | - (eval echo "\"\$as_me:8175: $lt_compile\"" >&5) | ||
18539 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
18540 | (eval "$lt_compile" 2>conftest.err) | ||
18541 | ac_status=$? | ||
18542 | cat conftest.err >&5 | ||
18543 | - echo "$as_me:8179: \$? = $ac_status" >&5 | ||
18544 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18545 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
18546 | # The compiler can only warn and ignore the option if not recognized | ||
18547 | # So say no if there are warnings other than the usual output. | ||
18548 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
18549 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
18550 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
18551 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
18552 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
18553 | @@ -8209,8 +8680,6 @@ fi | ||
18554 | lt_prog_compiler_pic= | ||
18555 | lt_prog_compiler_static= | ||
18556 | |||
18557 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
18558 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
18559 | |||
18560 | if test "$GCC" = yes; then | ||
18561 | lt_prog_compiler_wl='-Wl,' | ||
18562 | @@ -8258,6 +8727,12 @@ $as_echo_n "checking for $compiler optio | ||
18563 | lt_prog_compiler_pic='-fno-common' | ||
18564 | ;; | ||
18565 | |||
18566 | + haiku*) | ||
18567 | + # PIC is the default for Haiku. | ||
18568 | + # The "-static" flag exists, but is broken. | ||
18569 | + lt_prog_compiler_static= | ||
18570 | + ;; | ||
18571 | + | ||
18572 | hpux*) | ||
18573 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
18574 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
18575 | @@ -8300,6 +8775,13 @@ $as_echo_n "checking for $compiler optio | ||
18576 | lt_prog_compiler_pic='-fPIC' | ||
18577 | ;; | ||
18578 | esac | ||
18579 | + | ||
18580 | + case $cc_basename in | ||
18581 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
18582 | + lt_prog_compiler_wl='-Xlinker ' | ||
18583 | + lt_prog_compiler_pic='-Xcompiler -fPIC' | ||
18584 | + ;; | ||
18585 | + esac | ||
18586 | else | ||
18587 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
18588 | case $host_os in | ||
18589 | @@ -8362,7 +8844,13 @@ $as_echo_n "checking for $compiler optio | ||
18590 | lt_prog_compiler_pic='--shared' | ||
18591 | lt_prog_compiler_static='--static' | ||
18592 | ;; | ||
18593 | - pgcc* | pgf77* | pgf90* | pgf95*) | ||
18594 | + nagfor*) | ||
18595 | + # NAG Fortran compiler | ||
18596 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
18597 | + lt_prog_compiler_pic='-PIC' | ||
18598 | + lt_prog_compiler_static='-Bstatic' | ||
18599 | + ;; | ||
18600 | + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
18601 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
18602 | # which looks to be a dead project) | ||
18603 | lt_prog_compiler_wl='-Wl,' | ||
18604 | @@ -8374,25 +8862,25 @@ $as_echo_n "checking for $compiler optio | ||
18605 | # All Alpha code is PIC. | ||
18606 | lt_prog_compiler_static='-non_shared' | ||
18607 | ;; | ||
18608 | - xl*) | ||
18609 | - # IBM XL C 8.0/Fortran 10.1 on PPC | ||
18610 | + xl* | bgxl* | bgf* | mpixl*) | ||
18611 | + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | ||
18612 | lt_prog_compiler_wl='-Wl,' | ||
18613 | lt_prog_compiler_pic='-qpic' | ||
18614 | lt_prog_compiler_static='-qstaticlink' | ||
18615 | ;; | ||
18616 | *) | ||
18617 | case `$CC -V 2>&1 | sed 5q` in | ||
18618 | - *Sun\ C*) | ||
18619 | - # Sun C 5.9 | ||
18620 | + *Sun\ F* | *Sun*Fortran*) | ||
18621 | + # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
18622 | lt_prog_compiler_pic='-KPIC' | ||
18623 | lt_prog_compiler_static='-Bstatic' | ||
18624 | - lt_prog_compiler_wl='-Wl,' | ||
18625 | + lt_prog_compiler_wl='' | ||
18626 | ;; | ||
18627 | - *Sun\ F*) | ||
18628 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
18629 | + *Sun\ C*) | ||
18630 | + # Sun C 5.9 | ||
18631 | lt_prog_compiler_pic='-KPIC' | ||
18632 | lt_prog_compiler_static='-Bstatic' | ||
18633 | - lt_prog_compiler_wl='' | ||
18634 | + lt_prog_compiler_wl='-Wl,' | ||
18635 | ;; | ||
18636 | esac | ||
18637 | ;; | ||
18638 | @@ -8424,7 +8912,7 @@ $as_echo_n "checking for $compiler optio | ||
18639 | lt_prog_compiler_pic='-KPIC' | ||
18640 | lt_prog_compiler_static='-Bstatic' | ||
18641 | case $cc_basename in | ||
18642 | - f77* | f90* | f95*) | ||
18643 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
18644 | lt_prog_compiler_wl='-Qoption ld ';; | ||
18645 | *) | ||
18646 | lt_prog_compiler_wl='-Wl,';; | ||
18647 | @@ -8481,13 +8969,17 @@ case $host_os in | ||
18648 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
18649 | ;; | ||
18650 | esac | ||
18651 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
18652 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
18653 | - | ||
18654 | - | ||
18655 | - | ||
18656 | - | ||
18657 | |||
18658 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
18659 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
18660 | +if test "${lt_cv_prog_compiler_pic+set}" = set; then : | ||
18661 | + $as_echo_n "(cached) " >&6 | ||
18662 | +else | ||
18663 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
18664 | +fi | ||
18665 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
18666 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
18667 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
18668 | |||
18669 | # | ||
18670 | # Check to make sure the PIC flag actually works. | ||
18671 | @@ -8511,15 +9003,15 @@ else | ||
18672 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
18673 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
18674 | -e 's:$: $lt_compiler_flag:'` | ||
18675 | - (eval echo "\"\$as_me:8514: $lt_compile\"" >&5) | ||
18676 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
18677 | (eval "$lt_compile" 2>conftest.err) | ||
18678 | ac_status=$? | ||
18679 | cat conftest.err >&5 | ||
18680 | - echo "$as_me:8518: \$? = $ac_status" >&5 | ||
18681 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18682 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
18683 | # The compiler can only warn and ignore the option if not recognized | ||
18684 | # So say no if there are warnings other than the usual output. | ||
18685 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
18686 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
18687 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
18688 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
18689 | lt_cv_prog_compiler_pic_works=yes | ||
18690 | @@ -8548,6 +9040,11 @@ fi | ||
18691 | |||
18692 | |||
18693 | |||
18694 | + | ||
18695 | + | ||
18696 | + | ||
18697 | + | ||
18698 | + | ||
18699 | # | ||
18700 | # Check to make sure the static flag actually works. | ||
18701 | # | ||
18702 | @@ -8567,7 +9064,7 @@ else | ||
18703 | if test -s conftest.err; then | ||
18704 | # Append any errors to the config.log. | ||
18705 | cat conftest.err 1>&5 | ||
18706 | - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
18707 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
18708 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
18709 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
18710 | lt_cv_prog_compiler_static_works=yes | ||
18711 | @@ -8616,16 +9113,16 @@ else | ||
18712 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
18713 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
18714 | -e 's:$: $lt_compiler_flag:'` | ||
18715 | - (eval echo "\"\$as_me:8619: $lt_compile\"" >&5) | ||
18716 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
18717 | (eval "$lt_compile" 2>out/conftest.err) | ||
18718 | ac_status=$? | ||
18719 | cat out/conftest.err >&5 | ||
18720 | - echo "$as_me:8623: \$? = $ac_status" >&5 | ||
18721 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18722 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
18723 | then | ||
18724 | # The compiler can only warn and ignore the option if not recognized | ||
18725 | # So say no if there are warnings | ||
18726 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
18727 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
18728 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
18729 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
18730 | lt_cv_prog_compiler_c_o=yes | ||
18731 | @@ -8671,16 +9168,16 @@ else | ||
18732 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
18733 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
18734 | -e 's:$: $lt_compiler_flag:'` | ||
18735 | - (eval echo "\"\$as_me:8674: $lt_compile\"" >&5) | ||
18736 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
18737 | (eval "$lt_compile" 2>out/conftest.err) | ||
18738 | ac_status=$? | ||
18739 | cat out/conftest.err >&5 | ||
18740 | - echo "$as_me:8678: \$? = $ac_status" >&5 | ||
18741 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18742 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
18743 | then | ||
18744 | # The compiler can only warn and ignore the option if not recognized | ||
18745 | # So say no if there are warnings | ||
18746 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
18747 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
18748 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
18749 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
18750 | lt_cv_prog_compiler_c_o=yes | ||
18751 | @@ -8793,7 +9290,33 @@ $as_echo_n "checking whether the $compil | ||
18752 | esac | ||
18753 | |||
18754 | ld_shlibs=yes | ||
18755 | + | ||
18756 | + # On some targets, GNU ld is compatible enough with the native linker | ||
18757 | + # that we're better off using the native interface for both. | ||
18758 | + lt_use_gnu_ld_interface=no | ||
18759 | if test "$with_gnu_ld" = yes; then | ||
18760 | + case $host_os in | ||
18761 | + aix*) | ||
18762 | + # The AIX port of GNU ld has always aspired to compatibility | ||
18763 | + # with the native linker. However, as the warning in the GNU ld | ||
18764 | + # block says, versions before 2.19.5* couldn't really create working | ||
18765 | + # shared libraries, regardless of the interface used. | ||
18766 | + case `$LD -v 2>&1` in | ||
18767 | + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | ||
18768 | + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | ||
18769 | + *\ \(GNU\ Binutils\)\ [3-9]*) ;; | ||
18770 | + *) | ||
18771 | + lt_use_gnu_ld_interface=yes | ||
18772 | + ;; | ||
18773 | + esac | ||
18774 | + ;; | ||
18775 | + *) | ||
18776 | + lt_use_gnu_ld_interface=yes | ||
18777 | + ;; | ||
18778 | + esac | ||
18779 | + fi | ||
18780 | + | ||
18781 | + if test "$lt_use_gnu_ld_interface" = yes; then | ||
18782 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
18783 | wlarc='${wl}' | ||
18784 | |||
18785 | @@ -8811,6 +9334,7 @@ $as_echo_n "checking whether the $compil | ||
18786 | fi | ||
18787 | supports_anon_versioning=no | ||
18788 | case `$LD -v 2>&1` in | ||
18789 | + *GNU\ gold*) supports_anon_versioning=yes ;; | ||
18790 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
18791 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
18792 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
18793 | @@ -8826,11 +9350,12 @@ $as_echo_n "checking whether the $compil | ||
18794 | ld_shlibs=no | ||
18795 | cat <<_LT_EOF 1>&2 | ||
18796 | |||
18797 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
18798 | +*** Warning: the GNU linker, at least up to release 2.19, is reported | ||
18799 | *** to be unable to reliably create shared libraries on AIX. | ||
18800 | *** Therefore, libtool is disabling shared libraries support. If you | ||
18801 | -*** really care for shared libraries, you may want to modify your PATH | ||
18802 | -*** so that a non-GNU linker is found, and then restart. | ||
18803 | +*** really care for shared libraries, you may want to install binutils | ||
18804 | +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | ||
18805 | +*** You will then need to restart the configuration process. | ||
18806 | |||
18807 | _LT_EOF | ||
18808 | fi | ||
18809 | @@ -8866,10 +9391,12 @@ _LT_EOF | ||
18810 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
18811 | # as there is no search path for DLLs. | ||
18812 | hardcode_libdir_flag_spec='-L$libdir' | ||
18813 | + export_dynamic_flag_spec='${wl}--export-all-symbols' | ||
18814 | allow_undefined_flag=unsupported | ||
18815 | always_export_symbols=no | ||
18816 | enable_shared_with_static_runtimes=yes | ||
18817 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
18818 | + 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' | ||
18819 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
18820 | |||
18821 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
18822 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
18823 | @@ -8887,6 +9414,11 @@ _LT_EOF | ||
18824 | fi | ||
18825 | ;; | ||
18826 | |||
18827 | + haiku*) | ||
18828 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
18829 | + link_all_deplibs=yes | ||
18830 | + ;; | ||
18831 | + | ||
18832 | interix[3-9]*) | ||
18833 | hardcode_direct=no | ||
18834 | hardcode_shlibpath_var=no | ||
18835 | @@ -8912,15 +9444,16 @@ _LT_EOF | ||
18836 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
18837 | && test "$tmp_diet" = no | ||
18838 | then | ||
18839 | - tmp_addflag= | ||
18840 | + tmp_addflag=' $pic_flag' | ||
18841 | tmp_sharedflag='-shared' | ||
18842 | case $cc_basename,$host_cpu in | ||
18843 | pgcc*) # Portland Group C compiler | ||
18844 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
18845 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
18846 | tmp_addflag=' $pic_flag' | ||
18847 | ;; | ||
18848 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
18849 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
18850 | + pgf77* | pgf90* | pgf95* | pgfortran*) | ||
18851 | + # Portland Group f77 and f90 compilers | ||
18852 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
18853 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
18854 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
18855 | tmp_addflag=' -i_dynamic' ;; | ||
18856 | @@ -8931,13 +9464,17 @@ _LT_EOF | ||
18857 | lf95*) # Lahey Fortran 8.1 | ||
18858 | whole_archive_flag_spec= | ||
18859 | tmp_sharedflag='--shared' ;; | ||
18860 | - xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
18861 | + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
18862 | tmp_sharedflag='-qmkshrobj' | ||
18863 | tmp_addflag= ;; | ||
18864 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
18865 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
18866 | + compiler_needs_object=yes | ||
18867 | + ;; | ||
18868 | esac | ||
18869 | case `$CC -V 2>&1 | sed 5q` in | ||
18870 | *Sun\ C*) # Sun C 5.9 | ||
18871 | - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
18872 | + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
18873 | compiler_needs_object=yes | ||
18874 | tmp_sharedflag='-G' ;; | ||
18875 | *Sun\ F*) # Sun Fortran 8.3 | ||
18876 | @@ -8953,17 +9490,17 @@ _LT_EOF | ||
18877 | fi | ||
18878 | |||
18879 | case $cc_basename in | ||
18880 | - xlf*) | ||
18881 | + xlf* | bgf* | bgxlf* | mpixlf*) | ||
18882 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
18883 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
18884 | hardcode_libdir_flag_spec= | ||
18885 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
18886 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
18887 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
18888 | if test "x$supports_anon_versioning" = xyes; then | ||
18889 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
18890 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
18891 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
18892 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
18893 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
18894 | fi | ||
18895 | ;; | ||
18896 | esac | ||
18897 | @@ -8977,8 +9514,8 @@ _LT_EOF | ||
18898 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
18899 | wlarc= | ||
18900 | else | ||
18901 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
18902 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
18903 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
18904 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
18905 | fi | ||
18906 | ;; | ||
18907 | |||
18908 | @@ -8996,8 +9533,8 @@ _LT_EOF | ||
18909 | |||
18910 | _LT_EOF | ||
18911 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
18912 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
18913 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
18914 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
18915 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
18916 | else | ||
18917 | ld_shlibs=no | ||
18918 | fi | ||
18919 | @@ -9043,8 +9580,8 @@ _LT_EOF | ||
18920 | |||
18921 | *) | ||
18922 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
18923 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
18924 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
18925 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
18926 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
18927 | else | ||
18928 | ld_shlibs=no | ||
18929 | fi | ||
18930 | @@ -9084,8 +9621,10 @@ _LT_EOF | ||
18931 | else | ||
18932 | # If we're using GNU nm, then we don't want the "-C" option. | ||
18933 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
18934 | + # Also, AIX nm treats weak defined symbols like other global | ||
18935 | + # defined symbols, whereas GNU nm marks them as "W". | ||
18936 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
18937 | - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
18938 | + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
18939 | else | ||
18940 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
18941 | fi | ||
18942 | @@ -9172,7 +9711,13 @@ _LT_EOF | ||
18943 | allow_undefined_flag='-berok' | ||
18944 | # Determine the default libpath from the value encoded in an | ||
18945 | # empty executable. | ||
18946 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18947 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
18948 | + aix_libpath=$lt_cv_aix_libpath | ||
18949 | +else | ||
18950 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
18951 | + $as_echo_n "(cached) " >&6 | ||
18952 | +else | ||
18953 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18954 | /* end confdefs.h. */ | ||
18955 | |||
18956 | int | ||
18957 | @@ -9185,25 +9730,32 @@ main () | ||
18958 | _ACEOF | ||
18959 | if ac_fn_c_try_link "$LINENO"; then : | ||
18960 | |||
18961 | -lt_aix_libpath_sed=' | ||
18962 | - /Import File Strings/,/^$/ { | ||
18963 | - /^0/ { | ||
18964 | - s/^0 *\(.*\)$/\1/ | ||
18965 | - p | ||
18966 | - } | ||
18967 | - }' | ||
18968 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
18969 | -# Check for a 64-bit object if we didn't find anything. | ||
18970 | -if test -z "$aix_libpath"; then | ||
18971 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
18972 | -fi | ||
18973 | + lt_aix_libpath_sed=' | ||
18974 | + /Import File Strings/,/^$/ { | ||
18975 | + /^0/ { | ||
18976 | + s/^0 *\([^ ]*\) *$/\1/ | ||
18977 | + p | ||
18978 | + } | ||
18979 | + }' | ||
18980 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
18981 | + # Check for a 64-bit object if we didn't find anything. | ||
18982 | + if test -z "$lt_cv_aix_libpath_"; then | ||
18983 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
18984 | + fi | ||
18985 | fi | ||
18986 | rm -f core conftest.err conftest.$ac_objext \ | ||
18987 | conftest$ac_exeext conftest.$ac_ext | ||
18988 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
18989 | + if test -z "$lt_cv_aix_libpath_"; then | ||
18990 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
18991 | + fi | ||
18992 | + | ||
18993 | +fi | ||
18994 | + | ||
18995 | + aix_libpath=$lt_cv_aix_libpath_ | ||
18996 | +fi | ||
18997 | |||
18998 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
18999 | - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
19000 | + 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" | ||
19001 | else | ||
19002 | if test "$host_cpu" = ia64; then | ||
19003 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
19004 | @@ -9212,7 +9764,13 @@ if test -z "$aix_libpath"; then aix_libp | ||
19005 | else | ||
19006 | # Determine the default libpath from the value encoded in an | ||
19007 | # empty executable. | ||
19008 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19009 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
19010 | + aix_libpath=$lt_cv_aix_libpath | ||
19011 | +else | ||
19012 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
19013 | + $as_echo_n "(cached) " >&6 | ||
19014 | +else | ||
19015 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19016 | /* end confdefs.h. */ | ||
19017 | |||
19018 | int | ||
19019 | @@ -9225,30 +9783,42 @@ main () | ||
19020 | _ACEOF | ||
19021 | if ac_fn_c_try_link "$LINENO"; then : | ||
19022 | |||
19023 | -lt_aix_libpath_sed=' | ||
19024 | - /Import File Strings/,/^$/ { | ||
19025 | - /^0/ { | ||
19026 | - s/^0 *\(.*\)$/\1/ | ||
19027 | - p | ||
19028 | - } | ||
19029 | - }' | ||
19030 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
19031 | -# Check for a 64-bit object if we didn't find anything. | ||
19032 | -if test -z "$aix_libpath"; then | ||
19033 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
19034 | -fi | ||
19035 | + lt_aix_libpath_sed=' | ||
19036 | + /Import File Strings/,/^$/ { | ||
19037 | + /^0/ { | ||
19038 | + s/^0 *\([^ ]*\) *$/\1/ | ||
19039 | + p | ||
19040 | + } | ||
19041 | + }' | ||
19042 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
19043 | + # Check for a 64-bit object if we didn't find anything. | ||
19044 | + if test -z "$lt_cv_aix_libpath_"; then | ||
19045 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
19046 | + fi | ||
19047 | fi | ||
19048 | rm -f core conftest.err conftest.$ac_objext \ | ||
19049 | conftest$ac_exeext conftest.$ac_ext | ||
19050 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
19051 | + if test -z "$lt_cv_aix_libpath_"; then | ||
19052 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
19053 | + fi | ||
19054 | + | ||
19055 | +fi | ||
19056 | + | ||
19057 | + aix_libpath=$lt_cv_aix_libpath_ | ||
19058 | +fi | ||
19059 | |||
19060 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
19061 | # Warning - without using the other run time loading flags, | ||
19062 | # -berok will link without error, but may produce a broken library. | ||
19063 | no_undefined_flag=' ${wl}-bernotok' | ||
19064 | allow_undefined_flag=' ${wl}-berok' | ||
19065 | - # Exported symbols can be pulled into shared objects from archives | ||
19066 | - whole_archive_flag_spec='$convenience' | ||
19067 | + if test "$with_gnu_ld" = yes; then | ||
19068 | + # We only use this code for GNU lds that support --whole-archive. | ||
19069 | + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
19070 | + else | ||
19071 | + # Exported symbols can be pulled into shared objects from archives | ||
19072 | + whole_archive_flag_spec='$convenience' | ||
19073 | + fi | ||
19074 | archive_cmds_need_lc=yes | ||
19075 | # This is similar to how AIX traditionally builds its shared libraries. | ||
19076 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
19077 | @@ -9280,20 +9850,63 @@ if test -z "$aix_libpath"; then aix_libp | ||
19078 | # Microsoft Visual C++. | ||
19079 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
19080 | # no search path for DLLs. | ||
19081 | - hardcode_libdir_flag_spec=' ' | ||
19082 | - allow_undefined_flag=unsupported | ||
19083 | - # Tell ltmain to make .lib files, not .a files. | ||
19084 | - libext=lib | ||
19085 | - # Tell ltmain to make .dll files, not .so files. | ||
19086 | - shrext_cmds=".dll" | ||
19087 | - # FIXME: Setting linknames here is a bad hack. | ||
19088 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
19089 | - # The linker will automatically build a .lib file if we build a DLL. | ||
19090 | - old_archive_from_new_cmds='true' | ||
19091 | - # FIXME: Should let the user specify the lib program. | ||
19092 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
19093 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
19094 | - enable_shared_with_static_runtimes=yes | ||
19095 | + case $cc_basename in | ||
19096 | + cl*) | ||
19097 | + # Native MSVC | ||
19098 | + hardcode_libdir_flag_spec=' ' | ||
19099 | + allow_undefined_flag=unsupported | ||
19100 | + always_export_symbols=yes | ||
19101 | + file_list_spec='@' | ||
19102 | + # Tell ltmain to make .lib files, not .a files. | ||
19103 | + libext=lib | ||
19104 | + # Tell ltmain to make .dll files, not .so files. | ||
19105 | + shrext_cmds=".dll" | ||
19106 | + # FIXME: Setting linknames here is a bad hack. | ||
19107 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
19108 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
19109 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
19110 | + else | ||
19111 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
19112 | + fi~ | ||
19113 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
19114 | + linknames=' | ||
19115 | + # The linker will not automatically build a static lib if we build a DLL. | ||
19116 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
19117 | + enable_shared_with_static_runtimes=yes | ||
19118 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
19119 | + # Don't use ranlib | ||
19120 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
19121 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
19122 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
19123 | + case $lt_outputfile in | ||
19124 | + *.exe|*.EXE) ;; | ||
19125 | + *) | ||
19126 | + lt_outputfile="$lt_outputfile.exe" | ||
19127 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
19128 | + ;; | ||
19129 | + esac~ | ||
19130 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
19131 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
19132 | + $RM "$lt_outputfile.manifest"; | ||
19133 | + fi' | ||
19134 | + ;; | ||
19135 | + *) | ||
19136 | + # Assume MSVC wrapper | ||
19137 | + hardcode_libdir_flag_spec=' ' | ||
19138 | + allow_undefined_flag=unsupported | ||
19139 | + # Tell ltmain to make .lib files, not .a files. | ||
19140 | + libext=lib | ||
19141 | + # Tell ltmain to make .dll files, not .so files. | ||
19142 | + shrext_cmds=".dll" | ||
19143 | + # FIXME: Setting linknames here is a bad hack. | ||
19144 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
19145 | + # The linker will automatically build a .lib file if we build a DLL. | ||
19146 | + old_archive_from_new_cmds='true' | ||
19147 | + # FIXME: Should let the user specify the lib program. | ||
19148 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
19149 | + enable_shared_with_static_runtimes=yes | ||
19150 | + ;; | ||
19151 | + esac | ||
19152 | ;; | ||
19153 | |||
19154 | darwin* | rhapsody*) | ||
19155 | @@ -9303,7 +9916,11 @@ if test -z "$aix_libpath"; then aix_libp | ||
19156 | hardcode_direct=no | ||
19157 | hardcode_automatic=yes | ||
19158 | hardcode_shlibpath_var=unsupported | ||
19159 | - whole_archive_flag_spec='' | ||
19160 | + if test "$lt_cv_ld_force_load" = "yes"; then | ||
19161 | + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | ||
19162 | + else | ||
19163 | + whole_archive_flag_spec='' | ||
19164 | + fi | ||
19165 | link_all_deplibs=yes | ||
19166 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
19167 | case $cc_basename in | ||
19168 | @@ -9311,7 +9928,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
19169 | *) _lt_dar_can_shared=$GCC ;; | ||
19170 | esac | ||
19171 | if test "$_lt_dar_can_shared" = "yes"; then | ||
19172 | - output_verbose_link_cmd=echo | ||
19173 | + output_verbose_link_cmd=func_echo_all | ||
19174 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
19175 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
19176 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | ||
19177 | @@ -9354,7 +9971,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
19178 | |||
19179 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
19180 | freebsd* | dragonfly*) | ||
19181 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
19182 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
19183 | hardcode_libdir_flag_spec='-R$libdir' | ||
19184 | hardcode_direct=yes | ||
19185 | hardcode_shlibpath_var=no | ||
19186 | @@ -9362,7 +9979,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
19187 | |||
19188 | hpux9*) | ||
19189 | if test "$GCC" = yes; then | ||
19190 | - 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' | ||
19191 | + 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' | ||
19192 | else | ||
19193 | 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' | ||
19194 | fi | ||
19195 | @@ -9377,8 +9994,8 @@ if test -z "$aix_libpath"; then aix_libp | ||
19196 | ;; | ||
19197 | |||
19198 | hpux10*) | ||
19199 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
19200 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
19201 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
19202 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
19203 | else | ||
19204 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
19205 | fi | ||
19206 | @@ -9396,16 +10013,16 @@ if test -z "$aix_libpath"; then aix_libp | ||
19207 | ;; | ||
19208 | |||
19209 | hpux11*) | ||
19210 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
19211 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
19212 | case $host_cpu in | ||
19213 | hppa*64*) | ||
19214 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
19215 | ;; | ||
19216 | ia64*) | ||
19217 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
19218 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
19219 | ;; | ||
19220 | *) | ||
19221 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
19222 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
19223 | ;; | ||
19224 | esac | ||
19225 | else | ||
19226 | @@ -9417,7 +10034,46 @@ if test -z "$aix_libpath"; then aix_libp | ||
19227 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
19228 | ;; | ||
19229 | *) | ||
19230 | - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
19231 | + | ||
19232 | + # Older versions of the 11.00 compiler do not understand -b yet | ||
19233 | + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | ||
19234 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | ||
19235 | +$as_echo_n "checking if $CC understands -b... " >&6; } | ||
19236 | +if test "${lt_cv_prog_compiler__b+set}" = set; then : | ||
19237 | + $as_echo_n "(cached) " >&6 | ||
19238 | +else | ||
19239 | + lt_cv_prog_compiler__b=no | ||
19240 | + save_LDFLAGS="$LDFLAGS" | ||
19241 | + LDFLAGS="$LDFLAGS -b" | ||
19242 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
19243 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
19244 | + # The linker can only warn and ignore the option if not recognized | ||
19245 | + # So say no if there are warnings | ||
19246 | + if test -s conftest.err; then | ||
19247 | + # Append any errors to the config.log. | ||
19248 | + cat conftest.err 1>&5 | ||
19249 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
19250 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
19251 | + if diff conftest.exp conftest.er2 >/dev/null; then | ||
19252 | + lt_cv_prog_compiler__b=yes | ||
19253 | + fi | ||
19254 | + else | ||
19255 | + lt_cv_prog_compiler__b=yes | ||
19256 | + fi | ||
19257 | + fi | ||
19258 | + $RM -r conftest* | ||
19259 | + LDFLAGS="$save_LDFLAGS" | ||
19260 | + | ||
19261 | +fi | ||
19262 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | ||
19263 | +$as_echo "$lt_cv_prog_compiler__b" >&6; } | ||
19264 | + | ||
19265 | +if test x"$lt_cv_prog_compiler__b" = xyes; then | ||
19266 | + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
19267 | +else | ||
19268 | + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
19269 | +fi | ||
19270 | + | ||
19271 | ;; | ||
19272 | esac | ||
19273 | fi | ||
19274 | @@ -9445,26 +10101,39 @@ if test -z "$aix_libpath"; then aix_libp | ||
19275 | |||
19276 | irix5* | irix6* | nonstopux*) | ||
19277 | if test "$GCC" = yes; then | ||
19278 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
19279 | + 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' | ||
19280 | # Try to use the -exported_symbol ld option, if it does not | ||
19281 | # work, assume that -exports_file does not work either and | ||
19282 | # implicitly export all symbols. | ||
19283 | - save_LDFLAGS="$LDFLAGS" | ||
19284 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
19285 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19286 | + # This should be the same for all languages, so no per-tag cache variable. | ||
19287 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
19288 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
19289 | +if test "${lt_cv_irix_exported_symbol+set}" = set; then : | ||
19290 | + $as_echo_n "(cached) " >&6 | ||
19291 | +else | ||
19292 | + save_LDFLAGS="$LDFLAGS" | ||
19293 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
19294 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19295 | /* end confdefs.h. */ | ||
19296 | -int foo(void) {} | ||
19297 | +int foo (void) { return 0; } | ||
19298 | _ACEOF | ||
19299 | if ac_fn_c_try_link "$LINENO"; then : | ||
19300 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
19301 | - | ||
19302 | + lt_cv_irix_exported_symbol=yes | ||
19303 | +else | ||
19304 | + lt_cv_irix_exported_symbol=no | ||
19305 | fi | ||
19306 | rm -f core conftest.err conftest.$ac_objext \ | ||
19307 | conftest$ac_exeext conftest.$ac_ext | ||
19308 | - LDFLAGS="$save_LDFLAGS" | ||
19309 | + LDFLAGS="$save_LDFLAGS" | ||
19310 | +fi | ||
19311 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
19312 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
19313 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
19314 | + 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' | ||
19315 | + fi | ||
19316 | else | ||
19317 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
19318 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
19319 | + 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' | ||
19320 | + 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' | ||
19321 | fi | ||
19322 | archive_cmds_need_lc='no' | ||
19323 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
19324 | @@ -9526,17 +10195,17 @@ rm -f core conftest.err conftest.$ac_obj | ||
19325 | hardcode_libdir_flag_spec='-L$libdir' | ||
19326 | hardcode_minus_L=yes | ||
19327 | allow_undefined_flag=unsupported | ||
19328 | - archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
19329 | + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
19330 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
19331 | ;; | ||
19332 | |||
19333 | osf3*) | ||
19334 | if test "$GCC" = yes; then | ||
19335 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
19336 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
19337 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
19338 | else | ||
19339 | allow_undefined_flag=' -expect_unresolved \*' | ||
19340 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
19341 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
19342 | fi | ||
19343 | archive_cmds_need_lc='no' | ||
19344 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
19345 | @@ -9546,13 +10215,13 @@ rm -f core conftest.err conftest.$ac_obj | ||
19346 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
19347 | if test "$GCC" = yes; then | ||
19348 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
19349 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
19350 | + 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' | ||
19351 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
19352 | else | ||
19353 | allow_undefined_flag=' -expect_unresolved \*' | ||
19354 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
19355 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
19356 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | ||
19357 | - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
19358 | + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
19359 | |||
19360 | # Both c and cxx compiler support -rpath directly | ||
19361 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
19362 | @@ -9565,9 +10234,9 @@ rm -f core conftest.err conftest.$ac_obj | ||
19363 | no_undefined_flag=' -z defs' | ||
19364 | if test "$GCC" = yes; then | ||
19365 | wlarc='${wl}' | ||
19366 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
19367 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
19368 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
19369 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
19370 | + $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' | ||
19371 | else | ||
19372 | case `$CC -V 2>&1` in | ||
19373 | *"Compilers 5.0"*) | ||
19374 | @@ -9969,16 +10638,23 @@ if test "$GCC" = yes; then | ||
19375 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
19376 | *) lt_awk_arg="/^libraries:/" ;; | ||
19377 | esac | ||
19378 | - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
19379 | - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
19380 | + case $host_os in | ||
19381 | + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | ||
19382 | + *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
19383 | + esac | ||
19384 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
19385 | + case $lt_search_path_spec in | ||
19386 | + *\;*) | ||
19387 | # if the path contains ";" then we assume it to be the separator | ||
19388 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
19389 | # assumed that no part of a normal pathname contains ";" but that should | ||
19390 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
19391 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
19392 | - else | ||
19393 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
19394 | - fi | ||
19395 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
19396 | + ;; | ||
19397 | + *) | ||
19398 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
19399 | + ;; | ||
19400 | + esac | ||
19401 | # Ok, now we have the path, separated by spaces, we can step through it | ||
19402 | # and add multilib dir if necessary. | ||
19403 | lt_tmp_lt_search_path_spec= | ||
19404 | @@ -9991,7 +10667,7 @@ if test "$GCC" = yes; then | ||
19405 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
19406 | fi | ||
19407 | done | ||
19408 | - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
19409 | + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
19410 | BEGIN {RS=" "; FS="/|\n";} { | ||
19411 | lt_foo=""; | ||
19412 | lt_count=0; | ||
19413 | @@ -10011,7 +10687,13 @@ BEGIN {RS=" "; FS="/|\n";} { | ||
19414 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
19415 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
19416 | }'` | ||
19417 | - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
19418 | + # AWK program above erroneously prepends '/' to C:/dos/paths | ||
19419 | + # for these hosts. | ||
19420 | + case $host_os in | ||
19421 | + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
19422 | + $SED 's,/\([A-Za-z]:\),\1,g'` ;; | ||
19423 | + esac | ||
19424 | + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
19425 | else | ||
19426 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
19427 | fi | ||
19428 | @@ -10099,7 +10781,7 @@ amigaos*) | ||
19429 | m68k) | ||
19430 | library_names_spec='$libname.ixlibrary $libname.a' | ||
19431 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
19432 | - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
19433 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
19434 | ;; | ||
19435 | esac | ||
19436 | ;; | ||
19437 | @@ -10130,8 +10812,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
19438 | need_version=no | ||
19439 | need_lib_prefix=no | ||
19440 | |||
19441 | - case $GCC,$host_os in | ||
19442 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
19443 | + case $GCC,$cc_basename in | ||
19444 | + yes,*) | ||
19445 | + # gcc | ||
19446 | library_names_spec='$libname.dll.a' | ||
19447 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
19448 | postinstall_cmds='base_file=`basename \${file}`~ | ||
19449 | @@ -10152,36 +10835,83 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
19450 | cygwin*) | ||
19451 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
19452 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
19453 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
19454 | + | ||
19455 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | ||
19456 | ;; | ||
19457 | mingw* | cegcc*) | ||
19458 | # MinGW DLLs use traditional 'lib' prefix | ||
19459 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
19460 | - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
19461 | - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
19462 | - # It is most probably a Windows format PATH printed by | ||
19463 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
19464 | - # path with ; separators, and with drive letters. We can handle the | ||
19465 | - # drive letters (cygwin fileutils understands them), so leave them, | ||
19466 | - # especially as we might pass files found there to a mingw objdump, | ||
19467 | - # which wouldn't understand a cygwinified path. Ahh. | ||
19468 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
19469 | - else | ||
19470 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
19471 | - fi | ||
19472 | ;; | ||
19473 | pw32*) | ||
19474 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
19475 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
19476 | ;; | ||
19477 | esac | ||
19478 | + dynamic_linker='Win32 ld.exe' | ||
19479 | + ;; | ||
19480 | + | ||
19481 | + *,cl*) | ||
19482 | + # Native MSVC | ||
19483 | + libname_spec='$name' | ||
19484 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
19485 | + library_names_spec='${libname}.dll.lib' | ||
19486 | + | ||
19487 | + case $build_os in | ||
19488 | + mingw*) | ||
19489 | + sys_lib_search_path_spec= | ||
19490 | + lt_save_ifs=$IFS | ||
19491 | + IFS=';' | ||
19492 | + for lt_path in $LIB | ||
19493 | + do | ||
19494 | + IFS=$lt_save_ifs | ||
19495 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
19496 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
19497 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
19498 | + done | ||
19499 | + IFS=$lt_save_ifs | ||
19500 | + # Convert to MSYS style. | ||
19501 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
19502 | + ;; | ||
19503 | + cygwin*) | ||
19504 | + # Convert to unix form, then to dos form, then back to unix form | ||
19505 | + # but this time dos style (no spaces!) so that the unix form looks | ||
19506 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
19507 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
19508 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
19509 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
19510 | + ;; | ||
19511 | + *) | ||
19512 | + sys_lib_search_path_spec="$LIB" | ||
19513 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
19514 | + # It is most probably a Windows format PATH. | ||
19515 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
19516 | + else | ||
19517 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
19518 | + fi | ||
19519 | + # FIXME: find the short name or the path components, as spaces are | ||
19520 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
19521 | + ;; | ||
19522 | + esac | ||
19523 | + | ||
19524 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
19525 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
19526 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
19527 | + dldir=$destdir/`dirname \$dlpath`~ | ||
19528 | + test -d \$dldir || mkdir -p \$dldir~ | ||
19529 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
19530 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
19531 | + dlpath=$dir/\$dldll~ | ||
19532 | + $RM \$dlpath' | ||
19533 | + shlibpath_overrides_runpath=yes | ||
19534 | + dynamic_linker='Win32 link.exe' | ||
19535 | ;; | ||
19536 | |||
19537 | *) | ||
19538 | + # Assume MSVC wrapper | ||
19539 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
19540 | + dynamic_linker='Win32 ld.exe' | ||
19541 | ;; | ||
19542 | esac | ||
19543 | - dynamic_linker='Win32 ld.exe' | ||
19544 | # FIXME: first we should search . and the directory the executable is in | ||
19545 | shlibpath_var=PATH | ||
19546 | ;; | ||
19547 | @@ -10268,6 +10998,19 @@ gnu*) | ||
19548 | hardcode_into_libs=yes | ||
19549 | ;; | ||
19550 | |||
19551 | +haiku*) | ||
19552 | + version_type=linux | ||
19553 | + need_lib_prefix=no | ||
19554 | + need_version=no | ||
19555 | + dynamic_linker="$host_os runtime_loader" | ||
19556 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
19557 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
19558 | + shlibpath_var=LIBRARY_PATH | ||
19559 | + shlibpath_overrides_runpath=yes | ||
19560 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
19561 | + hardcode_into_libs=yes | ||
19562 | + ;; | ||
19563 | + | ||
19564 | hpux9* | hpux10* | hpux11*) | ||
19565 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
19566 | # link against other versions. | ||
19567 | @@ -10310,8 +11053,10 @@ hpux9* | hpux10* | hpux11*) | ||
19568 | soname_spec='${libname}${release}${shared_ext}$major' | ||
19569 | ;; | ||
19570 | esac | ||
19571 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
19572 | + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
19573 | postinstall_cmds='chmod 555 $lib' | ||
19574 | + # or fails outright, so override atomically: | ||
19575 | + install_override_mode=555 | ||
19576 | ;; | ||
19577 | |||
19578 | interix[3-9]*) | ||
19579 | @@ -10420,7 +11165,7 @@ fi | ||
19580 | |||
19581 | # Append ld.so.conf contents to the search path | ||
19582 | if test -f /etc/ld.so.conf; then | ||
19583 | - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
19584 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | ||
19585 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
19586 | fi | ||
19587 | |||
19588 | @@ -10723,6 +11468,11 @@ fi | ||
19589 | |||
19590 | |||
19591 | |||
19592 | + | ||
19593 | + | ||
19594 | + | ||
19595 | + | ||
19596 | + | ||
19597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
19598 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
19599 | hardcode_action= | ||
19600 | @@ -11053,7 +11803,7 @@ else | ||
19601 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
19602 | lt_status=$lt_dlunknown | ||
19603 | cat > conftest.$ac_ext <<_LT_EOF | ||
19604 | -#line 11056 "configure" | ||
19605 | +#line $LINENO "configure" | ||
19606 | #include "confdefs.h" | ||
19607 | |||
19608 | #if HAVE_DLFCN_H | ||
19609 | @@ -11094,7 +11844,13 @@ else | ||
19610 | # endif | ||
19611 | #endif | ||
19612 | |||
19613 | -void fnord() { int i=42;} | ||
19614 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
19615 | + correspondingly for the symbols needed. */ | ||
19616 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
19617 | +int fnord () __attribute__((visibility("default"))); | ||
19618 | +#endif | ||
19619 | + | ||
19620 | +int fnord () { return 42; } | ||
19621 | int main () | ||
19622 | { | ||
19623 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
19624 | @@ -11103,7 +11859,11 @@ int main () | ||
19625 | if (self) | ||
19626 | { | ||
19627 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
19628 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
19629 | + else | ||
19630 | + { | ||
19631 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
19632 | + else puts (dlerror ()); | ||
19633 | + } | ||
19634 | /* dlclose (self); */ | ||
19635 | } | ||
19636 | else | ||
19637 | @@ -11149,7 +11909,7 @@ else | ||
19638 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
19639 | lt_status=$lt_dlunknown | ||
19640 | cat > conftest.$ac_ext <<_LT_EOF | ||
19641 | -#line 11152 "configure" | ||
19642 | +#line $LINENO "configure" | ||
19643 | #include "confdefs.h" | ||
19644 | |||
19645 | #if HAVE_DLFCN_H | ||
19646 | @@ -11190,7 +11950,13 @@ else | ||
19647 | # endif | ||
19648 | #endif | ||
19649 | |||
19650 | -void fnord() { int i=42;} | ||
19651 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
19652 | + correspondingly for the symbols needed. */ | ||
19653 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
19654 | +int fnord () __attribute__((visibility("default"))); | ||
19655 | +#endif | ||
19656 | + | ||
19657 | +int fnord () { return 42; } | ||
19658 | int main () | ||
19659 | { | ||
19660 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
19661 | @@ -11199,7 +11965,11 @@ int main () | ||
19662 | if (self) | ||
19663 | { | ||
19664 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
19665 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
19666 | + else | ||
19667 | + { | ||
19668 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
19669 | + else puts (dlerror ()); | ||
19670 | + } | ||
19671 | /* dlclose (self); */ | ||
19672 | } | ||
19673 | else | ||
19674 | @@ -13276,7 +14046,7 @@ case "${need_libm}" in | ||
19675 | yes) | ||
19676 | LIBM= | ||
19677 | case $host in | ||
19678 | -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | ||
19679 | +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | ||
19680 | # These system don't have libm, or don't need it | ||
19681 | ;; | ||
19682 | *-ncr-sysv4.3*) | ||
19683 | @@ -14635,131 +15405,153 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac | ||
19684 | sed_quote_subst='$sed_quote_subst' | ||
19685 | double_quote_subst='$double_quote_subst' | ||
19686 | delay_variable_subst='$delay_variable_subst' | ||
19687 | -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
19688 | -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
19689 | -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
19690 | -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
19691 | -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
19692 | -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
19693 | -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
19694 | -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
19695 | -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
19696 | -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
19697 | -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
19698 | -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
19699 | -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
19700 | -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
19701 | -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
19702 | -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
19703 | -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
19704 | -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
19705 | -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
19706 | -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
19707 | -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
19708 | -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
19709 | -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
19710 | -lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
19711 | -lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
19712 | -lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
19713 | -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
19714 | -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19715 | -OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
19716 | -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
19717 | -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
19718 | -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
19719 | -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
19720 | -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
19721 | -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
19722 | -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19723 | -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19724 | -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19725 | -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
19726 | -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
19727 | -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
19728 | -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
19729 | -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
19730 | -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
19731 | -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | ||
19732 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
19733 | -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
19734 | -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
19735 | -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
19736 | -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
19737 | -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
19738 | -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
19739 | -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
19740 | -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
19741 | -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
19742 | -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
19743 | -DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
19744 | -NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
19745 | -LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
19746 | -OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
19747 | -OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
19748 | -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
19749 | -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19750 | -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19751 | -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
19752 | -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
19753 | -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
19754 | -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
19755 | -compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
19756 | -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19757 | -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19758 | -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19759 | -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19760 | -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19761 | -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19762 | -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
19763 | -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
19764 | -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
19765 | -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
19766 | -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
19767 | -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
19768 | -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
19769 | -hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
19770 | -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
19771 | -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
19772 | -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
19773 | -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
19774 | -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
19775 | -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
19776 | -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
19777 | -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19778 | -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
19779 | -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
19780 | -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19781 | -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
19782 | -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
19783 | -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
19784 | -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
19785 | -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
19786 | -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
19787 | -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
19788 | -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
19789 | -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
19790 | -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
19791 | -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
19792 | -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19793 | -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19794 | -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
19795 | -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
19796 | -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
19797 | -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
19798 | -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
19799 | -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
19800 | -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
19801 | -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
19802 | -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
19803 | -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
19804 | -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
19805 | +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | ||
19806 | +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | ||
19807 | +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | ||
19808 | +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | ||
19809 | +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | ||
19810 | +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | ||
19811 | +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | ||
19812 | +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | ||
19813 | +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | ||
19814 | +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | ||
19815 | +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | ||
19816 | +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | ||
19817 | +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | ||
19818 | +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | ||
19819 | +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | ||
19820 | +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | ||
19821 | +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | ||
19822 | +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | ||
19823 | +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | ||
19824 | +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | ||
19825 | +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | ||
19826 | +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | ||
19827 | +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | ||
19828 | +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | ||
19829 | +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
19830 | +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
19831 | +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
19832 | +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
19833 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
19834 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
19835 | +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
19836 | +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
19837 | +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
19838 | +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
19839 | +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
19840 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
19841 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
19842 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
19843 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
19844 | +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
19845 | +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
19846 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
19847 | +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
19848 | +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
19849 | +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
19850 | +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
19851 | +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
19852 | +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | ||
19853 | +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | ||
19854 | +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | ||
19855 | +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | ||
19856 | +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | ||
19857 | +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | ||
19858 | +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
19859 | +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
19860 | +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"`' | ||
19861 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
19862 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
19863 | +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
19864 | +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
19865 | +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
19866 | +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
19867 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
19868 | +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
19869 | +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
19870 | +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
19871 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
19872 | +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
19873 | +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
19874 | +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
19875 | +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | ||
19876 | +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | ||
19877 | +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | ||
19878 | +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | ||
19879 | +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
19880 | +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | ||
19881 | +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | ||
19882 | +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
19883 | +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
19884 | +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | ||
19885 | +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | ||
19886 | +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
19887 | +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
19888 | +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
19889 | +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | ||
19890 | +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
19891 | +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | ||
19892 | +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
19893 | +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
19894 | +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
19895 | +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | ||
19896 | +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | ||
19897 | +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | ||
19898 | +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | ||
19899 | +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | ||
19900 | +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
19901 | +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
19902 | +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
19903 | +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
19904 | +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
19905 | +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
19906 | +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
19907 | +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
19908 | +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
19909 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
19910 | +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
19911 | +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
19912 | +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
19913 | +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | ||
19914 | +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | ||
19915 | +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | ||
19916 | +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
19917 | +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | ||
19918 | +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | ||
19919 | +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | ||
19920 | +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | ||
19921 | +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | ||
19922 | +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
19923 | +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
19924 | +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | ||
19925 | +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | ||
19926 | +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | ||
19927 | +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | ||
19928 | +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | ||
19929 | +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | ||
19930 | +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | ||
19931 | +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | ||
19932 | +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | ||
19933 | +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | ||
19934 | +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | ||
19935 | |||
19936 | LTCC='$LTCC' | ||
19937 | LTCFLAGS='$LTCFLAGS' | ||
19938 | compiler='$compiler_DEFAULT' | ||
19939 | |||
19940 | +# A function that is used when there is no print builtin or printf. | ||
19941 | +func_fallback_echo () | ||
19942 | +{ | ||
19943 | + eval 'cat <<_LTECHO_EOF | ||
19944 | +\$1 | ||
19945 | +_LTECHO_EOF' | ||
19946 | +} | ||
19947 | + | ||
19948 | # Quote evaled strings. | ||
19949 | -for var in SED \ | ||
19950 | +for var in SHELL \ | ||
19951 | +ECHO \ | ||
19952 | +SED \ | ||
19953 | GREP \ | ||
19954 | EGREP \ | ||
19955 | FGREP \ | ||
19956 | @@ -14772,8 +15564,13 @@ reload_flag \ | ||
19957 | OBJDUMP \ | ||
19958 | deplibs_check_method \ | ||
19959 | file_magic_cmd \ | ||
19960 | +file_magic_glob \ | ||
19961 | +want_nocaseglob \ | ||
19962 | +DLLTOOL \ | ||
19963 | +sharedlib_from_linklib_cmd \ | ||
19964 | AR \ | ||
19965 | AR_FLAGS \ | ||
19966 | +archiver_list_spec \ | ||
19967 | STRIP \ | ||
19968 | RANLIB \ | ||
19969 | CC \ | ||
19970 | @@ -14783,14 +15580,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
19971 | lt_cv_sys_global_symbol_to_cdecl \ | ||
19972 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
19973 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
19974 | -SHELL \ | ||
19975 | -ECHO \ | ||
19976 | +nm_file_list_spec \ | ||
19977 | lt_prog_compiler_no_builtin_flag \ | ||
19978 | -lt_prog_compiler_wl \ | ||
19979 | lt_prog_compiler_pic \ | ||
19980 | +lt_prog_compiler_wl \ | ||
19981 | lt_prog_compiler_static \ | ||
19982 | lt_cv_prog_compiler_c_o \ | ||
19983 | need_locks \ | ||
19984 | +MANIFEST_TOOL \ | ||
19985 | DSYMUTIL \ | ||
19986 | NMEDIT \ | ||
19987 | LIPO \ | ||
19988 | @@ -14806,7 +15603,6 @@ no_undefined_flag \ | ||
19989 | hardcode_libdir_flag_spec \ | ||
19990 | hardcode_libdir_flag_spec_ld \ | ||
19991 | hardcode_libdir_separator \ | ||
19992 | -fix_srcfile_path \ | ||
19993 | exclude_expsyms \ | ||
19994 | include_expsyms \ | ||
19995 | file_list_spec \ | ||
19996 | @@ -14814,12 +15610,13 @@ variables_saved_for_relink \ | ||
19997 | libname_spec \ | ||
19998 | library_names_spec \ | ||
19999 | soname_spec \ | ||
20000 | +install_override_mode \ | ||
20001 | finish_eval \ | ||
20002 | old_striplib \ | ||
20003 | striplib; do | ||
20004 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
20005 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
20006 | *[\\\\\\\`\\"\\\$]*) | ||
20007 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
20008 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
20009 | ;; | ||
20010 | *) | ||
20011 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
20012 | @@ -14841,14 +15638,15 @@ module_cmds \ | ||
20013 | module_expsym_cmds \ | ||
20014 | export_symbols_cmds \ | ||
20015 | prelink_cmds \ | ||
20016 | +postlink_cmds \ | ||
20017 | postinstall_cmds \ | ||
20018 | postuninstall_cmds \ | ||
20019 | finish_cmds \ | ||
20020 | sys_lib_search_path_spec \ | ||
20021 | sys_lib_dlsearch_path_spec; do | ||
20022 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
20023 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
20024 | *[\\\\\\\`\\"\\\$]*) | ||
20025 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
20026 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
20027 | ;; | ||
20028 | *) | ||
20029 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
20030 | @@ -14856,12 +15654,6 @@ sys_lib_dlsearch_path_spec; do | ||
20031 | esac | ||
20032 | done | ||
20033 | |||
20034 | -# Fix-up fallback echo if it was mangled by the above quoting rules. | ||
20035 | -case \$lt_ECHO in | ||
20036 | -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
20037 | - ;; | ||
20038 | -esac | ||
20039 | - | ||
20040 | ac_aux_dir='$ac_aux_dir' | ||
20041 | xsi_shell='$xsi_shell' | ||
20042 | lt_shell_append='$lt_shell_append' | ||
20043 | @@ -15611,7 +16403,8 @@ $as_echo X"$file" | | ||
20044 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
20045 | # | ||
20046 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
20047 | -# 2006, 2007, 2008 Free Software Foundation, Inc. | ||
20048 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
20049 | +# Inc. | ||
20050 | # Written by Gordon Matzigkeit, 1996 | ||
20051 | # | ||
20052 | # This file is part of GNU Libtool. | ||
20053 | @@ -15659,6 +16452,12 @@ pic_mode=$pic_mode | ||
20054 | # Whether or not to optimize for fast installation. | ||
20055 | fast_install=$enable_fast_install | ||
20056 | |||
20057 | +# Shell to use when invoking shell scripts. | ||
20058 | +SHELL=$lt_SHELL | ||
20059 | + | ||
20060 | +# An echo program that protects backslashes. | ||
20061 | +ECHO=$lt_ECHO | ||
20062 | + | ||
20063 | # The host system. | ||
20064 | host_alias=$host_alias | ||
20065 | host=$host | ||
20066 | @@ -15708,9 +16507,11 @@ SP2NL=$lt_lt_SP2NL | ||
20067 | # turn newlines into spaces. | ||
20068 | NL2SP=$lt_lt_NL2SP | ||
20069 | |||
20070 | -# How to create reloadable object files. | ||
20071 | -reload_flag=$lt_reload_flag | ||
20072 | -reload_cmds=$lt_reload_cmds | ||
20073 | +# convert \$build file names to \$host format. | ||
20074 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
20075 | + | ||
20076 | +# convert \$build files to toolchain format. | ||
20077 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
20078 | |||
20079 | # An object symbol dumper. | ||
20080 | OBJDUMP=$lt_OBJDUMP | ||
20081 | @@ -15718,13 +16519,30 @@ OBJDUMP=$lt_OBJDUMP | ||
20082 | # Method to check whether dependent libraries are shared objects. | ||
20083 | deplibs_check_method=$lt_deplibs_check_method | ||
20084 | |||
20085 | -# Command to use when deplibs_check_method == "file_magic". | ||
20086 | +# Command to use when deplibs_check_method = "file_magic". | ||
20087 | file_magic_cmd=$lt_file_magic_cmd | ||
20088 | |||
20089 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
20090 | +file_magic_glob=$lt_file_magic_glob | ||
20091 | + | ||
20092 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
20093 | +want_nocaseglob=$lt_want_nocaseglob | ||
20094 | + | ||
20095 | +# DLL creation program. | ||
20096 | +DLLTOOL=$lt_DLLTOOL | ||
20097 | + | ||
20098 | +# Command to associate shared and link libraries. | ||
20099 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
20100 | + | ||
20101 | # The archiver. | ||
20102 | AR=$lt_AR | ||
20103 | + | ||
20104 | +# Flags to create an archive. | ||
20105 | AR_FLAGS=$lt_AR_FLAGS | ||
20106 | |||
20107 | +# How to feed a file listing to the archiver. | ||
20108 | +archiver_list_spec=$lt_archiver_list_spec | ||
20109 | + | ||
20110 | # A symbol stripping program. | ||
20111 | STRIP=$lt_STRIP | ||
20112 | |||
20113 | @@ -15733,6 +16551,9 @@ RANLIB=$lt_RANLIB | ||
20114 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
20115 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
20116 | |||
20117 | +# Whether to use a lock for old archive extraction. | ||
20118 | +lock_old_archive_extraction=$lock_old_archive_extraction | ||
20119 | + | ||
20120 | # A C compiler. | ||
20121 | LTCC=$lt_CC | ||
20122 | |||
20123 | @@ -15751,14 +16572,14 @@ global_symbol_to_c_name_address=$lt_lt_c | ||
20124 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
20125 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
20126 | |||
20127 | -# The name of the directory that contains temporary libtool files. | ||
20128 | -objdir=$objdir | ||
20129 | +# Specify filename containing input files for \$NM. | ||
20130 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
20131 | |||
20132 | -# Shell to use when invoking shell scripts. | ||
20133 | -SHELL=$lt_SHELL | ||
20134 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
20135 | +lt_sysroot=$lt_sysroot | ||
20136 | |||
20137 | -# An echo program that does not interpret backslashes. | ||
20138 | -ECHO=$lt_ECHO | ||
20139 | +# The name of the directory that contains temporary libtool files. | ||
20140 | +objdir=$objdir | ||
20141 | |||
20142 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
20143 | MAGIC_CMD=$MAGIC_CMD | ||
20144 | @@ -15766,6 +16587,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
20145 | # Must we lock files when doing compilation? | ||
20146 | need_locks=$lt_need_locks | ||
20147 | |||
20148 | +# Manifest tool. | ||
20149 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
20150 | + | ||
20151 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
20152 | DSYMUTIL=$lt_DSYMUTIL | ||
20153 | |||
20154 | @@ -15822,6 +16646,9 @@ library_names_spec=$lt_library_names_spe | ||
20155 | # The coded name of the library, if different from the real name. | ||
20156 | soname_spec=$lt_soname_spec | ||
20157 | |||
20158 | +# Permission mode override for installation of shared libraries. | ||
20159 | +install_override_mode=$lt_install_override_mode | ||
20160 | + | ||
20161 | # Command to use after installation of a shared archive. | ||
20162 | postinstall_cmds=$lt_postinstall_cmds | ||
20163 | |||
20164 | @@ -15861,6 +16688,10 @@ striplib=$lt_striplib | ||
20165 | # The linker used to build libraries. | ||
20166 | LD=$lt_LD | ||
20167 | |||
20168 | +# How to create reloadable object files. | ||
20169 | +reload_flag=$lt_reload_flag | ||
20170 | +reload_cmds=$lt_reload_cmds | ||
20171 | + | ||
20172 | # Commands used to build an old-style archive. | ||
20173 | old_archive_cmds=$lt_old_archive_cmds | ||
20174 | |||
20175 | @@ -15873,12 +16704,12 @@ with_gcc=$GCC | ||
20176 | # Compiler flag to turn off builtin functions. | ||
20177 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
20178 | |||
20179 | -# How to pass a linker flag through the compiler. | ||
20180 | -wl=$lt_lt_prog_compiler_wl | ||
20181 | - | ||
20182 | # Additional compiler flags for building library objects. | ||
20183 | pic_flag=$lt_lt_prog_compiler_pic | ||
20184 | |||
20185 | +# How to pass a linker flag through the compiler. | ||
20186 | +wl=$lt_lt_prog_compiler_wl | ||
20187 | + | ||
20188 | # Compiler flag to prevent dynamic linking. | ||
20189 | link_static_flag=$lt_lt_prog_compiler_static | ||
20190 | |||
20191 | @@ -15965,9 +16796,6 @@ inherit_rpath=$inherit_rpath | ||
20192 | # Whether libtool must link a program against all its dependency libraries. | ||
20193 | link_all_deplibs=$link_all_deplibs | ||
20194 | |||
20195 | -# Fix the shell variable \$srcfile for the compiler. | ||
20196 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
20197 | - | ||
20198 | # Set to "yes" if exported symbols are required. | ||
20199 | always_export_symbols=$always_export_symbols | ||
20200 | |||
20201 | @@ -15983,6 +16811,9 @@ include_expsyms=$lt_include_expsyms | ||
20202 | # Commands necessary for linking programs (against libraries) with templates. | ||
20203 | prelink_cmds=$lt_prelink_cmds | ||
20204 | |||
20205 | +# Commands necessary for finishing linking programs. | ||
20206 | +postlink_cmds=$lt_postlink_cmds | ||
20207 | + | ||
20208 | # Specify filename containing input files. | ||
20209 | file_list_spec=$lt_file_list_spec | ||
20210 | |||
20211 | @@ -16015,212 +16846,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
20212 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
20213 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
20214 | # is reportedly fixed, but why not run on old versions too? | ||
20215 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
20216 | - || (rm -f "$cfgfile"; exit 1) | ||
20217 | - | ||
20218 | - case $xsi_shell in | ||
20219 | - yes) | ||
20220 | - cat << \_LT_EOF >> "$cfgfile" | ||
20221 | - | ||
20222 | -# func_dirname file append nondir_replacement | ||
20223 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
20224 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
20225 | -func_dirname () | ||
20226 | -{ | ||
20227 | - case ${1} in | ||
20228 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
20229 | - * ) func_dirname_result="${3}" ;; | ||
20230 | - esac | ||
20231 | -} | ||
20232 | - | ||
20233 | -# func_basename file | ||
20234 | -func_basename () | ||
20235 | -{ | ||
20236 | - func_basename_result="${1##*/}" | ||
20237 | -} | ||
20238 | - | ||
20239 | -# func_dirname_and_basename file append nondir_replacement | ||
20240 | -# perform func_basename and func_dirname in a single function | ||
20241 | -# call: | ||
20242 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
20243 | -# add APPEND to the result, otherwise set result | ||
20244 | -# to NONDIR_REPLACEMENT. | ||
20245 | -# value returned in "$func_dirname_result" | ||
20246 | -# basename: Compute filename of FILE. | ||
20247 | -# value retuned in "$func_basename_result" | ||
20248 | -# Implementation must be kept synchronized with func_dirname | ||
20249 | -# and func_basename. For efficiency, we do not delegate to | ||
20250 | -# those functions but instead duplicate the functionality here. | ||
20251 | -func_dirname_and_basename () | ||
20252 | -{ | ||
20253 | - case ${1} in | ||
20254 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
20255 | - * ) func_dirname_result="${3}" ;; | ||
20256 | - esac | ||
20257 | - func_basename_result="${1##*/}" | ||
20258 | -} | ||
20259 | - | ||
20260 | -# func_stripname prefix suffix name | ||
20261 | -# strip PREFIX and SUFFIX off of NAME. | ||
20262 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
20263 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
20264 | -# dot (in which case that matches only a dot). | ||
20265 | -func_stripname () | ||
20266 | -{ | ||
20267 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
20268 | - # positional parameters, so assign one to ordinary parameter first. | ||
20269 | - func_stripname_result=${3} | ||
20270 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
20271 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
20272 | -} | ||
20273 | - | ||
20274 | -# func_opt_split | ||
20275 | -func_opt_split () | ||
20276 | -{ | ||
20277 | - func_opt_split_opt=${1%%=*} | ||
20278 | - func_opt_split_arg=${1#*=} | ||
20279 | -} | ||
20280 | - | ||
20281 | -# func_lo2o object | ||
20282 | -func_lo2o () | ||
20283 | -{ | ||
20284 | - case ${1} in | ||
20285 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
20286 | - *) func_lo2o_result=${1} ;; | ||
20287 | - esac | ||
20288 | -} | ||
20289 | - | ||
20290 | -# func_xform libobj-or-source | ||
20291 | -func_xform () | ||
20292 | -{ | ||
20293 | - func_xform_result=${1%.*}.lo | ||
20294 | -} | ||
20295 | - | ||
20296 | -# func_arith arithmetic-term... | ||
20297 | -func_arith () | ||
20298 | -{ | ||
20299 | - func_arith_result=$(( $* )) | ||
20300 | -} | ||
20301 | - | ||
20302 | -# func_len string | ||
20303 | -# STRING may not start with a hyphen. | ||
20304 | -func_len () | ||
20305 | -{ | ||
20306 | - func_len_result=${#1} | ||
20307 | -} | ||
20308 | - | ||
20309 | -_LT_EOF | ||
20310 | - ;; | ||
20311 | - *) # Bourne compatible functions. | ||
20312 | - cat << \_LT_EOF >> "$cfgfile" | ||
20313 | - | ||
20314 | -# func_dirname file append nondir_replacement | ||
20315 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
20316 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
20317 | -func_dirname () | ||
20318 | -{ | ||
20319 | - # Extract subdirectory from the argument. | ||
20320 | - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
20321 | - if test "X$func_dirname_result" = "X${1}"; then | ||
20322 | - func_dirname_result="${3}" | ||
20323 | - else | ||
20324 | - func_dirname_result="$func_dirname_result${2}" | ||
20325 | - fi | ||
20326 | -} | ||
20327 | - | ||
20328 | -# func_basename file | ||
20329 | -func_basename () | ||
20330 | -{ | ||
20331 | - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
20332 | -} | ||
20333 | - | ||
20334 | - | ||
20335 | -# func_stripname prefix suffix name | ||
20336 | -# strip PREFIX and SUFFIX off of NAME. | ||
20337 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
20338 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
20339 | -# dot (in which case that matches only a dot). | ||
20340 | -# func_strip_suffix prefix name | ||
20341 | -func_stripname () | ||
20342 | -{ | ||
20343 | - case ${2} in | ||
20344 | - .*) func_stripname_result=`$ECHO "X${3}" \ | ||
20345 | - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
20346 | - *) func_stripname_result=`$ECHO "X${3}" \ | ||
20347 | - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
20348 | - esac | ||
20349 | -} | ||
20350 | - | ||
20351 | -# sed scripts: | ||
20352 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
20353 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
20354 | - | ||
20355 | -# func_opt_split | ||
20356 | -func_opt_split () | ||
20357 | -{ | ||
20358 | - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
20359 | - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
20360 | -} | ||
20361 | - | ||
20362 | -# func_lo2o object | ||
20363 | -func_lo2o () | ||
20364 | -{ | ||
20365 | - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
20366 | -} | ||
20367 | - | ||
20368 | -# func_xform libobj-or-source | ||
20369 | -func_xform () | ||
20370 | -{ | ||
20371 | - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
20372 | -} | ||
20373 | - | ||
20374 | -# func_arith arithmetic-term... | ||
20375 | -func_arith () | ||
20376 | -{ | ||
20377 | - func_arith_result=`expr "$@"` | ||
20378 | -} | ||
20379 | - | ||
20380 | -# func_len string | ||
20381 | -# STRING may not start with a hyphen. | ||
20382 | -func_len () | ||
20383 | -{ | ||
20384 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
20385 | -} | ||
20386 | - | ||
20387 | -_LT_EOF | ||
20388 | -esac | ||
20389 | - | ||
20390 | -case $lt_shell_append in | ||
20391 | - yes) | ||
20392 | - cat << \_LT_EOF >> "$cfgfile" | ||
20393 | - | ||
20394 | -# func_append var value | ||
20395 | -# Append VALUE to the end of shell variable VAR. | ||
20396 | -func_append () | ||
20397 | -{ | ||
20398 | - eval "$1+=\$2" | ||
20399 | -} | ||
20400 | -_LT_EOF | ||
20401 | - ;; | ||
20402 | - *) | ||
20403 | - cat << \_LT_EOF >> "$cfgfile" | ||
20404 | - | ||
20405 | -# func_append var value | ||
20406 | -# Append VALUE to the end of shell variable VAR. | ||
20407 | -func_append () | ||
20408 | -{ | ||
20409 | - eval "$1=\$$1\$2" | ||
20410 | -} | ||
20411 | - | ||
20412 | -_LT_EOF | ||
20413 | - ;; | ||
20414 | - esac | ||
20415 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
20416 | + || (rm -f "$cfgfile"; exit 1) | ||
20417 | |||
20418 | + if test x"$xsi_shell" = xyes; then | ||
20419 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
20420 | +func_dirname ()\ | ||
20421 | +{\ | ||
20422 | +\ case ${1} in\ | ||
20423 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
20424 | +\ * ) func_dirname_result="${3}" ;;\ | ||
20425 | +\ esac\ | ||
20426 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20427 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20428 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20429 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20430 | + | ||
20431 | + | ||
20432 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
20433 | +func_basename ()\ | ||
20434 | +{\ | ||
20435 | +\ func_basename_result="${1##*/}"\ | ||
20436 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20437 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20438 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20439 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20440 | + | ||
20441 | + | ||
20442 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
20443 | +func_dirname_and_basename ()\ | ||
20444 | +{\ | ||
20445 | +\ case ${1} in\ | ||
20446 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
20447 | +\ * ) func_dirname_result="${3}" ;;\ | ||
20448 | +\ esac\ | ||
20449 | +\ func_basename_result="${1##*/}"\ | ||
20450 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20451 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20452 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20453 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20454 | + | ||
20455 | + | ||
20456 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
20457 | +func_stripname ()\ | ||
20458 | +{\ | ||
20459 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
20460 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
20461 | +\ func_stripname_result=${3}\ | ||
20462 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
20463 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
20464 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20465 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20466 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20467 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20468 | + | ||
20469 | + | ||
20470 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
20471 | +func_split_long_opt ()\ | ||
20472 | +{\ | ||
20473 | +\ func_split_long_opt_name=${1%%=*}\ | ||
20474 | +\ func_split_long_opt_arg=${1#*=}\ | ||
20475 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20476 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20477 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20478 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20479 | + | ||
20480 | + | ||
20481 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
20482 | +func_split_short_opt ()\ | ||
20483 | +{\ | ||
20484 | +\ func_split_short_opt_arg=${1#??}\ | ||
20485 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
20486 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20487 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20488 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20489 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20490 | + | ||
20491 | + | ||
20492 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
20493 | +func_lo2o ()\ | ||
20494 | +{\ | ||
20495 | +\ case ${1} in\ | ||
20496 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
20497 | +\ *) func_lo2o_result=${1} ;;\ | ||
20498 | +\ esac\ | ||
20499 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20500 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20501 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20502 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20503 | + | ||
20504 | + | ||
20505 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
20506 | +func_xform ()\ | ||
20507 | +{\ | ||
20508 | + func_xform_result=${1%.*}.lo\ | ||
20509 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20510 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20511 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20512 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20513 | + | ||
20514 | + | ||
20515 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
20516 | +func_arith ()\ | ||
20517 | +{\ | ||
20518 | + func_arith_result=$(( $* ))\ | ||
20519 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20520 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20521 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20522 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20523 | + | ||
20524 | + | ||
20525 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
20526 | +func_len ()\ | ||
20527 | +{\ | ||
20528 | + func_len_result=${#1}\ | ||
20529 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20530 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20531 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20532 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20533 | + | ||
20534 | +fi | ||
20535 | + | ||
20536 | +if test x"$lt_shell_append" = xyes; then | ||
20537 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
20538 | +func_append ()\ | ||
20539 | +{\ | ||
20540 | + eval "${1}+=\\${2}"\ | ||
20541 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20542 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20543 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20544 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20545 | + | ||
20546 | + | ||
20547 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
20548 | +func_append_quoted ()\ | ||
20549 | +{\ | ||
20550 | +\ func_quote_for_eval "${2}"\ | ||
20551 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
20552 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
20553 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20554 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20555 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
20556 | + | ||
20557 | + | ||
20558 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
20559 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
20560 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20561 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20562 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
20563 | +else | ||
20564 | + # Save a `func_append' function call even when '+=' is not available | ||
20565 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
20566 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
20567 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
20568 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
20569 | +fi | ||
20570 | + | ||
20571 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
20572 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
20573 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
20574 | +fi | ||
20575 | |||
20576 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
20577 | - || (rm -f "$cfgfile"; exit 1) | ||
20578 | |||
20579 | - mv -f "$cfgfile" "$ofile" || | ||
20580 | + mv -f "$cfgfile" "$ofile" || | ||
20581 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
20582 | chmod +x "$ofile" | ||
20583 | |||
20584 | Index: binutils-2.20.1/gas/doc/Makefile.in | ||
20585 | =================================================================== | ||
20586 | --- binutils-2.20.1.orig/gas/doc/Makefile.in | ||
20587 | +++ binutils-2.20.1/gas/doc/Makefile.in | ||
20588 | @@ -116,6 +116,7 @@ CYGPATH_W = @CYGPATH_W@ | ||
20589 | DATADIRNAME = @DATADIRNAME@ | ||
20590 | DEFS = @DEFS@ | ||
20591 | DEPDIR = @DEPDIR@ | ||
20592 | +DLLTOOL = @DLLTOOL@ | ||
20593 | DSYMUTIL = @DSYMUTIL@ | ||
20594 | DUMPBIN = @DUMPBIN@ | ||
20595 | ECHO_C = @ECHO_C@ | ||
20596 | @@ -151,6 +152,7 @@ LN_S = @LN_S@ | ||
20597 | LTLIBOBJS = @LTLIBOBJS@ | ||
20598 | MAINT = @MAINT@ | ||
20599 | MAKEINFO = @MAKEINFO@ | ||
20600 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
20601 | MKDIR_P = @MKDIR_P@ | ||
20602 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
20603 | MSGFMT = @MSGFMT@ | ||
20604 | @@ -187,6 +189,7 @@ abs_builddir = @abs_builddir@ | ||
20605 | abs_srcdir = @abs_srcdir@ | ||
20606 | abs_top_builddir = @abs_top_builddir@ | ||
20607 | abs_top_srcdir = @abs_top_srcdir@ | ||
20608 | +ac_ct_AR = @ac_ct_AR@ | ||
20609 | ac_ct_CC = @ac_ct_CC@ | ||
20610 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
20611 | am__include = @am__include@ | ||
20612 | @@ -223,7 +226,6 @@ libdir = @libdir@ | ||
20613 | libexecdir = @libexecdir@ | ||
20614 | localedir = @localedir@ | ||
20615 | localstatedir = @localstatedir@ | ||
20616 | -lt_ECHO = @lt_ECHO@ | ||
20617 | mandir = @mandir@ | ||
20618 | mkdir_p = @mkdir_p@ | ||
20619 | obj_format = @obj_format@ | ||
20620 | Index: binutils-2.20.1/gprof/Makefile.in | ||
20621 | =================================================================== | ||
20622 | --- binutils-2.20.1.orig/gprof/Makefile.in | ||
20623 | +++ binutils-2.20.1/gprof/Makefile.in | ||
20624 | @@ -159,6 +159,7 @@ CYGPATH_W = @CYGPATH_W@ | ||
20625 | DATADIRNAME = @DATADIRNAME@ | ||
20626 | DEFS = @DEFS@ | ||
20627 | DEPDIR = @DEPDIR@ | ||
20628 | +DLLTOOL = @DLLTOOL@ | ||
20629 | DSYMUTIL = @DSYMUTIL@ | ||
20630 | DUMPBIN = @DUMPBIN@ | ||
20631 | ECHO_C = @ECHO_C@ | ||
20632 | @@ -189,6 +190,7 @@ LN_S = @LN_S@ | ||
20633 | LTLIBOBJS = @LTLIBOBJS@ | ||
20634 | MAINT = @MAINT@ | ||
20635 | MAKEINFO = @MAKEINFO@ | ||
20636 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
20637 | MKDIR_P = @MKDIR_P@ | ||
20638 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
20639 | MSGFMT = @MSGFMT@ | ||
20640 | @@ -222,6 +224,7 @@ abs_builddir = @abs_builddir@ | ||
20641 | abs_srcdir = @abs_srcdir@ | ||
20642 | abs_top_builddir = @abs_top_builddir@ | ||
20643 | abs_top_srcdir = @abs_top_srcdir@ | ||
20644 | +ac_ct_AR = @ac_ct_AR@ | ||
20645 | ac_ct_CC = @ac_ct_CC@ | ||
20646 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
20647 | am__include = @am__include@ | ||
20648 | @@ -254,7 +257,6 @@ libdir = @libdir@ | ||
20649 | libexecdir = @libexecdir@ | ||
20650 | localedir = @localedir@ | ||
20651 | localstatedir = @localstatedir@ | ||
20652 | -lt_ECHO = @lt_ECHO@ | ||
20653 | mandir = @mandir@ | ||
20654 | mkdir_p = @mkdir_p@ | ||
20655 | oldincludedir = @oldincludedir@ | ||
20656 | Index: binutils-2.20.1/gprof/configure | ||
20657 | =================================================================== | ||
20658 | --- binutils-2.20.1.orig/gprof/configure | ||
20659 | +++ binutils-2.20.1/gprof/configure | ||
20660 | @@ -169,7 +169,15 @@ test x\$exitcode = x0 || exit 1" | ||
20661 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
20662 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
20663 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
20664 | -test \$(( 1 + 1 )) = 2 || exit 1" | ||
20665 | +test \$(( 1 + 1 )) = 2 || exit 1 | ||
20666 | + | ||
20667 | + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | ||
20668 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
20669 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
20670 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
20671 | + PATH=/empty FPATH=/empty; export PATH FPATH | ||
20672 | + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | ||
20673 | + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | ||
20674 | if (eval "$as_required") 2>/dev/null; then : | ||
20675 | as_have_required=yes | ||
20676 | else | ||
20677 | @@ -523,155 +531,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P | ||
20678 | # Sed expression to map a string onto a valid variable name. | ||
20679 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
20680 | |||
20681 | - | ||
20682 | - | ||
20683 | -# Check that we are running under the correct shell. | ||
20684 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
20685 | |||
20686 | -case X$lt_ECHO in | ||
20687 | -X*--fallback-echo) | ||
20688 | - # Remove one level of quotation (which was required for Make). | ||
20689 | - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
20690 | - ;; | ||
20691 | -esac | ||
20692 | - | ||
20693 | -ECHO=${lt_ECHO-echo} | ||
20694 | -if test "X$1" = X--no-reexec; then | ||
20695 | - # Discard the --no-reexec flag, and continue. | ||
20696 | - shift | ||
20697 | -elif test "X$1" = X--fallback-echo; then | ||
20698 | - # Avoid inline document here, it may be left over | ||
20699 | - : | ||
20700 | -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
20701 | - # Yippee, $ECHO works! | ||
20702 | - : | ||
20703 | -else | ||
20704 | - # Restart under the correct shell. | ||
20705 | - exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
20706 | -fi | ||
20707 | - | ||
20708 | -if test "X$1" = X--fallback-echo; then | ||
20709 | - # used as fallback echo | ||
20710 | - shift | ||
20711 | - cat <<_LT_EOF | ||
20712 | -$* | ||
20713 | -_LT_EOF | ||
20714 | - exit 0 | ||
20715 | -fi | ||
20716 | - | ||
20717 | -# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
20718 | -# if CDPATH is set. | ||
20719 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
20720 | - | ||
20721 | -if test -z "$lt_ECHO"; then | ||
20722 | - if test "X${echo_test_string+set}" != Xset; then | ||
20723 | - # find a string as large as possible, as long as the shell can cope with it | ||
20724 | - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
20725 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
20726 | - if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
20727 | - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
20728 | - then | ||
20729 | - break | ||
20730 | - fi | ||
20731 | - done | ||
20732 | - fi | ||
20733 | - | ||
20734 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
20735 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
20736 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
20737 | - : | ||
20738 | - else | ||
20739 | - # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
20740 | - # backslashes. This makes it impossible to quote backslashes using | ||
20741 | - # echo "$something" | sed 's/\\/\\\\/g' | ||
20742 | - # | ||
20743 | - # So, first we look for a working echo in the user's PATH. | ||
20744 | - | ||
20745 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
20746 | - for dir in $PATH /usr/ucb; do | ||
20747 | - IFS="$lt_save_ifs" | ||
20748 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
20749 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
20750 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
20751 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
20752 | - ECHO="$dir/echo" | ||
20753 | - break | ||
20754 | - fi | ||
20755 | - done | ||
20756 | - IFS="$lt_save_ifs" | ||
20757 | - | ||
20758 | - if test "X$ECHO" = Xecho; then | ||
20759 | - # We didn't find a better echo, so look for alternatives. | ||
20760 | - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
20761 | - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
20762 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
20763 | - # This shell has a builtin print -r that does the trick. | ||
20764 | - ECHO='print -r' | ||
20765 | - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
20766 | - test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
20767 | - # If we have ksh, try running configure again with it. | ||
20768 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
20769 | - export ORIGINAL_CONFIG_SHELL | ||
20770 | - CONFIG_SHELL=/bin/ksh | ||
20771 | - export CONFIG_SHELL | ||
20772 | - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
20773 | - else | ||
20774 | - # Try using printf. | ||
20775 | - ECHO='printf %s\n' | ||
20776 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
20777 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
20778 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
20779 | - # Cool, printf works | ||
20780 | - : | ||
20781 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
20782 | - test "X$echo_testing_string" = 'X\t' && | ||
20783 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
20784 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
20785 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
20786 | - export CONFIG_SHELL | ||
20787 | - SHELL="$CONFIG_SHELL" | ||
20788 | - export SHELL | ||
20789 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
20790 | - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
20791 | - test "X$echo_testing_string" = 'X\t' && | ||
20792 | - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
20793 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
20794 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
20795 | - else | ||
20796 | - # maybe with a smaller string... | ||
20797 | - prev=: | ||
20798 | - | ||
20799 | - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
20800 | - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
20801 | - then | ||
20802 | - break | ||
20803 | - fi | ||
20804 | - prev="$cmd" | ||
20805 | - done | ||
20806 | - | ||
20807 | - if test "$prev" != 'sed 50q "$0"'; then | ||
20808 | - echo_test_string=`eval $prev` | ||
20809 | - export echo_test_string | ||
20810 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
20811 | - else | ||
20812 | - # Oops. We lost completely, so just stick with echo. | ||
20813 | - ECHO=echo | ||
20814 | - fi | ||
20815 | - fi | ||
20816 | - fi | ||
20817 | - fi | ||
20818 | - fi | ||
20819 | -fi | ||
20820 | - | ||
20821 | -# Copy echo and quote the copy suitably for passing to libtool from | ||
20822 | -# the Makefile, instead of quoting the original, which is used later. | ||
20823 | -lt_ECHO=$ECHO | ||
20824 | -if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
20825 | - lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
20826 | -fi | ||
20827 | - | ||
20828 | - | ||
20829 | - | ||
20830 | |||
20831 | exec 7<&0 </dev/null 6>&1 | ||
20832 | |||
20833 | @@ -768,9 +629,11 @@ OTOOL | ||
20834 | LIPO | ||
20835 | NMEDIT | ||
20836 | DSYMUTIL | ||
20837 | -lt_ECHO | ||
20838 | +MANIFEST_TOOL | ||
20839 | RANLIB | ||
20840 | +ac_ct_AR | ||
20841 | AR | ||
20842 | +DLLTOOL | ||
20843 | OBJDUMP | ||
20844 | LN_S | ||
20845 | NM | ||
20846 | @@ -882,6 +745,7 @@ enable_static | ||
20847 | with_pic | ||
20848 | enable_fast_install | ||
20849 | with_gnu_ld | ||
20850 | +with_libtool_sysroot | ||
20851 | enable_libtool_lock | ||
20852 | enable_nls | ||
20853 | enable_maintainer_mode | ||
20854 | @@ -1535,6 +1399,8 @@ Optional Packages: | ||
20855 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
20856 | both] | ||
20857 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
20858 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
20859 | + (or the compiler's sysroot if not specified). | ||
20860 | |||
20861 | Some influential environment variables: | ||
20862 | CC C compiler command | ||
20863 | @@ -5166,8 +5032,8 @@ esac | ||
20864 | |||
20865 | |||
20866 | |||
20867 | -macro_version='2.2.6' | ||
20868 | -macro_revision='1.3012' | ||
20869 | +macro_version='2.4' | ||
20870 | +macro_revision='1.3293' | ||
20871 | |||
20872 | |||
20873 | |||
20874 | @@ -5183,6 +5049,75 @@ macro_revision='1.3012' | ||
20875 | |||
20876 | ltmain="$ac_aux_dir/ltmain.sh" | ||
20877 | |||
20878 | +# Backslashify metacharacters that are still active within | ||
20879 | +# double-quoted strings. | ||
20880 | +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
20881 | + | ||
20882 | +# Same as above, but do not quote variable references. | ||
20883 | +double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
20884 | + | ||
20885 | +# Sed substitution to delay expansion of an escaped shell variable in a | ||
20886 | +# double_quote_subst'ed string. | ||
20887 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
20888 | + | ||
20889 | +# Sed substitution to delay expansion of an escaped single quote. | ||
20890 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
20891 | + | ||
20892 | +# Sed substitution to avoid accidental globbing in evaled expressions | ||
20893 | +no_glob_subst='s/\*/\\\*/g' | ||
20894 | + | ||
20895 | +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
20896 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
20897 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
20898 | + | ||
20899 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
20900 | +$as_echo_n "checking how to print strings... " >&6; } | ||
20901 | +# Test print first, because it will be a builtin if present. | ||
20902 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
20903 | + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
20904 | + ECHO='print -r --' | ||
20905 | +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
20906 | + ECHO='printf %s\n' | ||
20907 | +else | ||
20908 | + # Use this function as a fallback that always works. | ||
20909 | + func_fallback_echo () | ||
20910 | + { | ||
20911 | + eval 'cat <<_LTECHO_EOF | ||
20912 | +$1 | ||
20913 | +_LTECHO_EOF' | ||
20914 | + } | ||
20915 | + ECHO='func_fallback_echo' | ||
20916 | +fi | ||
20917 | + | ||
20918 | +# func_echo_all arg... | ||
20919 | +# Invoke $ECHO with all args, space-separated. | ||
20920 | +func_echo_all () | ||
20921 | +{ | ||
20922 | + $ECHO "" | ||
20923 | +} | ||
20924 | + | ||
20925 | +case "$ECHO" in | ||
20926 | + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | ||
20927 | +$as_echo "printf" >&6; } ;; | ||
20928 | + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | ||
20929 | +$as_echo "print -r" >&6; } ;; | ||
20930 | + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | ||
20931 | +$as_echo "cat" >&6; } ;; | ||
20932 | +esac | ||
20933 | + | ||
20934 | + | ||
20935 | + | ||
20936 | + | ||
20937 | + | ||
20938 | + | ||
20939 | + | ||
20940 | + | ||
20941 | + | ||
20942 | + | ||
20943 | + | ||
20944 | + | ||
20945 | + | ||
20946 | + | ||
20947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
20948 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
20949 | if test "${ac_cv_path_SED+set}" = set; then : | ||
20950 | @@ -5518,8 +5453,11 @@ if test "$lt_cv_path_NM" != "no"; then | ||
20951 | NM="$lt_cv_path_NM" | ||
20952 | else | ||
20953 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
20954 | - if test -n "$ac_tool_prefix"; then | ||
20955 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
20956 | + if test -n "$DUMPBIN"; then : | ||
20957 | + # Let the user override the test. | ||
20958 | + else | ||
20959 | + if test -n "$ac_tool_prefix"; then | ||
20960 | + for ac_prog in dumpbin "link -dump" | ||
20961 | do | ||
20962 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
20963 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
20964 | @@ -5563,7 +5501,7 @@ fi | ||
20965 | fi | ||
20966 | if test -z "$DUMPBIN"; then | ||
20967 | ac_ct_DUMPBIN=$DUMPBIN | ||
20968 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
20969 | + for ac_prog in dumpbin "link -dump" | ||
20970 | do | ||
20971 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
20972 | set dummy $ac_prog; ac_word=$2 | ||
20973 | @@ -5618,6 +5556,15 @@ esac | ||
20974 | fi | ||
20975 | fi | ||
20976 | |||
20977 | + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
20978 | + *COFF*) | ||
20979 | + DUMPBIN="$DUMPBIN -symbols" | ||
20980 | + ;; | ||
20981 | + *) | ||
20982 | + DUMPBIN=: | ||
20983 | + ;; | ||
20984 | + esac | ||
20985 | + fi | ||
20986 | |||
20987 | if test "$DUMPBIN" != ":"; then | ||
20988 | NM="$DUMPBIN" | ||
20989 | @@ -5637,13 +5584,13 @@ if test "${lt_cv_nm_interface+set}" = se | ||
20990 | else | ||
20991 | lt_cv_nm_interface="BSD nm" | ||
20992 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
20993 | - (eval echo "\"\$as_me:5640: $ac_compile\"" >&5) | ||
20994 | + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | ||
20995 | (eval "$ac_compile" 2>conftest.err) | ||
20996 | cat conftest.err >&5 | ||
20997 | - (eval echo "\"\$as_me:5643: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
20998 | + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
20999 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
21000 | cat conftest.err >&5 | ||
21001 | - (eval echo "\"\$as_me:5646: output\"" >&5) | ||
21002 | + (eval echo "\"\$as_me:$LINENO: output\"" >&5) | ||
21003 | cat conftest.out >&5 | ||
21004 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
21005 | lt_cv_nm_interface="MS dumpbin" | ||
21006 | @@ -5700,6 +5647,11 @@ else | ||
21007 | lt_cv_sys_max_cmd_len=8192; | ||
21008 | ;; | ||
21009 | |||
21010 | + mint*) | ||
21011 | + # On MiNT this can take a long time and run out of memory. | ||
21012 | + lt_cv_sys_max_cmd_len=8192; | ||
21013 | + ;; | ||
21014 | + | ||
21015 | amigaos*) | ||
21016 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
21017 | # So we just punt and use a minimum line length of 8192. | ||
21018 | @@ -5764,8 +5716,8 @@ else | ||
21019 | # If test is not a shell built-in, we'll probably end up computing a | ||
21020 | # maximum length that is only half of the actual maximum length, but | ||
21021 | # we can't tell. | ||
21022 | - while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
21023 | - = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
21024 | + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | ||
21025 | + = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
21026 | test $i != 17 # 1/2 MB should be enough | ||
21027 | do | ||
21028 | i=`expr $i + 1` | ||
21029 | @@ -5807,8 +5759,8 @@ $as_echo_n "checking whether the shell u | ||
21030 | # Try some XSI features | ||
21031 | xsi_shell=no | ||
21032 | ( _lt_dummy="a/b/c" | ||
21033 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
21034 | - = c,a/b,, \ | ||
21035 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
21036 | + = c,a/b,b/c, \ | ||
21037 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
21038 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
21039 | && xsi_shell=yes | ||
21040 | @@ -5857,6 +5809,80 @@ esac | ||
21041 | |||
21042 | |||
21043 | |||
21044 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
21045 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
21046 | +if test "${lt_cv_to_host_file_cmd+set}" = set; then : | ||
21047 | + $as_echo_n "(cached) " >&6 | ||
21048 | +else | ||
21049 | + case $host in | ||
21050 | + *-*-mingw* ) | ||
21051 | + case $build in | ||
21052 | + *-*-mingw* ) # actually msys | ||
21053 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
21054 | + ;; | ||
21055 | + *-*-cygwin* ) | ||
21056 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
21057 | + ;; | ||
21058 | + * ) # otherwise, assume *nix | ||
21059 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
21060 | + ;; | ||
21061 | + esac | ||
21062 | + ;; | ||
21063 | + *-*-cygwin* ) | ||
21064 | + case $build in | ||
21065 | + *-*-mingw* ) # actually msys | ||
21066 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
21067 | + ;; | ||
21068 | + *-*-cygwin* ) | ||
21069 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
21070 | + ;; | ||
21071 | + * ) # otherwise, assume *nix | ||
21072 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
21073 | + ;; | ||
21074 | + esac | ||
21075 | + ;; | ||
21076 | + * ) # unhandled hosts (and "normal" native builds) | ||
21077 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
21078 | + ;; | ||
21079 | +esac | ||
21080 | + | ||
21081 | +fi | ||
21082 | + | ||
21083 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
21084 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
21085 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
21086 | + | ||
21087 | + | ||
21088 | + | ||
21089 | + | ||
21090 | + | ||
21091 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
21092 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
21093 | +if test "${lt_cv_to_tool_file_cmd+set}" = set; then : | ||
21094 | + $as_echo_n "(cached) " >&6 | ||
21095 | +else | ||
21096 | + #assume ordinary cross tools, or native build. | ||
21097 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
21098 | +case $host in | ||
21099 | + *-*-mingw* ) | ||
21100 | + case $build in | ||
21101 | + *-*-mingw* ) # actually msys | ||
21102 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
21103 | + ;; | ||
21104 | + esac | ||
21105 | + ;; | ||
21106 | +esac | ||
21107 | + | ||
21108 | +fi | ||
21109 | + | ||
21110 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
21111 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
21112 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
21113 | + | ||
21114 | + | ||
21115 | + | ||
21116 | + | ||
21117 | + | ||
21118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
21119 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
21120 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
21121 | @@ -5873,6 +5899,11 @@ case $reload_flag in | ||
21122 | esac | ||
21123 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
21124 | case $host_os in | ||
21125 | + cygwin* | mingw* | pw32* | cegcc*) | ||
21126 | + if test "$GCC" != yes; then | ||
21127 | + reload_cmds=false | ||
21128 | + fi | ||
21129 | + ;; | ||
21130 | darwin*) | ||
21131 | if test "$GCC" = yes; then | ||
21132 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
21133 | @@ -6036,16 +6067,18 @@ mingw* | pw32*) | ||
21134 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
21135 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
21136 | # unless we find 'file', for example because we are cross-compiling. | ||
21137 | - if ( file / ) >/dev/null 2>&1; then | ||
21138 | + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
21139 | + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
21140 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
21141 | lt_cv_file_magic_cmd='func_win32_libid' | ||
21142 | else | ||
21143 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
21144 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
21145 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
21146 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
21147 | fi | ||
21148 | ;; | ||
21149 | |||
21150 | -cegcc) | ||
21151 | +cegcc*) | ||
21152 | # use the weaker test based on 'objdump'. See mingw*. | ||
21153 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
21154 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
21155 | @@ -6075,6 +6108,10 @@ gnu*) | ||
21156 | lt_cv_deplibs_check_method=pass_all | ||
21157 | ;; | ||
21158 | |||
21159 | +haiku*) | ||
21160 | + lt_cv_deplibs_check_method=pass_all | ||
21161 | + ;; | ||
21162 | + | ||
21163 | hpux10.20* | hpux11*) | ||
21164 | lt_cv_file_magic_cmd=/usr/bin/file | ||
21165 | case $host_cpu in | ||
21166 | @@ -6083,11 +6120,11 @@ hpux10.20* | hpux11*) | ||
21167 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
21168 | ;; | ||
21169 | hppa*64*) | ||
21170 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
21171 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | ||
21172 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
21173 | ;; | ||
21174 | *) | ||
21175 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
21176 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | ||
21177 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
21178 | ;; | ||
21179 | esac | ||
21180 | @@ -6113,11 +6150,6 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
21181 | lt_cv_deplibs_check_method=pass_all | ||
21182 | ;; | ||
21183 | |||
21184 | -linux-uclibc*) | ||
21185 | - lt_cv_deplibs_check_method=pass_all | ||
21186 | - lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` | ||
21187 | - ;; | ||
21188 | - | ||
21189 | netbsd*) | ||
21190 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
21191 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
21192 | @@ -6195,6 +6227,21 @@ esac | ||
21193 | fi | ||
21194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
21195 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
21196 | + | ||
21197 | +file_magic_glob= | ||
21198 | +want_nocaseglob=no | ||
21199 | +if test "$build" = "$host"; then | ||
21200 | + case $host_os in | ||
21201 | + mingw* | pw32*) | ||
21202 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
21203 | + want_nocaseglob=yes | ||
21204 | + else | ||
21205 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
21206 | + fi | ||
21207 | + ;; | ||
21208 | + esac | ||
21209 | +fi | ||
21210 | + | ||
21211 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
21212 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
21213 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
21214 | @@ -6210,16 +6257,26 @@ test -z "$deplibs_check_method" && depli | ||
21215 | |||
21216 | |||
21217 | |||
21218 | + | ||
21219 | + | ||
21220 | + | ||
21221 | + | ||
21222 | + | ||
21223 | + | ||
21224 | + | ||
21225 | + | ||
21226 | + | ||
21227 | + | ||
21228 | if test -n "$ac_tool_prefix"; then | ||
21229 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
21230 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
21231 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
21232 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
21233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21234 | $as_echo_n "checking for $ac_word... " >&6; } | ||
21235 | -if test "${ac_cv_prog_AR+set}" = set; then : | ||
21236 | +if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
21237 | $as_echo_n "(cached) " >&6 | ||
21238 | else | ||
21239 | - if test -n "$AR"; then | ||
21240 | - ac_cv_prog_AR="$AR" # Let the user override the test. | ||
21241 | + if test -n "$DLLTOOL"; then | ||
21242 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
21243 | else | ||
21244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21245 | for as_dir in $PATH | ||
21246 | @@ -6228,7 +6285,7 @@ do | ||
21247 | test -z "$as_dir" && as_dir=. | ||
21248 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
21250 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
21251 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
21252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21253 | break 2 | ||
21254 | fi | ||
21255 | @@ -6238,10 +6295,10 @@ IFS=$as_save_IFS | ||
21256 | |||
21257 | fi | ||
21258 | fi | ||
21259 | -AR=$ac_cv_prog_AR | ||
21260 | -if test -n "$AR"; then | ||
21261 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
21262 | -$as_echo "$AR" >&6; } | ||
21263 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
21264 | +if test -n "$DLLTOOL"; then | ||
21265 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
21266 | +$as_echo "$DLLTOOL" >&6; } | ||
21267 | else | ||
21268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21269 | $as_echo "no" >&6; } | ||
21270 | @@ -6249,17 +6306,17 @@ fi | ||
21271 | |||
21272 | |||
21273 | fi | ||
21274 | -if test -z "$ac_cv_prog_AR"; then | ||
21275 | - ac_ct_AR=$AR | ||
21276 | - # Extract the first word of "ar", so it can be a program name with args. | ||
21277 | -set dummy ar; ac_word=$2 | ||
21278 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
21279 | + ac_ct_DLLTOOL=$DLLTOOL | ||
21280 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
21281 | +set dummy dlltool; ac_word=$2 | ||
21282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21283 | $as_echo_n "checking for $ac_word... " >&6; } | ||
21284 | -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
21285 | +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
21286 | $as_echo_n "(cached) " >&6 | ||
21287 | else | ||
21288 | - if test -n "$ac_ct_AR"; then | ||
21289 | - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
21290 | + if test -n "$ac_ct_DLLTOOL"; then | ||
21291 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
21292 | else | ||
21293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21294 | for as_dir in $PATH | ||
21295 | @@ -6268,7 +6325,7 @@ do | ||
21296 | test -z "$as_dir" && as_dir=. | ||
21297 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21298 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
21299 | - ac_cv_prog_ac_ct_AR="ar" | ||
21300 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
21301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21302 | break 2 | ||
21303 | fi | ||
21304 | @@ -6278,17 +6335,17 @@ IFS=$as_save_IFS | ||
21305 | |||
21306 | fi | ||
21307 | fi | ||
21308 | -ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
21309 | -if test -n "$ac_ct_AR"; then | ||
21310 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
21311 | -$as_echo "$ac_ct_AR" >&6; } | ||
21312 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
21313 | +if test -n "$ac_ct_DLLTOOL"; then | ||
21314 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
21315 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
21316 | else | ||
21317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21318 | $as_echo "no" >&6; } | ||
21319 | fi | ||
21320 | |||
21321 | - if test "x$ac_ct_AR" = x; then | ||
21322 | - AR="false" | ||
21323 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
21324 | + DLLTOOL="false" | ||
21325 | else | ||
21326 | case $cross_compiling:$ac_tool_warned in | ||
21327 | yes:) | ||
21328 | @@ -6296,14 +6353,16 @@ yes:) | ||
21329 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
21330 | ac_tool_warned=yes ;; | ||
21331 | esac | ||
21332 | - AR=$ac_ct_AR | ||
21333 | + DLLTOOL=$ac_ct_DLLTOOL | ||
21334 | fi | ||
21335 | else | ||
21336 | - AR="$ac_cv_prog_AR" | ||
21337 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
21338 | fi | ||
21339 | |||
21340 | -test -z "$AR" && AR=ar | ||
21341 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
21342 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
21343 | + | ||
21344 | + | ||
21345 | + | ||
21346 | |||
21347 | |||
21348 | |||
21349 | @@ -6311,20 +6370,56 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
21350 | |||
21351 | |||
21352 | |||
21353 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
21354 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
21355 | +if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then : | ||
21356 | + $as_echo_n "(cached) " >&6 | ||
21357 | +else | ||
21358 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
21359 | + | ||
21360 | +case $host_os in | ||
21361 | +cygwin* | mingw* | pw32* | cegcc*) | ||
21362 | + # two different shell functions defined in ltmain.sh | ||
21363 | + # decide which to use based on capabilities of $DLLTOOL | ||
21364 | + case `$DLLTOOL --help 2>&1` in | ||
21365 | + *--identify-strict*) | ||
21366 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
21367 | + ;; | ||
21368 | + *) | ||
21369 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
21370 | + ;; | ||
21371 | + esac | ||
21372 | + ;; | ||
21373 | +*) | ||
21374 | + # fallback: assume linklib IS sharedlib | ||
21375 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
21376 | + ;; | ||
21377 | +esac | ||
21378 | + | ||
21379 | +fi | ||
21380 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
21381 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
21382 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
21383 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
21384 | + | ||
21385 | + | ||
21386 | + | ||
21387 | |||
21388 | |||
21389 | |||
21390 | |||
21391 | if test -n "$ac_tool_prefix"; then | ||
21392 | - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
21393 | -set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
21394 | + for ac_prog in ar | ||
21395 | + do | ||
21396 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
21397 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
21398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21399 | $as_echo_n "checking for $ac_word... " >&6; } | ||
21400 | -if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
21401 | +if test "${ac_cv_prog_AR+set}" = set; then : | ||
21402 | $as_echo_n "(cached) " >&6 | ||
21403 | else | ||
21404 | - if test -n "$STRIP"; then | ||
21405 | - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
21406 | + if test -n "$AR"; then | ||
21407 | + ac_cv_prog_AR="$AR" # Let the user override the test. | ||
21408 | else | ||
21409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21410 | for as_dir in $PATH | ||
21411 | @@ -6333,7 +6428,7 @@ do | ||
21412 | test -z "$as_dir" && as_dir=. | ||
21413 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
21415 | - ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
21416 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
21417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21418 | break 2 | ||
21419 | fi | ||
21420 | @@ -6343,28 +6438,32 @@ IFS=$as_save_IFS | ||
21421 | |||
21422 | fi | ||
21423 | fi | ||
21424 | -STRIP=$ac_cv_prog_STRIP | ||
21425 | -if test -n "$STRIP"; then | ||
21426 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
21427 | -$as_echo "$STRIP" >&6; } | ||
21428 | +AR=$ac_cv_prog_AR | ||
21429 | +if test -n "$AR"; then | ||
21430 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
21431 | +$as_echo "$AR" >&6; } | ||
21432 | else | ||
21433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21434 | $as_echo "no" >&6; } | ||
21435 | fi | ||
21436 | |||
21437 | |||
21438 | + test -n "$AR" && break | ||
21439 | + done | ||
21440 | fi | ||
21441 | -if test -z "$ac_cv_prog_STRIP"; then | ||
21442 | - ac_ct_STRIP=$STRIP | ||
21443 | - # Extract the first word of "strip", so it can be a program name with args. | ||
21444 | -set dummy strip; ac_word=$2 | ||
21445 | +if test -z "$AR"; then | ||
21446 | + ac_ct_AR=$AR | ||
21447 | + for ac_prog in ar | ||
21448 | +do | ||
21449 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
21450 | +set dummy $ac_prog; ac_word=$2 | ||
21451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21452 | $as_echo_n "checking for $ac_word... " >&6; } | ||
21453 | -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
21454 | +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
21455 | $as_echo_n "(cached) " >&6 | ||
21456 | else | ||
21457 | - if test -n "$ac_ct_STRIP"; then | ||
21458 | - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
21459 | + if test -n "$ac_ct_AR"; then | ||
21460 | + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
21461 | else | ||
21462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21463 | for as_dir in $PATH | ||
21464 | @@ -6373,7 +6472,7 @@ do | ||
21465 | test -z "$as_dir" && as_dir=. | ||
21466 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
21468 | - ac_cv_prog_ac_ct_STRIP="strip" | ||
21469 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
21470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21471 | break 2 | ||
21472 | fi | ||
21473 | @@ -6383,17 +6482,182 @@ IFS=$as_save_IFS | ||
21474 | |||
21475 | fi | ||
21476 | fi | ||
21477 | -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
21478 | -if test -n "$ac_ct_STRIP"; then | ||
21479 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
21480 | -$as_echo "$ac_ct_STRIP" >&6; } | ||
21481 | +ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
21482 | +if test -n "$ac_ct_AR"; then | ||
21483 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
21484 | +$as_echo "$ac_ct_AR" >&6; } | ||
21485 | else | ||
21486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21487 | $as_echo "no" >&6; } | ||
21488 | fi | ||
21489 | |||
21490 | - if test "x$ac_ct_STRIP" = x; then | ||
21491 | - STRIP=":" | ||
21492 | + | ||
21493 | + test -n "$ac_ct_AR" && break | ||
21494 | +done | ||
21495 | + | ||
21496 | + if test "x$ac_ct_AR" = x; then | ||
21497 | + AR="false" | ||
21498 | + else | ||
21499 | + case $cross_compiling:$ac_tool_warned in | ||
21500 | +yes:) | ||
21501 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
21502 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
21503 | +ac_tool_warned=yes ;; | ||
21504 | +esac | ||
21505 | + AR=$ac_ct_AR | ||
21506 | + fi | ||
21507 | +fi | ||
21508 | + | ||
21509 | +: ${AR=ar} | ||
21510 | +: ${AR_FLAGS=cru} | ||
21511 | + | ||
21512 | + | ||
21513 | + | ||
21514 | + | ||
21515 | + | ||
21516 | + | ||
21517 | + | ||
21518 | + | ||
21519 | + | ||
21520 | + | ||
21521 | + | ||
21522 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
21523 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
21524 | +if test "${lt_cv_ar_at_file+set}" = set; then : | ||
21525 | + $as_echo_n "(cached) " >&6 | ||
21526 | +else | ||
21527 | + lt_cv_ar_at_file=no | ||
21528 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21529 | +/* end confdefs.h. */ | ||
21530 | + | ||
21531 | +int | ||
21532 | +main () | ||
21533 | +{ | ||
21534 | + | ||
21535 | + ; | ||
21536 | + return 0; | ||
21537 | +} | ||
21538 | +_ACEOF | ||
21539 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
21540 | + echo conftest.$ac_objext > conftest.lst | ||
21541 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
21542 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
21543 | + (eval $lt_ar_try) 2>&5 | ||
21544 | + ac_status=$? | ||
21545 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21546 | + test $ac_status = 0; } | ||
21547 | + if test "$ac_status" -eq 0; then | ||
21548 | + # Ensure the archiver fails upon bogus file names. | ||
21549 | + rm -f conftest.$ac_objext libconftest.a | ||
21550 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
21551 | + (eval $lt_ar_try) 2>&5 | ||
21552 | + ac_status=$? | ||
21553 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21554 | + test $ac_status = 0; } | ||
21555 | + if test "$ac_status" -ne 0; then | ||
21556 | + lt_cv_ar_at_file=@ | ||
21557 | + fi | ||
21558 | + fi | ||
21559 | + rm -f conftest.* libconftest.a | ||
21560 | + | ||
21561 | +fi | ||
21562 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21563 | + | ||
21564 | +fi | ||
21565 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
21566 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
21567 | + | ||
21568 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
21569 | + archiver_list_spec= | ||
21570 | +else | ||
21571 | + archiver_list_spec=$lt_cv_ar_at_file | ||
21572 | +fi | ||
21573 | + | ||
21574 | + | ||
21575 | + | ||
21576 | + | ||
21577 | + | ||
21578 | + | ||
21579 | + | ||
21580 | +if test -n "$ac_tool_prefix"; then | ||
21581 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
21582 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
21583 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21584 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
21585 | +if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
21586 | + $as_echo_n "(cached) " >&6 | ||
21587 | +else | ||
21588 | + if test -n "$STRIP"; then | ||
21589 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
21590 | +else | ||
21591 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21592 | +for as_dir in $PATH | ||
21593 | +do | ||
21594 | + IFS=$as_save_IFS | ||
21595 | + test -z "$as_dir" && as_dir=. | ||
21596 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
21597 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
21598 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
21599 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21600 | + break 2 | ||
21601 | + fi | ||
21602 | +done | ||
21603 | + done | ||
21604 | +IFS=$as_save_IFS | ||
21605 | + | ||
21606 | +fi | ||
21607 | +fi | ||
21608 | +STRIP=$ac_cv_prog_STRIP | ||
21609 | +if test -n "$STRIP"; then | ||
21610 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
21611 | +$as_echo "$STRIP" >&6; } | ||
21612 | +else | ||
21613 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21614 | +$as_echo "no" >&6; } | ||
21615 | +fi | ||
21616 | + | ||
21617 | + | ||
21618 | +fi | ||
21619 | +if test -z "$ac_cv_prog_STRIP"; then | ||
21620 | + ac_ct_STRIP=$STRIP | ||
21621 | + # Extract the first word of "strip", so it can be a program name with args. | ||
21622 | +set dummy strip; ac_word=$2 | ||
21623 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21624 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
21625 | +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
21626 | + $as_echo_n "(cached) " >&6 | ||
21627 | +else | ||
21628 | + if test -n "$ac_ct_STRIP"; then | ||
21629 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
21630 | +else | ||
21631 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21632 | +for as_dir in $PATH | ||
21633 | +do | ||
21634 | + IFS=$as_save_IFS | ||
21635 | + test -z "$as_dir" && as_dir=. | ||
21636 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
21637 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
21638 | + ac_cv_prog_ac_ct_STRIP="strip" | ||
21639 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21640 | + break 2 | ||
21641 | + fi | ||
21642 | +done | ||
21643 | + done | ||
21644 | +IFS=$as_save_IFS | ||
21645 | + | ||
21646 | +fi | ||
21647 | +fi | ||
21648 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
21649 | +if test -n "$ac_ct_STRIP"; then | ||
21650 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
21651 | +$as_echo "$ac_ct_STRIP" >&6; } | ||
21652 | +else | ||
21653 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21654 | +$as_echo "no" >&6; } | ||
21655 | +fi | ||
21656 | + | ||
21657 | + if test "x$ac_ct_STRIP" = x; then | ||
21658 | + STRIP=":" | ||
21659 | else | ||
21660 | case $cross_compiling:$ac_tool_warned in | ||
21661 | yes:) | ||
21662 | @@ -6530,6 +6794,18 @@ if test -n "$RANLIB"; then | ||
21663 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
21664 | fi | ||
21665 | |||
21666 | +case $host_os in | ||
21667 | + darwin*) | ||
21668 | + lock_old_archive_extraction=yes ;; | ||
21669 | + *) | ||
21670 | + lock_old_archive_extraction=no ;; | ||
21671 | +esac | ||
21672 | + | ||
21673 | + | ||
21674 | + | ||
21675 | + | ||
21676 | + | ||
21677 | + | ||
21678 | |||
21679 | |||
21680 | |||
21681 | @@ -6637,8 +6913,8 @@ esac | ||
21682 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
21683 | |||
21684 | # Transform an extracted symbol line into symbol name and symbol address | ||
21685 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
21686 | -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'" | ||
21687 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
21688 | +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'" | ||
21689 | |||
21690 | # Handle CRLF in mingw tool chain | ||
21691 | opt_cr= | ||
21692 | @@ -6674,6 +6950,7 @@ for ac_symprfx in "" "_"; do | ||
21693 | else | ||
21694 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
21695 | fi | ||
21696 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
21697 | |||
21698 | # Check to see that the pipe works correctly. | ||
21699 | pipe_works=no | ||
21700 | @@ -6699,8 +6976,8 @@ _LT_EOF | ||
21701 | test $ac_status = 0; }; then | ||
21702 | # Now try to grab the symbols. | ||
21703 | nlist=conftest.nm | ||
21704 | - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
21705 | - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
21706 | + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | ||
21707 | + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | ||
21708 | ac_status=$? | ||
21709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21710 | test $ac_status = 0; } && test -s "$nlist"; then | ||
21711 | @@ -6715,6 +6992,18 @@ _LT_EOF | ||
21712 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
21713 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
21714 | cat <<_LT_EOF > conftest.$ac_ext | ||
21715 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
21716 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
21717 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
21718 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
21719 | +# define LT_DLSYM_CONST | ||
21720 | +#elif defined(__osf__) | ||
21721 | +/* This system does not cope well with relocations in const data. */ | ||
21722 | +# define LT_DLSYM_CONST | ||
21723 | +#else | ||
21724 | +# define LT_DLSYM_CONST const | ||
21725 | +#endif | ||
21726 | + | ||
21727 | #ifdef __cplusplus | ||
21728 | extern "C" { | ||
21729 | #endif | ||
21730 | @@ -6726,7 +7015,7 @@ _LT_EOF | ||
21731 | cat <<_LT_EOF >> conftest.$ac_ext | ||
21732 | |||
21733 | /* The mapping between symbol names and symbols. */ | ||
21734 | -const struct { | ||
21735 | +LT_DLSYM_CONST struct { | ||
21736 | const char *name; | ||
21737 | void *address; | ||
21738 | } | ||
21739 | @@ -6752,8 +7041,8 @@ static const void *lt_preloaded_setup() | ||
21740 | _LT_EOF | ||
21741 | # Now try linking the two files. | ||
21742 | mv conftest.$ac_objext conftstm.$ac_objext | ||
21743 | - lt_save_LIBS="$LIBS" | ||
21744 | - lt_save_CFLAGS="$CFLAGS" | ||
21745 | + lt_globsym_save_LIBS=$LIBS | ||
21746 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
21747 | LIBS="conftstm.$ac_objext" | ||
21748 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
21749 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
21750 | @@ -6763,8 +7052,8 @@ _LT_EOF | ||
21751 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
21752 | pipe_works=yes | ||
21753 | fi | ||
21754 | - LIBS="$lt_save_LIBS" | ||
21755 | - CFLAGS="$lt_save_CFLAGS" | ||
21756 | + LIBS=$lt_globsym_save_LIBS | ||
21757 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
21758 | else | ||
21759 | echo "cannot find nm_test_func in $nlist" >&5 | ||
21760 | fi | ||
21761 | @@ -6801,6 +7090,20 @@ else | ||
21762 | $as_echo "ok" >&6; } | ||
21763 | fi | ||
21764 | |||
21765 | +# Response file support. | ||
21766 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
21767 | + nm_file_list_spec='@' | ||
21768 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
21769 | + nm_file_list_spec='@' | ||
21770 | +fi | ||
21771 | + | ||
21772 | + | ||
21773 | + | ||
21774 | + | ||
21775 | + | ||
21776 | + | ||
21777 | + | ||
21778 | + | ||
21779 | |||
21780 | |||
21781 | |||
21782 | @@ -6820,6 +7123,41 @@ fi | ||
21783 | |||
21784 | |||
21785 | |||
21786 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
21787 | +$as_echo_n "checking for sysroot... " >&6; } | ||
21788 | + | ||
21789 | +# Check whether --with-libtool-sysroot was given. | ||
21790 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
21791 | + withval=$with_libtool_sysroot; | ||
21792 | +else | ||
21793 | + with_libtool_sysroot=no | ||
21794 | +fi | ||
21795 | + | ||
21796 | + | ||
21797 | +lt_sysroot= | ||
21798 | +case ${with_libtool_sysroot} in #( | ||
21799 | + yes) | ||
21800 | + if test "$GCC" = yes; then | ||
21801 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
21802 | + fi | ||
21803 | + ;; #( | ||
21804 | + /*) | ||
21805 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
21806 | + ;; #( | ||
21807 | + no|'') | ||
21808 | + ;; #( | ||
21809 | + *) | ||
21810 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
21811 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
21812 | + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 | ||
21813 | + ;; | ||
21814 | +esac | ||
21815 | + | ||
21816 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
21817 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
21818 | + | ||
21819 | + | ||
21820 | + | ||
21821 | |||
21822 | |||
21823 | # Check whether --enable-libtool-lock was given. | ||
21824 | @@ -6853,7 +7191,7 @@ ia64-*-hpux*) | ||
21825 | ;; | ||
21826 | *-*-irix6*) | ||
21827 | # Find out which ABI we are using. | ||
21828 | - echo '#line 6851 "configure"' > conftest.$ac_ext | ||
21829 | + echo '#line '$LINENO' "configure"' > conftest.$ac_ext | ||
21830 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
21831 | (eval $ac_compile) 2>&5 | ||
21832 | ac_status=$? | ||
21833 | @@ -7015,6 +7353,123 @@ esac | ||
21834 | |||
21835 | need_locks="$enable_libtool_lock" | ||
21836 | |||
21837 | +if test -n "$ac_tool_prefix"; then | ||
21838 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
21839 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
21840 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21841 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
21842 | +if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then : | ||
21843 | + $as_echo_n "(cached) " >&6 | ||
21844 | +else | ||
21845 | + if test -n "$MANIFEST_TOOL"; then | ||
21846 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
21847 | +else | ||
21848 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21849 | +for as_dir in $PATH | ||
21850 | +do | ||
21851 | + IFS=$as_save_IFS | ||
21852 | + test -z "$as_dir" && as_dir=. | ||
21853 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
21854 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
21855 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
21856 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21857 | + break 2 | ||
21858 | + fi | ||
21859 | +done | ||
21860 | + done | ||
21861 | +IFS=$as_save_IFS | ||
21862 | + | ||
21863 | +fi | ||
21864 | +fi | ||
21865 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
21866 | +if test -n "$MANIFEST_TOOL"; then | ||
21867 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
21868 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
21869 | +else | ||
21870 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21871 | +$as_echo "no" >&6; } | ||
21872 | +fi | ||
21873 | + | ||
21874 | + | ||
21875 | +fi | ||
21876 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
21877 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
21878 | + # Extract the first word of "mt", so it can be a program name with args. | ||
21879 | +set dummy mt; ac_word=$2 | ||
21880 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
21881 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
21882 | +if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then : | ||
21883 | + $as_echo_n "(cached) " >&6 | ||
21884 | +else | ||
21885 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
21886 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
21887 | +else | ||
21888 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21889 | +for as_dir in $PATH | ||
21890 | +do | ||
21891 | + IFS=$as_save_IFS | ||
21892 | + test -z "$as_dir" && as_dir=. | ||
21893 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
21894 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
21895 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
21896 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21897 | + break 2 | ||
21898 | + fi | ||
21899 | +done | ||
21900 | + done | ||
21901 | +IFS=$as_save_IFS | ||
21902 | + | ||
21903 | +fi | ||
21904 | +fi | ||
21905 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
21906 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
21907 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
21908 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
21909 | +else | ||
21910 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21911 | +$as_echo "no" >&6; } | ||
21912 | +fi | ||
21913 | + | ||
21914 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
21915 | + MANIFEST_TOOL=":" | ||
21916 | + else | ||
21917 | + case $cross_compiling:$ac_tool_warned in | ||
21918 | +yes:) | ||
21919 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
21920 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
21921 | +ac_tool_warned=yes ;; | ||
21922 | +esac | ||
21923 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
21924 | + fi | ||
21925 | +else | ||
21926 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
21927 | +fi | ||
21928 | + | ||
21929 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
21930 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
21931 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
21932 | +if test "${lt_cv_path_mainfest_tool+set}" = set; then : | ||
21933 | + $as_echo_n "(cached) " >&6 | ||
21934 | +else | ||
21935 | + lt_cv_path_mainfest_tool=no | ||
21936 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
21937 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
21938 | + cat conftest.err >&5 | ||
21939 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
21940 | + lt_cv_path_mainfest_tool=yes | ||
21941 | + fi | ||
21942 | + rm -f conftest* | ||
21943 | +fi | ||
21944 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
21945 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
21946 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
21947 | + MANIFEST_TOOL=: | ||
21948 | +fi | ||
21949 | + | ||
21950 | + | ||
21951 | + | ||
21952 | + | ||
21953 | + | ||
21954 | |||
21955 | case $host_os in | ||
21956 | rhapsody* | darwin*) | ||
21957 | @@ -7565,6 +8020,38 @@ rm -f core conftest.err conftest.$ac_obj | ||
21958 | fi | ||
21959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
21960 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
21961 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | ||
21962 | +$as_echo_n "checking for -force_load linker flag... " >&6; } | ||
21963 | +if test "${lt_cv_ld_force_load+set}" = set; then : | ||
21964 | + $as_echo_n "(cached) " >&6 | ||
21965 | +else | ||
21966 | + lt_cv_ld_force_load=no | ||
21967 | + cat > conftest.c << _LT_EOF | ||
21968 | +int forced_loaded() { return 2;} | ||
21969 | +_LT_EOF | ||
21970 | + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | ||
21971 | + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
21972 | + echo "$AR cru libconftest.a conftest.o" >&5 | ||
21973 | + $AR cru libconftest.a conftest.o 2>&5 | ||
21974 | + echo "$RANLIB libconftest.a" >&5 | ||
21975 | + $RANLIB libconftest.a 2>&5 | ||
21976 | + cat > conftest.c << _LT_EOF | ||
21977 | +int main() { return 0;} | ||
21978 | +_LT_EOF | ||
21979 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | ||
21980 | + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
21981 | + _lt_result=$? | ||
21982 | + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
21983 | + lt_cv_ld_force_load=yes | ||
21984 | + else | ||
21985 | + cat conftest.err >&5 | ||
21986 | + fi | ||
21987 | + rm -f conftest.err libconftest.a conftest conftest.c | ||
21988 | + rm -rf conftest.dSYM | ||
21989 | + | ||
21990 | +fi | ||
21991 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | ||
21992 | +$as_echo "$lt_cv_ld_force_load" >&6; } | ||
21993 | case $host_os in | ||
21994 | rhapsody* | darwin1.[012]) | ||
21995 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
21996 | @@ -7592,7 +8079,7 @@ $as_echo "$lt_cv_ld_exported_symbols_lis | ||
21997 | else | ||
21998 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
21999 | fi | ||
22000 | - if test "$DSYMUTIL" != ":"; then | ||
22001 | + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
22002 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
22003 | else | ||
22004 | _lt_dsymutil= | ||
22005 | @@ -7615,6 +8102,8 @@ done | ||
22006 | |||
22007 | |||
22008 | |||
22009 | + | ||
22010 | + | ||
22011 | # Set options | ||
22012 | |||
22013 | |||
22014 | @@ -7741,7 +8230,9 @@ fi | ||
22015 | LIBTOOL_DEPS="$ltmain" | ||
22016 | |||
22017 | # Always use our own libtool. | ||
22018 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
22019 | +LIBTOOL='$(SHELL) $(top_builddir)' | ||
22020 | +LIBTOOL="$LIBTOOL/${host_alias}-libtool" | ||
22021 | + | ||
22022 | |||
22023 | |||
22024 | |||
22025 | @@ -7816,19 +8307,6 @@ _ACEOF | ||
22026 | |||
22027 | |||
22028 | |||
22029 | - | ||
22030 | - | ||
22031 | - | ||
22032 | - | ||
22033 | - | ||
22034 | - | ||
22035 | - | ||
22036 | - | ||
22037 | - | ||
22038 | - | ||
22039 | - | ||
22040 | - | ||
22041 | - | ||
22042 | case $host_os in | ||
22043 | aix3*) | ||
22044 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
22045 | @@ -7841,25 +8319,8 @@ aix3*) | ||
22046 | ;; | ||
22047 | esac | ||
22048 | |||
22049 | -# Sed substitution that helps us do robust quoting. It backslashifies | ||
22050 | -# metacharacters that are still active within double-quoted strings. | ||
22051 | -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
22052 | - | ||
22053 | -# Same as above, but do not quote variable references. | ||
22054 | -double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
22055 | - | ||
22056 | -# Sed substitution to delay expansion of an escaped shell variable in a | ||
22057 | -# double_quote_subst'ed string. | ||
22058 | -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
22059 | - | ||
22060 | -# Sed substitution to delay expansion of an escaped single quote. | ||
22061 | -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
22062 | - | ||
22063 | -# Sed substitution to avoid accidental globbing in evaled expressions | ||
22064 | -no_glob_subst='s/\*/\\\*/g' | ||
22065 | - | ||
22066 | # Global variables: | ||
22067 | -ofile=libtool | ||
22068 | +ofile=${host_alias}-libtool | ||
22069 | can_build_shared=yes | ||
22070 | |||
22071 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
22072 | @@ -7886,7 +8347,7 @@ for cc_temp in $compiler""; do | ||
22073 | *) break;; | ||
22074 | esac | ||
22075 | done | ||
22076 | -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
22077 | +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
22078 | |||
22079 | |||
22080 | # Only perform the check for file, if the check method requires it | ||
22081 | @@ -8095,7 +8556,12 @@ if test -n "$compiler"; then | ||
22082 | lt_prog_compiler_no_builtin_flag= | ||
22083 | |||
22084 | if test "$GCC" = yes; then | ||
22085 | - lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
22086 | + case $cc_basename in | ||
22087 | + nvcc*) | ||
22088 | + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | ||
22089 | + *) | ||
22090 | + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | ||
22091 | + esac | ||
22092 | |||
22093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
22094 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
22095 | @@ -8115,15 +8581,15 @@ else | ||
22096 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
22097 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
22098 | -e 's:$: $lt_compiler_flag:'` | ||
22099 | - (eval echo "\"\$as_me:8113: $lt_compile\"" >&5) | ||
22100 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
22101 | (eval "$lt_compile" 2>conftest.err) | ||
22102 | ac_status=$? | ||
22103 | cat conftest.err >&5 | ||
22104 | - echo "$as_me:8117: \$? = $ac_status" >&5 | ||
22105 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22106 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
22107 | # The compiler can only warn and ignore the option if not recognized | ||
22108 | # So say no if there are warnings other than the usual output. | ||
22109 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
22110 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
22111 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
22112 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
22113 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
22114 | @@ -8152,8 +8618,6 @@ fi | ||
22115 | lt_prog_compiler_pic= | ||
22116 | lt_prog_compiler_static= | ||
22117 | |||
22118 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
22119 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
22120 | |||
22121 | if test "$GCC" = yes; then | ||
22122 | lt_prog_compiler_wl='-Wl,' | ||
22123 | @@ -8201,6 +8665,12 @@ $as_echo_n "checking for $compiler optio | ||
22124 | lt_prog_compiler_pic='-fno-common' | ||
22125 | ;; | ||
22126 | |||
22127 | + haiku*) | ||
22128 | + # PIC is the default for Haiku. | ||
22129 | + # The "-static" flag exists, but is broken. | ||
22130 | + lt_prog_compiler_static= | ||
22131 | + ;; | ||
22132 | + | ||
22133 | hpux*) | ||
22134 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
22135 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
22136 | @@ -8243,6 +8713,13 @@ $as_echo_n "checking for $compiler optio | ||
22137 | lt_prog_compiler_pic='-fPIC' | ||
22138 | ;; | ||
22139 | esac | ||
22140 | + | ||
22141 | + case $cc_basename in | ||
22142 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
22143 | + lt_prog_compiler_wl='-Xlinker ' | ||
22144 | + lt_prog_compiler_pic='-Xcompiler -fPIC' | ||
22145 | + ;; | ||
22146 | + esac | ||
22147 | else | ||
22148 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
22149 | case $host_os in | ||
22150 | @@ -8305,7 +8782,13 @@ $as_echo_n "checking for $compiler optio | ||
22151 | lt_prog_compiler_pic='--shared' | ||
22152 | lt_prog_compiler_static='--static' | ||
22153 | ;; | ||
22154 | - pgcc* | pgf77* | pgf90* | pgf95*) | ||
22155 | + nagfor*) | ||
22156 | + # NAG Fortran compiler | ||
22157 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
22158 | + lt_prog_compiler_pic='-PIC' | ||
22159 | + lt_prog_compiler_static='-Bstatic' | ||
22160 | + ;; | ||
22161 | + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
22162 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
22163 | # which looks to be a dead project) | ||
22164 | lt_prog_compiler_wl='-Wl,' | ||
22165 | @@ -8317,25 +8800,25 @@ $as_echo_n "checking for $compiler optio | ||
22166 | # All Alpha code is PIC. | ||
22167 | lt_prog_compiler_static='-non_shared' | ||
22168 | ;; | ||
22169 | - xl*) | ||
22170 | - # IBM XL C 8.0/Fortran 10.1 on PPC | ||
22171 | + xl* | bgxl* | bgf* | mpixl*) | ||
22172 | + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | ||
22173 | lt_prog_compiler_wl='-Wl,' | ||
22174 | lt_prog_compiler_pic='-qpic' | ||
22175 | lt_prog_compiler_static='-qstaticlink' | ||
22176 | ;; | ||
22177 | *) | ||
22178 | case `$CC -V 2>&1 | sed 5q` in | ||
22179 | - *Sun\ C*) | ||
22180 | - # Sun C 5.9 | ||
22181 | + *Sun\ F* | *Sun*Fortran*) | ||
22182 | + # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
22183 | lt_prog_compiler_pic='-KPIC' | ||
22184 | lt_prog_compiler_static='-Bstatic' | ||
22185 | - lt_prog_compiler_wl='-Wl,' | ||
22186 | + lt_prog_compiler_wl='' | ||
22187 | ;; | ||
22188 | - *Sun\ F*) | ||
22189 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
22190 | + *Sun\ C*) | ||
22191 | + # Sun C 5.9 | ||
22192 | lt_prog_compiler_pic='-KPIC' | ||
22193 | lt_prog_compiler_static='-Bstatic' | ||
22194 | - lt_prog_compiler_wl='' | ||
22195 | + lt_prog_compiler_wl='-Wl,' | ||
22196 | ;; | ||
22197 | esac | ||
22198 | ;; | ||
22199 | @@ -8367,7 +8850,7 @@ $as_echo_n "checking for $compiler optio | ||
22200 | lt_prog_compiler_pic='-KPIC' | ||
22201 | lt_prog_compiler_static='-Bstatic' | ||
22202 | case $cc_basename in | ||
22203 | - f77* | f90* | f95*) | ||
22204 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
22205 | lt_prog_compiler_wl='-Qoption ld ';; | ||
22206 | *) | ||
22207 | lt_prog_compiler_wl='-Wl,';; | ||
22208 | @@ -8424,13 +8907,17 @@ case $host_os in | ||
22209 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
22210 | ;; | ||
22211 | esac | ||
22212 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
22213 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
22214 | - | ||
22215 | - | ||
22216 | - | ||
22217 | - | ||
22218 | |||
22219 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
22220 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
22221 | +if test "${lt_cv_prog_compiler_pic+set}" = set; then : | ||
22222 | + $as_echo_n "(cached) " >&6 | ||
22223 | +else | ||
22224 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
22225 | +fi | ||
22226 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
22227 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
22228 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
22229 | |||
22230 | # | ||
22231 | # Check to make sure the PIC flag actually works. | ||
22232 | @@ -8454,15 +8941,15 @@ else | ||
22233 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
22234 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
22235 | -e 's:$: $lt_compiler_flag:'` | ||
22236 | - (eval echo "\"\$as_me:8452: $lt_compile\"" >&5) | ||
22237 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
22238 | (eval "$lt_compile" 2>conftest.err) | ||
22239 | ac_status=$? | ||
22240 | cat conftest.err >&5 | ||
22241 | - echo "$as_me:8456: \$? = $ac_status" >&5 | ||
22242 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22243 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
22244 | # The compiler can only warn and ignore the option if not recognized | ||
22245 | # So say no if there are warnings other than the usual output. | ||
22246 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
22247 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
22248 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
22249 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
22250 | lt_cv_prog_compiler_pic_works=yes | ||
22251 | @@ -8491,6 +8978,11 @@ fi | ||
22252 | |||
22253 | |||
22254 | |||
22255 | + | ||
22256 | + | ||
22257 | + | ||
22258 | + | ||
22259 | + | ||
22260 | # | ||
22261 | # Check to make sure the static flag actually works. | ||
22262 | # | ||
22263 | @@ -8510,7 +9002,7 @@ else | ||
22264 | if test -s conftest.err; then | ||
22265 | # Append any errors to the config.log. | ||
22266 | cat conftest.err 1>&5 | ||
22267 | - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
22268 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
22269 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
22270 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
22271 | lt_cv_prog_compiler_static_works=yes | ||
22272 | @@ -8559,16 +9051,16 @@ else | ||
22273 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
22274 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
22275 | -e 's:$: $lt_compiler_flag:'` | ||
22276 | - (eval echo "\"\$as_me:8557: $lt_compile\"" >&5) | ||
22277 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
22278 | (eval "$lt_compile" 2>out/conftest.err) | ||
22279 | ac_status=$? | ||
22280 | cat out/conftest.err >&5 | ||
22281 | - echo "$as_me:8561: \$? = $ac_status" >&5 | ||
22282 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22283 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
22284 | then | ||
22285 | # The compiler can only warn and ignore the option if not recognized | ||
22286 | # So say no if there are warnings | ||
22287 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
22288 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
22289 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
22290 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
22291 | lt_cv_prog_compiler_c_o=yes | ||
22292 | @@ -8614,16 +9106,16 @@ else | ||
22293 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
22294 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
22295 | -e 's:$: $lt_compiler_flag:'` | ||
22296 | - (eval echo "\"\$as_me:8612: $lt_compile\"" >&5) | ||
22297 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
22298 | (eval "$lt_compile" 2>out/conftest.err) | ||
22299 | ac_status=$? | ||
22300 | cat out/conftest.err >&5 | ||
22301 | - echo "$as_me:8616: \$? = $ac_status" >&5 | ||
22302 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22303 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
22304 | then | ||
22305 | # The compiler can only warn and ignore the option if not recognized | ||
22306 | # So say no if there are warnings | ||
22307 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
22308 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
22309 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
22310 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
22311 | lt_cv_prog_compiler_c_o=yes | ||
22312 | @@ -8736,7 +9228,33 @@ $as_echo_n "checking whether the $compil | ||
22313 | esac | ||
22314 | |||
22315 | ld_shlibs=yes | ||
22316 | + | ||
22317 | + # On some targets, GNU ld is compatible enough with the native linker | ||
22318 | + # that we're better off using the native interface for both. | ||
22319 | + lt_use_gnu_ld_interface=no | ||
22320 | if test "$with_gnu_ld" = yes; then | ||
22321 | + case $host_os in | ||
22322 | + aix*) | ||
22323 | + # The AIX port of GNU ld has always aspired to compatibility | ||
22324 | + # with the native linker. However, as the warning in the GNU ld | ||
22325 | + # block says, versions before 2.19.5* couldn't really create working | ||
22326 | + # shared libraries, regardless of the interface used. | ||
22327 | + case `$LD -v 2>&1` in | ||
22328 | + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | ||
22329 | + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | ||
22330 | + *\ \(GNU\ Binutils\)\ [3-9]*) ;; | ||
22331 | + *) | ||
22332 | + lt_use_gnu_ld_interface=yes | ||
22333 | + ;; | ||
22334 | + esac | ||
22335 | + ;; | ||
22336 | + *) | ||
22337 | + lt_use_gnu_ld_interface=yes | ||
22338 | + ;; | ||
22339 | + esac | ||
22340 | + fi | ||
22341 | + | ||
22342 | + if test "$lt_use_gnu_ld_interface" = yes; then | ||
22343 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
22344 | wlarc='${wl}' | ||
22345 | |||
22346 | @@ -8754,6 +9272,7 @@ $as_echo_n "checking whether the $compil | ||
22347 | fi | ||
22348 | supports_anon_versioning=no | ||
22349 | case `$LD -v 2>&1` in | ||
22350 | + *GNU\ gold*) supports_anon_versioning=yes ;; | ||
22351 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
22352 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
22353 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
22354 | @@ -8769,11 +9288,12 @@ $as_echo_n "checking whether the $compil | ||
22355 | ld_shlibs=no | ||
22356 | cat <<_LT_EOF 1>&2 | ||
22357 | |||
22358 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
22359 | +*** Warning: the GNU linker, at least up to release 2.19, is reported | ||
22360 | *** to be unable to reliably create shared libraries on AIX. | ||
22361 | *** Therefore, libtool is disabling shared libraries support. If you | ||
22362 | -*** really care for shared libraries, you may want to modify your PATH | ||
22363 | -*** so that a non-GNU linker is found, and then restart. | ||
22364 | +*** really care for shared libraries, you may want to install binutils | ||
22365 | +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | ||
22366 | +*** You will then need to restart the configuration process. | ||
22367 | |||
22368 | _LT_EOF | ||
22369 | fi | ||
22370 | @@ -8809,10 +9329,12 @@ _LT_EOF | ||
22371 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
22372 | # as there is no search path for DLLs. | ||
22373 | hardcode_libdir_flag_spec='-L$libdir' | ||
22374 | + export_dynamic_flag_spec='${wl}--export-all-symbols' | ||
22375 | allow_undefined_flag=unsupported | ||
22376 | always_export_symbols=no | ||
22377 | enable_shared_with_static_runtimes=yes | ||
22378 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
22379 | + 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' | ||
22380 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
22381 | |||
22382 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
22383 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
22384 | @@ -8830,6 +9352,11 @@ _LT_EOF | ||
22385 | fi | ||
22386 | ;; | ||
22387 | |||
22388 | + haiku*) | ||
22389 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22390 | + link_all_deplibs=yes | ||
22391 | + ;; | ||
22392 | + | ||
22393 | interix[3-9]*) | ||
22394 | hardcode_direct=no | ||
22395 | hardcode_shlibpath_var=no | ||
22396 | @@ -8855,15 +9382,16 @@ _LT_EOF | ||
22397 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
22398 | && test "$tmp_diet" = no | ||
22399 | then | ||
22400 | - tmp_addflag= | ||
22401 | + tmp_addflag=' $pic_flag' | ||
22402 | tmp_sharedflag='-shared' | ||
22403 | case $cc_basename,$host_cpu in | ||
22404 | pgcc*) # Portland Group C compiler | ||
22405 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
22406 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
22407 | tmp_addflag=' $pic_flag' | ||
22408 | ;; | ||
22409 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
22410 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
22411 | + pgf77* | pgf90* | pgf95* | pgfortran*) | ||
22412 | + # Portland Group f77 and f90 compilers | ||
22413 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
22414 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
22415 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
22416 | tmp_addflag=' -i_dynamic' ;; | ||
22417 | @@ -8874,13 +9402,17 @@ _LT_EOF | ||
22418 | lf95*) # Lahey Fortran 8.1 | ||
22419 | whole_archive_flag_spec= | ||
22420 | tmp_sharedflag='--shared' ;; | ||
22421 | - xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
22422 | + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
22423 | tmp_sharedflag='-qmkshrobj' | ||
22424 | tmp_addflag= ;; | ||
22425 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
22426 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
22427 | + compiler_needs_object=yes | ||
22428 | + ;; | ||
22429 | esac | ||
22430 | case `$CC -V 2>&1 | sed 5q` in | ||
22431 | *Sun\ C*) # Sun C 5.9 | ||
22432 | - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
22433 | + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
22434 | compiler_needs_object=yes | ||
22435 | tmp_sharedflag='-G' ;; | ||
22436 | *Sun\ F*) # Sun Fortran 8.3 | ||
22437 | @@ -8896,17 +9428,17 @@ _LT_EOF | ||
22438 | fi | ||
22439 | |||
22440 | case $cc_basename in | ||
22441 | - xlf*) | ||
22442 | + xlf* | bgf* | bgxlf* | mpixlf*) | ||
22443 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
22444 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
22445 | hardcode_libdir_flag_spec= | ||
22446 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
22447 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
22448 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
22449 | if test "x$supports_anon_versioning" = xyes; then | ||
22450 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
22451 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
22452 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
22453 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
22454 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
22455 | fi | ||
22456 | ;; | ||
22457 | esac | ||
22458 | @@ -8920,8 +9452,8 @@ _LT_EOF | ||
22459 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
22460 | wlarc= | ||
22461 | else | ||
22462 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22463 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22464 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22465 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22466 | fi | ||
22467 | ;; | ||
22468 | |||
22469 | @@ -8939,8 +9471,8 @@ _LT_EOF | ||
22470 | |||
22471 | _LT_EOF | ||
22472 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
22473 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22474 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22475 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22476 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22477 | else | ||
22478 | ld_shlibs=no | ||
22479 | fi | ||
22480 | @@ -8986,8 +9518,8 @@ _LT_EOF | ||
22481 | |||
22482 | *) | ||
22483 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
22484 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22485 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22486 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
22487 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
22488 | else | ||
22489 | ld_shlibs=no | ||
22490 | fi | ||
22491 | @@ -9027,8 +9559,10 @@ _LT_EOF | ||
22492 | else | ||
22493 | # If we're using GNU nm, then we don't want the "-C" option. | ||
22494 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
22495 | + # Also, AIX nm treats weak defined symbols like other global | ||
22496 | + # defined symbols, whereas GNU nm marks them as "W". | ||
22497 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
22498 | - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
22499 | + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
22500 | else | ||
22501 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
22502 | fi | ||
22503 | @@ -9115,7 +9649,13 @@ _LT_EOF | ||
22504 | allow_undefined_flag='-berok' | ||
22505 | # Determine the default libpath from the value encoded in an | ||
22506 | # empty executable. | ||
22507 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22508 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
22509 | + aix_libpath=$lt_cv_aix_libpath | ||
22510 | +else | ||
22511 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
22512 | + $as_echo_n "(cached) " >&6 | ||
22513 | +else | ||
22514 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22515 | /* end confdefs.h. */ | ||
22516 | |||
22517 | int | ||
22518 | @@ -9128,25 +9668,32 @@ main () | ||
22519 | _ACEOF | ||
22520 | if ac_fn_c_try_link "$LINENO"; then : | ||
22521 | |||
22522 | -lt_aix_libpath_sed=' | ||
22523 | - /Import File Strings/,/^$/ { | ||
22524 | - /^0/ { | ||
22525 | - s/^0 *\(.*\)$/\1/ | ||
22526 | - p | ||
22527 | - } | ||
22528 | - }' | ||
22529 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22530 | -# Check for a 64-bit object if we didn't find anything. | ||
22531 | -if test -z "$aix_libpath"; then | ||
22532 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22533 | -fi | ||
22534 | + lt_aix_libpath_sed=' | ||
22535 | + /Import File Strings/,/^$/ { | ||
22536 | + /^0/ { | ||
22537 | + s/^0 *\([^ ]*\) *$/\1/ | ||
22538 | + p | ||
22539 | + } | ||
22540 | + }' | ||
22541 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22542 | + # Check for a 64-bit object if we didn't find anything. | ||
22543 | + if test -z "$lt_cv_aix_libpath_"; then | ||
22544 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22545 | + fi | ||
22546 | fi | ||
22547 | rm -f core conftest.err conftest.$ac_objext \ | ||
22548 | conftest$ac_exeext conftest.$ac_ext | ||
22549 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22550 | + if test -z "$lt_cv_aix_libpath_"; then | ||
22551 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
22552 | + fi | ||
22553 | + | ||
22554 | +fi | ||
22555 | + | ||
22556 | + aix_libpath=$lt_cv_aix_libpath_ | ||
22557 | +fi | ||
22558 | |||
22559 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
22560 | - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
22561 | + 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" | ||
22562 | else | ||
22563 | if test "$host_cpu" = ia64; then | ||
22564 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
22565 | @@ -9155,7 +9702,13 @@ if test -z "$aix_libpath"; then aix_libp | ||
22566 | else | ||
22567 | # Determine the default libpath from the value encoded in an | ||
22568 | # empty executable. | ||
22569 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22570 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
22571 | + aix_libpath=$lt_cv_aix_libpath | ||
22572 | +else | ||
22573 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
22574 | + $as_echo_n "(cached) " >&6 | ||
22575 | +else | ||
22576 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22577 | /* end confdefs.h. */ | ||
22578 | |||
22579 | int | ||
22580 | @@ -9168,30 +9721,42 @@ main () | ||
22581 | _ACEOF | ||
22582 | if ac_fn_c_try_link "$LINENO"; then : | ||
22583 | |||
22584 | -lt_aix_libpath_sed=' | ||
22585 | - /Import File Strings/,/^$/ { | ||
22586 | - /^0/ { | ||
22587 | - s/^0 *\(.*\)$/\1/ | ||
22588 | - p | ||
22589 | - } | ||
22590 | - }' | ||
22591 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22592 | -# Check for a 64-bit object if we didn't find anything. | ||
22593 | -if test -z "$aix_libpath"; then | ||
22594 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22595 | -fi | ||
22596 | + lt_aix_libpath_sed=' | ||
22597 | + /Import File Strings/,/^$/ { | ||
22598 | + /^0/ { | ||
22599 | + s/^0 *\([^ ]*\) *$/\1/ | ||
22600 | + p | ||
22601 | + } | ||
22602 | + }' | ||
22603 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22604 | + # Check for a 64-bit object if we didn't find anything. | ||
22605 | + if test -z "$lt_cv_aix_libpath_"; then | ||
22606 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
22607 | + fi | ||
22608 | fi | ||
22609 | rm -f core conftest.err conftest.$ac_objext \ | ||
22610 | conftest$ac_exeext conftest.$ac_ext | ||
22611 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
22612 | + if test -z "$lt_cv_aix_libpath_"; then | ||
22613 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
22614 | + fi | ||
22615 | + | ||
22616 | +fi | ||
22617 | + | ||
22618 | + aix_libpath=$lt_cv_aix_libpath_ | ||
22619 | +fi | ||
22620 | |||
22621 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
22622 | # Warning - without using the other run time loading flags, | ||
22623 | # -berok will link without error, but may produce a broken library. | ||
22624 | no_undefined_flag=' ${wl}-bernotok' | ||
22625 | allow_undefined_flag=' ${wl}-berok' | ||
22626 | - # Exported symbols can be pulled into shared objects from archives | ||
22627 | - whole_archive_flag_spec='$convenience' | ||
22628 | + if test "$with_gnu_ld" = yes; then | ||
22629 | + # We only use this code for GNU lds that support --whole-archive. | ||
22630 | + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
22631 | + else | ||
22632 | + # Exported symbols can be pulled into shared objects from archives | ||
22633 | + whole_archive_flag_spec='$convenience' | ||
22634 | + fi | ||
22635 | archive_cmds_need_lc=yes | ||
22636 | # This is similar to how AIX traditionally builds its shared libraries. | ||
22637 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
22638 | @@ -9223,20 +9788,63 @@ if test -z "$aix_libpath"; then aix_libp | ||
22639 | # Microsoft Visual C++. | ||
22640 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
22641 | # no search path for DLLs. | ||
22642 | - hardcode_libdir_flag_spec=' ' | ||
22643 | - allow_undefined_flag=unsupported | ||
22644 | - # Tell ltmain to make .lib files, not .a files. | ||
22645 | - libext=lib | ||
22646 | - # Tell ltmain to make .dll files, not .so files. | ||
22647 | - shrext_cmds=".dll" | ||
22648 | - # FIXME: Setting linknames here is a bad hack. | ||
22649 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
22650 | - # The linker will automatically build a .lib file if we build a DLL. | ||
22651 | - old_archive_from_new_cmds='true' | ||
22652 | - # FIXME: Should let the user specify the lib program. | ||
22653 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
22654 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
22655 | - enable_shared_with_static_runtimes=yes | ||
22656 | + case $cc_basename in | ||
22657 | + cl*) | ||
22658 | + # Native MSVC | ||
22659 | + hardcode_libdir_flag_spec=' ' | ||
22660 | + allow_undefined_flag=unsupported | ||
22661 | + always_export_symbols=yes | ||
22662 | + file_list_spec='@' | ||
22663 | + # Tell ltmain to make .lib files, not .a files. | ||
22664 | + libext=lib | ||
22665 | + # Tell ltmain to make .dll files, not .so files. | ||
22666 | + shrext_cmds=".dll" | ||
22667 | + # FIXME: Setting linknames here is a bad hack. | ||
22668 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
22669 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
22670 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
22671 | + else | ||
22672 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
22673 | + fi~ | ||
22674 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
22675 | + linknames=' | ||
22676 | + # The linker will not automatically build a static lib if we build a DLL. | ||
22677 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
22678 | + enable_shared_with_static_runtimes=yes | ||
22679 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
22680 | + # Don't use ranlib | ||
22681 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
22682 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
22683 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
22684 | + case $lt_outputfile in | ||
22685 | + *.exe|*.EXE) ;; | ||
22686 | + *) | ||
22687 | + lt_outputfile="$lt_outputfile.exe" | ||
22688 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
22689 | + ;; | ||
22690 | + esac~ | ||
22691 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
22692 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
22693 | + $RM "$lt_outputfile.manifest"; | ||
22694 | + fi' | ||
22695 | + ;; | ||
22696 | + *) | ||
22697 | + # Assume MSVC wrapper | ||
22698 | + hardcode_libdir_flag_spec=' ' | ||
22699 | + allow_undefined_flag=unsupported | ||
22700 | + # Tell ltmain to make .lib files, not .a files. | ||
22701 | + libext=lib | ||
22702 | + # Tell ltmain to make .dll files, not .so files. | ||
22703 | + shrext_cmds=".dll" | ||
22704 | + # FIXME: Setting linknames here is a bad hack. | ||
22705 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
22706 | + # The linker will automatically build a .lib file if we build a DLL. | ||
22707 | + old_archive_from_new_cmds='true' | ||
22708 | + # FIXME: Should let the user specify the lib program. | ||
22709 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
22710 | + enable_shared_with_static_runtimes=yes | ||
22711 | + ;; | ||
22712 | + esac | ||
22713 | ;; | ||
22714 | |||
22715 | darwin* | rhapsody*) | ||
22716 | @@ -9246,7 +9854,11 @@ if test -z "$aix_libpath"; then aix_libp | ||
22717 | hardcode_direct=no | ||
22718 | hardcode_automatic=yes | ||
22719 | hardcode_shlibpath_var=unsupported | ||
22720 | - whole_archive_flag_spec='' | ||
22721 | + if test "$lt_cv_ld_force_load" = "yes"; then | ||
22722 | + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | ||
22723 | + else | ||
22724 | + whole_archive_flag_spec='' | ||
22725 | + fi | ||
22726 | link_all_deplibs=yes | ||
22727 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
22728 | case $cc_basename in | ||
22729 | @@ -9254,7 +9866,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
22730 | *) _lt_dar_can_shared=$GCC ;; | ||
22731 | esac | ||
22732 | if test "$_lt_dar_can_shared" = "yes"; then | ||
22733 | - output_verbose_link_cmd=echo | ||
22734 | + output_verbose_link_cmd=func_echo_all | ||
22735 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
22736 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
22737 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | ||
22738 | @@ -9297,7 +9909,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
22739 | |||
22740 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
22741 | freebsd* | dragonfly*) | ||
22742 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
22743 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
22744 | hardcode_libdir_flag_spec='-R$libdir' | ||
22745 | hardcode_direct=yes | ||
22746 | hardcode_shlibpath_var=no | ||
22747 | @@ -9305,7 +9917,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
22748 | |||
22749 | hpux9*) | ||
22750 | if test "$GCC" = yes; then | ||
22751 | - 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' | ||
22752 | + 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' | ||
22753 | else | ||
22754 | 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' | ||
22755 | fi | ||
22756 | @@ -9320,8 +9932,8 @@ if test -z "$aix_libpath"; then aix_libp | ||
22757 | ;; | ||
22758 | |||
22759 | hpux10*) | ||
22760 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
22761 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22762 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
22763 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22764 | else | ||
22765 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
22766 | fi | ||
22767 | @@ -9339,16 +9951,16 @@ if test -z "$aix_libpath"; then aix_libp | ||
22768 | ;; | ||
22769 | |||
22770 | hpux11*) | ||
22771 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
22772 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
22773 | case $host_cpu in | ||
22774 | hppa*64*) | ||
22775 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
22776 | ;; | ||
22777 | ia64*) | ||
22778 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
22779 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
22780 | ;; | ||
22781 | *) | ||
22782 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22783 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22784 | ;; | ||
22785 | esac | ||
22786 | else | ||
22787 | @@ -9360,7 +9972,46 @@ if test -z "$aix_libpath"; then aix_libp | ||
22788 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
22789 | ;; | ||
22790 | *) | ||
22791 | - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22792 | + | ||
22793 | + # Older versions of the 11.00 compiler do not understand -b yet | ||
22794 | + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | ||
22795 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | ||
22796 | +$as_echo_n "checking if $CC understands -b... " >&6; } | ||
22797 | +if test "${lt_cv_prog_compiler__b+set}" = set; then : | ||
22798 | + $as_echo_n "(cached) " >&6 | ||
22799 | +else | ||
22800 | + lt_cv_prog_compiler__b=no | ||
22801 | + save_LDFLAGS="$LDFLAGS" | ||
22802 | + LDFLAGS="$LDFLAGS -b" | ||
22803 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
22804 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
22805 | + # The linker can only warn and ignore the option if not recognized | ||
22806 | + # So say no if there are warnings | ||
22807 | + if test -s conftest.err; then | ||
22808 | + # Append any errors to the config.log. | ||
22809 | + cat conftest.err 1>&5 | ||
22810 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
22811 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
22812 | + if diff conftest.exp conftest.er2 >/dev/null; then | ||
22813 | + lt_cv_prog_compiler__b=yes | ||
22814 | + fi | ||
22815 | + else | ||
22816 | + lt_cv_prog_compiler__b=yes | ||
22817 | + fi | ||
22818 | + fi | ||
22819 | + $RM -r conftest* | ||
22820 | + LDFLAGS="$save_LDFLAGS" | ||
22821 | + | ||
22822 | +fi | ||
22823 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | ||
22824 | +$as_echo "$lt_cv_prog_compiler__b" >&6; } | ||
22825 | + | ||
22826 | +if test x"$lt_cv_prog_compiler__b" = xyes; then | ||
22827 | + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
22828 | +else | ||
22829 | + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
22830 | +fi | ||
22831 | + | ||
22832 | ;; | ||
22833 | esac | ||
22834 | fi | ||
22835 | @@ -9388,26 +10039,39 @@ if test -z "$aix_libpath"; then aix_libp | ||
22836 | |||
22837 | irix5* | irix6* | nonstopux*) | ||
22838 | if test "$GCC" = yes; then | ||
22839 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
22840 | + 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' | ||
22841 | # Try to use the -exported_symbol ld option, if it does not | ||
22842 | # work, assume that -exports_file does not work either and | ||
22843 | # implicitly export all symbols. | ||
22844 | - save_LDFLAGS="$LDFLAGS" | ||
22845 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
22846 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22847 | + # This should be the same for all languages, so no per-tag cache variable. | ||
22848 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
22849 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
22850 | +if test "${lt_cv_irix_exported_symbol+set}" = set; then : | ||
22851 | + $as_echo_n "(cached) " >&6 | ||
22852 | +else | ||
22853 | + save_LDFLAGS="$LDFLAGS" | ||
22854 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
22855 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22856 | /* end confdefs.h. */ | ||
22857 | -int foo(void) {} | ||
22858 | +int foo (void) { return 0; } | ||
22859 | _ACEOF | ||
22860 | if ac_fn_c_try_link "$LINENO"; then : | ||
22861 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
22862 | - | ||
22863 | + lt_cv_irix_exported_symbol=yes | ||
22864 | +else | ||
22865 | + lt_cv_irix_exported_symbol=no | ||
22866 | fi | ||
22867 | rm -f core conftest.err conftest.$ac_objext \ | ||
22868 | conftest$ac_exeext conftest.$ac_ext | ||
22869 | - LDFLAGS="$save_LDFLAGS" | ||
22870 | + LDFLAGS="$save_LDFLAGS" | ||
22871 | +fi | ||
22872 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
22873 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
22874 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
22875 | + 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' | ||
22876 | + fi | ||
22877 | else | ||
22878 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
22879 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
22880 | + 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' | ||
22881 | + 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' | ||
22882 | fi | ||
22883 | archive_cmds_need_lc='no' | ||
22884 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
22885 | @@ -9469,17 +10133,17 @@ rm -f core conftest.err conftest.$ac_obj | ||
22886 | hardcode_libdir_flag_spec='-L$libdir' | ||
22887 | hardcode_minus_L=yes | ||
22888 | allow_undefined_flag=unsupported | ||
22889 | - archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
22890 | + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
22891 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
22892 | ;; | ||
22893 | |||
22894 | osf3*) | ||
22895 | if test "$GCC" = yes; then | ||
22896 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
22897 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
22898 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
22899 | else | ||
22900 | allow_undefined_flag=' -expect_unresolved \*' | ||
22901 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
22902 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
22903 | fi | ||
22904 | archive_cmds_need_lc='no' | ||
22905 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
22906 | @@ -9489,13 +10153,13 @@ rm -f core conftest.err conftest.$ac_obj | ||
22907 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
22908 | if test "$GCC" = yes; then | ||
22909 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
22910 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
22911 | + 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' | ||
22912 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
22913 | else | ||
22914 | allow_undefined_flag=' -expect_unresolved \*' | ||
22915 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
22916 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
22917 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | ||
22918 | - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
22919 | + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
22920 | |||
22921 | # Both c and cxx compiler support -rpath directly | ||
22922 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
22923 | @@ -9508,9 +10172,9 @@ rm -f core conftest.err conftest.$ac_obj | ||
22924 | no_undefined_flag=' -z defs' | ||
22925 | if test "$GCC" = yes; then | ||
22926 | wlarc='${wl}' | ||
22927 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
22928 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
22929 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
22930 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
22931 | + $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' | ||
22932 | else | ||
22933 | case `$CC -V 2>&1` in | ||
22934 | *"Compilers 5.0"*) | ||
22935 | @@ -9912,16 +10576,23 @@ if test "$GCC" = yes; then | ||
22936 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
22937 | *) lt_awk_arg="/^libraries:/" ;; | ||
22938 | esac | ||
22939 | - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
22940 | - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
22941 | + case $host_os in | ||
22942 | + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | ||
22943 | + *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
22944 | + esac | ||
22945 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
22946 | + case $lt_search_path_spec in | ||
22947 | + *\;*) | ||
22948 | # if the path contains ";" then we assume it to be the separator | ||
22949 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
22950 | # assumed that no part of a normal pathname contains ";" but that should | ||
22951 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
22952 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
22953 | - else | ||
22954 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
22955 | - fi | ||
22956 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
22957 | + ;; | ||
22958 | + *) | ||
22959 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
22960 | + ;; | ||
22961 | + esac | ||
22962 | # Ok, now we have the path, separated by spaces, we can step through it | ||
22963 | # and add multilib dir if necessary. | ||
22964 | lt_tmp_lt_search_path_spec= | ||
22965 | @@ -9934,7 +10605,7 @@ if test "$GCC" = yes; then | ||
22966 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
22967 | fi | ||
22968 | done | ||
22969 | - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
22970 | + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
22971 | BEGIN {RS=" "; FS="/|\n";} { | ||
22972 | lt_foo=""; | ||
22973 | lt_count=0; | ||
22974 | @@ -9954,7 +10625,13 @@ BEGIN {RS=" "; FS="/|\n";} { | ||
22975 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
22976 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
22977 | }'` | ||
22978 | - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
22979 | + # AWK program above erroneously prepends '/' to C:/dos/paths | ||
22980 | + # for these hosts. | ||
22981 | + case $host_os in | ||
22982 | + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
22983 | + $SED 's,/\([A-Za-z]:\),\1,g'` ;; | ||
22984 | + esac | ||
22985 | + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
22986 | else | ||
22987 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
22988 | fi | ||
22989 | @@ -10042,7 +10719,7 @@ amigaos*) | ||
22990 | m68k) | ||
22991 | library_names_spec='$libname.ixlibrary $libname.a' | ||
22992 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
22993 | - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
22994 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
22995 | ;; | ||
22996 | esac | ||
22997 | ;; | ||
22998 | @@ -10073,8 +10750,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
22999 | need_version=no | ||
23000 | need_lib_prefix=no | ||
23001 | |||
23002 | - case $GCC,$host_os in | ||
23003 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
23004 | + case $GCC,$cc_basename in | ||
23005 | + yes,*) | ||
23006 | + # gcc | ||
23007 | library_names_spec='$libname.dll.a' | ||
23008 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
23009 | postinstall_cmds='base_file=`basename \${file}`~ | ||
23010 | @@ -10095,36 +10773,83 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
23011 | cygwin*) | ||
23012 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
23013 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
23014 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
23015 | + | ||
23016 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | ||
23017 | ;; | ||
23018 | mingw* | cegcc*) | ||
23019 | # MinGW DLLs use traditional 'lib' prefix | ||
23020 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
23021 | - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
23022 | - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
23023 | - # It is most probably a Windows format PATH printed by | ||
23024 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
23025 | - # path with ; separators, and with drive letters. We can handle the | ||
23026 | - # drive letters (cygwin fileutils understands them), so leave them, | ||
23027 | - # especially as we might pass files found there to a mingw objdump, | ||
23028 | - # which wouldn't understand a cygwinified path. Ahh. | ||
23029 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
23030 | - else | ||
23031 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
23032 | - fi | ||
23033 | ;; | ||
23034 | pw32*) | ||
23035 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
23036 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
23037 | ;; | ||
23038 | esac | ||
23039 | + dynamic_linker='Win32 ld.exe' | ||
23040 | + ;; | ||
23041 | + | ||
23042 | + *,cl*) | ||
23043 | + # Native MSVC | ||
23044 | + libname_spec='$name' | ||
23045 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
23046 | + library_names_spec='${libname}.dll.lib' | ||
23047 | + | ||
23048 | + case $build_os in | ||
23049 | + mingw*) | ||
23050 | + sys_lib_search_path_spec= | ||
23051 | + lt_save_ifs=$IFS | ||
23052 | + IFS=';' | ||
23053 | + for lt_path in $LIB | ||
23054 | + do | ||
23055 | + IFS=$lt_save_ifs | ||
23056 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
23057 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
23058 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
23059 | + done | ||
23060 | + IFS=$lt_save_ifs | ||
23061 | + # Convert to MSYS style. | ||
23062 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
23063 | + ;; | ||
23064 | + cygwin*) | ||
23065 | + # Convert to unix form, then to dos form, then back to unix form | ||
23066 | + # but this time dos style (no spaces!) so that the unix form looks | ||
23067 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
23068 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
23069 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
23070 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
23071 | + ;; | ||
23072 | + *) | ||
23073 | + sys_lib_search_path_spec="$LIB" | ||
23074 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
23075 | + # It is most probably a Windows format PATH. | ||
23076 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
23077 | + else | ||
23078 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
23079 | + fi | ||
23080 | + # FIXME: find the short name or the path components, as spaces are | ||
23081 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
23082 | + ;; | ||
23083 | + esac | ||
23084 | + | ||
23085 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
23086 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
23087 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
23088 | + dldir=$destdir/`dirname \$dlpath`~ | ||
23089 | + test -d \$dldir || mkdir -p \$dldir~ | ||
23090 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
23091 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
23092 | + dlpath=$dir/\$dldll~ | ||
23093 | + $RM \$dlpath' | ||
23094 | + shlibpath_overrides_runpath=yes | ||
23095 | + dynamic_linker='Win32 link.exe' | ||
23096 | ;; | ||
23097 | |||
23098 | *) | ||
23099 | + # Assume MSVC wrapper | ||
23100 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
23101 | + dynamic_linker='Win32 ld.exe' | ||
23102 | ;; | ||
23103 | esac | ||
23104 | - dynamic_linker='Win32 ld.exe' | ||
23105 | # FIXME: first we should search . and the directory the executable is in | ||
23106 | shlibpath_var=PATH | ||
23107 | ;; | ||
23108 | @@ -10211,6 +10936,19 @@ gnu*) | ||
23109 | hardcode_into_libs=yes | ||
23110 | ;; | ||
23111 | |||
23112 | +haiku*) | ||
23113 | + version_type=linux | ||
23114 | + need_lib_prefix=no | ||
23115 | + need_version=no | ||
23116 | + dynamic_linker="$host_os runtime_loader" | ||
23117 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
23118 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
23119 | + shlibpath_var=LIBRARY_PATH | ||
23120 | + shlibpath_overrides_runpath=yes | ||
23121 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
23122 | + hardcode_into_libs=yes | ||
23123 | + ;; | ||
23124 | + | ||
23125 | hpux9* | hpux10* | hpux11*) | ||
23126 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
23127 | # link against other versions. | ||
23128 | @@ -10253,8 +10991,10 @@ hpux9* | hpux10* | hpux11*) | ||
23129 | soname_spec='${libname}${release}${shared_ext}$major' | ||
23130 | ;; | ||
23131 | esac | ||
23132 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
23133 | + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
23134 | postinstall_cmds='chmod 555 $lib' | ||
23135 | + # or fails outright, so override atomically: | ||
23136 | + install_override_mode=555 | ||
23137 | ;; | ||
23138 | |||
23139 | interix[3-9]*) | ||
23140 | @@ -10363,7 +11103,7 @@ fi | ||
23141 | |||
23142 | # Append ld.so.conf contents to the search path | ||
23143 | if test -f /etc/ld.so.conf; then | ||
23144 | - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
23145 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | ||
23146 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
23147 | fi | ||
23148 | |||
23149 | @@ -10666,6 +11406,11 @@ fi | ||
23150 | |||
23151 | |||
23152 | |||
23153 | + | ||
23154 | + | ||
23155 | + | ||
23156 | + | ||
23157 | + | ||
23158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
23159 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
23160 | hardcode_action= | ||
23161 | @@ -10996,7 +11741,7 @@ else | ||
23162 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
23163 | lt_status=$lt_dlunknown | ||
23164 | cat > conftest.$ac_ext <<_LT_EOF | ||
23165 | -#line 10994 "configure" | ||
23166 | +#line $LINENO "configure" | ||
23167 | #include "confdefs.h" | ||
23168 | |||
23169 | #if HAVE_DLFCN_H | ||
23170 | @@ -11037,7 +11782,13 @@ else | ||
23171 | # endif | ||
23172 | #endif | ||
23173 | |||
23174 | -void fnord() { int i=42;} | ||
23175 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
23176 | + correspondingly for the symbols needed. */ | ||
23177 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
23178 | +int fnord () __attribute__((visibility("default"))); | ||
23179 | +#endif | ||
23180 | + | ||
23181 | +int fnord () { return 42; } | ||
23182 | int main () | ||
23183 | { | ||
23184 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
23185 | @@ -11046,7 +11797,11 @@ int main () | ||
23186 | if (self) | ||
23187 | { | ||
23188 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
23189 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
23190 | + else | ||
23191 | + { | ||
23192 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
23193 | + else puts (dlerror ()); | ||
23194 | + } | ||
23195 | /* dlclose (self); */ | ||
23196 | } | ||
23197 | else | ||
23198 | @@ -11092,7 +11847,7 @@ else | ||
23199 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
23200 | lt_status=$lt_dlunknown | ||
23201 | cat > conftest.$ac_ext <<_LT_EOF | ||
23202 | -#line 11090 "configure" | ||
23203 | +#line $LINENO "configure" | ||
23204 | #include "confdefs.h" | ||
23205 | |||
23206 | #if HAVE_DLFCN_H | ||
23207 | @@ -11133,7 +11888,13 @@ else | ||
23208 | # endif | ||
23209 | #endif | ||
23210 | |||
23211 | -void fnord() { int i=42;} | ||
23212 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
23213 | + correspondingly for the symbols needed. */ | ||
23214 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
23215 | +int fnord () __attribute__((visibility("default"))); | ||
23216 | +#endif | ||
23217 | + | ||
23218 | +int fnord () { return 42; } | ||
23219 | int main () | ||
23220 | { | ||
23221 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
23222 | @@ -11142,7 +11903,11 @@ int main () | ||
23223 | if (self) | ||
23224 | { | ||
23225 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
23226 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
23227 | + else | ||
23228 | + { | ||
23229 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
23230 | + else puts (dlerror ()); | ||
23231 | + } | ||
23232 | /* dlclose (self); */ | ||
23233 | } | ||
23234 | else | ||
23235 | @@ -12631,131 +13396,153 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac | ||
23236 | sed_quote_subst='$sed_quote_subst' | ||
23237 | double_quote_subst='$double_quote_subst' | ||
23238 | delay_variable_subst='$delay_variable_subst' | ||
23239 | -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
23240 | -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
23241 | -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
23242 | -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
23243 | -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
23244 | -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
23245 | -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
23246 | -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
23247 | -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
23248 | -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
23249 | -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
23250 | -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
23251 | -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
23252 | -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
23253 | -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
23254 | -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
23255 | -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
23256 | -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
23257 | -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
23258 | -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
23259 | -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
23260 | -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
23261 | -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
23262 | -lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
23263 | -lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
23264 | -lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
23265 | -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
23266 | -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23267 | -OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
23268 | -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
23269 | -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
23270 | -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
23271 | -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
23272 | -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
23273 | -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
23274 | -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23275 | -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23276 | -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23277 | -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
23278 | -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
23279 | -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
23280 | -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
23281 | -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
23282 | -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
23283 | -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | ||
23284 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
23285 | -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
23286 | -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
23287 | -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
23288 | -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
23289 | -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
23290 | -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
23291 | -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
23292 | -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
23293 | -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
23294 | -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
23295 | -DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
23296 | -NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
23297 | -LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
23298 | -OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
23299 | -OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
23300 | -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
23301 | -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23302 | -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23303 | -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
23304 | -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
23305 | -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
23306 | -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
23307 | -compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
23308 | -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23309 | -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23310 | -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23311 | -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23312 | -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23313 | -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23314 | -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
23315 | -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
23316 | -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
23317 | -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
23318 | -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
23319 | -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
23320 | -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
23321 | -hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
23322 | -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
23323 | -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
23324 | -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
23325 | -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
23326 | -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
23327 | -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
23328 | -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
23329 | -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23330 | -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
23331 | -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
23332 | -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23333 | -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
23334 | -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
23335 | -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
23336 | -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
23337 | -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
23338 | -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
23339 | -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
23340 | -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
23341 | -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
23342 | -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
23343 | -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
23344 | -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23345 | -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23346 | -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
23347 | -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
23348 | -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
23349 | -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
23350 | -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
23351 | -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
23352 | -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
23353 | -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
23354 | -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
23355 | -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
23356 | -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
23357 | +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | ||
23358 | +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | ||
23359 | +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | ||
23360 | +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | ||
23361 | +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | ||
23362 | +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | ||
23363 | +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | ||
23364 | +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | ||
23365 | +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | ||
23366 | +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | ||
23367 | +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | ||
23368 | +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | ||
23369 | +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | ||
23370 | +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | ||
23371 | +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | ||
23372 | +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | ||
23373 | +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | ||
23374 | +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | ||
23375 | +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | ||
23376 | +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | ||
23377 | +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | ||
23378 | +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | ||
23379 | +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | ||
23380 | +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | ||
23381 | +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
23382 | +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
23383 | +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
23384 | +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
23385 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
23386 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
23387 | +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
23388 | +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
23389 | +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
23390 | +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
23391 | +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
23392 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
23393 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
23394 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
23395 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
23396 | +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
23397 | +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
23398 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
23399 | +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
23400 | +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
23401 | +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
23402 | +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
23403 | +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
23404 | +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | ||
23405 | +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | ||
23406 | +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | ||
23407 | +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | ||
23408 | +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | ||
23409 | +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | ||
23410 | +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
23411 | +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
23412 | +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"`' | ||
23413 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
23414 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
23415 | +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
23416 | +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
23417 | +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
23418 | +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
23419 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
23420 | +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
23421 | +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
23422 | +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
23423 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
23424 | +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
23425 | +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
23426 | +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
23427 | +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | ||
23428 | +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | ||
23429 | +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | ||
23430 | +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | ||
23431 | +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
23432 | +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | ||
23433 | +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | ||
23434 | +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
23435 | +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
23436 | +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | ||
23437 | +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | ||
23438 | +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
23439 | +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
23440 | +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
23441 | +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | ||
23442 | +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
23443 | +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | ||
23444 | +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
23445 | +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
23446 | +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
23447 | +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | ||
23448 | +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | ||
23449 | +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | ||
23450 | +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | ||
23451 | +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | ||
23452 | +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
23453 | +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
23454 | +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
23455 | +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
23456 | +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
23457 | +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
23458 | +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
23459 | +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
23460 | +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
23461 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
23462 | +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
23463 | +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
23464 | +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
23465 | +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | ||
23466 | +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | ||
23467 | +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | ||
23468 | +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
23469 | +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | ||
23470 | +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | ||
23471 | +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | ||
23472 | +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | ||
23473 | +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | ||
23474 | +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
23475 | +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
23476 | +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | ||
23477 | +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | ||
23478 | +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | ||
23479 | +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | ||
23480 | +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | ||
23481 | +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | ||
23482 | +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | ||
23483 | +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | ||
23484 | +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | ||
23485 | +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | ||
23486 | +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | ||
23487 | |||
23488 | LTCC='$LTCC' | ||
23489 | LTCFLAGS='$LTCFLAGS' | ||
23490 | compiler='$compiler_DEFAULT' | ||
23491 | |||
23492 | +# A function that is used when there is no print builtin or printf. | ||
23493 | +func_fallback_echo () | ||
23494 | +{ | ||
23495 | + eval 'cat <<_LTECHO_EOF | ||
23496 | +\$1 | ||
23497 | +_LTECHO_EOF' | ||
23498 | +} | ||
23499 | + | ||
23500 | # Quote evaled strings. | ||
23501 | -for var in SED \ | ||
23502 | +for var in SHELL \ | ||
23503 | +ECHO \ | ||
23504 | +SED \ | ||
23505 | GREP \ | ||
23506 | EGREP \ | ||
23507 | FGREP \ | ||
23508 | @@ -12768,8 +13555,13 @@ reload_flag \ | ||
23509 | OBJDUMP \ | ||
23510 | deplibs_check_method \ | ||
23511 | file_magic_cmd \ | ||
23512 | +file_magic_glob \ | ||
23513 | +want_nocaseglob \ | ||
23514 | +DLLTOOL \ | ||
23515 | +sharedlib_from_linklib_cmd \ | ||
23516 | AR \ | ||
23517 | AR_FLAGS \ | ||
23518 | +archiver_list_spec \ | ||
23519 | STRIP \ | ||
23520 | RANLIB \ | ||
23521 | CC \ | ||
23522 | @@ -12779,14 +13571,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
23523 | lt_cv_sys_global_symbol_to_cdecl \ | ||
23524 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
23525 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
23526 | -SHELL \ | ||
23527 | -ECHO \ | ||
23528 | +nm_file_list_spec \ | ||
23529 | lt_prog_compiler_no_builtin_flag \ | ||
23530 | -lt_prog_compiler_wl \ | ||
23531 | lt_prog_compiler_pic \ | ||
23532 | +lt_prog_compiler_wl \ | ||
23533 | lt_prog_compiler_static \ | ||
23534 | lt_cv_prog_compiler_c_o \ | ||
23535 | need_locks \ | ||
23536 | +MANIFEST_TOOL \ | ||
23537 | DSYMUTIL \ | ||
23538 | NMEDIT \ | ||
23539 | LIPO \ | ||
23540 | @@ -12802,7 +13594,6 @@ no_undefined_flag \ | ||
23541 | hardcode_libdir_flag_spec \ | ||
23542 | hardcode_libdir_flag_spec_ld \ | ||
23543 | hardcode_libdir_separator \ | ||
23544 | -fix_srcfile_path \ | ||
23545 | exclude_expsyms \ | ||
23546 | include_expsyms \ | ||
23547 | file_list_spec \ | ||
23548 | @@ -12810,12 +13601,13 @@ variables_saved_for_relink \ | ||
23549 | libname_spec \ | ||
23550 | library_names_spec \ | ||
23551 | soname_spec \ | ||
23552 | +install_override_mode \ | ||
23553 | finish_eval \ | ||
23554 | old_striplib \ | ||
23555 | striplib; do | ||
23556 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
23557 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
23558 | *[\\\\\\\`\\"\\\$]*) | ||
23559 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
23560 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
23561 | ;; | ||
23562 | *) | ||
23563 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
23564 | @@ -12837,14 +13629,15 @@ module_cmds \ | ||
23565 | module_expsym_cmds \ | ||
23566 | export_symbols_cmds \ | ||
23567 | prelink_cmds \ | ||
23568 | +postlink_cmds \ | ||
23569 | postinstall_cmds \ | ||
23570 | postuninstall_cmds \ | ||
23571 | finish_cmds \ | ||
23572 | sys_lib_search_path_spec \ | ||
23573 | sys_lib_dlsearch_path_spec; do | ||
23574 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
23575 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
23576 | *[\\\\\\\`\\"\\\$]*) | ||
23577 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
23578 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
23579 | ;; | ||
23580 | *) | ||
23581 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
23582 | @@ -12852,12 +13645,6 @@ sys_lib_dlsearch_path_spec; do | ||
23583 | esac | ||
23584 | done | ||
23585 | |||
23586 | -# Fix-up fallback echo if it was mangled by the above quoting rules. | ||
23587 | -case \$lt_ECHO in | ||
23588 | -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
23589 | - ;; | ||
23590 | -esac | ||
23591 | - | ||
23592 | ac_aux_dir='$ac_aux_dir' | ||
23593 | xsi_shell='$xsi_shell' | ||
23594 | lt_shell_append='$lt_shell_append' | ||
23595 | @@ -13599,7 +14386,8 @@ $as_echo X"$file" | | ||
23596 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
23597 | # | ||
23598 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
23599 | -# 2006, 2007, 2008 Free Software Foundation, Inc. | ||
23600 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
23601 | +# Inc. | ||
23602 | # Written by Gordon Matzigkeit, 1996 | ||
23603 | # | ||
23604 | # This file is part of GNU Libtool. | ||
23605 | @@ -13647,6 +14435,12 @@ pic_mode=$pic_mode | ||
23606 | # Whether or not to optimize for fast installation. | ||
23607 | fast_install=$enable_fast_install | ||
23608 | |||
23609 | +# Shell to use when invoking shell scripts. | ||
23610 | +SHELL=$lt_SHELL | ||
23611 | + | ||
23612 | +# An echo program that protects backslashes. | ||
23613 | +ECHO=$lt_ECHO | ||
23614 | + | ||
23615 | # The host system. | ||
23616 | host_alias=$host_alias | ||
23617 | host=$host | ||
23618 | @@ -13696,9 +14490,11 @@ SP2NL=$lt_lt_SP2NL | ||
23619 | # turn newlines into spaces. | ||
23620 | NL2SP=$lt_lt_NL2SP | ||
23621 | |||
23622 | -# How to create reloadable object files. | ||
23623 | -reload_flag=$lt_reload_flag | ||
23624 | -reload_cmds=$lt_reload_cmds | ||
23625 | +# convert \$build file names to \$host format. | ||
23626 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
23627 | + | ||
23628 | +# convert \$build files to toolchain format. | ||
23629 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
23630 | |||
23631 | # An object symbol dumper. | ||
23632 | OBJDUMP=$lt_OBJDUMP | ||
23633 | @@ -13706,13 +14502,30 @@ OBJDUMP=$lt_OBJDUMP | ||
23634 | # Method to check whether dependent libraries are shared objects. | ||
23635 | deplibs_check_method=$lt_deplibs_check_method | ||
23636 | |||
23637 | -# Command to use when deplibs_check_method == "file_magic". | ||
23638 | +# Command to use when deplibs_check_method = "file_magic". | ||
23639 | file_magic_cmd=$lt_file_magic_cmd | ||
23640 | |||
23641 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
23642 | +file_magic_glob=$lt_file_magic_glob | ||
23643 | + | ||
23644 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
23645 | +want_nocaseglob=$lt_want_nocaseglob | ||
23646 | + | ||
23647 | +# DLL creation program. | ||
23648 | +DLLTOOL=$lt_DLLTOOL | ||
23649 | + | ||
23650 | +# Command to associate shared and link libraries. | ||
23651 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
23652 | + | ||
23653 | # The archiver. | ||
23654 | AR=$lt_AR | ||
23655 | + | ||
23656 | +# Flags to create an archive. | ||
23657 | AR_FLAGS=$lt_AR_FLAGS | ||
23658 | |||
23659 | +# How to feed a file listing to the archiver. | ||
23660 | +archiver_list_spec=$lt_archiver_list_spec | ||
23661 | + | ||
23662 | # A symbol stripping program. | ||
23663 | STRIP=$lt_STRIP | ||
23664 | |||
23665 | @@ -13721,6 +14534,9 @@ RANLIB=$lt_RANLIB | ||
23666 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
23667 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
23668 | |||
23669 | +# Whether to use a lock for old archive extraction. | ||
23670 | +lock_old_archive_extraction=$lock_old_archive_extraction | ||
23671 | + | ||
23672 | # A C compiler. | ||
23673 | LTCC=$lt_CC | ||
23674 | |||
23675 | @@ -13739,14 +14555,14 @@ global_symbol_to_c_name_address=$lt_lt_c | ||
23676 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
23677 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
23678 | |||
23679 | -# The name of the directory that contains temporary libtool files. | ||
23680 | -objdir=$objdir | ||
23681 | +# Specify filename containing input files for \$NM. | ||
23682 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
23683 | |||
23684 | -# Shell to use when invoking shell scripts. | ||
23685 | -SHELL=$lt_SHELL | ||
23686 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
23687 | +lt_sysroot=$lt_sysroot | ||
23688 | |||
23689 | -# An echo program that does not interpret backslashes. | ||
23690 | -ECHO=$lt_ECHO | ||
23691 | +# The name of the directory that contains temporary libtool files. | ||
23692 | +objdir=$objdir | ||
23693 | |||
23694 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
23695 | MAGIC_CMD=$MAGIC_CMD | ||
23696 | @@ -13754,6 +14570,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
23697 | # Must we lock files when doing compilation? | ||
23698 | need_locks=$lt_need_locks | ||
23699 | |||
23700 | +# Manifest tool. | ||
23701 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
23702 | + | ||
23703 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
23704 | DSYMUTIL=$lt_DSYMUTIL | ||
23705 | |||
23706 | @@ -13810,6 +14629,9 @@ library_names_spec=$lt_library_names_spe | ||
23707 | # The coded name of the library, if different from the real name. | ||
23708 | soname_spec=$lt_soname_spec | ||
23709 | |||
23710 | +# Permission mode override for installation of shared libraries. | ||
23711 | +install_override_mode=$lt_install_override_mode | ||
23712 | + | ||
23713 | # Command to use after installation of a shared archive. | ||
23714 | postinstall_cmds=$lt_postinstall_cmds | ||
23715 | |||
23716 | @@ -13849,6 +14671,10 @@ striplib=$lt_striplib | ||
23717 | # The linker used to build libraries. | ||
23718 | LD=$lt_LD | ||
23719 | |||
23720 | +# How to create reloadable object files. | ||
23721 | +reload_flag=$lt_reload_flag | ||
23722 | +reload_cmds=$lt_reload_cmds | ||
23723 | + | ||
23724 | # Commands used to build an old-style archive. | ||
23725 | old_archive_cmds=$lt_old_archive_cmds | ||
23726 | |||
23727 | @@ -13861,12 +14687,12 @@ with_gcc=$GCC | ||
23728 | # Compiler flag to turn off builtin functions. | ||
23729 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
23730 | |||
23731 | -# How to pass a linker flag through the compiler. | ||
23732 | -wl=$lt_lt_prog_compiler_wl | ||
23733 | - | ||
23734 | # Additional compiler flags for building library objects. | ||
23735 | pic_flag=$lt_lt_prog_compiler_pic | ||
23736 | |||
23737 | +# How to pass a linker flag through the compiler. | ||
23738 | +wl=$lt_lt_prog_compiler_wl | ||
23739 | + | ||
23740 | # Compiler flag to prevent dynamic linking. | ||
23741 | link_static_flag=$lt_lt_prog_compiler_static | ||
23742 | |||
23743 | @@ -13953,9 +14779,6 @@ inherit_rpath=$inherit_rpath | ||
23744 | # Whether libtool must link a program against all its dependency libraries. | ||
23745 | link_all_deplibs=$link_all_deplibs | ||
23746 | |||
23747 | -# Fix the shell variable \$srcfile for the compiler. | ||
23748 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
23749 | - | ||
23750 | # Set to "yes" if exported symbols are required. | ||
23751 | always_export_symbols=$always_export_symbols | ||
23752 | |||
23753 | @@ -13971,6 +14794,9 @@ include_expsyms=$lt_include_expsyms | ||
23754 | # Commands necessary for linking programs (against libraries) with templates. | ||
23755 | prelink_cmds=$lt_prelink_cmds | ||
23756 | |||
23757 | +# Commands necessary for finishing linking programs. | ||
23758 | +postlink_cmds=$lt_postlink_cmds | ||
23759 | + | ||
23760 | # Specify filename containing input files. | ||
23761 | file_list_spec=$lt_file_list_spec | ||
23762 | |||
23763 | @@ -14003,212 +14829,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
23764 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
23765 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
23766 | # is reportedly fixed, but why not run on old versions too? | ||
23767 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
23768 | - || (rm -f "$cfgfile"; exit 1) | ||
23769 | - | ||
23770 | - case $xsi_shell in | ||
23771 | - yes) | ||
23772 | - cat << \_LT_EOF >> "$cfgfile" | ||
23773 | - | ||
23774 | -# func_dirname file append nondir_replacement | ||
23775 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
23776 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
23777 | -func_dirname () | ||
23778 | -{ | ||
23779 | - case ${1} in | ||
23780 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
23781 | - * ) func_dirname_result="${3}" ;; | ||
23782 | - esac | ||
23783 | -} | ||
23784 | - | ||
23785 | -# func_basename file | ||
23786 | -func_basename () | ||
23787 | -{ | ||
23788 | - func_basename_result="${1##*/}" | ||
23789 | -} | ||
23790 | - | ||
23791 | -# func_dirname_and_basename file append nondir_replacement | ||
23792 | -# perform func_basename and func_dirname in a single function | ||
23793 | -# call: | ||
23794 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
23795 | -# add APPEND to the result, otherwise set result | ||
23796 | -# to NONDIR_REPLACEMENT. | ||
23797 | -# value returned in "$func_dirname_result" | ||
23798 | -# basename: Compute filename of FILE. | ||
23799 | -# value retuned in "$func_basename_result" | ||
23800 | -# Implementation must be kept synchronized with func_dirname | ||
23801 | -# and func_basename. For efficiency, we do not delegate to | ||
23802 | -# those functions but instead duplicate the functionality here. | ||
23803 | -func_dirname_and_basename () | ||
23804 | -{ | ||
23805 | - case ${1} in | ||
23806 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
23807 | - * ) func_dirname_result="${3}" ;; | ||
23808 | - esac | ||
23809 | - func_basename_result="${1##*/}" | ||
23810 | -} | ||
23811 | - | ||
23812 | -# func_stripname prefix suffix name | ||
23813 | -# strip PREFIX and SUFFIX off of NAME. | ||
23814 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
23815 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
23816 | -# dot (in which case that matches only a dot). | ||
23817 | -func_stripname () | ||
23818 | -{ | ||
23819 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
23820 | - # positional parameters, so assign one to ordinary parameter first. | ||
23821 | - func_stripname_result=${3} | ||
23822 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
23823 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
23824 | -} | ||
23825 | - | ||
23826 | -# func_opt_split | ||
23827 | -func_opt_split () | ||
23828 | -{ | ||
23829 | - func_opt_split_opt=${1%%=*} | ||
23830 | - func_opt_split_arg=${1#*=} | ||
23831 | -} | ||
23832 | - | ||
23833 | -# func_lo2o object | ||
23834 | -func_lo2o () | ||
23835 | -{ | ||
23836 | - case ${1} in | ||
23837 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
23838 | - *) func_lo2o_result=${1} ;; | ||
23839 | - esac | ||
23840 | -} | ||
23841 | - | ||
23842 | -# func_xform libobj-or-source | ||
23843 | -func_xform () | ||
23844 | -{ | ||
23845 | - func_xform_result=${1%.*}.lo | ||
23846 | -} | ||
23847 | - | ||
23848 | -# func_arith arithmetic-term... | ||
23849 | -func_arith () | ||
23850 | -{ | ||
23851 | - func_arith_result=$(( $* )) | ||
23852 | -} | ||
23853 | - | ||
23854 | -# func_len string | ||
23855 | -# STRING may not start with a hyphen. | ||
23856 | -func_len () | ||
23857 | -{ | ||
23858 | - func_len_result=${#1} | ||
23859 | -} | ||
23860 | - | ||
23861 | -_LT_EOF | ||
23862 | - ;; | ||
23863 | - *) # Bourne compatible functions. | ||
23864 | - cat << \_LT_EOF >> "$cfgfile" | ||
23865 | - | ||
23866 | -# func_dirname file append nondir_replacement | ||
23867 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
23868 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
23869 | -func_dirname () | ||
23870 | -{ | ||
23871 | - # Extract subdirectory from the argument. | ||
23872 | - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
23873 | - if test "X$func_dirname_result" = "X${1}"; then | ||
23874 | - func_dirname_result="${3}" | ||
23875 | - else | ||
23876 | - func_dirname_result="$func_dirname_result${2}" | ||
23877 | - fi | ||
23878 | -} | ||
23879 | - | ||
23880 | -# func_basename file | ||
23881 | -func_basename () | ||
23882 | -{ | ||
23883 | - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
23884 | -} | ||
23885 | - | ||
23886 | - | ||
23887 | -# func_stripname prefix suffix name | ||
23888 | -# strip PREFIX and SUFFIX off of NAME. | ||
23889 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
23890 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
23891 | -# dot (in which case that matches only a dot). | ||
23892 | -# func_strip_suffix prefix name | ||
23893 | -func_stripname () | ||
23894 | -{ | ||
23895 | - case ${2} in | ||
23896 | - .*) func_stripname_result=`$ECHO "X${3}" \ | ||
23897 | - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
23898 | - *) func_stripname_result=`$ECHO "X${3}" \ | ||
23899 | - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
23900 | - esac | ||
23901 | -} | ||
23902 | - | ||
23903 | -# sed scripts: | ||
23904 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
23905 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
23906 | - | ||
23907 | -# func_opt_split | ||
23908 | -func_opt_split () | ||
23909 | -{ | ||
23910 | - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
23911 | - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
23912 | -} | ||
23913 | - | ||
23914 | -# func_lo2o object | ||
23915 | -func_lo2o () | ||
23916 | -{ | ||
23917 | - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
23918 | -} | ||
23919 | - | ||
23920 | -# func_xform libobj-or-source | ||
23921 | -func_xform () | ||
23922 | -{ | ||
23923 | - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
23924 | -} | ||
23925 | - | ||
23926 | -# func_arith arithmetic-term... | ||
23927 | -func_arith () | ||
23928 | -{ | ||
23929 | - func_arith_result=`expr "$@"` | ||
23930 | -} | ||
23931 | - | ||
23932 | -# func_len string | ||
23933 | -# STRING may not start with a hyphen. | ||
23934 | -func_len () | ||
23935 | -{ | ||
23936 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
23937 | -} | ||
23938 | - | ||
23939 | -_LT_EOF | ||
23940 | -esac | ||
23941 | - | ||
23942 | -case $lt_shell_append in | ||
23943 | - yes) | ||
23944 | - cat << \_LT_EOF >> "$cfgfile" | ||
23945 | - | ||
23946 | -# func_append var value | ||
23947 | -# Append VALUE to the end of shell variable VAR. | ||
23948 | -func_append () | ||
23949 | -{ | ||
23950 | - eval "$1+=\$2" | ||
23951 | -} | ||
23952 | -_LT_EOF | ||
23953 | - ;; | ||
23954 | - *) | ||
23955 | - cat << \_LT_EOF >> "$cfgfile" | ||
23956 | - | ||
23957 | -# func_append var value | ||
23958 | -# Append VALUE to the end of shell variable VAR. | ||
23959 | -func_append () | ||
23960 | -{ | ||
23961 | - eval "$1=\$$1\$2" | ||
23962 | -} | ||
23963 | - | ||
23964 | -_LT_EOF | ||
23965 | - ;; | ||
23966 | - esac | ||
23967 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
23968 | + || (rm -f "$cfgfile"; exit 1) | ||
23969 | |||
23970 | + if test x"$xsi_shell" = xyes; then | ||
23971 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
23972 | +func_dirname ()\ | ||
23973 | +{\ | ||
23974 | +\ case ${1} in\ | ||
23975 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
23976 | +\ * ) func_dirname_result="${3}" ;;\ | ||
23977 | +\ esac\ | ||
23978 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23979 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23980 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23981 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23982 | + | ||
23983 | + | ||
23984 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
23985 | +func_basename ()\ | ||
23986 | +{\ | ||
23987 | +\ func_basename_result="${1##*/}"\ | ||
23988 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
23989 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
23990 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
23991 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
23992 | + | ||
23993 | + | ||
23994 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
23995 | +func_dirname_and_basename ()\ | ||
23996 | +{\ | ||
23997 | +\ case ${1} in\ | ||
23998 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
23999 | +\ * ) func_dirname_result="${3}" ;;\ | ||
24000 | +\ esac\ | ||
24001 | +\ func_basename_result="${1##*/}"\ | ||
24002 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24003 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24004 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24005 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24006 | + | ||
24007 | + | ||
24008 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
24009 | +func_stripname ()\ | ||
24010 | +{\ | ||
24011 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
24012 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
24013 | +\ func_stripname_result=${3}\ | ||
24014 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
24015 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
24016 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24017 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24018 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24019 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24020 | + | ||
24021 | + | ||
24022 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
24023 | +func_split_long_opt ()\ | ||
24024 | +{\ | ||
24025 | +\ func_split_long_opt_name=${1%%=*}\ | ||
24026 | +\ func_split_long_opt_arg=${1#*=}\ | ||
24027 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24028 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24029 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24030 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24031 | + | ||
24032 | + | ||
24033 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
24034 | +func_split_short_opt ()\ | ||
24035 | +{\ | ||
24036 | +\ func_split_short_opt_arg=${1#??}\ | ||
24037 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
24038 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24039 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24040 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24041 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24042 | + | ||
24043 | + | ||
24044 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
24045 | +func_lo2o ()\ | ||
24046 | +{\ | ||
24047 | +\ case ${1} in\ | ||
24048 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
24049 | +\ *) func_lo2o_result=${1} ;;\ | ||
24050 | +\ esac\ | ||
24051 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24052 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24053 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24054 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24055 | + | ||
24056 | + | ||
24057 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
24058 | +func_xform ()\ | ||
24059 | +{\ | ||
24060 | + func_xform_result=${1%.*}.lo\ | ||
24061 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24062 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24063 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24064 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24065 | + | ||
24066 | + | ||
24067 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
24068 | +func_arith ()\ | ||
24069 | +{\ | ||
24070 | + func_arith_result=$(( $* ))\ | ||
24071 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24072 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24073 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24074 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24075 | + | ||
24076 | + | ||
24077 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
24078 | +func_len ()\ | ||
24079 | +{\ | ||
24080 | + func_len_result=${#1}\ | ||
24081 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24082 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24083 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24084 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24085 | + | ||
24086 | +fi | ||
24087 | + | ||
24088 | +if test x"$lt_shell_append" = xyes; then | ||
24089 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
24090 | +func_append ()\ | ||
24091 | +{\ | ||
24092 | + eval "${1}+=\\${2}"\ | ||
24093 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24094 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24095 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24096 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24097 | + | ||
24098 | + | ||
24099 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
24100 | +func_append_quoted ()\ | ||
24101 | +{\ | ||
24102 | +\ func_quote_for_eval "${2}"\ | ||
24103 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
24104 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
24105 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24106 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24107 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
24108 | + | ||
24109 | + | ||
24110 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
24111 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
24112 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24113 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24114 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
24115 | +else | ||
24116 | + # Save a `func_append' function call even when '+=' is not available | ||
24117 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
24118 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
24119 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
24120 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
24121 | +fi | ||
24122 | + | ||
24123 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
24124 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
24125 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
24126 | +fi | ||
24127 | |||
24128 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
24129 | - || (rm -f "$cfgfile"; exit 1) | ||
24130 | |||
24131 | - mv -f "$cfgfile" "$ofile" || | ||
24132 | + mv -f "$cfgfile" "$ofile" || | ||
24133 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
24134 | chmod +x "$ofile" | ||
24135 | |||
24136 | Index: binutils-2.20.1/ld/Makefile.in | ||
24137 | =================================================================== | ||
24138 | --- binutils-2.20.1.orig/ld/Makefile.in | ||
24139 | +++ binutils-2.20.1/ld/Makefile.in | ||
24140 | @@ -171,6 +171,7 @@ CYGPATH_W = @CYGPATH_W@ | ||
24141 | DATADIRNAME = @DATADIRNAME@ | ||
24142 | DEFS = @DEFS@ | ||
24143 | DEPDIR = @DEPDIR@ | ||
24144 | +DLLTOOL = @DLLTOOL@ | ||
24145 | DSYMUTIL = @DSYMUTIL@ | ||
24146 | DUMPBIN = @DUMPBIN@ | ||
24147 | ECHO_C = @ECHO_C@ | ||
24148 | @@ -222,6 +223,7 @@ LN_S = @LN_S@ | ||
24149 | LTLIBOBJS = @LTLIBOBJS@ | ||
24150 | MAINT = @MAINT@ | ||
24151 | MAKEINFO = @MAKEINFO@ | ||
24152 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
24153 | MKDIR_P = @MKDIR_P@ | ||
24154 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
24155 | MSGFMT = @MSGFMT@ | ||
24156 | @@ -264,6 +266,7 @@ abs_builddir = @abs_builddir@ | ||
24157 | abs_srcdir = @abs_srcdir@ | ||
24158 | abs_top_builddir = @abs_top_builddir@ | ||
24159 | abs_top_srcdir = @abs_top_srcdir@ | ||
24160 | +ac_ct_AR = @ac_ct_AR@ | ||
24161 | ac_ct_CC = @ac_ct_CC@ | ||
24162 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
24163 | am__include = @am__include@ | ||
24164 | @@ -297,7 +300,6 @@ libdir = @libdir@ | ||
24165 | libexecdir = @libexecdir@ | ||
24166 | localedir = @localedir@ | ||
24167 | localstatedir = @localstatedir@ | ||
24168 | -lt_ECHO = @lt_ECHO@ | ||
24169 | mandir = @mandir@ | ||
24170 | mkdir_p = @mkdir_p@ | ||
24171 | oldincludedir = @oldincludedir@ | ||
24172 | Index: binutils-2.20.1/ld/configure | ||
24173 | =================================================================== | ||
24174 | --- binutils-2.20.1.orig/ld/configure | ||
24175 | +++ binutils-2.20.1/ld/configure | ||
24176 | @@ -169,7 +169,15 @@ test x\$exitcode = x0 || exit 1" | ||
24177 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
24178 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
24179 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
24180 | -test \$(( 1 + 1 )) = 2 || exit 1" | ||
24181 | +test \$(( 1 + 1 )) = 2 || exit 1 | ||
24182 | + | ||
24183 | + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | ||
24184 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
24185 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
24186 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
24187 | + PATH=/empty FPATH=/empty; export PATH FPATH | ||
24188 | + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | ||
24189 | + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | ||
24190 | if (eval "$as_required") 2>/dev/null; then : | ||
24191 | as_have_required=yes | ||
24192 | else | ||
24193 | @@ -523,155 +531,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P | ||
24194 | # Sed expression to map a string onto a valid variable name. | ||
24195 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
24196 | |||
24197 | - | ||
24198 | - | ||
24199 | -# Check that we are running under the correct shell. | ||
24200 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
24201 | |||
24202 | -case X$lt_ECHO in | ||
24203 | -X*--fallback-echo) | ||
24204 | - # Remove one level of quotation (which was required for Make). | ||
24205 | - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
24206 | - ;; | ||
24207 | -esac | ||
24208 | - | ||
24209 | -ECHO=${lt_ECHO-echo} | ||
24210 | -if test "X$1" = X--no-reexec; then | ||
24211 | - # Discard the --no-reexec flag, and continue. | ||
24212 | - shift | ||
24213 | -elif test "X$1" = X--fallback-echo; then | ||
24214 | - # Avoid inline document here, it may be left over | ||
24215 | - : | ||
24216 | -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
24217 | - # Yippee, $ECHO works! | ||
24218 | - : | ||
24219 | -else | ||
24220 | - # Restart under the correct shell. | ||
24221 | - exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
24222 | -fi | ||
24223 | - | ||
24224 | -if test "X$1" = X--fallback-echo; then | ||
24225 | - # used as fallback echo | ||
24226 | - shift | ||
24227 | - cat <<_LT_EOF | ||
24228 | -$* | ||
24229 | -_LT_EOF | ||
24230 | - exit 0 | ||
24231 | -fi | ||
24232 | - | ||
24233 | -# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
24234 | -# if CDPATH is set. | ||
24235 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
24236 | - | ||
24237 | -if test -z "$lt_ECHO"; then | ||
24238 | - if test "X${echo_test_string+set}" != Xset; then | ||
24239 | - # find a string as large as possible, as long as the shell can cope with it | ||
24240 | - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
24241 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
24242 | - if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
24243 | - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
24244 | - then | ||
24245 | - break | ||
24246 | - fi | ||
24247 | - done | ||
24248 | - fi | ||
24249 | - | ||
24250 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
24251 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
24252 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
24253 | - : | ||
24254 | - else | ||
24255 | - # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
24256 | - # backslashes. This makes it impossible to quote backslashes using | ||
24257 | - # echo "$something" | sed 's/\\/\\\\/g' | ||
24258 | - # | ||
24259 | - # So, first we look for a working echo in the user's PATH. | ||
24260 | - | ||
24261 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
24262 | - for dir in $PATH /usr/ucb; do | ||
24263 | - IFS="$lt_save_ifs" | ||
24264 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
24265 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
24266 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
24267 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
24268 | - ECHO="$dir/echo" | ||
24269 | - break | ||
24270 | - fi | ||
24271 | - done | ||
24272 | - IFS="$lt_save_ifs" | ||
24273 | - | ||
24274 | - if test "X$ECHO" = Xecho; then | ||
24275 | - # We didn't find a better echo, so look for alternatives. | ||
24276 | - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
24277 | - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
24278 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
24279 | - # This shell has a builtin print -r that does the trick. | ||
24280 | - ECHO='print -r' | ||
24281 | - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
24282 | - test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
24283 | - # If we have ksh, try running configure again with it. | ||
24284 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
24285 | - export ORIGINAL_CONFIG_SHELL | ||
24286 | - CONFIG_SHELL=/bin/ksh | ||
24287 | - export CONFIG_SHELL | ||
24288 | - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
24289 | - else | ||
24290 | - # Try using printf. | ||
24291 | - ECHO='printf %s\n' | ||
24292 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
24293 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
24294 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
24295 | - # Cool, printf works | ||
24296 | - : | ||
24297 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
24298 | - test "X$echo_testing_string" = 'X\t' && | ||
24299 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
24300 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
24301 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
24302 | - export CONFIG_SHELL | ||
24303 | - SHELL="$CONFIG_SHELL" | ||
24304 | - export SHELL | ||
24305 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
24306 | - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
24307 | - test "X$echo_testing_string" = 'X\t' && | ||
24308 | - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
24309 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
24310 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
24311 | - else | ||
24312 | - # maybe with a smaller string... | ||
24313 | - prev=: | ||
24314 | - | ||
24315 | - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
24316 | - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
24317 | - then | ||
24318 | - break | ||
24319 | - fi | ||
24320 | - prev="$cmd" | ||
24321 | - done | ||
24322 | - | ||
24323 | - if test "$prev" != 'sed 50q "$0"'; then | ||
24324 | - echo_test_string=`eval $prev` | ||
24325 | - export echo_test_string | ||
24326 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
24327 | - else | ||
24328 | - # Oops. We lost completely, so just stick with echo. | ||
24329 | - ECHO=echo | ||
24330 | - fi | ||
24331 | - fi | ||
24332 | - fi | ||
24333 | - fi | ||
24334 | - fi | ||
24335 | -fi | ||
24336 | - | ||
24337 | -# Copy echo and quote the copy suitably for passing to libtool from | ||
24338 | -# the Makefile, instead of quoting the original, which is used later. | ||
24339 | -lt_ECHO=$ECHO | ||
24340 | -if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
24341 | - lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
24342 | -fi | ||
24343 | - | ||
24344 | - | ||
24345 | - | ||
24346 | |||
24347 | exec 7<&0 </dev/null 6>&1 | ||
24348 | |||
24349 | @@ -780,9 +641,11 @@ OTOOL | ||
24350 | LIPO | ||
24351 | NMEDIT | ||
24352 | DSYMUTIL | ||
24353 | -lt_ECHO | ||
24354 | +MANIFEST_TOOL | ||
24355 | RANLIB | ||
24356 | +ac_ct_AR | ||
24357 | AR | ||
24358 | +DLLTOOL | ||
24359 | OBJDUMP | ||
24360 | LN_S | ||
24361 | NM | ||
24362 | @@ -1568,6 +1431,8 @@ Optional Packages: | ||
24363 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
24364 | both] | ||
24365 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
24366 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
24367 | + (or the compiler's sysroot if not specified). | ||
24368 | |||
24369 | Some influential environment variables: | ||
24370 | CC C compiler command | ||
24371 | @@ -5616,8 +5481,8 @@ esac | ||
24372 | |||
24373 | |||
24374 | |||
24375 | -macro_version='2.2.6' | ||
24376 | -macro_revision='1.3012' | ||
24377 | +macro_version='2.4' | ||
24378 | +macro_revision='1.3293' | ||
24379 | |||
24380 | |||
24381 | |||
24382 | @@ -5633,6 +5498,75 @@ macro_revision='1.3012' | ||
24383 | |||
24384 | ltmain="$ac_aux_dir/ltmain.sh" | ||
24385 | |||
24386 | +# Backslashify metacharacters that are still active within | ||
24387 | +# double-quoted strings. | ||
24388 | +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
24389 | + | ||
24390 | +# Same as above, but do not quote variable references. | ||
24391 | +double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
24392 | + | ||
24393 | +# Sed substitution to delay expansion of an escaped shell variable in a | ||
24394 | +# double_quote_subst'ed string. | ||
24395 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
24396 | + | ||
24397 | +# Sed substitution to delay expansion of an escaped single quote. | ||
24398 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
24399 | + | ||
24400 | +# Sed substitution to avoid accidental globbing in evaled expressions | ||
24401 | +no_glob_subst='s/\*/\\\*/g' | ||
24402 | + | ||
24403 | +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
24404 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
24405 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
24406 | + | ||
24407 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
24408 | +$as_echo_n "checking how to print strings... " >&6; } | ||
24409 | +# Test print first, because it will be a builtin if present. | ||
24410 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
24411 | + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
24412 | + ECHO='print -r --' | ||
24413 | +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
24414 | + ECHO='printf %s\n' | ||
24415 | +else | ||
24416 | + # Use this function as a fallback that always works. | ||
24417 | + func_fallback_echo () | ||
24418 | + { | ||
24419 | + eval 'cat <<_LTECHO_EOF | ||
24420 | +$1 | ||
24421 | +_LTECHO_EOF' | ||
24422 | + } | ||
24423 | + ECHO='func_fallback_echo' | ||
24424 | +fi | ||
24425 | + | ||
24426 | +# func_echo_all arg... | ||
24427 | +# Invoke $ECHO with all args, space-separated. | ||
24428 | +func_echo_all () | ||
24429 | +{ | ||
24430 | + $ECHO "" | ||
24431 | +} | ||
24432 | + | ||
24433 | +case "$ECHO" in | ||
24434 | + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | ||
24435 | +$as_echo "printf" >&6; } ;; | ||
24436 | + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | ||
24437 | +$as_echo "print -r" >&6; } ;; | ||
24438 | + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | ||
24439 | +$as_echo "cat" >&6; } ;; | ||
24440 | +esac | ||
24441 | + | ||
24442 | + | ||
24443 | + | ||
24444 | + | ||
24445 | + | ||
24446 | + | ||
24447 | + | ||
24448 | + | ||
24449 | + | ||
24450 | + | ||
24451 | + | ||
24452 | + | ||
24453 | + | ||
24454 | + | ||
24455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
24456 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
24457 | if test "${ac_cv_path_SED+set}" = set; then : | ||
24458 | @@ -5968,8 +5902,11 @@ if test "$lt_cv_path_NM" != "no"; then | ||
24459 | NM="$lt_cv_path_NM" | ||
24460 | else | ||
24461 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
24462 | - if test -n "$ac_tool_prefix"; then | ||
24463 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
24464 | + if test -n "$DUMPBIN"; then : | ||
24465 | + # Let the user override the test. | ||
24466 | + else | ||
24467 | + if test -n "$ac_tool_prefix"; then | ||
24468 | + for ac_prog in dumpbin "link -dump" | ||
24469 | do | ||
24470 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
24471 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
24472 | @@ -6013,7 +5950,7 @@ fi | ||
24473 | fi | ||
24474 | if test -z "$DUMPBIN"; then | ||
24475 | ac_ct_DUMPBIN=$DUMPBIN | ||
24476 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
24477 | + for ac_prog in dumpbin "link -dump" | ||
24478 | do | ||
24479 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
24480 | set dummy $ac_prog; ac_word=$2 | ||
24481 | @@ -6068,6 +6005,15 @@ esac | ||
24482 | fi | ||
24483 | fi | ||
24484 | |||
24485 | + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
24486 | + *COFF*) | ||
24487 | + DUMPBIN="$DUMPBIN -symbols" | ||
24488 | + ;; | ||
24489 | + *) | ||
24490 | + DUMPBIN=: | ||
24491 | + ;; | ||
24492 | + esac | ||
24493 | + fi | ||
24494 | |||
24495 | if test "$DUMPBIN" != ":"; then | ||
24496 | NM="$DUMPBIN" | ||
24497 | @@ -6087,13 +6033,13 @@ if test "${lt_cv_nm_interface+set}" = se | ||
24498 | else | ||
24499 | lt_cv_nm_interface="BSD nm" | ||
24500 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
24501 | - (eval echo "\"\$as_me:6090: $ac_compile\"" >&5) | ||
24502 | + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | ||
24503 | (eval "$ac_compile" 2>conftest.err) | ||
24504 | cat conftest.err >&5 | ||
24505 | - (eval echo "\"\$as_me:6093: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
24506 | + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
24507 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
24508 | cat conftest.err >&5 | ||
24509 | - (eval echo "\"\$as_me:6096: output\"" >&5) | ||
24510 | + (eval echo "\"\$as_me:$LINENO: output\"" >&5) | ||
24511 | cat conftest.out >&5 | ||
24512 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
24513 | lt_cv_nm_interface="MS dumpbin" | ||
24514 | @@ -6150,6 +6096,11 @@ else | ||
24515 | lt_cv_sys_max_cmd_len=8192; | ||
24516 | ;; | ||
24517 | |||
24518 | + mint*) | ||
24519 | + # On MiNT this can take a long time and run out of memory. | ||
24520 | + lt_cv_sys_max_cmd_len=8192; | ||
24521 | + ;; | ||
24522 | + | ||
24523 | amigaos*) | ||
24524 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
24525 | # So we just punt and use a minimum line length of 8192. | ||
24526 | @@ -6214,8 +6165,8 @@ else | ||
24527 | # If test is not a shell built-in, we'll probably end up computing a | ||
24528 | # maximum length that is only half of the actual maximum length, but | ||
24529 | # we can't tell. | ||
24530 | - while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
24531 | - = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
24532 | + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | ||
24533 | + = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
24534 | test $i != 17 # 1/2 MB should be enough | ||
24535 | do | ||
24536 | i=`expr $i + 1` | ||
24537 | @@ -6257,8 +6208,8 @@ $as_echo_n "checking whether the shell u | ||
24538 | # Try some XSI features | ||
24539 | xsi_shell=no | ||
24540 | ( _lt_dummy="a/b/c" | ||
24541 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
24542 | - = c,a/b,, \ | ||
24543 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
24544 | + = c,a/b,b/c, \ | ||
24545 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
24546 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
24547 | && xsi_shell=yes | ||
24548 | @@ -6307,6 +6258,80 @@ esac | ||
24549 | |||
24550 | |||
24551 | |||
24552 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
24553 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
24554 | +if test "${lt_cv_to_host_file_cmd+set}" = set; then : | ||
24555 | + $as_echo_n "(cached) " >&6 | ||
24556 | +else | ||
24557 | + case $host in | ||
24558 | + *-*-mingw* ) | ||
24559 | + case $build in | ||
24560 | + *-*-mingw* ) # actually msys | ||
24561 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
24562 | + ;; | ||
24563 | + *-*-cygwin* ) | ||
24564 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
24565 | + ;; | ||
24566 | + * ) # otherwise, assume *nix | ||
24567 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
24568 | + ;; | ||
24569 | + esac | ||
24570 | + ;; | ||
24571 | + *-*-cygwin* ) | ||
24572 | + case $build in | ||
24573 | + *-*-mingw* ) # actually msys | ||
24574 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
24575 | + ;; | ||
24576 | + *-*-cygwin* ) | ||
24577 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
24578 | + ;; | ||
24579 | + * ) # otherwise, assume *nix | ||
24580 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
24581 | + ;; | ||
24582 | + esac | ||
24583 | + ;; | ||
24584 | + * ) # unhandled hosts (and "normal" native builds) | ||
24585 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
24586 | + ;; | ||
24587 | +esac | ||
24588 | + | ||
24589 | +fi | ||
24590 | + | ||
24591 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
24592 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
24593 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
24594 | + | ||
24595 | + | ||
24596 | + | ||
24597 | + | ||
24598 | + | ||
24599 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
24600 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
24601 | +if test "${lt_cv_to_tool_file_cmd+set}" = set; then : | ||
24602 | + $as_echo_n "(cached) " >&6 | ||
24603 | +else | ||
24604 | + #assume ordinary cross tools, or native build. | ||
24605 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
24606 | +case $host in | ||
24607 | + *-*-mingw* ) | ||
24608 | + case $build in | ||
24609 | + *-*-mingw* ) # actually msys | ||
24610 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
24611 | + ;; | ||
24612 | + esac | ||
24613 | + ;; | ||
24614 | +esac | ||
24615 | + | ||
24616 | +fi | ||
24617 | + | ||
24618 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
24619 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
24620 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
24621 | + | ||
24622 | + | ||
24623 | + | ||
24624 | + | ||
24625 | + | ||
24626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
24627 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
24628 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
24629 | @@ -6323,6 +6348,11 @@ case $reload_flag in | ||
24630 | esac | ||
24631 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
24632 | case $host_os in | ||
24633 | + cygwin* | mingw* | pw32* | cegcc*) | ||
24634 | + if test "$GCC" != yes; then | ||
24635 | + reload_cmds=false | ||
24636 | + fi | ||
24637 | + ;; | ||
24638 | darwin*) | ||
24639 | if test "$GCC" = yes; then | ||
24640 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
24641 | @@ -6486,16 +6516,18 @@ mingw* | pw32*) | ||
24642 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
24643 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
24644 | # unless we find 'file', for example because we are cross-compiling. | ||
24645 | - if ( file / ) >/dev/null 2>&1; then | ||
24646 | + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
24647 | + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
24648 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
24649 | lt_cv_file_magic_cmd='func_win32_libid' | ||
24650 | else | ||
24651 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
24652 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
24653 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
24654 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
24655 | fi | ||
24656 | ;; | ||
24657 | |||
24658 | -cegcc) | ||
24659 | +cegcc*) | ||
24660 | # use the weaker test based on 'objdump'. See mingw*. | ||
24661 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
24662 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
24663 | @@ -6525,6 +6557,10 @@ gnu*) | ||
24664 | lt_cv_deplibs_check_method=pass_all | ||
24665 | ;; | ||
24666 | |||
24667 | +haiku*) | ||
24668 | + lt_cv_deplibs_check_method=pass_all | ||
24669 | + ;; | ||
24670 | + | ||
24671 | hpux10.20* | hpux11*) | ||
24672 | lt_cv_file_magic_cmd=/usr/bin/file | ||
24673 | case $host_cpu in | ||
24674 | @@ -6533,11 +6569,11 @@ hpux10.20* | hpux11*) | ||
24675 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
24676 | ;; | ||
24677 | hppa*64*) | ||
24678 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
24679 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | ||
24680 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
24681 | ;; | ||
24682 | *) | ||
24683 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
24684 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | ||
24685 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
24686 | ;; | ||
24687 | esac | ||
24688 | @@ -6640,6 +6676,21 @@ esac | ||
24689 | fi | ||
24690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
24691 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
24692 | + | ||
24693 | +file_magic_glob= | ||
24694 | +want_nocaseglob=no | ||
24695 | +if test "$build" = "$host"; then | ||
24696 | + case $host_os in | ||
24697 | + mingw* | pw32*) | ||
24698 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
24699 | + want_nocaseglob=yes | ||
24700 | + else | ||
24701 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
24702 | + fi | ||
24703 | + ;; | ||
24704 | + esac | ||
24705 | +fi | ||
24706 | + | ||
24707 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
24708 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
24709 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
24710 | @@ -6655,16 +6706,26 @@ test -z "$deplibs_check_method" && depli | ||
24711 | |||
24712 | |||
24713 | |||
24714 | + | ||
24715 | + | ||
24716 | + | ||
24717 | + | ||
24718 | + | ||
24719 | + | ||
24720 | + | ||
24721 | + | ||
24722 | + | ||
24723 | + | ||
24724 | if test -n "$ac_tool_prefix"; then | ||
24725 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
24726 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
24727 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
24728 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
24729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
24730 | $as_echo_n "checking for $ac_word... " >&6; } | ||
24731 | -if test "${ac_cv_prog_AR+set}" = set; then : | ||
24732 | +if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
24733 | $as_echo_n "(cached) " >&6 | ||
24734 | else | ||
24735 | - if test -n "$AR"; then | ||
24736 | - ac_cv_prog_AR="$AR" # Let the user override the test. | ||
24737 | + if test -n "$DLLTOOL"; then | ||
24738 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
24739 | else | ||
24740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
24741 | for as_dir in $PATH | ||
24742 | @@ -6673,7 +6734,7 @@ do | ||
24743 | test -z "$as_dir" && as_dir=. | ||
24744 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
24745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
24746 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
24747 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
24748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
24749 | break 2 | ||
24750 | fi | ||
24751 | @@ -6683,10 +6744,10 @@ IFS=$as_save_IFS | ||
24752 | |||
24753 | fi | ||
24754 | fi | ||
24755 | -AR=$ac_cv_prog_AR | ||
24756 | -if test -n "$AR"; then | ||
24757 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
24758 | -$as_echo "$AR" >&6; } | ||
24759 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
24760 | +if test -n "$DLLTOOL"; then | ||
24761 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
24762 | +$as_echo "$DLLTOOL" >&6; } | ||
24763 | else | ||
24764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24765 | $as_echo "no" >&6; } | ||
24766 | @@ -6694,17 +6755,17 @@ fi | ||
24767 | |||
24768 | |||
24769 | fi | ||
24770 | -if test -z "$ac_cv_prog_AR"; then | ||
24771 | - ac_ct_AR=$AR | ||
24772 | - # Extract the first word of "ar", so it can be a program name with args. | ||
24773 | -set dummy ar; ac_word=$2 | ||
24774 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
24775 | + ac_ct_DLLTOOL=$DLLTOOL | ||
24776 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
24777 | +set dummy dlltool; ac_word=$2 | ||
24778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
24779 | $as_echo_n "checking for $ac_word... " >&6; } | ||
24780 | -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
24781 | +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
24782 | $as_echo_n "(cached) " >&6 | ||
24783 | else | ||
24784 | - if test -n "$ac_ct_AR"; then | ||
24785 | - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
24786 | + if test -n "$ac_ct_DLLTOOL"; then | ||
24787 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
24788 | else | ||
24789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
24790 | for as_dir in $PATH | ||
24791 | @@ -6713,7 +6774,7 @@ do | ||
24792 | test -z "$as_dir" && as_dir=. | ||
24793 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
24794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
24795 | - ac_cv_prog_ac_ct_AR="ar" | ||
24796 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
24797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
24798 | break 2 | ||
24799 | fi | ||
24800 | @@ -6723,17 +6784,17 @@ IFS=$as_save_IFS | ||
24801 | |||
24802 | fi | ||
24803 | fi | ||
24804 | -ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
24805 | -if test -n "$ac_ct_AR"; then | ||
24806 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
24807 | -$as_echo "$ac_ct_AR" >&6; } | ||
24808 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
24809 | +if test -n "$ac_ct_DLLTOOL"; then | ||
24810 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
24811 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
24812 | else | ||
24813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24814 | $as_echo "no" >&6; } | ||
24815 | fi | ||
24816 | |||
24817 | - if test "x$ac_ct_AR" = x; then | ||
24818 | - AR="false" | ||
24819 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
24820 | + DLLTOOL="false" | ||
24821 | else | ||
24822 | case $cross_compiling:$ac_tool_warned in | ||
24823 | yes:) | ||
24824 | @@ -6741,18 +6802,54 @@ yes:) | ||
24825 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
24826 | ac_tool_warned=yes ;; | ||
24827 | esac | ||
24828 | - AR=$ac_ct_AR | ||
24829 | + DLLTOOL=$ac_ct_DLLTOOL | ||
24830 | fi | ||
24831 | else | ||
24832 | - AR="$ac_cv_prog_AR" | ||
24833 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
24834 | fi | ||
24835 | |||
24836 | -test -z "$AR" && AR=ar | ||
24837 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
24838 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
24839 | + | ||
24840 | + | ||
24841 | + | ||
24842 | + | ||
24843 | + | ||
24844 | + | ||
24845 | |||
24846 | |||
24847 | |||
24848 | |||
24849 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
24850 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
24851 | +if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then : | ||
24852 | + $as_echo_n "(cached) " >&6 | ||
24853 | +else | ||
24854 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
24855 | + | ||
24856 | +case $host_os in | ||
24857 | +cygwin* | mingw* | pw32* | cegcc*) | ||
24858 | + # two different shell functions defined in ltmain.sh | ||
24859 | + # decide which to use based on capabilities of $DLLTOOL | ||
24860 | + case `$DLLTOOL --help 2>&1` in | ||
24861 | + *--identify-strict*) | ||
24862 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
24863 | + ;; | ||
24864 | + *) | ||
24865 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
24866 | + ;; | ||
24867 | + esac | ||
24868 | + ;; | ||
24869 | +*) | ||
24870 | + # fallback: assume linklib IS sharedlib | ||
24871 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
24872 | + ;; | ||
24873 | +esac | ||
24874 | + | ||
24875 | +fi | ||
24876 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
24877 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
24878 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
24879 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
24880 | |||
24881 | |||
24882 | |||
24883 | @@ -6761,15 +6858,17 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
24884 | |||
24885 | |||
24886 | if test -n "$ac_tool_prefix"; then | ||
24887 | - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
24888 | -set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
24889 | + for ac_prog in ar | ||
24890 | + do | ||
24891 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
24892 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
24893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
24894 | $as_echo_n "checking for $ac_word... " >&6; } | ||
24895 | -if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
24896 | +if test "${ac_cv_prog_AR+set}" = set; then : | ||
24897 | $as_echo_n "(cached) " >&6 | ||
24898 | else | ||
24899 | - if test -n "$STRIP"; then | ||
24900 | - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
24901 | + if test -n "$AR"; then | ||
24902 | + ac_cv_prog_AR="$AR" # Let the user override the test. | ||
24903 | else | ||
24904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
24905 | for as_dir in $PATH | ||
24906 | @@ -6778,7 +6877,7 @@ do | ||
24907 | test -z "$as_dir" && as_dir=. | ||
24908 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
24909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
24910 | - ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
24911 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
24912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
24913 | break 2 | ||
24914 | fi | ||
24915 | @@ -6788,28 +6887,32 @@ IFS=$as_save_IFS | ||
24916 | |||
24917 | fi | ||
24918 | fi | ||
24919 | -STRIP=$ac_cv_prog_STRIP | ||
24920 | -if test -n "$STRIP"; then | ||
24921 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
24922 | -$as_echo "$STRIP" >&6; } | ||
24923 | +AR=$ac_cv_prog_AR | ||
24924 | +if test -n "$AR"; then | ||
24925 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
24926 | +$as_echo "$AR" >&6; } | ||
24927 | else | ||
24928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24929 | $as_echo "no" >&6; } | ||
24930 | fi | ||
24931 | |||
24932 | |||
24933 | + test -n "$AR" && break | ||
24934 | + done | ||
24935 | fi | ||
24936 | -if test -z "$ac_cv_prog_STRIP"; then | ||
24937 | - ac_ct_STRIP=$STRIP | ||
24938 | - # Extract the first word of "strip", so it can be a program name with args. | ||
24939 | -set dummy strip; ac_word=$2 | ||
24940 | +if test -z "$AR"; then | ||
24941 | + ac_ct_AR=$AR | ||
24942 | + for ac_prog in ar | ||
24943 | +do | ||
24944 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
24945 | +set dummy $ac_prog; ac_word=$2 | ||
24946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
24947 | $as_echo_n "checking for $ac_word... " >&6; } | ||
24948 | -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
24949 | +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
24950 | $as_echo_n "(cached) " >&6 | ||
24951 | else | ||
24952 | - if test -n "$ac_ct_STRIP"; then | ||
24953 | - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
24954 | + if test -n "$ac_ct_AR"; then | ||
24955 | + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
24956 | else | ||
24957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
24958 | for as_dir in $PATH | ||
24959 | @@ -6818,7 +6921,7 @@ do | ||
24960 | test -z "$as_dir" && as_dir=. | ||
24961 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
24962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
24963 | - ac_cv_prog_ac_ct_STRIP="strip" | ||
24964 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
24965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
24966 | break 2 | ||
24967 | fi | ||
24968 | @@ -6828,20 +6931,185 @@ IFS=$as_save_IFS | ||
24969 | |||
24970 | fi | ||
24971 | fi | ||
24972 | -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
24973 | -if test -n "$ac_ct_STRIP"; then | ||
24974 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
24975 | -$as_echo "$ac_ct_STRIP" >&6; } | ||
24976 | +ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
24977 | +if test -n "$ac_ct_AR"; then | ||
24978 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
24979 | +$as_echo "$ac_ct_AR" >&6; } | ||
24980 | else | ||
24981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24982 | $as_echo "no" >&6; } | ||
24983 | fi | ||
24984 | |||
24985 | - if test "x$ac_ct_STRIP" = x; then | ||
24986 | - STRIP=":" | ||
24987 | - else | ||
24988 | - case $cross_compiling:$ac_tool_warned in | ||
24989 | -yes:) | ||
24990 | + | ||
24991 | + test -n "$ac_ct_AR" && break | ||
24992 | +done | ||
24993 | + | ||
24994 | + if test "x$ac_ct_AR" = x; then | ||
24995 | + AR="false" | ||
24996 | + else | ||
24997 | + case $cross_compiling:$ac_tool_warned in | ||
24998 | +yes:) | ||
24999 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
25000 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
25001 | +ac_tool_warned=yes ;; | ||
25002 | +esac | ||
25003 | + AR=$ac_ct_AR | ||
25004 | + fi | ||
25005 | +fi | ||
25006 | + | ||
25007 | +: ${AR=ar} | ||
25008 | +: ${AR_FLAGS=cru} | ||
25009 | + | ||
25010 | + | ||
25011 | + | ||
25012 | + | ||
25013 | + | ||
25014 | + | ||
25015 | + | ||
25016 | + | ||
25017 | + | ||
25018 | + | ||
25019 | + | ||
25020 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
25021 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
25022 | +if test "${lt_cv_ar_at_file+set}" = set; then : | ||
25023 | + $as_echo_n "(cached) " >&6 | ||
25024 | +else | ||
25025 | + lt_cv_ar_at_file=no | ||
25026 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25027 | +/* end confdefs.h. */ | ||
25028 | + | ||
25029 | +int | ||
25030 | +main () | ||
25031 | +{ | ||
25032 | + | ||
25033 | + ; | ||
25034 | + return 0; | ||
25035 | +} | ||
25036 | +_ACEOF | ||
25037 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
25038 | + echo conftest.$ac_objext > conftest.lst | ||
25039 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
25040 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
25041 | + (eval $lt_ar_try) 2>&5 | ||
25042 | + ac_status=$? | ||
25043 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25044 | + test $ac_status = 0; } | ||
25045 | + if test "$ac_status" -eq 0; then | ||
25046 | + # Ensure the archiver fails upon bogus file names. | ||
25047 | + rm -f conftest.$ac_objext libconftest.a | ||
25048 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
25049 | + (eval $lt_ar_try) 2>&5 | ||
25050 | + ac_status=$? | ||
25051 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25052 | + test $ac_status = 0; } | ||
25053 | + if test "$ac_status" -ne 0; then | ||
25054 | + lt_cv_ar_at_file=@ | ||
25055 | + fi | ||
25056 | + fi | ||
25057 | + rm -f conftest.* libconftest.a | ||
25058 | + | ||
25059 | +fi | ||
25060 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25061 | + | ||
25062 | +fi | ||
25063 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
25064 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
25065 | + | ||
25066 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
25067 | + archiver_list_spec= | ||
25068 | +else | ||
25069 | + archiver_list_spec=$lt_cv_ar_at_file | ||
25070 | +fi | ||
25071 | + | ||
25072 | + | ||
25073 | + | ||
25074 | + | ||
25075 | + | ||
25076 | + | ||
25077 | + | ||
25078 | +if test -n "$ac_tool_prefix"; then | ||
25079 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
25080 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
25081 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
25082 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
25083 | +if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
25084 | + $as_echo_n "(cached) " >&6 | ||
25085 | +else | ||
25086 | + if test -n "$STRIP"; then | ||
25087 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
25088 | +else | ||
25089 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25090 | +for as_dir in $PATH | ||
25091 | +do | ||
25092 | + IFS=$as_save_IFS | ||
25093 | + test -z "$as_dir" && as_dir=. | ||
25094 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
25095 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
25096 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
25097 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
25098 | + break 2 | ||
25099 | + fi | ||
25100 | +done | ||
25101 | + done | ||
25102 | +IFS=$as_save_IFS | ||
25103 | + | ||
25104 | +fi | ||
25105 | +fi | ||
25106 | +STRIP=$ac_cv_prog_STRIP | ||
25107 | +if test -n "$STRIP"; then | ||
25108 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
25109 | +$as_echo "$STRIP" >&6; } | ||
25110 | +else | ||
25111 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25112 | +$as_echo "no" >&6; } | ||
25113 | +fi | ||
25114 | + | ||
25115 | + | ||
25116 | +fi | ||
25117 | +if test -z "$ac_cv_prog_STRIP"; then | ||
25118 | + ac_ct_STRIP=$STRIP | ||
25119 | + # Extract the first word of "strip", so it can be a program name with args. | ||
25120 | +set dummy strip; ac_word=$2 | ||
25121 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
25122 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
25123 | +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
25124 | + $as_echo_n "(cached) " >&6 | ||
25125 | +else | ||
25126 | + if test -n "$ac_ct_STRIP"; then | ||
25127 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
25128 | +else | ||
25129 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25130 | +for as_dir in $PATH | ||
25131 | +do | ||
25132 | + IFS=$as_save_IFS | ||
25133 | + test -z "$as_dir" && as_dir=. | ||
25134 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
25135 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
25136 | + ac_cv_prog_ac_ct_STRIP="strip" | ||
25137 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
25138 | + break 2 | ||
25139 | + fi | ||
25140 | +done | ||
25141 | + done | ||
25142 | +IFS=$as_save_IFS | ||
25143 | + | ||
25144 | +fi | ||
25145 | +fi | ||
25146 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
25147 | +if test -n "$ac_ct_STRIP"; then | ||
25148 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
25149 | +$as_echo "$ac_ct_STRIP" >&6; } | ||
25150 | +else | ||
25151 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25152 | +$as_echo "no" >&6; } | ||
25153 | +fi | ||
25154 | + | ||
25155 | + if test "x$ac_ct_STRIP" = x; then | ||
25156 | + STRIP=":" | ||
25157 | + else | ||
25158 | + case $cross_compiling:$ac_tool_warned in | ||
25159 | +yes:) | ||
25160 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
25161 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
25162 | ac_tool_warned=yes ;; | ||
25163 | @@ -6975,6 +7243,18 @@ if test -n "$RANLIB"; then | ||
25164 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
25165 | fi | ||
25166 | |||
25167 | +case $host_os in | ||
25168 | + darwin*) | ||
25169 | + lock_old_archive_extraction=yes ;; | ||
25170 | + *) | ||
25171 | + lock_old_archive_extraction=no ;; | ||
25172 | +esac | ||
25173 | + | ||
25174 | + | ||
25175 | + | ||
25176 | + | ||
25177 | + | ||
25178 | + | ||
25179 | |||
25180 | |||
25181 | |||
25182 | @@ -7082,8 +7362,8 @@ esac | ||
25183 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
25184 | |||
25185 | # Transform an extracted symbol line into symbol name and symbol address | ||
25186 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
25187 | -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'" | ||
25188 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
25189 | +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'" | ||
25190 | |||
25191 | # Handle CRLF in mingw tool chain | ||
25192 | opt_cr= | ||
25193 | @@ -7119,6 +7399,7 @@ for ac_symprfx in "" "_"; do | ||
25194 | else | ||
25195 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
25196 | fi | ||
25197 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
25198 | |||
25199 | # Check to see that the pipe works correctly. | ||
25200 | pipe_works=no | ||
25201 | @@ -7144,8 +7425,8 @@ _LT_EOF | ||
25202 | test $ac_status = 0; }; then | ||
25203 | # Now try to grab the symbols. | ||
25204 | nlist=conftest.nm | ||
25205 | - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
25206 | - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
25207 | + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | ||
25208 | + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | ||
25209 | ac_status=$? | ||
25210 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25211 | test $ac_status = 0; } && test -s "$nlist"; then | ||
25212 | @@ -7160,6 +7441,18 @@ _LT_EOF | ||
25213 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
25214 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
25215 | cat <<_LT_EOF > conftest.$ac_ext | ||
25216 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
25217 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
25218 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
25219 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
25220 | +# define LT_DLSYM_CONST | ||
25221 | +#elif defined(__osf__) | ||
25222 | +/* This system does not cope well with relocations in const data. */ | ||
25223 | +# define LT_DLSYM_CONST | ||
25224 | +#else | ||
25225 | +# define LT_DLSYM_CONST const | ||
25226 | +#endif | ||
25227 | + | ||
25228 | #ifdef __cplusplus | ||
25229 | extern "C" { | ||
25230 | #endif | ||
25231 | @@ -7171,7 +7464,7 @@ _LT_EOF | ||
25232 | cat <<_LT_EOF >> conftest.$ac_ext | ||
25233 | |||
25234 | /* The mapping between symbol names and symbols. */ | ||
25235 | -const struct { | ||
25236 | +LT_DLSYM_CONST struct { | ||
25237 | const char *name; | ||
25238 | void *address; | ||
25239 | } | ||
25240 | @@ -7197,8 +7490,8 @@ static const void *lt_preloaded_setup() | ||
25241 | _LT_EOF | ||
25242 | # Now try linking the two files. | ||
25243 | mv conftest.$ac_objext conftstm.$ac_objext | ||
25244 | - lt_save_LIBS="$LIBS" | ||
25245 | - lt_save_CFLAGS="$CFLAGS" | ||
25246 | + lt_globsym_save_LIBS=$LIBS | ||
25247 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
25248 | LIBS="conftstm.$ac_objext" | ||
25249 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
25250 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
25251 | @@ -7208,8 +7501,8 @@ _LT_EOF | ||
25252 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
25253 | pipe_works=yes | ||
25254 | fi | ||
25255 | - LIBS="$lt_save_LIBS" | ||
25256 | - CFLAGS="$lt_save_CFLAGS" | ||
25257 | + LIBS=$lt_globsym_save_LIBS | ||
25258 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
25259 | else | ||
25260 | echo "cannot find nm_test_func in $nlist" >&5 | ||
25261 | fi | ||
25262 | @@ -7246,6 +7539,21 @@ else | ||
25263 | $as_echo "ok" >&6; } | ||
25264 | fi | ||
25265 | |||
25266 | +# Response file support. | ||
25267 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
25268 | + nm_file_list_spec='@' | ||
25269 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
25270 | + nm_file_list_spec='@' | ||
25271 | +fi | ||
25272 | + | ||
25273 | + | ||
25274 | + | ||
25275 | + | ||
25276 | + | ||
25277 | + | ||
25278 | + | ||
25279 | + | ||
25280 | + | ||
25281 | |||
25282 | |||
25283 | |||
25284 | @@ -7264,6 +7572,40 @@ fi | ||
25285 | |||
25286 | |||
25287 | |||
25288 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
25289 | +$as_echo_n "checking for sysroot... " >&6; } | ||
25290 | + | ||
25291 | +# Check whether --with-libtool-sysroot was given. | ||
25292 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
25293 | + withval=$with_libtool_sysroot; | ||
25294 | +else | ||
25295 | + with_libtool_sysroot=no | ||
25296 | +fi | ||
25297 | + | ||
25298 | + | ||
25299 | +lt_sysroot= | ||
25300 | +case ${with_libtool_sysroot} in #( | ||
25301 | + yes) | ||
25302 | + if test "$GCC" = yes; then | ||
25303 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
25304 | + fi | ||
25305 | + ;; #( | ||
25306 | + /*) | ||
25307 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
25308 | + ;; #( | ||
25309 | + no|'') | ||
25310 | + ;; #( | ||
25311 | + *) | ||
25312 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
25313 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
25314 | + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 | ||
25315 | + ;; | ||
25316 | +esac | ||
25317 | + | ||
25318 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
25319 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
25320 | + | ||
25321 | + | ||
25322 | |||
25323 | |||
25324 | |||
25325 | @@ -7298,7 +7640,7 @@ ia64-*-hpux*) | ||
25326 | ;; | ||
25327 | *-*-irix6*) | ||
25328 | # Find out which ABI we are using. | ||
25329 | - echo '#line 7301 "configure"' > conftest.$ac_ext | ||
25330 | + echo '#line '$LINENO' "configure"' > conftest.$ac_ext | ||
25331 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
25332 | (eval $ac_compile) 2>&5 | ||
25333 | ac_status=$? | ||
25334 | @@ -7460,6 +7802,123 @@ esac | ||
25335 | |||
25336 | need_locks="$enable_libtool_lock" | ||
25337 | |||
25338 | +if test -n "$ac_tool_prefix"; then | ||
25339 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
25340 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
25341 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
25342 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
25343 | +if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then : | ||
25344 | + $as_echo_n "(cached) " >&6 | ||
25345 | +else | ||
25346 | + if test -n "$MANIFEST_TOOL"; then | ||
25347 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
25348 | +else | ||
25349 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25350 | +for as_dir in $PATH | ||
25351 | +do | ||
25352 | + IFS=$as_save_IFS | ||
25353 | + test -z "$as_dir" && as_dir=. | ||
25354 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
25355 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
25356 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
25357 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
25358 | + break 2 | ||
25359 | + fi | ||
25360 | +done | ||
25361 | + done | ||
25362 | +IFS=$as_save_IFS | ||
25363 | + | ||
25364 | +fi | ||
25365 | +fi | ||
25366 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
25367 | +if test -n "$MANIFEST_TOOL"; then | ||
25368 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
25369 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
25370 | +else | ||
25371 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25372 | +$as_echo "no" >&6; } | ||
25373 | +fi | ||
25374 | + | ||
25375 | + | ||
25376 | +fi | ||
25377 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
25378 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
25379 | + # Extract the first word of "mt", so it can be a program name with args. | ||
25380 | +set dummy mt; ac_word=$2 | ||
25381 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
25382 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
25383 | +if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then : | ||
25384 | + $as_echo_n "(cached) " >&6 | ||
25385 | +else | ||
25386 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
25387 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
25388 | +else | ||
25389 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25390 | +for as_dir in $PATH | ||
25391 | +do | ||
25392 | + IFS=$as_save_IFS | ||
25393 | + test -z "$as_dir" && as_dir=. | ||
25394 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
25395 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
25396 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
25397 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
25398 | + break 2 | ||
25399 | + fi | ||
25400 | +done | ||
25401 | + done | ||
25402 | +IFS=$as_save_IFS | ||
25403 | + | ||
25404 | +fi | ||
25405 | +fi | ||
25406 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
25407 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
25408 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
25409 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
25410 | +else | ||
25411 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25412 | +$as_echo "no" >&6; } | ||
25413 | +fi | ||
25414 | + | ||
25415 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
25416 | + MANIFEST_TOOL=":" | ||
25417 | + else | ||
25418 | + case $cross_compiling:$ac_tool_warned in | ||
25419 | +yes:) | ||
25420 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
25421 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
25422 | +ac_tool_warned=yes ;; | ||
25423 | +esac | ||
25424 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
25425 | + fi | ||
25426 | +else | ||
25427 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
25428 | +fi | ||
25429 | + | ||
25430 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
25431 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
25432 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
25433 | +if test "${lt_cv_path_mainfest_tool+set}" = set; then : | ||
25434 | + $as_echo_n "(cached) " >&6 | ||
25435 | +else | ||
25436 | + lt_cv_path_mainfest_tool=no | ||
25437 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
25438 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
25439 | + cat conftest.err >&5 | ||
25440 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
25441 | + lt_cv_path_mainfest_tool=yes | ||
25442 | + fi | ||
25443 | + rm -f conftest* | ||
25444 | +fi | ||
25445 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
25446 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
25447 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
25448 | + MANIFEST_TOOL=: | ||
25449 | +fi | ||
25450 | + | ||
25451 | + | ||
25452 | + | ||
25453 | + | ||
25454 | + | ||
25455 | |||
25456 | case $host_os in | ||
25457 | rhapsody* | darwin*) | ||
25458 | @@ -8010,6 +8469,38 @@ rm -f core conftest.err conftest.$ac_obj | ||
25459 | fi | ||
25460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
25461 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
25462 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | ||
25463 | +$as_echo_n "checking for -force_load linker flag... " >&6; } | ||
25464 | +if test "${lt_cv_ld_force_load+set}" = set; then : | ||
25465 | + $as_echo_n "(cached) " >&6 | ||
25466 | +else | ||
25467 | + lt_cv_ld_force_load=no | ||
25468 | + cat > conftest.c << _LT_EOF | ||
25469 | +int forced_loaded() { return 2;} | ||
25470 | +_LT_EOF | ||
25471 | + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | ||
25472 | + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
25473 | + echo "$AR cru libconftest.a conftest.o" >&5 | ||
25474 | + $AR cru libconftest.a conftest.o 2>&5 | ||
25475 | + echo "$RANLIB libconftest.a" >&5 | ||
25476 | + $RANLIB libconftest.a 2>&5 | ||
25477 | + cat > conftest.c << _LT_EOF | ||
25478 | +int main() { return 0;} | ||
25479 | +_LT_EOF | ||
25480 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | ||
25481 | + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
25482 | + _lt_result=$? | ||
25483 | + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
25484 | + lt_cv_ld_force_load=yes | ||
25485 | + else | ||
25486 | + cat conftest.err >&5 | ||
25487 | + fi | ||
25488 | + rm -f conftest.err libconftest.a conftest conftest.c | ||
25489 | + rm -rf conftest.dSYM | ||
25490 | + | ||
25491 | +fi | ||
25492 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | ||
25493 | +$as_echo "$lt_cv_ld_force_load" >&6; } | ||
25494 | case $host_os in | ||
25495 | rhapsody* | darwin1.[012]) | ||
25496 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
25497 | @@ -8037,7 +8528,7 @@ $as_echo "$lt_cv_ld_exported_symbols_lis | ||
25498 | else | ||
25499 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
25500 | fi | ||
25501 | - if test "$DSYMUTIL" != ":"; then | ||
25502 | + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
25503 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
25504 | else | ||
25505 | _lt_dsymutil= | ||
25506 | @@ -8060,6 +8551,8 @@ done | ||
25507 | |||
25508 | |||
25509 | |||
25510 | + | ||
25511 | + | ||
25512 | # Set options | ||
25513 | |||
25514 | |||
25515 | @@ -8186,7 +8679,9 @@ fi | ||
25516 | LIBTOOL_DEPS="$ltmain" | ||
25517 | |||
25518 | # Always use our own libtool. | ||
25519 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
25520 | +LIBTOOL='$(SHELL) $(top_builddir)' | ||
25521 | +LIBTOOL="$LIBTOOL/${host_alias}-libtool" | ||
25522 | + | ||
25523 | |||
25524 | |||
25525 | |||
25526 | @@ -8261,19 +8756,6 @@ _ACEOF | ||
25527 | |||
25528 | |||
25529 | |||
25530 | - | ||
25531 | - | ||
25532 | - | ||
25533 | - | ||
25534 | - | ||
25535 | - | ||
25536 | - | ||
25537 | - | ||
25538 | - | ||
25539 | - | ||
25540 | - | ||
25541 | - | ||
25542 | - | ||
25543 | case $host_os in | ||
25544 | aix3*) | ||
25545 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
25546 | @@ -8286,25 +8768,8 @@ aix3*) | ||
25547 | ;; | ||
25548 | esac | ||
25549 | |||
25550 | -# Sed substitution that helps us do robust quoting. It backslashifies | ||
25551 | -# metacharacters that are still active within double-quoted strings. | ||
25552 | -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
25553 | - | ||
25554 | -# Same as above, but do not quote variable references. | ||
25555 | -double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
25556 | - | ||
25557 | -# Sed substitution to delay expansion of an escaped shell variable in a | ||
25558 | -# double_quote_subst'ed string. | ||
25559 | -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
25560 | - | ||
25561 | -# Sed substitution to delay expansion of an escaped single quote. | ||
25562 | -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
25563 | - | ||
25564 | -# Sed substitution to avoid accidental globbing in evaled expressions | ||
25565 | -no_glob_subst='s/\*/\\\*/g' | ||
25566 | - | ||
25567 | # Global variables: | ||
25568 | -ofile=libtool | ||
25569 | +ofile=${host_alias}-libtool | ||
25570 | can_build_shared=yes | ||
25571 | |||
25572 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
25573 | @@ -8331,7 +8796,7 @@ for cc_temp in $compiler""; do | ||
25574 | *) break;; | ||
25575 | esac | ||
25576 | done | ||
25577 | -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
25578 | +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
25579 | |||
25580 | |||
25581 | # Only perform the check for file, if the check method requires it | ||
25582 | @@ -8540,7 +9005,12 @@ if test -n "$compiler"; then | ||
25583 | lt_prog_compiler_no_builtin_flag= | ||
25584 | |||
25585 | if test "$GCC" = yes; then | ||
25586 | - lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
25587 | + case $cc_basename in | ||
25588 | + nvcc*) | ||
25589 | + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | ||
25590 | + *) | ||
25591 | + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | ||
25592 | + esac | ||
25593 | |||
25594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
25595 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
25596 | @@ -8560,15 +9030,15 @@ else | ||
25597 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
25598 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
25599 | -e 's:$: $lt_compiler_flag:'` | ||
25600 | - (eval echo "\"\$as_me:8563: $lt_compile\"" >&5) | ||
25601 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
25602 | (eval "$lt_compile" 2>conftest.err) | ||
25603 | ac_status=$? | ||
25604 | cat conftest.err >&5 | ||
25605 | - echo "$as_me:8567: \$? = $ac_status" >&5 | ||
25606 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25607 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
25608 | # The compiler can only warn and ignore the option if not recognized | ||
25609 | # So say no if there are warnings other than the usual output. | ||
25610 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
25611 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
25612 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
25613 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
25614 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
25615 | @@ -8597,8 +9067,6 @@ fi | ||
25616 | lt_prog_compiler_pic= | ||
25617 | lt_prog_compiler_static= | ||
25618 | |||
25619 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
25620 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
25621 | |||
25622 | if test "$GCC" = yes; then | ||
25623 | lt_prog_compiler_wl='-Wl,' | ||
25624 | @@ -8646,6 +9114,12 @@ $as_echo_n "checking for $compiler optio | ||
25625 | lt_prog_compiler_pic='-fno-common' | ||
25626 | ;; | ||
25627 | |||
25628 | + haiku*) | ||
25629 | + # PIC is the default for Haiku. | ||
25630 | + # The "-static" flag exists, but is broken. | ||
25631 | + lt_prog_compiler_static= | ||
25632 | + ;; | ||
25633 | + | ||
25634 | hpux*) | ||
25635 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
25636 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
25637 | @@ -8688,6 +9162,13 @@ $as_echo_n "checking for $compiler optio | ||
25638 | lt_prog_compiler_pic='-fPIC' | ||
25639 | ;; | ||
25640 | esac | ||
25641 | + | ||
25642 | + case $cc_basename in | ||
25643 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
25644 | + lt_prog_compiler_wl='-Xlinker ' | ||
25645 | + lt_prog_compiler_pic='-Xcompiler -fPIC' | ||
25646 | + ;; | ||
25647 | + esac | ||
25648 | else | ||
25649 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
25650 | case $host_os in | ||
25651 | @@ -8750,7 +9231,13 @@ $as_echo_n "checking for $compiler optio | ||
25652 | lt_prog_compiler_pic='--shared' | ||
25653 | lt_prog_compiler_static='--static' | ||
25654 | ;; | ||
25655 | - pgcc* | pgf77* | pgf90* | pgf95*) | ||
25656 | + nagfor*) | ||
25657 | + # NAG Fortran compiler | ||
25658 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
25659 | + lt_prog_compiler_pic='-PIC' | ||
25660 | + lt_prog_compiler_static='-Bstatic' | ||
25661 | + ;; | ||
25662 | + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
25663 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
25664 | # which looks to be a dead project) | ||
25665 | lt_prog_compiler_wl='-Wl,' | ||
25666 | @@ -8762,25 +9249,25 @@ $as_echo_n "checking for $compiler optio | ||
25667 | # All Alpha code is PIC. | ||
25668 | lt_prog_compiler_static='-non_shared' | ||
25669 | ;; | ||
25670 | - xl*) | ||
25671 | - # IBM XL C 8.0/Fortran 10.1 on PPC | ||
25672 | + xl* | bgxl* | bgf* | mpixl*) | ||
25673 | + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | ||
25674 | lt_prog_compiler_wl='-Wl,' | ||
25675 | lt_prog_compiler_pic='-qpic' | ||
25676 | lt_prog_compiler_static='-qstaticlink' | ||
25677 | ;; | ||
25678 | *) | ||
25679 | case `$CC -V 2>&1 | sed 5q` in | ||
25680 | - *Sun\ C*) | ||
25681 | - # Sun C 5.9 | ||
25682 | + *Sun\ F* | *Sun*Fortran*) | ||
25683 | + # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
25684 | lt_prog_compiler_pic='-KPIC' | ||
25685 | lt_prog_compiler_static='-Bstatic' | ||
25686 | - lt_prog_compiler_wl='-Wl,' | ||
25687 | + lt_prog_compiler_wl='' | ||
25688 | ;; | ||
25689 | - *Sun\ F*) | ||
25690 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
25691 | + *Sun\ C*) | ||
25692 | + # Sun C 5.9 | ||
25693 | lt_prog_compiler_pic='-KPIC' | ||
25694 | lt_prog_compiler_static='-Bstatic' | ||
25695 | - lt_prog_compiler_wl='' | ||
25696 | + lt_prog_compiler_wl='-Wl,' | ||
25697 | ;; | ||
25698 | esac | ||
25699 | ;; | ||
25700 | @@ -8812,7 +9299,7 @@ $as_echo_n "checking for $compiler optio | ||
25701 | lt_prog_compiler_pic='-KPIC' | ||
25702 | lt_prog_compiler_static='-Bstatic' | ||
25703 | case $cc_basename in | ||
25704 | - f77* | f90* | f95*) | ||
25705 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
25706 | lt_prog_compiler_wl='-Qoption ld ';; | ||
25707 | *) | ||
25708 | lt_prog_compiler_wl='-Wl,';; | ||
25709 | @@ -8869,13 +9356,17 @@ case $host_os in | ||
25710 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
25711 | ;; | ||
25712 | esac | ||
25713 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
25714 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
25715 | - | ||
25716 | - | ||
25717 | - | ||
25718 | - | ||
25719 | |||
25720 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
25721 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
25722 | +if test "${lt_cv_prog_compiler_pic+set}" = set; then : | ||
25723 | + $as_echo_n "(cached) " >&6 | ||
25724 | +else | ||
25725 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
25726 | +fi | ||
25727 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
25728 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
25729 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
25730 | |||
25731 | # | ||
25732 | # Check to make sure the PIC flag actually works. | ||
25733 | @@ -8899,15 +9390,15 @@ else | ||
25734 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
25735 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
25736 | -e 's:$: $lt_compiler_flag:'` | ||
25737 | - (eval echo "\"\$as_me:8902: $lt_compile\"" >&5) | ||
25738 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
25739 | (eval "$lt_compile" 2>conftest.err) | ||
25740 | ac_status=$? | ||
25741 | cat conftest.err >&5 | ||
25742 | - echo "$as_me:8906: \$? = $ac_status" >&5 | ||
25743 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25744 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
25745 | # The compiler can only warn and ignore the option if not recognized | ||
25746 | # So say no if there are warnings other than the usual output. | ||
25747 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
25748 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
25749 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
25750 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
25751 | lt_cv_prog_compiler_pic_works=yes | ||
25752 | @@ -8936,6 +9427,11 @@ fi | ||
25753 | |||
25754 | |||
25755 | |||
25756 | + | ||
25757 | + | ||
25758 | + | ||
25759 | + | ||
25760 | + | ||
25761 | # | ||
25762 | # Check to make sure the static flag actually works. | ||
25763 | # | ||
25764 | @@ -8955,7 +9451,7 @@ else | ||
25765 | if test -s conftest.err; then | ||
25766 | # Append any errors to the config.log. | ||
25767 | cat conftest.err 1>&5 | ||
25768 | - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
25769 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
25770 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
25771 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
25772 | lt_cv_prog_compiler_static_works=yes | ||
25773 | @@ -9004,16 +9500,16 @@ else | ||
25774 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
25775 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
25776 | -e 's:$: $lt_compiler_flag:'` | ||
25777 | - (eval echo "\"\$as_me:9007: $lt_compile\"" >&5) | ||
25778 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
25779 | (eval "$lt_compile" 2>out/conftest.err) | ||
25780 | ac_status=$? | ||
25781 | cat out/conftest.err >&5 | ||
25782 | - echo "$as_me:9011: \$? = $ac_status" >&5 | ||
25783 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25784 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
25785 | then | ||
25786 | # The compiler can only warn and ignore the option if not recognized | ||
25787 | # So say no if there are warnings | ||
25788 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
25789 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
25790 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
25791 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
25792 | lt_cv_prog_compiler_c_o=yes | ||
25793 | @@ -9059,16 +9555,16 @@ else | ||
25794 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
25795 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
25796 | -e 's:$: $lt_compiler_flag:'` | ||
25797 | - (eval echo "\"\$as_me:9062: $lt_compile\"" >&5) | ||
25798 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
25799 | (eval "$lt_compile" 2>out/conftest.err) | ||
25800 | ac_status=$? | ||
25801 | cat out/conftest.err >&5 | ||
25802 | - echo "$as_me:9066: \$? = $ac_status" >&5 | ||
25803 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25804 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
25805 | then | ||
25806 | # The compiler can only warn and ignore the option if not recognized | ||
25807 | # So say no if there are warnings | ||
25808 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
25809 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
25810 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
25811 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
25812 | lt_cv_prog_compiler_c_o=yes | ||
25813 | @@ -9181,7 +9677,33 @@ $as_echo_n "checking whether the $compil | ||
25814 | esac | ||
25815 | |||
25816 | ld_shlibs=yes | ||
25817 | + | ||
25818 | + # On some targets, GNU ld is compatible enough with the native linker | ||
25819 | + # that we're better off using the native interface for both. | ||
25820 | + lt_use_gnu_ld_interface=no | ||
25821 | if test "$with_gnu_ld" = yes; then | ||
25822 | + case $host_os in | ||
25823 | + aix*) | ||
25824 | + # The AIX port of GNU ld has always aspired to compatibility | ||
25825 | + # with the native linker. However, as the warning in the GNU ld | ||
25826 | + # block says, versions before 2.19.5* couldn't really create working | ||
25827 | + # shared libraries, regardless of the interface used. | ||
25828 | + case `$LD -v 2>&1` in | ||
25829 | + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | ||
25830 | + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | ||
25831 | + *\ \(GNU\ Binutils\)\ [3-9]*) ;; | ||
25832 | + *) | ||
25833 | + lt_use_gnu_ld_interface=yes | ||
25834 | + ;; | ||
25835 | + esac | ||
25836 | + ;; | ||
25837 | + *) | ||
25838 | + lt_use_gnu_ld_interface=yes | ||
25839 | + ;; | ||
25840 | + esac | ||
25841 | + fi | ||
25842 | + | ||
25843 | + if test "$lt_use_gnu_ld_interface" = yes; then | ||
25844 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
25845 | wlarc='${wl}' | ||
25846 | |||
25847 | @@ -9199,6 +9721,7 @@ $as_echo_n "checking whether the $compil | ||
25848 | fi | ||
25849 | supports_anon_versioning=no | ||
25850 | case `$LD -v 2>&1` in | ||
25851 | + *GNU\ gold*) supports_anon_versioning=yes ;; | ||
25852 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
25853 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
25854 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
25855 | @@ -9214,11 +9737,12 @@ $as_echo_n "checking whether the $compil | ||
25856 | ld_shlibs=no | ||
25857 | cat <<_LT_EOF 1>&2 | ||
25858 | |||
25859 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
25860 | +*** Warning: the GNU linker, at least up to release 2.19, is reported | ||
25861 | *** to be unable to reliably create shared libraries on AIX. | ||
25862 | *** Therefore, libtool is disabling shared libraries support. If you | ||
25863 | -*** really care for shared libraries, you may want to modify your PATH | ||
25864 | -*** so that a non-GNU linker is found, and then restart. | ||
25865 | +*** really care for shared libraries, you may want to install binutils | ||
25866 | +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | ||
25867 | +*** You will then need to restart the configuration process. | ||
25868 | |||
25869 | _LT_EOF | ||
25870 | fi | ||
25871 | @@ -9254,10 +9778,12 @@ _LT_EOF | ||
25872 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
25873 | # as there is no search path for DLLs. | ||
25874 | hardcode_libdir_flag_spec='-L$libdir' | ||
25875 | + export_dynamic_flag_spec='${wl}--export-all-symbols' | ||
25876 | allow_undefined_flag=unsupported | ||
25877 | always_export_symbols=no | ||
25878 | enable_shared_with_static_runtimes=yes | ||
25879 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
25880 | + 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' | ||
25881 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
25882 | |||
25883 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
25884 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
25885 | @@ -9275,6 +9801,11 @@ _LT_EOF | ||
25886 | fi | ||
25887 | ;; | ||
25888 | |||
25889 | + haiku*) | ||
25890 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
25891 | + link_all_deplibs=yes | ||
25892 | + ;; | ||
25893 | + | ||
25894 | interix[3-9]*) | ||
25895 | hardcode_direct=no | ||
25896 | hardcode_shlibpath_var=no | ||
25897 | @@ -9300,15 +9831,16 @@ _LT_EOF | ||
25898 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
25899 | && test "$tmp_diet" = no | ||
25900 | then | ||
25901 | - tmp_addflag= | ||
25902 | + tmp_addflag=' $pic_flag' | ||
25903 | tmp_sharedflag='-shared' | ||
25904 | case $cc_basename,$host_cpu in | ||
25905 | pgcc*) # Portland Group C compiler | ||
25906 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
25907 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
25908 | tmp_addflag=' $pic_flag' | ||
25909 | ;; | ||
25910 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
25911 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
25912 | + pgf77* | pgf90* | pgf95* | pgfortran*) | ||
25913 | + # Portland Group f77 and f90 compilers | ||
25914 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
25915 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
25916 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
25917 | tmp_addflag=' -i_dynamic' ;; | ||
25918 | @@ -9319,13 +9851,17 @@ _LT_EOF | ||
25919 | lf95*) # Lahey Fortran 8.1 | ||
25920 | whole_archive_flag_spec= | ||
25921 | tmp_sharedflag='--shared' ;; | ||
25922 | - xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
25923 | + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
25924 | tmp_sharedflag='-qmkshrobj' | ||
25925 | tmp_addflag= ;; | ||
25926 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
25927 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
25928 | + compiler_needs_object=yes | ||
25929 | + ;; | ||
25930 | esac | ||
25931 | case `$CC -V 2>&1 | sed 5q` in | ||
25932 | *Sun\ C*) # Sun C 5.9 | ||
25933 | - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
25934 | + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
25935 | compiler_needs_object=yes | ||
25936 | tmp_sharedflag='-G' ;; | ||
25937 | *Sun\ F*) # Sun Fortran 8.3 | ||
25938 | @@ -9341,17 +9877,17 @@ _LT_EOF | ||
25939 | fi | ||
25940 | |||
25941 | case $cc_basename in | ||
25942 | - xlf*) | ||
25943 | + xlf* | bgf* | bgxlf* | mpixlf*) | ||
25944 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
25945 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
25946 | hardcode_libdir_flag_spec= | ||
25947 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
25948 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
25949 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
25950 | if test "x$supports_anon_versioning" = xyes; then | ||
25951 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
25952 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
25953 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
25954 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
25955 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
25956 | fi | ||
25957 | ;; | ||
25958 | esac | ||
25959 | @@ -9365,8 +9901,8 @@ _LT_EOF | ||
25960 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
25961 | wlarc= | ||
25962 | else | ||
25963 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
25964 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
25965 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
25966 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
25967 | fi | ||
25968 | ;; | ||
25969 | |||
25970 | @@ -9384,8 +9920,8 @@ _LT_EOF | ||
25971 | |||
25972 | _LT_EOF | ||
25973 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
25974 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
25975 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
25976 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
25977 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
25978 | else | ||
25979 | ld_shlibs=no | ||
25980 | fi | ||
25981 | @@ -9431,8 +9967,8 @@ _LT_EOF | ||
25982 | |||
25983 | *) | ||
25984 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
25985 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
25986 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
25987 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
25988 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
25989 | else | ||
25990 | ld_shlibs=no | ||
25991 | fi | ||
25992 | @@ -9472,8 +10008,10 @@ _LT_EOF | ||
25993 | else | ||
25994 | # If we're using GNU nm, then we don't want the "-C" option. | ||
25995 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
25996 | + # Also, AIX nm treats weak defined symbols like other global | ||
25997 | + # defined symbols, whereas GNU nm marks them as "W". | ||
25998 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
25999 | - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
26000 | + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
26001 | else | ||
26002 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
26003 | fi | ||
26004 | @@ -9560,7 +10098,13 @@ _LT_EOF | ||
26005 | allow_undefined_flag='-berok' | ||
26006 | # Determine the default libpath from the value encoded in an | ||
26007 | # empty executable. | ||
26008 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26009 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
26010 | + aix_libpath=$lt_cv_aix_libpath | ||
26011 | +else | ||
26012 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
26013 | + $as_echo_n "(cached) " >&6 | ||
26014 | +else | ||
26015 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26016 | /* end confdefs.h. */ | ||
26017 | |||
26018 | int | ||
26019 | @@ -9573,25 +10117,32 @@ main () | ||
26020 | _ACEOF | ||
26021 | if ac_fn_c_try_link "$LINENO"; then : | ||
26022 | |||
26023 | -lt_aix_libpath_sed=' | ||
26024 | - /Import File Strings/,/^$/ { | ||
26025 | - /^0/ { | ||
26026 | - s/^0 *\(.*\)$/\1/ | ||
26027 | - p | ||
26028 | - } | ||
26029 | - }' | ||
26030 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
26031 | -# Check for a 64-bit object if we didn't find anything. | ||
26032 | -if test -z "$aix_libpath"; then | ||
26033 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
26034 | -fi | ||
26035 | + lt_aix_libpath_sed=' | ||
26036 | + /Import File Strings/,/^$/ { | ||
26037 | + /^0/ { | ||
26038 | + s/^0 *\([^ ]*\) *$/\1/ | ||
26039 | + p | ||
26040 | + } | ||
26041 | + }' | ||
26042 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
26043 | + # Check for a 64-bit object if we didn't find anything. | ||
26044 | + if test -z "$lt_cv_aix_libpath_"; then | ||
26045 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
26046 | + fi | ||
26047 | fi | ||
26048 | rm -f core conftest.err conftest.$ac_objext \ | ||
26049 | conftest$ac_exeext conftest.$ac_ext | ||
26050 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
26051 | + if test -z "$lt_cv_aix_libpath_"; then | ||
26052 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
26053 | + fi | ||
26054 | + | ||
26055 | +fi | ||
26056 | + | ||
26057 | + aix_libpath=$lt_cv_aix_libpath_ | ||
26058 | +fi | ||
26059 | |||
26060 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
26061 | - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
26062 | + 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" | ||
26063 | else | ||
26064 | if test "$host_cpu" = ia64; then | ||
26065 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
26066 | @@ -9600,7 +10151,13 @@ if test -z "$aix_libpath"; then aix_libp | ||
26067 | else | ||
26068 | # Determine the default libpath from the value encoded in an | ||
26069 | # empty executable. | ||
26070 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26071 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
26072 | + aix_libpath=$lt_cv_aix_libpath | ||
26073 | +else | ||
26074 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
26075 | + $as_echo_n "(cached) " >&6 | ||
26076 | +else | ||
26077 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26078 | /* end confdefs.h. */ | ||
26079 | |||
26080 | int | ||
26081 | @@ -9613,30 +10170,42 @@ main () | ||
26082 | _ACEOF | ||
26083 | if ac_fn_c_try_link "$LINENO"; then : | ||
26084 | |||
26085 | -lt_aix_libpath_sed=' | ||
26086 | - /Import File Strings/,/^$/ { | ||
26087 | - /^0/ { | ||
26088 | - s/^0 *\(.*\)$/\1/ | ||
26089 | - p | ||
26090 | - } | ||
26091 | - }' | ||
26092 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
26093 | -# Check for a 64-bit object if we didn't find anything. | ||
26094 | -if test -z "$aix_libpath"; then | ||
26095 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
26096 | -fi | ||
26097 | + lt_aix_libpath_sed=' | ||
26098 | + /Import File Strings/,/^$/ { | ||
26099 | + /^0/ { | ||
26100 | + s/^0 *\([^ ]*\) *$/\1/ | ||
26101 | + p | ||
26102 | + } | ||
26103 | + }' | ||
26104 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
26105 | + # Check for a 64-bit object if we didn't find anything. | ||
26106 | + if test -z "$lt_cv_aix_libpath_"; then | ||
26107 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
26108 | + fi | ||
26109 | fi | ||
26110 | rm -f core conftest.err conftest.$ac_objext \ | ||
26111 | conftest$ac_exeext conftest.$ac_ext | ||
26112 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
26113 | + if test -z "$lt_cv_aix_libpath_"; then | ||
26114 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
26115 | + fi | ||
26116 | + | ||
26117 | +fi | ||
26118 | + | ||
26119 | + aix_libpath=$lt_cv_aix_libpath_ | ||
26120 | +fi | ||
26121 | |||
26122 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
26123 | # Warning - without using the other run time loading flags, | ||
26124 | # -berok will link without error, but may produce a broken library. | ||
26125 | no_undefined_flag=' ${wl}-bernotok' | ||
26126 | allow_undefined_flag=' ${wl}-berok' | ||
26127 | - # Exported symbols can be pulled into shared objects from archives | ||
26128 | - whole_archive_flag_spec='$convenience' | ||
26129 | + if test "$with_gnu_ld" = yes; then | ||
26130 | + # We only use this code for GNU lds that support --whole-archive. | ||
26131 | + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
26132 | + else | ||
26133 | + # Exported symbols can be pulled into shared objects from archives | ||
26134 | + whole_archive_flag_spec='$convenience' | ||
26135 | + fi | ||
26136 | archive_cmds_need_lc=yes | ||
26137 | # This is similar to how AIX traditionally builds its shared libraries. | ||
26138 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
26139 | @@ -9668,20 +10237,63 @@ if test -z "$aix_libpath"; then aix_libp | ||
26140 | # Microsoft Visual C++. | ||
26141 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
26142 | # no search path for DLLs. | ||
26143 | - hardcode_libdir_flag_spec=' ' | ||
26144 | - allow_undefined_flag=unsupported | ||
26145 | - # Tell ltmain to make .lib files, not .a files. | ||
26146 | - libext=lib | ||
26147 | - # Tell ltmain to make .dll files, not .so files. | ||
26148 | - shrext_cmds=".dll" | ||
26149 | - # FIXME: Setting linknames here is a bad hack. | ||
26150 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
26151 | - # The linker will automatically build a .lib file if we build a DLL. | ||
26152 | - old_archive_from_new_cmds='true' | ||
26153 | - # FIXME: Should let the user specify the lib program. | ||
26154 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
26155 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
26156 | - enable_shared_with_static_runtimes=yes | ||
26157 | + case $cc_basename in | ||
26158 | + cl*) | ||
26159 | + # Native MSVC | ||
26160 | + hardcode_libdir_flag_spec=' ' | ||
26161 | + allow_undefined_flag=unsupported | ||
26162 | + always_export_symbols=yes | ||
26163 | + file_list_spec='@' | ||
26164 | + # Tell ltmain to make .lib files, not .a files. | ||
26165 | + libext=lib | ||
26166 | + # Tell ltmain to make .dll files, not .so files. | ||
26167 | + shrext_cmds=".dll" | ||
26168 | + # FIXME: Setting linknames here is a bad hack. | ||
26169 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
26170 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
26171 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
26172 | + else | ||
26173 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
26174 | + fi~ | ||
26175 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
26176 | + linknames=' | ||
26177 | + # The linker will not automatically build a static lib if we build a DLL. | ||
26178 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
26179 | + enable_shared_with_static_runtimes=yes | ||
26180 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
26181 | + # Don't use ranlib | ||
26182 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
26183 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
26184 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
26185 | + case $lt_outputfile in | ||
26186 | + *.exe|*.EXE) ;; | ||
26187 | + *) | ||
26188 | + lt_outputfile="$lt_outputfile.exe" | ||
26189 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
26190 | + ;; | ||
26191 | + esac~ | ||
26192 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
26193 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
26194 | + $RM "$lt_outputfile.manifest"; | ||
26195 | + fi' | ||
26196 | + ;; | ||
26197 | + *) | ||
26198 | + # Assume MSVC wrapper | ||
26199 | + hardcode_libdir_flag_spec=' ' | ||
26200 | + allow_undefined_flag=unsupported | ||
26201 | + # Tell ltmain to make .lib files, not .a files. | ||
26202 | + libext=lib | ||
26203 | + # Tell ltmain to make .dll files, not .so files. | ||
26204 | + shrext_cmds=".dll" | ||
26205 | + # FIXME: Setting linknames here is a bad hack. | ||
26206 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
26207 | + # The linker will automatically build a .lib file if we build a DLL. | ||
26208 | + old_archive_from_new_cmds='true' | ||
26209 | + # FIXME: Should let the user specify the lib program. | ||
26210 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
26211 | + enable_shared_with_static_runtimes=yes | ||
26212 | + ;; | ||
26213 | + esac | ||
26214 | ;; | ||
26215 | |||
26216 | darwin* | rhapsody*) | ||
26217 | @@ -9691,7 +10303,11 @@ if test -z "$aix_libpath"; then aix_libp | ||
26218 | hardcode_direct=no | ||
26219 | hardcode_automatic=yes | ||
26220 | hardcode_shlibpath_var=unsupported | ||
26221 | - whole_archive_flag_spec='' | ||
26222 | + if test "$lt_cv_ld_force_load" = "yes"; then | ||
26223 | + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | ||
26224 | + else | ||
26225 | + whole_archive_flag_spec='' | ||
26226 | + fi | ||
26227 | link_all_deplibs=yes | ||
26228 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
26229 | case $cc_basename in | ||
26230 | @@ -9699,7 +10315,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
26231 | *) _lt_dar_can_shared=$GCC ;; | ||
26232 | esac | ||
26233 | if test "$_lt_dar_can_shared" = "yes"; then | ||
26234 | - output_verbose_link_cmd=echo | ||
26235 | + output_verbose_link_cmd=func_echo_all | ||
26236 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
26237 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
26238 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | ||
26239 | @@ -9742,7 +10358,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
26240 | |||
26241 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
26242 | freebsd* | dragonfly*) | ||
26243 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
26244 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
26245 | hardcode_libdir_flag_spec='-R$libdir' | ||
26246 | hardcode_direct=yes | ||
26247 | hardcode_shlibpath_var=no | ||
26248 | @@ -9750,7 +10366,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
26249 | |||
26250 | hpux9*) | ||
26251 | if test "$GCC" = yes; then | ||
26252 | - 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' | ||
26253 | + 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' | ||
26254 | else | ||
26255 | 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' | ||
26256 | fi | ||
26257 | @@ -9765,8 +10381,8 @@ if test -z "$aix_libpath"; then aix_libp | ||
26258 | ;; | ||
26259 | |||
26260 | hpux10*) | ||
26261 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
26262 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
26263 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
26264 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
26265 | else | ||
26266 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
26267 | fi | ||
26268 | @@ -9784,16 +10400,16 @@ if test -z "$aix_libpath"; then aix_libp | ||
26269 | ;; | ||
26270 | |||
26271 | hpux11*) | ||
26272 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
26273 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
26274 | case $host_cpu in | ||
26275 | hppa*64*) | ||
26276 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
26277 | ;; | ||
26278 | ia64*) | ||
26279 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
26280 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
26281 | ;; | ||
26282 | *) | ||
26283 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
26284 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
26285 | ;; | ||
26286 | esac | ||
26287 | else | ||
26288 | @@ -9805,7 +10421,46 @@ if test -z "$aix_libpath"; then aix_libp | ||
26289 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
26290 | ;; | ||
26291 | *) | ||
26292 | - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
26293 | + | ||
26294 | + # Older versions of the 11.00 compiler do not understand -b yet | ||
26295 | + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | ||
26296 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | ||
26297 | +$as_echo_n "checking if $CC understands -b... " >&6; } | ||
26298 | +if test "${lt_cv_prog_compiler__b+set}" = set; then : | ||
26299 | + $as_echo_n "(cached) " >&6 | ||
26300 | +else | ||
26301 | + lt_cv_prog_compiler__b=no | ||
26302 | + save_LDFLAGS="$LDFLAGS" | ||
26303 | + LDFLAGS="$LDFLAGS -b" | ||
26304 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
26305 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
26306 | + # The linker can only warn and ignore the option if not recognized | ||
26307 | + # So say no if there are warnings | ||
26308 | + if test -s conftest.err; then | ||
26309 | + # Append any errors to the config.log. | ||
26310 | + cat conftest.err 1>&5 | ||
26311 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
26312 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
26313 | + if diff conftest.exp conftest.er2 >/dev/null; then | ||
26314 | + lt_cv_prog_compiler__b=yes | ||
26315 | + fi | ||
26316 | + else | ||
26317 | + lt_cv_prog_compiler__b=yes | ||
26318 | + fi | ||
26319 | + fi | ||
26320 | + $RM -r conftest* | ||
26321 | + LDFLAGS="$save_LDFLAGS" | ||
26322 | + | ||
26323 | +fi | ||
26324 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | ||
26325 | +$as_echo "$lt_cv_prog_compiler__b" >&6; } | ||
26326 | + | ||
26327 | +if test x"$lt_cv_prog_compiler__b" = xyes; then | ||
26328 | + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
26329 | +else | ||
26330 | + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
26331 | +fi | ||
26332 | + | ||
26333 | ;; | ||
26334 | esac | ||
26335 | fi | ||
26336 | @@ -9833,26 +10488,39 @@ if test -z "$aix_libpath"; then aix_libp | ||
26337 | |||
26338 | irix5* | irix6* | nonstopux*) | ||
26339 | if test "$GCC" = yes; then | ||
26340 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
26341 | + 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' | ||
26342 | # Try to use the -exported_symbol ld option, if it does not | ||
26343 | # work, assume that -exports_file does not work either and | ||
26344 | # implicitly export all symbols. | ||
26345 | - save_LDFLAGS="$LDFLAGS" | ||
26346 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
26347 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26348 | + # This should be the same for all languages, so no per-tag cache variable. | ||
26349 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
26350 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
26351 | +if test "${lt_cv_irix_exported_symbol+set}" = set; then : | ||
26352 | + $as_echo_n "(cached) " >&6 | ||
26353 | +else | ||
26354 | + save_LDFLAGS="$LDFLAGS" | ||
26355 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
26356 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26357 | /* end confdefs.h. */ | ||
26358 | -int foo(void) {} | ||
26359 | +int foo (void) { return 0; } | ||
26360 | _ACEOF | ||
26361 | if ac_fn_c_try_link "$LINENO"; then : | ||
26362 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
26363 | - | ||
26364 | + lt_cv_irix_exported_symbol=yes | ||
26365 | +else | ||
26366 | + lt_cv_irix_exported_symbol=no | ||
26367 | fi | ||
26368 | rm -f core conftest.err conftest.$ac_objext \ | ||
26369 | conftest$ac_exeext conftest.$ac_ext | ||
26370 | - LDFLAGS="$save_LDFLAGS" | ||
26371 | + LDFLAGS="$save_LDFLAGS" | ||
26372 | +fi | ||
26373 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
26374 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
26375 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
26376 | + 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' | ||
26377 | + fi | ||
26378 | else | ||
26379 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
26380 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
26381 | + 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' | ||
26382 | + 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' | ||
26383 | fi | ||
26384 | archive_cmds_need_lc='no' | ||
26385 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
26386 | @@ -9914,17 +10582,17 @@ rm -f core conftest.err conftest.$ac_obj | ||
26387 | hardcode_libdir_flag_spec='-L$libdir' | ||
26388 | hardcode_minus_L=yes | ||
26389 | allow_undefined_flag=unsupported | ||
26390 | - archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
26391 | + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
26392 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
26393 | ;; | ||
26394 | |||
26395 | osf3*) | ||
26396 | if test "$GCC" = yes; then | ||
26397 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
26398 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
26399 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
26400 | else | ||
26401 | allow_undefined_flag=' -expect_unresolved \*' | ||
26402 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
26403 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
26404 | fi | ||
26405 | archive_cmds_need_lc='no' | ||
26406 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
26407 | @@ -9934,13 +10602,13 @@ rm -f core conftest.err conftest.$ac_obj | ||
26408 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
26409 | if test "$GCC" = yes; then | ||
26410 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
26411 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
26412 | + 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' | ||
26413 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
26414 | else | ||
26415 | allow_undefined_flag=' -expect_unresolved \*' | ||
26416 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
26417 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
26418 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | ||
26419 | - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
26420 | + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
26421 | |||
26422 | # Both c and cxx compiler support -rpath directly | ||
26423 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
26424 | @@ -9953,9 +10621,9 @@ rm -f core conftest.err conftest.$ac_obj | ||
26425 | no_undefined_flag=' -z defs' | ||
26426 | if test "$GCC" = yes; then | ||
26427 | wlarc='${wl}' | ||
26428 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
26429 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
26430 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
26431 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
26432 | + $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' | ||
26433 | else | ||
26434 | case `$CC -V 2>&1` in | ||
26435 | *"Compilers 5.0"*) | ||
26436 | @@ -10357,16 +11025,23 @@ if test "$GCC" = yes; then | ||
26437 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
26438 | *) lt_awk_arg="/^libraries:/" ;; | ||
26439 | esac | ||
26440 | - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
26441 | - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
26442 | + case $host_os in | ||
26443 | + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | ||
26444 | + *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
26445 | + esac | ||
26446 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
26447 | + case $lt_search_path_spec in | ||
26448 | + *\;*) | ||
26449 | # if the path contains ";" then we assume it to be the separator | ||
26450 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
26451 | # assumed that no part of a normal pathname contains ";" but that should | ||
26452 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
26453 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
26454 | - else | ||
26455 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
26456 | - fi | ||
26457 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
26458 | + ;; | ||
26459 | + *) | ||
26460 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
26461 | + ;; | ||
26462 | + esac | ||
26463 | # Ok, now we have the path, separated by spaces, we can step through it | ||
26464 | # and add multilib dir if necessary. | ||
26465 | lt_tmp_lt_search_path_spec= | ||
26466 | @@ -10379,7 +11054,7 @@ if test "$GCC" = yes; then | ||
26467 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
26468 | fi | ||
26469 | done | ||
26470 | - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
26471 | + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
26472 | BEGIN {RS=" "; FS="/|\n";} { | ||
26473 | lt_foo=""; | ||
26474 | lt_count=0; | ||
26475 | @@ -10399,7 +11074,13 @@ BEGIN {RS=" "; FS="/|\n";} { | ||
26476 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
26477 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
26478 | }'` | ||
26479 | - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
26480 | + # AWK program above erroneously prepends '/' to C:/dos/paths | ||
26481 | + # for these hosts. | ||
26482 | + case $host_os in | ||
26483 | + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
26484 | + $SED 's,/\([A-Za-z]:\),\1,g'` ;; | ||
26485 | + esac | ||
26486 | + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
26487 | else | ||
26488 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
26489 | fi | ||
26490 | @@ -10487,7 +11168,7 @@ amigaos*) | ||
26491 | m68k) | ||
26492 | library_names_spec='$libname.ixlibrary $libname.a' | ||
26493 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
26494 | - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
26495 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
26496 | ;; | ||
26497 | esac | ||
26498 | ;; | ||
26499 | @@ -10518,8 +11199,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
26500 | need_version=no | ||
26501 | need_lib_prefix=no | ||
26502 | |||
26503 | - case $GCC,$host_os in | ||
26504 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
26505 | + case $GCC,$cc_basename in | ||
26506 | + yes,*) | ||
26507 | + # gcc | ||
26508 | library_names_spec='$libname.dll.a' | ||
26509 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
26510 | postinstall_cmds='base_file=`basename \${file}`~ | ||
26511 | @@ -10540,36 +11222,83 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
26512 | cygwin*) | ||
26513 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
26514 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
26515 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
26516 | + | ||
26517 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | ||
26518 | ;; | ||
26519 | mingw* | cegcc*) | ||
26520 | # MinGW DLLs use traditional 'lib' prefix | ||
26521 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
26522 | - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
26523 | - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
26524 | - # It is most probably a Windows format PATH printed by | ||
26525 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
26526 | - # path with ; separators, and with drive letters. We can handle the | ||
26527 | - # drive letters (cygwin fileutils understands them), so leave them, | ||
26528 | - # especially as we might pass files found there to a mingw objdump, | ||
26529 | - # which wouldn't understand a cygwinified path. Ahh. | ||
26530 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
26531 | - else | ||
26532 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
26533 | - fi | ||
26534 | ;; | ||
26535 | pw32*) | ||
26536 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
26537 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
26538 | ;; | ||
26539 | esac | ||
26540 | + dynamic_linker='Win32 ld.exe' | ||
26541 | + ;; | ||
26542 | + | ||
26543 | + *,cl*) | ||
26544 | + # Native MSVC | ||
26545 | + libname_spec='$name' | ||
26546 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
26547 | + library_names_spec='${libname}.dll.lib' | ||
26548 | + | ||
26549 | + case $build_os in | ||
26550 | + mingw*) | ||
26551 | + sys_lib_search_path_spec= | ||
26552 | + lt_save_ifs=$IFS | ||
26553 | + IFS=';' | ||
26554 | + for lt_path in $LIB | ||
26555 | + do | ||
26556 | + IFS=$lt_save_ifs | ||
26557 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
26558 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
26559 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
26560 | + done | ||
26561 | + IFS=$lt_save_ifs | ||
26562 | + # Convert to MSYS style. | ||
26563 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
26564 | + ;; | ||
26565 | + cygwin*) | ||
26566 | + # Convert to unix form, then to dos form, then back to unix form | ||
26567 | + # but this time dos style (no spaces!) so that the unix form looks | ||
26568 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
26569 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
26570 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
26571 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
26572 | + ;; | ||
26573 | + *) | ||
26574 | + sys_lib_search_path_spec="$LIB" | ||
26575 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
26576 | + # It is most probably a Windows format PATH. | ||
26577 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
26578 | + else | ||
26579 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
26580 | + fi | ||
26581 | + # FIXME: find the short name or the path components, as spaces are | ||
26582 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
26583 | + ;; | ||
26584 | + esac | ||
26585 | + | ||
26586 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
26587 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
26588 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
26589 | + dldir=$destdir/`dirname \$dlpath`~ | ||
26590 | + test -d \$dldir || mkdir -p \$dldir~ | ||
26591 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
26592 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
26593 | + dlpath=$dir/\$dldll~ | ||
26594 | + $RM \$dlpath' | ||
26595 | + shlibpath_overrides_runpath=yes | ||
26596 | + dynamic_linker='Win32 link.exe' | ||
26597 | ;; | ||
26598 | |||
26599 | *) | ||
26600 | + # Assume MSVC wrapper | ||
26601 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
26602 | + dynamic_linker='Win32 ld.exe' | ||
26603 | ;; | ||
26604 | esac | ||
26605 | - dynamic_linker='Win32 ld.exe' | ||
26606 | # FIXME: first we should search . and the directory the executable is in | ||
26607 | shlibpath_var=PATH | ||
26608 | ;; | ||
26609 | @@ -10656,6 +11385,19 @@ gnu*) | ||
26610 | hardcode_into_libs=yes | ||
26611 | ;; | ||
26612 | |||
26613 | +haiku*) | ||
26614 | + version_type=linux | ||
26615 | + need_lib_prefix=no | ||
26616 | + need_version=no | ||
26617 | + dynamic_linker="$host_os runtime_loader" | ||
26618 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
26619 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
26620 | + shlibpath_var=LIBRARY_PATH | ||
26621 | + shlibpath_overrides_runpath=yes | ||
26622 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
26623 | + hardcode_into_libs=yes | ||
26624 | + ;; | ||
26625 | + | ||
26626 | hpux9* | hpux10* | hpux11*) | ||
26627 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
26628 | # link against other versions. | ||
26629 | @@ -10698,8 +11440,10 @@ hpux9* | hpux10* | hpux11*) | ||
26630 | soname_spec='${libname}${release}${shared_ext}$major' | ||
26631 | ;; | ||
26632 | esac | ||
26633 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
26634 | + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
26635 | postinstall_cmds='chmod 555 $lib' | ||
26636 | + # or fails outright, so override atomically: | ||
26637 | + install_override_mode=555 | ||
26638 | ;; | ||
26639 | |||
26640 | interix[3-9]*) | ||
26641 | @@ -10808,7 +11552,7 @@ fi | ||
26642 | |||
26643 | # Append ld.so.conf contents to the search path | ||
26644 | if test -f /etc/ld.so.conf; then | ||
26645 | - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
26646 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | ||
26647 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
26648 | fi | ||
26649 | |||
26650 | @@ -11111,6 +11855,11 @@ fi | ||
26651 | |||
26652 | |||
26653 | |||
26654 | + | ||
26655 | + | ||
26656 | + | ||
26657 | + | ||
26658 | + | ||
26659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
26660 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
26661 | hardcode_action= | ||
26662 | @@ -11441,7 +12190,7 @@ else | ||
26663 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
26664 | lt_status=$lt_dlunknown | ||
26665 | cat > conftest.$ac_ext <<_LT_EOF | ||
26666 | -#line 11444 "configure" | ||
26667 | +#line $LINENO "configure" | ||
26668 | #include "confdefs.h" | ||
26669 | |||
26670 | #if HAVE_DLFCN_H | ||
26671 | @@ -11482,7 +12231,13 @@ else | ||
26672 | # endif | ||
26673 | #endif | ||
26674 | |||
26675 | -void fnord() { int i=42;} | ||
26676 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
26677 | + correspondingly for the symbols needed. */ | ||
26678 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
26679 | +int fnord () __attribute__((visibility("default"))); | ||
26680 | +#endif | ||
26681 | + | ||
26682 | +int fnord () { return 42; } | ||
26683 | int main () | ||
26684 | { | ||
26685 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
26686 | @@ -11491,7 +12246,11 @@ int main () | ||
26687 | if (self) | ||
26688 | { | ||
26689 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
26690 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
26691 | + else | ||
26692 | + { | ||
26693 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
26694 | + else puts (dlerror ()); | ||
26695 | + } | ||
26696 | /* dlclose (self); */ | ||
26697 | } | ||
26698 | else | ||
26699 | @@ -11537,7 +12296,7 @@ else | ||
26700 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
26701 | lt_status=$lt_dlunknown | ||
26702 | cat > conftest.$ac_ext <<_LT_EOF | ||
26703 | -#line 11540 "configure" | ||
26704 | +#line $LINENO "configure" | ||
26705 | #include "confdefs.h" | ||
26706 | |||
26707 | #if HAVE_DLFCN_H | ||
26708 | @@ -11578,7 +12337,13 @@ else | ||
26709 | # endif | ||
26710 | #endif | ||
26711 | |||
26712 | -void fnord() { int i=42;} | ||
26713 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
26714 | + correspondingly for the symbols needed. */ | ||
26715 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
26716 | +int fnord () __attribute__((visibility("default"))); | ||
26717 | +#endif | ||
26718 | + | ||
26719 | +int fnord () { return 42; } | ||
26720 | int main () | ||
26721 | { | ||
26722 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
26723 | @@ -11587,7 +12352,11 @@ int main () | ||
26724 | if (self) | ||
26725 | { | ||
26726 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
26727 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
26728 | + else | ||
26729 | + { | ||
26730 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
26731 | + else puts (dlerror ()); | ||
26732 | + } | ||
26733 | /* dlclose (self); */ | ||
26734 | } | ||
26735 | else | ||
26736 | @@ -13694,131 +14463,153 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac | ||
26737 | sed_quote_subst='$sed_quote_subst' | ||
26738 | double_quote_subst='$double_quote_subst' | ||
26739 | delay_variable_subst='$delay_variable_subst' | ||
26740 | -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
26741 | -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
26742 | -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
26743 | -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
26744 | -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
26745 | -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
26746 | -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
26747 | -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
26748 | -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
26749 | -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
26750 | -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
26751 | -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
26752 | -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
26753 | -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
26754 | -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
26755 | -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
26756 | -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
26757 | -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
26758 | -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
26759 | -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
26760 | -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
26761 | -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
26762 | -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
26763 | -lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
26764 | -lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
26765 | -lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
26766 | -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
26767 | -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26768 | -OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
26769 | -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
26770 | -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
26771 | -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
26772 | -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
26773 | -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
26774 | -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
26775 | -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26776 | -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26777 | -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26778 | -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
26779 | -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
26780 | -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
26781 | -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
26782 | -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
26783 | -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
26784 | -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | ||
26785 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
26786 | -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
26787 | -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
26788 | -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
26789 | -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
26790 | -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
26791 | -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
26792 | -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
26793 | -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
26794 | -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
26795 | -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
26796 | -DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
26797 | -NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
26798 | -LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
26799 | -OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
26800 | -OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
26801 | -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
26802 | -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26803 | -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26804 | -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
26805 | -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
26806 | -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
26807 | -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
26808 | -compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
26809 | -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26810 | -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26811 | -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26812 | -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26813 | -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26814 | -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26815 | -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
26816 | -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
26817 | -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
26818 | -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
26819 | -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
26820 | -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
26821 | -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
26822 | -hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
26823 | -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
26824 | -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
26825 | -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
26826 | -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
26827 | -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
26828 | -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
26829 | -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
26830 | -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26831 | -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
26832 | -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
26833 | -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26834 | -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
26835 | -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
26836 | -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
26837 | -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
26838 | -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
26839 | -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
26840 | -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
26841 | -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
26842 | -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
26843 | -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
26844 | -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
26845 | -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26846 | -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26847 | -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
26848 | -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
26849 | -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
26850 | -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
26851 | -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
26852 | -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
26853 | -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
26854 | -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
26855 | -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
26856 | -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
26857 | -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
26858 | +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | ||
26859 | +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | ||
26860 | +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | ||
26861 | +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | ||
26862 | +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | ||
26863 | +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | ||
26864 | +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | ||
26865 | +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | ||
26866 | +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | ||
26867 | +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | ||
26868 | +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | ||
26869 | +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | ||
26870 | +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | ||
26871 | +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | ||
26872 | +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | ||
26873 | +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | ||
26874 | +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | ||
26875 | +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | ||
26876 | +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | ||
26877 | +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | ||
26878 | +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | ||
26879 | +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | ||
26880 | +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | ||
26881 | +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | ||
26882 | +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
26883 | +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
26884 | +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
26885 | +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
26886 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
26887 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
26888 | +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
26889 | +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
26890 | +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
26891 | +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
26892 | +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
26893 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
26894 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
26895 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
26896 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
26897 | +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
26898 | +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
26899 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
26900 | +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
26901 | +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
26902 | +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
26903 | +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
26904 | +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
26905 | +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | ||
26906 | +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | ||
26907 | +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | ||
26908 | +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | ||
26909 | +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | ||
26910 | +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | ||
26911 | +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
26912 | +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
26913 | +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"`' | ||
26914 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
26915 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
26916 | +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
26917 | +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
26918 | +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
26919 | +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
26920 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
26921 | +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
26922 | +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
26923 | +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
26924 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
26925 | +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
26926 | +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
26927 | +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
26928 | +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | ||
26929 | +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | ||
26930 | +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | ||
26931 | +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | ||
26932 | +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
26933 | +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | ||
26934 | +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | ||
26935 | +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
26936 | +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
26937 | +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | ||
26938 | +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | ||
26939 | +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
26940 | +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
26941 | +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
26942 | +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | ||
26943 | +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
26944 | +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | ||
26945 | +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
26946 | +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
26947 | +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
26948 | +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | ||
26949 | +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | ||
26950 | +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | ||
26951 | +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | ||
26952 | +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | ||
26953 | +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
26954 | +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
26955 | +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
26956 | +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
26957 | +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
26958 | +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
26959 | +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
26960 | +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
26961 | +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
26962 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
26963 | +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
26964 | +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
26965 | +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
26966 | +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | ||
26967 | +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | ||
26968 | +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | ||
26969 | +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
26970 | +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | ||
26971 | +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | ||
26972 | +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | ||
26973 | +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | ||
26974 | +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | ||
26975 | +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
26976 | +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
26977 | +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | ||
26978 | +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | ||
26979 | +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | ||
26980 | +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | ||
26981 | +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | ||
26982 | +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | ||
26983 | +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | ||
26984 | +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | ||
26985 | +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | ||
26986 | +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | ||
26987 | +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | ||
26988 | |||
26989 | LTCC='$LTCC' | ||
26990 | LTCFLAGS='$LTCFLAGS' | ||
26991 | compiler='$compiler_DEFAULT' | ||
26992 | |||
26993 | +# A function that is used when there is no print builtin or printf. | ||
26994 | +func_fallback_echo () | ||
26995 | +{ | ||
26996 | + eval 'cat <<_LTECHO_EOF | ||
26997 | +\$1 | ||
26998 | +_LTECHO_EOF' | ||
26999 | +} | ||
27000 | + | ||
27001 | # Quote evaled strings. | ||
27002 | -for var in SED \ | ||
27003 | +for var in SHELL \ | ||
27004 | +ECHO \ | ||
27005 | +SED \ | ||
27006 | GREP \ | ||
27007 | EGREP \ | ||
27008 | FGREP \ | ||
27009 | @@ -13831,8 +14622,13 @@ reload_flag \ | ||
27010 | OBJDUMP \ | ||
27011 | deplibs_check_method \ | ||
27012 | file_magic_cmd \ | ||
27013 | +file_magic_glob \ | ||
27014 | +want_nocaseglob \ | ||
27015 | +DLLTOOL \ | ||
27016 | +sharedlib_from_linklib_cmd \ | ||
27017 | AR \ | ||
27018 | AR_FLAGS \ | ||
27019 | +archiver_list_spec \ | ||
27020 | STRIP \ | ||
27021 | RANLIB \ | ||
27022 | CC \ | ||
27023 | @@ -13842,14 +14638,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
27024 | lt_cv_sys_global_symbol_to_cdecl \ | ||
27025 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
27026 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
27027 | -SHELL \ | ||
27028 | -ECHO \ | ||
27029 | +nm_file_list_spec \ | ||
27030 | lt_prog_compiler_no_builtin_flag \ | ||
27031 | -lt_prog_compiler_wl \ | ||
27032 | lt_prog_compiler_pic \ | ||
27033 | +lt_prog_compiler_wl \ | ||
27034 | lt_prog_compiler_static \ | ||
27035 | lt_cv_prog_compiler_c_o \ | ||
27036 | need_locks \ | ||
27037 | +MANIFEST_TOOL \ | ||
27038 | DSYMUTIL \ | ||
27039 | NMEDIT \ | ||
27040 | LIPO \ | ||
27041 | @@ -13865,7 +14661,6 @@ no_undefined_flag \ | ||
27042 | hardcode_libdir_flag_spec \ | ||
27043 | hardcode_libdir_flag_spec_ld \ | ||
27044 | hardcode_libdir_separator \ | ||
27045 | -fix_srcfile_path \ | ||
27046 | exclude_expsyms \ | ||
27047 | include_expsyms \ | ||
27048 | file_list_spec \ | ||
27049 | @@ -13873,12 +14668,13 @@ variables_saved_for_relink \ | ||
27050 | libname_spec \ | ||
27051 | library_names_spec \ | ||
27052 | soname_spec \ | ||
27053 | +install_override_mode \ | ||
27054 | finish_eval \ | ||
27055 | old_striplib \ | ||
27056 | striplib; do | ||
27057 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
27058 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
27059 | *[\\\\\\\`\\"\\\$]*) | ||
27060 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
27061 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
27062 | ;; | ||
27063 | *) | ||
27064 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
27065 | @@ -13900,14 +14696,15 @@ module_cmds \ | ||
27066 | module_expsym_cmds \ | ||
27067 | export_symbols_cmds \ | ||
27068 | prelink_cmds \ | ||
27069 | +postlink_cmds \ | ||
27070 | postinstall_cmds \ | ||
27071 | postuninstall_cmds \ | ||
27072 | finish_cmds \ | ||
27073 | sys_lib_search_path_spec \ | ||
27074 | sys_lib_dlsearch_path_spec; do | ||
27075 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
27076 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
27077 | *[\\\\\\\`\\"\\\$]*) | ||
27078 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
27079 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
27080 | ;; | ||
27081 | *) | ||
27082 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
27083 | @@ -13915,12 +14712,6 @@ sys_lib_dlsearch_path_spec; do | ||
27084 | esac | ||
27085 | done | ||
27086 | |||
27087 | -# Fix-up fallback echo if it was mangled by the above quoting rules. | ||
27088 | -case \$lt_ECHO in | ||
27089 | -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
27090 | - ;; | ||
27091 | -esac | ||
27092 | - | ||
27093 | ac_aux_dir='$ac_aux_dir' | ||
27094 | xsi_shell='$xsi_shell' | ||
27095 | lt_shell_append='$lt_shell_append' | ||
27096 | @@ -14701,7 +15492,8 @@ $as_echo X"$file" | | ||
27097 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
27098 | # | ||
27099 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
27100 | -# 2006, 2007, 2008 Free Software Foundation, Inc. | ||
27101 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
27102 | +# Inc. | ||
27103 | # Written by Gordon Matzigkeit, 1996 | ||
27104 | # | ||
27105 | # This file is part of GNU Libtool. | ||
27106 | @@ -14749,6 +15541,12 @@ pic_mode=$pic_mode | ||
27107 | # Whether or not to optimize for fast installation. | ||
27108 | fast_install=$enable_fast_install | ||
27109 | |||
27110 | +# Shell to use when invoking shell scripts. | ||
27111 | +SHELL=$lt_SHELL | ||
27112 | + | ||
27113 | +# An echo program that protects backslashes. | ||
27114 | +ECHO=$lt_ECHO | ||
27115 | + | ||
27116 | # The host system. | ||
27117 | host_alias=$host_alias | ||
27118 | host=$host | ||
27119 | @@ -14798,9 +15596,11 @@ SP2NL=$lt_lt_SP2NL | ||
27120 | # turn newlines into spaces. | ||
27121 | NL2SP=$lt_lt_NL2SP | ||
27122 | |||
27123 | -# How to create reloadable object files. | ||
27124 | -reload_flag=$lt_reload_flag | ||
27125 | -reload_cmds=$lt_reload_cmds | ||
27126 | +# convert \$build file names to \$host format. | ||
27127 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
27128 | + | ||
27129 | +# convert \$build files to toolchain format. | ||
27130 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
27131 | |||
27132 | # An object symbol dumper. | ||
27133 | OBJDUMP=$lt_OBJDUMP | ||
27134 | @@ -14808,13 +15608,30 @@ OBJDUMP=$lt_OBJDUMP | ||
27135 | # Method to check whether dependent libraries are shared objects. | ||
27136 | deplibs_check_method=$lt_deplibs_check_method | ||
27137 | |||
27138 | -# Command to use when deplibs_check_method == "file_magic". | ||
27139 | +# Command to use when deplibs_check_method = "file_magic". | ||
27140 | file_magic_cmd=$lt_file_magic_cmd | ||
27141 | |||
27142 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
27143 | +file_magic_glob=$lt_file_magic_glob | ||
27144 | + | ||
27145 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
27146 | +want_nocaseglob=$lt_want_nocaseglob | ||
27147 | + | ||
27148 | +# DLL creation program. | ||
27149 | +DLLTOOL=$lt_DLLTOOL | ||
27150 | + | ||
27151 | +# Command to associate shared and link libraries. | ||
27152 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
27153 | + | ||
27154 | # The archiver. | ||
27155 | AR=$lt_AR | ||
27156 | + | ||
27157 | +# Flags to create an archive. | ||
27158 | AR_FLAGS=$lt_AR_FLAGS | ||
27159 | |||
27160 | +# How to feed a file listing to the archiver. | ||
27161 | +archiver_list_spec=$lt_archiver_list_spec | ||
27162 | + | ||
27163 | # A symbol stripping program. | ||
27164 | STRIP=$lt_STRIP | ||
27165 | |||
27166 | @@ -14823,6 +15640,9 @@ RANLIB=$lt_RANLIB | ||
27167 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
27168 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
27169 | |||
27170 | +# Whether to use a lock for old archive extraction. | ||
27171 | +lock_old_archive_extraction=$lock_old_archive_extraction | ||
27172 | + | ||
27173 | # A C compiler. | ||
27174 | LTCC=$lt_CC | ||
27175 | |||
27176 | @@ -14841,14 +15661,14 @@ global_symbol_to_c_name_address=$lt_lt_c | ||
27177 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
27178 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
27179 | |||
27180 | -# The name of the directory that contains temporary libtool files. | ||
27181 | -objdir=$objdir | ||
27182 | +# Specify filename containing input files for \$NM. | ||
27183 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
27184 | |||
27185 | -# Shell to use when invoking shell scripts. | ||
27186 | -SHELL=$lt_SHELL | ||
27187 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
27188 | +lt_sysroot=$lt_sysroot | ||
27189 | |||
27190 | -# An echo program that does not interpret backslashes. | ||
27191 | -ECHO=$lt_ECHO | ||
27192 | +# The name of the directory that contains temporary libtool files. | ||
27193 | +objdir=$objdir | ||
27194 | |||
27195 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
27196 | MAGIC_CMD=$MAGIC_CMD | ||
27197 | @@ -14856,6 +15676,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
27198 | # Must we lock files when doing compilation? | ||
27199 | need_locks=$lt_need_locks | ||
27200 | |||
27201 | +# Manifest tool. | ||
27202 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
27203 | + | ||
27204 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
27205 | DSYMUTIL=$lt_DSYMUTIL | ||
27206 | |||
27207 | @@ -14912,6 +15735,9 @@ library_names_spec=$lt_library_names_spe | ||
27208 | # The coded name of the library, if different from the real name. | ||
27209 | soname_spec=$lt_soname_spec | ||
27210 | |||
27211 | +# Permission mode override for installation of shared libraries. | ||
27212 | +install_override_mode=$lt_install_override_mode | ||
27213 | + | ||
27214 | # Command to use after installation of a shared archive. | ||
27215 | postinstall_cmds=$lt_postinstall_cmds | ||
27216 | |||
27217 | @@ -14951,6 +15777,10 @@ striplib=$lt_striplib | ||
27218 | # The linker used to build libraries. | ||
27219 | LD=$lt_LD | ||
27220 | |||
27221 | +# How to create reloadable object files. | ||
27222 | +reload_flag=$lt_reload_flag | ||
27223 | +reload_cmds=$lt_reload_cmds | ||
27224 | + | ||
27225 | # Commands used to build an old-style archive. | ||
27226 | old_archive_cmds=$lt_old_archive_cmds | ||
27227 | |||
27228 | @@ -14963,12 +15793,12 @@ with_gcc=$GCC | ||
27229 | # Compiler flag to turn off builtin functions. | ||
27230 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
27231 | |||
27232 | -# How to pass a linker flag through the compiler. | ||
27233 | -wl=$lt_lt_prog_compiler_wl | ||
27234 | - | ||
27235 | # Additional compiler flags for building library objects. | ||
27236 | pic_flag=$lt_lt_prog_compiler_pic | ||
27237 | |||
27238 | +# How to pass a linker flag through the compiler. | ||
27239 | +wl=$lt_lt_prog_compiler_wl | ||
27240 | + | ||
27241 | # Compiler flag to prevent dynamic linking. | ||
27242 | link_static_flag=$lt_lt_prog_compiler_static | ||
27243 | |||
27244 | @@ -15055,9 +15885,6 @@ inherit_rpath=$inherit_rpath | ||
27245 | # Whether libtool must link a program against all its dependency libraries. | ||
27246 | link_all_deplibs=$link_all_deplibs | ||
27247 | |||
27248 | -# Fix the shell variable \$srcfile for the compiler. | ||
27249 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
27250 | - | ||
27251 | # Set to "yes" if exported symbols are required. | ||
27252 | always_export_symbols=$always_export_symbols | ||
27253 | |||
27254 | @@ -15073,6 +15900,9 @@ include_expsyms=$lt_include_expsyms | ||
27255 | # Commands necessary for linking programs (against libraries) with templates. | ||
27256 | prelink_cmds=$lt_prelink_cmds | ||
27257 | |||
27258 | +# Commands necessary for finishing linking programs. | ||
27259 | +postlink_cmds=$lt_postlink_cmds | ||
27260 | + | ||
27261 | # Specify filename containing input files. | ||
27262 | file_list_spec=$lt_file_list_spec | ||
27263 | |||
27264 | @@ -15105,212 +15935,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
27265 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
27266 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
27267 | # is reportedly fixed, but why not run on old versions too? | ||
27268 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
27269 | - || (rm -f "$cfgfile"; exit 1) | ||
27270 | - | ||
27271 | - case $xsi_shell in | ||
27272 | - yes) | ||
27273 | - cat << \_LT_EOF >> "$cfgfile" | ||
27274 | - | ||
27275 | -# func_dirname file append nondir_replacement | ||
27276 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
27277 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
27278 | -func_dirname () | ||
27279 | -{ | ||
27280 | - case ${1} in | ||
27281 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
27282 | - * ) func_dirname_result="${3}" ;; | ||
27283 | - esac | ||
27284 | -} | ||
27285 | - | ||
27286 | -# func_basename file | ||
27287 | -func_basename () | ||
27288 | -{ | ||
27289 | - func_basename_result="${1##*/}" | ||
27290 | -} | ||
27291 | - | ||
27292 | -# func_dirname_and_basename file append nondir_replacement | ||
27293 | -# perform func_basename and func_dirname in a single function | ||
27294 | -# call: | ||
27295 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
27296 | -# add APPEND to the result, otherwise set result | ||
27297 | -# to NONDIR_REPLACEMENT. | ||
27298 | -# value returned in "$func_dirname_result" | ||
27299 | -# basename: Compute filename of FILE. | ||
27300 | -# value retuned in "$func_basename_result" | ||
27301 | -# Implementation must be kept synchronized with func_dirname | ||
27302 | -# and func_basename. For efficiency, we do not delegate to | ||
27303 | -# those functions but instead duplicate the functionality here. | ||
27304 | -func_dirname_and_basename () | ||
27305 | -{ | ||
27306 | - case ${1} in | ||
27307 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
27308 | - * ) func_dirname_result="${3}" ;; | ||
27309 | - esac | ||
27310 | - func_basename_result="${1##*/}" | ||
27311 | -} | ||
27312 | - | ||
27313 | -# func_stripname prefix suffix name | ||
27314 | -# strip PREFIX and SUFFIX off of NAME. | ||
27315 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
27316 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
27317 | -# dot (in which case that matches only a dot). | ||
27318 | -func_stripname () | ||
27319 | -{ | ||
27320 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
27321 | - # positional parameters, so assign one to ordinary parameter first. | ||
27322 | - func_stripname_result=${3} | ||
27323 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
27324 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
27325 | -} | ||
27326 | - | ||
27327 | -# func_opt_split | ||
27328 | -func_opt_split () | ||
27329 | -{ | ||
27330 | - func_opt_split_opt=${1%%=*} | ||
27331 | - func_opt_split_arg=${1#*=} | ||
27332 | -} | ||
27333 | - | ||
27334 | -# func_lo2o object | ||
27335 | -func_lo2o () | ||
27336 | -{ | ||
27337 | - case ${1} in | ||
27338 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
27339 | - *) func_lo2o_result=${1} ;; | ||
27340 | - esac | ||
27341 | -} | ||
27342 | - | ||
27343 | -# func_xform libobj-or-source | ||
27344 | -func_xform () | ||
27345 | -{ | ||
27346 | - func_xform_result=${1%.*}.lo | ||
27347 | -} | ||
27348 | - | ||
27349 | -# func_arith arithmetic-term... | ||
27350 | -func_arith () | ||
27351 | -{ | ||
27352 | - func_arith_result=$(( $* )) | ||
27353 | -} | ||
27354 | - | ||
27355 | -# func_len string | ||
27356 | -# STRING may not start with a hyphen. | ||
27357 | -func_len () | ||
27358 | -{ | ||
27359 | - func_len_result=${#1} | ||
27360 | -} | ||
27361 | - | ||
27362 | -_LT_EOF | ||
27363 | - ;; | ||
27364 | - *) # Bourne compatible functions. | ||
27365 | - cat << \_LT_EOF >> "$cfgfile" | ||
27366 | - | ||
27367 | -# func_dirname file append nondir_replacement | ||
27368 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
27369 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
27370 | -func_dirname () | ||
27371 | -{ | ||
27372 | - # Extract subdirectory from the argument. | ||
27373 | - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
27374 | - if test "X$func_dirname_result" = "X${1}"; then | ||
27375 | - func_dirname_result="${3}" | ||
27376 | - else | ||
27377 | - func_dirname_result="$func_dirname_result${2}" | ||
27378 | - fi | ||
27379 | -} | ||
27380 | - | ||
27381 | -# func_basename file | ||
27382 | -func_basename () | ||
27383 | -{ | ||
27384 | - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
27385 | -} | ||
27386 | - | ||
27387 | - | ||
27388 | -# func_stripname prefix suffix name | ||
27389 | -# strip PREFIX and SUFFIX off of NAME. | ||
27390 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
27391 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
27392 | -# dot (in which case that matches only a dot). | ||
27393 | -# func_strip_suffix prefix name | ||
27394 | -func_stripname () | ||
27395 | -{ | ||
27396 | - case ${2} in | ||
27397 | - .*) func_stripname_result=`$ECHO "X${3}" \ | ||
27398 | - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
27399 | - *) func_stripname_result=`$ECHO "X${3}" \ | ||
27400 | - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
27401 | - esac | ||
27402 | -} | ||
27403 | - | ||
27404 | -# sed scripts: | ||
27405 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
27406 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
27407 | - | ||
27408 | -# func_opt_split | ||
27409 | -func_opt_split () | ||
27410 | -{ | ||
27411 | - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
27412 | - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
27413 | -} | ||
27414 | - | ||
27415 | -# func_lo2o object | ||
27416 | -func_lo2o () | ||
27417 | -{ | ||
27418 | - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
27419 | -} | ||
27420 | - | ||
27421 | -# func_xform libobj-or-source | ||
27422 | -func_xform () | ||
27423 | -{ | ||
27424 | - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
27425 | -} | ||
27426 | - | ||
27427 | -# func_arith arithmetic-term... | ||
27428 | -func_arith () | ||
27429 | -{ | ||
27430 | - func_arith_result=`expr "$@"` | ||
27431 | -} | ||
27432 | - | ||
27433 | -# func_len string | ||
27434 | -# STRING may not start with a hyphen. | ||
27435 | -func_len () | ||
27436 | -{ | ||
27437 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
27438 | -} | ||
27439 | - | ||
27440 | -_LT_EOF | ||
27441 | -esac | ||
27442 | - | ||
27443 | -case $lt_shell_append in | ||
27444 | - yes) | ||
27445 | - cat << \_LT_EOF >> "$cfgfile" | ||
27446 | - | ||
27447 | -# func_append var value | ||
27448 | -# Append VALUE to the end of shell variable VAR. | ||
27449 | -func_append () | ||
27450 | -{ | ||
27451 | - eval "$1+=\$2" | ||
27452 | -} | ||
27453 | -_LT_EOF | ||
27454 | - ;; | ||
27455 | - *) | ||
27456 | - cat << \_LT_EOF >> "$cfgfile" | ||
27457 | - | ||
27458 | -# func_append var value | ||
27459 | -# Append VALUE to the end of shell variable VAR. | ||
27460 | -func_append () | ||
27461 | -{ | ||
27462 | - eval "$1=\$$1\$2" | ||
27463 | -} | ||
27464 | - | ||
27465 | -_LT_EOF | ||
27466 | - ;; | ||
27467 | - esac | ||
27468 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
27469 | + || (rm -f "$cfgfile"; exit 1) | ||
27470 | |||
27471 | + if test x"$xsi_shell" = xyes; then | ||
27472 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
27473 | +func_dirname ()\ | ||
27474 | +{\ | ||
27475 | +\ case ${1} in\ | ||
27476 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
27477 | +\ * ) func_dirname_result="${3}" ;;\ | ||
27478 | +\ esac\ | ||
27479 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27480 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27481 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27482 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27483 | + | ||
27484 | + | ||
27485 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
27486 | +func_basename ()\ | ||
27487 | +{\ | ||
27488 | +\ func_basename_result="${1##*/}"\ | ||
27489 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27490 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27491 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27492 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27493 | + | ||
27494 | + | ||
27495 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
27496 | +func_dirname_and_basename ()\ | ||
27497 | +{\ | ||
27498 | +\ case ${1} in\ | ||
27499 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
27500 | +\ * ) func_dirname_result="${3}" ;;\ | ||
27501 | +\ esac\ | ||
27502 | +\ func_basename_result="${1##*/}"\ | ||
27503 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27504 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27505 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27506 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27507 | + | ||
27508 | + | ||
27509 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
27510 | +func_stripname ()\ | ||
27511 | +{\ | ||
27512 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
27513 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
27514 | +\ func_stripname_result=${3}\ | ||
27515 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
27516 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
27517 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27518 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27519 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27520 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27521 | + | ||
27522 | + | ||
27523 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
27524 | +func_split_long_opt ()\ | ||
27525 | +{\ | ||
27526 | +\ func_split_long_opt_name=${1%%=*}\ | ||
27527 | +\ func_split_long_opt_arg=${1#*=}\ | ||
27528 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27529 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27530 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27531 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27532 | + | ||
27533 | + | ||
27534 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
27535 | +func_split_short_opt ()\ | ||
27536 | +{\ | ||
27537 | +\ func_split_short_opt_arg=${1#??}\ | ||
27538 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
27539 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27540 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27541 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27542 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27543 | + | ||
27544 | + | ||
27545 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
27546 | +func_lo2o ()\ | ||
27547 | +{\ | ||
27548 | +\ case ${1} in\ | ||
27549 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
27550 | +\ *) func_lo2o_result=${1} ;;\ | ||
27551 | +\ esac\ | ||
27552 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27553 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27554 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27555 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27556 | + | ||
27557 | + | ||
27558 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
27559 | +func_xform ()\ | ||
27560 | +{\ | ||
27561 | + func_xform_result=${1%.*}.lo\ | ||
27562 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27563 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27564 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27565 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27566 | + | ||
27567 | + | ||
27568 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
27569 | +func_arith ()\ | ||
27570 | +{\ | ||
27571 | + func_arith_result=$(( $* ))\ | ||
27572 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27573 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27574 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27575 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27576 | + | ||
27577 | + | ||
27578 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
27579 | +func_len ()\ | ||
27580 | +{\ | ||
27581 | + func_len_result=${#1}\ | ||
27582 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27583 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27584 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27585 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27586 | + | ||
27587 | +fi | ||
27588 | + | ||
27589 | +if test x"$lt_shell_append" = xyes; then | ||
27590 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
27591 | +func_append ()\ | ||
27592 | +{\ | ||
27593 | + eval "${1}+=\\${2}"\ | ||
27594 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27595 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27596 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27597 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27598 | + | ||
27599 | + | ||
27600 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
27601 | +func_append_quoted ()\ | ||
27602 | +{\ | ||
27603 | +\ func_quote_for_eval "${2}"\ | ||
27604 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
27605 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
27606 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27607 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27608 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
27609 | + | ||
27610 | + | ||
27611 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
27612 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
27613 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27614 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27615 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
27616 | +else | ||
27617 | + # Save a `func_append' function call even when '+=' is not available | ||
27618 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
27619 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
27620 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
27621 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
27622 | +fi | ||
27623 | + | ||
27624 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
27625 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
27626 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
27627 | +fi | ||
27628 | |||
27629 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
27630 | - || (rm -f "$cfgfile"; exit 1) | ||
27631 | |||
27632 | - mv -f "$cfgfile" "$ofile" || | ||
27633 | + mv -f "$cfgfile" "$ofile" || | ||
27634 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
27635 | chmod +x "$ofile" | ||
27636 | |||
27637 | Index: binutils-2.20.1/opcodes/configure | ||
27638 | =================================================================== | ||
27639 | --- binutils-2.20.1.orig/opcodes/configure | ||
27640 | +++ binutils-2.20.1/opcodes/configure | ||
27641 | @@ -169,7 +169,15 @@ test x\$exitcode = x0 || exit 1" | ||
27642 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
27643 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
27644 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
27645 | -test \$(( 1 + 1 )) = 2 || exit 1" | ||
27646 | +test \$(( 1 + 1 )) = 2 || exit 1 | ||
27647 | + | ||
27648 | + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | ||
27649 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
27650 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
27651 | + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | ||
27652 | + PATH=/empty FPATH=/empty; export PATH FPATH | ||
27653 | + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | ||
27654 | + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | ||
27655 | if (eval "$as_required") 2>/dev/null; then : | ||
27656 | as_have_required=yes | ||
27657 | else | ||
27658 | @@ -523,155 +531,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P | ||
27659 | # Sed expression to map a string onto a valid variable name. | ||
27660 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
27661 | |||
27662 | - | ||
27663 | - | ||
27664 | -# Check that we are running under the correct shell. | ||
27665 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
27666 | |||
27667 | -case X$lt_ECHO in | ||
27668 | -X*--fallback-echo) | ||
27669 | - # Remove one level of quotation (which was required for Make). | ||
27670 | - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
27671 | - ;; | ||
27672 | -esac | ||
27673 | - | ||
27674 | -ECHO=${lt_ECHO-echo} | ||
27675 | -if test "X$1" = X--no-reexec; then | ||
27676 | - # Discard the --no-reexec flag, and continue. | ||
27677 | - shift | ||
27678 | -elif test "X$1" = X--fallback-echo; then | ||
27679 | - # Avoid inline document here, it may be left over | ||
27680 | - : | ||
27681 | -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
27682 | - # Yippee, $ECHO works! | ||
27683 | - : | ||
27684 | -else | ||
27685 | - # Restart under the correct shell. | ||
27686 | - exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
27687 | -fi | ||
27688 | - | ||
27689 | -if test "X$1" = X--fallback-echo; then | ||
27690 | - # used as fallback echo | ||
27691 | - shift | ||
27692 | - cat <<_LT_EOF | ||
27693 | -$* | ||
27694 | -_LT_EOF | ||
27695 | - exit 0 | ||
27696 | -fi | ||
27697 | - | ||
27698 | -# The HP-UX ksh and POSIX shell print the target directory to stdout | ||
27699 | -# if CDPATH is set. | ||
27700 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
27701 | - | ||
27702 | -if test -z "$lt_ECHO"; then | ||
27703 | - if test "X${echo_test_string+set}" != Xset; then | ||
27704 | - # find a string as large as possible, as long as the shell can cope with it | ||
27705 | - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
27706 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
27707 | - if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
27708 | - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
27709 | - then | ||
27710 | - break | ||
27711 | - fi | ||
27712 | - done | ||
27713 | - fi | ||
27714 | - | ||
27715 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
27716 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
27717 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
27718 | - : | ||
27719 | - else | ||
27720 | - # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
27721 | - # backslashes. This makes it impossible to quote backslashes using | ||
27722 | - # echo "$something" | sed 's/\\/\\\\/g' | ||
27723 | - # | ||
27724 | - # So, first we look for a working echo in the user's PATH. | ||
27725 | - | ||
27726 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
27727 | - for dir in $PATH /usr/ucb; do | ||
27728 | - IFS="$lt_save_ifs" | ||
27729 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
27730 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
27731 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
27732 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
27733 | - ECHO="$dir/echo" | ||
27734 | - break | ||
27735 | - fi | ||
27736 | - done | ||
27737 | - IFS="$lt_save_ifs" | ||
27738 | - | ||
27739 | - if test "X$ECHO" = Xecho; then | ||
27740 | - # We didn't find a better echo, so look for alternatives. | ||
27741 | - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
27742 | - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
27743 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
27744 | - # This shell has a builtin print -r that does the trick. | ||
27745 | - ECHO='print -r' | ||
27746 | - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
27747 | - test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
27748 | - # If we have ksh, try running configure again with it. | ||
27749 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
27750 | - export ORIGINAL_CONFIG_SHELL | ||
27751 | - CONFIG_SHELL=/bin/ksh | ||
27752 | - export CONFIG_SHELL | ||
27753 | - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
27754 | - else | ||
27755 | - # Try using printf. | ||
27756 | - ECHO='printf %s\n' | ||
27757 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
27758 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
27759 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
27760 | - # Cool, printf works | ||
27761 | - : | ||
27762 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
27763 | - test "X$echo_testing_string" = 'X\t' && | ||
27764 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
27765 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
27766 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
27767 | - export CONFIG_SHELL | ||
27768 | - SHELL="$CONFIG_SHELL" | ||
27769 | - export SHELL | ||
27770 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
27771 | - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
27772 | - test "X$echo_testing_string" = 'X\t' && | ||
27773 | - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
27774 | - test "X$echo_testing_string" = "X$echo_test_string"; then | ||
27775 | - ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
27776 | - else | ||
27777 | - # maybe with a smaller string... | ||
27778 | - prev=: | ||
27779 | - | ||
27780 | - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
27781 | - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
27782 | - then | ||
27783 | - break | ||
27784 | - fi | ||
27785 | - prev="$cmd" | ||
27786 | - done | ||
27787 | - | ||
27788 | - if test "$prev" != 'sed 50q "$0"'; then | ||
27789 | - echo_test_string=`eval $prev` | ||
27790 | - export echo_test_string | ||
27791 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
27792 | - else | ||
27793 | - # Oops. We lost completely, so just stick with echo. | ||
27794 | - ECHO=echo | ||
27795 | - fi | ||
27796 | - fi | ||
27797 | - fi | ||
27798 | - fi | ||
27799 | - fi | ||
27800 | -fi | ||
27801 | - | ||
27802 | -# Copy echo and quote the copy suitably for passing to libtool from | ||
27803 | -# the Makefile, instead of quoting the original, which is used later. | ||
27804 | -lt_ECHO=$ECHO | ||
27805 | -if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
27806 | - lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
27807 | -fi | ||
27808 | - | ||
27809 | - | ||
27810 | - | ||
27811 | |||
27812 | exec 7<&0 </dev/null 6>&1 | ||
27813 | |||
27814 | @@ -786,7 +647,9 @@ OTOOL | ||
27815 | LIPO | ||
27816 | NMEDIT | ||
27817 | DSYMUTIL | ||
27818 | -lt_ECHO | ||
27819 | +MANIFEST_TOOL | ||
27820 | +ac_ct_AR | ||
27821 | +DLLTOOL | ||
27822 | OBJDUMP | ||
27823 | LN_S | ||
27824 | NM | ||
27825 | @@ -899,6 +762,7 @@ enable_static | ||
27826 | with_pic | ||
27827 | enable_fast_install | ||
27828 | with_gnu_ld | ||
27829 | +with_libtool_sysroot | ||
27830 | enable_libtool_lock | ||
27831 | enable_targets | ||
27832 | enable_werror | ||
27833 | @@ -1557,6 +1421,8 @@ Optional Packages: | ||
27834 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
27835 | both] | ||
27836 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
27837 | + --with-libtool-sysroot=DIR Search for dependent libraries within DIR | ||
27838 | + (or the compiler's sysroot if not specified). | ||
27839 | |||
27840 | Some influential environment variables: | ||
27841 | CC C compiler command | ||
27842 | @@ -5246,8 +5112,8 @@ esac | ||
27843 | |||
27844 | |||
27845 | |||
27846 | -macro_version='2.2.6' | ||
27847 | -macro_revision='1.3012' | ||
27848 | +macro_version='2.4' | ||
27849 | +macro_revision='1.3293' | ||
27850 | |||
27851 | |||
27852 | |||
27853 | @@ -5263,6 +5129,75 @@ macro_revision='1.3012' | ||
27854 | |||
27855 | ltmain="$ac_aux_dir/ltmain.sh" | ||
27856 | |||
27857 | +# Backslashify metacharacters that are still active within | ||
27858 | +# double-quoted strings. | ||
27859 | +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
27860 | + | ||
27861 | +# Same as above, but do not quote variable references. | ||
27862 | +double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
27863 | + | ||
27864 | +# Sed substitution to delay expansion of an escaped shell variable in a | ||
27865 | +# double_quote_subst'ed string. | ||
27866 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
27867 | + | ||
27868 | +# Sed substitution to delay expansion of an escaped single quote. | ||
27869 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
27870 | + | ||
27871 | +# Sed substitution to avoid accidental globbing in evaled expressions | ||
27872 | +no_glob_subst='s/\*/\\\*/g' | ||
27873 | + | ||
27874 | +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
27875 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
27876 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
27877 | + | ||
27878 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
27879 | +$as_echo_n "checking how to print strings... " >&6; } | ||
27880 | +# Test print first, because it will be a builtin if present. | ||
27881 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
27882 | + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
27883 | + ECHO='print -r --' | ||
27884 | +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
27885 | + ECHO='printf %s\n' | ||
27886 | +else | ||
27887 | + # Use this function as a fallback that always works. | ||
27888 | + func_fallback_echo () | ||
27889 | + { | ||
27890 | + eval 'cat <<_LTECHO_EOF | ||
27891 | +$1 | ||
27892 | +_LTECHO_EOF' | ||
27893 | + } | ||
27894 | + ECHO='func_fallback_echo' | ||
27895 | +fi | ||
27896 | + | ||
27897 | +# func_echo_all arg... | ||
27898 | +# Invoke $ECHO with all args, space-separated. | ||
27899 | +func_echo_all () | ||
27900 | +{ | ||
27901 | + $ECHO "" | ||
27902 | +} | ||
27903 | + | ||
27904 | +case "$ECHO" in | ||
27905 | + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | ||
27906 | +$as_echo "printf" >&6; } ;; | ||
27907 | + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | ||
27908 | +$as_echo "print -r" >&6; } ;; | ||
27909 | + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | ||
27910 | +$as_echo "cat" >&6; } ;; | ||
27911 | +esac | ||
27912 | + | ||
27913 | + | ||
27914 | + | ||
27915 | + | ||
27916 | + | ||
27917 | + | ||
27918 | + | ||
27919 | + | ||
27920 | + | ||
27921 | + | ||
27922 | + | ||
27923 | + | ||
27924 | + | ||
27925 | + | ||
27926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
27927 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
27928 | if test "${ac_cv_path_SED+set}" = set; then : | ||
27929 | @@ -5598,8 +5533,11 @@ if test "$lt_cv_path_NM" != "no"; then | ||
27930 | NM="$lt_cv_path_NM" | ||
27931 | else | ||
27932 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
27933 | - if test -n "$ac_tool_prefix"; then | ||
27934 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
27935 | + if test -n "$DUMPBIN"; then : | ||
27936 | + # Let the user override the test. | ||
27937 | + else | ||
27938 | + if test -n "$ac_tool_prefix"; then | ||
27939 | + for ac_prog in dumpbin "link -dump" | ||
27940 | do | ||
27941 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
27942 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
27943 | @@ -5643,7 +5581,7 @@ fi | ||
27944 | fi | ||
27945 | if test -z "$DUMPBIN"; then | ||
27946 | ac_ct_DUMPBIN=$DUMPBIN | ||
27947 | - for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
27948 | + for ac_prog in dumpbin "link -dump" | ||
27949 | do | ||
27950 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
27951 | set dummy $ac_prog; ac_word=$2 | ||
27952 | @@ -5698,6 +5636,15 @@ esac | ||
27953 | fi | ||
27954 | fi | ||
27955 | |||
27956 | + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
27957 | + *COFF*) | ||
27958 | + DUMPBIN="$DUMPBIN -symbols" | ||
27959 | + ;; | ||
27960 | + *) | ||
27961 | + DUMPBIN=: | ||
27962 | + ;; | ||
27963 | + esac | ||
27964 | + fi | ||
27965 | |||
27966 | if test "$DUMPBIN" != ":"; then | ||
27967 | NM="$DUMPBIN" | ||
27968 | @@ -5717,13 +5664,13 @@ if test "${lt_cv_nm_interface+set}" = se | ||
27969 | else | ||
27970 | lt_cv_nm_interface="BSD nm" | ||
27971 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
27972 | - (eval echo "\"\$as_me:5720: $ac_compile\"" >&5) | ||
27973 | + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | ||
27974 | (eval "$ac_compile" 2>conftest.err) | ||
27975 | cat conftest.err >&5 | ||
27976 | - (eval echo "\"\$as_me:5723: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
27977 | + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
27978 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
27979 | cat conftest.err >&5 | ||
27980 | - (eval echo "\"\$as_me:5726: output\"" >&5) | ||
27981 | + (eval echo "\"\$as_me:$LINENO: output\"" >&5) | ||
27982 | cat conftest.out >&5 | ||
27983 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
27984 | lt_cv_nm_interface="MS dumpbin" | ||
27985 | @@ -5780,6 +5727,11 @@ else | ||
27986 | lt_cv_sys_max_cmd_len=8192; | ||
27987 | ;; | ||
27988 | |||
27989 | + mint*) | ||
27990 | + # On MiNT this can take a long time and run out of memory. | ||
27991 | + lt_cv_sys_max_cmd_len=8192; | ||
27992 | + ;; | ||
27993 | + | ||
27994 | amigaos*) | ||
27995 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
27996 | # So we just punt and use a minimum line length of 8192. | ||
27997 | @@ -5844,8 +5796,8 @@ else | ||
27998 | # If test is not a shell built-in, we'll probably end up computing a | ||
27999 | # maximum length that is only half of the actual maximum length, but | ||
28000 | # we can't tell. | ||
28001 | - while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
28002 | - = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
28003 | + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | ||
28004 | + = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
28005 | test $i != 17 # 1/2 MB should be enough | ||
28006 | do | ||
28007 | i=`expr $i + 1` | ||
28008 | @@ -5887,8 +5839,8 @@ $as_echo_n "checking whether the shell u | ||
28009 | # Try some XSI features | ||
28010 | xsi_shell=no | ||
28011 | ( _lt_dummy="a/b/c" | ||
28012 | - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
28013 | - = c,a/b,, \ | ||
28014 | + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | ||
28015 | + = c,a/b,b/c, \ | ||
28016 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
28017 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
28018 | && xsi_shell=yes | ||
28019 | @@ -5937,6 +5889,80 @@ esac | ||
28020 | |||
28021 | |||
28022 | |||
28023 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | ||
28024 | +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } | ||
28025 | +if test "${lt_cv_to_host_file_cmd+set}" = set; then : | ||
28026 | + $as_echo_n "(cached) " >&6 | ||
28027 | +else | ||
28028 | + case $host in | ||
28029 | + *-*-mingw* ) | ||
28030 | + case $build in | ||
28031 | + *-*-mingw* ) # actually msys | ||
28032 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
28033 | + ;; | ||
28034 | + *-*-cygwin* ) | ||
28035 | + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
28036 | + ;; | ||
28037 | + * ) # otherwise, assume *nix | ||
28038 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
28039 | + ;; | ||
28040 | + esac | ||
28041 | + ;; | ||
28042 | + *-*-cygwin* ) | ||
28043 | + case $build in | ||
28044 | + *-*-mingw* ) # actually msys | ||
28045 | + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
28046 | + ;; | ||
28047 | + *-*-cygwin* ) | ||
28048 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
28049 | + ;; | ||
28050 | + * ) # otherwise, assume *nix | ||
28051 | + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
28052 | + ;; | ||
28053 | + esac | ||
28054 | + ;; | ||
28055 | + * ) # unhandled hosts (and "normal" native builds) | ||
28056 | + lt_cv_to_host_file_cmd=func_convert_file_noop | ||
28057 | + ;; | ||
28058 | +esac | ||
28059 | + | ||
28060 | +fi | ||
28061 | + | ||
28062 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
28063 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
28064 | +$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
28065 | + | ||
28066 | + | ||
28067 | + | ||
28068 | + | ||
28069 | + | ||
28070 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | ||
28071 | +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | ||
28072 | +if test "${lt_cv_to_tool_file_cmd+set}" = set; then : | ||
28073 | + $as_echo_n "(cached) " >&6 | ||
28074 | +else | ||
28075 | + #assume ordinary cross tools, or native build. | ||
28076 | +lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
28077 | +case $host in | ||
28078 | + *-*-mingw* ) | ||
28079 | + case $build in | ||
28080 | + *-*-mingw* ) # actually msys | ||
28081 | + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
28082 | + ;; | ||
28083 | + esac | ||
28084 | + ;; | ||
28085 | +esac | ||
28086 | + | ||
28087 | +fi | ||
28088 | + | ||
28089 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
28090 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
28091 | +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
28092 | + | ||
28093 | + | ||
28094 | + | ||
28095 | + | ||
28096 | + | ||
28097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
28098 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
28099 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
28100 | @@ -5953,6 +5979,11 @@ case $reload_flag in | ||
28101 | esac | ||
28102 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
28103 | case $host_os in | ||
28104 | + cygwin* | mingw* | pw32* | cegcc*) | ||
28105 | + if test "$GCC" != yes; then | ||
28106 | + reload_cmds=false | ||
28107 | + fi | ||
28108 | + ;; | ||
28109 | darwin*) | ||
28110 | if test "$GCC" = yes; then | ||
28111 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
28112 | @@ -6116,16 +6147,18 @@ mingw* | pw32*) | ||
28113 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
28114 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
28115 | # unless we find 'file', for example because we are cross-compiling. | ||
28116 | - if ( file / ) >/dev/null 2>&1; then | ||
28117 | + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
28118 | + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
28119 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
28120 | lt_cv_file_magic_cmd='func_win32_libid' | ||
28121 | else | ||
28122 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
28123 | + # Keep this pattern in sync with the one in func_win32_libid. | ||
28124 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
28125 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
28126 | fi | ||
28127 | ;; | ||
28128 | |||
28129 | -cegcc) | ||
28130 | +cegcc*) | ||
28131 | # use the weaker test based on 'objdump'. See mingw*. | ||
28132 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
28133 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
28134 | @@ -6155,6 +6188,10 @@ gnu*) | ||
28135 | lt_cv_deplibs_check_method=pass_all | ||
28136 | ;; | ||
28137 | |||
28138 | +haiku*) | ||
28139 | + lt_cv_deplibs_check_method=pass_all | ||
28140 | + ;; | ||
28141 | + | ||
28142 | hpux10.20* | hpux11*) | ||
28143 | lt_cv_file_magic_cmd=/usr/bin/file | ||
28144 | case $host_cpu in | ||
28145 | @@ -6163,11 +6200,11 @@ hpux10.20* | hpux11*) | ||
28146 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
28147 | ;; | ||
28148 | hppa*64*) | ||
28149 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
28150 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | ||
28151 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
28152 | ;; | ||
28153 | *) | ||
28154 | - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
28155 | + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | ||
28156 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
28157 | ;; | ||
28158 | esac | ||
28159 | @@ -6270,6 +6307,21 @@ esac | ||
28160 | fi | ||
28161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
28162 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
28163 | + | ||
28164 | +file_magic_glob= | ||
28165 | +want_nocaseglob=no | ||
28166 | +if test "$build" = "$host"; then | ||
28167 | + case $host_os in | ||
28168 | + mingw* | pw32*) | ||
28169 | + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
28170 | + want_nocaseglob=yes | ||
28171 | + else | ||
28172 | + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
28173 | + fi | ||
28174 | + ;; | ||
28175 | + esac | ||
28176 | +fi | ||
28177 | + | ||
28178 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
28179 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
28180 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
28181 | @@ -6285,16 +6337,26 @@ test -z "$deplibs_check_method" && depli | ||
28182 | |||
28183 | |||
28184 | |||
28185 | + | ||
28186 | + | ||
28187 | + | ||
28188 | + | ||
28189 | + | ||
28190 | + | ||
28191 | + | ||
28192 | + | ||
28193 | + | ||
28194 | + | ||
28195 | if test -n "$ac_tool_prefix"; then | ||
28196 | - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
28197 | -set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
28198 | + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
28199 | +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
28200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
28201 | $as_echo_n "checking for $ac_word... " >&6; } | ||
28202 | -if test "${ac_cv_prog_AR+set}" = set; then : | ||
28203 | +if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
28204 | $as_echo_n "(cached) " >&6 | ||
28205 | else | ||
28206 | - if test -n "$AR"; then | ||
28207 | - ac_cv_prog_AR="$AR" # Let the user override the test. | ||
28208 | + if test -n "$DLLTOOL"; then | ||
28209 | + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
28210 | else | ||
28211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28212 | for as_dir in $PATH | ||
28213 | @@ -6303,7 +6365,7 @@ do | ||
28214 | test -z "$as_dir" && as_dir=. | ||
28215 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28217 | - ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
28218 | + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
28219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28220 | break 2 | ||
28221 | fi | ||
28222 | @@ -6313,10 +6375,10 @@ IFS=$as_save_IFS | ||
28223 | |||
28224 | fi | ||
28225 | fi | ||
28226 | -AR=$ac_cv_prog_AR | ||
28227 | -if test -n "$AR"; then | ||
28228 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
28229 | -$as_echo "$AR" >&6; } | ||
28230 | +DLLTOOL=$ac_cv_prog_DLLTOOL | ||
28231 | +if test -n "$DLLTOOL"; then | ||
28232 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
28233 | +$as_echo "$DLLTOOL" >&6; } | ||
28234 | else | ||
28235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28236 | $as_echo "no" >&6; } | ||
28237 | @@ -6324,17 +6386,17 @@ fi | ||
28238 | |||
28239 | |||
28240 | fi | ||
28241 | -if test -z "$ac_cv_prog_AR"; then | ||
28242 | - ac_ct_AR=$AR | ||
28243 | - # Extract the first word of "ar", so it can be a program name with args. | ||
28244 | -set dummy ar; ac_word=$2 | ||
28245 | +if test -z "$ac_cv_prog_DLLTOOL"; then | ||
28246 | + ac_ct_DLLTOOL=$DLLTOOL | ||
28247 | + # Extract the first word of "dlltool", so it can be a program name with args. | ||
28248 | +set dummy dlltool; ac_word=$2 | ||
28249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
28250 | $as_echo_n "checking for $ac_word... " >&6; } | ||
28251 | -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
28252 | +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
28253 | $as_echo_n "(cached) " >&6 | ||
28254 | else | ||
28255 | - if test -n "$ac_ct_AR"; then | ||
28256 | - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
28257 | + if test -n "$ac_ct_DLLTOOL"; then | ||
28258 | + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
28259 | else | ||
28260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28261 | for as_dir in $PATH | ||
28262 | @@ -6343,7 +6405,7 @@ do | ||
28263 | test -z "$as_dir" && as_dir=. | ||
28264 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28266 | - ac_cv_prog_ac_ct_AR="ar" | ||
28267 | + ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
28268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28269 | break 2 | ||
28270 | fi | ||
28271 | @@ -6353,17 +6415,17 @@ IFS=$as_save_IFS | ||
28272 | |||
28273 | fi | ||
28274 | fi | ||
28275 | -ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
28276 | -if test -n "$ac_ct_AR"; then | ||
28277 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
28278 | -$as_echo "$ac_ct_AR" >&6; } | ||
28279 | +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
28280 | +if test -n "$ac_ct_DLLTOOL"; then | ||
28281 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
28282 | +$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
28283 | else | ||
28284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28285 | $as_echo "no" >&6; } | ||
28286 | fi | ||
28287 | |||
28288 | - if test "x$ac_ct_AR" = x; then | ||
28289 | - AR="false" | ||
28290 | + if test "x$ac_ct_DLLTOOL" = x; then | ||
28291 | + DLLTOOL="false" | ||
28292 | else | ||
28293 | case $cross_compiling:$ac_tool_warned in | ||
28294 | yes:) | ||
28295 | @@ -6371,18 +6433,54 @@ yes:) | ||
28296 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
28297 | ac_tool_warned=yes ;; | ||
28298 | esac | ||
28299 | - AR=$ac_ct_AR | ||
28300 | + DLLTOOL=$ac_ct_DLLTOOL | ||
28301 | fi | ||
28302 | else | ||
28303 | - AR="$ac_cv_prog_AR" | ||
28304 | + DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
28305 | fi | ||
28306 | |||
28307 | -test -z "$AR" && AR=ar | ||
28308 | -test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
28309 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
28310 | + | ||
28311 | + | ||
28312 | + | ||
28313 | + | ||
28314 | + | ||
28315 | + | ||
28316 | |||
28317 | |||
28318 | |||
28319 | |||
28320 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | ||
28321 | +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
28322 | +if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then : | ||
28323 | + $as_echo_n "(cached) " >&6 | ||
28324 | +else | ||
28325 | + lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
28326 | + | ||
28327 | +case $host_os in | ||
28328 | +cygwin* | mingw* | pw32* | cegcc*) | ||
28329 | + # two different shell functions defined in ltmain.sh | ||
28330 | + # decide which to use based on capabilities of $DLLTOOL | ||
28331 | + case `$DLLTOOL --help 2>&1` in | ||
28332 | + *--identify-strict*) | ||
28333 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
28334 | + ;; | ||
28335 | + *) | ||
28336 | + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
28337 | + ;; | ||
28338 | + esac | ||
28339 | + ;; | ||
28340 | +*) | ||
28341 | + # fallback: assume linklib IS sharedlib | ||
28342 | + lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
28343 | + ;; | ||
28344 | +esac | ||
28345 | + | ||
28346 | +fi | ||
28347 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | ||
28348 | +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
28349 | +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
28350 | +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
28351 | |||
28352 | |||
28353 | |||
28354 | @@ -6391,15 +6489,17 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
28355 | |||
28356 | |||
28357 | if test -n "$ac_tool_prefix"; then | ||
28358 | - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
28359 | -set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
28360 | + for ac_prog in ar | ||
28361 | + do | ||
28362 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
28363 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
28364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
28365 | $as_echo_n "checking for $ac_word... " >&6; } | ||
28366 | -if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
28367 | +if test "${ac_cv_prog_AR+set}" = set; then : | ||
28368 | $as_echo_n "(cached) " >&6 | ||
28369 | else | ||
28370 | - if test -n "$STRIP"; then | ||
28371 | - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
28372 | + if test -n "$AR"; then | ||
28373 | + ac_cv_prog_AR="$AR" # Let the user override the test. | ||
28374 | else | ||
28375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28376 | for as_dir in $PATH | ||
28377 | @@ -6408,7 +6508,7 @@ do | ||
28378 | test -z "$as_dir" && as_dir=. | ||
28379 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28381 | - ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
28382 | + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
28383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28384 | break 2 | ||
28385 | fi | ||
28386 | @@ -6418,28 +6518,32 @@ IFS=$as_save_IFS | ||
28387 | |||
28388 | fi | ||
28389 | fi | ||
28390 | -STRIP=$ac_cv_prog_STRIP | ||
28391 | -if test -n "$STRIP"; then | ||
28392 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
28393 | -$as_echo "$STRIP" >&6; } | ||
28394 | +AR=$ac_cv_prog_AR | ||
28395 | +if test -n "$AR"; then | ||
28396 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
28397 | +$as_echo "$AR" >&6; } | ||
28398 | else | ||
28399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28400 | $as_echo "no" >&6; } | ||
28401 | fi | ||
28402 | |||
28403 | |||
28404 | + test -n "$AR" && break | ||
28405 | + done | ||
28406 | fi | ||
28407 | -if test -z "$ac_cv_prog_STRIP"; then | ||
28408 | - ac_ct_STRIP=$STRIP | ||
28409 | - # Extract the first word of "strip", so it can be a program name with args. | ||
28410 | -set dummy strip; ac_word=$2 | ||
28411 | +if test -z "$AR"; then | ||
28412 | + ac_ct_AR=$AR | ||
28413 | + for ac_prog in ar | ||
28414 | +do | ||
28415 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
28416 | +set dummy $ac_prog; ac_word=$2 | ||
28417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
28418 | $as_echo_n "checking for $ac_word... " >&6; } | ||
28419 | -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
28420 | +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
28421 | $as_echo_n "(cached) " >&6 | ||
28422 | else | ||
28423 | - if test -n "$ac_ct_STRIP"; then | ||
28424 | - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
28425 | + if test -n "$ac_ct_AR"; then | ||
28426 | + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
28427 | else | ||
28428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28429 | for as_dir in $PATH | ||
28430 | @@ -6448,7 +6552,7 @@ do | ||
28431 | test -z "$as_dir" && as_dir=. | ||
28432 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28434 | - ac_cv_prog_ac_ct_STRIP="strip" | ||
28435 | + ac_cv_prog_ac_ct_AR="$ac_prog" | ||
28436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28437 | break 2 | ||
28438 | fi | ||
28439 | @@ -6458,11 +6562,176 @@ IFS=$as_save_IFS | ||
28440 | |||
28441 | fi | ||
28442 | fi | ||
28443 | -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
28444 | -if test -n "$ac_ct_STRIP"; then | ||
28445 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
28446 | -$as_echo "$ac_ct_STRIP" >&6; } | ||
28447 | -else | ||
28448 | +ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
28449 | +if test -n "$ac_ct_AR"; then | ||
28450 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
28451 | +$as_echo "$ac_ct_AR" >&6; } | ||
28452 | +else | ||
28453 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28454 | +$as_echo "no" >&6; } | ||
28455 | +fi | ||
28456 | + | ||
28457 | + | ||
28458 | + test -n "$ac_ct_AR" && break | ||
28459 | +done | ||
28460 | + | ||
28461 | + if test "x$ac_ct_AR" = x; then | ||
28462 | + AR="false" | ||
28463 | + else | ||
28464 | + case $cross_compiling:$ac_tool_warned in | ||
28465 | +yes:) | ||
28466 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
28467 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
28468 | +ac_tool_warned=yes ;; | ||
28469 | +esac | ||
28470 | + AR=$ac_ct_AR | ||
28471 | + fi | ||
28472 | +fi | ||
28473 | + | ||
28474 | +: ${AR=ar} | ||
28475 | +: ${AR_FLAGS=cru} | ||
28476 | + | ||
28477 | + | ||
28478 | + | ||
28479 | + | ||
28480 | + | ||
28481 | + | ||
28482 | + | ||
28483 | + | ||
28484 | + | ||
28485 | + | ||
28486 | + | ||
28487 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | ||
28488 | +$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
28489 | +if test "${lt_cv_ar_at_file+set}" = set; then : | ||
28490 | + $as_echo_n "(cached) " >&6 | ||
28491 | +else | ||
28492 | + lt_cv_ar_at_file=no | ||
28493 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28494 | +/* end confdefs.h. */ | ||
28495 | + | ||
28496 | +int | ||
28497 | +main () | ||
28498 | +{ | ||
28499 | + | ||
28500 | + ; | ||
28501 | + return 0; | ||
28502 | +} | ||
28503 | +_ACEOF | ||
28504 | +if ac_fn_c_try_compile "$LINENO"; then : | ||
28505 | + echo conftest.$ac_objext > conftest.lst | ||
28506 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
28507 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
28508 | + (eval $lt_ar_try) 2>&5 | ||
28509 | + ac_status=$? | ||
28510 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28511 | + test $ac_status = 0; } | ||
28512 | + if test "$ac_status" -eq 0; then | ||
28513 | + # Ensure the archiver fails upon bogus file names. | ||
28514 | + rm -f conftest.$ac_objext libconftest.a | ||
28515 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
28516 | + (eval $lt_ar_try) 2>&5 | ||
28517 | + ac_status=$? | ||
28518 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28519 | + test $ac_status = 0; } | ||
28520 | + if test "$ac_status" -ne 0; then | ||
28521 | + lt_cv_ar_at_file=@ | ||
28522 | + fi | ||
28523 | + fi | ||
28524 | + rm -f conftest.* libconftest.a | ||
28525 | + | ||
28526 | +fi | ||
28527 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28528 | + | ||
28529 | +fi | ||
28530 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
28531 | +$as_echo "$lt_cv_ar_at_file" >&6; } | ||
28532 | + | ||
28533 | +if test "x$lt_cv_ar_at_file" = xno; then | ||
28534 | + archiver_list_spec= | ||
28535 | +else | ||
28536 | + archiver_list_spec=$lt_cv_ar_at_file | ||
28537 | +fi | ||
28538 | + | ||
28539 | + | ||
28540 | + | ||
28541 | + | ||
28542 | + | ||
28543 | + | ||
28544 | + | ||
28545 | +if test -n "$ac_tool_prefix"; then | ||
28546 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
28547 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
28548 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
28549 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
28550 | +if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
28551 | + $as_echo_n "(cached) " >&6 | ||
28552 | +else | ||
28553 | + if test -n "$STRIP"; then | ||
28554 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
28555 | +else | ||
28556 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28557 | +for as_dir in $PATH | ||
28558 | +do | ||
28559 | + IFS=$as_save_IFS | ||
28560 | + test -z "$as_dir" && as_dir=. | ||
28561 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
28562 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28563 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
28564 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28565 | + break 2 | ||
28566 | + fi | ||
28567 | +done | ||
28568 | + done | ||
28569 | +IFS=$as_save_IFS | ||
28570 | + | ||
28571 | +fi | ||
28572 | +fi | ||
28573 | +STRIP=$ac_cv_prog_STRIP | ||
28574 | +if test -n "$STRIP"; then | ||
28575 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
28576 | +$as_echo "$STRIP" >&6; } | ||
28577 | +else | ||
28578 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28579 | +$as_echo "no" >&6; } | ||
28580 | +fi | ||
28581 | + | ||
28582 | + | ||
28583 | +fi | ||
28584 | +if test -z "$ac_cv_prog_STRIP"; then | ||
28585 | + ac_ct_STRIP=$STRIP | ||
28586 | + # Extract the first word of "strip", so it can be a program name with args. | ||
28587 | +set dummy strip; ac_word=$2 | ||
28588 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
28589 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
28590 | +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
28591 | + $as_echo_n "(cached) " >&6 | ||
28592 | +else | ||
28593 | + if test -n "$ac_ct_STRIP"; then | ||
28594 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
28595 | +else | ||
28596 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28597 | +for as_dir in $PATH | ||
28598 | +do | ||
28599 | + IFS=$as_save_IFS | ||
28600 | + test -z "$as_dir" && as_dir=. | ||
28601 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
28602 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28603 | + ac_cv_prog_ac_ct_STRIP="strip" | ||
28604 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28605 | + break 2 | ||
28606 | + fi | ||
28607 | +done | ||
28608 | + done | ||
28609 | +IFS=$as_save_IFS | ||
28610 | + | ||
28611 | +fi | ||
28612 | +fi | ||
28613 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
28614 | +if test -n "$ac_ct_STRIP"; then | ||
28615 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
28616 | +$as_echo "$ac_ct_STRIP" >&6; } | ||
28617 | +else | ||
28618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28619 | $as_echo "no" >&6; } | ||
28620 | fi | ||
28621 | @@ -6605,6 +6874,18 @@ if test -n "$RANLIB"; then | ||
28622 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
28623 | fi | ||
28624 | |||
28625 | +case $host_os in | ||
28626 | + darwin*) | ||
28627 | + lock_old_archive_extraction=yes ;; | ||
28628 | + *) | ||
28629 | + lock_old_archive_extraction=no ;; | ||
28630 | +esac | ||
28631 | + | ||
28632 | + | ||
28633 | + | ||
28634 | + | ||
28635 | + | ||
28636 | + | ||
28637 | |||
28638 | |||
28639 | |||
28640 | @@ -6712,8 +6993,8 @@ esac | ||
28641 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
28642 | |||
28643 | # Transform an extracted symbol line into symbol name and symbol address | ||
28644 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
28645 | -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'" | ||
28646 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
28647 | +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'" | ||
28648 | |||
28649 | # Handle CRLF in mingw tool chain | ||
28650 | opt_cr= | ||
28651 | @@ -6749,6 +7030,7 @@ for ac_symprfx in "" "_"; do | ||
28652 | else | ||
28653 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
28654 | fi | ||
28655 | + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
28656 | |||
28657 | # Check to see that the pipe works correctly. | ||
28658 | pipe_works=no | ||
28659 | @@ -6774,8 +7056,8 @@ _LT_EOF | ||
28660 | test $ac_status = 0; }; then | ||
28661 | # Now try to grab the symbols. | ||
28662 | nlist=conftest.nm | ||
28663 | - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
28664 | - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
28665 | + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | ||
28666 | + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | ||
28667 | ac_status=$? | ||
28668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28669 | test $ac_status = 0; } && test -s "$nlist"; then | ||
28670 | @@ -6790,6 +7072,18 @@ _LT_EOF | ||
28671 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
28672 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
28673 | cat <<_LT_EOF > conftest.$ac_ext | ||
28674 | +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
28675 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
28676 | +/* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
28677 | + relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
28678 | +# define LT_DLSYM_CONST | ||
28679 | +#elif defined(__osf__) | ||
28680 | +/* This system does not cope well with relocations in const data. */ | ||
28681 | +# define LT_DLSYM_CONST | ||
28682 | +#else | ||
28683 | +# define LT_DLSYM_CONST const | ||
28684 | +#endif | ||
28685 | + | ||
28686 | #ifdef __cplusplus | ||
28687 | extern "C" { | ||
28688 | #endif | ||
28689 | @@ -6801,7 +7095,7 @@ _LT_EOF | ||
28690 | cat <<_LT_EOF >> conftest.$ac_ext | ||
28691 | |||
28692 | /* The mapping between symbol names and symbols. */ | ||
28693 | -const struct { | ||
28694 | +LT_DLSYM_CONST struct { | ||
28695 | const char *name; | ||
28696 | void *address; | ||
28697 | } | ||
28698 | @@ -6827,8 +7121,8 @@ static const void *lt_preloaded_setup() | ||
28699 | _LT_EOF | ||
28700 | # Now try linking the two files. | ||
28701 | mv conftest.$ac_objext conftstm.$ac_objext | ||
28702 | - lt_save_LIBS="$LIBS" | ||
28703 | - lt_save_CFLAGS="$CFLAGS" | ||
28704 | + lt_globsym_save_LIBS=$LIBS | ||
28705 | + lt_globsym_save_CFLAGS=$CFLAGS | ||
28706 | LIBS="conftstm.$ac_objext" | ||
28707 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
28708 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
28709 | @@ -6838,8 +7132,8 @@ _LT_EOF | ||
28710 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
28711 | pipe_works=yes | ||
28712 | fi | ||
28713 | - LIBS="$lt_save_LIBS" | ||
28714 | - CFLAGS="$lt_save_CFLAGS" | ||
28715 | + LIBS=$lt_globsym_save_LIBS | ||
28716 | + CFLAGS=$lt_globsym_save_CFLAGS | ||
28717 | else | ||
28718 | echo "cannot find nm_test_func in $nlist" >&5 | ||
28719 | fi | ||
28720 | @@ -6876,6 +7170,19 @@ else | ||
28721 | $as_echo "ok" >&6; } | ||
28722 | fi | ||
28723 | |||
28724 | +# Response file support. | ||
28725 | +if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
28726 | + nm_file_list_spec='@' | ||
28727 | +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | ||
28728 | + nm_file_list_spec='@' | ||
28729 | +fi | ||
28730 | + | ||
28731 | + | ||
28732 | + | ||
28733 | + | ||
28734 | + | ||
28735 | + | ||
28736 | + | ||
28737 | |||
28738 | |||
28739 | |||
28740 | @@ -6896,6 +7203,42 @@ fi | ||
28741 | |||
28742 | |||
28743 | |||
28744 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | ||
28745 | +$as_echo_n "checking for sysroot... " >&6; } | ||
28746 | + | ||
28747 | +# Check whether --with-libtool-sysroot was given. | ||
28748 | +if test "${with_libtool_sysroot+set}" = set; then : | ||
28749 | + withval=$with_libtool_sysroot; | ||
28750 | +else | ||
28751 | + with_libtool_sysroot=no | ||
28752 | +fi | ||
28753 | + | ||
28754 | + | ||
28755 | +lt_sysroot= | ||
28756 | +case ${with_libtool_sysroot} in #( | ||
28757 | + yes) | ||
28758 | + if test "$GCC" = yes; then | ||
28759 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
28760 | + fi | ||
28761 | + ;; #( | ||
28762 | + /*) | ||
28763 | + lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` | ||
28764 | + ;; #( | ||
28765 | + no|'') | ||
28766 | + ;; #( | ||
28767 | + *) | ||
28768 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 | ||
28769 | +$as_echo "${with_libtool_sysroot}" >&6; } | ||
28770 | + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 | ||
28771 | + ;; | ||
28772 | +esac | ||
28773 | + | ||
28774 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | ||
28775 | +$as_echo "${lt_sysroot:-no}" >&6; } | ||
28776 | + | ||
28777 | + | ||
28778 | + | ||
28779 | + | ||
28780 | |||
28781 | # Check whether --enable-libtool-lock was given. | ||
28782 | if test "${enable_libtool_lock+set}" = set; then : | ||
28783 | @@ -6928,7 +7271,7 @@ ia64-*-hpux*) | ||
28784 | ;; | ||
28785 | *-*-irix6*) | ||
28786 | # Find out which ABI we are using. | ||
28787 | - echo '#line 6931 "configure"' > conftest.$ac_ext | ||
28788 | + echo '#line '$LINENO' "configure"' > conftest.$ac_ext | ||
28789 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
28790 | (eval $ac_compile) 2>&5 | ||
28791 | ac_status=$? | ||
28792 | @@ -7090,6 +7433,123 @@ esac | ||
28793 | |||
28794 | need_locks="$enable_libtool_lock" | ||
28795 | |||
28796 | +if test -n "$ac_tool_prefix"; then | ||
28797 | + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | ||
28798 | +set dummy ${ac_tool_prefix}mt; ac_word=$2 | ||
28799 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
28800 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
28801 | +if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then : | ||
28802 | + $as_echo_n "(cached) " >&6 | ||
28803 | +else | ||
28804 | + if test -n "$MANIFEST_TOOL"; then | ||
28805 | + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | ||
28806 | +else | ||
28807 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28808 | +for as_dir in $PATH | ||
28809 | +do | ||
28810 | + IFS=$as_save_IFS | ||
28811 | + test -z "$as_dir" && as_dir=. | ||
28812 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
28813 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28814 | + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | ||
28815 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28816 | + break 2 | ||
28817 | + fi | ||
28818 | +done | ||
28819 | + done | ||
28820 | +IFS=$as_save_IFS | ||
28821 | + | ||
28822 | +fi | ||
28823 | +fi | ||
28824 | +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | ||
28825 | +if test -n "$MANIFEST_TOOL"; then | ||
28826 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | ||
28827 | +$as_echo "$MANIFEST_TOOL" >&6; } | ||
28828 | +else | ||
28829 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28830 | +$as_echo "no" >&6; } | ||
28831 | +fi | ||
28832 | + | ||
28833 | + | ||
28834 | +fi | ||
28835 | +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | ||
28836 | + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | ||
28837 | + # Extract the first word of "mt", so it can be a program name with args. | ||
28838 | +set dummy mt; ac_word=$2 | ||
28839 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
28840 | +$as_echo_n "checking for $ac_word... " >&6; } | ||
28841 | +if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then : | ||
28842 | + $as_echo_n "(cached) " >&6 | ||
28843 | +else | ||
28844 | + if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
28845 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | ||
28846 | +else | ||
28847 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28848 | +for as_dir in $PATH | ||
28849 | +do | ||
28850 | + IFS=$as_save_IFS | ||
28851 | + test -z "$as_dir" && as_dir=. | ||
28852 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
28853 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28854 | + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | ||
28855 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28856 | + break 2 | ||
28857 | + fi | ||
28858 | +done | ||
28859 | + done | ||
28860 | +IFS=$as_save_IFS | ||
28861 | + | ||
28862 | +fi | ||
28863 | +fi | ||
28864 | +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | ||
28865 | +if test -n "$ac_ct_MANIFEST_TOOL"; then | ||
28866 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | ||
28867 | +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | ||
28868 | +else | ||
28869 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28870 | +$as_echo "no" >&6; } | ||
28871 | +fi | ||
28872 | + | ||
28873 | + if test "x$ac_ct_MANIFEST_TOOL" = x; then | ||
28874 | + MANIFEST_TOOL=":" | ||
28875 | + else | ||
28876 | + case $cross_compiling:$ac_tool_warned in | ||
28877 | +yes:) | ||
28878 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
28879 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
28880 | +ac_tool_warned=yes ;; | ||
28881 | +esac | ||
28882 | + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | ||
28883 | + fi | ||
28884 | +else | ||
28885 | + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | ||
28886 | +fi | ||
28887 | + | ||
28888 | +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
28889 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | ||
28890 | +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | ||
28891 | +if test "${lt_cv_path_mainfest_tool+set}" = set; then : | ||
28892 | + $as_echo_n "(cached) " >&6 | ||
28893 | +else | ||
28894 | + lt_cv_path_mainfest_tool=no | ||
28895 | + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | ||
28896 | + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
28897 | + cat conftest.err >&5 | ||
28898 | + if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
28899 | + lt_cv_path_mainfest_tool=yes | ||
28900 | + fi | ||
28901 | + rm -f conftest* | ||
28902 | +fi | ||
28903 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | ||
28904 | +$as_echo "$lt_cv_path_mainfest_tool" >&6; } | ||
28905 | +if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
28906 | + MANIFEST_TOOL=: | ||
28907 | +fi | ||
28908 | + | ||
28909 | + | ||
28910 | + | ||
28911 | + | ||
28912 | + | ||
28913 | |||
28914 | case $host_os in | ||
28915 | rhapsody* | darwin*) | ||
28916 | @@ -7640,6 +8100,38 @@ rm -f core conftest.err conftest.$ac_obj | ||
28917 | fi | ||
28918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
28919 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
28920 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | ||
28921 | +$as_echo_n "checking for -force_load linker flag... " >&6; } | ||
28922 | +if test "${lt_cv_ld_force_load+set}" = set; then : | ||
28923 | + $as_echo_n "(cached) " >&6 | ||
28924 | +else | ||
28925 | + lt_cv_ld_force_load=no | ||
28926 | + cat > conftest.c << _LT_EOF | ||
28927 | +int forced_loaded() { return 2;} | ||
28928 | +_LT_EOF | ||
28929 | + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | ||
28930 | + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | ||
28931 | + echo "$AR cru libconftest.a conftest.o" >&5 | ||
28932 | + $AR cru libconftest.a conftest.o 2>&5 | ||
28933 | + echo "$RANLIB libconftest.a" >&5 | ||
28934 | + $RANLIB libconftest.a 2>&5 | ||
28935 | + cat > conftest.c << _LT_EOF | ||
28936 | +int main() { return 0;} | ||
28937 | +_LT_EOF | ||
28938 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | ||
28939 | + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
28940 | + _lt_result=$? | ||
28941 | + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
28942 | + lt_cv_ld_force_load=yes | ||
28943 | + else | ||
28944 | + cat conftest.err >&5 | ||
28945 | + fi | ||
28946 | + rm -f conftest.err libconftest.a conftest conftest.c | ||
28947 | + rm -rf conftest.dSYM | ||
28948 | + | ||
28949 | +fi | ||
28950 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | ||
28951 | +$as_echo "$lt_cv_ld_force_load" >&6; } | ||
28952 | case $host_os in | ||
28953 | rhapsody* | darwin1.[012]) | ||
28954 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
28955 | @@ -7667,7 +8159,7 @@ $as_echo "$lt_cv_ld_exported_symbols_lis | ||
28956 | else | ||
28957 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
28958 | fi | ||
28959 | - if test "$DSYMUTIL" != ":"; then | ||
28960 | + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
28961 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
28962 | else | ||
28963 | _lt_dsymutil= | ||
28964 | @@ -7690,6 +8182,8 @@ done | ||
28965 | |||
28966 | |||
28967 | |||
28968 | + | ||
28969 | + | ||
28970 | # Set options | ||
28971 | |||
28972 | |||
28973 | @@ -7786,7 +8280,9 @@ fi | ||
28974 | LIBTOOL_DEPS="$ltmain" | ||
28975 | |||
28976 | # Always use our own libtool. | ||
28977 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
28978 | +LIBTOOL='$(SHELL) $(top_builddir)' | ||
28979 | +LIBTOOL="$LIBTOOL/${host_alias}-libtool" | ||
28980 | + | ||
28981 | |||
28982 | |||
28983 | |||
28984 | @@ -7861,19 +8357,6 @@ _ACEOF | ||
28985 | |||
28986 | |||
28987 | |||
28988 | - | ||
28989 | - | ||
28990 | - | ||
28991 | - | ||
28992 | - | ||
28993 | - | ||
28994 | - | ||
28995 | - | ||
28996 | - | ||
28997 | - | ||
28998 | - | ||
28999 | - | ||
29000 | - | ||
29001 | case $host_os in | ||
29002 | aix3*) | ||
29003 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
29004 | @@ -7886,25 +8369,8 @@ aix3*) | ||
29005 | ;; | ||
29006 | esac | ||
29007 | |||
29008 | -# Sed substitution that helps us do robust quoting. It backslashifies | ||
29009 | -# metacharacters that are still active within double-quoted strings. | ||
29010 | -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
29011 | - | ||
29012 | -# Same as above, but do not quote variable references. | ||
29013 | -double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
29014 | - | ||
29015 | -# Sed substitution to delay expansion of an escaped shell variable in a | ||
29016 | -# double_quote_subst'ed string. | ||
29017 | -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
29018 | - | ||
29019 | -# Sed substitution to delay expansion of an escaped single quote. | ||
29020 | -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
29021 | - | ||
29022 | -# Sed substitution to avoid accidental globbing in evaled expressions | ||
29023 | -no_glob_subst='s/\*/\\\*/g' | ||
29024 | - | ||
29025 | # Global variables: | ||
29026 | -ofile=libtool | ||
29027 | +ofile=${host_alias}-libtool | ||
29028 | can_build_shared=yes | ||
29029 | |||
29030 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
29031 | @@ -7931,7 +8397,7 @@ for cc_temp in $compiler""; do | ||
29032 | *) break;; | ||
29033 | esac | ||
29034 | done | ||
29035 | -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
29036 | +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
29037 | |||
29038 | |||
29039 | # Only perform the check for file, if the check method requires it | ||
29040 | @@ -8140,7 +8606,12 @@ if test -n "$compiler"; then | ||
29041 | lt_prog_compiler_no_builtin_flag= | ||
29042 | |||
29043 | if test "$GCC" = yes; then | ||
29044 | - lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
29045 | + case $cc_basename in | ||
29046 | + nvcc*) | ||
29047 | + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | ||
29048 | + *) | ||
29049 | + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | ||
29050 | + esac | ||
29051 | |||
29052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
29053 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
29054 | @@ -8160,15 +8631,15 @@ else | ||
29055 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
29056 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
29057 | -e 's:$: $lt_compiler_flag:'` | ||
29058 | - (eval echo "\"\$as_me:8163: $lt_compile\"" >&5) | ||
29059 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
29060 | (eval "$lt_compile" 2>conftest.err) | ||
29061 | ac_status=$? | ||
29062 | cat conftest.err >&5 | ||
29063 | - echo "$as_me:8167: \$? = $ac_status" >&5 | ||
29064 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29065 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
29066 | # The compiler can only warn and ignore the option if not recognized | ||
29067 | # So say no if there are warnings other than the usual output. | ||
29068 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
29069 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
29070 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
29071 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
29072 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
29073 | @@ -8197,8 +8668,6 @@ fi | ||
29074 | lt_prog_compiler_pic= | ||
29075 | lt_prog_compiler_static= | ||
29076 | |||
29077 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
29078 | -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
29079 | |||
29080 | if test "$GCC" = yes; then | ||
29081 | lt_prog_compiler_wl='-Wl,' | ||
29082 | @@ -8246,6 +8715,12 @@ $as_echo_n "checking for $compiler optio | ||
29083 | lt_prog_compiler_pic='-fno-common' | ||
29084 | ;; | ||
29085 | |||
29086 | + haiku*) | ||
29087 | + # PIC is the default for Haiku. | ||
29088 | + # The "-static" flag exists, but is broken. | ||
29089 | + lt_prog_compiler_static= | ||
29090 | + ;; | ||
29091 | + | ||
29092 | hpux*) | ||
29093 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
29094 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
29095 | @@ -8288,6 +8763,13 @@ $as_echo_n "checking for $compiler optio | ||
29096 | lt_prog_compiler_pic='-fPIC' | ||
29097 | ;; | ||
29098 | esac | ||
29099 | + | ||
29100 | + case $cc_basename in | ||
29101 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
29102 | + lt_prog_compiler_wl='-Xlinker ' | ||
29103 | + lt_prog_compiler_pic='-Xcompiler -fPIC' | ||
29104 | + ;; | ||
29105 | + esac | ||
29106 | else | ||
29107 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
29108 | case $host_os in | ||
29109 | @@ -8350,7 +8832,13 @@ $as_echo_n "checking for $compiler optio | ||
29110 | lt_prog_compiler_pic='--shared' | ||
29111 | lt_prog_compiler_static='--static' | ||
29112 | ;; | ||
29113 | - pgcc* | pgf77* | pgf90* | pgf95*) | ||
29114 | + nagfor*) | ||
29115 | + # NAG Fortran compiler | ||
29116 | + lt_prog_compiler_wl='-Wl,-Wl,,' | ||
29117 | + lt_prog_compiler_pic='-PIC' | ||
29118 | + lt_prog_compiler_static='-Bstatic' | ||
29119 | + ;; | ||
29120 | + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
29121 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
29122 | # which looks to be a dead project) | ||
29123 | lt_prog_compiler_wl='-Wl,' | ||
29124 | @@ -8362,25 +8850,25 @@ $as_echo_n "checking for $compiler optio | ||
29125 | # All Alpha code is PIC. | ||
29126 | lt_prog_compiler_static='-non_shared' | ||
29127 | ;; | ||
29128 | - xl*) | ||
29129 | - # IBM XL C 8.0/Fortran 10.1 on PPC | ||
29130 | + xl* | bgxl* | bgf* | mpixl*) | ||
29131 | + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | ||
29132 | lt_prog_compiler_wl='-Wl,' | ||
29133 | lt_prog_compiler_pic='-qpic' | ||
29134 | lt_prog_compiler_static='-qstaticlink' | ||
29135 | ;; | ||
29136 | *) | ||
29137 | case `$CC -V 2>&1 | sed 5q` in | ||
29138 | - *Sun\ C*) | ||
29139 | - # Sun C 5.9 | ||
29140 | + *Sun\ F* | *Sun*Fortran*) | ||
29141 | + # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
29142 | lt_prog_compiler_pic='-KPIC' | ||
29143 | lt_prog_compiler_static='-Bstatic' | ||
29144 | - lt_prog_compiler_wl='-Wl,' | ||
29145 | + lt_prog_compiler_wl='' | ||
29146 | ;; | ||
29147 | - *Sun\ F*) | ||
29148 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
29149 | + *Sun\ C*) | ||
29150 | + # Sun C 5.9 | ||
29151 | lt_prog_compiler_pic='-KPIC' | ||
29152 | lt_prog_compiler_static='-Bstatic' | ||
29153 | - lt_prog_compiler_wl='' | ||
29154 | + lt_prog_compiler_wl='-Wl,' | ||
29155 | ;; | ||
29156 | esac | ||
29157 | ;; | ||
29158 | @@ -8412,7 +8900,7 @@ $as_echo_n "checking for $compiler optio | ||
29159 | lt_prog_compiler_pic='-KPIC' | ||
29160 | lt_prog_compiler_static='-Bstatic' | ||
29161 | case $cc_basename in | ||
29162 | - f77* | f90* | f95*) | ||
29163 | + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
29164 | lt_prog_compiler_wl='-Qoption ld ';; | ||
29165 | *) | ||
29166 | lt_prog_compiler_wl='-Wl,';; | ||
29167 | @@ -8469,13 +8957,17 @@ case $host_os in | ||
29168 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
29169 | ;; | ||
29170 | esac | ||
29171 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
29172 | -$as_echo "$lt_prog_compiler_pic" >&6; } | ||
29173 | - | ||
29174 | - | ||
29175 | - | ||
29176 | - | ||
29177 | |||
29178 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
29179 | +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
29180 | +if test "${lt_cv_prog_compiler_pic+set}" = set; then : | ||
29181 | + $as_echo_n "(cached) " >&6 | ||
29182 | +else | ||
29183 | + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | ||
29184 | +fi | ||
29185 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | ||
29186 | +$as_echo "$lt_cv_prog_compiler_pic" >&6; } | ||
29187 | +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | ||
29188 | |||
29189 | # | ||
29190 | # Check to make sure the PIC flag actually works. | ||
29191 | @@ -8499,15 +8991,15 @@ else | ||
29192 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
29193 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
29194 | -e 's:$: $lt_compiler_flag:'` | ||
29195 | - (eval echo "\"\$as_me:8502: $lt_compile\"" >&5) | ||
29196 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
29197 | (eval "$lt_compile" 2>conftest.err) | ||
29198 | ac_status=$? | ||
29199 | cat conftest.err >&5 | ||
29200 | - echo "$as_me:8506: \$? = $ac_status" >&5 | ||
29201 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29202 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
29203 | # The compiler can only warn and ignore the option if not recognized | ||
29204 | # So say no if there are warnings other than the usual output. | ||
29205 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
29206 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
29207 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
29208 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
29209 | lt_cv_prog_compiler_pic_works=yes | ||
29210 | @@ -8536,6 +9028,11 @@ fi | ||
29211 | |||
29212 | |||
29213 | |||
29214 | + | ||
29215 | + | ||
29216 | + | ||
29217 | + | ||
29218 | + | ||
29219 | # | ||
29220 | # Check to make sure the static flag actually works. | ||
29221 | # | ||
29222 | @@ -8555,7 +9052,7 @@ else | ||
29223 | if test -s conftest.err; then | ||
29224 | # Append any errors to the config.log. | ||
29225 | cat conftest.err 1>&5 | ||
29226 | - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
29227 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
29228 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
29229 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
29230 | lt_cv_prog_compiler_static_works=yes | ||
29231 | @@ -8604,16 +9101,16 @@ else | ||
29232 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
29233 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
29234 | -e 's:$: $lt_compiler_flag:'` | ||
29235 | - (eval echo "\"\$as_me:8607: $lt_compile\"" >&5) | ||
29236 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
29237 | (eval "$lt_compile" 2>out/conftest.err) | ||
29238 | ac_status=$? | ||
29239 | cat out/conftest.err >&5 | ||
29240 | - echo "$as_me:8611: \$? = $ac_status" >&5 | ||
29241 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29242 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
29243 | then | ||
29244 | # The compiler can only warn and ignore the option if not recognized | ||
29245 | # So say no if there are warnings | ||
29246 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
29247 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
29248 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
29249 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
29250 | lt_cv_prog_compiler_c_o=yes | ||
29251 | @@ -8659,16 +9156,16 @@ else | ||
29252 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
29253 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
29254 | -e 's:$: $lt_compiler_flag:'` | ||
29255 | - (eval echo "\"\$as_me:8662: $lt_compile\"" >&5) | ||
29256 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | ||
29257 | (eval "$lt_compile" 2>out/conftest.err) | ||
29258 | ac_status=$? | ||
29259 | cat out/conftest.err >&5 | ||
29260 | - echo "$as_me:8666: \$? = $ac_status" >&5 | ||
29261 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29262 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
29263 | then | ||
29264 | # The compiler can only warn and ignore the option if not recognized | ||
29265 | # So say no if there are warnings | ||
29266 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
29267 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
29268 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
29269 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
29270 | lt_cv_prog_compiler_c_o=yes | ||
29271 | @@ -8781,7 +9278,33 @@ $as_echo_n "checking whether the $compil | ||
29272 | esac | ||
29273 | |||
29274 | ld_shlibs=yes | ||
29275 | + | ||
29276 | + # On some targets, GNU ld is compatible enough with the native linker | ||
29277 | + # that we're better off using the native interface for both. | ||
29278 | + lt_use_gnu_ld_interface=no | ||
29279 | if test "$with_gnu_ld" = yes; then | ||
29280 | + case $host_os in | ||
29281 | + aix*) | ||
29282 | + # The AIX port of GNU ld has always aspired to compatibility | ||
29283 | + # with the native linker. However, as the warning in the GNU ld | ||
29284 | + # block says, versions before 2.19.5* couldn't really create working | ||
29285 | + # shared libraries, regardless of the interface used. | ||
29286 | + case `$LD -v 2>&1` in | ||
29287 | + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | ||
29288 | + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | ||
29289 | + *\ \(GNU\ Binutils\)\ [3-9]*) ;; | ||
29290 | + *) | ||
29291 | + lt_use_gnu_ld_interface=yes | ||
29292 | + ;; | ||
29293 | + esac | ||
29294 | + ;; | ||
29295 | + *) | ||
29296 | + lt_use_gnu_ld_interface=yes | ||
29297 | + ;; | ||
29298 | + esac | ||
29299 | + fi | ||
29300 | + | ||
29301 | + if test "$lt_use_gnu_ld_interface" = yes; then | ||
29302 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
29303 | wlarc='${wl}' | ||
29304 | |||
29305 | @@ -8799,6 +9322,7 @@ $as_echo_n "checking whether the $compil | ||
29306 | fi | ||
29307 | supports_anon_versioning=no | ||
29308 | case `$LD -v 2>&1` in | ||
29309 | + *GNU\ gold*) supports_anon_versioning=yes ;; | ||
29310 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
29311 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
29312 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
29313 | @@ -8814,11 +9338,12 @@ $as_echo_n "checking whether the $compil | ||
29314 | ld_shlibs=no | ||
29315 | cat <<_LT_EOF 1>&2 | ||
29316 | |||
29317 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
29318 | +*** Warning: the GNU linker, at least up to release 2.19, is reported | ||
29319 | *** to be unable to reliably create shared libraries on AIX. | ||
29320 | *** Therefore, libtool is disabling shared libraries support. If you | ||
29321 | -*** really care for shared libraries, you may want to modify your PATH | ||
29322 | -*** so that a non-GNU linker is found, and then restart. | ||
29323 | +*** really care for shared libraries, you may want to install binutils | ||
29324 | +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | ||
29325 | +*** You will then need to restart the configuration process. | ||
29326 | |||
29327 | _LT_EOF | ||
29328 | fi | ||
29329 | @@ -8854,10 +9379,12 @@ _LT_EOF | ||
29330 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
29331 | # as there is no search path for DLLs. | ||
29332 | hardcode_libdir_flag_spec='-L$libdir' | ||
29333 | + export_dynamic_flag_spec='${wl}--export-all-symbols' | ||
29334 | allow_undefined_flag=unsupported | ||
29335 | always_export_symbols=no | ||
29336 | enable_shared_with_static_runtimes=yes | ||
29337 | - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
29338 | + 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' | ||
29339 | + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | ||
29340 | |||
29341 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
29342 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
29343 | @@ -8875,6 +9402,11 @@ _LT_EOF | ||
29344 | fi | ||
29345 | ;; | ||
29346 | |||
29347 | + haiku*) | ||
29348 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
29349 | + link_all_deplibs=yes | ||
29350 | + ;; | ||
29351 | + | ||
29352 | interix[3-9]*) | ||
29353 | hardcode_direct=no | ||
29354 | hardcode_shlibpath_var=no | ||
29355 | @@ -8900,15 +9432,16 @@ _LT_EOF | ||
29356 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
29357 | && test "$tmp_diet" = no | ||
29358 | then | ||
29359 | - tmp_addflag= | ||
29360 | + tmp_addflag=' $pic_flag' | ||
29361 | tmp_sharedflag='-shared' | ||
29362 | case $cc_basename,$host_cpu in | ||
29363 | pgcc*) # Portland Group C compiler | ||
29364 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
29365 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
29366 | tmp_addflag=' $pic_flag' | ||
29367 | ;; | ||
29368 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
29369 | - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
29370 | + pgf77* | pgf90* | pgf95* | pgfortran*) | ||
29371 | + # Portland Group f77 and f90 compilers | ||
29372 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
29373 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
29374 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
29375 | tmp_addflag=' -i_dynamic' ;; | ||
29376 | @@ -8919,13 +9452,17 @@ _LT_EOF | ||
29377 | lf95*) # Lahey Fortran 8.1 | ||
29378 | whole_archive_flag_spec= | ||
29379 | tmp_sharedflag='--shared' ;; | ||
29380 | - xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
29381 | + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
29382 | tmp_sharedflag='-qmkshrobj' | ||
29383 | tmp_addflag= ;; | ||
29384 | + nvcc*) # Cuda Compiler Driver 2.2 | ||
29385 | + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
29386 | + compiler_needs_object=yes | ||
29387 | + ;; | ||
29388 | esac | ||
29389 | case `$CC -V 2>&1 | sed 5q` in | ||
29390 | *Sun\ C*) # Sun C 5.9 | ||
29391 | - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
29392 | + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | ||
29393 | compiler_needs_object=yes | ||
29394 | tmp_sharedflag='-G' ;; | ||
29395 | *Sun\ F*) # Sun Fortran 8.3 | ||
29396 | @@ -8941,17 +9478,17 @@ _LT_EOF | ||
29397 | fi | ||
29398 | |||
29399 | case $cc_basename in | ||
29400 | - xlf*) | ||
29401 | + xlf* | bgf* | bgxlf* | mpixlf*) | ||
29402 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
29403 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
29404 | hardcode_libdir_flag_spec= | ||
29405 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
29406 | - archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
29407 | + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | ||
29408 | if test "x$supports_anon_versioning" = xyes; then | ||
29409 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
29410 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
29411 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
29412 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
29413 | + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
29414 | fi | ||
29415 | ;; | ||
29416 | esac | ||
29417 | @@ -8965,8 +9502,8 @@ _LT_EOF | ||
29418 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
29419 | wlarc= | ||
29420 | else | ||
29421 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
29422 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
29423 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
29424 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
29425 | fi | ||
29426 | ;; | ||
29427 | |||
29428 | @@ -8984,8 +9521,8 @@ _LT_EOF | ||
29429 | |||
29430 | _LT_EOF | ||
29431 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
29432 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
29433 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
29434 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
29435 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
29436 | else | ||
29437 | ld_shlibs=no | ||
29438 | fi | ||
29439 | @@ -9031,8 +9568,8 @@ _LT_EOF | ||
29440 | |||
29441 | *) | ||
29442 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
29443 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
29444 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
29445 | + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
29446 | + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
29447 | else | ||
29448 | ld_shlibs=no | ||
29449 | fi | ||
29450 | @@ -9072,8 +9609,10 @@ _LT_EOF | ||
29451 | else | ||
29452 | # If we're using GNU nm, then we don't want the "-C" option. | ||
29453 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
29454 | + # Also, AIX nm treats weak defined symbols like other global | ||
29455 | + # defined symbols, whereas GNU nm marks them as "W". | ||
29456 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
29457 | - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
29458 | + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
29459 | else | ||
29460 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
29461 | fi | ||
29462 | @@ -9160,7 +9699,13 @@ _LT_EOF | ||
29463 | allow_undefined_flag='-berok' | ||
29464 | # Determine the default libpath from the value encoded in an | ||
29465 | # empty executable. | ||
29466 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29467 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
29468 | + aix_libpath=$lt_cv_aix_libpath | ||
29469 | +else | ||
29470 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
29471 | + $as_echo_n "(cached) " >&6 | ||
29472 | +else | ||
29473 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29474 | /* end confdefs.h. */ | ||
29475 | |||
29476 | int | ||
29477 | @@ -9173,25 +9718,32 @@ main () | ||
29478 | _ACEOF | ||
29479 | if ac_fn_c_try_link "$LINENO"; then : | ||
29480 | |||
29481 | -lt_aix_libpath_sed=' | ||
29482 | - /Import File Strings/,/^$/ { | ||
29483 | - /^0/ { | ||
29484 | - s/^0 *\(.*\)$/\1/ | ||
29485 | - p | ||
29486 | - } | ||
29487 | - }' | ||
29488 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
29489 | -# Check for a 64-bit object if we didn't find anything. | ||
29490 | -if test -z "$aix_libpath"; then | ||
29491 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
29492 | -fi | ||
29493 | + lt_aix_libpath_sed=' | ||
29494 | + /Import File Strings/,/^$/ { | ||
29495 | + /^0/ { | ||
29496 | + s/^0 *\([^ ]*\) *$/\1/ | ||
29497 | + p | ||
29498 | + } | ||
29499 | + }' | ||
29500 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
29501 | + # Check for a 64-bit object if we didn't find anything. | ||
29502 | + if test -z "$lt_cv_aix_libpath_"; then | ||
29503 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
29504 | + fi | ||
29505 | fi | ||
29506 | rm -f core conftest.err conftest.$ac_objext \ | ||
29507 | conftest$ac_exeext conftest.$ac_ext | ||
29508 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
29509 | + if test -z "$lt_cv_aix_libpath_"; then | ||
29510 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
29511 | + fi | ||
29512 | + | ||
29513 | +fi | ||
29514 | + | ||
29515 | + aix_libpath=$lt_cv_aix_libpath_ | ||
29516 | +fi | ||
29517 | |||
29518 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
29519 | - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
29520 | + 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" | ||
29521 | else | ||
29522 | if test "$host_cpu" = ia64; then | ||
29523 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
29524 | @@ -9200,7 +9752,13 @@ if test -z "$aix_libpath"; then aix_libp | ||
29525 | else | ||
29526 | # Determine the default libpath from the value encoded in an | ||
29527 | # empty executable. | ||
29528 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29529 | + if test "${lt_cv_aix_libpath+set}" = set; then | ||
29530 | + aix_libpath=$lt_cv_aix_libpath | ||
29531 | +else | ||
29532 | + if test "${lt_cv_aix_libpath_+set}" = set; then : | ||
29533 | + $as_echo_n "(cached) " >&6 | ||
29534 | +else | ||
29535 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29536 | /* end confdefs.h. */ | ||
29537 | |||
29538 | int | ||
29539 | @@ -9213,30 +9771,42 @@ main () | ||
29540 | _ACEOF | ||
29541 | if ac_fn_c_try_link "$LINENO"; then : | ||
29542 | |||
29543 | -lt_aix_libpath_sed=' | ||
29544 | - /Import File Strings/,/^$/ { | ||
29545 | - /^0/ { | ||
29546 | - s/^0 *\(.*\)$/\1/ | ||
29547 | - p | ||
29548 | - } | ||
29549 | - }' | ||
29550 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
29551 | -# Check for a 64-bit object if we didn't find anything. | ||
29552 | -if test -z "$aix_libpath"; then | ||
29553 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
29554 | -fi | ||
29555 | + lt_aix_libpath_sed=' | ||
29556 | + /Import File Strings/,/^$/ { | ||
29557 | + /^0/ { | ||
29558 | + s/^0 *\([^ ]*\) *$/\1/ | ||
29559 | + p | ||
29560 | + } | ||
29561 | + }' | ||
29562 | + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
29563 | + # Check for a 64-bit object if we didn't find anything. | ||
29564 | + if test -z "$lt_cv_aix_libpath_"; then | ||
29565 | + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
29566 | + fi | ||
29567 | fi | ||
29568 | rm -f core conftest.err conftest.$ac_objext \ | ||
29569 | conftest$ac_exeext conftest.$ac_ext | ||
29570 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
29571 | + if test -z "$lt_cv_aix_libpath_"; then | ||
29572 | + lt_cv_aix_libpath_="/usr/lib:/lib" | ||
29573 | + fi | ||
29574 | + | ||
29575 | +fi | ||
29576 | + | ||
29577 | + aix_libpath=$lt_cv_aix_libpath_ | ||
29578 | +fi | ||
29579 | |||
29580 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
29581 | # Warning - without using the other run time loading flags, | ||
29582 | # -berok will link without error, but may produce a broken library. | ||
29583 | no_undefined_flag=' ${wl}-bernotok' | ||
29584 | allow_undefined_flag=' ${wl}-berok' | ||
29585 | - # Exported symbols can be pulled into shared objects from archives | ||
29586 | - whole_archive_flag_spec='$convenience' | ||
29587 | + if test "$with_gnu_ld" = yes; then | ||
29588 | + # We only use this code for GNU lds that support --whole-archive. | ||
29589 | + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
29590 | + else | ||
29591 | + # Exported symbols can be pulled into shared objects from archives | ||
29592 | + whole_archive_flag_spec='$convenience' | ||
29593 | + fi | ||
29594 | archive_cmds_need_lc=yes | ||
29595 | # This is similar to how AIX traditionally builds its shared libraries. | ||
29596 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
29597 | @@ -9268,20 +9838,63 @@ if test -z "$aix_libpath"; then aix_libp | ||
29598 | # Microsoft Visual C++. | ||
29599 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
29600 | # no search path for DLLs. | ||
29601 | - hardcode_libdir_flag_spec=' ' | ||
29602 | - allow_undefined_flag=unsupported | ||
29603 | - # Tell ltmain to make .lib files, not .a files. | ||
29604 | - libext=lib | ||
29605 | - # Tell ltmain to make .dll files, not .so files. | ||
29606 | - shrext_cmds=".dll" | ||
29607 | - # FIXME: Setting linknames here is a bad hack. | ||
29608 | - archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
29609 | - # The linker will automatically build a .lib file if we build a DLL. | ||
29610 | - old_archive_from_new_cmds='true' | ||
29611 | - # FIXME: Should let the user specify the lib program. | ||
29612 | - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
29613 | - fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
29614 | - enable_shared_with_static_runtimes=yes | ||
29615 | + case $cc_basename in | ||
29616 | + cl*) | ||
29617 | + # Native MSVC | ||
29618 | + hardcode_libdir_flag_spec=' ' | ||
29619 | + allow_undefined_flag=unsupported | ||
29620 | + always_export_symbols=yes | ||
29621 | + file_list_spec='@' | ||
29622 | + # Tell ltmain to make .lib files, not .a files. | ||
29623 | + libext=lib | ||
29624 | + # Tell ltmain to make .dll files, not .so files. | ||
29625 | + shrext_cmds=".dll" | ||
29626 | + # FIXME: Setting linknames here is a bad hack. | ||
29627 | + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | ||
29628 | + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
29629 | + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | ||
29630 | + else | ||
29631 | + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | ||
29632 | + fi~ | ||
29633 | + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | ||
29634 | + linknames=' | ||
29635 | + # The linker will not automatically build a static lib if we build a DLL. | ||
29636 | + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | ||
29637 | + enable_shared_with_static_runtimes=yes | ||
29638 | + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
29639 | + # Don't use ranlib | ||
29640 | + old_postinstall_cmds='chmod 644 $oldlib' | ||
29641 | + postlink_cmds='lt_outputfile="@OUTPUT@"~ | ||
29642 | + lt_tool_outputfile="@TOOL_OUTPUT@"~ | ||
29643 | + case $lt_outputfile in | ||
29644 | + *.exe|*.EXE) ;; | ||
29645 | + *) | ||
29646 | + lt_outputfile="$lt_outputfile.exe" | ||
29647 | + lt_tool_outputfile="$lt_tool_outputfile.exe" | ||
29648 | + ;; | ||
29649 | + esac~ | ||
29650 | + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | ||
29651 | + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | ||
29652 | + $RM "$lt_outputfile.manifest"; | ||
29653 | + fi' | ||
29654 | + ;; | ||
29655 | + *) | ||
29656 | + # Assume MSVC wrapper | ||
29657 | + hardcode_libdir_flag_spec=' ' | ||
29658 | + allow_undefined_flag=unsupported | ||
29659 | + # Tell ltmain to make .lib files, not .a files. | ||
29660 | + libext=lib | ||
29661 | + # Tell ltmain to make .dll files, not .so files. | ||
29662 | + shrext_cmds=".dll" | ||
29663 | + # FIXME: Setting linknames here is a bad hack. | ||
29664 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
29665 | + # The linker will automatically build a .lib file if we build a DLL. | ||
29666 | + old_archive_from_new_cmds='true' | ||
29667 | + # FIXME: Should let the user specify the lib program. | ||
29668 | + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
29669 | + enable_shared_with_static_runtimes=yes | ||
29670 | + ;; | ||
29671 | + esac | ||
29672 | ;; | ||
29673 | |||
29674 | darwin* | rhapsody*) | ||
29675 | @@ -9291,7 +9904,11 @@ if test -z "$aix_libpath"; then aix_libp | ||
29676 | hardcode_direct=no | ||
29677 | hardcode_automatic=yes | ||
29678 | hardcode_shlibpath_var=unsupported | ||
29679 | - whole_archive_flag_spec='' | ||
29680 | + if test "$lt_cv_ld_force_load" = "yes"; then | ||
29681 | + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | ||
29682 | + else | ||
29683 | + whole_archive_flag_spec='' | ||
29684 | + fi | ||
29685 | link_all_deplibs=yes | ||
29686 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
29687 | case $cc_basename in | ||
29688 | @@ -9299,7 +9916,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
29689 | *) _lt_dar_can_shared=$GCC ;; | ||
29690 | esac | ||
29691 | if test "$_lt_dar_can_shared" = "yes"; then | ||
29692 | - output_verbose_link_cmd=echo | ||
29693 | + output_verbose_link_cmd=func_echo_all | ||
29694 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
29695 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
29696 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | ||
29697 | @@ -9342,7 +9959,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
29698 | |||
29699 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
29700 | freebsd* | dragonfly*) | ||
29701 | - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
29702 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
29703 | hardcode_libdir_flag_spec='-R$libdir' | ||
29704 | hardcode_direct=yes | ||
29705 | hardcode_shlibpath_var=no | ||
29706 | @@ -9350,7 +9967,7 @@ if test -z "$aix_libpath"; then aix_libp | ||
29707 | |||
29708 | hpux9*) | ||
29709 | if test "$GCC" = yes; then | ||
29710 | - 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' | ||
29711 | + 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' | ||
29712 | else | ||
29713 | 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' | ||
29714 | fi | ||
29715 | @@ -9365,8 +9982,8 @@ if test -z "$aix_libpath"; then aix_libp | ||
29716 | ;; | ||
29717 | |||
29718 | hpux10*) | ||
29719 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
29720 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
29721 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
29722 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
29723 | else | ||
29724 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
29725 | fi | ||
29726 | @@ -9384,16 +10001,16 @@ if test -z "$aix_libpath"; then aix_libp | ||
29727 | ;; | ||
29728 | |||
29729 | hpux11*) | ||
29730 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
29731 | + if test "$GCC" = yes && test "$with_gnu_ld" = no; then | ||
29732 | case $host_cpu in | ||
29733 | hppa*64*) | ||
29734 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
29735 | ;; | ||
29736 | ia64*) | ||
29737 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
29738 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
29739 | ;; | ||
29740 | *) | ||
29741 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
29742 | + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
29743 | ;; | ||
29744 | esac | ||
29745 | else | ||
29746 | @@ -9405,7 +10022,46 @@ if test -z "$aix_libpath"; then aix_libp | ||
29747 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
29748 | ;; | ||
29749 | *) | ||
29750 | - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
29751 | + | ||
29752 | + # Older versions of the 11.00 compiler do not understand -b yet | ||
29753 | + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | ||
29754 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | ||
29755 | +$as_echo_n "checking if $CC understands -b... " >&6; } | ||
29756 | +if test "${lt_cv_prog_compiler__b+set}" = set; then : | ||
29757 | + $as_echo_n "(cached) " >&6 | ||
29758 | +else | ||
29759 | + lt_cv_prog_compiler__b=no | ||
29760 | + save_LDFLAGS="$LDFLAGS" | ||
29761 | + LDFLAGS="$LDFLAGS -b" | ||
29762 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
29763 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
29764 | + # The linker can only warn and ignore the option if not recognized | ||
29765 | + # So say no if there are warnings | ||
29766 | + if test -s conftest.err; then | ||
29767 | + # Append any errors to the config.log. | ||
29768 | + cat conftest.err 1>&5 | ||
29769 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
29770 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
29771 | + if diff conftest.exp conftest.er2 >/dev/null; then | ||
29772 | + lt_cv_prog_compiler__b=yes | ||
29773 | + fi | ||
29774 | + else | ||
29775 | + lt_cv_prog_compiler__b=yes | ||
29776 | + fi | ||
29777 | + fi | ||
29778 | + $RM -r conftest* | ||
29779 | + LDFLAGS="$save_LDFLAGS" | ||
29780 | + | ||
29781 | +fi | ||
29782 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | ||
29783 | +$as_echo "$lt_cv_prog_compiler__b" >&6; } | ||
29784 | + | ||
29785 | +if test x"$lt_cv_prog_compiler__b" = xyes; then | ||
29786 | + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
29787 | +else | ||
29788 | + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
29789 | +fi | ||
29790 | + | ||
29791 | ;; | ||
29792 | esac | ||
29793 | fi | ||
29794 | @@ -9433,26 +10089,39 @@ if test -z "$aix_libpath"; then aix_libp | ||
29795 | |||
29796 | irix5* | irix6* | nonstopux*) | ||
29797 | if test "$GCC" = yes; then | ||
29798 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
29799 | + 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' | ||
29800 | # Try to use the -exported_symbol ld option, if it does not | ||
29801 | # work, assume that -exports_file does not work either and | ||
29802 | # implicitly export all symbols. | ||
29803 | - save_LDFLAGS="$LDFLAGS" | ||
29804 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
29805 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29806 | + # This should be the same for all languages, so no per-tag cache variable. | ||
29807 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | ||
29808 | +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | ||
29809 | +if test "${lt_cv_irix_exported_symbol+set}" = set; then : | ||
29810 | + $as_echo_n "(cached) " >&6 | ||
29811 | +else | ||
29812 | + save_LDFLAGS="$LDFLAGS" | ||
29813 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
29814 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29815 | /* end confdefs.h. */ | ||
29816 | -int foo(void) {} | ||
29817 | +int foo (void) { return 0; } | ||
29818 | _ACEOF | ||
29819 | if ac_fn_c_try_link "$LINENO"; then : | ||
29820 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
29821 | - | ||
29822 | + lt_cv_irix_exported_symbol=yes | ||
29823 | +else | ||
29824 | + lt_cv_irix_exported_symbol=no | ||
29825 | fi | ||
29826 | rm -f core conftest.err conftest.$ac_objext \ | ||
29827 | conftest$ac_exeext conftest.$ac_ext | ||
29828 | - LDFLAGS="$save_LDFLAGS" | ||
29829 | + LDFLAGS="$save_LDFLAGS" | ||
29830 | +fi | ||
29831 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | ||
29832 | +$as_echo "$lt_cv_irix_exported_symbol" >&6; } | ||
29833 | + if test "$lt_cv_irix_exported_symbol" = yes; then | ||
29834 | + 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' | ||
29835 | + fi | ||
29836 | else | ||
29837 | - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
29838 | - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
29839 | + 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' | ||
29840 | + 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' | ||
29841 | fi | ||
29842 | archive_cmds_need_lc='no' | ||
29843 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
29844 | @@ -9514,17 +10183,17 @@ rm -f core conftest.err conftest.$ac_obj | ||
29845 | hardcode_libdir_flag_spec='-L$libdir' | ||
29846 | hardcode_minus_L=yes | ||
29847 | allow_undefined_flag=unsupported | ||
29848 | - archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
29849 | + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
29850 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
29851 | ;; | ||
29852 | |||
29853 | osf3*) | ||
29854 | if test "$GCC" = yes; then | ||
29855 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
29856 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
29857 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
29858 | else | ||
29859 | allow_undefined_flag=' -expect_unresolved \*' | ||
29860 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
29861 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
29862 | fi | ||
29863 | archive_cmds_need_lc='no' | ||
29864 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
29865 | @@ -9534,13 +10203,13 @@ rm -f core conftest.err conftest.$ac_obj | ||
29866 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
29867 | if test "$GCC" = yes; then | ||
29868 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
29869 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
29870 | + 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' | ||
29871 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
29872 | else | ||
29873 | allow_undefined_flag=' -expect_unresolved \*' | ||
29874 | - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
29875 | + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | ||
29876 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | ||
29877 | - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
29878 | + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
29879 | |||
29880 | # Both c and cxx compiler support -rpath directly | ||
29881 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
29882 | @@ -9553,9 +10222,9 @@ rm -f core conftest.err conftest.$ac_obj | ||
29883 | no_undefined_flag=' -z defs' | ||
29884 | if test "$GCC" = yes; then | ||
29885 | wlarc='${wl}' | ||
29886 | - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
29887 | + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
29888 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
29889 | - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
29890 | + $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' | ||
29891 | else | ||
29892 | case `$CC -V 2>&1` in | ||
29893 | *"Compilers 5.0"*) | ||
29894 | @@ -9957,16 +10626,23 @@ if test "$GCC" = yes; then | ||
29895 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
29896 | *) lt_awk_arg="/^libraries:/" ;; | ||
29897 | esac | ||
29898 | - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
29899 | - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
29900 | + case $host_os in | ||
29901 | + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | ||
29902 | + *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
29903 | + esac | ||
29904 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
29905 | + case $lt_search_path_spec in | ||
29906 | + *\;*) | ||
29907 | # if the path contains ";" then we assume it to be the separator | ||
29908 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
29909 | # assumed that no part of a normal pathname contains ";" but that should | ||
29910 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
29911 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
29912 | - else | ||
29913 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
29914 | - fi | ||
29915 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
29916 | + ;; | ||
29917 | + *) | ||
29918 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
29919 | + ;; | ||
29920 | + esac | ||
29921 | # Ok, now we have the path, separated by spaces, we can step through it | ||
29922 | # and add multilib dir if necessary. | ||
29923 | lt_tmp_lt_search_path_spec= | ||
29924 | @@ -9979,7 +10655,7 @@ if test "$GCC" = yes; then | ||
29925 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
29926 | fi | ||
29927 | done | ||
29928 | - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
29929 | + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
29930 | BEGIN {RS=" "; FS="/|\n";} { | ||
29931 | lt_foo=""; | ||
29932 | lt_count=0; | ||
29933 | @@ -9999,7 +10675,13 @@ BEGIN {RS=" "; FS="/|\n";} { | ||
29934 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
29935 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
29936 | }'` | ||
29937 | - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
29938 | + # AWK program above erroneously prepends '/' to C:/dos/paths | ||
29939 | + # for these hosts. | ||
29940 | + case $host_os in | ||
29941 | + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
29942 | + $SED 's,/\([A-Za-z]:\),\1,g'` ;; | ||
29943 | + esac | ||
29944 | + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
29945 | else | ||
29946 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
29947 | fi | ||
29948 | @@ -10087,7 +10769,7 @@ amigaos*) | ||
29949 | m68k) | ||
29950 | library_names_spec='$libname.ixlibrary $libname.a' | ||
29951 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
29952 | - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
29953 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
29954 | ;; | ||
29955 | esac | ||
29956 | ;; | ||
29957 | @@ -10118,8 +10800,9 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
29958 | need_version=no | ||
29959 | need_lib_prefix=no | ||
29960 | |||
29961 | - case $GCC,$host_os in | ||
29962 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
29963 | + case $GCC,$cc_basename in | ||
29964 | + yes,*) | ||
29965 | + # gcc | ||
29966 | library_names_spec='$libname.dll.a' | ||
29967 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
29968 | postinstall_cmds='base_file=`basename \${file}`~ | ||
29969 | @@ -10140,36 +10823,83 @@ cygwin* | mingw* | pw32* | cegcc*) | ||
29970 | cygwin*) | ||
29971 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
29972 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
29973 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
29974 | + | ||
29975 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | ||
29976 | ;; | ||
29977 | mingw* | cegcc*) | ||
29978 | # MinGW DLLs use traditional 'lib' prefix | ||
29979 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
29980 | - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
29981 | - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
29982 | - # It is most probably a Windows format PATH printed by | ||
29983 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
29984 | - # path with ; separators, and with drive letters. We can handle the | ||
29985 | - # drive letters (cygwin fileutils understands them), so leave them, | ||
29986 | - # especially as we might pass files found there to a mingw objdump, | ||
29987 | - # which wouldn't understand a cygwinified path. Ahh. | ||
29988 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
29989 | - else | ||
29990 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
29991 | - fi | ||
29992 | ;; | ||
29993 | pw32*) | ||
29994 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
29995 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
29996 | ;; | ||
29997 | esac | ||
29998 | + dynamic_linker='Win32 ld.exe' | ||
29999 | + ;; | ||
30000 | + | ||
30001 | + *,cl*) | ||
30002 | + # Native MSVC | ||
30003 | + libname_spec='$name' | ||
30004 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
30005 | + library_names_spec='${libname}.dll.lib' | ||
30006 | + | ||
30007 | + case $build_os in | ||
30008 | + mingw*) | ||
30009 | + sys_lib_search_path_spec= | ||
30010 | + lt_save_ifs=$IFS | ||
30011 | + IFS=';' | ||
30012 | + for lt_path in $LIB | ||
30013 | + do | ||
30014 | + IFS=$lt_save_ifs | ||
30015 | + # Let DOS variable expansion print the short 8.3 style file name. | ||
30016 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
30017 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
30018 | + done | ||
30019 | + IFS=$lt_save_ifs | ||
30020 | + # Convert to MSYS style. | ||
30021 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | ||
30022 | + ;; | ||
30023 | + cygwin*) | ||
30024 | + # Convert to unix form, then to dos form, then back to unix form | ||
30025 | + # but this time dos style (no spaces!) so that the unix form looks | ||
30026 | + # like /cygdrive/c/PROGRA~1:/cygdr... | ||
30027 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
30028 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
30029 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
30030 | + ;; | ||
30031 | + *) | ||
30032 | + sys_lib_search_path_spec="$LIB" | ||
30033 | + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
30034 | + # It is most probably a Windows format PATH. | ||
30035 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
30036 | + else | ||
30037 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
30038 | + fi | ||
30039 | + # FIXME: find the short name or the path components, as spaces are | ||
30040 | + # common. (e.g. "Program Files" -> "PROGRA~1") | ||
30041 | + ;; | ||
30042 | + esac | ||
30043 | + | ||
30044 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
30045 | + postinstall_cmds='base_file=`basename \${file}`~ | ||
30046 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
30047 | + dldir=$destdir/`dirname \$dlpath`~ | ||
30048 | + test -d \$dldir || mkdir -p \$dldir~ | ||
30049 | + $install_prog $dir/$dlname \$dldir/$dlname' | ||
30050 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
30051 | + dlpath=$dir/\$dldll~ | ||
30052 | + $RM \$dlpath' | ||
30053 | + shlibpath_overrides_runpath=yes | ||
30054 | + dynamic_linker='Win32 link.exe' | ||
30055 | ;; | ||
30056 | |||
30057 | *) | ||
30058 | + # Assume MSVC wrapper | ||
30059 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
30060 | + dynamic_linker='Win32 ld.exe' | ||
30061 | ;; | ||
30062 | esac | ||
30063 | - dynamic_linker='Win32 ld.exe' | ||
30064 | # FIXME: first we should search . and the directory the executable is in | ||
30065 | shlibpath_var=PATH | ||
30066 | ;; | ||
30067 | @@ -10256,6 +10986,19 @@ gnu*) | ||
30068 | hardcode_into_libs=yes | ||
30069 | ;; | ||
30070 | |||
30071 | +haiku*) | ||
30072 | + version_type=linux | ||
30073 | + need_lib_prefix=no | ||
30074 | + need_version=no | ||
30075 | + dynamic_linker="$host_os runtime_loader" | ||
30076 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
30077 | + soname_spec='${libname}${release}${shared_ext}$major' | ||
30078 | + shlibpath_var=LIBRARY_PATH | ||
30079 | + shlibpath_overrides_runpath=yes | ||
30080 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
30081 | + hardcode_into_libs=yes | ||
30082 | + ;; | ||
30083 | + | ||
30084 | hpux9* | hpux10* | hpux11*) | ||
30085 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
30086 | # link against other versions. | ||
30087 | @@ -10298,8 +11041,10 @@ hpux9* | hpux10* | hpux11*) | ||
30088 | soname_spec='${libname}${release}${shared_ext}$major' | ||
30089 | ;; | ||
30090 | esac | ||
30091 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
30092 | + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
30093 | postinstall_cmds='chmod 555 $lib' | ||
30094 | + # or fails outright, so override atomically: | ||
30095 | + install_override_mode=555 | ||
30096 | ;; | ||
30097 | |||
30098 | interix[3-9]*) | ||
30099 | @@ -10408,7 +11153,7 @@ fi | ||
30100 | |||
30101 | # Append ld.so.conf contents to the search path | ||
30102 | if test -f /etc/ld.so.conf; then | ||
30103 | - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
30104 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | ||
30105 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
30106 | fi | ||
30107 | |||
30108 | @@ -10711,6 +11456,11 @@ fi | ||
30109 | |||
30110 | |||
30111 | |||
30112 | + | ||
30113 | + | ||
30114 | + | ||
30115 | + | ||
30116 | + | ||
30117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
30118 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
30119 | hardcode_action= | ||
30120 | @@ -11041,7 +11791,7 @@ else | ||
30121 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
30122 | lt_status=$lt_dlunknown | ||
30123 | cat > conftest.$ac_ext <<_LT_EOF | ||
30124 | -#line 11044 "configure" | ||
30125 | +#line $LINENO "configure" | ||
30126 | #include "confdefs.h" | ||
30127 | |||
30128 | #if HAVE_DLFCN_H | ||
30129 | @@ -11082,7 +11832,13 @@ else | ||
30130 | # endif | ||
30131 | #endif | ||
30132 | |||
30133 | -void fnord() { int i=42;} | ||
30134 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
30135 | + correspondingly for the symbols needed. */ | ||
30136 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
30137 | +int fnord () __attribute__((visibility("default"))); | ||
30138 | +#endif | ||
30139 | + | ||
30140 | +int fnord () { return 42; } | ||
30141 | int main () | ||
30142 | { | ||
30143 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
30144 | @@ -11091,7 +11847,11 @@ int main () | ||
30145 | if (self) | ||
30146 | { | ||
30147 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
30148 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
30149 | + else | ||
30150 | + { | ||
30151 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
30152 | + else puts (dlerror ()); | ||
30153 | + } | ||
30154 | /* dlclose (self); */ | ||
30155 | } | ||
30156 | else | ||
30157 | @@ -11137,7 +11897,7 @@ else | ||
30158 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
30159 | lt_status=$lt_dlunknown | ||
30160 | cat > conftest.$ac_ext <<_LT_EOF | ||
30161 | -#line 11140 "configure" | ||
30162 | +#line $LINENO "configure" | ||
30163 | #include "confdefs.h" | ||
30164 | |||
30165 | #if HAVE_DLFCN_H | ||
30166 | @@ -11178,7 +11938,13 @@ else | ||
30167 | # endif | ||
30168 | #endif | ||
30169 | |||
30170 | -void fnord() { int i=42;} | ||
30171 | +/* When -fvisbility=hidden is used, assume the code has been annotated | ||
30172 | + correspondingly for the symbols needed. */ | ||
30173 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
30174 | +int fnord () __attribute__((visibility("default"))); | ||
30175 | +#endif | ||
30176 | + | ||
30177 | +int fnord () { return 42; } | ||
30178 | int main () | ||
30179 | { | ||
30180 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
30181 | @@ -11187,7 +11953,11 @@ int main () | ||
30182 | if (self) | ||
30183 | { | ||
30184 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
30185 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
30186 | + else | ||
30187 | + { | ||
30188 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
30189 | + else puts (dlerror ()); | ||
30190 | + } | ||
30191 | /* dlclose (self); */ | ||
30192 | } | ||
30193 | else | ||
30194 | @@ -12033,7 +12803,7 @@ $as_echo "$bfd_cv_ld_as_needed" >&6; } | ||
30195 | |||
30196 | LIBM= | ||
30197 | case $host in | ||
30198 | -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | ||
30199 | +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | ||
30200 | # These system don't have libm, or don't need it | ||
30201 | ;; | ||
30202 | *-ncr-sysv4.3*) | ||
30203 | @@ -12195,7 +12965,7 @@ if test "$enable_shared" = "yes"; then | ||
30204 | # since libbfd may not pull in the entirety of libiberty. | ||
30205 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` | ||
30206 | if test -n "$x"; then | ||
30207 | - SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | ||
30208 | + SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a" | ||
30209 | fi | ||
30210 | |||
30211 | case "${host}" in | ||
30212 | @@ -13127,131 +13897,153 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac | ||
30213 | sed_quote_subst='$sed_quote_subst' | ||
30214 | double_quote_subst='$double_quote_subst' | ||
30215 | delay_variable_subst='$delay_variable_subst' | ||
30216 | -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
30217 | -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
30218 | -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
30219 | -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
30220 | -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
30221 | -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
30222 | -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
30223 | -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
30224 | -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
30225 | -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
30226 | -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
30227 | -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
30228 | -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
30229 | -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
30230 | -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
30231 | -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
30232 | -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
30233 | -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
30234 | -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
30235 | -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
30236 | -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
30237 | -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
30238 | -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
30239 | -lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
30240 | -lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
30241 | -lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
30242 | -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
30243 | -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30244 | -OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
30245 | -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
30246 | -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
30247 | -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
30248 | -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
30249 | -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
30250 | -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
30251 | -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30252 | -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30253 | -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30254 | -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
30255 | -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
30256 | -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
30257 | -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
30258 | -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
30259 | -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
30260 | -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | ||
30261 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
30262 | -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
30263 | -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
30264 | -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
30265 | -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
30266 | -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
30267 | -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
30268 | -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
30269 | -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
30270 | -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
30271 | -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
30272 | -DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
30273 | -NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
30274 | -LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
30275 | -OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
30276 | -OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
30277 | -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
30278 | -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30279 | -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30280 | -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
30281 | -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
30282 | -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
30283 | -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
30284 | -compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
30285 | -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30286 | -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30287 | -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30288 | -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30289 | -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30290 | -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30291 | -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
30292 | -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
30293 | -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
30294 | -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
30295 | -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
30296 | -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
30297 | -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
30298 | -hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
30299 | -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
30300 | -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
30301 | -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
30302 | -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
30303 | -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
30304 | -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
30305 | -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
30306 | -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30307 | -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
30308 | -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
30309 | -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30310 | -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
30311 | -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
30312 | -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
30313 | -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
30314 | -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
30315 | -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
30316 | -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
30317 | -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
30318 | -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
30319 | -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
30320 | -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
30321 | -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30322 | -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30323 | -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
30324 | -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
30325 | -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
30326 | -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
30327 | -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
30328 | -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
30329 | -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
30330 | -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
30331 | -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
30332 | -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
30333 | -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
30334 | +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | ||
30335 | +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | ||
30336 | +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | ||
30337 | +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | ||
30338 | +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | ||
30339 | +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | ||
30340 | +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | ||
30341 | +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | ||
30342 | +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | ||
30343 | +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | ||
30344 | +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | ||
30345 | +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | ||
30346 | +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | ||
30347 | +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | ||
30348 | +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | ||
30349 | +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | ||
30350 | +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | ||
30351 | +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | ||
30352 | +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | ||
30353 | +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | ||
30354 | +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | ||
30355 | +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | ||
30356 | +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | ||
30357 | +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | ||
30358 | +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | ||
30359 | +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | ||
30360 | +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | ||
30361 | +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | ||
30362 | +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
30363 | +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | ||
30364 | +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | ||
30365 | +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | ||
30366 | +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | ||
30367 | +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | ||
30368 | +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | ||
30369 | +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | ||
30370 | +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | ||
30371 | +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | ||
30372 | +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | ||
30373 | +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | ||
30374 | +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | ||
30375 | +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | ||
30376 | +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | ||
30377 | +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | ||
30378 | +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
30379 | +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
30380 | +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
30381 | +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | ||
30382 | +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | ||
30383 | +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | ||
30384 | +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | ||
30385 | +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | ||
30386 | +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | ||
30387 | +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | ||
30388 | +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | ||
30389 | +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"`' | ||
30390 | +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
30391 | +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | ||
30392 | +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | ||
30393 | +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | ||
30394 | +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | ||
30395 | +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | ||
30396 | +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | ||
30397 | +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | ||
30398 | +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | ||
30399 | +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | ||
30400 | +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | ||
30401 | +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | ||
30402 | +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | ||
30403 | +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | ||
30404 | +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | ||
30405 | +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | ||
30406 | +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | ||
30407 | +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | ||
30408 | +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
30409 | +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | ||
30410 | +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | ||
30411 | +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
30412 | +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
30413 | +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | ||
30414 | +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | ||
30415 | +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | ||
30416 | +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | ||
30417 | +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
30418 | +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | ||
30419 | +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | ||
30420 | +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | ||
30421 | +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
30422 | +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | ||
30423 | +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | ||
30424 | +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | ||
30425 | +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | ||
30426 | +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | ||
30427 | +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | ||
30428 | +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | ||
30429 | +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
30430 | +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | ||
30431 | +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | ||
30432 | +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | ||
30433 | +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | ||
30434 | +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | ||
30435 | +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | ||
30436 | +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | ||
30437 | +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | ||
30438 | +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | ||
30439 | +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | ||
30440 | +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | ||
30441 | +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | ||
30442 | +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | ||
30443 | +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | ||
30444 | +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | ||
30445 | +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | ||
30446 | +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | ||
30447 | +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | ||
30448 | +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | ||
30449 | +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | ||
30450 | +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | ||
30451 | +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
30452 | +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | ||
30453 | +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | ||
30454 | +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | ||
30455 | +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | ||
30456 | +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | ||
30457 | +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | ||
30458 | +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | ||
30459 | +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | ||
30460 | +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | ||
30461 | +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | ||
30462 | +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | ||
30463 | +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | ||
30464 | |||
30465 | LTCC='$LTCC' | ||
30466 | LTCFLAGS='$LTCFLAGS' | ||
30467 | compiler='$compiler_DEFAULT' | ||
30468 | |||
30469 | +# A function that is used when there is no print builtin or printf. | ||
30470 | +func_fallback_echo () | ||
30471 | +{ | ||
30472 | + eval 'cat <<_LTECHO_EOF | ||
30473 | +\$1 | ||
30474 | +_LTECHO_EOF' | ||
30475 | +} | ||
30476 | + | ||
30477 | # Quote evaled strings. | ||
30478 | -for var in SED \ | ||
30479 | +for var in SHELL \ | ||
30480 | +ECHO \ | ||
30481 | +SED \ | ||
30482 | GREP \ | ||
30483 | EGREP \ | ||
30484 | FGREP \ | ||
30485 | @@ -13264,8 +14056,13 @@ reload_flag \ | ||
30486 | OBJDUMP \ | ||
30487 | deplibs_check_method \ | ||
30488 | file_magic_cmd \ | ||
30489 | +file_magic_glob \ | ||
30490 | +want_nocaseglob \ | ||
30491 | +DLLTOOL \ | ||
30492 | +sharedlib_from_linklib_cmd \ | ||
30493 | AR \ | ||
30494 | AR_FLAGS \ | ||
30495 | +archiver_list_spec \ | ||
30496 | STRIP \ | ||
30497 | RANLIB \ | ||
30498 | CC \ | ||
30499 | @@ -13275,14 +14072,14 @@ lt_cv_sys_global_symbol_pipe \ | ||
30500 | lt_cv_sys_global_symbol_to_cdecl \ | ||
30501 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
30502 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
30503 | -SHELL \ | ||
30504 | -ECHO \ | ||
30505 | +nm_file_list_spec \ | ||
30506 | lt_prog_compiler_no_builtin_flag \ | ||
30507 | -lt_prog_compiler_wl \ | ||
30508 | lt_prog_compiler_pic \ | ||
30509 | +lt_prog_compiler_wl \ | ||
30510 | lt_prog_compiler_static \ | ||
30511 | lt_cv_prog_compiler_c_o \ | ||
30512 | need_locks \ | ||
30513 | +MANIFEST_TOOL \ | ||
30514 | DSYMUTIL \ | ||
30515 | NMEDIT \ | ||
30516 | LIPO \ | ||
30517 | @@ -13298,7 +14095,6 @@ no_undefined_flag \ | ||
30518 | hardcode_libdir_flag_spec \ | ||
30519 | hardcode_libdir_flag_spec_ld \ | ||
30520 | hardcode_libdir_separator \ | ||
30521 | -fix_srcfile_path \ | ||
30522 | exclude_expsyms \ | ||
30523 | include_expsyms \ | ||
30524 | file_list_spec \ | ||
30525 | @@ -13306,12 +14102,13 @@ variables_saved_for_relink \ | ||
30526 | libname_spec \ | ||
30527 | library_names_spec \ | ||
30528 | soname_spec \ | ||
30529 | +install_override_mode \ | ||
30530 | finish_eval \ | ||
30531 | old_striplib \ | ||
30532 | striplib; do | ||
30533 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
30534 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
30535 | *[\\\\\\\`\\"\\\$]*) | ||
30536 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
30537 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
30538 | ;; | ||
30539 | *) | ||
30540 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
30541 | @@ -13333,14 +14130,15 @@ module_cmds \ | ||
30542 | module_expsym_cmds \ | ||
30543 | export_symbols_cmds \ | ||
30544 | prelink_cmds \ | ||
30545 | +postlink_cmds \ | ||
30546 | postinstall_cmds \ | ||
30547 | postuninstall_cmds \ | ||
30548 | finish_cmds \ | ||
30549 | sys_lib_search_path_spec \ | ||
30550 | sys_lib_dlsearch_path_spec; do | ||
30551 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
30552 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
30553 | *[\\\\\\\`\\"\\\$]*) | ||
30554 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
30555 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
30556 | ;; | ||
30557 | *) | ||
30558 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
30559 | @@ -13348,12 +14146,6 @@ sys_lib_dlsearch_path_spec; do | ||
30560 | esac | ||
30561 | done | ||
30562 | |||
30563 | -# Fix-up fallback echo if it was mangled by the above quoting rules. | ||
30564 | -case \$lt_ECHO in | ||
30565 | -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
30566 | - ;; | ||
30567 | -esac | ||
30568 | - | ||
30569 | ac_aux_dir='$ac_aux_dir' | ||
30570 | xsi_shell='$xsi_shell' | ||
30571 | lt_shell_append='$lt_shell_append' | ||
30572 | @@ -14095,7 +14887,8 @@ $as_echo X"$file" | | ||
30573 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
30574 | # | ||
30575 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
30576 | -# 2006, 2007, 2008 Free Software Foundation, Inc. | ||
30577 | +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
30578 | +# Inc. | ||
30579 | # Written by Gordon Matzigkeit, 1996 | ||
30580 | # | ||
30581 | # This file is part of GNU Libtool. | ||
30582 | @@ -14143,6 +14936,12 @@ pic_mode=$pic_mode | ||
30583 | # Whether or not to optimize for fast installation. | ||
30584 | fast_install=$enable_fast_install | ||
30585 | |||
30586 | +# Shell to use when invoking shell scripts. | ||
30587 | +SHELL=$lt_SHELL | ||
30588 | + | ||
30589 | +# An echo program that protects backslashes. | ||
30590 | +ECHO=$lt_ECHO | ||
30591 | + | ||
30592 | # The host system. | ||
30593 | host_alias=$host_alias | ||
30594 | host=$host | ||
30595 | @@ -14192,9 +14991,11 @@ SP2NL=$lt_lt_SP2NL | ||
30596 | # turn newlines into spaces. | ||
30597 | NL2SP=$lt_lt_NL2SP | ||
30598 | |||
30599 | -# How to create reloadable object files. | ||
30600 | -reload_flag=$lt_reload_flag | ||
30601 | -reload_cmds=$lt_reload_cmds | ||
30602 | +# convert \$build file names to \$host format. | ||
30603 | +to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
30604 | + | ||
30605 | +# convert \$build files to toolchain format. | ||
30606 | +to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
30607 | |||
30608 | # An object symbol dumper. | ||
30609 | OBJDUMP=$lt_OBJDUMP | ||
30610 | @@ -14202,13 +15003,30 @@ OBJDUMP=$lt_OBJDUMP | ||
30611 | # Method to check whether dependent libraries are shared objects. | ||
30612 | deplibs_check_method=$lt_deplibs_check_method | ||
30613 | |||
30614 | -# Command to use when deplibs_check_method == "file_magic". | ||
30615 | +# Command to use when deplibs_check_method = "file_magic". | ||
30616 | file_magic_cmd=$lt_file_magic_cmd | ||
30617 | |||
30618 | +# How to find potential files when deplibs_check_method = "file_magic". | ||
30619 | +file_magic_glob=$lt_file_magic_glob | ||
30620 | + | ||
30621 | +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". | ||
30622 | +want_nocaseglob=$lt_want_nocaseglob | ||
30623 | + | ||
30624 | +# DLL creation program. | ||
30625 | +DLLTOOL=$lt_DLLTOOL | ||
30626 | + | ||
30627 | +# Command to associate shared and link libraries. | ||
30628 | +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | ||
30629 | + | ||
30630 | # The archiver. | ||
30631 | AR=$lt_AR | ||
30632 | + | ||
30633 | +# Flags to create an archive. | ||
30634 | AR_FLAGS=$lt_AR_FLAGS | ||
30635 | |||
30636 | +# How to feed a file listing to the archiver. | ||
30637 | +archiver_list_spec=$lt_archiver_list_spec | ||
30638 | + | ||
30639 | # A symbol stripping program. | ||
30640 | STRIP=$lt_STRIP | ||
30641 | |||
30642 | @@ -14217,6 +15035,9 @@ RANLIB=$lt_RANLIB | ||
30643 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
30644 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
30645 | |||
30646 | +# Whether to use a lock for old archive extraction. | ||
30647 | +lock_old_archive_extraction=$lock_old_archive_extraction | ||
30648 | + | ||
30649 | # A C compiler. | ||
30650 | LTCC=$lt_CC | ||
30651 | |||
30652 | @@ -14235,14 +15056,14 @@ global_symbol_to_c_name_address=$lt_lt_c | ||
30653 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
30654 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
30655 | |||
30656 | -# The name of the directory that contains temporary libtool files. | ||
30657 | -objdir=$objdir | ||
30658 | +# Specify filename containing input files for \$NM. | ||
30659 | +nm_file_list_spec=$lt_nm_file_list_spec | ||
30660 | |||
30661 | -# Shell to use when invoking shell scripts. | ||
30662 | -SHELL=$lt_SHELL | ||
30663 | +# The root where to search for dependent libraries,and in which our libraries should be installed. | ||
30664 | +lt_sysroot=$lt_sysroot | ||
30665 | |||
30666 | -# An echo program that does not interpret backslashes. | ||
30667 | -ECHO=$lt_ECHO | ||
30668 | +# The name of the directory that contains temporary libtool files. | ||
30669 | +objdir=$objdir | ||
30670 | |||
30671 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
30672 | MAGIC_CMD=$MAGIC_CMD | ||
30673 | @@ -14250,6 +15071,9 @@ MAGIC_CMD=$MAGIC_CMD | ||
30674 | # Must we lock files when doing compilation? | ||
30675 | need_locks=$lt_need_locks | ||
30676 | |||
30677 | +# Manifest tool. | ||
30678 | +MANIFEST_TOOL=$lt_MANIFEST_TOOL | ||
30679 | + | ||
30680 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
30681 | DSYMUTIL=$lt_DSYMUTIL | ||
30682 | |||
30683 | @@ -14306,6 +15130,9 @@ library_names_spec=$lt_library_names_spe | ||
30684 | # The coded name of the library, if different from the real name. | ||
30685 | soname_spec=$lt_soname_spec | ||
30686 | |||
30687 | +# Permission mode override for installation of shared libraries. | ||
30688 | +install_override_mode=$lt_install_override_mode | ||
30689 | + | ||
30690 | # Command to use after installation of a shared archive. | ||
30691 | postinstall_cmds=$lt_postinstall_cmds | ||
30692 | |||
30693 | @@ -14345,6 +15172,10 @@ striplib=$lt_striplib | ||
30694 | # The linker used to build libraries. | ||
30695 | LD=$lt_LD | ||
30696 | |||
30697 | +# How to create reloadable object files. | ||
30698 | +reload_flag=$lt_reload_flag | ||
30699 | +reload_cmds=$lt_reload_cmds | ||
30700 | + | ||
30701 | # Commands used to build an old-style archive. | ||
30702 | old_archive_cmds=$lt_old_archive_cmds | ||
30703 | |||
30704 | @@ -14357,12 +15188,12 @@ with_gcc=$GCC | ||
30705 | # Compiler flag to turn off builtin functions. | ||
30706 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
30707 | |||
30708 | -# How to pass a linker flag through the compiler. | ||
30709 | -wl=$lt_lt_prog_compiler_wl | ||
30710 | - | ||
30711 | # Additional compiler flags for building library objects. | ||
30712 | pic_flag=$lt_lt_prog_compiler_pic | ||
30713 | |||
30714 | +# How to pass a linker flag through the compiler. | ||
30715 | +wl=$lt_lt_prog_compiler_wl | ||
30716 | + | ||
30717 | # Compiler flag to prevent dynamic linking. | ||
30718 | link_static_flag=$lt_lt_prog_compiler_static | ||
30719 | |||
30720 | @@ -14449,9 +15280,6 @@ inherit_rpath=$inherit_rpath | ||
30721 | # Whether libtool must link a program against all its dependency libraries. | ||
30722 | link_all_deplibs=$link_all_deplibs | ||
30723 | |||
30724 | -# Fix the shell variable \$srcfile for the compiler. | ||
30725 | -fix_srcfile_path=$lt_fix_srcfile_path | ||
30726 | - | ||
30727 | # Set to "yes" if exported symbols are required. | ||
30728 | always_export_symbols=$always_export_symbols | ||
30729 | |||
30730 | @@ -14467,6 +15295,9 @@ include_expsyms=$lt_include_expsyms | ||
30731 | # Commands necessary for linking programs (against libraries) with templates. | ||
30732 | prelink_cmds=$lt_prelink_cmds | ||
30733 | |||
30734 | +# Commands necessary for finishing linking programs. | ||
30735 | +postlink_cmds=$lt_postlink_cmds | ||
30736 | + | ||
30737 | # Specify filename containing input files. | ||
30738 | file_list_spec=$lt_file_list_spec | ||
30739 | |||
30740 | @@ -14499,212 +15330,169 @@ ltmain="$ac_aux_dir/ltmain.sh" | ||
30741 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
30742 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
30743 | # is reportedly fixed, but why not run on old versions too? | ||
30744 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
30745 | - || (rm -f "$cfgfile"; exit 1) | ||
30746 | - | ||
30747 | - case $xsi_shell in | ||
30748 | - yes) | ||
30749 | - cat << \_LT_EOF >> "$cfgfile" | ||
30750 | - | ||
30751 | -# func_dirname file append nondir_replacement | ||
30752 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
30753 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
30754 | -func_dirname () | ||
30755 | -{ | ||
30756 | - case ${1} in | ||
30757 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
30758 | - * ) func_dirname_result="${3}" ;; | ||
30759 | - esac | ||
30760 | -} | ||
30761 | - | ||
30762 | -# func_basename file | ||
30763 | -func_basename () | ||
30764 | -{ | ||
30765 | - func_basename_result="${1##*/}" | ||
30766 | -} | ||
30767 | - | ||
30768 | -# func_dirname_and_basename file append nondir_replacement | ||
30769 | -# perform func_basename and func_dirname in a single function | ||
30770 | -# call: | ||
30771 | -# dirname: Compute the dirname of FILE. If nonempty, | ||
30772 | -# add APPEND to the result, otherwise set result | ||
30773 | -# to NONDIR_REPLACEMENT. | ||
30774 | -# value returned in "$func_dirname_result" | ||
30775 | -# basename: Compute filename of FILE. | ||
30776 | -# value retuned in "$func_basename_result" | ||
30777 | -# Implementation must be kept synchronized with func_dirname | ||
30778 | -# and func_basename. For efficiency, we do not delegate to | ||
30779 | -# those functions but instead duplicate the functionality here. | ||
30780 | -func_dirname_and_basename () | ||
30781 | -{ | ||
30782 | - case ${1} in | ||
30783 | - */*) func_dirname_result="${1%/*}${2}" ;; | ||
30784 | - * ) func_dirname_result="${3}" ;; | ||
30785 | - esac | ||
30786 | - func_basename_result="${1##*/}" | ||
30787 | -} | ||
30788 | - | ||
30789 | -# func_stripname prefix suffix name | ||
30790 | -# strip PREFIX and SUFFIX off of NAME. | ||
30791 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
30792 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
30793 | -# dot (in which case that matches only a dot). | ||
30794 | -func_stripname () | ||
30795 | -{ | ||
30796 | - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
30797 | - # positional parameters, so assign one to ordinary parameter first. | ||
30798 | - func_stripname_result=${3} | ||
30799 | - func_stripname_result=${func_stripname_result#"${1}"} | ||
30800 | - func_stripname_result=${func_stripname_result%"${2}"} | ||
30801 | -} | ||
30802 | - | ||
30803 | -# func_opt_split | ||
30804 | -func_opt_split () | ||
30805 | -{ | ||
30806 | - func_opt_split_opt=${1%%=*} | ||
30807 | - func_opt_split_arg=${1#*=} | ||
30808 | -} | ||
30809 | - | ||
30810 | -# func_lo2o object | ||
30811 | -func_lo2o () | ||
30812 | -{ | ||
30813 | - case ${1} in | ||
30814 | - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
30815 | - *) func_lo2o_result=${1} ;; | ||
30816 | - esac | ||
30817 | -} | ||
30818 | - | ||
30819 | -# func_xform libobj-or-source | ||
30820 | -func_xform () | ||
30821 | -{ | ||
30822 | - func_xform_result=${1%.*}.lo | ||
30823 | -} | ||
30824 | - | ||
30825 | -# func_arith arithmetic-term... | ||
30826 | -func_arith () | ||
30827 | -{ | ||
30828 | - func_arith_result=$(( $* )) | ||
30829 | -} | ||
30830 | - | ||
30831 | -# func_len string | ||
30832 | -# STRING may not start with a hyphen. | ||
30833 | -func_len () | ||
30834 | -{ | ||
30835 | - func_len_result=${#1} | ||
30836 | -} | ||
30837 | - | ||
30838 | -_LT_EOF | ||
30839 | - ;; | ||
30840 | - *) # Bourne compatible functions. | ||
30841 | - cat << \_LT_EOF >> "$cfgfile" | ||
30842 | - | ||
30843 | -# func_dirname file append nondir_replacement | ||
30844 | -# Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
30845 | -# otherwise set result to NONDIR_REPLACEMENT. | ||
30846 | -func_dirname () | ||
30847 | -{ | ||
30848 | - # Extract subdirectory from the argument. | ||
30849 | - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
30850 | - if test "X$func_dirname_result" = "X${1}"; then | ||
30851 | - func_dirname_result="${3}" | ||
30852 | - else | ||
30853 | - func_dirname_result="$func_dirname_result${2}" | ||
30854 | - fi | ||
30855 | -} | ||
30856 | - | ||
30857 | -# func_basename file | ||
30858 | -func_basename () | ||
30859 | -{ | ||
30860 | - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
30861 | -} | ||
30862 | - | ||
30863 | - | ||
30864 | -# func_stripname prefix suffix name | ||
30865 | -# strip PREFIX and SUFFIX off of NAME. | ||
30866 | -# PREFIX and SUFFIX must not contain globbing or regex special | ||
30867 | -# characters, hashes, percent signs, but SUFFIX may contain a leading | ||
30868 | -# dot (in which case that matches only a dot). | ||
30869 | -# func_strip_suffix prefix name | ||
30870 | -func_stripname () | ||
30871 | -{ | ||
30872 | - case ${2} in | ||
30873 | - .*) func_stripname_result=`$ECHO "X${3}" \ | ||
30874 | - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
30875 | - *) func_stripname_result=`$ECHO "X${3}" \ | ||
30876 | - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
30877 | - esac | ||
30878 | -} | ||
30879 | - | ||
30880 | -# sed scripts: | ||
30881 | -my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
30882 | -my_sed_long_arg='1s/^-[^=]*=//' | ||
30883 | - | ||
30884 | -# func_opt_split | ||
30885 | -func_opt_split () | ||
30886 | -{ | ||
30887 | - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
30888 | - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
30889 | -} | ||
30890 | - | ||
30891 | -# func_lo2o object | ||
30892 | -func_lo2o () | ||
30893 | -{ | ||
30894 | - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
30895 | -} | ||
30896 | - | ||
30897 | -# func_xform libobj-or-source | ||
30898 | -func_xform () | ||
30899 | -{ | ||
30900 | - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
30901 | -} | ||
30902 | - | ||
30903 | -# func_arith arithmetic-term... | ||
30904 | -func_arith () | ||
30905 | -{ | ||
30906 | - func_arith_result=`expr "$@"` | ||
30907 | -} | ||
30908 | - | ||
30909 | -# func_len string | ||
30910 | -# STRING may not start with a hyphen. | ||
30911 | -func_len () | ||
30912 | -{ | ||
30913 | - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
30914 | -} | ||
30915 | - | ||
30916 | -_LT_EOF | ||
30917 | -esac | ||
30918 | - | ||
30919 | -case $lt_shell_append in | ||
30920 | - yes) | ||
30921 | - cat << \_LT_EOF >> "$cfgfile" | ||
30922 | - | ||
30923 | -# func_append var value | ||
30924 | -# Append VALUE to the end of shell variable VAR. | ||
30925 | -func_append () | ||
30926 | -{ | ||
30927 | - eval "$1+=\$2" | ||
30928 | -} | ||
30929 | -_LT_EOF | ||
30930 | - ;; | ||
30931 | - *) | ||
30932 | - cat << \_LT_EOF >> "$cfgfile" | ||
30933 | - | ||
30934 | -# func_append var value | ||
30935 | -# Append VALUE to the end of shell variable VAR. | ||
30936 | -func_append () | ||
30937 | -{ | ||
30938 | - eval "$1=\$$1\$2" | ||
30939 | -} | ||
30940 | - | ||
30941 | -_LT_EOF | ||
30942 | - ;; | ||
30943 | - esac | ||
30944 | + sed '$q' "$ltmain" >> "$cfgfile" \ | ||
30945 | + || (rm -f "$cfgfile"; exit 1) | ||
30946 | |||
30947 | + if test x"$xsi_shell" = xyes; then | ||
30948 | + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | ||
30949 | +func_dirname ()\ | ||
30950 | +{\ | ||
30951 | +\ case ${1} in\ | ||
30952 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
30953 | +\ * ) func_dirname_result="${3}" ;;\ | ||
30954 | +\ esac\ | ||
30955 | +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
30956 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
30957 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
30958 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
30959 | + | ||
30960 | + | ||
30961 | + sed -e '/^func_basename ()$/,/^} # func_basename /c\ | ||
30962 | +func_basename ()\ | ||
30963 | +{\ | ||
30964 | +\ func_basename_result="${1##*/}"\ | ||
30965 | +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
30966 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
30967 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
30968 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
30969 | + | ||
30970 | + | ||
30971 | + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | ||
30972 | +func_dirname_and_basename ()\ | ||
30973 | +{\ | ||
30974 | +\ case ${1} in\ | ||
30975 | +\ */*) func_dirname_result="${1%/*}${2}" ;;\ | ||
30976 | +\ * ) func_dirname_result="${3}" ;;\ | ||
30977 | +\ esac\ | ||
30978 | +\ func_basename_result="${1##*/}"\ | ||
30979 | +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | ||
30980 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
30981 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
30982 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
30983 | + | ||
30984 | + | ||
30985 | + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | ||
30986 | +func_stripname ()\ | ||
30987 | +{\ | ||
30988 | +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | ||
30989 | +\ # positional parameters, so assign one to ordinary parameter first.\ | ||
30990 | +\ func_stripname_result=${3}\ | ||
30991 | +\ func_stripname_result=${func_stripname_result#"${1}"}\ | ||
30992 | +\ func_stripname_result=${func_stripname_result%"${2}"}\ | ||
30993 | +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | ||
30994 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
30995 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
30996 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
30997 | + | ||
30998 | + | ||
30999 | + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | ||
31000 | +func_split_long_opt ()\ | ||
31001 | +{\ | ||
31002 | +\ func_split_long_opt_name=${1%%=*}\ | ||
31003 | +\ func_split_long_opt_arg=${1#*=}\ | ||
31004 | +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
31005 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31006 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31007 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
31008 | + | ||
31009 | + | ||
31010 | + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | ||
31011 | +func_split_short_opt ()\ | ||
31012 | +{\ | ||
31013 | +\ func_split_short_opt_arg=${1#??}\ | ||
31014 | +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | ||
31015 | +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | ||
31016 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31017 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31018 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
31019 | + | ||
31020 | + | ||
31021 | + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | ||
31022 | +func_lo2o ()\ | ||
31023 | +{\ | ||
31024 | +\ case ${1} in\ | ||
31025 | +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | ||
31026 | +\ *) func_lo2o_result=${1} ;;\ | ||
31027 | +\ esac\ | ||
31028 | +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | ||
31029 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31030 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31031 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
31032 | + | ||
31033 | + | ||
31034 | + sed -e '/^func_xform ()$/,/^} # func_xform /c\ | ||
31035 | +func_xform ()\ | ||
31036 | +{\ | ||
31037 | + func_xform_result=${1%.*}.lo\ | ||
31038 | +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | ||
31039 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31040 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31041 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
31042 | + | ||
31043 | + | ||
31044 | + sed -e '/^func_arith ()$/,/^} # func_arith /c\ | ||
31045 | +func_arith ()\ | ||
31046 | +{\ | ||
31047 | + func_arith_result=$(( $* ))\ | ||
31048 | +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | ||
31049 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31050 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31051 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
31052 | + | ||
31053 | + | ||
31054 | + sed -e '/^func_len ()$/,/^} # func_len /c\ | ||
31055 | +func_len ()\ | ||
31056 | +{\ | ||
31057 | + func_len_result=${#1}\ | ||
31058 | +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | ||
31059 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31060 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31061 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
31062 | + | ||
31063 | +fi | ||
31064 | + | ||
31065 | +if test x"$lt_shell_append" = xyes; then | ||
31066 | + sed -e '/^func_append ()$/,/^} # func_append /c\ | ||
31067 | +func_append ()\ | ||
31068 | +{\ | ||
31069 | + eval "${1}+=\\${2}"\ | ||
31070 | +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | ||
31071 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31072 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31073 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
31074 | + | ||
31075 | + | ||
31076 | + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | ||
31077 | +func_append_quoted ()\ | ||
31078 | +{\ | ||
31079 | +\ func_quote_for_eval "${2}"\ | ||
31080 | +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | ||
31081 | +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | ||
31082 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31083 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31084 | +test 0 -eq $? || _lt_function_replace_fail=: | ||
31085 | + | ||
31086 | + | ||
31087 | + # Save a `func_append' function call where possible by direct use of '+=' | ||
31088 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | ||
31089 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31090 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31091 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
31092 | +else | ||
31093 | + # Save a `func_append' function call even when '+=' is not available | ||
31094 | + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | ||
31095 | + && mv -f "$cfgfile.tmp" "$cfgfile" \ | ||
31096 | + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | ||
31097 | + test 0 -eq $? || _lt_function_replace_fail=: | ||
31098 | +fi | ||
31099 | + | ||
31100 | +if test x"$_lt_function_replace_fail" = x":"; then | ||
31101 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | ||
31102 | +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | ||
31103 | +fi | ||
31104 | |||
31105 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
31106 | - || (rm -f "$cfgfile"; exit 1) | ||
31107 | |||
31108 | - mv -f "$cfgfile" "$ofile" || | ||
31109 | + mv -f "$cfgfile" "$ofile" || | ||
31110 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
31111 | chmod +x "$ofile" | ||
31112 | |||
31113 | Index: binutils-2.20.1/opcodes/Makefile.in | ||
31114 | =================================================================== | ||
31115 | --- binutils-2.20.1.orig/opcodes/Makefile.in | ||
31116 | +++ binutils-2.20.1/opcodes/Makefile.in | ||
31117 | @@ -154,6 +154,7 @@ CYGPATH_W = @CYGPATH_W@ | ||
31118 | DATADIRNAME = @DATADIRNAME@ | ||
31119 | DEFS = @DEFS@ | ||
31120 | DEPDIR = @DEPDIR@ | ||
31121 | +DLLTOOL = @DLLTOOL@ | ||
31122 | DSYMUTIL = @DSYMUTIL@ | ||
31123 | DUMPBIN = @DUMPBIN@ | ||
31124 | ECHO_C = @ECHO_C@ | ||
31125 | @@ -187,6 +188,7 @@ LN_S = @LN_S@ | ||
31126 | LTLIBOBJS = @LTLIBOBJS@ | ||
31127 | MAINT = @MAINT@ | ||
31128 | MAKEINFO = @MAKEINFO@ | ||
31129 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
31130 | MKDIR_P = @MKDIR_P@ | ||
31131 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
31132 | MSGFMT = @MSGFMT@ | ||
31133 | @@ -223,6 +225,7 @@ abs_builddir = @abs_builddir@ | ||
31134 | abs_srcdir = @abs_srcdir@ | ||
31135 | abs_top_builddir = @abs_top_builddir@ | ||
31136 | abs_top_srcdir = @abs_top_srcdir@ | ||
31137 | +ac_ct_AR = @ac_ct_AR@ | ||
31138 | ac_ct_CC = @ac_ct_CC@ | ||
31139 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
31140 | am__include = @am__include@ | ||
31141 | @@ -263,7 +266,6 @@ libdir = @libdir@ | ||
31142 | libexecdir = @libexecdir@ | ||
31143 | localedir = @localedir@ | ||
31144 | localstatedir = @localstatedir@ | ||
31145 | -lt_ECHO = @lt_ECHO@ | ||
31146 | mandir = @mandir@ | ||
31147 | mkdir_p = @mkdir_p@ | ||
31148 | oldincludedir = @oldincludedir@ | ||
31149 | Index: binutils-2.20.1/bfd/configure.in | ||
31150 | =================================================================== | ||
31151 | --- binutils-2.20.1.orig/bfd/configure.in | ||
31152 | +++ binutils-2.20.1/bfd/configure.in | ||
31153 | @@ -532,7 +532,7 @@ changequote(,)dnl | ||
31154 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` | ||
31155 | changequote([,])dnl | ||
31156 | if test -n "$x"; then | ||
31157 | - SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | ||
31158 | + SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a" | ||
31159 | fi | ||
31160 | |||
31161 | # More hacks to build DLLs on Windows. | ||
31162 | Index: binutils-2.20.1/opcodes/configure.in | ||
31163 | =================================================================== | ||
31164 | --- binutils-2.20.1.orig/opcodes/configure.in | ||
31165 | +++ binutils-2.20.1/opcodes/configure.in | ||
31166 | @@ -134,7 +134,7 @@ changequote(,)dnl | ||
31167 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` | ||
31168 | changequote([,])dnl | ||
31169 | if test -n "$x"; then | ||
31170 | - SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | ||
31171 | + SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a" | ||
31172 | fi | ||
31173 | |||
31174 | case "${host}" in | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/libtool-rpath-fix.patch b/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/libtool-rpath-fix.patch deleted file mode 100644 index a0058c1a4..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-2.20.1/libtool-rpath-fix.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | Enabling sysroot support in libtool exposed a bug where the final | ||
2 | library had an RPATH encoded into it which still pointed to the | ||
3 | sysroot. This works around the issue until it gets sorted out | ||
4 | upstream. | ||
5 | |||
6 | Fix suggested by Richard Purdie <richard.purdie@linuxfoundation.org> | ||
7 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | ||
8 | |||
9 | diff -urN binutils-2.21.orig//ltmain.sh binutils-2.21/ltmain.sh | ||
10 | --- binutils-2.21.orig//ltmain.sh 2011-01-18 11:50:40.821710085 -0800 | ||
11 | +++ binutils-2.21/ltmain.sh 2011-01-18 11:51:38.774952785 -0800 | ||
12 | @@ -8035,9 +8035,11 @@ | ||
13 | test "$opt_mode" != relink && rpath="$compile_rpath$rpath" | ||
14 | for libdir in $rpath; do | ||
15 | if test -n "$hardcode_libdir_flag_spec"; then | ||
16 | + func_replace_sysroot "$libdir" | ||
17 | + libdir=$func_replace_sysroot_result | ||
18 | + func_stripname '=' '' "$libdir" | ||
19 | + libdir=$func_stripname_result | ||
20 | if test -n "$hardcode_libdir_separator"; then | ||
21 | - func_replace_sysroot "$libdir" | ||
22 | - libdir=$func_replace_sysroot_result | ||
23 | if test -z "$hardcode_libdirs"; then | ||
24 | hardcode_libdirs="$libdir" | ||
25 | else | ||
26 | @@ -8770,6 +8772,10 @@ | ||
27 | hardcode_libdirs= | ||
28 | for libdir in $compile_rpath $finalize_rpath; do | ||
29 | if test -n "$hardcode_libdir_flag_spec"; then | ||
30 | + func_replace_sysroot "$libdir" | ||
31 | + libdir=$func_replace_sysroot_result | ||
32 | + func_stripname '=' '' "$libdir" | ||
33 | + libdir=$func_stripname_result | ||
34 | if test -n "$hardcode_libdir_separator"; then | ||
35 | if test -z "$hardcode_libdirs"; then | ||
36 | hardcode_libdirs="$libdir" | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-cross-canadian.inc b/toolchain-layer/recipes-devtools/binutils/binutils-cross-canadian.inc deleted file mode 100644 index 95e535a1b..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-cross-canadian.inc +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | inherit cross-canadian | ||
2 | |||
3 | DESCRIPTION = "A GNU collection of cross-canadian binary utilities for ${TARGET_ARCH} target" | ||
4 | PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}" | ||
5 | BPN = "binutils" | ||
6 | |||
7 | DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/libc-nativesdk zlib-nativesdk gettext-nativesdk" | ||
8 | EXTRA_OECONF = "--with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \ | ||
9 | --program-prefix=${TARGET_PREFIX} \ | ||
10 | --disable-werror" | ||
11 | |||
12 | do_install () { | ||
13 | autotools_do_install | ||
14 | |||
15 | # We're not interested in the libs or headers, these would come from the | ||
16 | # nativesdk or target version of the binutils recipe | ||
17 | rm -rf ${D}${prefix}/${TARGET_SYS} | ||
18 | rm -f ${D}${libdir}/libbfd* | ||
19 | rm -f ${D}${libdir}/libiberty* | ||
20 | rm -f ${D}${libdir}/libopcodes* | ||
21 | rm -f ${D}${includedir}/*.h | ||
22 | } | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-cross-canadian_2.20.1.bb b/toolchain-layer/recipes-devtools/binutils/binutils-cross-canadian_2.20.1.bb deleted file mode 100644 index 1621b77e9..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-cross-canadian_2.20.1.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require binutils_${PV}.bb | ||
2 | require binutils-cross-canadian.inc | ||
3 | PR = "r6" | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-cross.inc b/toolchain-layer/recipes-devtools/binutils/binutils-cross.inc deleted file mode 100644 index 595fb2075..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-cross.inc +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | inherit cross | ||
2 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" | ||
3 | |||
4 | INHIBIT_DEFAULT_DEPS = "1" | ||
5 | INHIBIT_AUTOTOOLS_DEPS = "1" | ||
6 | |||
7 | EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \ | ||
8 | --program-prefix=${TARGET_PREFIX} \ | ||
9 | --disable-install-libbfd \ | ||
10 | --disable-werror \ | ||
11 | --disable-nls \ | ||
12 | --enable-poison-system-directories" | ||
13 | |||
14 | do_install () { | ||
15 | oe_runmake 'DESTDIR=${D}' install | ||
16 | |||
17 | # We don't really need these, so we'll remove them... | ||
18 | rm -rf ${D}${STAGING_DIR_NATIVE}${libdir_native}/libiberty.a | ||
19 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS} | ||
20 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/lib/ldscripts | ||
21 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/info | ||
22 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/locale | ||
23 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/man | ||
24 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/share || : | ||
25 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}/gcc-lib || : | ||
26 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}64/gcc-lib || : | ||
27 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir} || : | ||
28 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}64 || : | ||
29 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${prefix} || : | ||
30 | } | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-cross_2.20.1.bb b/toolchain-layer/recipes-devtools/binutils/binutils-cross_2.20.1.bb deleted file mode 100644 index 8c7e4bc1a..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-cross_2.20.1.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require binutils_${PV}.bb | ||
2 | require binutils-cross.inc | ||
3 | |||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils-crosssdk_2.20.1.bb b/toolchain-layer/recipes-devtools/binutils/binutils-crosssdk_2.20.1.bb deleted file mode 100644 index 88627f87b..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils-crosssdk_2.20.1.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | require binutils-cross_${PV}.bb | ||
2 | |||
3 | inherit crosssdk | ||
4 | |||
5 | PROVIDES = "virtual/${TARGET_PREFIX}binutils-crosssdk" | ||
6 | |||
7 | PR = "r4" | ||
8 | |||
9 | do_configure_prepend () { | ||
10 | sed -i 's#/usr/local/lib /lib /usr/lib#${SDKPATHNATIVE}/lib ${SDKPATHNATIVE}/usr/lib /usr/local/lib /lib /usr/lib#' ${S}/ld/configure.tgt | ||
11 | } | ||
12 | |||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils.inc b/toolchain-layer/recipes-devtools/binutils/binutils.inc deleted file mode 100644 index f8fc7b889..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils.inc +++ /dev/null | |||
@@ -1,149 +0,0 @@ | |||
1 | SUMMARY = "A GNU collection of binary utilities" | ||
2 | DESCRIPTION = "The GNU Binutils are a collection of binary tools. \ | ||
3 | The main ones are ld (GNU Linker), and as (GNU Assembler). This \ | ||
4 | package also includes addition tools such as addr2line (Converts \ | ||
5 | addresses into filenames and line numbers), ar (utility for creating, \ | ||
6 | modifying and extracting archives), nm (list symbols in object \ | ||
7 | files), objcopy (copy and translate object files), objdump (Display \ | ||
8 | object information), and other tools and related libraries." | ||
9 | HOMEPAGE = "http://www.gnu.org/software/binutils/" | ||
10 | BUGTRACKER = "http://sourceware.org/bugzilla/" | ||
11 | SECTION = "devel" | ||
12 | LICENSE = "GPLv3" | ||
13 | |||
14 | DEPENDS = "flex-native bison-native" | ||
15 | |||
16 | inherit autotools gettext | ||
17 | |||
18 | PACKAGES += "${PN}-symlinks" | ||
19 | |||
20 | FILES_${PN} = " \ | ||
21 | ${bindir}/${TARGET_PREFIX}* \ | ||
22 | ${libdir}/lib*-*.so \ | ||
23 | ${prefix}/${TARGET_SYS}/bin/*" | ||
24 | |||
25 | FILES_${PN}-dev = " \ | ||
26 | ${includedir} \ | ||
27 | ${libdir}/*.a \ | ||
28 | ${libdir}/*.la \ | ||
29 | ${libdir}/libbfd.so \ | ||
30 | ${libdir}/libopcodes.so" | ||
31 | |||
32 | FILES_${PN}-symlinks = " \ | ||
33 | ${bindir}/addr2line \ | ||
34 | ${bindir}/as \ | ||
35 | ${bindir}/c++filt \ | ||
36 | ${bindir}/gprof \ | ||
37 | ${bindir}/ld \ | ||
38 | ${bindir}/nm \ | ||
39 | ${bindir}/objcopy \ | ||
40 | ${bindir}/objdump \ | ||
41 | ${bindir}/ranlib \ | ||
42 | ${bindir}/readelf \ | ||
43 | ${bindir}/size \ | ||
44 | ${bindir}/strip" | ||
45 | |||
46 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | ||
47 | |||
48 | EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | ||
49 | --enable-install-libbfd \ | ||
50 | --enable-shared" | ||
51 | |||
52 | EXTRA_OECONF_virtclass-native = "--enable-target=all --enable-64-bit-bfd --enable-install-libbfd" | ||
53 | |||
54 | # This is necessary due to a bug in the binutils Makefiles | ||
55 | # EXTRA_OEMAKE = "configure-build-libiberty all" | ||
56 | |||
57 | export AR = "${HOST_PREFIX}ar" | ||
58 | export AS = "${HOST_PREFIX}as" | ||
59 | export LD = "${HOST_PREFIX}ld" | ||
60 | export NM = "${HOST_PREFIX}nm" | ||
61 | export RANLIB = "${HOST_PREFIX}ranlib" | ||
62 | export OBJCOPY = "${HOST_PREFIX}objcopy" | ||
63 | export OBJDUMP = "${HOST_PREFIX}objdump" | ||
64 | |||
65 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
66 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
67 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
68 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
69 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
70 | |||
71 | export CC_FOR_HOST = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
72 | export CXX_FOR_HOST = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
73 | |||
74 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
75 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
76 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
77 | |||
78 | do_configure () { | ||
79 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" | ||
80 | oe_runconf | ||
81 | # | ||
82 | # must prime config.cache to ensure the build of libiberty | ||
83 | # | ||
84 | mkdir -p ${B}/build-${BUILD_SYS} | ||
85 | for i in ${CONFIG_SITE}; do | ||
86 | cat $i >> ${B}/build-${BUILD_SYS}/config.cache | ||
87 | done | ||
88 | } | ||
89 | |||
90 | do_install () { | ||
91 | autotools_do_install | ||
92 | |||
93 | # We don't really need these, so we'll remove them... | ||
94 | rm -rf ${D}${libdir}/ldscripts | ||
95 | |||
96 | # Fix the /usr/${TARGET_SYS}/bin/* links | ||
97 | for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do | ||
98 | rm -f $l | ||
99 | ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ | ||
100 | | tr -s / \ | ||
101 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l | ||
102 | done | ||
103 | |||
104 | # Install the libiberty header | ||
105 | install -d ${D}${includedir} | ||
106 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
107 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
108 | |||
109 | cd ${D}${bindir} | ||
110 | |||
111 | # Symlinks for ease of running these on the native target | ||
112 | for p in ${TARGET_PREFIX}* ; do | ||
113 | ln -sf $p `echo $p | sed -e s,${TARGET_PREFIX},,` | ||
114 | done | ||
115 | |||
116 | rm ${D}${bindir}/ar ${D}${bindir}/strings | ||
117 | } | ||
118 | |||
119 | do_install_virtclass-native () { | ||
120 | autotools_do_install | ||
121 | |||
122 | # Install the libiberty header | ||
123 | install -d ${D}${includedir} | ||
124 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
125 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
126 | |||
127 | # We only want libiberty, libbfd and libopcodes | ||
128 | rm -rf ${D}${bindir} | ||
129 | rm -rf ${D}${prefix}/${TARGET_SYS} | ||
130 | rm -rf ${D}${prefix}/lib/ldscripts | ||
131 | rm -rf ${D}${prefix}/share/info | ||
132 | rm -rf ${D}${prefix}/share/locale | ||
133 | rm -rf ${D}${prefix}/share/man | ||
134 | rmdir ${D}${prefix}/share || : | ||
135 | rmdir ${D}/${libdir}/gcc-lib || : | ||
136 | rmdir ${D}/${libdir}64/gcc-lib || : | ||
137 | rmdir ${D}/${libdir} || : | ||
138 | rmdir ${D}/${libdir}64 || : | ||
139 | } | ||
140 | |||
141 | pkg_postinst_${PN}-symlinks () { | ||
142 | update-alternatives --install ${bindir}/ar ar ${TARGET_SYS}-ar 100 | ||
143 | update-alternatives --install ${bindir}/strings strings ${TARGET_SYS}-strings 100 | ||
144 | } | ||
145 | |||
146 | pkg_prerm_${PN}-symlinks () { | ||
147 | update-alternatives --remove ar ${TARGET_SYS}-ar | ||
148 | update-alternatives --remove strings ${TARGET_SYS}-strings | ||
149 | } | ||
diff --git a/toolchain-layer/recipes-devtools/binutils/binutils_2.20.1.bb b/toolchain-layer/recipes-devtools/binutils/binutils_2.20.1.bb deleted file mode 100644 index d0f889caf..000000000 --- a/toolchain-layer/recipes-devtools/binutils/binutils_2.20.1.bb +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | require binutils.inc | ||
2 | |||
3 | PR = "r9" | ||
4 | |||
5 | LIC_FILES_CHKSUM="\ | ||
6 | file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ | ||
7 | file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\ | ||
8 | file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674\ | ||
9 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504\ | ||
10 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6\ | ||
11 | file://gas/COPYING;md5=d32239bcb673463ab874e80d47fae504\ | ||
12 | file://include/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\ | ||
13 | file://include/COPYING3;md5=d32239bcb673463ab874e80d47fae504\ | ||
14 | file://libiberty/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7\ | ||
15 | file://bfd/COPYING;md5=d32239bcb673463ab874e80d47fae504\ | ||
16 | " | ||
17 | |||
18 | SRC_URI = "\ | ||
19 | ${GNU_MIRROR}/binutils/binutils-${PV}a.tar.bz2 \ | ||
20 | file://binutils-uclibc-100-uclibc-conf.patch \ | ||
21 | file://110-arm-eabi-conf.patch \ | ||
22 | file://binutils-uclibc-300-001_ld_makefile_patch.patch \ | ||
23 | file://binutils-uclibc-300-006_better_file_error.patch \ | ||
24 | file://binutils-uclibc-300-012_check_ldrunpath_length.patch \ | ||
25 | file://binutils-uclibc-gas-needs-libm.patch \ | ||
26 | file://binutils-x86_64_i386_biarch.patch \ | ||
27 | file://binutils-mips-pie.patch \ | ||
28 | file://libtool-2.4-update.patch \ | ||
29 | file://binutils-2.19.1-ld-sysroot.patch \ | ||
30 | file://libiberty_path_fix.patch \ | ||
31 | file://binutils-poison.patch \ | ||
32 | file://libtool-rpath-fix.patch \ | ||
33 | file://152_arm_branches_to_weak_symbols.patch \ | ||
34 | file://200_elflink_%B_fixes.patch \ | ||
35 | file://201_elflink_improve_noaddneeded_errors.patch \ | ||
36 | file://202_elflink_noaddneeded_vs_weak.patch \ | ||
37 | " | ||
38 | |||
39 | SRC_URI[md5sum] = "2b9dc8f2b7dbd5ec5992c6e29de0b764" | ||
40 | SRC_URI[sha256sum] = "71d37c96451333c5c0b84b170169fdcb138bbb27397dc06281905d9717c8ed64" | ||
41 | |||
42 | BBCLASSEXTEND = "native" | ||
43 | |||
44 | do_configure_prepend() { | ||
45 | sed -i -e 's: -Werror::g' ${S}/bfd/warning.m4 | ||
46 | |||
47 | # These aren't getting regenerated by autotools.bbclass | ||
48 | for i in $(find ${S} -name "configure") ; do | ||
49 | sed -i -e 's: -Werror::g' $i | ||
50 | done | ||
51 | } | ||
52 | |||